:root { --border: #c7d3dd; --border-soft: #d8e2e9; }
.button.danger{background:linear-gradient(145deg,#cc443a,#a92d25);color:#fff;box-shadow:0 6px 16px rgba(193,60,50,.2)}.button.danger:hover{box-shadow:0 8px 20px rgba(193,60,50,.3)}.force-sync-panel{border-color:#ebc2bd}.force-sync-panel>.help{margin:-7px 0 17px}.force-sync-confirm{display:flex!important;align-items:flex-start;flex-direction:row!important;gap:9px!important;padding:11px 12px;margin:0 0 15px!important;border-radius:9px;background:var(--danger-bg);color:var(--danger)!important}.force-sync-confirm input{width:17px!important;height:17px!important;min-width:17px!important;margin:0!important;padding:0!important;accent-color:var(--danger)}.force-sync-confirm span{line-height:1.45;font-weight:650}html[data-theme="dark"] .force-sync-panel{border-color:#69423f}
.access-key .access-key-pdf{color:var(--blue-dark);text-decoration:underline;text-decoration-color:rgba(23,121,212,.35);text-underline-offset:3px}.access-key .access-key-pdf:hover{color:var(--blue);text-decoration-color:currentColor}
.remember-login{display:flex!important;align-items:center;gap:9px;margin:13px 0 9px!important;cursor:pointer;font-size:12px!important}.remember-login input{width:17px!important;height:17px!important;margin:0!important;padding:0!important;accent-color:#1779d4;flex:0 0 auto}.remember-login span{color:#405b71;font-weight:650}
.dashboard-document-tabs { margin-top: 2px; }
.dashboard-tab-search { grid-template-columns: 170px 170px minmax(300px, 1fr) auto; border-radius: 0 0 14px 14px; }
.theme-toggle { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; }
.theme-toggle span { font-size: 14px; line-height: 1; }.theme-toggle b { font-size: 10px; }.theme-moon { display: none; }
th + th, td + td { border-left: 1px solid var(--border-soft); }
html[data-theme="dark"] { color-scheme: dark; --navy: #e5eef7; --navy-deep: #071522; --navy-soft: #183c5d; --blue: #4ca6f5; --blue-dark: #72b8f5; --cyan: #60c5ee; --bg: #0d1721; --card: #152331; --text: #e5edf4; --muted: #91a4b6; --border: #405466; --border-soft: #304252; --success: #49c99a; --success-bg: #16382f; --warning: #e1ad54; --warning-bg: #3b2e17; --danger: #f27d73; --danger-bg: #3d211f; --shadow: 0 8px 24px rgba(0,0,0,.22); --shadow-lg: 0 18px 50px rgba(0,0,0,.45); }
html[data-theme="dark"],html[data-theme="dark"] body { background: #0d1721; color: var(--text); }
html[data-theme="dark"] body { background: radial-gradient(circle at 90% 0,#142d40 0,transparent 28rem),var(--bg); }
html[data-theme="dark"] .topbar,html[data-theme="dark"] .dashboard-filters,html[data-theme="dark"] .panel,html[data-theme="dark"] .table-panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .invoice-board,html[data-theme="dark"] .sync-status-card,html[data-theme="dark"] dialog,html[data-theme="dark"] .column-choice { background: #152331; }
html[data-theme="dark"] th { background: #1c2c3a; color: #9eb0c0; }html[data-theme="dark"] td { color: #b8c7d4; }html[data-theme="dark"] tbody tr:hover { background: #192a38; }
html[data-theme="dark"] .archive-toolbar,html[data-theme="dark"] .batch-toolbar { background: #182734; }
html[data-theme="dark"] .document-tabs a { background: #192936; }html[data-theme="dark"] .document-tabs a.active { background: #152331; color: #82c5ff; }html[data-theme="dark"] .document-tabs a.active::after { background: #152331; }html[data-theme="dark"] .party-group { background: #203341 !important; }
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .filters input,html[data-theme="dark"] .filters select,html[data-theme="dark"] .panel form input,html[data-theme="dark"] .panel form select,html[data-theme="dark"] .archive-search input,html[data-theme="dark"] .archive-search select,html[data-theme="dark"] .dashboard-filters input,html[data-theme="dark"] .dashboard-filters select { background: #101c27; color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .logout,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .row-actions a,html[data-theme="dark"] .row-actions span,html[data-theme="dark"] .copy-key,html[data-theme="dark"] .column-choice>div button,html[data-theme="dark"] .pagination a { background: #1a2a38; color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .theme-sun { display: none; }html[data-theme="dark"] .theme-moon { display: inline; }html[data-theme="dark"] .access-key .mono { color: #a9bdcd; }html[data-theme="dark"] .certificate-overview strong { color: var(--text); }html[data-theme="dark"] .notice { background: linear-gradient(145deg,#152331 35%,#173146); }html[data-theme="dark"] .badge.running,html[data-theme="dark"] .document-pill { background: #19344b; color: #82c5ff; }html[data-theme="dark"] .column-choice label small { background: #223746; }html[data-theme="dark"] .sync-summary b { color: #b9c8d4; }html[data-theme="dark"] .sync-summary small { color: #899ead; }
html[data-theme="dark"] .sidebar { background: linear-gradient(180deg,#102a43 0,#071522 100%); color: #fff; }
html[data-theme="dark"] .sidebar .nav-label { color: #7893aa; }
html[data-theme="dark"] .sidebar nav a { color: #b9c9d7; }
html[data-theme="dark"] .sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
html[data-theme="dark"] .sidebar nav a.active { background: linear-gradient(100deg,rgba(73,183,232,.22),rgba(23,121,212,.1)); color: #fff; }
html[data-theme="dark"] .sidebar .nav-icon { color: #87a4ba; }
html[data-theme="dark"] .sidebar a.active .nav-icon { color: #62c8f4; }
html[data-theme="dark"] .sidebar-status { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .sidebar-status small,html[data-theme="dark"] .sidebar-footer { color: #829bb0; }
@media(max-width:1050px){.dashboard-tab-search{grid-template-columns:1fr 1fr}.dashboard-tab-search .unified-search{grid-column:1/-1}}
@media(max-width:760px){.theme-toggle b{display:none}.theme-toggle{width:36px;justify-content:center;padding:5px}.dashboard-tab-search{grid-template-columns:1fr}.dashboard-tab-search .unified-search{grid-column:auto}th+th,td+td{border-left:0}html[data-theme="dark"] table tr{background:#152331}}
.auto-sync-option{position:relative;display:flex!important;align-items:center!important;justify-content:space-between;flex-direction:row!important;gap:20px!important;padding:15px 16px;margin:0 0 14px!important;border:1px solid var(--border);border-radius:12px;background:var(--card)}.auto-sync-option>span{display:flex;flex-direction:column;gap:5px}.auto-sync-option strong{color:var(--text);font-size:13px}.auto-sync-option small{color:var(--muted);font-size:11px;font-weight:500}.auto-sync-option input{position:absolute!important;opacity:0;width:1px!important;height:1px!important}.auto-sync-option i{position:relative;flex:0 0 46px;width:46px;height:25px;border-radius:20px;background:#9cabb7;transition:.2s}.auto-sync-option i:after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.25);transition:.2s}.auto-sync-option input:checked+i{background:var(--success)}.auto-sync-option input:checked+i:after{transform:translateX(21px)}.auto-sync-option input:focus-visible+i{outline:3px solid rgba(23,121,212,.25)}.auto-sync-state{display:flex;flex-direction:column;gap:3px;margin-bottom:15px;padding:11px 13px;border-radius:9px;font-size:11px}.auto-sync-state.enabled{background:var(--success-bg);color:var(--success)}.auto-sync-state.disabled{background:var(--warning-bg);color:var(--warning)}.auto-sync-state span{font-size:10px}
.batch-actions{display:flex;align-items:center;gap:8px}.batch-actions [data-batch-download-count],.batch-actions [data-batch-science-count]{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:rgba(255,255,255,.2)}.batch-actions .secondary [data-batch-download-count]{background:#eaf4fd;color:var(--blue-dark)}@media(max-width:760px){.batch-actions{width:100%;flex-direction:column}.batch-actions .button{width:100%}}
.sidebar nav>a[href$="/notas"]{display:none}.overview-sync-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:17px}.overview-sync-card{padding:16px 17px;background:var(--card);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}.overview-sync-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.overview-sync-card dl{margin:12px 0 0}.overview-sync-card dl>div{display:flex;justify-content:space-between;gap:15px;padding-top:8px;border-top:1px solid var(--border-soft);font-size:10px}.overview-sync-card dt{color:var(--muted)}.overview-sync-card dd{margin:0;text-align:right;color:var(--text);font-weight:750}.overview-sync-card.auto-status p{margin:15px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.overview-search{margin-bottom:17px}.overview-search label small{font-weight:500;color:var(--muted)}html[data-theme="dark"] .overview-sync-card{background:#152331}@media(max-width:1050px){.overview-sync-grid{grid-template-columns:1fr 1fr}.overview-sync-card.auto-status{grid-column:1/-1}}@media(max-width:760px){.overview-sync-grid{grid-template-columns:1fr}.overview-sync-card.auto-status{grid-column:auto}}
