/* X64 · Painel de Licenças */
@font-face { font-family: "IBM Plex Sans"; src: url("IBMPlexSans.ttf") format("truetype"); font-weight: 100 700; font-style: normal; font-display: swap; }
:root { --navy: #0D366A; --cyan: #00C1FA; --ink: #122033; --muted: #6B7785; --line: #E4E9EF; --bg: #EEF2F6; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); font-family: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 14px; }
a { color: var(--navy); }
.app { display: flex; min-height: 100vh; }
/* Sidebar */
.sidebar { width: 224px; flex: 0 0 224px; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 18px 14px 16px; position: sticky; top: 0; height: 100vh; }
.brand { background: #fff; border-radius: 10px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; margin-bottom: 22px; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a.active { background: rgba(0,193,250,.18); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--cyan); padding-left: 9px; }
.nav a.active svg { color: var(--cyan); }
.nav .pill { margin-left: auto; font-style: normal; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; color: rgba(255,255,255,.45); }
/* Main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; flex: 0 0 64px; background: #fff; border-bottom: 1px solid #DDE3EB; display: flex; align-items: center; padding: 0 24px; gap: 20px; }
.topbar h1 { font-size: 20px; font-weight: 650; letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.search { flex: 1; max-width: 420px; margin-left: auto; height: 36px; display: flex; align-items: center; gap: 8px; background: #F3F5F8; border: 1px solid #E1E6ED; border-radius: 8px; padding: 0 12px; }
.search svg { width: 16px; height: 16px; stroke: #7A8796; fill: none; stroke-width: 1.8; stroke-linecap: round; flex: 0 0 16px; }
.search input { border: 0; background: transparent; outline: none; flex: 1; font: inherit; font-size: 13px; color: var(--ink); }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 650; display: flex; align-items: center; justify-content: center; }
.user .meta { line-height: 1.2; }
.user .name { font-size: 13px; font-weight: 600; }
.user .role { font-size: 11px; color: var(--muted); }
.logout { margin-left: 6px; }
button.link, .link { background: none; border: 0; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
button.link:hover, .link:hover { text-decoration: underline; }
.content { flex: 1; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Flash */
.flash { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid; }
.flash-ok { background: #E9F7EF; border-color: #BFE5CF; color: #1B6B3E; }
.flash-err { background: #FDECEC; border-color: #F3C3BE; color: #A12E22; }
.flash-info { background: #E6F7FB; border-color: #B5E6F3; color: #0E5E75; }
/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 13px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: 0 1px 2px rgba(13,54,106,.04); text-decoration: none; color: inherit; }
.kpi:hover { border-color: #C9D3DF; }
.kpi .label { font-size: 12px; font-weight: 500; color: #5C6B7A; margin-bottom: 4px; }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -.04em; color: var(--navy); line-height: 1.1; }
.kpi .hint { font-size: 11px; color: #7A8796; margin-top: 3px; }
.kpi.warn .value { color: #C67A12; } .kpi.danger .value { color: #C0392B; } .kpi.info .value { color: #0891B2; }
.kpi-ico { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.kpi-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-navy { background: #E8EEF6; color: var(--navy); } .ico-teal { background: #E6F7FB; color: #0891B2; } .ico-amber { background: #FFF4E5; color: #C67A12; } .ico-red { background: #FDECEC; color: #C0392B; }
/* Cards / grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.card, .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(13,54,106,.04); overflow: hidden; }
.card { padding: 0 0 4px; }
.card.narrow { max-width: 760px; padding: 20px 22px; }
.card.narrow h2 { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.card h2 { font-size: 15px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; }
.card h3 { font-size: 13px; font-weight: 650; color: var(--navy); padding: 12px 16px 6px; }
.card > .form { padding: 18px 20px 16px; }
.empty { padding: 18px 16px; color: #7A8796; font-size: 13px; text-align: center; }
.muted { color: #7A8796; } .small { font-size: 11.5px; } .strong { font-weight: 650; } .pad { padding: 8px 16px 10px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .01em; }
.note { margin: 10px 16px; padding: 10px 12px; background: #F3F7FB; border-left: 3px solid var(--cyan); border-radius: 6px; font-size: 12.5px; color: #33475B; line-height: 1.5; }
.card > form + .note, .card.narrow .note { margin: 10px 0; }
/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field { height: 36px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #D5DCE4; border-radius: 8px; padding: 0 10px 0 12px; font-size: 13px; }
.field .lbl { color: var(--muted); white-space: nowrap; }
.field select, .field input { border: 0; background: transparent; font: inherit; font-weight: 550; color: var(--ink); outline: none; min-width: 70px; max-width: 170px; }
.field.grow { flex: 1; min-width: 150px; } .field.grow input { max-width: none; width: 100%; }
.spacer { flex: 1; }
.btn-primary, .btn-secondary, .btn-danger { height: 36px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; border: 0; box-shadow: 0 1px 2px rgba(13,54,106,.25); }
.btn-primary:hover { background: #0A2B55; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid #D5DCE4; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-danger { background: #C0392B; color: #fff; border: 0; }
.btn-primary svg, .btn-secondary svg, .btn-sm svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary.wide { width: 100%; height: 42px; margin-top: 4px; }
.btn-sm { height: 28px; padding: 0 10px; border-radius: 7px; background: #E6F7FB; color: #0E6A86; border: 1px solid #B5E6F3; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; vertical-align: middle; margin-left: 4px; }
.btn-sm:hover { background: #D3F1F9; }
/* Table */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th { text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #5C6B7A; background: #F7F9FB; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; }
.table-wrap thead th { border-top: 0; }
th.num, td.num { text-align: center; } th.acoes, td.acoes { text-align: right; padding-right: 14px; white-space: nowrap; }
tbody td { padding: 9px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFBFD; }
td a { text-decoration: none; }
.client { display: flex; flex-direction: column; gap: 1px; }
.client .cn { font-weight: 600; font-size: 13px; }
.client .cl { font-size: 11px; color: #7A8796; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-p0 { background: #E8EEF6; color: var(--navy); } .badge-p1 { background: #E6F7FB; color: #0E7490; } .badge-p2 { background: #F1ECFB; color: #5B3FA0; } .badge-p3 { background: #EAF6EC; color: #2C6E3A; }
.key { font-weight: 550; font-size: 12.5px; color: #3A4A5A; }
.tablets { font-variant-numeric: tabular-nums; font-weight: 600; } .tablets .of { color: #8A96A3; font-weight: 450; }
.date, .ver { font-variant-numeric: tabular-nums; white-space: nowrap; } .ver { color: #3A4A5A; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; color: #1B7A43; background: #E9F7EF; border-radius: 4px; padding: 0 4px; margin-left: 3px; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.state .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-on { background: #E9F7EF; color: #1B7A43; } .state-soon { background: #FFF4E5; color: #B86A0A; } .state-off { background: #FDECEC; color: #B03A2E; } .state-new { background: #E6F7FB; color: #0E6A86; }
form.inline { display: inline; }
.icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D5DCE4; background: #fff; border-radius: 7px; color: var(--navy); margin-left: 4px; vertical-align: middle; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.warn { color: #C0392B; } .icon-btn.ok { color: #1B7A43; }
.caption { text-align: center; font-size: 11.5px; color: #7A8796; margin-top: -6px; }
/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #3A4A5A; }
.form input:not([type=checkbox]), .form select, .form textarea { height: 38px; border: 1px solid #D5DCE4; border-radius: 8px; padding: 0 11px; font: inherit; font-size: 13.5px; font-weight: 450; color: var(--ink); background: #fff; outline: none; }
.form textarea { height: auto; padding: 9px 11px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,193,250,.18); }
.form small { font-weight: 400; color: #7A8796; font-size: 11.5px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; grid-column: 1 / -1; }
.form label.check input { width: 16px; height: 16px; accent-color: var(--navy); }
.actions { display: flex; gap: 10px; align-items: center; }
.inline-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; padding: 6px 0; }
.inline-form label.check { grid-column: auto; padding-bottom: 10px; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; padding: 4px 16px 10px; font-size: 13px; }
.dl dt { color: var(--muted); } .dl dd { word-break: break-all; }
.log { list-style: none; padding: 0 16px 12px; font-size: 12px; color: #3A4A5A; display: flex; flex-direction: column; gap: 5px; }
.log .ok { color: #1B7A43; font-weight: 700; } .log .no { color: #B03A2E; font-weight: 700; }
/* Auth */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); background-image: radial-gradient(circle at 80% 10%, rgba(0,193,250,.25), transparent 45%); padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 30px 30px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; justify-content: center; } .auth-brand img { height: 54px; }
.auth-card h1 { font-size: 20px; color: var(--navy); text-align: center; letter-spacing: -.02em; }
.auth-card .muted { font-size: 13px; line-height: 1.5; text-align: center; }
.auth-foot { text-align: center; font-size: 11px; color: #9AA5B1; margin-top: 4px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid2, .grid-form { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sidebar { display: none; } .topbar .search, .user .meta { display: none; } .form.two { grid-template-columns: 1fr; } .table-wrap, .card { overflow-x: auto; } }
