
:root{--o:#ff5a36;--d:#17181c;--g:#6b6f76;--l:#f4f5f7;--w:#fff;--green:#19a65a;--red:#e64545}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f6f8;color:#17181c}.layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{background:#141519;color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh;overflow:auto}.sidebar img{width:210px;max-width:100%;border-radius:12px;margin:4px 7px 24px}.sect{color:#7f858e;font-size:10px;letter-spacing:.16em;font-weight:900;margin:22px 10px 8px}
.menu a{display:flex;gap:11px;align-items:center;padding:12px 13px;border-radius:10px;color:#cfd2d7;font-weight:800;font-size:14px;margin:3px 0}.menu a.active,.menu a:hover{background:#2a211b;color:#fff;outline:1px solid #7a3b16}.menu a.active{border-left:3px solid var(--o)}
.main{min-width:0}.top{height:74px;background:#fff;border-bottom:1px solid #e6e8eb;display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:5}.top b{font-size:18px}.top small{color:#777}.content{padding:28px 30px;max-width:1500px;margin:auto}.title-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:20px}.title-row h1{margin:2px 0;font-size:30px}.eyebrow{font-size:10px;letter-spacing:.16em;color:#c84b29;font-weight:900}
.btn{display:inline-flex;min-height:42px;padding:0 16px;align-items:center;justify-content:center;border-radius:10px;border:1px solid #d9dde2;background:#fff;font-weight:800;cursor:pointer}.btn.primary{background:var(--o);color:#fff;border-color:var(--o)}.btn.dark{background:#1b1d21;color:#fff;border-color:#1b1d21}.btn.danger{color:#b52222;background:#fff4f4}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.card{background:#fff;border:1px solid #e1e5e9;border-radius:16px;padding:20px}.kpi span{color:#77808b;font-size:12px}.kpi strong{font-size:28px;display:block;margin-top:7px}.kpi small{color:#8b939c}
.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.card h2{font-size:18px;margin:0 0 14px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:750px}.table th{text-align:left;color:#818a94;font-size:10px;letter-spacing:.08em;padding:10px;border-bottom:1px solid #e7e9ec}.table td{padding:13px 10px;border-bottom:1px solid #eef0f2;font-size:13px}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.active-b{background:#eaf8ef;color:#13703a}.trial-b{background:#fff3df;color:#9a5a00}.paused-b{background:#f1f2f4;color:#666}.overdue-b{background:#fff0f0;color:#b72b2b}
.list-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #edf0f2}.list-row small{color:#7f8790}.progress{height:7px;background:#edf0f2;border-radius:999px;overflow:hidden;margin-top:7px}.progress i{height:100%;display:block;background:var(--o)}
.forms{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.forms label{font-size:11px;font-weight:800;color:#69727c}.forms input,.forms select{width:100%;height:42px;margin-top:5px;border:1px solid #dce1e6;border-radius:9px;padding:0 10px;background:#fff}.full{grid-column:1/-1}.checkgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.checkgrid label{border:1px solid #e2e5e9;border-radius:9px;padding:9px;background:#fafbfc}.alert,.success{padding:11px 13px;border-radius:10px;margin-bottom:14px;font-size:13px}.alert{background:#fff0f0;color:#a92828}.success{background:#eaf8ef;color:#13703a}
.auth-page{min-height:100vh;background:#141519;display:grid;place-items:center;padding:20px}.auth-card{width:min(420px,100%);background:#fff;border-radius:20px;padding:28px}.auth-card img{width:100%;border-radius:12px}.auth-card h1{margin-bottom:5px}.auth-card p{color:#777}.auth-card label{display:block;font-size:12px;font-weight:800;margin:11px 0}.auth-card input{width:100%;height:44px;border:1px solid #dce1e6;border-radius:9px;padding:0 10px;margin-top:5px}.auth-card button{width:100%;height:46px;background:var(--o);color:#fff;border:0;border-radius:10px;font-weight:900;margin-top:10px}.back{display:block;text-align:center;margin-top:15px;color:#777;font-size:12px}
.mobile-toggle{display:none}
@media(max-width:1000px){.layout{grid-template-columns:1fr}.sidebar{position:fixed;left:-280px;width:260px;z-index:20;transition:.2s}.sidebar.open{left:0}.mobile-toggle{display:inline-flex}.kpis{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}.content{padding:20px}.top{padding:0 18px}}
@media(max-width:560px){.kpis{grid-template-columns:1fr}.forms{grid-template-columns:1fr}.full{grid-column:auto}.checkgrid{grid-template-columns:1fr}.title-row{align-items:flex-start;flex-direction:column}}
/* Nômade Master V2 */
.muted{color:#77808b}.kpis.mini .kpi strong{font-size:23px}.dashboard-grid{align-items:start}.stack{display:grid;gap:16px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head a{font-size:12px;font-weight:800;color:#d94a29}.compact{min-height:34px;padding:0 11px;font-size:12px}.attention{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f2}.attention div{display:grid;gap:3px}.attention small{color:#7f8790}.attention a{font-size:12px;font-weight:900;color:#d94a29}.danger-line{border-left:3px solid #e64545;padding-left:10px}.empty{padding:18px 0;color:#7f8790}.pulse{width:9px;height:9px;border-radius:50%;background:#19a65a;box-shadow:0 0 0 5px #eaf8ef}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.metric-card span{color:#77808b;font-size:12px}.metric-card strong{display:block;font-size:22px;margin:8px 0 3px}.metric-card small{color:#8b939c}
@media(max-width:1000px){.grid3{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}}

/* NÔMADE MASTER V3 — MYSQL */
.db-pill{display:inline-flex;margin-top:9px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}
.db-ok{background:#eaf8ef;color:#13703a}.db-warn{background:#fff4df;color:#9b5b00}
.mini-select{height:34px;border:1px solid #dce1e6;border-radius:8px;background:#fff;padding:0 8px;font-size:12px}
.pending-b{background:#fff4df;color:#9b5b00}.paid-b{background:#eaf8ef;color:#13703a}
.overdue-b{background:#fff0f0;color:#b72b2b}.cancelled-b{background:#f1f2f4;color:#656b73}

/* NÔMADE MASTER V4 — PROVISIONAMENTO */
.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px}
textarea{font:inherit}
@media(max-width:700px){.compact-kpis{grid-template-columns:1fr}}

/* NÔMADE MASTER V6 — JOBS DE PROVISIONAMENTO */
.codebox{font-family:Consolas,monospace;background:#111216;color:#fff;border-radius:11px;padding:14px;overflow:auto;white-space:nowrap;font-size:12px}

/* NÔMADE MASTER V7 — MULTI-TENANT */
.tenant-note{background:#f7f8fa;border:1px solid #e2e6ea;border-radius:12px;padding:12px;margin-bottom:14px;color:#5f6873;line-height:1.45}
.tenant-note code{background:#eceff2;padding:2px 5px;border-radius:5px}
