:root{
  --navy:#0b1a33;--navy2:#132b50;--green:#00b968;--green-dark:#008f52;--blue:#1976e8;--red:#d9364e;--orange:#f47b32;--yellow:#d9a71b;
  --bg:#f4f7fb;--panel:#fff;--ink:#152137;--muted:#6d788d;--line:#e2e8f1;--shadow:0 16px 40px rgba(17,31,52,.08);--radius:18px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}.hidden{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(circle at 70% 20%,#18335f 0,#0b1a33 52%,#071225 100%)}
.login-card{width:min(520px,100%);background:#fff;border-radius:26px;padding:34px;box-shadow:0 34px 100px rgba(0,0,0,.35)}.login-brand{display:flex;align-items:center;gap:18px;margin-bottom:18px}.login-brand img{width:92px;height:104px;object-fit:cover;object-position:left center;border-radius:20px}.brand-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--muted);text-transform:uppercase}.login-brand h1{margin:3px 0 0;font-size:36px;letter-spacing:-.05em}.login-brand h1 em{font-style:normal;color:var(--green)}.login-brand p{margin:4px 0;color:var(--muted)}.login-module{background:#eefbf5;border:1px solid #ccefdc;color:#14764c;border-radius:12px;padding:11px 13px;margin:16px 0 18px}.login-help{font-size:12px;color:var(--muted);text-align:center;margin:14px 0 0}.login-error{margin-top:12px;background:#fff0f2;color:#a32639;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:700}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--navy);color:#fff;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 7px 20px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-logo{width:44px;height:50px;object-fit:cover;object-position:left center;border-radius:11px}.brand strong{display:block;font-size:18px;letter-spacing:-.03em}.brand strong b{color:var(--green)}.brand span{display:block;font-size:12px;color:#9dafca;margin-top:2px}.module-label{font-size:9px;letter-spacing:.16em;color:#6f84a4;font-weight:900;margin:22px 10px 8px}.nav{display:grid;gap:6px}.nav-item{border:0;background:transparent;color:#a8b6ca;text-align:left;padding:12px 13px;border-radius:11px;cursor:pointer;font-weight:800}.nav-item span{display:inline-block;width:26px}.nav-item:hover,.nav-item.active{background:#183155;color:#fff}.disabled-nav{opacity:.5;cursor:default!important}.disabled-nav small{float:right;font-size:9px;color:#7d90ab}.sidebar-footer{margin-top:auto;color:#9eb0c7;font-size:11px;display:grid;gap:8px;padding:12px 8px}.sidebar-footer>div{display:flex;gap:7px;align-items:center}.api-dot{width:8px;height:8px;border-radius:50%;background:#8390a5}.api-dot.online{background:#32d28c}.api-dot.offline{background:#f16171}.signed-user{color:#d9e3f0!important;font-weight:700}
.main{padding:30px 36px 48px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{margin:0 0 7px;font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--green-dark)}.eyebrow.orange{color:var(--orange)}.yellow-text{color:#9c7400}.red-text{color:var(--red)}h1{margin:0;font-size:31px;letter-spacing:-.04em}h2{margin:0;font-size:20px}.top-actions,.detail-actions,.modal-actions,.section-toolbar{display:flex;gap:10px;align-items:center}.section-toolbar{justify-content:space-between;margin-bottom:18px}.section-toolbar p{margin:5px 0 0;color:var(--muted);font-size:13px}
.btn{border:0;border-radius:11px;padding:10px 15px;font-weight:850;cursor:pointer;transition:.16s}.btn.primary{background:linear-gradient(135deg,var(--green),#00a95f);color:#fff;box-shadow:0 8px 18px rgba(0,185,104,.2)}.btn.primary:hover{background:var(--green-dark)}.btn.secondary{background:#fff;border:1px solid var(--line);color:#3c485c}.btn.ghost{background:transparent;color:#66738a}.btn.success{background:#e7f8ef;color:#14764c;border:1px solid #c9ecd9}.btn.danger-outline{background:#fff;color:var(--red);border:1px solid #f0c7ce}.btn.wide{width:100%;padding:13px}.btn.small{padding:7px 10px;font-size:11px}.btn:disabled{opacity:.5;cursor:not-allowed}.security-banner{background:#fff6d9;border:1px solid #f0dd9a;color:#7a6110;border-radius:12px;padding:11px 14px;margin:-6px 0 18px;font-size:13px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.cards.compact{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:18px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px 17px;text-align:left;box-shadow:0 5px 18px rgba(25,38,62,.035)}.card span{display:block;font-size:11px;color:var(--muted);font-weight:850}.card strong{display:block;font-size:27px;margin:7px 0 2px}.card small{color:#8993a3}.card.good{border-top:3px solid var(--green)}.card.warn{border-top:3px solid var(--orange)}.card.danger{border-top:3px solid var(--red)}.card.yellow{border-top:3px solid var(--yellow)}button.card{cursor:pointer}.filter-card.active{outline:2px solid var(--green);outline-offset:-2px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:19px 21px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.search,.field input,.field select{border:1px solid #dbe3ee;border-radius:10px;padding:10px 11px;outline:none;background:#fff}.search{width:290px}.search:focus,.field input:focus,.field select:focus{border-color:#7ec8a6;box-shadow:0 0 0 3px #e7f8ef}.field{display:grid;gap:7px;margin:13px 0}.field span{font-size:11px;font-weight:850;color:#596579}.field-help{font-size:11px;color:var(--muted);margin:-6px 0 8px}
.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;padding:11px 13px;color:#758094;font-size:10px;text-transform:uppercase;letter-spacing:.05em;background:#fafbfd;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px;border-bottom:1px solid #edf0f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr.clickable:hover{background:#f7fbf9;cursor:pointer}.prod-title{font-weight:850;color:#263247}.subtle{color:#8490a1;font-size:11px;margin-top:3px}.mono{font-family:Consolas,monospace;font-size:11px}.num{text-align:right;font-variant-numeric:tabular-nums}.empty{padding:42px;text-align:center;color:#8893a4}.status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:900;white-space:nowrap}.s-LINKED{background:#e8f8f0;color:#117451}.s-PACKAGING_REVIEW{background:#fff0e5;color:#b45f1d}.s-UNLINKED{background:#fff8d8;color:#806100}.s-UNREGISTERED,.s-AMBIGUOUS{background:#ffe9ed;color:#aa2d41}.s-OPEN,.s-COUNTING{background:#eaf3ff;color:#165da9}.s-REVIEW,.s-WAITING_CPD{background:#fff0e5;color:#b45f1d}.s-CLOSED{background:#edf0f5;color:#667085}
.back{border:0;background:transparent;color:var(--green-dark);font-weight:850;padding:0;margin-bottom:15px;cursor:pointer}.detail-hero{background:linear-gradient(120deg,var(--navy),#183d6e);color:#fff;border-radius:18px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:var(--shadow)}.detail-title-row{display:flex;align-items:center;gap:10px}.detail-hero h2{font-size:25px}.detail-hero p{margin:7px 0 2px;color:#c9d5e7}.detail-hero small{color:#8ee1b6}.status-chip{background:rgba(255,255,255,.13);padding:5px 8px;border-radius:99px;font-size:10px;font-weight:900}.file-btn input,.dropzone input{display:none}.detail-hero .btn.secondary{background:#fff}.conference-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 17px}.result-box{border-radius:13px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;border:1px solid}.result-box span{font-size:10px;font-weight:950;letter-spacing:.08em}.result-box strong{font-size:20px}.result-ok{background:#eaf9f1;border-color:#cbeedb;color:#13764d}.result-missing{background:#fff0f2;border-color:#f3ccd2;color:#b2293e}.result-over{background:#eaf3ff;border-color:#cddff5;color:#155da8}.result-chip{display:inline-flex;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:950;white-space:nowrap}.result-chip.ok{background:#e7f8ef;color:#117451}.result-chip.missing{background:#ffe9ed;color:#aa2d41}.result-chip.over{background:#e8f2ff;color:#165da9}.result-chip.neutral{background:#f0f2f5;color:#6d7787}
.action-link{border:0;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:900;cursor:pointer;background:#fff0e5;color:#a85617}.action-link.yellow-action{background:#fff8d8;color:#806100}.action-link.red-action{background:#ffe9ed;color:#aa2d41}.action-disabled{color:#9aa4b3;font-size:10px;font-weight:700}
.modal-backdrop{position:fixed;inset:0;background:rgba(7,16,31,.62);display:grid;place-items:center;padding:22px;z-index:50}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:25px;box-shadow:0 24px 80px rgba(7,16,31,.35);position:relative}.small-modal{width:min(520px,100%)}.modal-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:26px;color:#8a94a5;cursor:pointer}.modal h2{font-size:24px;margin-bottom:5px}.modal-sub{color:var(--muted);line-height:1.5;margin:7px 0 18px}.modal-actions{justify-content:flex-end;margin-top:20px}.dropzone{border:1.5px dashed #b8c8de;border-radius:14px;padding:22px;text-align:center;background:#f8fbff;display:grid;gap:6px;cursor:pointer}.dropzone strong{color:var(--green-dark)}.dropzone span{font-size:11px;color:#7d899a}.compare-grid{display:grid;grid-template-columns:1fr 34px 1fr;align-items:center;gap:9px}.compare-box{border-radius:13px;padding:16px}.compare-box span,.info-strip span,.info-grid span{display:block;color:#748197;font-size:10px;font-weight:850}.compare-box strong{display:block;font-size:20px;margin-top:5px}.compare-box small{display:block;color:#8993a3;margin-top:3px}.good-soft{background:#effaf4;border:1px solid #cfeedd}.bad-soft{background:#fff4ef;border:1px solid #f4d8ca}.compare-arrow{text-align:center;font-size:20px;color:#8490a1}.suggestion{margin-top:15px;border:1px solid #cfe1fb;background:#f3f7fd;border-radius:13px;padding:16px}.suggestion span{font-size:10px;font-weight:900;color:var(--blue);text-transform:uppercase}.suggestion strong{display:block;font-size:22px;margin:5px 0}.suggestion p{margin:0;color:#5f6d81;font-size:12px;line-height:1.45}.info-strip,.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}.info-strip>div,.info-grid>div{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fafbfd}.info-strip strong,.info-grid strong{display:block;margin-top:5px;font-size:13px;word-break:break-word}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:11px}.warning-box{margin-top:15px;border:1px solid #f0d4d7;background:#fff6f7;border-radius:13px;padding:15px}.warning-box strong{color:#a72e38}.warning-box p{margin:5px 0 0;color:#657184;font-size:12px}
.integration-active{display:inline-block;background:#e8f8f0;color:#117451;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:900}.integration-key{font-family:Consolas,monospace;color:#748197}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.section-toolbar{margin-top:5px}
.toast{position:fixed;right:22px;bottom:22px;background:#15233a;color:#fff;padding:12px 15px;border-radius:11px;box-shadow:var(--shadow);z-index:80;max-width:430px;font-weight:750;font-size:12px}.toast.error{background:#9e2934}.toast.success{background:#126a4c}.loading{position:fixed;inset:0;background:rgba(244,247,251,.78);backdrop-filter:blur(2px);z-index:70;display:grid;place-items:center;align-content:center;gap:11px}.spinner{width:36px;height:36px;border:4px solid #d6e2f1;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.app-shell{grid-template-columns:82px 1fr}.brand>div,.module-label,.nav-item{font-size:0}.brand-logo{width:42px}.nav-item{text-align:center}.nav-item span{font-size:18px;width:auto}.sidebar-footer span:not(.api-dot),.signed-user{display:none}.cards,.cards.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-actions{flex-wrap:wrap}}
@media(max-width:760px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:10px 12px;flex-direction:row;align-items:center}.brand{border:0;padding:0}.nav{display:flex;margin-left:auto}.admin-nav,.sidebar-footer,.module-label{display:none!important}.main{padding:18px 12px}.topbar,.detail-hero,.panel-head,.section-toolbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%;flex-wrap:wrap}.cards,.cards.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.conference-summary{grid-template-columns:1fr}.search{width:100%}.compare-grid,.info-strip,.info-grid,.form-grid.two{grid-template-columns:1fr}.compare-arrow{transform:rotate(90deg)}.login-brand{align-items:flex-start}.login-brand img{width:72px;height:82px}.login-brand h1{font-size:30px}}

/* CTRL SMART v0.7.4 - módulo Requisições */
.req-manager-badge{background:#e8f8f0;color:#117451;border:1px solid #ccebd9;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:950;white-space:nowrap}.req-guide{display:flex;gap:10px;align-items:center;background:#eefbf5;border:1px solid #ccefdc;color:#176b4a;border-radius:13px;padding:13px 15px;margin-bottom:16px;font-size:12px}.req-guide strong{white-space:nowrap}.req-guide span{color:#526f62}.req-status-pill{display:inline-flex;align-items:center;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:900}.req-DRAFT{background:#eaf3ff;color:#165da9}.req-SENT{background:#e8f8f0;color:#117451}.req-ERROR{background:#ffe9ed;color:#aa2d41}.integration-section{margin-top:18px;padding:16px;border:1px solid #d8e9e0;border-radius:14px;background:#f7fcf9}.integration-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.integration-section-head h3{margin:3px 0 0;font-size:17px}.reference-status{margin-top:10px;border-radius:11px;padding:10px 12px;background:#edf5ff;color:#245a90;font-size:11px;line-height:1.45}.reference-status.error{background:#fff0f2;color:#9e2934}.req-items-inline{color:#657184;font-size:11px}.req-vf-id{font-family:Consolas,monospace;font-weight:800}.req-client{font-weight:850}.req-reason{font-weight:850;color:#263247}.req-error{max-width:320px;color:#aa2d41;font-size:11px}.requisition-config-tag{display:inline-flex;align-items:center;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:900;margin-top:5px}.requisition-config-tag.ok{background:#e8f8f0;color:#117451}.requisition-config-tag.missing{background:#fff0e5;color:#a85617}
@media(max-width:760px){.req-guide,.integration-section-head{align-items:flex-start;flex-direction:column}.req-manager-badge{align-self:flex-start}}

/* CTRL SMART v0.8.5 - fornecedor preenchido automaticamente pelo XML */
.btn.supplier-create{background:#fff7dd;color:#745900;border:1px solid #efd77e}.btn.supplier-create:hover{background:#ffefb8}.supplier-note{margin-top:14px;border:1px solid #d9e7f7;background:#f5f9ff;border-radius:13px;padding:13px 15px;display:grid;gap:4px}.supplier-note strong{color:#254d7c;font-size:12px}.supplier-note span{color:#617188;font-size:11px;line-height:1.45}

/* CTRL SMART v0.9.0 - Dashboard / Relatorios */
.report-hero{background:linear-gradient(120deg,var(--navy),#153967);color:#fff;border-radius:20px;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:24px;box-shadow:var(--shadow);margin-bottom:14px}.report-hero h2{font-size:27px;letter-spacing:-.03em}.report-hero>div>p:last-child{margin:7px 0 0;color:#c8d5e7;max-width:720px;font-size:13px}.report-hero .eyebrow{color:#78e4b3}.report-sync-box{min-width:260px;display:grid;justify-items:end;gap:9px;text-align:right}.report-sync-box span{font-size:11px;color:#aebed4;line-height:1.4}.report-filter-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 15px;display:flex;align-items:end;gap:10px;flex-wrap:wrap;box-shadow:0 5px 18px rgba(25,38,62,.035);margin-bottom:14px}.report-filter-field{display:grid;gap:5px}.report-filter-field span{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#718097;font-weight:950}.report-filter-field select,.report-filter-field input{height:38px;border:1px solid #dbe3ee;border-radius:10px;padding:0 10px;background:#fff;color:#263247;outline:none}.report-filter-field select{min-width:185px}.report-presets{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.report-preset,.report-tab{border:1px solid #dbe3ee;background:#fff;color:#526076;border-radius:999px;padding:8px 10px;font-size:10px;font-weight:900;cursor:pointer}.report-preset:hover,.report-preset.active,.report-tab:hover,.report-tab.active{border-color:#9bdcbd;background:#eaf9f2;color:#087747}.report-tabs{display:flex;gap:7px;margin:5px 0 15px}.report-tab{padding:9px 15px}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.report-kpi{background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px 16px;box-shadow:0 5px 18px rgba(25,38,62,.035);min-height:115px}.report-kpi .kpi-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#647086;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.report-kpi .kpi-value{font-size:25px;font-weight:900;margin:10px 0 4px;letter-spacing:-.035em;color:#17243a}.report-kpi .kpi-note{color:#8792a4;font-size:10px;line-height:1.35}.report-kpi.good{border-top:3px solid var(--green)}.report-kpi.blue{border-top:3px solid var(--blue)}.report-kpi.warn{border-top:3px solid var(--orange)}.report-kpi.danger{border-top:3px solid var(--red)}.kpi-change{font-size:9px;border-radius:99px;padding:4px 6px;background:#eef2f7;color:#6a7688;white-space:nowrap}.kpi-change.up{background:#e8f8f0;color:#117451}.kpi-change.down{background:#ffe9ed;color:#aa2d41}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.report-grid.wide-left{grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr)}.report-panel{margin-bottom:14px}.report-grid .report-panel{margin-bottom:0}.report-panel .panel-head{padding:16px 18px}.report-panel .panel-head h2{font-size:17px}.report-chart-wrap{padding:15px 18px 17px}.trend-chart{width:100%;height:260px;display:block}.trend-grid-line{stroke:#e9eef5;stroke-width:1}.trend-line{fill:none;stroke:#00a95f;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.trend-area{fill:url(#reportAreaGradient)}.trend-dot{fill:#fff;stroke:#00a95f;stroke-width:2}.trend-label{font-size:9px;fill:#7d8898}.trend-value{font-size:9px;fill:#4f5c70;font-weight:700}.report-bar-list{padding:14px 18px 18px;display:grid;gap:12px}.report-bar-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(120px,2fr) auto;gap:10px;align-items:center}.report-bar-label{font-size:11px;font-weight:800;color:#39465a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-bar-track{height:9px;background:#eef2f7;border-radius:999px;overflow:hidden}.report-bar-fill{height:100%;background:linear-gradient(90deg,var(--green),#22cd7f);border-radius:999px;min-width:2px}.report-bar-value{font-size:10px;color:#6c788a;font-weight:850;white-space:nowrap}.report-bar-empty{padding:30px 18px;text-align:center;color:#8993a3;font-size:12px}.manager-alerts{padding:13px 16px 16px;display:grid;gap:9px}.manager-alert{border-radius:12px;padding:12px 13px;border:1px solid #dce4ef;background:#f8fafc}.manager-alert strong{display:block;font-size:12px}.manager-alert span{display:block;color:#677489;font-size:11px;line-height:1.45;margin-top:4px}.manager-alert.good{background:#eefaf4;border-color:#cdebdc}.manager-alert.good strong{color:#117451}.manager-alert.warn{background:#fff8e7;border-color:#f0dfae}.manager-alert.warn strong{color:#8a6500}.manager-alert.danger{background:#fff0f2;border-color:#f2cdd3}.manager-alert.danger strong{color:#aa2d41}.report-table-change{font-size:10px;font-weight:900}.report-table-change.up{color:#117451}.report-table-change.down{color:#aa2d41}.report-table-change.neutral{color:#8993a3}.finance-flow{padding:14px 18px 18px;display:grid;gap:10px}.finance-flow-row{display:grid;grid-template-columns:55px minmax(0,1fr) 95px 95px;gap:9px;align-items:center;font-size:10px}.finance-flow-date{font-weight:900;color:#536075}.finance-dual-track{height:10px;background:#eef2f7;border-radius:999px;display:flex;overflow:hidden}.finance-receive{background:#22bd72;height:100%}.finance-pay{background:#ef7b42;height:100%}.finance-value{font-variant-numeric:tabular-nums;text-align:right;color:#59667a;font-weight:800}.finance-balance-positive{color:#117451!important}.finance-balance-negative{color:#aa2d41!important}.report-empty-state{background:#fff;border:1px dashed #ccd6e4;border-radius:15px;padding:34px;text-align:center;color:#758196}.report-empty-state strong{display:block;color:#364358;margin-bottom:7px}.report-sync-warning{background:#fff8e7;border:1px solid #f0dfae;color:#7c630d;border-radius:11px;padding:10px 12px;font-size:11px;margin-bottom:12px}.report-data-note{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#7b8798}.report-data-note::before{content:"";width:7px;height:7px;border-radius:50%;background:#32d28c}.report-mini-stack{padding:14px 18px 18px;display:grid;gap:11px}.report-mini-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;padding-bottom:9px}.report-mini-row:last-child{border-bottom:0;padding-bottom:0}.report-mini-row span{font-size:11px;color:#526076;max-width:70%}.report-mini-row strong{font-size:11px;color:#253247;text-align:right}.report-pill{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:900}.report-pill.overdue{background:#ffe9ed;color:#aa2d41}.report-pill.open{background:#fff8d8;color:#806100}.report-pill.receivable{background:#e8f8f0;color:#117451}.report-pill.payable{background:#fff0e5;color:#a85617}
@media(max-width:1250px){.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-grid.wide-left{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}.report-hero{align-items:flex-start;flex-direction:column}.report-sync-box{justify-items:start;text-align:left;min-width:0}.report-filter-panel{align-items:stretch}.report-filter-field select{min-width:150px}.finance-flow-row{grid-template-columns:48px minmax(0,1fr) 85px}.finance-flow-row .finance-value:nth-last-child(1){display:none}}
@media(max-width:620px){.report-kpis{grid-template-columns:1fr}.report-filter-panel{display:grid;grid-template-columns:1fr}.report-filter-field select,.report-filter-field input{width:100%}.report-presets{order:2}.report-tabs{overflow:auto}.report-bar-row{grid-template-columns:minmax(90px,1fr) minmax(90px,1.5fr) auto}.trend-chart{height:220px}}

/* CTRL SMART v0.9.1 - diagnostico de sincronizacao */
.report-sync-details{max-width:520px;padding:8px 10px;border-radius:10px;background:#fff2f2;border:1px solid #f2b8b8;color:#9a1f1f;font-size:12px;line-height:1.35;text-align:left}
.report-sync-details div+div{margin-top:5px}

/* CTRL SMART v0.9.6 - finalizadoras recuperadas e secoes auditaveis */
.report-sync-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.report-live-status{display:inline-flex!important;align-items:center;gap:7px;color:#c8d5e7!important}.report-live-status::before{content:"";width:8px;height:8px;border-radius:50%;background:#49db98;box-shadow:0 0 0 4px rgba(73,219,152,.12)}.report-live-status.syncing::before{background:#ffd166;animation:reportPulse 1.1s infinite}.report-live-status.error::before{background:#ff6b72}.report-full-sync{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.2)!important}.report-full-sync:hover{background:rgba(255,255,255,.14)!important}.report-sync-actions .btn[disabled]{opacity:.6;cursor:wait}@keyframes reportPulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}
@media(max-width:900px){.report-sync-actions{justify-content:flex-start}}

/* v0.9.6 - diagnostico parcial de catalogos */
.report-sync-details:not(.hidden){box-shadow:0 8px 22px rgba(17,31,52,.08)}

.report-history{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.2)!important}.report-history:hover{background:rgba(255,255,255,.14)!important}.history-status{margin:12px 0;padding:11px 12px;border-radius:11px;background:#eefaf4;border:1px solid #cdebdc;color:#176c4e;font-size:12px;font-weight:800;line-height:1.4}.history-status.error{background:#fff0f2;border-color:#f2cdd3;color:#aa2d41}.history-coverage{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f5f7fa;border:1px solid #e1e7ef;color:#657287;font-size:11px;line-height:1.45}


/* CTRL SMART v0.10.0 - Gestor de Compras */
.purchase-hero{background:linear-gradient(120deg,#102844,#0f4b46);color:#fff;border-radius:20px;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:24px;box-shadow:var(--shadow);margin-bottom:14px}.purchase-hero h2{font-size:27px;letter-spacing:-.03em}.purchase-hero>div>p:last-child{margin:7px 0 0;color:#c8ded8;max-width:760px;font-size:13px}.purchase-hero .eyebrow{color:#75e4b0}.purchase-sync-box{min-width:260px;display:grid;justify-items:end;gap:10px;text-align:right}.purchase-sync-box span{font-size:11px;color:#c3d8d3}.purchase-rule-panel input{width:115px}.purchase-table-panel{margin-top:14px}.purchase-table-head{align-items:flex-end}.purchase-table-filters{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.purchase-table-filters .search{width:210px}.purchase-table-filters select{height:38px;border:1px solid #dbe3ee;border-radius:10px;padding:0 9px;background:#fff;color:#3d4b60;max-width:185px}.purchase-status{display:inline-flex;padding:5px 8px;border-radius:99px;font-size:9px;font-weight:950;white-space:nowrap}.purchase-status.danger{background:#ffe9ed;color:#aa2d41}.purchase-status.warn{background:#fff1df;color:#a85617}.purchase-status.blue{background:#e8f2ff;color:#165da9}.purchase-status.excess{background:#e8f6ff;color:#16678e}.purchase-status.good{background:#e8f8f0;color:#117451}.purchase-status.neutral{background:#eef1f5;color:#697586}.purchase-abc{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;font-size:10px;font-weight:950}.purchase-abc.abc-A{background:#ffe9ed;color:#aa2d41}.purchase-abc.abc-B{background:#fff4d8;color:#886500}.purchase-abc.abc-C{background:#e9f6ef;color:#18724f}.purchase-table td{white-space:nowrap}.purchase-table td:nth-child(3),.purchase-table td:nth-child(4),.purchase-table td:nth-child(5){white-space:normal;min-width:150px}.purchase-mini-note{display:block;margin-top:3px;color:#929baa;font-size:9px}.purchase-limit-note{padding:12px 16px;background:#fff9e9;color:#7a6418;border-top:1px solid #f0e1ad;font-size:11px}.purchase-footnote{margin-top:10px;color:#7e8999;font-size:10px;text-align:right}.purchase-table .subtle{white-space:nowrap}
@media(max-width:1100px){.purchase-hero{align-items:flex-start;flex-direction:column}.purchase-sync-box{justify-items:start;text-align:left}.purchase-table-head{align-items:flex-start;flex-direction:column}.purchase-table-filters{justify-content:flex-start}}
@media(max-width:700px){.purchase-rule-panel{display:grid;grid-template-columns:1fr 1fr}.purchase-table-filters{display:grid;grid-template-columns:1fr}.purchase-table-filters .search,.purchase-table-filters select{width:100%;max-width:none}}
/* CTRL SMART v0.10.1 - Bases de analise e auditoria de compra */
.purchase-basis-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 15px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 5px 18px rgba(25,38,62,.035);margin-bottom:12px}.purchase-basis-title{display:grid;gap:4px;min-width:230px}.purchase-basis-title strong{font-size:12px;color:#263247}.purchase-basis-title span{font-size:10px;color:#7d899b;line-height:1.4}.purchase-basis-switch{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:8px;min-width:min(100%,520px)}.purchase-basis-option{border:1px solid #dbe3ee;background:#f9fbfd;border-radius:12px;padding:11px 13px;text-align:left;cursor:pointer;color:#3c4960}.purchase-basis-option strong{display:block;font-size:11px}.purchase-basis-option small{display:block;font-size:9px;color:#8792a4;margin-top:3px;line-height:1.3}.purchase-basis-option.active{border-color:#6fd3a3;background:#eaf9f2;box-shadow:0 0 0 2px rgba(0,177,98,.08)}.purchase-basis-option.active strong{color:#087747}.purchase-check-field{height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#526076;font-size:10px;font-weight:800}.purchase-check-field input{accent-color:#00a95f}.manager-alert.blue{background:#edf6ff;border-color:#cce2f7}.manager-alert.blue strong{color:#165da9}.purchase-source{display:block;margin-top:3px;color:#97a1b0;font-size:8px;text-transform:uppercase;letter-spacing:.03em}.purchase-stock-muted{color:#9ba5b4}.purchase-mode-pill{display:inline-flex;padding:4px 7px;border-radius:99px;background:#eef7ff;color:#296294;font-size:9px;font-weight:900;margin-left:5px}
@media(max-width:950px){.purchase-basis-panel{align-items:flex-start;flex-direction:column}.purchase-basis-switch{width:100%;min-width:0}}
@media(max-width:620px){.purchase-basis-switch{grid-template-columns:1fr}.purchase-check-field{width:100%}}
