/* Uso e créditos: extrato mensal (laboratório e Administrador). */
.usage-center{max-width:1040px;margin:0 auto;color:#10133F;display:flex;flex-direction:column;gap:18px}
.usage-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.usage-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:4px}
.usage-head h1{margin:0}
.usage-month{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#555A6E}
.usage-month select{min-height:40px;padding:6px 12px;border-radius:8px;font-weight:600;color:#10133F}
.usage-rule{margin:0;padding:12px 16px;border:1px solid #D3E9F3;border-radius:10px;background:#F5FBFE;font-size:13px;line-height:1.6;color:#3A3F55}
.usage-state{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;background:#F7F8FC;border:1px solid #E6E8EF;color:#555A6E;white-space:nowrap}
.usage-state:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.usage-state-closed{background:#F2FAF6;border-color:#CFE7DE;color:#246955}
.usage-state-open{background:#FFF9ED;border-color:#F1DFB8;color:#8A6A1F}
.usage-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.usage-tile{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid #E6E8EF;border-radius:12px;background:#fff}
.usage-tile>span:first-child{font-size:11px;color:#555A6E;font-weight:500}
.usage-tile b{font-size:26px;line-height:1.15;font-weight:650;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.usage-tile b em{font-style:normal;font-size:14px;font-weight:500;color:#555A6E;letter-spacing:0}
.usage-tile small{font-size:11px;color:#555A6E}
.usage-tile-bar{display:block;height:5px;border-radius:4px;background:#EEF8FC;overflow:hidden}
.usage-tile-bar i{display:block;height:100%;border-radius:4px;background:#1599D1}
.usage-tile-bar-over i{background:#B7791F}
.usage-tile-money{background:#10133F;border-color:#10133F;color:#fff}
.usage-tile-money>span:first-child,.usage-tile-money small{color:#C9CCE0}
.usage-card{background:#fff;border:1px solid #E6E8EF;border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.usage-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.usage-card-head h2,.usage-card h3{margin:0;font-size:15px;font-weight:600}
.usage-center h3{margin:0;font-size:15px;font-weight:600}
.usage-origin{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.usage-origin li{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(80px,1fr) 56px;align-items:center;gap:16px;padding:11px 0;border-bottom:1px solid #F0F1F5}
.usage-origin-label{display:flex;flex-direction:column;gap:2px;font-size:13px;font-weight:500}
.usage-origin-label small{font-size:11px;color:#555A6E;font-weight:400}
.usage-origin-bar{display:block;height:6px;border-radius:4px;background:#F2F4F8;overflow:hidden}
.usage-origin-bar i{display:block;height:100%;border-radius:4px;background:#1599D1}
.usage-origin li b{text-align:right;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.usage-origin-total{display:flex;justify-content:space-between;align-items:center;padding-top:4px;font-size:13px;font-weight:600}
.usage-origin-total b{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums}
.usage-table{width:100%;border-collapse:collapse;font-size:12.5px;background:#fff}
.usage-table caption{text-align:left;font-weight:600;padding:0 0 6px;font-size:14px}
.usage-table th,.usage-table td{padding:10px 12px;border-bottom:1px solid #F0F1F5;text-align:left;vertical-align:top}
.usage-table thead th{background:#F7F8FC;font-size:11px;font-weight:600;color:#555A6E;text-transform:none;letter-spacing:0;white-space:nowrap}
.usage-table thead th:first-child{border-top-left-radius:8px}.usage-table thead th:last-child{border-top-right-radius:8px}
.usage-table tbody tr:hover{background:#FAFBFE}
.usage-table tbody th{font-weight:500}
.usage-table td:last-child{text-align:right;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
.usage-table small{color:#555A6E;font-size:11px}
.usage-total th,.usage-total td{font-weight:700;border-top:2px solid #E6E8EF}
.usage-hint{font-size:12px;color:#555A6E;margin:4px 0}
.usage-empty{margin:0;padding:22px;text-align:center;font-size:13px;color:#555A6E;background:#FAFBFE;border:1px dashed #E1E4EC;border-radius:10px}
.usage-error{color:#A83A3A;font-size:13px;margin:6px 0}
.usage-adjust,.usage-labform{padding:18px 20px;border:1px dashed #C9D2E0;border-radius:12px;background:#FAFBFE}
.usage-adjust h3,.usage-labform h3{margin:0 0 6px}
.usage-adjust-row,.usage-labform-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:8px}
.usage-adjust label,.usage-labform label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;margin-bottom:8px}
.usage-adjust input,.usage-adjust select,.usage-labform input,.usage-labform select{min-height:40px;padding:6px 10px;font-weight:400}
.usage-audit{background:#fff;border:1px solid #E6E8EF;border-radius:12px;padding:14px 20px}
.usage-audit summary{cursor:pointer;font-size:13px;font-weight:600;min-height:28px;display:flex;align-items:center}
.usage-audit[open] summary{margin-bottom:10px}
@media(max-width:900px){.usage-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.usage-table{font-size:12px}.usage-table th,.usage-table td{padding:8px}.usage-tile b{font-size:21px}.usage-card{padding:14px}.usage-origin li{grid-template-columns:minmax(0,1fr) 48px}.usage-origin-bar{display:none}}

/* Extrato: barra de filtros, botões de download e páginas. */
.usage-tool{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #E6E8EF;border-radius:8px;background:#fff;color:#10133F;font-size:12px;font-weight:600}
.usage-tool:hover{background:#EEF8FC;border-color:#BFE1F0}
.usage-tool svg{width:14px;height:14px;color:#1599D1}
/* Painel do Administrador: filtros, paginação, ferramentas do extrato e alertas de consumo. */
.usage-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0;padding:12px;background:#F7F8FC;border-radius:10px}
.usage-filters label{display:grid;gap:4px;font-size:11px;font-weight:600;color:#555A6E}
.usage-filters input,.usage-filters select{min-height:36px;background:#fff}
.usage-filters button{min-height:36px}
.usage-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.usage-pager{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:10px 0}
.pa-alert-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}
.pa-alert-list li{padding:6px 10px;border-left:4px solid #b7791f;background:rgba(183,121,31,.08);border-radius:4px}
.pa-alert-list li.pa-alert-over_limit{border-left-color:#c0392b;background:rgba(192,57,43,.08)}
.pa-alert-list li.pa-alert-inactive{border-left-color:#626779;background:rgba(98,103,121,.08)}
@media(max-width:640px){.usage-filters label,.usage-filters input,.usage-filters select{width:100%}}

/* Contador de créditos no topo (aprovado: rascunho B) e a janelinha que abre ao clicar. */
.topbar .usage-chip-slot{margin-left:auto}
.usage-chip{position:relative}
.usage-chip-btn{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 11px 0 9px;border:1px solid #D3E9F3;border-radius:999px;background:#F5FBFE;color:#10133F;font-size:11.5px;font-weight:500;letter-spacing:.1px;white-space:nowrap;transition:background .15s,border-color .15s}
.usage-chip-btn:hover,.usage-chip-btn[aria-expanded="true"]{background:#EEF8FC;border-color:#9FD3EA}
.usage-chip-btn svg{width:14px;height:14px;color:#1599D1}
.usage-chip-btn>span:not(.uc-bar){font-variant-numeric:tabular-nums}
.usage-chip-btn.usage-chip-over{border-color:#E8C48F;background:#FFF8EE}
.usage-chip-over svg{color:#B7791F}
.uc-bar{display:block;width:38px;height:4px;border-radius:4px;background:#DCEEF6;overflow:hidden}
.uc-bar i{display:block;height:100%;border-radius:4px;background:#1599D1}
.usage-chip-over .uc-bar i{background:#B7791F}
.usage-chip-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:360px;max-width:calc(100vw - 32px);box-sizing:border-box;background:#fff;border:1px solid #E6E8EF;border-radius:14px;box-shadow:0 18px 50px rgba(16,19,63,.18);padding:18px;display:flex;flex-direction:column;gap:12px;color:#10133F}
.usage-chip-panel[hidden]{display:none}
.uc-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.uc-head h2{margin:0;font-size:15px;font-weight:600}
.uc-tag{font-size:10px;font-weight:600;color:#1D6E91;background:#EEF8FC;padding:4px 8px;border-radius:5px;white-space:nowrap}
.uc-boxes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;text-align:center}
.uc-box{background:#F7F8FC;border-radius:10px;padding:10px 4px;display:flex;flex-direction:column;gap:2px}
.uc-box b{font-size:20px;font-weight:650}
.uc-box span{font-size:10px;color:#555A6E}
.uc-left{margin:0;font-size:12px;color:#555A6E;line-height:1.5}
.uc-left b{color:#10133F}
.usage-chip-panel h3{margin:4px 0 0;font-size:12px;font-weight:600;color:#555A6E;border-top:1px solid #E6E8EF;padding-top:12px}
.uc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:12px}
.uc-list li{display:flex;justify-content:space-between;gap:10px}
.uc-list small{display:block;color:#555A6E;margin-top:2px}
.uc-open{min-height:44px;width:100%;border:0;border-radius:8px;background:#10133F;color:#fff;font-size:13px;font-weight:600}
.uc-open:hover{background:#23286b}
@media(max-width:760px){.usage-chip-btn>span:not(.uc-bar){font-size:12px}.uc-bar{display:none}.usage-chip-panel{position:fixed;top:72px;right:16px;left:16px;width:auto}}

/* Período de teste dos créditos: contador e menu cinza, sem clique ("Em breve"). */
.usage-chip-btn.usage-chip-soon,.usage-chip-btn.usage-chip-soon:hover{background:#F3F4F7;border-color:#E1E3EA;color:#7A7F92;cursor:not-allowed;opacity:1}
.usage-chip-soon svg{color:#A3A8B8}
.sidebar .nav button[data-view="usage"].reading-maintenance:disabled,.sidebar .nav button[data-view="usage"].reading-maintenance:disabled:hover{background:#24283f;color:#a8aec0;border:1px solid #3d435b;box-shadow:none;cursor:not-allowed;opacity:1}
