:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#182c30;background:#f4f7f7;font-synthesis:none;--teal:#087f73;--muted:#6b7d80;--border:#dce6e6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #70cec3;outline-offset:3px}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #cddbdc;border-radius:8px;background:white;color:inherit}input:focus,select:focus,textarea:focus{outline:2px solid #8dd5cb;border-color:var(--teal)}textarea{min-height:100px;resize:vertical}label{display:block;font-size:13px;font-weight:600;margin:0 0 7px}label span{color:var(--muted);font-weight:400}.primary{border:0;background:var(--teal);color:white;border-radius:8px;padding:12px 18px;font-weight:600}.secondary{background:#fff;border:1px solid var(--border);padding:10px 14px;border-radius:8px;color:inherit}.subtle{background:transparent;border:0;color:var(--teal);font-weight:600;padding:8px}.muted{color:var(--muted)}.loading{padding:40px}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{background:#103b3b;color:white;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:after{content:"";width:520px;height:520px;border:1px solid #ffffff19;border-radius:50%;position:absolute;right:-210px;bottom:-220px;box-shadow:0 0 0 60px #ffffff04,0 0 0 120px #ffffff04;pointer-events:none}.brand{font-size:23px;letter-spacing:-.7px;font-weight:750;display:flex;align-items:center;gap:10px}.brand-mark{display:inline-grid;place-items:center;background:#d3f5ed;color:#086b62;width:35px;height:35px;border-radius:9px;font-size:22px}.login-story h1{font-size:49px;line-height:1.15;letter-spacing:-1.8px;max-width:540px}.login-story p{color:#b5d2cf;max-width:420px;line-height:1.7}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;font-weight:700;color:#78d8c6}.story-footer{font-size:12px;color:#adc6c3}.login-panel{display:grid;place-items:center;padding:35px;background:#fff}.login-form{width:100%;max-width:390px}.login-form h2{font-size:29px;letter-spacing:-1px;margin:10px 0}.login-form p{line-height:1.6}.login-form .field{margin:22px 0}.login-form .primary{width:100%}.demo-box{margin-top:28px;padding:17px;background:#f3f8f7;border:1px solid #dce9e6;border-radius:10px;font-size:12px;line-height:1.7}.demo-actions{display:flex;gap:8px;margin-top:10px}.login-error{color:#b13838;min-height:20px;font-size:13px}.layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--border);padding:30px 20px;display:flex;flex-direction:column;position:fixed;width:230px;height:100vh}.sidebar .brand{padding:0 10px;margin-bottom:42px}.nav-label{font-size:10px;letter-spacing:1.6px;color:#829395;padding:0 13px;margin-bottom:12px}.nav button{display:flex;align-items:center;gap:13px;background:none;border:none;border-radius:8px;width:100%;padding:13px;color:#62767a;text-align:left;font-size:14px;margin-bottom:6px}.nav button.active{background:#e7f4f0;color:#087469;font-weight:650}.nav-icon{font-size:18px;width:24px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:20px 10px 0;line-height:1.7;font-size:12px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#32ac86;margin-right:7px}.main-shell{grid-column:2}.topbar{min-height:83px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:18px 36px;background:#fff;gap:15px}.office-group label{margin:0;font-size:10px;letter-spacing:1px;color:#7a8c8e;text-transform:uppercase}.office-group select{border:0;padding:3px 22px 3px 0;font-weight:650;max-width:280px}.account{display:flex;align-items:center;gap:13px;font-size:12px}.avatar{height:34px;width:34px;border-radius:50%;background:#e9efef;display:grid;place-items:center;font-weight:700;color:#496969}.account-name{max-width:190px;overflow:hidden;text-overflow:ellipsis}.content{max-width:1420px;margin:0 auto;padding:36px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font-size:29px;letter-spacing:-1px;margin:0 0 8px}.page-heading p{font-size:14px;color:var(--muted);margin:0;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.card{padding:24px;background:white;border:1px solid var(--border);border-radius:12px}.card-title{color:#687d80;font-size:13px;display:flex;justify-content:space-between}.card-value{font-size:35px;margin:17px 0 5px;letter-spacing:-1px;font-weight:650}.card-sub{color:#88989a;font-size:11px}.card.accent{background:#e8f4f0;border-color:#c5e5da}.panel{border:1px solid var(--border);border-radius:12px;background:white;overflow:hidden}.panel-header{padding:21px 24px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid #edf1f1}.panel-header h2{margin:0;font-size:16px}.panel-header p{font-size:12px;color:var(--muted);margin:5px 0 0}.search{max-width:280px;background:#f8fafa;font-size:13px;padding:10px 13px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f8fafa;padding:14px 22px;color:#7a8b8e;text-align:left;font-size:10px;letter-spacing:.7px;text-transform:uppercase;font-weight:600;white-space:nowrap}td{padding:18px 22px;border-bottom:1px solid #eef2f2;vertical-align:middle}tr:last-child td{border-bottom:0}.cell-main{font-weight:600;margin-bottom:4px}.cell-sub{font-size:11px;color:var(--muted)}.plate{font-family:Consolas,monospace;font-weight:700;font-size:12px;letter-spacing:.6px;background:#f0f4f4;border:1px solid #dbe4e5;border-radius:5px;padding:5px 8px;display:inline-block}.badge{font-size:10px;padding:6px 9px;background:#edf1f6;color:#577086;border-radius:6px;font-weight:650;white-space:nowrap}.badge.em_execucao{background:#e1efff;color:#3471a9}.badge.concluida,.badge.entregue,.badge.aprovada{background:#e1f4ea;color:#25754e}.badge.aguardando_pecas,.badge.aguardando_aprovacao{background:#fff1d8;color:#957124}.badge.cancelada{background:#fae8e8;color:#ab4e4e}.actions{display:flex;gap:3px;white-space:nowrap}.actions button{font-size:12px}.empty{text-align:center;padding:50px;color:var(--muted);line-height:1.7}.welcome-note{margin-top:26px;border-radius:10px;background:#eef4f3;padding:18px 22px;display:flex;align-items:center;gap:15px;color:#567570;font-size:13px;line-height:1.6}.welcome-note strong{color:#2e5550}.error-box{border:1px solid #f0c7c7;border-radius:10px;padding:22px;color:#a43f3f;background:#fff5f5}dialog{border:1px solid var(--border);border-radius:15px;padding:0;max-width:640px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 30px 90px #0d333340;color:inherit}dialog::backdrop{background:#153b425c;backdrop-filter:blur(3px)}.modal-header{padding:23px 26px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:20px;margin:0;letter-spacing:-.5px}.modal-body{padding:25px 26px;overflow:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field.full{grid-column:1/-1}.modal-footer{padding:18px 26px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:#fafcfc}.form-error{color:#af3d3d;font-size:13px;line-height:1.5;margin:14px 0 0;min-height:18px}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid #d0e7df;padding:0 0 25px 20px;position:relative}.timeline li:before{content:'';width:9px;height:9px;background:#39a78b;border-radius:50%;position:absolute;left:-5.5px;top:4px}.timeline p{font-size:13px;line-height:1.6;margin:6px 0}.timeline small{color:var(--muted)}#toast{position:fixed;bottom:24px;right:24px;background:#173f39;color:#fff;padding:14px 20px;border-radius:10px;box-shadow:0 7px 30px #0002;display:none;max-width:400px;font-size:13px;z-index:100}#toast.show{display:block}.status-help{font-size:12px;line-height:1.6;background:#f1f7f5;padding:12px;border-radius:8px}.footer-note{font-size:11px;color:#8a9a9c;margin-top:20px}.text-link{color:var(--teal)}@media(max-width:1000px){.layout{grid-template-columns:185px 1fr}.sidebar{width:185px;padding:24px 12px}.sidebar .brand{font-size:19px;padding:0}.content{padding:24px}.topbar{padding:17px 24px}.cards{grid-template-columns:repeat(2,1fr)}.login-story{padding:40px}.login-story h1{font-size:38px}}@media(max-width:700px){.login{display:block}.login-story{min-height:180px;padding:24px}.login-story h1{font-size:27px;margin:24px 0 0}.login-story p,.story-footer,.login-story .eyebrow{display:none}.login-panel{padding:30px 22px}.layout{display:block}.sidebar{position:static;width:100%;height:auto;padding:15px;border-bottom:1px solid var(--border);border-right:0}.sidebar .brand{margin:0 0 16px;font-size:20px}.nav{display:flex;gap:3px}.nav button{padding:10px 8px;margin:0;font-size:11px;justify-content:center;gap:4px}.nav-icon{font-size:14px;width:15px}.nav-label,.sidebar-bottom{display:none}.topbar{padding:14px 18px;min-height:65px}.account-name,.avatar{display:none}.office-group select{max-width:190px;font-size:13px}.content{padding:23px 16px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.page-heading .primary{padding:10px 11px;font-size:12px;white-space:nowrap}.cards{gap:10px}.card{padding:17px}.card-value{font-size:30px}.panel-header{padding:16px;flex-wrap:wrap}.search{max-width:100%}td,th{padding:14px 15px}.form-grid{grid-template-columns:1fr;gap:16px}.modal-body{padding:20px}.welcome-note{font-size:12px}.modal-header{padding:18px 20px}}

.sidebar .brand{font-size:15px;letter-spacing:-.4px;gap:8px;white-space:nowrap}.sidebar .brand-mark{width:30px;height:30px;flex-shrink:0}
.fiscal-json { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 32rem; overflow: auto; }

.connection-notice{position:fixed;bottom:16px;left:16px;right:16px;z-index:10000;display:flex;align-items:center;gap:16px;padding:16px 20px;border:1px solid #b86b12;border-radius:12px;background:#fff8e8;color:#623b10;box-shadow:0 4px 20px #0002;font-size:14px;line-height:1.5}.connection-notice[hidden]{display:none}.connection-notice span{flex:1}.connection-notice button{flex-shrink:0}@media(max-width:600px){.connection-notice{flex-direction:column;align-items:stretch;bottom:8px;left:8px;right:8px}}

/* Navegação por teclado: contraste em superfícies claras e escuras. */
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #087e76;outline-offset:3px;box-shadow:0 0 0 5px #fff}
.sidebar :where(button,a,summary):focus-visible{outline-color:#57ead6;box-shadow:0 0 0 5px #071e2d}
.skip-content{position:fixed;top:12px;left:12px;z-index:11000;padding:12px 18px;background:#fff;color:#082337;border:2px solid #087e76;border-radius:8px;font-weight:700;transform:translateY(-200%)}
.skip-content:focus{transform:translateY(0)}
#content:focus{outline:2px solid #087e76;outline-offset:-2px}

.draft-notice{margin:12px 20px 0;padding:12px 16px;border-left:4px solid #a66300;background:#fff6df;color:#654000;border-radius:6px;font-size:14px;line-height:1.5}.draft-notice[hidden]{display:none}

.export-section-choice{display:inline-block;margin:8px}
.office-print-header,.office-print-footer{display:none}
@media print{
 @page{margin:28mm 12mm 18mm}
 .sidebar,.topbar,.skip-content,#toast,.connection-notice,.session-warning,.draft-notice,button,.modal-footer{display:none!important}
 .layout,.main-shell,.content{display:block!important;margin:0!important;padding:0!important;width:auto!important;max-width:none!important}
 .office-print-header{display:flex!important;align-items:center;gap:12px;position:fixed;top:-22mm;left:0;right:0;height:18mm;border-bottom:1px solid #ccc;background:white;color:#111;font-size:16pt}
 .office-print-logo{max-width:28mm;max-height:15mm;object-fit:contain}
 .office-print-logo[hidden]{display:none!important}
 .office-print-footer{display:block!important;position:fixed;bottom:-12mm;right:0;font:6pt Arial,sans-serif;color:#777}
 body{background:white!important;color:#111!important}
 body:has(dialog[open]) #content{display:none!important}
 dialog[open]{position:static!important;max-height:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;overflow:visible!important}
 dialog::backdrop{background:transparent}
 .table-wrap{overflow:visible!important}thead{display:table-header-group}tr,img{break-inside:avoid}
}
.session-warning{position:fixed;bottom:16px;left:16px;right:16px;background:#fff4cf;color:#413000;padding:14px;z-index:200;border:1px solid #b78d20;border-radius:8px}

.export-format-options{display:grid;gap:12px}.export-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:12px}.export-format-options label,.export-section-grid .export-section-choice{display:flex;align-items:center;gap:8px;margin:0}.export-format-options input[type=checkbox],.export-section-grid input[type=checkbox]{width:auto;flex:none}
