:root{font-family:Inter,ui-sans-serif,system-ui,Arial;color:#152947;background:#f3f6fb}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:#18549d}button,input,select{font:inherit}button,.btn{border:0;border-radius:11px;padding:11px 17px;background:#092d59;color:white;cursor:pointer;display:inline-block}button:hover,.btn:hover{background:#18549d;color:white}.secondary{background:#edf3fa;color:#143969}.secondary:hover{background:#dae9fa;color:#092d59}.shell{min-height:100vh;display:grid;grid-template-columns:254px 1fr}.side{background:linear-gradient(160deg,#061c36,#0b386d);padding:25px 17px;color:#fff}.side img{width:158px;max-height:90px;object-fit:contain;display:block;margin:0 auto 15px}.brand{font-size:21px;font-weight:800;letter-spacing:.5px;text-align:center;color:#f5c875}.side small{display:block;text-align:center;color:#bdd1e5;margin:8px 0 30px}.nav{display:block;border-radius:12px;padding:12px 15px;color:#e5edf6;margin:7px 0}.nav:hover{background:#ffffff18;color:#fff}.main{padding:32px;max-width:1460px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.top h1{font-size:29px;margin:0 0 7px}.muted{color:#718198}.card{background:white;border:1px solid #e3eaf2;border-radius:18px;padding:22px;box-shadow:0 8px 30px #163d6809;margin:0 0 20px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metric{font-size:30px;font-weight:800;color:#082e5e;margin:10px 0 0}.gold{color:#b28737}.row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.spread{justify-content:space-between}input,select{min-height:43px;border:1px solid #cedbea;border-radius:10px;padding:10px 13px;color:#20334a;background:white;max-width:100%}input[type=file]{width:100%}.field{display:grid;gap:6px;margin:13px 0}.field label{font-size:13px;color:#546783;font-weight:650}.files{width:100%;border-collapse:collapse}.files th{text-align:left;color:#69809c;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.files td,.files th{padding:15px 10px;border-bottom:1px solid #edf1f6}.files td:last-child{text-align:right}.tag{font-size:12px;color:#546785;background:#edf3fb;border-radius:20px;padding:5px 10px;display:inline-block}.alert{border-radius:11px;background:#fff7e3;border:1px solid #f3dfac;padding:13px;margin:15px 0}.auth{max-width:450px;margin:8vh auto;padding:18px}.auth-logo{display:block;width:180px;max-height:130px;object-fit:contain;margin:0 auto 10px}.small{font-size:13px}.danger{color:#b32338}.inline{display:inline}.foot{font-size:12px;color:#8390a2;margin-top:30px}@media(max-width:850px){.shell{display:block}.side{padding:14px}.side img{width:94px;max-height:53px;margin:0}.side .brand,.side small{display:none}.navs{display:flex;overflow-x:auto}.nav{white-space:nowrap;padding:9px 13px}.main{padding:17px}.top{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.card{padding:15px;overflow:auto}.files{min-width:600px}}@media(min-width:851px) and (max-width:1120px){.grid{grid-template-columns:1fr 1fr}}
/* Arqui GED V1.1 - painel e navegação */
:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#112b4d;background:#f2f5fa} .shell{grid-template-columns:246px minmax(0,1fr)}.side{background:linear-gradient(175deg,#061931,#08294f 65%,#0c3563);min-height:100vh;display:flex;flex-direction:column;padding:23px 14px;position:sticky;top:0;height:100vh}.side-head{display:flex;align-items:center;gap:11px;padding:4px 9px 28px;border-bottom:1px solid #ffffff1d}.side-head img{width:70px;max-height:76px;margin:0}.side-head .brand{text-align:left;font-size:20px}.side-head small{margin:2px 0 0;text-align:left;font-size:11px}.nav-caption{font-size:10px;letter-spacing:2px;color:#98b0cb;margin:26px 14px 8px}.navs{display:block}.nav{font-size:14px;padding:13px 16px;margin:4px 0;font-weight:560}.nav-symbol{display:inline-flex;align-items:center;justify-content:center;width:25px;color:#e2b95f;font-size:19px}.nav.active{background:linear-gradient(90deg,#d9ad53,#f3d78a);color:#071b34;font-weight:780;box-shadow:0 6px 24px #0003}.nav.active .nav-symbol{color:#071b34}.nav:hover:not(.active){background:#ffffff19}.side-bottom{font-size:12px;color:#b7c7d9;margin-top:auto;padding:22px 13px 0;border-top:1px solid #ffffff1d}.online-dot{background:#45d3a4;width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px}.side-bottom form{margin-top:10px}.logout{background:transparent;text-align:left;width:100%;border:1px solid #ffffff20}.main{max-width:none;padding:34px 38px;align-self:start}.top{margin-bottom:26px}.top h1{font-size:32px;letter-spacing:-.9px;margin:8px 0}.top-right{display:flex;align-items:center;gap:15px}.avatar{background:#092e59;color:#f4d18a;border:2px solid #d7ab56;font-size:17px;font-weight:800;width:43px;height:43px;border-radius:15px;display:grid;place-items:center}.eyebrow{font-size:11px;letter-spacing:1.4px;color:#ad822d;font-weight:800}.eyebrow span{color:#8492a7}.hero{background:linear-gradient(112deg,#061c38,#0d3a70);border-radius:22px;display:flex;justify-content:space-between;align-items:center;min-height:240px;padding:28px 36px;margin-bottom:20px;color:white;position:relative;overflow:hidden;box-shadow:0 15px 35px #153f6d24}.hero:after{content:"";position:absolute;border:1px solid #d7b06040;width:370px;height:370px;border-radius:50%;right:-100px;top:-120px}.hero h2{font-size:32px;line-height:1.16;margin:12px 0;letter-spacing:-.7px}.hero em{font-style:normal;color:#e9c67a}.hero p{font-size:13px;color:#c6d7ea;margin:0 0 20px}.hero-kicker{font-size:10px;letter-spacing:2px;color:#e3bf70;font-weight:700}.hero-mark{font-size:100px;font-weight:900;letter-spacing:-14px;color:#d2a74730;margin-right:8%;white-space:nowrap}.hero-mark span{color:#fff1}.hero-button{background:#dbb468;color:#082346;font-weight:750}.hero-button:hover{background:#f0d08a;color:#082346}.card{border-radius:16px;box-shadow:0 8px 28px #092d590a}.stat{padding:24px;min-height:153px}.stat-icon{float:right;border-radius:13px;background:#f4e8cb;color:#a67722;width:39px;height:39px;display:grid;place-items:center;font-size:20px}.metric{font-size:35px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.section-heading h3{margin:0 0 5px;font-size:19px}.section-heading p{margin:0}.context-bar{border:1px solid #e1e9f3;border-radius:14px;background:white;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;margin-bottom:20px;flex-wrap:wrap}.context-bar label{font-size:13px;font-weight:740}.files td{font-size:13px}.files th{font-size:11px}.file-icon,.folder-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;margin-right:9px;background:#e9f1fc;color:#0e477d;font-size:16px}.folder-icon{background:#fbf0d7;color:#b88725}.company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.company-tile{border:1px solid #e1e8f0;border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:12px;color:#102f56}.company-tile:hover{border-color:#d2a857;background:#fffcf5}.company-icon{font-size:28px;color:#be9845}.callout{padding:15px 18px;background:#fdf8e9;border:1px solid #f2e3be;border-radius:13px;color:#755923;font-size:13px;margin:15px 0}.form-spaced{padding:17px;background:#f7f9fc;border-radius:12px;margin:13px 0}.action-details{display:inline-block}.action-details summary{list-style:none;cursor:pointer}.action-details summary::-webkit-details-marker{display:none}.action-details[open]{display:block;width:100%;margin:10px 0}.toolbar{margin-bottom:17px}.table-scroll{overflow-x:auto}.search-form input{min-width:235px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin:20px 0}.settings-grid>div{padding:20px;background:#f7f9fc;border-radius:12px}.success{background:#eaf9ee;color:#196635;border:1px solid #a9dec0;border-radius:12px;padding:13px;margin-bottom:20px}.foot{padding:12px 0}.auth .card{box-shadow:0 15px 60px #08284824}.auth-logo{width:210px;max-height:150px}@media(max-width:980px){.shell{display:block}.side{position:static;min-height:auto;height:auto;display:block;padding:13px 16px}.side-head{padding:0;border:0}.side-head img{width:48px;height:48px}.side-head .brand{font-size:17px}.side-head small{display:block}.nav-caption,.side-bottom{display:none}.navs{display:flex;gap:5px;overflow-x:auto;padding-top:10px}.nav{white-space:nowrap;padding:10px 12px;font-size:12px}.nav-symbol{width:20px}.main{padding:21px}.hero-mark{display:none}.hero{min-height:auto}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.main{padding:14px}.hero{padding:23px}.hero h2{font-size:25px}.grid{grid-template-columns:1fr}.stat{min-height:115px}.top{align-items:start;flex-direction:column}.top h1{font-size:26px}.context-bar{align-items:start}.context-bar form{width:100%}.context-bar select{flex:1}.settings-grid{grid-template-columns:1fr}.company-grid{grid-template-columns:1fr}.files{min-width:570px}.top-right{display:none}.search-form{width:100%}.search-form input{width:100%}}

/* Arqui GED v1.2 */
.doc-breadcrumb{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0;font-size:14px}.doc-breadcrumb a{color:#184c89;text-decoration:none;font-weight:600}.doc-breadcrumb span{color:#b99850}.zip-form{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:15px 0 22px}.zip-form button{white-space:normal}.actions{flex-wrap:wrap}@media(max-width:640px){.doc-breadcrumb{font-size:12px}.zip-form button{width:100%}}

/* Arqui GED 1.3 */
.permission-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:16px 0;align-items:end}.permission-form label{display:grid;gap:7px;color:#213b62;font-weight:600}.permission-form select{width:100%;padding:12px;border:1px solid #d7e1ef;border-radius:9px;background:#fff}.permission-checks{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.permission-checks label{display:block;padding:10px 12px;background:#f4f7fc;border-radius:8px}code{overflow-wrap:anywhere;font-size:1.1rem}

/* Arqui GED 1.4 */
.ged-form{margin:22px 0;padding:22px;border:1px solid #d8e1ee;border-radius:18px;background:#f9fbff;display:grid;gap:18px}.ged-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ged-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#163357}.ged-span{grid-column:span 2}.ged-form input,.ged-form select{width:100%;max-width:100%;background:white}.ged-form button{justify-self:start}@media(max-width:650px){.ged-fields{grid-template-columns:1fr}.ged-span{grid-column:auto}.ged-form{padding:15px}}

/* Arqui GED 1.5 — Relatórios */
.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.report-kpi{border:1px solid #e8e1ce;border-radius:14px;padding:20px;background:linear-gradient(135deg,#fff,#f5f8fc)}.report-kpi span{display:block;color:#556579;font-size:.85rem}.report-kpi strong{display:block;font-size:1.7rem;color:#102747;margin-top:7px}.report-bars{display:grid;gap:18px;padding:8px 0}.report-bar-heading{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:8px}.report-bar-heading span{color:#52627a}.report-track{height:14px;border-radius:14px;background:#e8eef5;overflow:hidden}.report-track>div{height:100%;background:linear-gradient(90deg,#123660,#cc9d39);border-radius:14px}.no-print{flex-wrap:wrap}@media(max-width:900px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.report-grid{grid-template-columns:1fr}}@media print{@page{size:A4;margin:14mm}body{background:white!important;color:black!important}.sidebar,.top-right,.context-bar,.no-print,.foot{display:none!important}.layout,.app,.main{display:block!important;width:100%!important;margin:0!important;padding:0!important}.card{break-inside:avoid;border:1px solid #ddd!important;box-shadow:none!important}.report-track{-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-kpi{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Arqui GED 1.5.3 - auditoria */
.audit-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:end;margin:14px 0 6px}.audit-filters label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:600}.audit-filters input,.audit-filters select{width:100%;min-width:0;box-sizing:border-box}.audit-filters .row{flex-wrap:wrap;align-items:center}.audit-filters .row a,.audit-filters .row button{white-space:nowrap}

/* Arqui GED 1.5.4 - administração de usuários */
.user-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.user-actions button{padding:7px 10px;font-size:12px}.user-details{margin-top:9px;min-width:180px;text-align:left}.user-details summary{color:#0b5797;cursor:pointer;font-weight:700;font-size:12px}.user-edit-form{display:grid;gap:8px;padding:12px;background:#f6f9fe;border:1px solid #dbe7f5;border-radius:12px;min-width:230px;max-width:340px}.user-edit-form label{display:grid;gap:4px;font-size:12px;font-weight:600}.user-edit-form input,.user-edit-form select{width:100%;min-width:0}.user-edit-form button{width:100%}

/* Arqui GED 1.5.5 — Prévia contextual e visualizador premium */
.doc-preview-trigger{background:transparent!important;border:0!important;padding:0!important;display:inline!important;box-shadow:none!important;color:inherit!important;text-decoration:underline;text-decoration-color:#c9a35d;text-underline-offset:4px;cursor:zoom-in;text-align:left;font:inherit;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.doc-open-viewer{background:#123b67!important;color:white!important;border:1px solid #244e74!important;padding:7px 12px!important;border-radius:9px!important;cursor:pointer;font:inherit;font-size:.9rem!important}
.docged-preview-popover{position:fixed;z-index:900;max-width:340px;width:340px;padding:12px;border-radius:16px;border:1px solid #cfb477;background:#fff;box-shadow:0 14px 45px #09213b4a;color:#132843;pointer-events:none}
.docged-preview-popover[hidden]{display:none}.docged-popover-title{font-weight:700;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px}.docged-popover-stage{height:275px;background:#f3f6fb;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}.docged-popover-caption{font-size:.72rem;color:#64748b;margin-top:9px}.docged-media-small{width:100%;height:100%;object-fit:contain;border:0}.docged-viewer{border:0;padding:0;border-radius:18px;background:white;color:#102a48;width:min(1120px,96vw);max-width:none;max-height:94vh;box-shadow:0 24px 85px #06182d99}.docged-viewer::backdrop{background:#031225d9;backdrop-filter:blur(4px)}.docged-viewer-head{background:linear-gradient(110deg,#081f3a,#164474);color:white;padding:20px 24px;display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}.docged-viewer-head h3{color:white!important;margin:4px 0 0;font-size:1.1rem;overflow-wrap:anywhere}.docged-viewer-kicker{color:#dbbc77;font-size:.7rem;letter-spacing:.15em}.docged-viewer-actions{display:flex;gap:10px}.docged-viewer-stage{height:min(70vh,760px);background:#e7ecf2;display:flex;align-items:center;justify-content:center}.docged-media-large{height:100%;width:100%;object-fit:contain;border:0}.docged-viewer footer{padding:10px 24px;color:#687c91;font-size:.75rem}
@media(max-width:700px){.docged-preview-popover{display:none!important}.docged-viewer{width:100vw;max-height:100dvh;border-radius:0}.docged-viewer-head{padding:14px}.docged-viewer-stage{height:72dvh}.docged-viewer-actions .btn{font-size:.8rem;padding:8px}.docged-viewer footer{padding:9px 14px}}

/* ARQUI GED 1.6.6 — identidade visual premium. CSS-only, sem alterar logica. */
:root{--doc-navy:#071b34;--doc-blue:#123e6b;--doc-gold:#cda24e;--doc-ink:#142945;--doc-muted:#697d93;--doc-border:#dfe7f0;--doc-bg:#f3f6fa;--doc-focus:#d0a653}
html{scroll-behavior:smooth}body{color:var(--doc-ink);background:var(--doc-bg);-webkit-font-smoothing:antialiased}a,button,input,select,textarea{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--doc-focus);outline-offset:3px}::selection{background:#e8d1a0;color:#10263e}
.shell{background:#f3f6fb}.side{background:linear-gradient(155deg,#07182b 0%,#0b2b4d 48%,#10345b 100%);border-right:1px solid #d7b26a33;box-shadow:8px 0 32px #041a3010}.side-head{border-bottom:1px solid #ffffff20;padding-bottom:18px;margin-bottom:18px}.side img{max-width:145px;max-height:88px;filter:drop-shadow(0 8px 18px #0004)}.brand{color:#efd09a;letter-spacing:.02em}.side small{color:#b6cadf}.nav-caption{color:#d7b777!important;letter-spacing:.18em!important;font-weight:700!important}.nav{border:1px solid transparent;position:relative;border-radius:12px}.nav:hover{background:#ffffff14;border-color:#ffffff21;transform:translateX(2px)}.nav.active,.nav[aria-current="page"]{background:linear-gradient(100deg,#deb96624,#ffffff12);border-color:#d8b06755;color:#fff;box-shadow:inset 3px 0 0 #d7b066}
.main{min-width:0;background:radial-gradient(ellipse at 70% -20%,#e5edf8 0%,transparent 50%),#f3f6fb}.top{background:linear-gradient(110deg,#ffffff 0%,#f9fbff 100%);border:1px solid #e5eaf1;border-radius:20px;box-shadow:0 8px 30px #183a5910;padding:24px 28px!important;margin-bottom:24px}.top h1{font-weight:800;letter-spacing:-.04em;color:#102b4a}.eyebrow{color:#a07939!important;letter-spacing:.13em!important;font-weight:800!important}.avatar{box-shadow:0 0 0 3px #fff,0 0 0 4px #d6b676!important;background:linear-gradient(130deg,#153c65,#0b2442)!important;color:#fff!important}.tag{border:1px solid #d8e1eb!important;background:#f4f8fc!important;color:#285072!important;font-weight:700;border-radius:999px!important}
.card{border:1px solid var(--doc-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 24px #1737530c!important}.card:hover{box-shadow:0 9px 29px #17375313!important}.card h2,.card h3{color:#112e50;letter-spacing:-.02em}.stat{border-top:3px solid #d6b272!important}.metric{color:#153a61;font-weight:800;letter-spacing:-.035em}.stat-icon{background:#f8f0df!important;border:1px solid #ebd7ab;color:#a77d35}.muted{color:var(--doc-muted)!important}.section-heading{margin-top:15px;margin-bottom:13px}.callout{border:1px solid #ead8b4!important;border-left:4px solid #caa052!important;border-radius:13px!important;background:linear-gradient(100deg,#fffcf4,#f8fbff)!important;color:#364e66}
button,.btn{border-radius:10px;font-weight:700;letter-spacing:.005em;box-shadow:0 3px 9px #0a2c4f16}button:hover,.btn:hover{transform:translateY(-1px);box-shadow:0 7px 17px #0a2c4f1c}.secondary{background:#f1f5fa!important;color:#173f68!important;border:1px solid #dbe6ef!important}.secondary:hover{background:#e7eff8!important}.field label{font-weight:700;color:#294763}input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:10px!important;border:1px solid #cfdae7!important;background:#fff;color:#15304d;min-height:41px}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{outline:0;box-shadow:0 0 0 3px #d5ab6552!important;border-color:#c69b4b!important}input::placeholder,textarea::placeholder{color:#899aac}.row{align-items:center}.table-scroll{border:1px solid #e1e8f0;border-radius:12px;overflow-x:auto;background:#fff}table{border-collapse:collapse;width:100%}th{background:#f5f8fc!important;color:#39516a!important;font-size:.8rem;letter-spacing:.035em;text-transform:uppercase}td,th{border-bottom:1px solid #e6ecf3!important}tbody tr:hover{background:#f6f9fd}.files{border:1px solid #e0e7f0;border-radius:13px!important;background:#fff}.file-icon,.company-icon{background:#eef4fb;color:#1c5788;border:1px solid #dce7f2;border-radius:12px}.company-tile{border:1px solid #dfe7f1!important;border-radius:16px!important;box-shadow:0 5px 20px #1237530c!important}.company-tile:hover{border-color:#caa65d!important;transform:translateY(-2px);box-shadow:0 11px 22px #10345519!important}
.auth{background:radial-gradient(circle at 75% 10%,#1c4874 0%,transparent 35%),linear-gradient(135deg,#06182c,#0d2d50 75%)!important;min-height:100dvh}.auth .card{border:1px solid #d5b16b66!important;box-shadow:0 22px 65px #0005!important;border-radius:22px!important}.auth-logo{max-height:132px!important;max-width:210px!important;width:auto!important;object-fit:contain!important}.auth h2{letter-spacing:-.03em}.docged-viewer{border:1px solid #e6d2a9}.docged-viewer-head{background:linear-gradient(105deg,#061a31,#164372)}.docged-preview-popover{border:1px solid #ddc28c!important;box-shadow:0 16px 35px #071d3555!important}
@media(max-width:900px){.top{padding:18px!important;border-radius:15px}.shell{grid-template-columns:minmax(0,1fr)}.main{min-width:0}.card{border-radius:15px!important}}@media(max-width:600px){.top{padding:15px!important}.top h1{font-size:clamp(1.2rem,6vw,1.7rem)}.top-right{gap:6px}.tag{font-size:.72rem}.card{padding:16px!important}.nav:hover{transform:none}button,.btn{max-width:100%;white-space:normal}.auth .card{width:min(100%,450px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* ARQUI GED 1.6.7 — RENOVACAO VISUAL VISIVEL / MANTER AO FINAL */
:root{--doc-navy:#071b34;--doc-gold:#e3bb72;--doc-bg:#eef3f9}
body{background:#eef3f9!important}
.side{background:linear-gradient(165deg,#030f20 0%,#092b50 54%,#103d65 100%)!important;border-right:3px solid #c39a51!important}
.side-head{padding:12px 10px 26px!important;border-bottom:1px solid #d4b57855!important}
.side-head img{width:86px!important;max-width:86px!important;max-height:96px!important;object-fit:contain!important}
.side .brand{color:#ffe0a0!important;font-size:22px!important;letter-spacing:-.3px!important}
.nav{margin:7px 0!important;padding:14px 16px!important;border-radius:13px!important;font-weight:650!important;transition:background .2s,transform .2s}
.nav.active,.nav[aria-current="page"]{background:linear-gradient(90deg,#e5bc68,#f9e7be)!important;color:#0a2542!important;box-shadow:0 8px 23px #0003!important;transform:translateX(3px)}
.nav.active .nav-symbol{color:#0a2542!important}
.main{background:radial-gradient(circle at 90% 0%,#dce9f6 0,transparent 40%),#eef3f9!important}
.top{border-radius:22px!important;padding:25px 30px!important;border:1px solid #dfebf5!important;background:#fff!important;box-shadow:0 12px 36px #082c5415!important}
.top h1{font-size:clamp(26px,3vw,35px)!important;color:#082c53!important}
.hero{min-height:255px!important;background:linear-gradient(115deg,#041a34 0%,#0a3969 70%,#195e8b 100%)!important;border-radius:24px!important;border:1px solid #b48b4340!important;box-shadow:0 20px 46px #082c5435!important}
.hero:before{content:"";position:absolute;right:7%;top:12%;width:190px;height:190px;border:1px solid #efca7855;border-radius:35px;transform:rotate(28deg);pointer-events:none}
.hero h2{font-size:clamp(26px,3.6vw,40px)!important}.hero em{color:#ffda8b!important}
.hero-button{background:linear-gradient(110deg,#f7d68b,#ddb260)!important;color:#09233e!important;box-shadow:0 7px 20px #0003!important;border-radius:13px!important}
.card{border:1px solid #dbe5ef!important;border-radius:20px!important;box-shadow:0 10px 30px #163b6312!important;padding:24px!important}
.card h2,.card h3{color:#0b3157!important}
.stat{border-top:4px solid #d6ad5e!important;background:linear-gradient(180deg,#fff,#fafcff)!important}
.metric{font-size:36px!important;color:#0a3764!important}
.company-tile{background:#fff!important;border:1px solid #d8e5f0!important;border-radius:18px!important;padding:25px!important;box-shadow:0 9px 25px #0a355910!important;transition:transform .2s,box-shadow .2s!important}
.company-tile:hover{transform:translateY(-4px)!important;box-shadow:0 16px 34px #0a355924!important;border-color:#c9a45c!important}
.context-bar{background:#fff!important;border:1px solid #dbe5ef!important;border-left:4px solid #d7ad61!important;box-shadow:0 7px 25px #1839540b!important}
button,.btn{border-radius:12px!important;font-weight:700!important;box-shadow:0 3px 10px #08284d12}
button:not(.secondary):not(.logout),.btn:not(.secondary):not(.hero-button){background:linear-gradient(120deg,#082d54,#15568c)!important;color:#fff!important}
button:hover,.btn:hover{filter:brightness(1.08)}
input,select,textarea{border:1px solid #c6d8e8!important;background:#fff!important;border-radius:12px!important;box-shadow:0 2px 7px #0a355908!important}
input:focus,select:focus,textarea:focus{border-color:#bd9145!important;box-shadow:0 0 0 4px #e5c68155!important;outline:none!important}
.files th{background:#eaf2f9!important;color:#274b6b!important;letter-spacing:.06em!important;padding:16px 12px!important}
.files tr:nth-child(even) td{background:#f8fbfe!important}
.files tr:hover td{background:#f1f7fd!important}
.files td{border-bottom:1px solid #e5edf5!important}
.auth .card{border-top:5px solid #d5aa58!important;box-shadow:0 24px 65px #0a335528!important}
.auth-logo{max-width:190px!important;max-height:130px!important}
.docged-viewer{border:1px solid #d8b46e!important;box-shadow:0 28px 100px #071a3199!important}
@media(max-width:980px){.side{border-right:none!important;border-bottom:3px solid #d4a75e!important}.top{padding:18px!important}.hero{min-height:180px!important}}
@media(max-width:650px){.card{padding:16px!important}.hero{padding:22px!important}.hero:before{display:none}.files{font-size:12px!important}}

/* Arqui GED: correção de navegação 1.6.8.1. Incluir ao FINAL de assets/style.css */
@media (min-width: 981px) {
  .side { display:flex!important; flex-direction:column!important; height:100vh!important; min-height:100vh!important; overflow-y:auto!important; }
  .side-bottom { display:block!important; visibility:visible!important; opacity:1!important; margin-top:auto!important; flex-shrink:0!important; position:relative!important; padding:18px 10px 8px!important; }
  .side-bottom form { display:block!important; }
  .side-bottom .logout { display:block!important; width:100%!important; text-align:left!important; color:#fff!important; background:#183a60!important; border:1px solid #d7b77770!important; border-radius:12px!important; padding:12px 15px!important; cursor:pointer!important; }
}
@media (max-width:980px) {
  .side-bottom { display:block!important; padding:10px 0 0!important; margin-top:8px!important; border-top:1px solid #ffffff30!important; }
  .side-bottom form { display:block!important; margin-top:7px!important; }
  .side-bottom .logout { display:block!important; width:100%!important; background:#173c62!important; color:#fff!important; border:1px solid #d7b77780!important; padding:11px 14px!important; border-radius:12px!important; }
}



/* ARQUI GED 1.6.8.3 - Barra de rolagem premium, discreta e acessível */
:root { --dg-scroll-track: #0c2340; --dg-scroll-thumb: #b89b62; }
/* Firefox: preserve a fine, elegant scrollbar */
.sidebar, .side, aside, .table-scroll, .docged-viewer-stage {
  scrollbar-width: thin;
  scrollbar-color: #b89b62 #102b4a;
}
html, body, main { scrollbar-width: thin; scrollbar-color: #9aadc1 transparent; }
/* Chromium, Edge and Safari: avoid oversized system bars */
.sidebar::-webkit-scrollbar, .side::-webkit-scrollbar, aside::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar, .docged-viewer-stage::-webkit-scrollbar { width: 7px; height: 7px; }
.sidebar::-webkit-scrollbar-track, .side::-webkit-scrollbar-track, aside::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track, .docged-viewer-stage::-webkit-scrollbar-track { background: #102b4a; border-radius: 20px; }
.sidebar::-webkit-scrollbar-thumb, .side::-webkit-scrollbar-thumb, aside::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb, .docged-viewer-stage::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#d9c28c,#9c7b3e); border-radius:20px; border:1px solid #183758; }
.sidebar::-webkit-scrollbar-thumb:hover, .side::-webkit-scrollbar-thumb:hover, aside::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover, .docged-viewer-stage::-webkit-scrollbar-thumb:hover { background: #eed39b; }
html::-webkit-scrollbar, body::-webkit-scrollbar, main::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, main::-webkit-scrollbar-thumb { border-radius:20px; background:#9aadc1; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, main::-webkit-scrollbar-track { background:transparent; }
@media (prefers-contrast: more) { .sidebar,aside {scrollbar-color:#f6d18a #082340;} }

/* ARQUI GED 1.6.8.4 — scrollbar discreta com prioridade para Chrome/Edge/Firefox */
@media (min-width: 981px) {
  .side { overflow-y:auto!important; overflow-x:hidden!important; scrollbar-width:thin!important; scrollbar-color:#c9a15a transparent!important; }
  .side::-webkit-scrollbar {width:5px!important;}
  .side::-webkit-scrollbar-track {background:transparent!important;}
  .side::-webkit-scrollbar-thumb {background:#c9a15a!important;border:0!important;border-radius:20px!important;}
  .side::-webkit-scrollbar-thumb:hover {background:#f0d29a!important;}
}
/* Tabelas e visualizador: rolagem discreta independente do navegador */
.table-scroll,.docged-viewer-stage {scrollbar-width:thin!important;scrollbar-color:#bda06c transparent!important;}
.table-scroll::-webkit-scrollbar,.docged-viewer-stage::-webkit-scrollbar{width:5px!important;height:5px!important;}
.table-scroll::-webkit-scrollbar-track,.docged-viewer-stage::-webkit-scrollbar-track{background:transparent!important;}
.table-scroll::-webkit-scrollbar-thumb,.docged-viewer-stage::-webkit-scrollbar-thumb{background:#bda06c!important;border:0!important;border-radius:30px!important;}

/* ARQUI GED 1.6.8.11 — organização da biblioteca sem alterar o visualizador */
.docged-version-badge{display:inline-flex;vertical-align:middle;align-items:center;margin-left:10px;background:#f8f1df;color:#73551d;border:1px solid #dfc789;border-radius:999px;padding:4px 10px;font-size:10px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.docged-index-info{display:grid!important;grid-template-columns:minmax(180px,auto) minmax(0,1fr) auto;align-items:center!important;gap:10px 20px!important;margin:18px 0 16px!important;padding:17px 19px!important;border:1px solid #e6d5a9!important;border-left:4px solid #c99d4f!important;background:#fffaf0!important;border-radius:14px!important;line-height:1.55!important}
.docged-index-info strong{display:flex;align-items:center;gap:8px;color:#163b64;font-size:13px;white-space:normal!important}
.docged-index-info span{display:block;min-width:0!important;flex:initial!important;font-size:12px;line-height:1.55}
.docged-index-info a{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border:1px solid #d9c69b;border-radius:9px;color:#143e68!important;text-decoration:none!important;white-space:nowrap;font-size:12px;font-weight:750;background:#fff}
.docged-index-info a:hover{background:#f4e9d2}
.files th.docged-status-th{min-width:120px!important;max-width:145px;background:#eaf2f9!important;color:#274b6b!important;text-align:left!important}
.files .docged-ocr-status{font-size:11px!important;font-weight:750!important;padding:7px 10px!important;border-radius:99px!important;display:inline-block!important;white-space:nowrap}
.files td:last-child{text-align:left!important;min-width:290px}
.files td:last-child .actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:wrap!important}
.files td:last-child .actions .btn,.files td:last-child .actions button{font-size:12px!important;padding:9px 12px!important;white-space:nowrap!important}
@media(max-width:1100px){.docged-index-info{grid-template-columns:1fr!important}.docged-index-info a{justify-self:start}}
@media(max-width:650px){.docged-version-badge{margin:6px 0 0 0}.docged-index-info{padding:13px!important}.files td:last-child{min-width:240px}}


/* ARQUI GED 1.6.8.14 — Identidade no menu lateral. Escopo exclusivo: cabeçalho. */
@media (min-width:981px){
 .side .side-head{
   position:relative!important;
   display:flex!important;flex-direction:column!important;align-items:center!important;
   padding:16px 11px 22px!important;margin:0 0 16px!important;gap:8px!important;
   border:1px solid rgba(236,194,109,.50)!important;border-radius:20px!important;
   background:linear-gradient(150deg,rgba(31,78,125,.95),rgba(8,32,63,.96))!important;
   box-shadow:inset 0 1px rgba(255,255,255,.16),0 12px 24px rgba(0,0,0,.20)!important;
 }
 .side .side-head:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,transparent,#d7ab55,#fff1bf,#d7ab55,transparent);border-radius:20px 20px 0 0}
 .side .side-head img{display:block!important;width:133px!important;max-width:95%!important;height:125px!important;max-height:125px!important;object-fit:contain!important;margin:0 auto!important;filter:drop-shadow(0 5px 12px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(247,202,112,.27))!important}
 .side .side-head>div{width:100%;text-align:center!important}
 .side .side-head .brand{font-size:21px!important;text-align:center!important;line-height:1.15!important;color:#ffe6a9!important;margin:0!important}
 .side .side-head small{display:block!important;margin:5px 0 0!important;text-align:center!important;letter-spacing:.04em;color:#e0e8f4!important;font-size:11px!important}
}
@media (max-width:980px){
 .side .side-head{background:rgba(255,255,255,.07)!important;border:1px solid rgba(231,184,91,.38)!important;border-radius:14px!important;padding:8px 12px!important;margin-bottom:8px!important;box-shadow:inset 0 1px rgba(255,255,255,.09)!important}
 .side .side-head img{width:65px!important;height:65px!important;max-width:65px!important;max-height:65px!important;object-fit:contain!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.45))!important}
 .side .side-head .brand{display:block!important;color:#ffe0a0!important}
 .side .side-head small{display:block!important;color:#dce6f3!important}
}
