: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}}

/* Shell VKPro 1.5: mesmo padrão visual dos demais aplicativos. */
.sidebar{top:0;width:260px;background:#fff;color:var(--text);border-right:1px solid var(--border);box-shadow:none}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;min-height:86px;padding:18px 18px 14px}.sidebar-brand>a{display:flex;align-items:center;gap:12px;min-width:0;color:var(--text);text-decoration:none}.sidebar-brand>a>span:last-child{display:flex;min-width:0;flex-direction:column}.sidebar-brand small{color:var(--blue);font-size:9px;font-weight:900;letter-spacing:.17em}.sidebar-brand strong{margin-top:2px;overflow:hidden;color:var(--navy);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.vk-mark{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:14px;background:linear-gradient(145deg,#2f80ed,#155fc0);color:#fff;font-weight:900;box-shadow:0 9px 20px rgba(37,99,235,.22)}.sidebar-brand>button{display:none;width:40px;height:40px;border:0;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}.sidebar .nav-label{padding:15px 26px 8px;color:#94a3b8}.sidebar nav{padding:0 12px}.sidebar nav a{color:#526579}.sidebar nav a:hover{background:#f5f8fb;color:var(--navy)}.sidebar nav a.active{background:#eaf3ff;color:#165db6}.sidebar nav a.active:before{left:-12px;background:#2563eb;box-shadow:none}.sidebar .nav-icon{color:#8294a6}.sidebar a.active .nav-icon{color:#2563eb}.sidebar-status{background:#f4f9ff;border-color:#dbeafe}.sidebar-status b{color:var(--navy)}.sidebar-status small{color:#71859a}.sidebar-account{margin:0 19px 12px;padding-top:15px;border-top:1px solid var(--border-soft);display:flex;flex-direction:column}.sidebar-account strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.sidebar-account small{margin-top:3px;color:var(--muted);font-size:10px}.sidebar-footer{color:#8a9aaa}.topbar{left:260px;height:76px;padding:0 28px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}.topbar-start{display:flex;align-items:center;gap:12px}.product-context{display:flex;flex-direction:column}.product-context small{color:var(--blue);font-size:9px;font-weight:900;letter-spacing:.15em}.product-context strong{margin-top:2px;color:var(--navy);font-size:17px}.main{margin-left:260px;padding-top:108px}.company-switcher label{display:flex;flex-direction:column;gap:3px}.company-switcher label>span{color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.company-switcher select{width:min(330px,28vw);height:38px;padding:6px 34px 6px 10px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text);font-size:11px;font-weight:750;outline:none}.company-switcher select:focus{border-color:#67aee8;box-shadow:0 0 0 3px rgba(23,121,212,.1)}
html[data-theme="dark"] .sidebar{background:#111f2b;border-color:#304252}html[data-theme="dark"] .sidebar-brand strong,html[data-theme="dark"] .sidebar-status b{color:var(--text)}html[data-theme="dark"] .sidebar nav a{color:#aebdca}html[data-theme="dark"] .sidebar nav a:hover{background:#182a38;color:#fff}html[data-theme="dark"] .sidebar nav a.active{background:#19344b;color:#82c5ff}html[data-theme="dark"] .sidebar-status{background:#152d3f;border-color:#28475c}html[data-theme="dark"] .topbar{background:rgba(21,35,49,.96)}html[data-theme="dark"] .company-switcher select{background:#101c27;border-color:var(--border);color:var(--text)}
@media(max-width:900px){.topbar{left:0;height:70px;padding:0 14px}.sidebar{top:0;z-index:40;width:min(300px,88vw);transform:translateX(-100%);transition:.22s ease}.sidebar.open{transform:none}.sidebar-brand>button{display:grid;place-items:center}.scrim.show{z-index:35;inset:0}.main{margin-left:0;padding-top:94px}.company-switcher select{width:min(290px,38vw)}.top-actions{gap:8px}.user-chip>span:not(.avatar){display:none}}
@media(max-width:600px){.product-context small{display:none}.product-context strong{font-size:14px}.company-switcher label>span{display:none}.company-switcher select{width:38vw;max-width:180px}.theme-toggle{display:none}.top-actions{margin-left:0}.topbar{justify-content:space-between}.main{padding-left:13px;padding-right:13px}.trial-notice{margin-top:-8px}.user-chip{display:none}}
.document-viewer{display:flex;min-height:calc(100vh - 132px);flex-direction:column}.document-viewer-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}.document-viewer-toolbar h1{margin:8px 0 3px;color:var(--navy);font-size:24px}.document-viewer-toolbar p{margin:0;color:var(--muted);font-size:12px}.document-viewer-actions{display:flex;gap:9px}.document-share-feedback{min-height:18px;margin:0 0 7px;color:var(--success);font-size:11px;font-weight:700}.document-frame-wrap{flex:1;min-height:680px;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:#6c7074;box-shadow:var(--shadow)}.document-frame{display:block;width:100%;height:calc(100vh - 245px);min-height:680px;border:0;background:#6c7074}html[data-theme="dark"] .document-viewer-toolbar h1{color:var(--text)}@media(max-width:760px){.document-viewer{min-height:calc(100vh - 106px)}.document-viewer-toolbar{align-items:stretch;flex-direction:column}.document-viewer-actions{display:grid;grid-template-columns:1fr 1fr}.document-viewer-actions .button{width:100%}.document-frame-wrap,.document-frame{min-height:calc(100vh - 280px)}.document-frame{height:calc(100vh - 280px)}}
.company-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-bottom:18px}.company-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 16px;background:var(--card);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}.company-card.selected{border-color:#9ac7f4;box-shadow:0 0 0 2px rgba(37,99,235,.08)}.company-card>div{display:flex;align-items:center;gap:11px;min-width:0}.company-card>div>span:last-child{display:flex;min-width:0;flex-direction:column}.company-card strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.company-card small{margin-top:3px;color:var(--muted);font-size:10px}.company-card-mark{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:11px;background:#eaf3ff;color:#165db6;font-weight:900}.company-card form{margin:0}.company-card .button{min-height:34px;padding:6px 10px;font-size:10px}html[data-theme="dark"] .company-card-mark{background:#19344b;color:#82c5ff}@media(max-width:600px){.company-list{grid-template-columns:1fr}.company-card{align-items:flex-start;flex-direction:column}.company-card form,.company-card form .button{width:100%}}
