@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";
:root{--brand:#0b4fa2;--brand-dark:#083d7e;--brand-soft:#eef4fc;--ink:#1c2330;--text-2:#4d5565;--muted:#868d99;--line:#e5e8ed;--line-strong:#d3d8e0;--bg:#f6f7f9;--surface:#fff;--ok:#1f7a4d;--ok-soft:#e8f5ee;--warn:#a35b00;--warn-soft:#fff4e2;--danger:#b42318;--danger-soft:#fdecea;--radius:8px;--font:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0;font-size:14px;line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}h1,h2,h3,p{margin:0}input,select,textarea{border:1px solid var(--line-strong);background:var(--surface);border-radius:6px;outline:none;width:100%;min-height:38px;padding:8px 11px;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #0b4fa21f}input:disabled,select:disabled{background:var(--bg);color:var(--muted)}input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:var(--brand);cursor:pointer;flex-shrink:0;margin:0;padding:0}input[type=checkbox]:focus{box-shadow:none}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted,.muted-icon{color:var(--muted)}.warn-text{color:var(--warn);font-size:13px}.nowrap{white-space:nowrap}.right{text-align:right}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.button{border:1px solid var(--brand);background:var(--brand);color:#fff;white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:0 15px;font-size:14px;font-weight:600;transition:background .15s,border-color .15s;display:inline-flex}.button:hover:not(:disabled){background:var(--brand-dark);border-color:var(--brand-dark)}.button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}.button.secondary:hover:not(:disabled){background:var(--bg);border-color:var(--muted)}.button.ghost{color:var(--text-2);background:0 0;border-color:#0000}.button.ghost:hover:not(:disabled){background:#eceef2;border-color:#0000}.button.danger{background:var(--surface);color:var(--danger);border-color:#f0c4bf}.button.block{width:100%}.small-button{min-height:32px;padding:0 11px;font-size:13px}.text-button{color:var(--brand);border-radius:4px;align-items:center;gap:5px;padding:4px 2px;font-size:14px;font-weight:500;display:inline-flex}.text-button:hover:not(:disabled){text-underline-offset:3px;text-decoration:underline}.text-button.small{align-self:flex-start;font-size:13px}.text-button.muted{color:var(--muted)}.text-button.danger{color:var(--danger)}.icon-button{width:34px;height:34px;color:var(--text-2);border-radius:6px;place-items:center;display:inline-grid}.icon-button:hover:not(:disabled){background:#eceef2}.app-loader,.section-loader{min-height:60vh;color:var(--muted);place-items:center;display:grid}.app-loader{min-height:100vh}.topbar{z-index:20;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0}.topbar-inner{align-items:center;gap:28px;max-width:1180px;height:60px;margin:0 auto;padding:0 24px;display:flex}.brand{align-items:center;display:inline-flex}.brand img{width:auto;height:34px;display:block}.brand-button{flex-shrink:0;display:flex}.main-nav{scrollbar-width:none;flex:1;align-items:stretch;gap:2px;min-width:0;height:100%;display:flex;overflow-x:auto}.main-nav::-webkit-scrollbar{display:none}.main-nav button{color:var(--text-2);white-space:nowrap;border-bottom:2px solid #0000;align-items:center;gap:7px;margin-bottom:-1px;padding:0 12px;font-weight:500;display:flex}.main-nav button svg{color:var(--muted)}.main-nav button:hover{color:var(--ink)}.main-nav button.active{color:var(--brand);border-bottom-color:var(--brand)}.main-nav button.active svg{color:var(--brand)}.topbar-user{flex-shrink:0;align-items:center;gap:6px;display:flex}.user-name{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:13px;overflow:hidden}.main-content{max-width:1180px;margin:0 auto;padding:32px 24px 64px}.page-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 24px;margin-bottom:22px;display:flex}.page-heading h1{letter-spacing:-.02em;flex-wrap:wrap;align-items:center;gap:10px;font-size:24px;font-weight:700;display:flex}.page-heading p{color:var(--muted);margin-top:4px}.heading-actions{flex-wrap:wrap;gap:8px;display:flex}.page-note{color:var(--muted);margin-top:18px;font-size:13px}.back-link{color:var(--muted);align-items:center;gap:6px;margin-bottom:14px;font-weight:500;display:inline-flex}.back-link:hover{color:var(--brand)}.meta-line{flex-wrap:wrap;gap:4px 0;display:flex}.meta-line span+span:before{content:"·";color:var(--line-strong);margin:0 8px}.section-head{justify-content:space-between;align-items:center;margin:26px 0 10px;display:flex}.section-head h2{font-size:16px;font-weight:600}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.toolbar.filters{justify-content:flex-start}.toolbar select{width:auto}.tabs{background:#eceef2;border-radius:7px;gap:4px;padding:3px;display:flex}.tabs button{color:var(--text-2);border-radius:5px;padding:6px 12px;font-size:13px;font-weight:500}.tabs button span{color:var(--muted);margin-left:3px;font-size:12px}.tabs button.selected{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #1c233014}.search-input{border:1px solid var(--line-strong);background:var(--surface);min-width:240px;height:38px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:0 11px;display:flex}.search-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0b4fa21f}.search-input input{height:100%;min-height:0;color:var(--ink);background:0 0;border:0;padding:0;box-shadow:none!important}.search-input.grow{flex:1;max-width:420px}.inline-field{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;font-size:13px;display:flex}.inline-field input{width:150px}.table-scroll{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto}.data-table{border-collapse:collapse;width:100%}.data-table th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:#fafbfc;padding:10px 14px;font-size:12px;font-weight:600}.data-table th.right{text-align:right}.data-table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:11px 14px}.data-table tbody tr:last-child td{border-bottom:0}.data-table td b{font-weight:600}.data-table td small{color:var(--muted);margin-top:1px;font-size:12px;display:block}.data-table.clickable tbody tr{cursor:pointer}.data-table tbody tr:hover td{background:#fafbfc}.data-table tr.unchecked td{color:var(--muted)}.data-table tr.unchecked td b{font-weight:500}.check-cell{width:44px;padding-right:0!important}.doc-col{white-space:nowrap;width:104px;text-align:center!important}.doc-link{color:var(--ok);background:var(--ok-soft);border-radius:4px;align-items:center;gap:4px;padding:2px 7px;font-size:12px;font-weight:600;display:inline-flex}.doc-link:hover{text-decoration:underline}.row-actions{justify-content:flex-end;gap:10px;display:flex}.row-actions .text-button{font-size:13px}.table-footer{color:var(--muted);justify-content:space-between;align-items:center;padding:12px 2px;font-size:13px;display:flex}.table-footer>div{align-items:center;gap:6px;display:flex}.status{letter-spacing:0;white-space:nowrap;vertical-align:middle;border-radius:999px;align-items:center;gap:6px;padding:3px 9px;font-size:12px;font-weight:600;display:inline-flex}.status:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.status.scheduled{color:var(--brand);background:var(--brand-soft)}.status.completed{color:var(--ok);background:var(--ok-soft)}.status.cancelled{color:var(--muted);background:#eef0f3}.tag{color:var(--text-2);background:#eef0f3;border-radius:4px;align-items:center;gap:5px;padding:2px 8px;font-size:12px;font-weight:500;display:inline-flex}.tag.green{background:var(--ok-soft);color:var(--ok)}.tag.orange{background:var(--warn-soft);color:var(--warn)}.tag i{background:currentColor;border-radius:50%;width:6px;height:6px}.print-bar{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;padding:14px 16px;display:flex}.print-bar-label{color:var(--text-2)}.print-actions{flex-wrap:wrap;gap:8px;display:flex}.confirm-bar{background:var(--warn-soft);border-radius:var(--radius);border:1px solid #f3d7a8;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;margin-top:10px;padding:14px 16px;display:flex}.confirm-bar p{flex:1;min-width:260px}.confirm-bar>div{gap:8px;display:flex}.session-footer{gap:18px;margin-top:18px;display:flex}.empty{text-align:center;background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--radius);flex-direction:column;align-items:center;padding:56px 20px;display:flex}.empty-icon{color:var(--muted);margin-bottom:12px}.empty h3{font-size:16px;font-weight:600}.empty p{color:var(--muted);max-width:420px;margin:6px 0 18px}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>span{color:var(--text-2);font-size:13px;font-weight:500}.field>span small{color:var(--muted);font-weight:400}.field>small{color:var(--muted);font-size:12px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.form-grid.three{grid-template-columns:1fr 1fr .8fr}.code-grid{grid-template-columns:.6fr 1.4fr}.form-section{flex-direction:column;gap:14px;display:flex}.form-section+.form-section{border-top:1px solid var(--line);padding-top:20px}.form-section-title{font-size:15px;font-weight:600}.form-error{color:var(--danger);background:var(--danger-soft);border-radius:6px;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;font-size:13px;display:flex}.form-error svg{flex-shrink:0;margin-top:1px}.info-banner{background:var(--brand-soft);color:var(--text-2);border-radius:6px;align-items:flex-start;gap:10px;padding:10px 12px;font-size:13px;display:flex}.info-banner svg{color:var(--brand);flex-shrink:0}.inline-check{color:var(--text-2);cursor:pointer;align-items:center;gap:8px;font-size:13px;display:inline-flex}.related-create-row{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:flex}.selection-list{border:1px solid var(--line);border-radius:6px;flex-direction:column;max-height:300px;display:flex;overflow-y:auto}.selection-item{border-bottom:1px solid var(--line);cursor:pointer;align-items:center;gap:10px;padding:9px 12px;display:flex}.selection-item:last-child{border-bottom:0}.selection-item.checked{background:var(--brand-soft)}.selection-item small{color:var(--muted);margin-left:auto}.selection-title{flex-direction:column;display:flex}.small-copy{font-size:13px}.settings-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);max-width:640px}.padded-form{flex-direction:column;gap:16px;padding:22px;display:flex}.padded-form>.button{align-self:flex-start}.picker{flex-direction:column;gap:10px;display:flex}.picker-filters{grid-template-columns:1fr 1fr 1.3fr;gap:12px;display:grid}.picker-search .search-input{min-width:0}.picker-hint{color:var(--muted);font-size:13px}.picker-bar{border:1px solid var(--line);background:#fafbfc;border-bottom:0;border-radius:6px 6px 0 0;justify-content:space-between;align-items:center;gap:10px;margin-bottom:-10px;padding:8px 12px;display:flex}.chip{color:var(--brand);background:var(--brand-soft);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.chip.on{background:var(--brand);color:#fff}.picker-list{border:1px solid var(--line);border-radius:0 0 6px 6px;min-height:120px;max-height:46vh;overflow-y:auto}.picker-row{border-bottom:1px solid var(--line);cursor:pointer;grid-template-columns:16px 1fr auto 90px;align-items:center;gap:12px;padding:9px 12px;display:grid}.picker-row:last-child{border-bottom:0}.picker-row:hover{background:#fafbfc}.picker-row.checked{background:var(--brand-soft)}.picker-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.picker-cpf,.picker-date{color:var(--muted);white-space:nowrap;font-size:13px}.picker-date{text-align:right}.picker-empty{text-align:center;color:var(--muted);padding:28px 12px}.sheet-overlay{background:#0f172a59;position:fixed;inset:0}.sheet-overlay.nested{background:#0f172a1f}.sheet{width:min(calc(560px - var(--sheet-depth) * 16px), calc(100vw - var(--sheet-depth) * 14px));background:var(--surface);outline:none;flex-direction:column;height:100dvh;transition:translate .5s cubic-bezier(.32,.72,0,1);display:flex;position:fixed;inset:0 0 0 auto;overflow:hidden;box-shadow:-12px 0 40px #0f172a26}.sheet.wide{width:min(calc(760px - var(--sheet-depth) * 16px), calc(100vw - var(--sheet-depth) * 14px))}.sheet[data-covered=true]{translate:-24px}.modal-header{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 24px;display:flex}.modal-header h2{font-size:18px;font-weight:700}.modal-header p{color:var(--muted);margin-top:2px;font-size:13px}.modal-header p:empty{display:none}.modal-body{overscroll-behavior:contain;flex-direction:column;flex:1;gap:16px;min-height:0;padding:20px 24px 0;display:flex;overflow-y:auto}.modal-body h3{font-size:15px;font-weight:600}.modal-actions{z-index:1;background:var(--surface);border-top:1px solid var(--line);justify-content:flex-end;gap:8px;margin:auto -24px 0;padding:14px 24px;display:flex;position:sticky;bottom:0}.import-steps{align-items:flex-start;gap:12px;display:flex}.import-steps>span{background:var(--brand-soft);color:var(--brand);border-radius:6px;padding:6px 10px;font-size:12px;font-weight:600}.import-steps p{color:var(--muted);margin:4px 0 8px;font-size:13px}.upload-zone{border:1px dashed var(--line-strong);border-radius:var(--radius);text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:32px 16px;display:flex;position:relative}.upload-zone:hover{border-color:var(--brand);background:var(--brand-soft)}.upload-zone input{opacity:0;cursor:pointer;height:100%;position:absolute;inset:0}.upload-zone.disabled{pointer-events:none;opacity:.6}.large-icon{color:var(--brand);place-items:center;display:inline-grid}.import-result{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.import-preview{max-height:340px}.import-preview table{border-collapse:collapse;width:100%;font-size:13px}.import-preview th,.import-preview td{text-align:left;border-bottom:1px solid var(--line);padding:8px 10px}.history-list{border:1px solid var(--line);border-radius:6px;flex-direction:column;display:flex}.history-record{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.history-record:last-child{border-bottom:0}.history-record small{color:var(--muted)}.legacy-note{color:var(--warn);font-size:12px}.reference-model-picker{flex-direction:column;gap:6px;display:flex}.certificate-spec-fields{border-top:1px solid var(--line);flex-direction:column;gap:14px;padding-top:16px;display:flex}.toast{z-index:300;background:var(--ink);color:#fff;border-radius:8px;align-items:center;gap:10px;max-width:min(440px,100vw - 40px);padding:11px 12px 11px 14px;font-size:14px;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 8px 24px #0f172a40}.toast svg{color:#7dd3a7;flex-shrink:0}.toast.error svg{color:#f8a59c}.toast button{color:#ffffffa0;display:flex}.toast button svg{color:inherit}.login{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.auth-box{background:var(--surface);border:1px solid var(--line);border-radius:12px;width:min(400px,100%);padding:32px 28px}.auth-box .brand img{height:38px}.auth-box h1{margin-top:26px;font-size:22px;font-weight:700}.auth-box>p{margin:4px 0 22px}.auth-box form{flex-direction:column;gap:14px;display:flex}.auth-box form .button{margin-top:6px}.password-input{position:relative}.password-input input{padding-right:40px}.password-input button{width:32px;height:32px;color:var(--muted);place-items:center;display:grid;position:absolute;top:50%;right:4px;translate:0 -50%}.auth-links{justify-content:space-between;margin-top:18px;display:flex}@media (max-width:860px){.user-name{display:none}.topbar-inner{gap:14px;padding:0 16px}.main-nav button span{display:none}.main-nav button{padding:0 10px}}@media (max-width:640px){.main-content{padding:22px 16px 48px}.brand img{height:24px}.hide-sm{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:21px}.heading-actions,.heading-actions .button{flex:1}.toolbar,.toolbar.filters{flex-direction:column;align-items:stretch}.search-input,.search-input.grow{min-width:0;max-width:none}.inline-field input,.toolbar select{width:100%}.tabs{overflow-x:auto}.form-grid,.form-grid.three,.code-grid,.picker-filters{grid-template-columns:1fr}.picker-row{grid-template-columns:16px 1fr auto}.picker-cpf{display:none}.print-actions,.print-actions .button{flex:1}.modal-header{padding:16px}.modal-body{padding:16px 16px 0}.modal-actions{margin:auto -16px 0;padding:12px 16px}.doc-col{width:auto}}
