@layer legacy {
:root{--navy:#102443;--navy2:#173b6d;--ink:#14253a;--muted:#607188;--line:#e1e9f3;--bg:#f4f7fb;--white:#fff;--blue:#1967d2;--blue-light:#ebf2ff;--previous:#c8d8f4;--success:#087443;--success-bg:#e9f8ef;--orange:#c96a13;--orange-bg:#fff2e5;--danger:#b42318;--danger-bg:#ffebe9;--warning:#955700;--warning-bg:#fff5df;--shadow:0 20px 48px rgba(16,36,67,.08)}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg)}
.shell{min-height:100vh;display:grid;grid-template-columns:275px 1fr}.sidebar{background:linear-gradient(165deg,var(--navy),var(--navy2));color:#fff;padding:35px 25px;position:sticky;top:0;height:100vh}
.brand{font-weight:700;font-size:21px;line-height:1.35}.brand small{display:block;font-size:13px;font-weight:400;opacity:.72;margin-top:12px}.env{display:inline-flex;margin-top:38px;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:8px 12px;font-weight:700;font-size:11px;letter-spacing:.08em}
.menu{margin-top:40px}.menu a{display:block;color:rgba(255,255,255,.82);text-decoration:none;padding:13px 14px;border-radius:12px;margin-bottom:7px;font-size:14px}.menu a.active{background:rgba(255,255,255,.15);color:#fff;font-weight:700}.menu a.locked{opacity:.46;cursor:not-allowed}.side-caption{font-size:12px;line-height:1.65;color:rgba(255,255,255,.63);position:absolute;bottom:26px;left:25px;right:25px}
.content{padding:34px;min-width:0}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.top h1{margin:3px 0 7px;font-size:29px;color:var(--navy)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:var(--blue)}.sub{font-size:13px;color:var(--muted)}.user{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:14px}
.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:12px 17px;font-size:14px;font-weight:700;cursor:pointer;background:var(--blue);color:#fff;text-decoration:none}.button.ghost{background:#fff;color:var(--navy);border:1px solid var(--line)}
.notice{border-radius:14px;padding:14px 17px;font-size:13px;line-height:1.55;margin-bottom:19px}.notice.demo{background:#eef5ff;color:#21539a;border:1px solid #d1e1fb}.notice.success{background:var(--success-bg);color:var(--success)}
.stats{display:grid;grid-template-columns:repeat(4,minmax(175px,1fr));gap:15px;margin-bottom:18px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px;box-shadow:var(--shadow)}.stat{min-height:128px}.stat label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:21px;letter-spacing:.05em}.stat strong{display:block;font-size:27px;color:var(--navy);margin-bottom:8px}.stat small{color:var(--muted);font-size:12px}.stat.blue{background:linear-gradient(180deg,#fff,#f5f9ff)}.stat.orange{background:linear-gradient(180deg,#fff,#fff9f4)}.stat.green{background:linear-gradient(180deg,#fff,#f4fcf8)}.stat.red{background:linear-gradient(180deg,#fff,#fff6f5)}
.dashboard-grid{display:grid;grid-template-columns:minmax(550px,1fr) 350px;gap:18px}.chart-card{padding:24px 24px 19px}.section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.section-header h2{font-size:17px;color:var(--navy);margin:0 0 6px}.section-header p{font-size:12px;color:var(--muted);margin:0}.legend{display:flex;gap:13px;color:var(--muted);font-size:12px;white-space:nowrap}.legend span{display:flex;align-items:center;gap:5px}.dot{height:10px;width:10px;border-radius:50%;display:inline-block}.dot.current{background:var(--blue)}.dot.previous{background:var(--previous)}
.comparison{background:#f7f9fd;border-radius:12px;padding:12px 14px;font-size:13px;color:var(--muted);margin-bottom:17px}.comparison strong.positive{color:var(--success)}.comparison strong.negative{color:var(--danger)}
.revenue-chart{height:300px;display:flex;align-items:stretch;gap:10px;padding:10px 2px 0}.month-group{flex:1;min-width:58px;display:flex;flex-direction:column;justify-content:flex-end;text-align:center}.bar-label{font-size:11px;color:var(--muted);height:30px;display:flex;align-items:end;justify-content:center;margin-bottom:5px}.bar-area{height:215px;display:flex;align-items:flex-end;justify-content:center;gap:6px}.bar{width:min(31px,42%);border:0;border-radius:7px 7px 3px 3px;cursor:pointer;transition:transform .14s,filter .14s;min-height:4px;position:relative}.bar:hover,.bar:focus{transform:translateY(-3px);filter:brightness(.95);outline:2px solid rgba(25,103,210,.23)}.bar.current{background:var(--blue)}.bar.previous{background:var(--previous)}.month-name{font-size:12px;color:var(--muted);padding-top:9px;text-transform:capitalize}
.side-panel{padding:24px}.closing-list{margin-top:19px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.closing-row{display:flex;justify-content:space-between;align-items:center;padding:15px 14px;border-bottom:1px solid var(--line)}.closing-row:last-child{border-bottom:0}.closing-row strong{display:block;font-size:14px}.closing-row small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.pill{font-weight:700;font-size:11px;border-radius:999px;padding:6px 9px}.pill.ok{color:var(--success);background:var(--success-bg)}.pill.pending{color:var(--warning);background:var(--warning-bg)}.priority{background:#fff8eb;border:1px solid #f4dfbc;border-radius:14px;padding:15px;margin-top:18px;color:var(--warning)}.priority strong{font-size:13px}.priority p{font-size:12px;line-height:1.6;margin:8px 0 0}
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(14,27,47,.55);z-index:50;align-items:center;justify-content:center;padding:24px}.modal-backdrop.open{display:flex}.modal-card{width:min(1120px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:25px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.2)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h2{color:var(--navy);font-size:25px;margin:5px 0 0}.close-button{border:1px solid var(--line);background:#fff;width:40px;height:40px;border-radius:12px;font-size:26px;cursor:pointer;color:var(--muted)}.modal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:21px}.modal-kpi{border:1px solid var(--line);border-radius:15px;padding:14px}.modal-kpi label{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-bottom:10px}.modal-kpi strong{font-size:20px;color:var(--navy)}.detail-section{border:1px solid var(--line);border-radius:17px;padding:17px;margin-bottom:16px}.detail-section h3{font-size:15px;color:var(--navy);margin:0 0 11px}.sort-description{font-size:12px;color:var(--muted);margin:0 0 11px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:13px}th{background:#f8faff;padding:12px 11px;text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;white-space:nowrap;cursor:pointer;user-select:none}th.active{color:var(--blue);background:#eef5ff}td{border-top:1px solid var(--line);padding:12px 11px}td.value{font-weight:700;white-space:nowrap}.status{display:inline-block;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;background:#eef5ff;color:#245aa2}.status.emitted{background:var(--success-bg);color:var(--success)}.status.attention{background:var(--warning-bg);color:var(--warning)}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.row-item{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.row-item:last-child{border-bottom:0}.row-item small{display:block;color:var(--muted);margin-top:4px}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:780px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;padding:22px}.env{margin-top:18px}.menu{margin-top:18px;display:flex;overflow:auto}.menu a{white-space:nowrap}.side-caption{display:none}.content{padding:18px}.top{align-items:flex-start;flex-direction:column;gap:15px}.stats,.modal-kpis,.detail-columns{grid-template-columns:1fr}.revenue-chart{overflow:auto;min-width:650px}.chart-card{overflow:hidden}.modal-card{padding:19px}}

/* Correção 0.3.1: modal oculto até interação */
.modal-backdrop:not(.open){display:none}


/* Etapa 0.4 — Recebimentos */
.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}
.page-header h1{margin:5px 0 7px;color:var(--navy);font-size:29px}
.receipt-stats{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;margin-bottom:22px}
.receipt-stat{padding:21px;min-height:120px}
.receipt-stat label{display:block;font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.05em;margin-bottom:20px}
.receipt-stat strong{display:block;font-size:25px;color:var(--navy);margin-bottom:6px}
.receipt-stat small{font-size:12px;color:var(--muted)}
.receipt-stat.blue{background:var(--blue-light)}
.receipt-stat.green{background:var(--success-bg)}
.receipt-stat.orange{background:var(--orange-bg)}
.receipt-stat.red{background:var(--danger-bg)}
.receipt-panel{padding:25px}
.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}
.panel-head h2{margin:0 0 6px;font-size:18px;color:var(--navy)}
.panel-head p{margin:0;font-size:13px;color:var(--muted)}
.filters{display:flex;gap:10px;flex-wrap:wrap;padding:15px;border:1px solid var(--line);background:#f8faff;border-radius:16px;margin-bottom:15px}
.filters input,.filters select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:12px 13px;font-size:14px;color:var(--ink)}
.filters input{flex:1;min-width:245px}
.filters select{min-width:180px}
.filters .button{padding:12px 15px}
.table-caption{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 13px;color:var(--muted);font-size:13px}
.operational-table{border:1px solid var(--line);border-radius:15px;overflow:auto;background:#fff}
.operational-table table{min-width:920px}
.operational-table th{cursor:auto}
.operational-table th a{display:flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.operational-table th.sortable{cursor:pointer}
.operational-table th.sortable:hover,.operational-table th.active{color:var(--blue);background:#eef5ff}
.sort-arrow{font-size:13px;font-weight:700}
.identification strong{display:block;font-size:13px;color:var(--ink);margin-bottom:4px}
.identification small{color:var(--muted)}
.tag{display:inline-flex;border-radius:999px;padding:5px 9px;font-weight:700;font-size:11px;white-space:nowrap;background:#eef5ff;color:#245aa2}
.tag.emitted{background:var(--success-bg);color:var(--success)}
.tag.attention{background:var(--warning-bg);color:var(--warning)}
.tag.neutral{background:#edf1f6;color:var(--muted)}
.money{font-weight:700;white-space:nowrap}
.table-action{display:inline-flex;text-decoration:none;padding:8px 10px;border-radius:9px;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--blue);white-space:nowrap;background:#fff}
.table-action:hover{background:#eef5ff}
.empty-row{text-align:center;color:var(--muted);padding:34px}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--muted);font-size:13px;margin-top:16px}
.pagination-links{display:flex;align-items:center;gap:8px}
.pagination .button{padding:9px 12px;font-size:12px}
.pagination .disabled{opacity:.45;pointer-events:none}
.receipt-preview{margin-bottom:21px;border:1px solid #cbdcff;background:#f3f7ff;border-radius:18px;padding:19px 21px}
.receipt-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.receipt-preview h2{margin:4px 0 0;font-size:18px;color:var(--navy)}
.receipt-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.receipt-preview-grid div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.receipt-preview-grid label{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:8px}
.receipt-preview-grid strong{font-size:13px;color:var(--ink)}
@media(max-width:1100px){.receipt-stats{grid-template-columns:repeat(2,1fr)}.receipt-preview-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.page-header{flex-direction:column}.receipt-stats,.receipt-preview-grid{grid-template-columns:1fr}.filters input,.filters select{width:100%;min-width:0}.table-caption,.pagination{align-items:flex-start;flex-direction:column}}


/* Etapa 0.5 — Recibos e Receita Saúde */
.fiscal-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border:1px solid #cadeff;background:#f3f7ff;border-radius:18px;padding:20px 22px;margin-bottom:20px}
.fiscal-intro h2{margin:4px 0 7px;font-size:18px;color:var(--navy)}
.fiscal-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.6;max-width:760px}
.warning-banner{border:1px solid #efcf97;background:var(--warning-bg);color:var(--warning);border-radius:15px;padding:14px 17px;font-size:13px;line-height:1.55;margin-bottom:20px}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap}
.receipt-list-panel{padding:25px}
.masked{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);font-size:12px}
.action-button{border:1px solid var(--line);background:#fff;color:var(--blue);border-radius:9px;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;white-space:nowrap}
.action-button:hover{background:#eef5ff}
.action-button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.action-button.success{background:var(--success);color:#fff;border-color:var(--success)}
.action-button:disabled{opacity:.48;cursor:not-allowed}
.action-form{display:inline-flex}
.detail-card{margin-bottom:21px;padding:22px;border:1px solid #cbdcff;background:#f3f7ff;border-radius:18px}
.detail-card .detail-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:15px}
.detail-card h2{margin:4px 0 0;font-size:18px;color:var(--navy)}
.detail-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}
.detail-grid div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.detail-grid label{display:block;color:var(--muted);font-size:10px;font-weight:700;margin-bottom:8px}
.detail-grid strong{font-size:13px}
.rs-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:17px}
.rs-panel{padding:24px}
.rs-panel h2{margin:0 0 6px;font-size:18px;color:var(--navy)}
.rs-panel .helper{margin:0 0 19px;color:var(--muted);font-size:13px;line-height:1.55}
.checkbox-table input[type=checkbox]{width:16px;height:16px}
.csv-note{margin-top:15px;border-radius:13px;padding:13px 14px;background:var(--warning-bg);color:var(--warning);font-size:12px;line-height:1.55}
.batch{border:1px solid var(--line);border-radius:14px;padding:15px;margin-bottom:10px;background:#fff}
.batch-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.batch strong{font-size:13px;color:var(--ink)}
.batch small{display:block;font-size:12px;color:var(--muted);line-height:1.55}
.batch .batch-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700;background:var(--blue-light);color:var(--blue)}
.batch .batch-status.done{background:var(--success-bg);color:var(--success)}
.empty-box{border:1px dashed var(--line);padding:28px 18px;border-radius:14px;text-align:center;color:var(--muted);font-size:13px;line-height:1.55}
.export-checklist{margin:0 0 18px;padding:0;list-style:none}
.export-checklist li{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:13px;line-height:1.5;padding:6px 0}
.export-checklist li::before{content:"✓";font-weight:700;color:var(--success)}
@media(max-width:1160px){.rs-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.fiscal-intro{flex-direction:column}.detail-grid{grid-template-columns:1fr}}


/* Etapa 0.6 — Sincronização de extratos */
.import-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border:1px solid #cadeff;background:#f3f7ff;border-radius:19px;padding:21px 23px;margin-bottom:19px}
.import-hero h2{margin:4px 0 7px;font-size:19px;color:var(--navy)}
.import-hero p{margin:0;max-width:710px;font-size:13px;line-height:1.6;color:var(--muted)}
.import-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:17px;margin-bottom:18px}
.import-card{padding:24px}
.import-card h2{font-size:18px;margin:0 0 7px;color:var(--navy)}
.import-card .helper{font-size:13px;color:var(--muted);line-height:1.55;margin:0 0 19px}
.upload-form .field{margin-bottom:15px}
.upload-form label{display:block;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.04em;margin-bottom:7px}
.upload-form select,.upload-form input[type=file]{display:block;width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff;color:var(--ink);font-size:14px}
.file-note{padding:13px 14px;border-radius:12px;background:#f7f9fd;border:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:16px}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0 18px}
.summary-grid div{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}
.summary-grid label{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:7px}
.summary-grid strong{font-size:18px;color:var(--navy)}
.preview-table{border:1px solid var(--line);border-radius:14px;overflow:auto;background:#fff}
.preview-table table{min-width:700px}
.comparison-new{background:var(--success-bg);color:var(--success)}
.comparison-existing{background:#eef3f8;color:var(--muted)}
.preview-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.import-actions{display:flex;gap:10px;margin-top:17px;flex-wrap:wrap}
.history-list{display:flex;flex-direction:column;gap:10px}
.history-item{border:1px solid var(--line);border-radius:13px;padding:13px 14px;background:#fff}
.history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}
.history-head strong{font-size:13px}
.history-item small{display:block;color:var(--muted);line-height:1.55;font-size:12px}
.demo-file{display:block;margin-top:17px;border-radius:13px;background:var(--warning-bg);color:var(--warning);padding:13px 14px;font-size:12px;line-height:1.55}
.demo-file a{color:inherit;font-weight:700}
.process-note{margin:16px 0 0;padding-left:19px;color:var(--muted);font-size:13px;line-height:1.65}
@media(max-width:1100px){.import-layout{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.import-hero{flex-direction:column}.summary-grid{grid-template-columns:1fr}}


/* DEMO Web 1.0 RC1 — operação completa */
.operation-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin-bottom:22px}
.operation-card{padding:19px;min-height:112px}
.operation-card label{display:block;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.05em;margin-bottom:18px}
.operation-card strong{font-size:24px;color:var(--navy);display:block;margin-bottom:5px}
.operation-card small{font-size:12px;color:var(--muted)}
.operation-card.soft-blue{background:#edf4ff}.operation-card.soft-orange{background:#fff4df}.operation-card.soft-green{background:#e9f8ef}.operation-card.soft-red{background:#ffebe9}
.page-panel{padding:25px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;margin-top:16px}
.form-grid .wide{grid-column:1/-1}
.form-grid label{display:block;color:var(--muted);font-size:11px;font-weight:700;margin:0 0 7px}
.form-grid input,.form-grid select{width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:14px;color:var(--ink)}
.review-box{border:1px solid #cbdcff;background:#f3f7ff;padding:20px;border-radius:18px;margin-bottom:18px}
.review-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.review-head h2{margin:4px 0 5px;color:var(--navy);font-size:18px}
.review-head p{margin:0;font-size:13px;color:var(--muted)}
.review-note{margin-top:13px;font-size:12px;color:var(--muted);line-height:1.55}
.queue-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:21px}
.queue-card{padding:21px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.queue-card h2{font-size:15px;margin:0 0 8px;color:var(--navy)}
.queue-card strong{font-size:27px;color:var(--navy)}
.queue-card small{display:block;margin-top:6px;color:var(--muted)}
.priority{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.priority.high{background:var(--danger-bg);color:var(--danger)}
.priority.medium{background:var(--warning-bg);color:var(--warning)}
.priority.normal{background:var(--blue-light);color:var(--blue)}
.month-selector{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:20px}
.month-selector label{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-bottom:7px}
.month-selector select{min-width:210px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:14px}
.closing-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:17px}
.checklist{margin:0;padding:0;list-style:none}
.checklist li{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}
.checklist li:last-child{border:0}
.checklist .item-label small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.check-result{font-weight:700;font-size:13px}
.check-result.ok{color:var(--success)}.check-result.block{color:var(--danger)}.check-result.warn{color:var(--warning)}
.closing-status{padding:20px;border-radius:17px;border:1px solid var(--line);margin-bottom:16px}
.closing-status.closed{background:var(--success-bg);border-color:#bfe2ca;color:var(--success)}
.closing-status.changed{background:var(--warning-bg);border-color:#edd09e;color:var(--warning)}
.closing-status.open{background:#f3f7ff;border-color:#cadaf9;color:var(--blue)}
.closing-status h2{color:inherit;margin:0 0 7px;font-size:18px}
.closing-status p{margin:0;font-size:13px;line-height:1.55}
.history-table{margin-top:17px}
@media(max-width:1120px){.operation-grid{grid-template-columns:repeat(2,1fr)}.queue-grid,.closing-layout{grid-template-columns:1fr}}
@media(max-width:760px){.operation-grid,.form-grid{grid-template-columns:1fr}.queue-grid{grid-template-columns:1fr}}


/* RC1.1 — menu completo e prevenção de sobreposição */
.sidebar{
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}
.menu{
  flex:0 0 auto;
}
.side-caption{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  margin-top:auto;
  padding-top:28px;
}
@media(max-height:680px) and (min-width:781px){
  .sidebar{padding-top:23px;padding-bottom:23px}
  .menu{margin-top:22px}
  .menu a{padding:10px 13px;margin-bottom:4px}
  .side-caption{padding-top:18px}
}


/* RC1.2 — corrige colisão entre cartão "Próxima atenção" e selos da fila */
.dashboard-grid > *,
.side-panel {
  min-width: 0;
}

.side-panel .priority {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  background: #fff8eb;
  border: 1px solid #f4dfbc;
  border-radius: 14px;
  padding: 15px;
  margin-top: 18px;
  color: var(--warning);
  overflow: hidden;
}

.side-panel .priority strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

.side-panel .priority p {
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Selos de prioridade ficam limitados à tabela de Pendências. */
.operational-table .priority {
  display: inline-flex;
  width: auto;
  max-width: none;
  white-space: nowrap;
  margin-top: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.operational-table .priority.high { background: var(--danger-bg); color: var(--danger); }
.operational-table .priority.medium { background: var(--warning-bg); color: var(--warning); }
.operational-table .priority.normal { background: var(--blue-light); color: var(--blue); }


/* ============================================================
   Aplicação Pessoal 1.0 — Identidade visual validada
   ============================================================ */
:root{
  --navy-950:#081627; --navy-900:#102941; --navy-800:#173b5a; --navy-700:#205173;
  --teal-700:#086d69; --teal-600:#0c817b; --teal-100:#e0f3f1;
  --gold-600:#b77516; --gold-100:#fff1d9;
  --red-700:#ad3437; --red-100:#fce7e8;
  --purple-700:#6d4bc0; --purple-100:#ede8fb;
  --blue-700:#2166a8; --blue-100:#e6f0fb;
  --green-700:#167056; --green-100:#e1f4ed;
  --ink:#152131; --muted:#66768a; --muted-2:#8896a8;
  --line:#e6ebf0; --line-dark:#d6dee7; --canvas:#f5f7fa; --paper:#fff;
  --shadow-soft:0 2px 5px rgba(15,30,45,.035),0 14px 30px rgba(15,30,45,.055);
  --shadow-raised:0 24px 60px rgba(9,21,36,.18);
  --blue:var(--blue-700); --blue-light:var(--blue-100);
  --success:var(--green-700); --success-bg:var(--green-100);
  --orange:var(--gold-600); --orange-bg:var(--gold-100);
  --danger:var(--red-700); --danger-bg:var(--red-100);
  --warning:var(--gold-600); --warning-bg:var(--gold-100);
  --navy:var(--navy-900); --navy2:var(--navy-800);
  --bg:var(--canvas); --white:var(--paper); --shadow:var(--shadow-soft);
}
html{scroll-behavior:smooth}
body{
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--canvas);
  color:var(--ink);
  letter-spacing:-.005em;
}
.shell{display:block;min-height:100vh}

/* Lateral idêntica à identidade do Apps Script */
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:20;
  width:278px;
  height:100vh;
  padding:26px 18px 22px;
  background:linear-gradient(165deg,var(--navy-950) 0%,var(--navy-900) 54%,#123847 100%);
  color:#fff;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.sidebar:before{
  content:"";position:absolute;width:270px;height:270px;right:-120px;top:-90px;
  border-radius:50%;background:rgba(43,167,154,.15);filter:blur(2px);
}
.sidebar:after{
  content:"";position:absolute;width:190px;height:190px;left:-105px;bottom:110px;
  border-radius:50%;background:rgba(255,255,255,.045);
}
.marca{
  position:relative;z-index:1;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.055);border-radius:20px;padding:18px 16px 16px;margin-bottom:27px;
}
.marca-topo{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.marca-icone{
  width:39px;height:39px;display:grid;place-items:center;border-radius:13px;
  background:linear-gradient(145deg,#1ea99c,#0c817b);font-size:19px;
  box-shadow:0 10px 23px rgba(3,95,91,.32);
}
.marca-titulo{font-size:15px;line-height:1.28;font-weight:720;letter-spacing:-.02em}
.marca small{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  color:rgba(255,255,255,.66);font-size:11px;font-weight:500;margin-top:4px;
}
.marca-badge{
  border-radius:999px;color:#84e2d8;background:rgba(12,129,123,.22);
  border:1px solid rgba(91,206,194,.2);padding:3px 7px;font-size:10px;
  font-weight:700;letter-spacing:.05em;text-transform:uppercase;
}
.menu-titulo{
  position:relative;z-index:1;font-size:10px;letter-spacing:.13em;text-transform:uppercase;
  font-weight:700;color:rgba(255,255,255,.38);margin:4px 11px 10px;
}
.menu-nav{position:relative;z-index:1;display:block;margin:0}
.menu-nav .menu-item{
  position:relative;display:flex;align-items:center;gap:11px;width:100%;
  border:0;background:transparent;color:rgba(239,246,255,.74);padding:12px 12px;
  margin-bottom:6px;border-radius:13px;text-align:left;font-size:14px;cursor:pointer;
  transition:all .18s ease;text-decoration:none;
}
.menu-nav .mi{
  display:grid;place-items:center;width:31px;height:31px;border-radius:10px;
  color:rgba(255,255,255,.74);background:rgba(255,255,255,.05);
  transition:all .18s ease;font-size:15px;flex:none;
}
.menu-nav .menu-item:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(1px)}
.menu-nav .menu-item.ativo{
  color:#fff;background:linear-gradient(96deg,rgba(12,129,123,.32),rgba(255,255,255,.08));font-weight:650;
}
.menu-nav .menu-item.ativo:before{
  content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:#37c6ba;
}
.menu-nav .menu-item.ativo .mi{color:#efffff;background:rgba(28,173,160,.2)}
.rodape-lateral{
  position:relative;z-index:1;margin-top:auto;border-top:1px solid rgba(255,255,255,.1);
  padding:17px 10px 2px;color:rgba(226,237,247,.62);font-size:11.5px;line-height:1.65;
}
.seguranca{display:flex;gap:7px;align-items:center;color:#87d9d2;font-weight:650;margin-bottom:7px}

/* Conteúdo e cabeçalho */
.content{
  margin-left:278px;width:calc(100% - 278px);padding:27px 31px 44px;min-width:0;
}
.top,.page-header{
  position:static;display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:25px;padding:17px 20px;border:1px solid rgba(230,235,240,.9);
  border-radius:18px;background:rgba(255,255,255,.86);
  box-shadow:0 8px 30px rgba(14,31,48,.045);backdrop-filter:blur(12px);
}
.eyebrow{
  color:var(--teal-700);text-transform:uppercase;font-weight:700;font-size:10px;
  letter-spacing:.12em;margin-bottom:5px;
}
.top h1,.page-header h1{
  font-size:27px;line-height:1.14;font-weight:730;letter-spacing:-.035em;
  margin:0 0 6px;color:var(--navy-900);
}
.sub{
  display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12.5px;
}
.sub:before{
  content:"";width:7px;height:7px;background:var(--teal-600);border-radius:50%;
  box-shadow:0 0 0 4px var(--teal-100);flex:none;
}
.user{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:9px}

/* Ações no padrão original */
.button,.action-button,.table-action{
  border:1px solid var(--line-dark);background:#fff;color:var(--navy-800);
  border-radius:11px;min-height:40px;padding:9px 15px;cursor:pointer;font-weight:640;
  font-size:13px;transition:all .16s ease;box-shadow:0 1px 1px rgba(10,24,38,.03);
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
}
.button:hover:not(:disabled),.action-button:hover,.table-action:hover{
  background:#f7f9fc;border-color:#bdcad8;transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(16,40,64,.08);
}
.button:not(.ghost),.action-button.primary{
  color:#fff;background:linear-gradient(135deg,var(--navy-800),var(--navy-700));
  border-color:transparent;box-shadow:0 10px 18px rgba(23,59,90,.18);
}
.action-button.success{color:#fff;background:var(--green-700);border-color:transparent}
.button.ghost{background:#fff;color:var(--navy-800)}
.button.full{width:100%}
.button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}

/* Alertas */
.notice,.warning-banner{
  position:relative;border-radius:14px;padding:14px 16px;margin-bottom:17px;
  font-size:13px;line-height:1.58;border:1px solid;
}
.notice.demo{background:#fff8ec;border-color:#f3d69c;color:#805219}
.notice.success{background:#edf9f4;border-color:#bbe6d4;color:var(--green-700);font-weight:600}
.notice.error{background:#fff1f1;border-color:#efb8ba;color:var(--red-700)}
.warning-banner{background:#fff8ec;border-color:#f3d69c;color:#805219}

/* Cards financeiros */
.stats,.receipt-stats,.operation-grid{
  display:grid;grid-template-columns:repeat(4,minmax(165px,1fr));gap:15px;margin-bottom:23px;
}
.card{
  position:relative;overflow:hidden;border:1px solid var(--line);border-radius:18px;
  padding:18px 18px 17px;background:#fff;box-shadow:var(--shadow-soft);
  transition:transform .18s ease,box-shadow .18s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:0 20px 34px rgba(12,29,47,.08)}
.stat,.receipt-stat,.operation-card{min-height:121px}
.stat:after,.receipt-stat:after,.operation-card:after{
  content:"";position:absolute;right:-30px;top:-39px;width:103px;height:103px;border-radius:50%;opacity:.52;
}
.stat label,.receipt-stat label,.operation-card label{
  position:relative;z-index:1;display:block;font-size:10.5px;letter-spacing:.075em;
  text-transform:uppercase;color:var(--muted);font-weight:760;margin-bottom:16px;
}
.stat strong,.receipt-stat strong,.operation-card strong{
  position:relative;z-index:1;font-size:27px;line-height:1.1;
  letter-spacing:-.045em;font-weight:745;
}
.stat small,.receipt-stat small,.operation-card small{position:relative;z-index:1;color:var(--muted);font-size:11.5px;margin-top:7px}
.stat.blue,.receipt-stat.blue,.operation-card.soft-blue{background:linear-gradient(145deg,#fff,var(--blue-100))}
.stat.blue strong,.receipt-stat.blue strong,.operation-card.soft-blue strong{color:var(--blue-700)}
.stat.blue:after,.receipt-stat.blue:after,.operation-card.soft-blue:after{background:#b7d5f3}
.stat.green,.receipt-stat.green,.operation-card.soft-green{background:linear-gradient(145deg,#fff,var(--green-100))}
.stat.green strong,.receipt-stat.green strong,.operation-card.soft-green strong{color:var(--green-700)}
.stat.green:after,.receipt-stat.green:after,.operation-card.soft-green:after{background:#b9e4d5}
.stat.orange,.receipt-stat.orange,.operation-card.soft-orange{background:linear-gradient(145deg,#fff,var(--gold-100))}
.stat.orange strong,.receipt-stat.orange strong,.operation-card.soft-orange strong{color:var(--gold-600)}
.stat.orange:after,.receipt-stat.orange:after,.operation-card.soft-orange:after{background:#efd6a4}
.stat.red,.receipt-stat.red,.operation-card.soft-red{background:linear-gradient(145deg,#fff,var(--red-100))}
.stat.red strong,.receipt-stat.red strong,.operation-card.soft-red strong{color:var(--red-700)}
.stat.red:after,.receipt-stat.red:after,.operation-card.soft-red:after{background:#edc0c2}

/* Painéis, gráficos e formulários */
.dashboard-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:17px}
.chart-card,.side-panel,.page-panel,.receipt-panel,.receipt-list-panel,.rs-panel,.import-card{
  background:var(--paper);border:1px solid var(--line);border-radius:20px;
  padding:21px;margin-bottom:17px;box-shadow:var(--shadow-soft);
}
.chart-card:hover,.side-panel:hover,.page-panel:hover,.receipt-panel:hover,.receipt-list-panel:hover,.rs-panel:hover,.import-card:hover{transform:none}
.section-header,.panel-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px;
}
.section-header h2,.panel-head h2,.rs-panel h2,.import-card h2{
  margin:0 0 5px;font-size:16px;font-weight:700;letter-spacing:-.02em;color:var(--navy-900);
}
.section-header p,.panel-head p,.helper{color:var(--muted);font-size:12px;line-height:1.4}
.comparison{background:#f5f8fc;border:1px solid var(--line);border-radius:13px;padding:10px 12px;color:var(--muted)}
.revenue-chart{background:linear-gradient(to top,rgba(230,235,240,.72) 1px,transparent 1px);background-size:100% 49px;border-radius:13px}
.legend{font-size:12px;color:var(--muted)}
.closing-row{border-color:var(--line)}
.side-panel .priority{
  background:#fff8ec;border-color:#f3d69c;color:#805219;
}

/* Filtros e tabelas */
.filters{
  display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:12px;margin:0 -2px 16px;
  background:#f8fafc;border:1px solid var(--line);border-radius:14px;
}
.filters input,.filters select,.form-grid input,.form-grid select,.upload-form select,.upload-form input[type=file],.month-selector select{
  border:1px solid var(--line-dark);border-radius:10px;padding:11px 13px;min-height:42px;
  color:var(--ink);font-size:13px;background:#fff;outline:none;
  transition:border-color .14s,box-shadow .14s;
}
.filters input:focus,.filters select:focus,.form-grid input:focus,.form-grid select:focus{
  border-color:#4aa9a1;box-shadow:0 0 0 3px rgba(12,129,123,.13);
}
.operational-table,.table-wrap,.preview-table{
  overflow-x:auto;border:1px solid var(--line);border-radius:15px;background:#fff;
}
table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
th{
  position:sticky;top:0;z-index:1;text-align:left;color:var(--muted-2);font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;padding:13px 12px;background:#f7f9fc;
  white-space:nowrap;font-weight:760;border-bottom:1px solid var(--line);
}
td{padding:13px 12px;border-top:1px solid #eef2f5;vertical-align:middle;transition:background .12s}
tbody tr:first-child td{border-top:0}
tbody tr:hover td{background:#fafcfd}
.identification strong{font-weight:650;margin-bottom:4px;color:var(--ink)}
.identification small{color:var(--muted);font-size:11.5px;line-height:1.45}
.money{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.tag,.pill,.preview-status,.batch-status{
  display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;
  font-size:10.5px;font-weight:760;white-space:nowrap;background:var(--gold-100);color:var(--gold-600);
}
.tag.emitted,.pill.ok,.batch-status.done{background:var(--green-100);color:var(--green-700)}
.tag.attention,.pill.pending{background:var(--red-100);color:var(--red-700)}
.tag.neutral{background:var(--blue-100);color:var(--blue-700)}
.sortable.active,.sortable:hover{background:#eef6f7;color:var(--teal-700)}
.sortable a{color:inherit}
.pagination{color:var(--muted);font-size:12.5px}

/* Despesas, pendências, fechamento e Receita Saúde */
.review-box,.detail-card,.receipt-preview,.fiscal-intro,.closing-status{
  background:#f8fafc;border:1px solid var(--line);border-radius:15px;padding:17px;margin-bottom:18px;
}
.queue-card h2{font-size:14px;color:var(--navy-900)}
.operational-table .priority.high{background:var(--red-100);color:var(--red-700)}
.operational-table .priority.medium{background:var(--gold-100);color:var(--gold-600)}
.operational-table .priority.normal{background:var(--blue-100);color:var(--blue-700)}
.closing-status.closed{background:#edf9f4;border-color:#bbe6d4;color:var(--green-700)}
.closing-status.changed{background:#fff8ec;border-color:#f3d69c;color:#805219}
.closing-status.open{background:#f0f7ff;border-color:#cddff3;color:var(--blue-700)}
.checklist li{border-bottom:1px solid var(--line)}
.check-result.ok{color:var(--green-700)}
.check-result.block{color:var(--red-700)}
.check-result.warn{color:var(--gold-600)}
.batch{border-color:var(--line);border-radius:12px}
.csv-note,.demo-file{background:#fff8ec;border:1px solid #f3d69c;color:#805219}

/* Modal mensal já existente */
.modal-backdrop{
  background:rgba(7,17,30,.58);backdrop-filter:blur(4px);
}
.modal-card{
  border-radius:22px;box-shadow:var(--shadow-raised);border:0;background:#fff;
}
.modal-head h2{color:var(--navy-900);letter-spacing:-.03em}
.close-button{border-color:var(--line-dark);background:#fff;color:var(--navy-800)}

/* Responsividade como na interface Apps Script */
@media(max-width:1160px){
  .stats,.receipt-stats,.operation-grid{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:870px){
  .shell{display:block}
  .sidebar{position:relative;width:100%;height:auto;padding:14px;display:block}
  .marca{margin-bottom:12px;padding:12px 13px}
  .marca-topo{margin-bottom:4px}
  .marca small,.rodape-lateral,.menu-titulo{display:none}
  .menu-nav{display:flex;gap:6px;overflow-x:auto}
  .menu-nav .menu-item{flex:0 0 auto;width:auto;margin:0;padding:8px 11px}
  .menu-nav .mi{display:none}
  .menu-nav .menu-item.ativo:before{display:none}
  .content{margin-left:0;width:100%;padding:14px 14px 34px}
  .top,.page-header{padding:14px}
  .top h1,.page-header h1{font-size:23px}
}
@media(max-width:660px){
  .top,.page-header{align-items:flex-start;flex-direction:column}
  .user{width:100%;justify-content:space-between}
  .stats,.receipt-stats,.operation-grid{grid-template-columns:1fr}
  .chart-card,.side-panel,.page-panel,.receipt-panel,.receipt-list-panel,.rs-panel,.import-card{padding:16px;border-radius:17px}
  .filters{padding:10px}
  .filters input,.filters select{min-width:100%;width:100%}
  .pagination{flex-direction:column;align-items:flex-start}
}


/* Aplicação Pessoal 1.3.0-alpha.13 — Configuração Profissional Fiscal */
.fiscal-header h1{letter-spacing:-.035em}
.notice.error{background:#fff1f0;color:#b42318;border:1px solid #ffd2cf}
.fiscal-config-layout{display:grid;grid-template-columns:minmax(520px,1fr) 330px;gap:18px;align-items:start}
.fiscal-status-grid{display:grid;grid-template-columns:minmax(540px,1fr) 330px;gap:18px;align-items:start}
.fiscal-form-card,.fiscal-help-card,.fiscal-readiness-card,.fiscal-profile-summary,.fiscal-locked-export{border-radius:18px}
.fiscal-step-status{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border-radius:999px;font-size:11px;font-weight:760}
.fiscal-step-status.pending{background:#fff5df;color:#955700}
.fiscal-step-status.done{background:#e9f8ef;color:#087443}
.fiscal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fiscal-form label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:760;letter-spacing:.05em;color:var(--muted)}
.fiscal-form input,.fiscal-form select{min-height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--navy);padding:0 12px;font-size:14px}
.fiscal-form-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.fiscal-help-card h2,.fiscal-profile-summary h2{margin-top:0;color:var(--navy)}
.fiscal-help-card p,.fiscal-profile-summary p{color:var(--muted);font-size:13px;line-height:1.55}
.fiscal-mini-check{display:flex;gap:11px;align-items:flex-start;border:1px solid var(--line);border-radius:13px;padding:12px;margin-top:10px}
.fiscal-mini-check span,.check-icon{height:28px;width:28px;border-radius:50%;display:grid;place-items:center;background:#f4f7fb;color:var(--muted);font-weight:800;flex:0 0 auto}
.fiscal-mini-check.done span,.fiscal-checklist li.done .check-icon{background:#e9f8ef;color:#087443}
.fiscal-mini-check strong{display:block;color:var(--navy);font-size:13px;margin-bottom:3px}
.fiscal-mini-check small{color:var(--muted);font-size:11px}
.fiscal-warning-note{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.fiscal-checklist{list-style:none;padding:0;margin:0}
.fiscal-checklist li{display:grid;grid-template-columns:34px minmax(220px,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:13px;margin-bottom:10px;background:#fff}
.fiscal-checklist .item-label{font-weight:760;color:var(--navy)}
.fiscal-checklist .item-label small{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}
.check-result{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:760;white-space:nowrap}
.check-result.warn{background:#fff5df;color:#955700}
.check-result.ok{background:#e9f8ef;color:#087443}
.button.small{min-height:34px;padding:0 12px;font-size:12px;border-radius:10px}
.fiscal-coming{font-size:11px;color:var(--muted);white-space:nowrap}
.fiscal-profile-summary dl{display:grid;grid-template-columns:90px 1fr;gap:9px 12px;margin:0 0 18px}
.fiscal-profile-summary dt{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:760}
.fiscal-profile-summary dd{margin:0;color:var(--navy);font-weight:690}
.fiscal-locked-export{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
.fiscal-locked-export h2{margin:0 0 5px;color:var(--navy)}
.fiscal-locked-export p{margin:0;color:var(--muted);font-size:13px}
.fiscal-locked-export .button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:1050px){.fiscal-config-layout,.fiscal-status-grid{grid-template-columns:1fr}.fiscal-checklist li{grid-template-columns:34px 1fr}.fiscal-checklist .check-result,.fiscal-checklist .button,.fiscal-coming{grid-column:2}.fiscal-locked-export{flex-direction:column;align-items:flex-start}}
@media(max-width:680px){.fiscal-form{grid-template-columns:1fr}.fiscal-form-actions .button{width:100%}}


/* Aplicação Pessoal 1.3.0-alpha.14 — Migração de Recibos Receita Saúde */
.fiscal-migration-layout{display:grid;grid-template-columns:minmax(520px,1fr) 330px;gap:18px;align-items:start;margin-bottom:18px}
.fiscal-migration-card,.fiscal-preview-card{border-radius:18px}
.fiscal-upload-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.fiscal-upload-form label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:760;letter-spacing:.05em;color:var(--muted)}
.fiscal-upload-form input[type=file]{min-height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--navy);padding:10px 12px;font-size:13px}
.fiscal-parser-note{margin-top:14px;padding:13px 14px;border:1px solid #dce9f7;border-radius:12px;background:#f4f9ff;color:#315b7e;font-size:12.5px;line-height:1.5}
.fiscal-migration-summary{grid-template-columns:repeat(4,minmax(140px,1fr));margin:14px 0}
.weak-confirm{display:flex;align-items:center;gap:9px;margin:8px 0 14px;color:#955700;font-size:12.5px;font-weight:690}
.weak-confirm input{accent-color:#c96a13}
.fiscal-preview-scroll{max-height:520px;overflow:auto;border:1px solid var(--line);border-radius:13px}
.migration-badge{display:inline-flex;min-height:26px;align-items:center;padding:0 9px;border-radius:999px;font-size:10.5px;font-weight:760;background:#eef2f6;color:#64748b}
.migration-badge.matched,.migration-badge.already_linked,.migration-badge.weak_matched_confirmed{background:#e9f8ef;color:#087443}
.migration-badge.weak_match{background:#fff5df;color:#955700}
.migration-badge.ambiguous,.migration-badge.unmatched{background:#ffebe9;color:#b42318}
.match-reason{display:block;margin-top:5px;max-width:220px;color:#7b8b9b;font-size:10.5px;line-height:1.35}
@media(max-width:980px){.fiscal-migration-layout{grid-template-columns:1fr}.fiscal-upload-form{grid-template-columns:1fr}.fiscal-migration-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.fiscal-migration-summary{grid-template-columns:1fr}}


/* Aplicação Pessoal 1.3.0-alpha.15 — CSV de validação Receita Saúde */
.fiscal-export-intro{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}
.fiscal-export-intro h2{margin:0 0 5px;color:var(--navy)}
.fiscal-export-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.fiscal-model-example{display:flex;flex-wrap:wrap;gap:6px;max-width:470px;justify-content:flex-end}
.fiscal-model-example span{display:inline-flex;min-height:29px;align-items:center;padding:0 9px;border-radius:999px;background:#eef6fd;color:#155e8a;font-size:10.5px;font-weight:760}
.fiscal-export-panel{border-radius:18px}
.export-filter{display:flex;gap:8px;align-items:center}
.export-filter input{min-height:38px;border:1px solid var(--line);border-radius:10px;padding:0 10px;color:var(--navy)}
@media(max-width:900px){.fiscal-export-intro{flex-direction:column;align-items:flex-start}.fiscal-model-example{justify-content:flex-start}.export-filter{width:100%;flex-wrap:wrap}}


/* Aplicação Pessoal 1.3.0-alpha.16 — correção de migração por PDF */
.fiscal-parser-note strong{color:#153d68}


/* Aplicação Pessoal 1.3.0-alpha.33 — Estabilização visual e menu único */
:root{
  --app-bg:#f5f7fb;
  --app-surface:#ffffff;
  --app-text:#172033;
  --app-muted:#6b778c;
  --app-line:#e3e8f0;
  --app-brand:#183b56;
  --app-brand-soft:#edf5fb;
  --app-radius:18px;
}

body{
  background:var(--app-bg);
  color:var(--app-text);
}

.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  align-items:stretch;
}

.sidebar.app-sidebar,
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:#102a43;
  color:#eef6ff;
  padding:22px 16px;
  box-sizing:border-box;
  z-index:20;
}

.marca{
  margin-bottom:20px;
}

.marca-topo{
  display:flex;
  gap:12px;
  align-items:center;
}

.marca-icone{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,255,255,.12);
  font-weight:800;
}

.marca-titulo{
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.02em;
}

.marca small{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#b8c7d9;
  margin-top:12px;
  font-size:12px;
}

.marca-badge{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#dbeafe;
  white-space:nowrap;
}

.menu-titulo{
  color:#91a4ba;
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin:18px 8px 8px;
}

.menu-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.menu-item{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:13px;
  padding:0 12px;
  color:#c9d8e8;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  transition:background .12s ease, color .12s ease, transform .12s ease;
}

.menu-item:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.menu-item.ativo,
.menu-item.active{
  background:#ffffff;
  color:#102a43;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}

.menu-item .mi{
  width:22px;
  text-align:center;
  font-weight:900;
}

.rodape-lateral{
  margin-top:22px;
  padding:14px 10px 0;
  border-top:1px solid rgba(255,255,255,.12);
  color:#9fb4ca;
  font-size:12px;
  line-height:1.45;
}

.seguranca{
  color:#b7f7d3;
  font-weight:800;
  margin-bottom:6px;
}

.content{
  min-width:0;
  padding:28px;
  box-sizing:border-box;
}

.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.page-header h1{
  margin:2px 0 4px;
  letter-spacing:-.04em;
  color:var(--app-text);
}

.eyebrow{
  color:var(--app-muted);
  font-size:11px;
  font-weight:850;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.sub{
  color:var(--app-muted);
}

.user{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.card,
.patients-main,
.relationship-panel,
.edit-person,
.subgroup{
  border:1px solid var(--app-line);
  border-radius:var(--app-radius);
  background:var(--app-surface);
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px;
}

.panel-head h2,
.panel-head h3{
  margin:0 0 4px;
  color:var(--app-text);
}

.panel-head p{
  margin:0;
  color:var(--app-muted);
  font-size:13px;
}

.notice{
  border-radius:14px;
  padding:13px 15px;
  margin:12px 0;
  line-height:1.45;
}

.notice.demo{
  background:#f3f8ff;
  border:1px solid #d8e9fb;
  color:#244866;
}

.notice.success{
  background:#ecfdf3;
  border:1px solid #c7f3d7;
  color:#087443;
}

.notice.error{
  background:#fff1f0;
  border:1px solid #ffd2cf;
  color:#b42318;
}

.patient-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 16px;
}

.patient-tabs a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--app-line);
  background:#fff;
  color:var(--app-muted);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}

.patient-tabs a.active,
.patient-tabs a:hover{
  background:var(--app-brand-soft);
  color:var(--app-brand);
  border-color:#c7ddeb;
}

.operational-table{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--app-line);
  border-radius:14px;
  background:#fff;
}

.operational-table table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.operational-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fafc;
  color:#58667a;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid var(--app-line);
  white-space:nowrap;
}

.operational-table td{
  padding:12px;
  border-bottom:1px solid #eef2f6;
  vertical-align:middle;
}

.operational-table tr:last-child td{
  border-bottom:0;
}

.identification small,
td small{
  display:block;
  margin-top:4px;
  color:var(--app-muted);
  font-size:11.5px;
}

.action-button,
.row-classify button,
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid transparent;
  background:#183b56;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:12.5px;
  cursor:pointer;
  box-sizing:border-box;
}

.action-button.ghost,
.button.ghost,
.row-classify button.ghost{
  background:#fff;
  color:#183b56;
  border-color:var(--app-line);
}

td .action-button,
td button.action-button{
  margin:2px 4px 2px 0;
  white-space:nowrap;
}

.row-classify,
.compact-row{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.row-classify select,
.filters input,
.edit-grid input,
.edit-grid select,
.beneficiary-form input,
.beneficiary-form select,
.beneficiary-form textarea,
.manual-payer-form input,
.manual-payer-form select{
  min-height:38px;
  border:1px solid var(--app-line);
  border-radius:10px;
  padding:0 11px;
  background:#fff;
  color:var(--app-text);
  box-sizing:border-box;
}

.filters.compact{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0;
}

.filters.compact input{
  min-width:220px;
  flex:1 1 260px;
}

.relationship-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
}

.relationship-card{
  border:1px solid var(--app-line);
  border-radius:16px;
  padding:14px;
  background:#fff;
}

.relationship-card.attention{
  border-color:#f7d48a;
  background:#fffaf0;
}

.relationship-card.done{
  border-color:#bee8ce;
  background:#f4fff8;
}

.relationship-top,
.relationship-values{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.relationship-card label{
  display:block;
  color:var(--app-muted);
  font-size:10px;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-bottom:3px;
}

.relationship-card strong{
  color:var(--app-text);
}

.relation-tag,
.tag{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#eef2f6;
  color:#536275;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.tag.attention{
  background:#fff5df;
  color:#955700;
}

.tag.neutral{
  background:#eef2f6;
  color:#536275;
}

.beneficiary-modal .modal-card,
.patient-payment-modal .modal-card,
.modal-card{
  border-radius:20px;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.48);
  z-index:1000;
}

.modal-backdrop.open{
  display:flex;
}

.modal-card{
  background:#fff;
  border:1px solid var(--app-line);
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  max-width:920px;
  width:min(920px,100%);
  max-height:90vh;
  overflow:auto;
  padding:18px;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.close-button{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid var(--app-line);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

@media(max-width:980px){
  .shell{
    display:block;
  }

  .sidebar.app-sidebar,
  .sidebar{
    position:relative;
    height:auto;
    min-height:unset;
    padding:16px;
  }

  .menu-nav{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  }

  .rodape-lateral{
    display:none;
  }

  .content{
    padding:18px;
  }

  .page-header{
    flex-direction:column;
  }

  .user{
    justify-content:flex-start;
  }
}

@media(max-width:640px){
  .content{
    padding:14px;
  }

  .panel-head,
  .relationship-top,
  .relationship-values{
    flex-direction:column;
    align-items:flex-start;
  }

  td .action-button,
  td button.action-button{
    width:100%;
    margin-right:0;
  }

  .row-classify select,
  .row-classify button{
    width:100%;
  }
}


/* alpha.37 — Pagamentos por terceiros mais claro */
.manual-payer-panel .panel-head{
  border-bottom:1px solid var(--app-line);
  margin-bottom:16px;
}

.manual-payer-form-v2{
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(240px,1.2fr) minmax(180px,.8fr) auto;
  gap:12px;
  align-items:end;
  margin:4px 0 18px;
}

.manual-payer-form-v2 .form-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.manual-payer-form-v2 label,
.relation-row-v2 label{
  color:var(--app-muted);
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.manual-payer-form-v2 input,
.manual-payer-form-v2 select{
  width:100%;
  min-height:40px;
  border:1px solid var(--app-line);
  border-radius:11px;
  padding:0 12px;
  background:#fff;
  color:var(--app-text);
  box-sizing:border-box;
}

.manual-payer-form-v2 .form-actions{
  display:flex;
  justify-content:flex-start;
}

.relationship-section-title{
  margin:16px 0 10px;
  color:var(--app-text);
  font-weight:850;
}

.relation-list-v2{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.relation-row-v2{
  display:grid;
  grid-template-columns:minmax(180px,1fr) 28px minmax(180px,1fr) auto auto auto;
  gap:14px;
  align-items:center;
  border:1px solid var(--app-line);
  border-radius:16px;
  background:#fff;
  padding:14px;
}

.relation-row-v2.confirmed,
.relation-row-v2.done{
  background:#f2fff7;
  border-color:#b9ebc9;
}

.relation-row-v2 strong{
  display:block;
  margin:2px 0 3px;
  color:var(--app-text);
  line-height:1.25;
}

.relation-row-v2 small{
  display:block;
  color:var(--app-muted);
  line-height:1.25;
}

.relation-arrow{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#eef6ff;
  color:#183b56;
  font-weight:900;
}

.relation-metrics{
  text-align:right;
  white-space:nowrap;
}

.relation-status{
  display:flex;
  justify-content:flex-end;
}

.compact-empty{
  padding:12px 14px;
  border:1px dashed var(--app-line);
  border-radius:14px;
  background:#fafcff;
  color:var(--app-muted);
}

.inline-remove-form{
  margin:0;
}

@media(max-width:980px){
  .manual-payer-form-v2{
    grid-template-columns:1fr 1fr;
  }

  .manual-payer-form-v2 .form-actions{
    grid-column:1 / -1;
  }

  .relation-row-v2{
    grid-template-columns:1fr;
  }

  .relation-arrow{
    transform:rotate(90deg);
  }

  .relation-metrics,
  .relation-status{
    text-align:left;
    justify-content:flex-start;
  }
}

@media(max-width:640px){
  .manual-payer-form-v2{
    grid-template-columns:1fr;
  }
}


/* ============================================================
   alpha.38 — estabilização de layout para uso real
   - Mantém menu único em desktop e navegação horizontal em telas menores.
   - Evita estouro horizontal de cards, filtros, tabelas e modais.
   - Reforça legibilidade em formulários longos de pacientes/pagadores.
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
.shell { width: 100%; min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: stretch; }
.sidebar.app-sidebar, .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
.content { min-width: 0; width: 100%; }
.page-header, .top, .panel-head, .section-header { min-width: 0; }
.page-header > div:first-child, .top > div:first-child, .panel-head > div:first-child { min-width: 0; }
.sub, .helper, .notice, td, th { overflow-wrap: anywhere; }
.operational-table, .table-wrap, .preview-table, .fiscal-preview-scroll { max-width: 100%; overflow-x: auto; }
.operational-table table, .table-wrap table, .preview-table table { min-width: 780px; }
.filters input, .filters select { min-width: 180px; }
.modal-card { width: min(1040px, 100%); max-width: 100%; }
.manual-payer-form-v2 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.manual-payer-form-v2 .form-actions { align-self: end; }
.relation-row-v2 { grid-template-columns: minmax(170px,1fr) 28px minmax(170px,1fr) minmax(90px,.55fr) minmax(110px,.65fr) auto; }
.personal-nav { background: rgba(255,255,255,.07); }
.private-label { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; background:#f3f8ff; color:#244866; font-weight:850; font-size:11px; letter-spacing:.05em; }
@media (max-width: 980px) {
  .shell { display:block; }
  .sidebar.app-sidebar, .sidebar { position:relative; height:auto; min-height:unset; width:100%; }
  .menu-nav { display:flex; flex-direction:row; gap:8px; overflow-x:auto; padding-bottom:4px; }
  .menu-item { flex:0 0 auto; white-space:nowrap; }
  .rodape-lateral { display:none; }
  .content { padding:18px; }
  .page-header, .top { flex-direction:column; align-items:flex-start; }
  .user { justify-content:flex-start; }
  .relation-row-v2 { grid-template-columns:1fr; }
  .patient-edit-layout { grid-template-columns:1fr; }
  .patient-field-grid { grid-template-columns:1fr; }
  .relation-arrow { transform:rotate(90deg); }
  .relation-metrics, .relation-status { text-align:left; justify-content:flex-start; }
}
@media (max-width: 640px) {
  .content { padding:14px; }
  .stats, .receipt-stats, .operation-grid, .modal-kpis, .fiscal-migration-summary { grid-template-columns:1fr; }
  .filters input, .filters select, .filters .button, .button.full-mobile { width:100%; min-width:100%; }
  .operational-table table, .table-wrap table, .preview-table table { min-width: 680px; }
  .patient-edit-panel { padding:16px; }
  .patient-edit-head { align-items:flex-start; }
}


/* alpha.39 — pequenos helpers compartilhados e compatibilidade visual */
.sortable a { white-space: nowrap; }
.notice.error { border-color: rgba(220, 38, 38, .32); }

/* ============================================================
   alpha.42 — responsividade real e shell único
   Objetivo: vencer as camadas antigas conflitantes e estabilizar
   desktop, tablet e celular sem alterar banco de dados.
   ============================================================ */
:root{
  --alpha42-sidebar:280px;
  --alpha42-gap:clamp(12px,1.7vw,20px);
  --alpha42-pad:clamp(14px,2.2vw,30px);
  --alpha42-radius:18px;
  --alpha42-line:#e3e8f0;
  --alpha42-bg:#f5f7fb;
  --alpha42-surface:#ffffff;
  --alpha42-text:#172033;
  --alpha42-muted:#667085;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:clip;
}

body.app-layout-body,
body{
  background:var(--alpha42-bg);
}

img,
svg,
canvas,
video{
  max-width:100%;
  height:auto;
}

.app-shell,
.shell{
  width:100%;
  min-height:100svh;
  display:grid;
  grid-template-columns:var(--alpha42-sidebar) minmax(0,1fr);
  align-items:stretch;
}

.app-sidebar,
.sidebar.app-sidebar{
  position:sticky;
  top:0;
  left:auto;
  width:auto;
  height:100svh;
  min-height:0;
  padding:18px 14px;
  overflow:hidden;
  background:linear-gradient(165deg,#0f2437 0%,#102f4a 55%,#123847 100%);
  color:#eef6ff;
  z-index:40;
}

@supports not (height:100svh){
  .app-sidebar,
  .sidebar.app-sidebar{height:100vh;}
}

.app-sidebar::before,
.app-sidebar::after{
  display:none;
}

.desktop-sidebar-inner{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
}

.desktop-sidebar-inner .menu-nav{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:2px;
  scrollbar-width:thin;
}

.mobile-shellbar{
  display:none;
}

.app-content,
.content{
  min-width:0;
  width:auto;
  max-width:100%;
  margin-left:0;
  padding:var(--alpha42-pad);
  box-sizing:border-box;
}

.card,
.page-panel,
.chart-card,
.side-panel,
.receipt-panel,
.receipt-list-panel,
.rs-panel,
.import-card,
.relationship-panel,
.fiscal-form-card,
.fiscal-help-card,
.fiscal-readiness-card,
.fiscal-profile-summary,
.fiscal-locked-export,
.fiscal-migration-card,
.fiscal-preview-card,
.fiscal-export-panel,
.monthly-list-card,
.monthly-summary-panel,
.personal-form-card,
.private-breakdown,
.list-dashboard-link{
  max-width:100%;
  min-width:0;
  border-radius:var(--alpha42-radius);
}

.top,
.page-header,
.overview-header,
.sheet-page-header,
.panel-head,
.section-header,
.review-head,
.receipt-preview-head,
.detail-title,
.list-card-head{
  min-width:0;
  max-width:100%;
}

.top h1,
.page-header h1,
.overview-header h1,
.sheet-page-header h1{
  overflow-wrap:anywhere;
  text-wrap:balance;
}

.sub,
.helper,
.notice,
.warning-banner,
.identification,
td,
th,
p,
small{
  overflow-wrap:anywhere;
}

/* Grades fluidas para desktop estreito e tablet */
.stats,
.receipt-stats,
.operation-grid,
.queue-grid,
.summary-grid,
.receipt-preview-grid,
.modal-kpis,
.detail-grid,
.fiscal-migration-summary,
.overview-kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:var(--alpha42-gap);
}
.overview-kpi{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.overview-kpi label,
.overview-kpi strong,
.overview-kpi small{
  display:block;
}
.overview-kpi label{
  line-height:1.2;
}
.overview-kpi strong{
  line-height:1.08;
  margin:0;
}
.overview-kpi small{
  line-height:1.35;
  margin:0;
}

.dashboard-grid,
.rs-grid,
.import-layout,
.closing-layout,
.fiscal-config-layout,
.fiscal-status-grid,
.fiscal-migration-layout,
.personal-editor-grid,
.monthly-workspace{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap:var(--alpha42-gap);
  align-items:start;
}

/* Tabelas: mantêm dados íntegros sem estourar a página */
.operational-table,
.table-wrap,
.preview-table,
.fiscal-preview-scroll,
.history-table{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.operational-table table,
.table-wrap table,
.preview-table table,
.fiscal-preview-scroll table{
  min-width:min(760px, calc(100vw - 32px));
}

/* Formulários e filtros */
.filters,
.export-filter,
.month-selector,
.import-actions,
.inline-actions,
.fiscal-form-actions,
.receipt-preview-head,
.detail-card .detail-title{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  min-width:0;
}

.filters input,
.filters select,
.filters .button,
.export-filter input,
.export-filter .button,
.month-selector select,
.month-selector .button,
.form-grid input,
.form-grid select,
.form-grid textarea,
.fiscal-form input,
.fiscal-form select,
.fiscal-form textarea,
.personal-month-form input,
.personal-month-form textarea,
.upload-form select,
.upload-form input[type=file],
.portfolio-input{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.form-grid,
.fiscal-form,
.fiscal-upload-form,
.manual-payer-form-v2,
.edit-grid,
.personal-month-form{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:12px;
}

.form-grid .wide,
.fiscal-form-actions,
.personal-month-form .full,
.manual-payer-form-v2 .form-actions,
.edit-submit{
  grid-column:1 / -1;
}

.compact-notice{
  max-width:920px;
  padding:12px 14px;
}

.patient-edit-panel{
  padding:20px;
  margin:12px 0 14px;
}

.patient-edit-head{
  border-bottom:1px solid var(--app-line);
  margin-bottom:18px;
  padding-bottom:16px;
}

.patient-edit-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,340px);
  gap:18px;
  align-items:start;
}

.patient-edit-form{
  display:grid;
  gap:16px;
}

.patient-edit-section{
  display:grid;
  gap:10px;
}

.patient-edit-section + .patient-edit-section{
  border-top:1px solid var(--app-line);
  padding-top:16px;
}

.section-kicker{
  color:var(--app-text);
  font-size:13px;
  font-weight:850;
}

.patient-edit-section p,
.merge-box p,
.patient-edit-actions span{
  margin:0;
  color:var(--app-muted);
  font-size:12px;
  line-height:1.45;
}

.patient-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:14px;
}

.patient-field-grid label,
.merge-box label{
  display:grid;
  gap:7px;
  color:var(--app-text);
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.patient-field-grid input,
.merge-box select{
  width:100%;
  min-height:40px;
  border:1px solid var(--app-line);
  border-radius:10px;
  padding:0 11px;
  background:#fff;
  color:var(--app-text);
  font-size:13px;
  font-weight:650;
  box-sizing:border-box;
}

.patient-edit-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding-top:2px;
}

.merge-box{
  display:grid;
  gap:10px;
  align-content:start;
  padding:14px;
  border:1px solid var(--app-line);
  border-radius:12px;
  background:#f8fafc;
}

.merge-box select{
  min-width:0;
}

.merge-box .button{
  justify-self:start;
}

@media (max-width: 980px){
  .patient-edit-layout{
    grid-template-columns:1fr;
  }
  .patient-field-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .patient-edit-panel{
    padding:16px;
  }
  .patient-edit-head{
    align-items:flex-start;
  }
}

.patient-record-editor{
  margin:12px 0 16px;
  overflow:hidden;
  border:1px solid #d8e3ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.07);
}

.patient-record-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid #e3ebf4;
  background:linear-gradient(180deg,#fbfdff 0%,#f7fafd 100%);
}

.patient-record-head h2{
  margin:3px 0 5px;
  color:var(--app-text);
  font-size:22px;
  line-height:1.2;
}

.patient-record-head p{
  max-width:680px;
  margin:0;
  color:var(--app-muted);
  font-size:13px;
  line-height:1.45;
}

.record-label{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.patient-record-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:0;
}

.patient-record-form{
  display:grid;
  gap:0;
}

.record-section{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:20px;
  padding:20px 22px;
  border-bottom:1px solid #edf2f7;
}

.record-section:last-of-type{
  border-bottom:0;
}

.muted-section{
  background:#fbfdff;
}

.record-section-head strong{
  display:block;
  color:var(--app-text);
  font-size:14px;
  line-height:1.25;
}

.record-section-head span{
  display:block;
  margin-top:4px;
  color:var(--app-muted);
  font-size:12px;
  line-height:1.35;
}

.record-field-grid{
  display:grid;
  grid-template-columns:1.25fr .85fr;
  gap:14px;
  align-items:end;
}

.record-field-grid label{
  display:grid;
  gap:7px;
  min-width:0;
  color:#46566b;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.record-field-grid input,
.record-merge-form select{
  width:100%;
  min-width:0;
  min-height:42px;
  border:1px solid #d7e2ee;
  border-radius:9px;
  padding:0 12px;
  background:#fff;
  color:var(--app-text);
  font-size:14px;
  font-weight:650;
  box-sizing:border-box;
}

.record-field-grid input:focus,
.record-merge-form select:focus{
  border-color:#5aa7d6;
  box-shadow:0 0 0 3px rgba(90,167,214,.16);
  outline:0;
}

.record-save-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:18px 22px 22px;
}

.record-save-row small{
  color:var(--app-muted);
  font-size:12px;
}

.record-side-panel{
  display:grid;
  gap:14px;
  align-content:start;
  padding:20px;
  border-left:1px solid #e3ebf4;
  background:#f8fafc;
}

.record-side-panel h3{
  margin:3px 0 6px;
  color:var(--app-text);
  font-size:16px;
}

.record-side-panel p{
  margin:0;
  color:var(--app-muted);
  font-size:12px;
  line-height:1.45;
}

.record-merge-form{
  display:grid;
  gap:10px;
}

.record-merge-form .button{
  justify-self:start;
}

.danger-zone{
  display:grid;
  gap:8px;
  margin-top:8px;
  padding-top:14px;
  border-top:1px solid #e3ebf4;
}

.danger-zone p{
  margin:0;
  color:var(--app-muted);
  font-size:12px;
  line-height:1.45;
}

.button.danger{
  border-color:#fecaca;
  background:#fff5f5;
  color:#b42318;
}

.button.danger:hover{
  background:#fee2e2;
  color:#991b1b;
}
.operational-table .priority.low,
.priority.low{
  background:var(--blue-light);
  color:var(--blue);
}

.patient-form-modal{
  align-items:center;
}

.patient-form-modal-card{
  width:min(980px,96vw);
}

.patient-edit-modal-card{
  width:min(1180px,96vw);
  padding:0;
  overflow:hidden;
}

.patient-record-editor.in-modal{
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.patient-record-editor.in-modal .patient-record-head{
  border-radius:0;
}

.modal-patient-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.modal-patient-grid .modal-actions{
  grid-column:1 / -1;
  justify-content:flex-end;
}

.receipt-preview-modal-card{
  width:min(860px,96vw);
  padding:0;
  overflow:hidden;
}

.receipt-preview-modal .receipt-preview{
  margin:0;
  border:0;
  border-radius:0;
  background:#fff;
}

.receipt-preview-modal .receipt-preview-head{
  padding:20px 22px;
  margin:0;
  border-bottom:1px solid var(--app-line);
  background:#fbfdff;
}

.receipt-preview-modal .receipt-preview-grid{
  padding:20px 22px 22px;
}

.close-button.table-action,
a.close-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

@media (max-width: 1100px){
  .patient-record-body{
    grid-template-columns:1fr;
  }
  .record-side-panel{
    border-left:0;
    border-top:1px solid #e3ebf4;
  }
}

@media (max-width: 760px){
  .patient-record-head,
  .record-section{
    grid-template-columns:1fr;
  }
  .patient-record-head{
    flex-direction:column;
  }
  .record-field-grid{
    grid-template-columns:1fr;
  }
  .modal-patient-grid{
    grid-template-columns:1fr;
  }
}

.manual-patient-create{
  margin:12px 0 16px;
  overflow:hidden;
  border:1px solid #d8e3ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.manual-patient-head{
  padding:18px 20px 14px;
  border-bottom:1px solid #e3ebf4;
  background:#fbfdff;
}

.manual-patient-head h2{
  margin:3px 0 5px;
  color:var(--app-text);
  font-size:20px;
}

.manual-patient-head p{
  margin:0;
  color:var(--app-muted);
  font-size:13px;
}

.manual-patient-form{
  display:grid;
  grid-template-columns:minmax(240px,1.3fr) minmax(180px,.8fr) minmax(220px,1fr) minmax(180px,.8fr) auto;
  gap:12px;
  align-items:end;
  padding:18px 20px 20px;
}

.manual-patient-form label{
  display:grid;
  gap:7px;
  min-width:0;
  color:#46566b;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.manual-patient-form input{
  width:100%;
  min-width:0;
  min-height:42px;
  border:1px solid #d7e2ee;
  border-radius:9px;
  padding:0 12px;
  background:#fff;
  color:var(--app-text);
  font-size:14px;
  font-weight:650;
  box-sizing:border-box;
}

.manual-patient-form input:focus{
  border-color:#5aa7d6;
  box-shadow:0 0 0 3px rgba(90,167,214,.16);
  outline:0;
}

.manual-patient-form .button{
  min-height:42px;
  white-space:nowrap;
}

@media (max-width: 1180px){
  .manual-patient-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .manual-patient-form .button{
    justify-self:start;
  }
}

@media (max-width: 680px){
  .manual-patient-form{
    grid-template-columns:1fr;
  }
}

/* Gráfico do painel: rolagem interna, não da página inteira */
.chart-card{
  overflow:hidden;
}

.chart-card .revenue-chart{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.revenue-chart{
  min-width:0;
}

.month-group{
  min-width:44px;
}

/* Relações pagador/paciente */
.relation-row-v2,
.relationship-card,
.clean-person-row{
  min-width:0;
}

.relationship-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:12px;
}

/* Área privada pessoal */
.overview-header,
.sheet-page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
  padding:18px 20px;
  background:#fff;
  border:1px solid var(--alpha42-line);
  border-radius:var(--alpha42-radius);
  box-shadow:0 10px 28px rgba(15,35,60,.045);
}

.overview-header p,
.sheet-page-header p{
  margin:.35rem 0 0;
  color:var(--alpha42-muted);
}

.overview-actions form,
.summary-month form{
  display:flex;
}

.overview-actions input,
.summary-month input{
  min-height:40px;
  border:1px solid var(--alpha42-line);
  border-radius:11px;
  padding:0 12px;
  background:#fff;
}

.list-dashboard-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:var(--alpha42-gap);
}

.overview-panel-title,
.list-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.personal-row,
.personal-total{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--alpha42-line);
}

.personal-total{
  border-bottom:0;
  font-size:1.05rem;
  font-weight:800;
}

.monthly-list-card,
.monthly-summary-panel{
  background:#fff;
  border:1px solid var(--alpha42-line);
  padding:18px;
  box-shadow:0 10px 28px rgba(15,35,60,.045);
}

.monthly-summary-panel{
  position:sticky;
  top:18px;
}

.simple-list-head.paid-columns,
.clean-person-row.paid-person-row{
  display:grid;
  grid-template-columns:minmax(190px,1.4fr) minmax(130px,.7fr) minmax(130px,.75fr) minmax(150px,.9fr);
  gap:12px;
  align-items:center;
}

.simple-list-head{
  padding:0 12px 8px;
  color:var(--alpha42-muted);
  font-size:11px;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.simple-patient-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.clean-person-row{
  padding:14px;
  background:#fff;
  border:1px solid var(--alpha42-line);
  border-radius:14px;
}

.clean-person-name strong,
.clean-received strong{
  display:block;
}

.origin-text,
.row-save-status,
.row-difference{
  display:block;
  color:var(--alpha42-muted);
  font-size:12px;
  margin-top:4px;
}

.money-field{
  width:100%;
  min-height:40px;
  border:1px solid var(--alpha42-line);
  border-radius:10px;
  padding:0 10px;
}

.presence-dots{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.presence-dot,
.add-dot{
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--alpha42-line);
  background:#f4f7fb;
  cursor:pointer;
}

.presence-dot.present{background:#dff7ea;border-color:#9de2b7;}
.presence-dot.absent{background:#fff3cd;border-color:#f1cf76;}
.add-dot{background:#fff;color:#183b56;font-weight:900;}

.summary-stat{
  border-top:1px solid var(--alpha42-line);
  padding:13px 0;
}
.summary-stat span,
.summary-month label{display:block;color:var(--alpha42-muted);font-size:12px;}
.summary-stat strong{display:block;margin-top:4px;font-size:20px;color:var(--alpha42-text);}
.summary-save{display:flex;flex-direction:column;gap:10px;margin-top:12px;}
.private-footer{margin-top:18px;color:var(--alpha42-muted);font-size:12px;}

/* Modais */
.modal-backdrop{
  padding:clamp(10px,2vw,24px);
}

.modal-card{
  width:min(100%,1040px);
  max-height:calc(100svh - 24px);
  overflow:auto;
}

@media (max-width:980px){
  html,
  body{
    overflow-x:hidden;
  }

  .app-shell,
  .shell{
    display:block;
    min-height:100svh;
  }

  .app-sidebar,
  .sidebar.app-sidebar,
  .sidebar{
    position:sticky;
    top:0;
    width:100%;
    height:auto;
    min-height:0;
    padding:10px;
    overflow:visible;
    border-radius:0 0 18px 18px;
    box-shadow:0 12px 28px rgba(12,29,47,.18);
  }

  .desktop-sidebar-inner{
    display:none;
  }

  .mobile-shellbar{
    display:block;
  }

  .mobile-brand-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
  }

  .mobile-brand{
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
  }

  .mobile-brand strong,
  .mobile-brand small{
    display:block;
    line-height:1.15;
  }

  .mobile-brand small{
    max-width:58vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#bdd0e4;
    font-size:11px;
    margin-top:3px;
  }

  .mobile-menu-details{
    margin-top:9px;
  }

  .mobile-menu-details summary{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 13px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:13px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-weight:850;
    list-style:none;
    cursor:pointer;
  }

  .mobile-menu-details summary::-webkit-details-marker{
    display:none;
  }

  .mobile-menu-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding-top:10px;
    margin:0;
    overflow:visible;
  }

  .mobile-menu-nav .menu-item{
    width:auto;
    min-height:42px;
    margin:0;
    padding:0 10px;
    background:rgba(255,255,255,.07);
    color:#dceafa;
    border-radius:12px;
    white-space:normal;
    transform:none;
  }

  .mobile-menu-nav .menu-item.ativo,
  .mobile-menu-nav .menu-item.active{
    background:#fff;
    color:#102a43;
  }

  .mobile-menu-nav .menu-item.ativo::before{
    display:none;
  }

  .mobile-menu-nav .mi{
    display:grid;
    width:25px;
    height:25px;
    flex:0 0 25px;
  }

  .app-content,
  .content{
    padding:clamp(12px,3.5vw,18px);
  }

  .top,
  .page-header,
  .overview-header,
  .sheet-page-header,
  .review-head,
  .receipt-preview-head,
  .detail-title,
  .list-dashboard-link{
    flex-direction:column;
    align-items:stretch;
  }

  .user,
  .overview-actions,
  .overview-actions form,
  .overview-actions input,
  .list-dashboard-link .button{
    width:100%;
  }

  .button,
  .action-button,
  .table-action{
    min-height:42px;
  }

  .monthly-summary-panel{
    position:static;
  }

  .simple-list-head.paid-columns{
    display:none;
  }

  .clean-person-row.paid-person-row{
    grid-template-columns:1fr 1fr;
  }

  .clean-person-name,
  .clean-presences{
    grid-column:1 / -1;
  }

  .detail-columns,
  .relationship-values,
  .relationship-top,
  .batch-head{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .revenue-chart{
    width:max-content;
    min-width:640px;
  }

  .chart-card{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:640px){
  .app-content,
  .content{
    padding:12px;
  }

  .mobile-menu-nav{
    grid-template-columns:1fr;
  }

  .top,
  .page-header,
  .overview-header,
  .sheet-page-header{
    padding:14px;
    border-radius:16px;
  }

  .top h1,
  .page-header h1,
  .overview-header h1,
  .sheet-page-header h1{
    font-size:clamp(22px,7vw,27px);
    line-height:1.12;
  }

  .stats,
  .receipt-stats,
  .operation-grid,
  .queue-grid,
  .summary-grid,
  .receipt-preview-grid,
  .modal-kpis,
  .detail-grid,
  .fiscal-migration-summary,
  .overview-kpis,
  .dashboard-grid,
  .rs-grid,
  .import-layout,
  .closing-layout,
  .fiscal-config-layout,
  .fiscal-status-grid,
  .fiscal-migration-layout,
  .personal-editor-grid,
  .monthly-workspace{
    grid-template-columns:1fr;
  }

  .card,
  .page-panel,
  .chart-card,
  .side-panel,
  .receipt-panel,
  .receipt-list-panel,
  .rs-panel,
  .import-card,
  .relationship-panel,
  .monthly-list-card,
  .monthly-summary-panel{
    padding:15px;
    border-radius:16px;
  }

  .filters,
  .export-filter,
  .month-selector,
  .import-actions,
  .inline-actions,
  .fiscal-form-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .filters input,
  .filters select,
  .filters .button,
  .export-filter input,
  .export-filter .button,
  .month-selector select,
  .month-selector .button,
  .import-actions .button,
  .inline-actions .button,
  .fiscal-form-actions .button,
  td .button,
  td .action-button,
  td .table-action,
  .row-classify select,
  .row-classify button{
    width:100%;
    min-width:0;
  }

  .clean-person-row.paid-person-row{
    grid-template-columns:1fr;
  }

  .clean-received,
  .clean-value{
    min-width:0;
  }

  .personal-row,
  .personal-total{
    flex-direction:column;
    gap:4px;
  }

  .modal-card{
    padding:16px;
    border-radius:18px;
  }

  .modal-head{
    gap:12px;
  }
}

@media (max-width:420px){
  .mobile-brand small{
    max-width:48vw;
  }

  .marca-badge{
    display:none;
  }

  .operational-table table,
  .table-wrap table,
  .preview-table table,
  .fiscal-preview-scroll table{
    min-width:640px;
  }
}

/* alpha.48 - estabilizacao funcional de layout */
html,
body {
  overflow-x: hidden;
}

.operational-table,
.table-wrap,
.preview-table,
.fiscal-preview-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.operational-table table,
.table-wrap table,
.preview-table table,
.fiscal-preview-scroll table {
  width: max-content;
  min-width: 100%;
}

.operational-table th,
.operational-table td,
.table-wrap th,
.table-wrap td,
.preview-table th,
.preview-table td {
  vertical-align: top;
}

.operational-table .identification,
.operational-table small,
.operational-table code,
.table-wrap small,
.preview-table small {
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 760px) {
  .operational-table table,
  .table-wrap table,
  .preview-table table,
  .fiscal-preview-scroll table {
    min-width: max-content;
  }

}

/* alpha.52 - revisao global de layout e navegacao */
:root {
  --alpha52-sidebar: 270px;
}

@media (min-width: 981px) {
  .app-shell,
  .shell {
    display: block;
    min-height: 100vh;
  }

  .app-sidebar,
  .sidebar.app-sidebar,
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--alpha52-sidebar);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 18px 0 44px rgba(12, 29, 47, .10);
  }

  .desktop-sidebar-inner {
    height: 100%;
    min-height: 0;
  }

  .desktop-sidebar-inner .menu-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 5px 10px 0;
  }

  .app-content,
  .content {
    margin-left: var(--alpha52-sidebar);
    width: calc(100% - var(--alpha52-sidebar));
    min-height: 100vh;
    padding-top: 24px;
  }
}

.top,
.page-header,
.overview-header,
.sheet-page-header {
  align-items: flex-start;
}

.top > div:first-child,
.page-header > div:first-child,
.overview-header > div:first-child,
.sheet-page-header > div:first-child,
.panel-head > div:first-child,
.section-header > div:first-child {
  min-width: 0;
}

.top h1,
.page-header h1,
.overview-header h1,
.sheet-page-header h1 {
  max-width: 980px;
  overflow-wrap: anywhere;
}

.sub,
.panel-head p,
.section-header p,
.helper,
.file-note,
.demo-file,
.process-note,
.csv-note,
.review-note,
.group-application,
.notice {
  max-width: 920px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.notice {
  border-radius: 12px;
}

.patient-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--app-line, var(--line));
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  overflow-x: auto;
  scrollbar-width: thin;
}

.patient-tabs a {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 10px;
  border: 0;
  padding: 0 12px;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
}

.patient-tabs a.active,
.patient-tabs a:hover {
  color: var(--navy);
  background: #eef5ff;
}

.operational-table th,
.table-wrap th,
.preview-table th,
.fiscal-preview-scroll th {
  top: 0;
}

.operational-table td,
.table-wrap td,
.preview-table td,
.fiscal-preview-scroll td {
  line-height: 1.42;
}

.operational-table .action-button,
.operational-table .table-action,
.operational-table .button,
.table-wrap .action-button,
.table-wrap .table-action,
.table-wrap .button {
  white-space: nowrap;
}

.row-classify,
.action-form,
td form {
  gap: 7px;
}

pre,
code,
.masked,
.masked-data {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 980px) {
  :root {
    --alpha52-sidebar: 0px;
  }

  .app-content,
  .content {
    margin-left: 0;
    width: 100%;
  }

  .patient-tabs {
    border-radius: 13px;
    margin-top: -2px;
  }
}

/* alpha.54 - informar CPF real em recibos */
.cpf-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cpf-inline-form input[name="beneficiary_cpf"] {
  width: 150px;
  min-height: 38px;
  border: 1px solid var(--line, #e1e9f3);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .cpf-inline-form input[name="beneficiary_cpf"],
  .cpf-inline-form .action-button {
    width: 100%;
  }
}

/* alpha.75 - Receita Saude por mes de caixa */
.fiscal-month-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fiscal-month-toolbar h2,
.fiscal-month-block h2 {
  margin: 0 0 5px;
  color: var(--navy, #12304c);
}

.fiscal-month-toolbar p,
.fiscal-month-block p {
  margin: 0;
  color: var(--muted, #607188);
}

.fiscal-month-summary {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.fiscal-month-block {
  margin-top: 16px;
}

.fiscal-month-block .panel-head form {
  flex: 0 0 auto;
}

.fiscal-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.fiscal-selection-summary {
  color: var(--muted, #607188);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fiscal-selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fiscal-select-column {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.fiscal-receipt-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #008565;
  cursor: pointer;
  vertical-align: middle;
}

#fiscal-generate-selected:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 1100px) {
  .fiscal-month-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fiscal-month-toolbar,
  .fiscal-month-block .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fiscal-selection-toolbar {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .fiscal-month-summary {
    grid-template-columns: 1fr;
  }

  .fiscal-month-toolbar .export-filter,
  .fiscal-month-toolbar .export-filter .button,
  .fiscal-month-toolbar .export-filter input {
    width: 100%;
  }

  .fiscal-selection-toolbar,
  .fiscal-selection-actions,
  .fiscal-selection-actions .button {
    width: 100%;
  }
}

/* alpha.55 - padrao intuitivo para acoes, modais e texto */
.patient-detail-link {
  display: inline;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--ink, #14253a);
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.patient-detail-link:hover,
.patient-detail-link:focus-visible {
  color: var(--blue, #1967d2);
  text-decoration: underline;
  outline: none;
}

.identification strong,
.identification .patient-detail-link {
  overflow-wrap: anywhere;
}

.compact-entry-modal .modal-backdrop,
.modal-backdrop {
  backdrop-filter: blur(2px);
}

.compact-modal-card {
  width: min(460px, 100%);
  padding: 22px;
}

.beneficiary-modal-card {
  width: min(640px, 100%);
  padding: 24px;
}

.modal-head {
  align-items: flex-start;
  gap: 18px;
}

.modal-head h2 {
  margin: 4px 0 0;
  line-height: 1.15;
}

.modal-helper,
.modal-head p {
  margin: 7px 0 0;
  color: var(--muted, #607188);
  line-height: 1.45;
}

.beneficiary-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.beneficiary-context > div {
  border: 1px solid var(--line, #e1e9f3);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  min-width: 0;
}

.beneficiary-context label,
.modal-field,
.beneficiary-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted, #607188);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.beneficiary-context strong {
  color: var(--ink, #14253a);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.beneficiary-context small {
  margin-top: 5px;
  line-height: 1.35;
}

.beneficiary-form,
.modal-entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.modal-entry-form {
  grid-template-columns: 1fr;
}

.beneficiary-form input,
.modal-entry-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line, #e1e9f3);
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink, #14253a);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.group-application {
  grid-column: 1 / -1;
  border: 1px solid #d8e9fb;
  border-radius: 12px;
  background: #f3f8ff;
  color: #244866;
  padding: 12px;
  line-height: 1.55;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.operational-table td {
  line-height: 1.45;
}

.operational-table .inline-actions {
  align-items: center;
}

@media (max-width: 700px) {
  .beneficiary-context,
  .beneficiary-form {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .button,
.modal-actions .action-button {
    width: 100%;
  }
}

/* Recebimentos: lançamento manual integrado à conciliação bancária. */
.receipt-primary-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.manual-payment-modal-card {
  width: min(690px, 100%);
  padding: 24px;
  max-height: min(88vh, 850px);
  overflow-y: auto;
}

.manual-payment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.manual-payment-form .manual-payment-wide {
  grid-column: 1 / -1;
}

.manual-payment-form select,
.manual-payment-form textarea {
  width: 100%;
  border: 1px solid var(--line, #e1e9f3);
  border-radius: 11px;
  background: #fff;
  color: var(--ink, #14253a);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.manual-payment-form select {
  min-height: 42px;
  padding: 0 12px;
}

.manual-payment-form textarea {
  min-height: 78px;
  padding: 11px 12px;
  line-height: 1.45;
  resize: vertical;
}

.manual-payment-form .modal-field span,
.manual-payment-form .modal-field small {
  color: #7890a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.manual-payment-assurance {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid #bfe5d6;
  border-radius: 12px;
  background: #f0fbf6;
  color: #24654e;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.manual-payment-assurance strong {
  color: #117654;
  font-size: 12px;
}

.manual-payment-error {
  margin: 16px 0 0;
}

.manual-payer-add-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.manual-payer-add-action small {
  color: var(--muted, #607188);
  font-size: 11px;
  line-height: 1.4;
}

.manual-payer-editor {
  border: 1px solid #c9dff0;
  border-radius: 14px;
  background: #f4f9fd;
  padding: 15px;
}

.manual-payer-editor[hidden] {
  display: none;
}

.manual-payer-editor-head,
.manual-payer-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-payer-editor-head strong,
.manual-payer-editor-head small {
  display: block;
}

.manual-payer-editor-head strong {
  color: var(--ink, #14253a);
  font-size: 14px;
}

.manual-payer-editor-head small {
  margin-top: 3px;
  color: var(--muted, #607188);
  font-size: 11px;
}

.manual-payer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.manual-payer-default {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: #405a70;
  font-size: 12px;
  font-weight: 700;
}

.manual-payer-default input {
  width: auto;
  min-height: 0;
}

.manual-payer-editor-actions {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .manual-payment-modal-card {
    padding: 19px;
    max-height: 92vh;
  }

  .manual-payment-form {
    grid-template-columns: 1fr;
  }

  .manual-payment-form .manual-payment-wide {
    grid-column: auto;
  }

  .manual-payer-add-action,
  .manual-payer-editor-head,
  .manual-payer-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-payer-fields {
    grid-template-columns: 1fr;
  }

  .manual-payer-editor-actions .button {
    width: 100%;
  }

  .receipt-primary-actions,
  .receipt-primary-actions .button {
    width: 100%;
  }
}

/* Importacao de extrato: em painel estreito, cada movimento vira um cartao. */
/* Indicadores da previa: cores semanticas consistentes com o restante do painel. */
.universal-preview .summary-grid > div {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  box-shadow: 0 7px 18px rgba(28, 52, 72, .055);
}
.universal-preview .summary-grid > div::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
  opacity: .8;
}
.universal-preview .summary-grid .summary-total {
  color: #315f86;
  background: #f3f8fc;
  border-color: #c9dcea;
}
.universal-preview .summary-grid .summary-existing {
  color: #11845b;
  background: #effaf5;
  border-color: #b9e3d1;
}
.universal-preview .summary-grid .summary-new {
  color: #2869c7;
  background: #f0f5ff;
  border-color: #c6d8f5;
}
.universal-preview .summary-grid .summary-duplicates {
  color: #ad6808;
  background: #fff8eb;
  border-color: #edcf9d;
}
.universal-preview .summary-grid .summary-duplicates.is-zero {
  color: #68778a;
  background: #f6f8fa;
  border-color: #d8e0e8;
}
.universal-preview .summary-grid > div label {
  color: currentColor;
  opacity: .82;
}
.universal-preview .summary-grid > div strong {
  color: currentColor;
  font-size: 22px;
}

.universal-preview .import-routing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.universal-preview .import-routing .route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(28, 52, 72, .05);
  overflow: hidden;
}
.universal-preview .import-routing .route strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: currentColor;
  font-variant-numeric: tabular-nums;
}
.universal-preview .import-routing .route span {
  display: block;
  color: currentColor;
  font-size: 12px;
  line-height: 1.35;
  opacity: .82;
}
.universal-preview .import-routing .route.patient {
  color: #176d8d;
  background: #eff9fc;
  border-color: #bfe0eb;
}
.universal-preview .import-routing .route.review {
  color: #9a640c;
  background: #fff8ea;
  border-color: #edd19c;
}
.universal-preview .import-routing .route.out {
  color: #a24c4c;
  background: #fff3f2;
  border-color: #ecc8c4;
}
.universal-preview .import-routing .route.amount {
  color: #167252;
  background: #eff9f4;
  border-color: #bfe1d2;
}
@media (max-width: 1100px) {
  .universal-preview .import-routing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .universal-preview .import-routing { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .import-preview-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .import-preview-scroll table,
  .import-preview-scroll tbody,
  .import-preview-scroll tr,
  .import-preview-scroll td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .import-preview-scroll thead { display: none; }
  .import-preview-scroll tbody { display: grid; gap: 12px; }
  .import-preview-scroll tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 13px;
    background: #fff;
    overflow: hidden;
  }
  .import-preview-scroll tr.possible-duplicate-row {
    border-color: #e9c882;
    background: #fffaf0;
  }
  .import-preview-scroll td {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    padding: 9px 0 9px 42%;
    position: relative;
    min-height: 38px;
    overflow-wrap: anywhere;
  }
  .import-preview-scroll td:last-child { border-bottom: 0; }
  .import-preview-scroll td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 10px;
    width: 38%;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .import-preview-scroll .preview-status,
  .import-preview-scroll .force-import { white-space: normal; }
  .import-preview-scroll .match-reason { display: block; margin-top: 5px; }
}

.monitor-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;margin-bottom:18px}
.monitor-card{overflow:hidden}
.monitor-kpis{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px}
.monitor-kpis div{background:#f5f8fc;border:1px solid #dfe8f3;border-radius:14px;padding:13px}
.monitor-kpis label{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#64748b;font-weight:800;margin-bottom:7px}
.monitor-kpis strong{display:block;color:#102033;font-size:18px;line-height:1.25}
.schema-list{display:flex;flex-direction:column;gap:8px}
.schema-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #dde7f2;border-radius:12px;padding:10px 12px;background:#f8fbff}
.schema-row span{color:#344760;font-weight:700}
.schema-row strong{font-size:12px;border-radius:999px;padding:5px 9px}
.schema-row.ok strong{background:#e8f7ef;color:#087443}
.schema-row.warn strong{background:#fff7e6;color:#9a5a00}
.schema-row.bad{border-color:#ffc5c5;background:#fff3f3}
.schema-row.bad strong{background:#ffe1e1;color:#a51d1d}
@media (max-width:1100px){
  .monitor-grid{grid-template-columns:1fr}
  .monitor-kpis{grid-template-columns:repeat(2,minmax(140px,1fr))}
}

/* Alpha 148 - acabamento visual da area Minha vida financeira */
.personal-page{
  --personal-green:#087443;
  --personal-blue:#1967d2;
  --personal-orange:#c96a13;
  --personal-purple:#6554c0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.personal-page .overview-header{
  position:relative;
  align-items:center;
  margin-bottom:0;
  overflow:hidden;
  padding:24px 26px;
  border:1px solid rgba(25,103,210,.13);
  background:
    radial-gradient(circle at 92% 10%, rgba(8,116,67,.13), transparent 28%),
    linear-gradient(135deg,#ffffff 0%,#f7fbff 55%,#edf7f2 100%);
  box-shadow:0 18px 46px rgba(16,36,67,.075);
}

.personal-page .overview-header::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background:linear-gradient(180deg,var(--personal-green),var(--personal-blue));
}

.personal-page .overview-header > div{
  position:relative;
  z-index:1;
}

.personal-page .overview-header h1{
  margin:8px 0 8px;
  color:var(--navy);
  font-size:clamp(28px,3vw,38px);
  letter-spacing:-.035em;
  line-height:1.05;
}

.personal-page .overview-header p{
  max-width:680px;
  font-size:14px;
  line-height:1.55;
}

.personal-page .private-label{
  border:1px solid rgba(25,103,210,.12);
  background:rgba(255,255,255,.78);
  color:#31546f;
  box-shadow:0 8px 22px rgba(16,36,67,.045);
}

.personal-page .overview-actions input{
  min-height:44px;
  border-radius:14px;
  border-color:#cfdcec;
  box-shadow:0 8px 20px rgba(16,36,67,.045);
  color:var(--navy);
  font-weight:800;
}

.personal-page .overview-kpis{
  grid-template-columns:repeat(4,minmax(190px,1fr));
  gap:14px;
  margin:0;
}

.personal-page .overview-kpi{
  --kpi-color:var(--personal-blue);
  --kpi-soft:#eef5ff;
  position:relative;
  min-height:148px;
  overflow:hidden;
  isolation:isolate;
  padding:19px 19px 17px;
  border:1px solid rgba(225,233,243,.9);
  background:linear-gradient(180deg,#fff 0%,var(--kpi-soft) 165%);
  box-shadow:0 14px 34px rgba(16,36,67,.065);
}

.personal-page .overview-kpi.green{
  --kpi-color:var(--personal-green);
  --kpi-soft:#edf8f2;
}

.personal-page .overview-kpi.blue{
  --kpi-color:var(--personal-blue);
  --kpi-soft:#eef5ff;
}

.personal-page .overview-kpi.orange{
  --kpi-color:var(--personal-orange);
  --kpi-soft:#fff5e9;
}

.personal-page .overview-kpi.purple{
  --kpi-color:var(--personal-purple);
  --kpi-soft:#f3f1ff;
}

.personal-page .overview-kpi::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:var(--kpi-color);
}

.personal-page .overview-kpi::after{
  content:"";
  position:absolute;
  width:88px;
  height:88px;
  right:-30px;
  bottom:-38px;
  border-radius:50%;
  background:var(--kpi-color);
  opacity:.09;
  z-index:-1;
}

.personal-page .overview-kpi label{
  color:#64748b;
  font-size:10px;
  letter-spacing:.085em;
  text-transform:uppercase;
}

.personal-page .overview-kpi strong{
  color:var(--navy);
  font-size:clamp(25px,2.2vw,32px);
  letter-spacing:-.035em;
}

.personal-page .overview-kpi small{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#52657b;
  font-size:12px;
  font-weight:750;
}

.personal-page .list-dashboard-link{
  margin-bottom:0;
  padding:20px 22px;
  border-color:#d7e7f5;
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 58%,#f0f8f4 100%);
  box-shadow:0 14px 32px rgba(16,36,67,.055);
}

.personal-page .list-dashboard-link h2{
  margin:8px 0 6px;
  color:var(--navy);
  letter-spacing:-.015em;
}

.personal-page .list-dashboard-link p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.personal-page .list-dashboard-link .button,
.personal-page .personal-month-form .button{
  border-radius:14px;
  box-shadow:0 12px 24px rgba(25,103,210,.18);
}

.personal-page .personal-editor-grid{
  grid-template-columns:minmax(0,1.16fr) minmax(320px,.84fr);
  gap:16px;
}

.personal-page .personal-form-card,
.personal-page .private-breakdown{
  padding:22px;
  border-color:#dfe8f3;
  box-shadow:0 14px 34px rgba(16,36,67,.06);
}

.personal-page .overview-panel-title{
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid #edf2f7;
}

.personal-page .overview-panel-title h2{
  margin:0 0 5px;
  color:var(--navy);
  letter-spacing:-.015em;
}

.personal-page .overview-panel-title p{
  margin:0;
  color:var(--muted);
}

.personal-page .personal-month-form{
  gap:13px;
}

.personal-page .personal-month-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#64748b;
  font-size:10px;
  font-weight:850;
  letter-spacing:.07em;
}

.personal-page .personal-month-form input,
.personal-page .personal-month-form textarea{
  border:1px solid #d7e2ee;
  border-radius:14px;
  background:#fbfdff;
  color:var(--ink);
  font-size:15px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.personal-page .personal-month-form textarea{
  min-height:98px;
  line-height:1.5;
}

.personal-page .private-breakdown{
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
}

.personal-page .personal-row{
  align-items:center;
  margin-bottom:9px;
  padding:12px 14px;
  border:1px solid #e5edf6;
  border-radius:14px;
  background:#fff;
}

.personal-page .personal-row span,
.personal-page .personal-total span{
  color:#52657b;
  font-weight:750;
}

.personal-page .personal-row strong{
  color:var(--navy);
  white-space:nowrap;
}

.personal-page .personal-row.negative strong{
  color:#9a5a00;
}

.personal-page .personal-total{
  align-items:center;
  margin-top:13px;
  padding:17px 16px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg,var(--navy),#173b6d);
  box-shadow:0 16px 32px rgba(16,36,67,.14);
}

.personal-page .personal-total span,
.personal-page .personal-total strong{
  color:#fff;
}

.personal-page .personal-total strong{
  font-size:1.16rem;
}

.personal-page .private-footer{
  margin-top:0;
  padding:13px 16px;
  border:1px solid #dfe8f3;
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:#5f7085;
  line-height:1.45;
}

@media (max-width:1180px){
  .personal-page .overview-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:900px){
  .personal-page .overview-header{
    align-items:stretch;
    flex-direction:column;
  }

  .personal-page .overview-actions,
  .personal-page .overview-actions form,
  .personal-page .overview-actions input{
    width:100%;
  }

  .personal-page .personal-editor-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .personal-page{
    gap:14px;
  }

  .personal-page .overview-header,
  .personal-page .list-dashboard-link,
  .personal-page .personal-form-card,
  .personal-page .private-breakdown{
    padding:16px;
  }

  .personal-page .overview-kpis{
    grid-template-columns:1fr;
  }

  .personal-page .overview-kpi{
    min-height:128px;
  }

  .personal-page .personal-row,
  .personal-page .personal-total{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
}

/* Alpha 149 - identidade visual Fluir para todo o app */
:root{
  --fluir-ink:#071f3d;
  --fluir-text:#142846;
  --fluir-muted:#617089;
  --fluir-line:#dfe9f3;
  --fluir-soft:#f4f8fb;
  --fluir-green:#008565;
  --fluir-green-2:#00b982;
  --fluir-green-dark:#003f3c;
  --fluir-teal-dark:#002d33;
  --fluir-blue:#2d63ff;
  --fluir-orange:#f07a18;
  --fluir-red:#e33445;
  --fluir-purple:#7c3aed;
  --fluir-shadow:0 20px 55px rgba(7,31,61,.08);
  --fluir-radius:22px;
}

body.fluir-layout-body{
  color:var(--fluir-text);
  background:
    radial-gradient(circle at 86% -10%, rgba(0,133,101,.10), transparent 28%),
    linear-gradient(180deg,#f8fbfd 0%,#f2f6fa 100%);
}

body.fluir-layout-body .app-shell{
  grid-template-columns:292px minmax(0,1fr);
  background:transparent;
}

body.fluir-layout-body .app-content,
body.fluir-layout-body .content{
  padding:30px 34px 34px;
  width:auto;
  min-width:0;
  background:transparent;
}

@media (min-width:901px){
  body.fluir-layout-body .app-content,
  body.fluir-layout-body .content{
    margin-left:292px;
    width:calc(100% - 292px);
  }
}

body.fluir-layout-body .app-sidebar,
body.fluir-layout-body .sidebar.app-sidebar,
body.fluir-layout-body .sidebar{
  width:292px;
  padding:28px 22px;
  background:
    radial-gradient(circle at 82% 98%, rgba(41,207,134,.28), transparent 24%),
    radial-gradient(circle at -12% 58%, rgba(0,185,130,.18), transparent 26%),
    linear-gradient(165deg,#022f35 0%,#003d3f 44%,#00282f 100%);
  color:#fff;
  border-right:0;
  box-shadow:18px 0 50px rgba(0,47,55,.14);
}

body.fluir-layout-body .app-sidebar::before{
  content:"";
  position:absolute;
  left:-70px;
  right:auto;
  bottom:-48px;
  top:auto;
  width:360px;
  height:150px;
  border-radius:50%;
  border:9px solid rgba(0,185,130,.20);
  transform:rotate(-11deg);
  background:transparent;
}

body.fluir-layout-body .app-sidebar::after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-28px;
  width:150px;
  height:150px;
  border-radius:78% 18% 78% 28%;
  background:linear-gradient(135deg,rgba(92,227,142,.72),rgba(0,104,79,.20));
  transform:rotate(-24deg);
  filter:blur(.2px);
}

body.fluir-layout-body .desktop-sidebar-inner{
  position:relative;
  z-index:1;
}

body.fluir-layout-body .marca{
  padding:0;
  margin-bottom:34px;
  border:0;
  background:transparent;
  box-shadow:none;
}

body.fluir-layout-body .marca-topo{
  gap:14px;
  align-items:center;
  margin-bottom:12px;
}

body.fluir-layout-body .marca-icone.fluir-leaf{
  position:relative;
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:18px;
  background:linear-gradient(145deg,#005b50,#002e36);
  box-shadow:0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.15);
}

body.fluir-layout-body .fluir-leaf span,
body.fluir-layout-body .fluir-leaf::before{
  content:"";
  position:absolute;
  width:34px;
  height:22px;
  left:10px;
  top:17px;
  border-radius:80% 10% 80% 18%;
  background:linear-gradient(135deg,#98f5b7 0%,#32cf80 46%,#008565 100%);
  transform:rotate(-25deg);
  box-shadow:0 8px 18px rgba(27,214,125,.26);
}

body.fluir-layout-body .fluir-leaf::after{
  content:"";
  position:absolute;
  width:27px;
  height:1px;
  left:16px;
  top:29px;
  background:rgba(255,255,255,.48);
  transform:rotate(-25deg);
}

body.fluir-layout-body .marca-titulo{
  display:flex;
  flex-direction:column;
  gap:2px;
  color:#fff;
  letter-spacing:-.03em;
}

body.fluir-layout-body .marca-titulo strong,
body.fluir-layout-body .mobile-brand strong{
  color:#fff;
  font-size:30px;
  line-height:.95;
  font-weight:900;
}

body.fluir-layout-body .marca-titulo small,
body.fluir-layout-body .mobile-brand small{
  display:block;
  color:rgba(255,255,255,.76);
  font-size:13px;
  line-height:1.2;
  font-weight:650;
  margin:0;
}

body.fluir-layout-body .marca > small{
  color:rgba(255,255,255,.74);
}

body.fluir-layout-body .marca-badge{
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
}

body.fluir-layout-body .menu-titulo{
  color:rgba(255,255,255,.58);
  letter-spacing:.12em;
  margin:0 0 12px;
}

body.fluir-layout-body .menu-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

body.fluir-layout-body .menu-nav .menu-item{
  min-height:54px;
  padding:0 15px;
  border-radius:15px;
  color:rgba(255,255,255,.88);
  background:transparent;
  font-size:15px;
  font-weight:760;
  letter-spacing:-.01em;
  box-shadow:none;
}

body.fluir-layout-body .menu-nav .menu-item:hover{
  background:rgba(255,255,255,.075);
  transform:translateX(2px);
}

body.fluir-layout-body .menu-nav .menu-item.ativo,
body.fluir-layout-body .menu-nav .menu-item.active{
  background:linear-gradient(135deg,rgba(0,185,130,.95),rgba(0,104,91,.82));
  color:#fff;
  box-shadow:0 14px 32px rgba(0,25,24,.22), inset 0 1px 0 rgba(255,255,255,.18);
}

body.fluir-layout-body .menu-nav .menu-item.ativo::before{
  display:none;
}

body.fluir-layout-body .menu-nav .mi{
  width:32px;
  height:32px;
  border-radius:11px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:18px;
}

body.fluir-layout-body .menu-nav .menu-item.ativo .mi{
  background:rgba(255,255,255,.18);
}

body.fluir-layout-body .rodape-lateral{
  margin-top:auto;
  padding:20px 18px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(0,35,38,.38);
  color:rgba(255,255,255,.78);
  line-height:1.65;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

body.fluir-layout-body .seguranca{
  color:#5beca7;
  font-weight:850;
  margin-bottom:7px;
}

body.fluir-layout-body .top,
body.fluir-layout-body .page-header,
body.fluir-layout-body .overview-header,
body.fluir-layout-body .sheet-page-header{
  border:1px solid var(--fluir-line);
  border-radius:var(--fluir-radius);
  background:rgba(255,255,255,.86);
  box-shadow:var(--fluir-shadow);
}

body.fluir-layout-body .top h1,
body.fluir-layout-body .page-header h1,
body.fluir-layout-body .overview-header h1,
body.fluir-layout-body .sheet-page-header h1{
  color:var(--fluir-ink);
  letter-spacing:-.04em;
}

body.fluir-layout-body .eyebrow,
body.fluir-layout-body .private-label{
  color:var(--fluir-green);
}

body.fluir-layout-body .card,
body.fluir-layout-body .page-panel,
body.fluir-layout-body .chart-card,
body.fluir-layout-body .side-panel,
body.fluir-layout-body .receipt-panel,
body.fluir-layout-body .rs-panel,
body.fluir-layout-body .import-card,
body.fluir-layout-body .relationship-panel,
body.fluir-layout-body .fiscal-form-card,
body.fluir-layout-body .fiscal-help-card,
body.fluir-layout-body .fiscal-readiness-card,
body.fluir-layout-body .monthly-list-card,
body.fluir-layout-body .monthly-summary-panel,
body.fluir-layout-body .personal-form-card,
body.fluir-layout-body .private-breakdown{
  border-color:var(--fluir-line);
  border-radius:var(--fluir-radius);
  background:rgba(255,255,255,.92);
  box-shadow:var(--fluir-shadow);
}

body.fluir-layout-body .button,
body.fluir-layout-body .action-button,
body.fluir-layout-body .table-action{
  border-radius:14px;
  font-weight:850;
}

body.fluir-layout-body .button:not(.ghost),
body.fluir-layout-body .action-button.primary{
  background:linear-gradient(135deg,var(--fluir-green),#006e59);
  border-color:transparent;
  box-shadow:0 12px 24px rgba(0,133,101,.20);
}

body.fluir-layout-body .button.ghost,
body.fluir-layout-body .action-button:not(.primary),
body.fluir-layout-body .table-action{
  background:#fff;
  color:var(--fluir-ink);
  border:1px solid var(--fluir-line);
}

body.fluir-layout-body input,
body.fluir-layout-body select,
body.fluir-layout-body textarea{
  border-color:#d8e4ef;
  border-radius:14px;
}

body.fluir-layout-body .notice{
  border-radius:17px;
}

body.fluir-layout-body .notice.demo{
  background:#f3fbf8;
  border-color:#bfe5d8;
  color:#26475f;
}

body.fluir-layout-body th{
  background:#f7fbfa;
  color:#60718a;
}

body.fluir-layout-body .tag.emitted,
body.fluir-layout-body .status.emitted,
body.fluir-layout-body .pill.ok{
  background:#e9f8ef;
  color:var(--fluir-green);
}

body.fluir-layout-body .tag.attention,
body.fluir-layout-body .status.attention,
body.fluir-layout-body .pill.pending{
  background:#fff4e5;
  color:#a05500;
}

/* Painel principal Fluir */
.fluir-dashboard{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.fluir-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
}

.fluir-hero h1{
  margin:0 0 8px;
  color:var(--fluir-ink);
  font-size:clamp(30px,3.2vw,42px);
  line-height:1.04;
  letter-spacing:-.05em;
}

.fluir-hero p{
  margin:0;
  color:var(--fluir-muted);
  font-size:16px;
}

.fluir-top-actions{
  display:flex;
  align-items:center;
  gap:13px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.fluir-year-pill,
.fluir-icon-button,
.fluir-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  border:1px solid var(--fluir-line);
  background:#fff;
  color:var(--fluir-ink);
  border-radius:16px;
  box-shadow:0 12px 30px rgba(7,31,61,.055);
  text-decoration:none;
  font-weight:850;
}

.fluir-year-pill{
  gap:9px;
  padding:0 18px;
}

.fluir-icon-button{
  width:52px;
  font-size:20px;
}

.fluir-avatar{
  width:52px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--fluir-green),#005a48);
  color:#fff;
  border:0;
}

.fluir-private-alert{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  padding:15px 18px;
}

.fluir-alert-icon{
  display:inline-flex;
  width:34px;
  height:34px;
  flex:0 0 34px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:linear-gradient(135deg,var(--fluir-green),#006d58);
  color:#fff;
  font-weight:900;
}

.fluir-metric-grid{
  grid-template-columns:repeat(4,minmax(190px,1fr));
  gap:18px;
  margin:0;
}

.fluir-metric-card{
  --metric:#008565;
  --metric-soft:#effbf6;
  min-height:174px;
  position:relative;
  overflow:hidden;
  padding:22px;
  background:linear-gradient(145deg,#fff 0%,var(--metric-soft) 150%);
}

.fluir-metric-card.green{--metric:var(--fluir-green);--metric-soft:#eefbf6;}
.fluir-metric-card.orange{--metric:var(--fluir-orange);--metric-soft:#fff7ed;}
.fluir-metric-card.blue{--metric:var(--fluir-blue);--metric-soft:#f2f6ff;}
.fluir-metric-card.red{--metric:var(--fluir-red);--metric-soft:#fff3f4;}

.fluir-metric-card::after{
  content:"";
  position:absolute;
  right:-28px;
  top:-28px;
  width:92px;
  height:92px;
  border-radius:50%;
  background:var(--metric);
  opacity:.12;
}

.fluir-metric-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}

.fluir-metric-card label{
  margin:0;
  color:var(--fluir-ink);
  font-size:11px;
  letter-spacing:.055em;
}

.fluir-metric-card strong{
  margin:0 0 10px;
  color:var(--fluir-ink);
  font-size:clamp(24px,2.2vw,31px);
  letter-spacing:-.045em;
}

.fluir-metric-card small{
  color:#51657d;
  font-weight:760;
}

.fluir-metric-card small.positive{color:var(--fluir-green);}
.fluir-metric-card small.negative{color:var(--fluir-red);}

.fluir-metric-icon{
  display:inline-flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  background:color-mix(in srgb, var(--metric) 15%, #fff);
  color:var(--metric);
  font-size:22px;
  font-weight:900;
}

.fluir-spark{
  position:absolute;
  left:22px;
  right:22px;
  bottom:18px;
  width:calc(100% - 44px);
  height:42px;
  fill:none;
  stroke:var(--metric);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.95;
}

.fluir-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);
  gap:22px;
  align-items:start;
}

.fluir-chart-panel,
.fluir-competence-card{
  padding:26px;
}

.fluir-chart-panel .section-header h2,
.fluir-competence-card .section-header h2,
.fluir-shortcuts h2{
  color:var(--fluir-ink);
  font-size:22px;
  letter-spacing:-.035em;
}

.fluir-segmented{
  display:inline-flex;
  gap:4px;
  padding:4px;
  border-radius:999px;
  background:#f1f5f9;
}

.fluir-segmented span{
  min-width:76px;
  padding:9px 15px;
  border-radius:999px;
  text-align:center;
  color:#41536c;
  font-weight:850;
}

.fluir-segmented .active{
  background:#fff;
  color:var(--fluir-green);
  box-shadow:0 8px 18px rgba(7,31,61,.08);
}

.fluir-comparison{
  border:1px solid #dfe7f0;
  background:#f8fbff;
  color:#52647d;
}

.fluir-comparison strong{
  color:var(--fluir-ink);
}

.fluir-comparison strong.positive{color:var(--fluir-green);}
.fluir-comparison strong.negative{color:var(--fluir-red);}

.fluir-revenue-chart .bar.current{
  background:linear-gradient(180deg,#009c75,#006d58);
  box-shadow:0 8px 18px rgba(0,133,101,.18);
}

.fluir-revenue-chart .bar.previous{
  background:#cfeee3;
}

.fluir-chart-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:14px;
}

.fluir-chart-footer .dot.current{background:var(--fluir-green);}
.fluir-chart-footer .dot.previous{background:#cfeee3;}

.fluir-side-stack{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.fluir-competence-body{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:24px;
  align-items:center;
  padding:18px 0 20px;
}

.fluir-donut{
  width:168px;
  height:168px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:conic-gradient(var(--fluir-green) var(--value), #ffb22b 0 78%, #d9e0ea 0);
}

.fluir-donut::after{
  content:"";
  position:absolute;
  inset:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 1px #edf2f7;
}

.fluir-donut span,
.fluir-donut small{
  position:relative;
  z-index:1;
}

.fluir-donut span{
  color:var(--fluir-ink);
  font-size:34px;
  font-weight:900;
  letter-spacing:-.05em;
  transform:translateY(7px);
}

.fluir-donut small{
  color:#52657d;
  font-weight:760;
  transform:translateY(-15px);
}

.fluir-competence-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.fluir-competence-list div{
  display:grid;
  grid-template-columns:18px 36px 1fr;
  gap:10px;
  align-items:center;
}

.fluir-competence-list i{
  width:14px;
  height:14px;
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(0,0,0,.04);
}

.fluir-competence-list i.ok{background:var(--fluir-green);}
.fluir-competence-list i.warn{background:#ffad21;}
.fluir-competence-list i.open{background:#68788f;}

.fluir-competence-list strong{
  color:var(--fluir-ink);
  font-size:19px;
}

.fluir-competence-list span{
  color:#52657d;
  font-weight:650;
}

.fluir-detail-button{
  width:max-content;
  margin-left:auto;
}

.fluir-attention-card{
  display:grid;
  grid-template-columns:64px 1fr auto;
  gap:18px;
  align-items:center;
  padding:24px;
  border-radius:22px;
  background:linear-gradient(135deg,#004946,#002f38);
  color:#fff;
  box-shadow:0 20px 44px rgba(0,47,55,.20);
}

.fluir-attention-icon{
  display:inline-flex;
  width:58px;
  height:58px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.11);
  font-size:27px;
}

.fluir-attention-card strong{
  display:block;
  color:#76efad;
  font-size:15px;
  font-weight:650;
  margin-bottom:6px;
}

.fluir-attention-card p{
  margin:0;
  color:rgba(255,255,255,.88);
  line-height:1.5;
}

.fluir-shortcuts{
  padding:22px;
}

.fluir-shortcut-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(140px,1fr));
  gap:14px;
}

.fluir-shortcut{
  --shortcut:var(--fluir-green);
  display:grid;
  grid-template-columns:42px 1fr 18px;
  grid-template-rows:auto auto;
  column-gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid color-mix(in srgb, var(--shortcut) 22%, #dfe9f3);
  border-radius:16px;
  background:linear-gradient(135deg,#fff 0%,color-mix(in srgb, var(--shortcut) 8%, #fff) 100%);
  text-decoration:none;
  color:var(--fluir-ink);
  transition:transform .16s ease, box-shadow .16s ease;
}

.fluir-shortcut:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(7,31,61,.08);
}

.fluir-shortcut.green{--shortcut:var(--fluir-green);}
.fluir-shortcut.blue{--shortcut:var(--fluir-blue);}
.fluir-shortcut.purple{--shortcut:var(--fluir-purple);}
.fluir-shortcut.orange{--shortcut:var(--fluir-orange);}
.fluir-shortcut.red{--shortcut:var(--fluir-red);}

.fluir-shortcut span{
  grid-row:1 / 3;
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:color-mix(in srgb, var(--shortcut) 14%, #fff);
  color:var(--shortcut);
  font-size:25px;
  font-weight:900;
}

.fluir-shortcut strong{
  font-size:13px;
  color:var(--shortcut);
}

.fluir-shortcut small{
  color:#52657d;
  font-size:11px;
  margin-top:2px;
}

.fluir-shortcut i{
  grid-row:1 / 3;
  color:var(--shortcut);
  font-style:normal;
  font-weight:900;
}

@media (max-width:1280px){
  .fluir-shortcut-grid{grid-template-columns:repeat(3,minmax(160px,1fr));}
  .fluir-dashboard-grid{grid-template-columns:1fr;}
}

@media (max-width:1100px){
  .fluir-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:900px){
  body.fluir-layout-body .app-shell{
    display:block;
  }

  body.fluir-layout-body .app-sidebar,
  body.fluir-layout-body .sidebar.app-sidebar,
  body.fluir-layout-body .sidebar{
    position:relative;
    width:100%;
    height:auto;
    min-height:0;
    padding:16px;
  }

  body.fluir-layout-body .desktop-sidebar-inner{
    display:none;
  }

  body.fluir-layout-body .mobile-shellbar{
    display:block;
  }

  body.fluir-layout-body .app-content,
  body.fluir-layout-body .content{
    margin-left:0;
    width:100%;
    padding:18px;
  }

  body.fluir-layout-body .mobile-menu-nav{
    display:flex;
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
  }
}

@media (max-width:760px){
  .fluir-hero,
  .fluir-chart-footer,
  .fluir-attention-card{
    grid-template-columns:1fr;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .fluir-top-actions{
    justify-content:flex-start;
  }

  .fluir-metric-grid,
  .fluir-shortcut-grid{
    grid-template-columns:1fr;
  }

  .fluir-competence-body{
    grid-template-columns:1fr;
    justify-items:center;
  }
}

/* Alpha 150 - refinamento de leveza e iconografia Fluir */
body.fluir-layout-body{
  font-family:Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.fluir-svg{
  width:20px;
  height:20px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.fluir-layout-body .menu-nav .mi{
  background:rgba(255,255,255,.105);
  color:rgba(255,255,255,.92);
}

body.fluir-layout-body .menu-nav .mi .fluir-svg{
  width:19px;
  height:19px;
  stroke-width:2.25;
}

body.fluir-layout-body .marca-icone.fluir-leaf{
  width:58px;
  height:58px;
  flex-basis:58px;
  border-radius:20px;
}

body.fluir-layout-body .marca-titulo strong,
body.fluir-layout-body .mobile-brand strong{
  font-size:32px;
  letter-spacing:-.055em;
}

.fluir-top-actions{
  gap:14px;
}

.fluir-year-pill,
.fluir-icon-button,
.fluir-avatar{
  min-height:58px;
  border-radius:17px;
  box-shadow:0 14px 32px rgba(7,31,61,.055);
}

.fluir-year-pill{
  gap:12px;
  padding:0 20px;
  color:#1d304b;
  font-weight:740;
}

.fluir-year-pill .fluir-svg{
  width:21px;
  height:21px;
  color:#64748b;
}

.fluir-icon-button{
  position:relative;
  width:58px;
  color:#1d304b;
}

.fluir-icon-button .fluir-svg{
  width:23px;
  height:23px;
  stroke-width:1.9;
}

.fluir-icon-button.has-dot::after{
  content:"";
  position:absolute;
  top:14px;
  right:14px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--fluir-green);
  box-shadow:0 0 0 3px #fff;
}

.fluir-avatar{
  width:58px;
  font-size:16px;
}

.fluir-hero h1{
  font-size:clamp(33px,3.45vw,45px);
  font-weight:880;
}

.fluir-hero p{
  font-size:17px;
  color:#53647d;
}

.fluir-private-alert{
  min-height:66px;
  border-color:#b9dfd4;
  background:rgba(248,255,252,.78);
}

.fluir-alert-icon{
  border-radius:16px;
}

.fluir-alert-icon .fluir-svg{
  width:20px;
  height:20px;
  stroke-width:2.35;
}

.fluir-alert-close{
  margin-left:auto;
  color:#52627a;
  opacity:.9;
}

.fluir-alert-close .fluir-svg{
  width:19px;
  height:19px;
}

body.fluir-layout-body .fluir-metric-card{
  --metric:#008565;
  --metric-soft:#effbf6;
  min-height:176px;
  padding:24px 25px 22px;
  border-radius:22px;
  border-color:color-mix(in srgb, var(--metric) 16%, #dfe9f3);
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--metric) 16%, transparent), transparent 22%),
    linear-gradient(145deg,#ffffff 0%,var(--metric-soft) 160%);
  box-shadow:0 17px 42px rgba(7,31,61,.065);
}

body.fluir-layout-body .fluir-metric-card.green{--metric:var(--fluir-green);--metric-soft:#f0fbf7;}
body.fluir-layout-body .fluir-metric-card.orange{--metric:var(--fluir-orange);--metric-soft:#fff7ec;}
body.fluir-layout-body .fluir-metric-card.blue{--metric:var(--fluir-blue);--metric-soft:#f2f6ff;}
body.fluir-layout-body .fluir-metric-card.red{--metric:var(--fluir-red);--metric-soft:#fff4f5;}

.fluir-metric-card::after{
  right:18px;
  top:28px;
  width:52px;
  height:52px;
  opacity:.12;
}

.fluir-metric-head{
  margin-bottom:11px;
}

.fluir-metric-card label{
  font-size:11px;
  font-weight:850;
  color:#1c3150;
}

.fluir-metric-card strong{
  font-weight:860;
  font-size:clamp(25px,2.15vw,31px);
}

.fluir-metric-icon{
  position:relative;
  z-index:1;
  width:52px;
  height:52px;
  border-radius:17px;
  background:color-mix(in srgb, var(--metric) 13%, #fff);
}

.fluir-metric-icon .fluir-svg{
  width:27px;
  height:27px;
  stroke-width:2.05;
}

.fluir-spark{
  bottom:16px;
  height:38px;
  stroke-width:2.2;
}

.fluir-chart-panel,
.fluir-competence-card,
.fluir-shortcuts{
  border-radius:23px;
  box-shadow:0 18px 45px rgba(7,31,61,.065);
}

.fluir-chart-panel .section-header h2,
.fluir-competence-card .section-header h2,
.fluir-shortcuts h2{
  font-size:24px;
  font-weight:650;
}

.fluir-comparison{
  padding:18px 20px;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfcff,#f6f8fc);
}

.fluir-revenue-chart{
  height:315px;
}

.fluir-revenue-chart .bar{
  border-radius:11px 11px 4px 4px;
}

.fluir-revenue-chart .bar.current{
  background:linear-gradient(180deg,#0a956f,#006d58);
}

.fluir-revenue-chart .bar.previous{
  background:#cfeee4;
}

.fluir-donut{
  background:conic-gradient(var(--fluir-green) var(--value), #ffb22b 0 78%, #dfe4ec 0);
  box-shadow:inset 0 0 0 1px rgba(7,31,61,.03);
}

.fluir-attention-card{
  border-radius:22px;
  background:
    radial-gradient(circle at 4% 50%, rgba(0,185,130,.18), transparent 18%),
    linear-gradient(135deg,#004946,#002d35);
}

.fluir-attention-icon .fluir-svg{
  width:28px;
  height:28px;
  color:#ffc83d;
  fill:none;
}

.fluir-shortcuts{
  padding:24px;
}

.fluir-shortcut{
  min-height:70px;
  grid-template-columns:48px 1fr 20px;
  padding:13px 14px;
  border-radius:15px;
  background:linear-gradient(135deg,#fff 0%,color-mix(in srgb, var(--shortcut) 6%, #fff) 100%);
}

.fluir-shortcut span{
  width:48px;
  height:48px;
  border-radius:16px;
  background:color-mix(in srgb, var(--shortcut) 12%, #fff);
}

.fluir-shortcut span .fluir-svg{
  width:26px;
  height:26px;
  stroke-width:2.2;
}

.fluir-shortcut strong{
  font-size:12px;
  font-weight:650;
}

.fluir-shortcut small{
  font-size:11px;
  color:#53647d;
}

.fluir-shortcut i{
  display:flex;
  justify-content:flex-end;
}

.fluir-shortcut i .fluir-svg{
  width:18px;
  height:18px;
  stroke-width:2.2;
}

/* Alpha 151 - auditoria global de consistencia Fluir */
body.fluir-layout-body .menu-titulo{
  display:none;
}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav{
  margin-top:26px;
}

body.fluir-layout-body .page-header,
body.fluir-layout-body .top,
body.fluir-layout-body .overview-header,
body.fluir-layout-body .sheet-page-header{
  padding:22px 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(0,133,101,.08), transparent 24%),
    rgba(255,255,255,.92);
}

body.fluir-layout-body .page-header .sub,
body.fluir-layout-body .top .sub,
body.fluir-layout-body .overview-header p,
body.fluir-layout-body .sheet-page-header p{
  color:#5b6b82;
  font-size:14px;
}

body.fluir-layout-body .notice.demo,
body.fluir-layout-body .demo-file,
body.fluir-layout-body .csv-note,
body.fluir-layout-body .process-note,
body.fluir-layout-body .fiscal-parser-note{
  border:1px solid #bfe5d8;
  background:linear-gradient(135deg,#f7fffb,#f2fbf8);
  color:#284e48;
  border-radius:17px;
  box-shadow:0 10px 28px rgba(0,80,64,.045);
}

body.fluir-layout-body .warning-banner,
body.fluir-layout-body .priority,
body.fluir-layout-body .csv-note{
  border-color:#f2d4a3;
  background:linear-gradient(135deg,#fffaf2,#fff7eb);
  color:#8a4d00;
}

body.fluir-layout-body .notice.success{
  border:1px solid #bfe5d8;
  background:#effbf6;
  color:var(--fluir-green);
}

body.fluir-layout-body .notice.error{
  border:1px solid #ffd2d7;
  background:#fff4f5;
  color:#b91c2b;
}

body.fluir-layout-body .filters,
body.fluir-layout-body .export-filter,
body.fluir-layout-body .month-selector,
body.fluir-layout-body .import-actions,
body.fluir-layout-body .inline-actions,
body.fluir-layout-body .fiscal-form-actions,
body.fluir-layout-body .receipt-primary-actions{
  border-color:#e2ecf4;
  background:rgba(255,255,255,.74);
  border-radius:18px;
}

body.fluir-layout-body input:focus,
body.fluir-layout-body select:focus,
body.fluir-layout-body textarea:focus{
  outline:0;
  border-color:#8edac4;
  box-shadow:0 0 0 4px rgba(0,133,101,.12);
}

body.fluir-layout-body .receipt-stat,
body.fluir-layout-body .operation-card,
body.fluir-layout-body .queue-card,
body.fluir-layout-body .summary-card,
body.fluir-layout-body .modal-kpi,
body.fluir-layout-body .receipt-preview-grid div,
body.fluir-layout-body .relationship-card,
body.fluir-layout-body .clean-person-row,
body.fluir-layout-body .fiscal-mini-check,
body.fluir-layout-body .schema-row,
body.fluir-layout-body .monthly-summary-panel,
body.fluir-layout-body .monthly-list-card{
  border-color:#dfe9f3;
  background:
    radial-gradient(circle at 98% 0%, rgba(0,133,101,.055), transparent 24%),
    #fff;
  border-radius:18px;
  box-shadow:0 12px 32px rgba(7,31,61,.05);
}

body.fluir-layout-body .receipt-stat.blue,
body.fluir-layout-body .stat.blue,
body.fluir-layout-body .summary-card.blue{
  background:linear-gradient(145deg,#fff,#f1fbf7);
}

body.fluir-layout-body .receipt-stat.green,
body.fluir-layout-body .stat.green,
body.fluir-layout-body .summary-card.green{
  background:linear-gradient(145deg,#fff,#effbf6);
}

body.fluir-layout-body .receipt-stat.orange,
body.fluir-layout-body .stat.orange,
body.fluir-layout-body .summary-card.orange{
  background:linear-gradient(145deg,#fff,#fff7ed);
}

body.fluir-layout-body .receipt-stat.red,
body.fluir-layout-body .stat.red,
body.fluir-layout-body .summary-card.red{
  background:linear-gradient(145deg,#fff,#fff4f5);
}

body.fluir-layout-body .receipt-stat label,
body.fluir-layout-body .summary-card label,
body.fluir-layout-body .modal-kpi label,
body.fluir-layout-body .receipt-preview-grid label,
body.fluir-layout-body .fiscal-mini-check label{
  color:#64748b;
  letter-spacing:.07em;
  font-weight:850;
}

body.fluir-layout-body .receipt-stat strong,
body.fluir-layout-body .summary-card strong,
body.fluir-layout-body .modal-kpi strong,
body.fluir-layout-body .receipt-preview-grid strong{
  color:var(--fluir-ink);
  letter-spacing:-.035em;
}

body.fluir-layout-body .operational-table,
body.fluir-layout-body .table-wrap,
body.fluir-layout-body .preview-table,
body.fluir-layout-body .fiscal-preview-scroll,
body.fluir-layout-body .history-table{
  border-color:#dfe9f3;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 32px rgba(7,31,61,.045);
}

body.fluir-layout-body th,
body.fluir-layout-body .operational-table th,
body.fluir-layout-body .table-wrap th{
  background:#f7fbfa;
  color:#63748a;
  letter-spacing:.07em;
  font-weight:850;
}

body.fluir-layout-body td{
  border-top-color:#edf2f7;
}

body.fluir-layout-body .status,
body.fluir-layout-body .tag,
body.fluir-layout-body .pill,
body.fluir-layout-body .priority{
  border-radius:999px;
  font-weight:850;
}

body.fluir-layout-body .fiscal-intro,
body.fluir-layout-body .receipt-preview,
body.fluir-layout-body .universal-preview,
body.fluir-layout-body .import-routing-card{
  border-color:#ccebdd;
  background:linear-gradient(135deg,#f7fffb,#f2fbf8);
  border-radius:22px;
  box-shadow:0 14px 34px rgba(0,80,64,.055);
}

body.fluir-layout-body .fiscal-intro h2,
body.fluir-layout-body .panel-head h2,
body.fluir-layout-body .section-header h2,
body.fluir-layout-body .overview-panel-title h2,
body.fluir-layout-body .list-card-head h2{
  color:var(--fluir-ink);
  letter-spacing:-.025em;
}

body.fluir-layout-body .modal-backdrop{
  background:rgba(7,31,61,.50);
  backdrop-filter:blur(4px);
}

body.fluir-layout-body .modal-card{
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  box-shadow:0 34px 95px rgba(7,31,61,.28);
}

/* Alpha 160 — fila de ações agrupada por pessoa */
body.fluir-layout-body .pending-people-panel{
  padding:24px;
}

body.fluir-layout-body .pending-people-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

body.fluir-layout-body .pending-person-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid #e3ebf2;
  border-radius:16px;
  background:linear-gradient(135deg,#fff 0%,#fbfefd 100%);
  box-shadow:0 8px 20px rgba(16,49,80,.035);
}

body.fluir-layout-body .pending-person-trigger{
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

body.fluir-layout-body .pending-person-trigger:hover strong,
body.fluir-layout-body .pending-person-trigger:focus-visible strong{
  color:var(--fluir-brand,#08745b);
}

body.fluir-layout-body .pending-person-trigger:focus-visible{
  outline:2px solid rgba(8,116,91,.28);
  outline-offset:5px;
  border-radius:8px;
}

body.fluir-layout-body .pending-person-copy,
body.fluir-layout-body .pending-person-summary{
  display:grid;
  gap:4px;
  min-width:0;
}

body.fluir-layout-body .pending-person-copy strong{
  overflow-wrap:anywhere;
  color:var(--fluir-ink,#142b49);
  font-size:15px;
  font-weight:650;
  line-height:1.3;
}

body.fluir-layout-body .pending-person-copy small,
body.fluir-layout-body .pending-person-summary{
  color:#66778f;
  font-size:12px;
  line-height:1.35;
}

body.fluir-layout-body .pending-person-summary{
  text-align:right;
  white-space:nowrap;
}

body.fluir-layout-body .pending-count{
  color:#a65816;
  font-weight:650;
}

body.fluir-layout-body .pending-total{
  color:var(--fluir-ink,#142b49);
  font-size:13px;
  font-weight:650;
}

body.fluir-layout-body .pending-area-chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

body.fluir-layout-body .pending-area-chip{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}

body.fluir-layout-body .pending-area-chip.payment{background:#edf6ff;color:#236a9c}
body.fluir-layout-body .pending-area-chip.receipt{background:#fef4e8;color:#aa611c}
body.fluir-layout-body .pending-area-chip.expense{background:#f2f4f7;color:#59697d}

body.fluir-layout-body .pending-empty{
  display:grid;
  gap:5px;
  padding:26px;
  border:1px dashed #ccdae5;
  border-radius:16px;
  color:#62738a;
  text-align:center;
}

body.fluir-layout-body .pending-empty strong{color:var(--fluir-ink,#142b49);font-weight:650}

body.fluir-layout-body .pending-person-modal-card{width:min(760px,100%)}

body.fluir-layout-body .pending-modal-items{display:grid;gap:10px}

body.fluir-layout-body .pending-modal-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px;
  border:1px solid #e3ebf2;
  border-radius:15px;
  background:#fcfefd;
}

body.fluir-layout-body .pending-modal-item > div{display:grid;gap:4px;min-width:0}
body.fluir-layout-body .pending-modal-item strong{color:var(--fluir-ink,#142b49);font-size:13px;font-weight:650}
body.fluir-layout-body .pending-modal-item span{color:#62738a;font-size:12px;line-height:1.4}
body.fluir-layout-body .pending-modal-item small{color:#53657d;font-size:12px;font-weight:600}

@media (max-width:700px){
  body.fluir-layout-body .pending-people-panel{padding:18px}
  body.fluir-layout-body .pending-person-row{grid-template-columns:1fr;gap:11px;padding:14px}
  body.fluir-layout-body .pending-person-trigger{align-items:flex-start;gap:12px}
  body.fluir-layout-body .pending-area-chips{justify-content:flex-start}
  body.fluir-layout-body .pending-modal-item{align-items:flex-start;flex-direction:column}
  body.fluir-layout-body .pending-modal-item .action-button{width:100%;justify-content:center}
}

body.fluir-layout-body .close-button{
  border-radius:16px;
  color:#52657d;
  font-size:22px;
}

body.fluir-layout-body .personal-page .overview-header{
  background:
    radial-gradient(circle at 92% 10%, rgba(0,133,101,.10), transparent 28%),
    linear-gradient(135deg,#fff 0%,#f7fffb 100%);
  border-color:#ccebdd;
}

body.fluir-layout-body .personal-page .overview-header::before{
  background:linear-gradient(180deg,var(--fluir-green),var(--fluir-green-2));
}

body.fluir-layout-body .personal-page .overview-kpi{
  border-color:#dfe9f3;
  box-shadow:0 14px 34px rgba(7,31,61,.055);
}

body.fluir-layout-body .personal-page .overview-kpi.blue{
  --kpi-color:var(--fluir-green);
  --kpi-soft:#effbf6;
}

body.fluir-auth-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(0,185,130,.16), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0,133,101,.13), transparent 26%),
    linear-gradient(135deg,#f8fbfd,#eef6f4);
}

body.fluir-auth-body .auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}

body.fluir-auth-body .auth .card{
  width:min(470px, calc(100vw - 32px));
  border:1px solid #dfe9f3;
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 28px 80px rgba(7,31,61,.12);
}

.fluir-auth-logo{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  color:var(--fluir-ink);
  font-size:34px;
  font-weight:900;
  letter-spacing:-.05em;
  margin-bottom:20px;
}

.fluir-auth-logo .fluir-leaf{
  margin-bottom:4px;
}

.fluir-auth-logo small{
  max-width:330px;
  color:#5b6b82;
  font-size:14px;
  font-weight:650;
  line-height:1.45;
  letter-spacing:0;
}

body.fluir-auth-body .auth h2{
  color:var(--fluir-ink);
  letter-spacing:-.035em;
}

body.fluir-auth-body .lead,
body.fluir-auth-body .footer-note{
  color:#5b6b82;
}

/* Alpha 152 - ajustes confirmados pela auditoria visual no navegador */
body.fluir-layout-body .fluir-metric-card{
  min-height:190px;
  padding-bottom:58px;
}

body.fluir-layout-body .fluir-spark{
  height:28px;
  bottom:5px;
  opacity:.82;
}

body.fluir-layout-body .summary-grid.fiscal-month-summary{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

body.fluir-layout-body .fiscal-month-toolbar .export-filter{
  flex:0 0 auto;
  flex-wrap:nowrap;
  align-items:center;
}

body.fluir-layout-body .fiscal-month-toolbar .export-filter .button{
  width:auto;
  white-space:nowrap;
}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav{
  scrollbar-width:none;
}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav::-webkit-scrollbar{
  width:0;
  height:0;
}

@media (min-width:981px) and (max-width:1120px){
  body.fluir-layout-body .fluir-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (min-width:981px) and (max-height:900px){
  body.fluir-layout-body .app-sidebar{
    padding:22px;
  }

  body.fluir-layout-body .marca{
    margin-bottom:16px;
  }

  body.fluir-layout-body .desktop-sidebar-inner .menu-nav{
    margin-top:8px;
    gap:6px;
  }

  body.fluir-layout-body .menu-nav .menu-item{
    min-height:46px;
    padding:0 12px;
  }

  body.fluir-layout-body .rodape-lateral{
    padding:12px 14px;
    line-height:1.45;
  }
}

@media (max-width:1200px){
  body.fluir-layout-body .summary-grid.fiscal-month-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px){
  body.fluir-layout-body .summary-grid.fiscal-month-summary{
    grid-template-columns:1fr;
  }

  body.fluir-layout-body .fiscal-month-toolbar .export-filter{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }

  body.fluir-layout-body .fiscal-month-toolbar .export-filter .button,
  body.fluir-layout-body .fiscal-month-toolbar .export-filter input{
    width:100%;
  }
}

/* Alpha 153 - painel Fluir com controles e graficos baseados em dados */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.fluir-year-form{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:0 14px 0 18px;
  border:1px solid var(--fluir-line);
  border-radius:17px;
  background:#fff;
  color:#1d304b;
  box-shadow:0 14px 32px rgba(7,31,61,.055);
}

.fluir-year-form .fluir-svg{
  width:21px;
  height:21px;
  color:#64748b;
}

.fluir-year-form select{
  min-height:42px;
  padding:0 30px 0 0;
  border:0;
  background:transparent;
  box-shadow:none;
  color:#1d304b;
  font-weight:740;
  cursor:pointer;
}

.fluir-search-form{
  display:inline-flex;
  align-items:center;
  min-height:58px;
  border:1px solid var(--fluir-line);
  border-radius:17px;
  background:#fff;
  box-shadow:0 14px 32px rgba(7,31,61,.055);
  overflow:hidden;
}

.fluir-search-form input{
  width:190px;
  min-height:56px;
  padding:0 0 0 16px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.fluir-search-form .fluir-icon-button{
  border:0;
  border-left:1px solid var(--fluir-line);
  border-radius:0;
  box-shadow:none;
}

.fluir-spark polyline{
  fill:none;
  stroke:currentColor;
}

body.fluir-layout-body .fluir-metric-card{
  height:176px;
  min-height:176px;
  padding:20px 22px 42px;
}

body.fluir-layout-body .fluir-spark{
  height:22px;
  bottom:7px;
  opacity:.9;
}

.fluir-donut{
  background:conic-gradient(var(--fluir-green) 0 var(--closed, 0%), #ffb22b var(--closed, 0%) var(--attention, 0%), #dfe4ec var(--attention, 0%) 100%);
}

body.fluir-dark{
  --fluir-ink:#edfdf7;
  --fluir-text:#d9eee9;
  --fluir-muted:#98b2ad;
  --fluir-line:rgba(255,255,255,.12);
  --fluir-soft:#0b2d31;
  background:linear-gradient(180deg,#092a30 0%,#061f25 100%);
}

body.fluir-dark .app-content,
body.fluir-dark .content{
  background:transparent;
}

body.fluir-dark .fluir-hero h1,
body.fluir-dark .fluir-chart-panel .section-header h2,
body.fluir-dark .fluir-competence-card .section-header h2,
body.fluir-dark .fluir-shortcuts h2{
  color:#f2fff9;
}

body.fluir-dark .card,
body.fluir-dark .fluir-year-form,
body.fluir-dark .fluir-search-form,
body.fluir-dark .fluir-icon-button{
  background:rgba(8,43,47,.78);
  color:#f2fff9;
  border-color:rgba(255,255,255,.12);
}

body.fluir-dark .fluir-search-form input,
body.fluir-dark .fluir-year-form select{
  color:#f2fff9;
}

body.fluir-dark .fluir-donut::after{
  background:#0b2b30;
}

@media (max-width:760px){
  .fluir-search-form{
    width:100%;
  }

  .fluir-search-form input{
    flex:1;
    width:auto;
  }
}

/* Alpha 154 - fidelidade visual Fluir verificada no navegador com rolagem completa */
body.fluir-layout-body .fluir-top-actions{
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
}

body.fluir-layout-body .fluir-year-form{
  flex:0 0 auto;
}

body.fluir-layout-body .fluir-search-form{
  flex:0 1 210px;
}

body.fluir-layout-body .fluir-search-form input{
  width:150px;
}

body.fluir-layout-body .fluir-icon-button,
body.fluir-layout-body .fluir-avatar{
  flex:0 0 58px;
}

body.fluir-layout-body .fluir-shortcuts{
  padding:24px;
  overflow:hidden;
}

body.fluir-layout-body .fluir-shortcut-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:14px;
}

body.fluir-layout-body .fluir-shortcut{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 20px;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:12px;
  row-gap:2px;
  min-height:72px;
  padding:13px 14px;
}

body.fluir-layout-body .fluir-shortcut > span{
  grid-column:1;
  grid-row:1 / 3;
  width:48px;
  height:48px;
}

body.fluir-layout-body .fluir-shortcut > strong{
  grid-column:2;
  grid-row:1;
  min-width:0;
  align-self:end;
  line-height:1.18;
  white-space:normal;
}

body.fluir-layout-body .fluir-shortcut > small{
  grid-column:2;
  grid-row:2;
  min-width:0;
  align-self:start;
  line-height:1.25;
  white-space:normal;
}

body.fluir-layout-body .fluir-shortcut > i{
  grid-column:3;
  grid-row:1 / 3;
  align-self:center;
  justify-self:end;
  width:20px;
}

@media (min-width:1420px){
  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(6,minmax(170px,1fr));
    gap:12px;
  }

  body.fluir-layout-body .fluir-shortcut{
    grid-template-columns:36px minmax(0,1fr) 12px;
    column-gap:7px;
    min-height:60px;
    padding:10px 10px;
    border-radius:14px;
  }

  body.fluir-layout-body .fluir-shortcut > span{
    width:36px;
    height:36px;
    border-radius:13px;
  }

  body.fluir-layout-body .fluir-shortcut > strong{
    font-size:10px;
    line-height:1.1;
    letter-spacing:-.02em;
    white-space:nowrap;
  }

  body.fluir-layout-body .fluir-shortcut > small{
    font-size:9px;
    line-height:1.1;
    letter-spacing:-.02em;
    white-space:nowrap;
  }

  body.fluir-layout-body .fluir-shortcut > i{
    width:12px;
  }
}

/* Alpha 163 — reconstrução do painel principal na composição Fluir */
body.fluir-layout-body .fluir-dashboard{
  max-width:1180px;
  gap:18px;
}

body.fluir-layout-body .fluir-hero{
  min-height:88px;
  align-items:center;
}

body.fluir-layout-body .fluir-hero h1{
  margin-bottom:5px;
  font-size:clamp(32px,3vw,39px);
  font-weight:650;
  letter-spacing:-.055em;
  line-height:1.05;
}

body.fluir-layout-body .fluir-hero p{
  font-size:15px;
  font-weight:420;
  line-height:1.45;
}

body.fluir-layout-body .fluir-top-actions{
  gap:12px;
}

body.fluir-layout-body .fluir-year-form,
body.fluir-layout-body .fluir-icon-button,
body.fluir-layout-body .fluir-avatar{
  min-height:56px;
  border-radius:15px;
  box-shadow:0 10px 26px rgba(7,31,61,.045);
}

body.fluir-layout-body .fluir-year-form{
  min-width:210px;
  padding:0 15px 0 17px;
}

body.fluir-layout-body .fluir-year-form select{
  font-size:14px;
  font-weight:620;
}

body.fluir-layout-body .fluir-icon-button,
body.fluir-layout-body .fluir-avatar{
  flex-basis:56px;
  width:56px;
}

body.fluir-layout-body .fluir-search-form{
  position:relative;
  flex:0 0 56px;
  width:56px;
  min-height:56px;
  overflow:visible;
  border-radius:15px;
  transition:flex-basis .18s ease, width .18s ease;
}

body.fluir-layout-body .fluir-search-form input{
  display:none;
}

body.fluir-layout-body .fluir-search-form.open{
  flex-basis:244px;
  width:244px;
  overflow:hidden;
}

body.fluir-layout-body .fluir-search-form.open input{
  display:block;
  flex:1 1 auto;
  width:178px;
  min-height:54px;
  font-size:13px;
}

body.fluir-layout-body .fluir-search-form .fluir-icon-button{
  flex:0 0 56px;
  width:56px;
  min-height:54px;
  border:0;
}

body.fluir-layout-body .fluir-profile{
  position:relative;
  flex:0 0 56px;
}

body.fluir-layout-body .fluir-avatar{
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

body.fluir-layout-body .fluir-profile-menu{
  position:absolute;
  z-index:20;
  top:66px;
  right:0;
  width:190px;
  padding:12px;
  border:1px solid var(--fluir-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 38px rgba(7,31,61,.14);
}

body.fluir-layout-body .fluir-profile-menu strong{
  display:block;
  overflow:hidden;
  color:var(--fluir-ink);
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.fluir-layout-body .fluir-profile-menu a{
  display:block;
  margin-top:9px;
  color:var(--fluir-green);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}

body.fluir-layout-body .fluir-private-alert{
  min-height:58px;
  padding:11px 16px;
  border-radius:14px;
  box-shadow:none;
}

body.fluir-layout-body .fluir-private-alert > div{
  font-size:13px;
  font-weight:430;
}

body.fluir-layout-body .fluir-alert-icon{
  width:32px;
  height:32px;
  flex-basis:32px;
  border-radius:11px;
}

body.fluir-layout-body .fluir-alert-close{
  display:inline-flex;
  width:32px;
  height:32px;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  padding:0;
  border:0;
  background:transparent;
  color:#5e7088;
  cursor:pointer;
}

body.fluir-layout-body .fluir-metric-grid{
  gap:16px;
}

body.fluir-layout-body .fluir-metric-card{
  height:172px;
  min-height:172px;
  padding:18px 20px 38px;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(7,31,61,.045);
}

body.fluir-layout-body .fluir-metric-head{
  margin-bottom:10px;
}

body.fluir-layout-body .fluir-metric-card label{
  padding-top:1px;
  font-size:9px;
  font-weight:670;
  letter-spacing:.04em;
}

body.fluir-layout-body .fluir-metric-card strong{
  margin-bottom:9px;
  font-size:clamp(23px,2vw,28px);
  font-weight:650;
  letter-spacing:-.05em;
}

body.fluir-layout-body .fluir-metric-card small{
  font-size:12px;
  font-weight:520;
}

body.fluir-layout-body .fluir-metric-icon{
  width:48px;
  height:48px;
  flex-basis:48px;
  border-radius:15px;
}

body.fluir-layout-body .fluir-metric-icon .fluir-svg{
  width:25px;
  height:25px;
  stroke-width:2.05;
}

body.fluir-layout-body .fluir-spark{
  left:20px;
  right:20px;
  bottom:10px;
  width:calc(100% - 40px);
  height:22px;
  stroke-width:2;
}

@media (min-width:981px){
  body.fluir-layout-body .fluir-dashboard-grid{
    grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);
    gap:20px;
  }
}

body.fluir-layout-body .fluir-chart-panel,
body.fluir-layout-body .fluir-competence-card,
body.fluir-layout-body .fluir-shortcuts{
  border-radius:20px;
  box-shadow:0 14px 34px rgba(7,31,61,.055);
}

body.fluir-layout-body .fluir-chart-panel{
  min-height:438px;
  height:438px;
  padding:22px;
}

body.fluir-layout-body .fluir-chart-panel .section-header h2,
body.fluir-layout-body .fluir-competence-card .section-header h2,
body.fluir-layout-body .fluir-shortcuts h2{
  font-size:20px;
  font-weight:650;
  letter-spacing:-.042em;
}

body.fluir-layout-body .fluir-chart-panel .section-header p,
body.fluir-layout-body .fluir-competence-card .section-header p,
body.fluir-layout-body .fluir-shortcuts .section-header p{
  margin-top:3px;
  font-size:12px;
}

body.fluir-layout-body .fluir-segmented{
  padding:3px;
}

body.fluir-layout-body .fluir-segmented span{
  min-width:62px;
  padding:8px 12px;
  font-size:13px;
  font-weight:650;
}

body.fluir-layout-body .fluir-comparison{
  min-height:60px;
  margin:12px 0 7px;
  padding:11px 13px;
  border-radius:13px;
  font-size:12px;
  line-height:1.42;
}

body.fluir-layout-body .fluir-revenue-chart{
  height:224px;
  padding-top:2px;
  gap:7px;
}

body.fluir-layout-body .fluir-revenue-chart .month-group{
  min-width:0;
}

body.fluir-layout-body .fluir-revenue-chart .bar-label{
  height:22px;
  margin-bottom:3px;
  font-size:10px;
}

body.fluir-layout-body .fluir-revenue-chart .bar-area{
  height:154px;
  gap:5px;
}

body.fluir-layout-body .fluir-revenue-chart .bar{
  width:min(25px,42%);
  border-radius:7px 7px 2px 2px;
}

body.fluir-layout-body .fluir-revenue-chart .month-name{
  padding-top:6px;
  font-size:11px;
}

body.fluir-layout-body .fluir-chart-footer{
  margin-top:5px;
}

body.fluir-layout-body .fluir-chart-footer .legend{
  font-size:11px;
}

body.fluir-layout-body .fluir-chart-footer .button{
  min-height:38px;
  padding:0 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:650;
}

body.fluir-layout-body .fluir-side-stack{
  gap:18px;
}

body.fluir-layout-body .fluir-competence-card{
  min-height:304px;
  height:304px;
  padding:22px;
}

body.fluir-layout-body .fluir-competence-body{
  grid-template-columns:170px minmax(0,1fr);
  gap:18px;
  padding:10px 0 13px;
}

body.fluir-layout-body .fluir-donut{
  width:142px;
  height:142px;
  box-shadow:none;
}

body.fluir-layout-body .fluir-donut::after{
  inset:17px;
}

body.fluir-layout-body .fluir-donut span{
  font-size:29px;
  font-weight:700;
}

body.fluir-layout-body .fluir-donut small{
  font-size:11px;
  font-weight:520;
}

body.fluir-layout-body .fluir-competence-list{
  gap:10px;
}

body.fluir-layout-body .fluir-competence-list div{
  grid-template-columns:16px 30px 1fr;
  gap:8px;
}

body.fluir-layout-body .fluir-competence-list i{
  width:11px;
  height:11px;
}

body.fluir-layout-body .fluir-competence-list strong{
  font-size:16px;
  font-weight:700;
}

body.fluir-layout-body .fluir-competence-list span{
  font-size:12px;
  font-weight:570;
}

body.fluir-layout-body .fluir-detail-button{
  min-height:38px;
  padding:0 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:650;
}

body.fluir-layout-body .fluir-attention-card{
  min-height:112px;
  padding:17px 19px;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:13px;
  border-radius:18px;
  box-shadow:0 16px 34px rgba(0,47,55,.15);
}

body.fluir-layout-body .fluir-attention-icon{
  width:46px;
  height:46px;
  font-size:22px;
}

body.fluir-layout-body .fluir-attention-card strong{
  font-size:13px;
  font-weight:620;
}

body.fluir-layout-body .fluir-attention-card p{
  font-size:12px;
  line-height:1.42;
}

body.fluir-layout-body .fluir-attention-card .button{
  min-height:40px;
  padding:0 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:650;
}

body.fluir-layout-body .fluir-shortcuts{
  padding:20px;
}

body.fluir-layout-body .fluir-shortcut-grid{
  gap:12px;
}

body.fluir-layout-body .fluir-shortcut{
  min-height:62px;
  padding:9px 10px;
  border-radius:13px;
}

body.fluir-layout-body .fluir-shortcut > span{
  width:38px;
  height:38px;
  border-radius:13px;
}

body.fluir-layout-body .fluir-shortcut > strong{
  font-size:10px;
  font-weight:650;
}

body.fluir-layout-body .fluir-shortcut > small{
  font-size:9px;
}

@media (max-width:980px){
  body.fluir-layout-body .fluir-hero{min-height:0;align-items:flex-start}
  body.fluir-layout-body .fluir-dashboard-grid{grid-template-columns:1fr}
}

@media (max-width:760px){
  body.fluir-layout-body .fluir-search-form,
  body.fluir-layout-body .fluir-search-form.open{flex:1 1 100%;width:100%}
  body.fluir-layout-body .fluir-search-form input,
  body.fluir-layout-body .fluir-search-form.open input{display:block;flex:1 1 auto}
  body.fluir-layout-body .fluir-chart-panel,
  body.fluir-layout-body .fluir-competence-card{height:auto;min-height:0}
}

/* Alpha 162 — barra lateral fiel à identidade Fluir */
body.fluir-layout-body .app-sidebar,
body.fluir-layout-body .sidebar.app-sidebar{
  padding:20px 18px 18px;
  background:
    radial-gradient(circle at 88% 88%,rgba(71,213,139,.15),transparent 24%),
    linear-gradient(165deg,#003137 0%,#003f42 47%,#002e35 100%);
}

body.fluir-layout-body .desktop-sidebar-inner{
  overflow:hidden;
}

body.fluir-layout-body .marca{
  margin-bottom:14px;
}

body.fluir-layout-body .marca-topo{
  gap:7px;
  margin-bottom:0;
}

body.fluir-layout-body .marca-icone.fluir-leaf{
  width:37px;
  height:34px;
  flex-basis:37px;
}

body.fluir-layout-body .marca-icone.fluir-leaf span,
body.fluir-layout-body .marca-icone.fluir-leaf::before{
  width:32px;
  height:20px;
  left:0;
  top:6px;
  box-shadow:0 8px 16px rgba(21,208,123,.25);
}

body.fluir-layout-body .marca-icone.fluir-leaf::after{
  width:25px;
  left:4px;
  top:17px;
}

body.fluir-layout-body .marca-titulo strong{
  font-size:23px;
  font-weight:700;
  letter-spacing:-.052em;
}

body.fluir-layout-body .marca-titulo small{
  font-size:8px;
  font-weight:500;
  letter-spacing:0;
}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav{
  margin-top:12px;
  gap:5px;
  position:relative;
  z-index:2;
}

body.fluir-layout-body .menu-nav .menu-item{
  min-height:37px;
  padding:0 9px;
  border-radius:10px;
  column-gap:9px;
  color:rgba(245,255,252,.86);
  font-size:11px;
  font-weight:550;
}

body.fluir-layout-body .menu-nav .mi{
  width:23px;
  height:23px;
  flex:0 0 23px;
  border-radius:8px;
  background:rgba(255,255,255,.065);
}

body.fluir-layout-body .menu-nav .mi .fluir-svg{
  width:14px;
  height:14px;
  stroke-width:2.15;
}

body.fluir-layout-body .menu-nav .menu-item.ativo,
body.fluir-layout-body .menu-nav .menu-item.active{
  background:linear-gradient(100deg,#007a63 0%,#006052 100%);
  box-shadow:0 8px 20px rgba(0,42,39,.2);
}

body.fluir-layout-body .menu-nav .menu-item.ativo::before,
body.fluir-layout-body .menu-nav .menu-item.active::before{
  display:block;
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:2px;
  border-radius:0 4px 4px 0;
  background:#44e2b9;
}

body.fluir-layout-body .menu-nav .menu-item.ativo .mi,
body.fluir-layout-body .menu-nav .menu-item.active .mi{
  background:rgba(255,255,255,.12);
}

body.fluir-layout-body .menu-notification{
  width:7px;
  height:7px;
  margin-left:1px;
  border-radius:999px;
  background:#ff4b3e;
  box-shadow:0 0 0 2px #003b3e;
}

body.fluir-layout-body .rodape-lateral{
  position:relative;
  z-index:2;
  margin:0 0 112px;
  padding:14px 13px;
  border-color:rgba(124,240,166,.17);
  border-radius:13px;
  background:rgba(0,49,51,.30);
  color:rgba(238,252,248,.72);
  font-size:9px;
  line-height:1.55;
}

body.fluir-layout-body .rodape-lateral p{
  margin:0;
}

body.fluir-layout-body .rodape-lateral .seguranca{
  display:flex;
  align-items:center;
  gap:6px;
  color:#73eaa1;
  font-size:10px;
  font-weight:600;
  margin-bottom:7px;
}

body.fluir-layout-body .sidebar-lock{
  width:13px;
  height:13px;
  stroke-width:2.2;
}

body.fluir-layout-body .sidebar-botanical{
  position:absolute;
  z-index:0;
  left:-46px;
  right:-32px;
  bottom:-18px;
  height:150px;
  overflow:hidden;
  pointer-events:none;
}

body.fluir-layout-body .botanical-wave{
  position:absolute;
  width:290px;
  height:105px;
  border-top:4px solid rgba(0,164,123,.45);
  border-radius:50%;
  transform:rotate(-9deg);
}

body.fluir-layout-body .botanical-wave.wave-one{left:-56px;bottom:25px}
body.fluir-layout-body .botanical-wave.wave-two{left:7px;bottom:-2px;border-color:rgba(0,122,105,.42);transform:rotate(8deg)}

body.fluir-layout-body .botanical-leaf{
  position:absolute;
  right:-14px;
  bottom:-16px;
  width:122px;
  height:128px;
  border-radius:78% 13% 78% 22%;
  background:linear-gradient(135deg,rgba(118,238,152,.86),rgba(16,142,100,.28));
  transform:rotate(-23deg);
  box-shadow:-18px -12px 36px rgba(45,211,128,.18);
}

body.fluir-layout-body .botanical-leaf::after{
  content:"";
  position:absolute;
  left:16px;
  top:53px;
  width:118px;
  height:2px;
  background:rgba(229,255,240,.4);
  transform:rotate(-32deg);
}

@media (max-width:900px){
  body.fluir-layout-body .sidebar-botanical{display:none}
  body.fluir-layout-body .rodape-lateral{margin-bottom:0}
  body.fluir-layout-body .menu-notification{display:none}
}

/* Alpha 158 final - ritmo visual e leitura dos indicadores Fluir */
body.fluir-layout-body .fluir-metric-head{
  gap:8px;
}

body.fluir-layout-body .fluir-metric-head label{
  flex:1 1 auto;
  min-width:0;
  padding-top:2px;
  font-size:10px;
  letter-spacing:.045em;
  line-height:1.2;
  white-space:nowrap;
}

body.fluir-layout-body .fluir-spark polyline{
  stroke-width:2.35;
}

body.fluir-layout-body .fluir-metric-card.green .fluir-spark polyline{
  stroke:#07875f;
  filter:drop-shadow(0 3px 4px rgba(7,135,95,.18));
}

body.fluir-layout-body .fluir-metric-card.orange .fluir-spark polyline{
  stroke:#f07b13;
  filter:drop-shadow(0 3px 4px rgba(240,123,19,.18));
}

body.fluir-layout-body .fluir-metric-card.blue .fluir-spark polyline{
  stroke:#2c5df4;
  filter:drop-shadow(0 3px 4px rgba(44,93,244,.18));
}

body.fluir-layout-body .fluir-metric-card.red .fluir-spark polyline{
  stroke:#ee3851;
  filter:drop-shadow(0 3px 4px rgba(238,56,81,.18));
}

/* Alpha 158 - ritmo visual e leitura dos indicadores Fluir */
body.fluir-layout-body .fluir-metric-head{
  gap:8px;
}

body.fluir-layout-body .fluir-metric-head label{
  flex:1 1 auto;
  min-width:0;
  padding-top:2px;
  font-size:10px;
  letter-spacing:.045em;
  line-height:1.2;
  white-space:nowrap;
}

body.fluir-layout-body .fluir-spark polyline{
  stroke-width:2.35;
}

body.fluir-layout-body .fluir-metric-card.green .fluir-spark polyline{
  stroke:#07875f;
  filter:drop-shadow(0 3px 4px rgba(7,135,95,.18));
}

body.fluir-layout-body .fluir-metric-card.orange .fluir-spark polyline{
  stroke:#f07b13;
  filter:drop-shadow(0 3px 4px rgba(240,123,19,.18));
}

body.fluir-layout-body .fluir-metric-card.blue .fluir-spark polyline{
  stroke:#2c5df4;
  filter:drop-shadow(0 3px 4px rgba(44,93,244,.18));
}

body.fluir-layout-body .fluir-metric-card.red .fluir-spark polyline{
  stroke:#ee3851;
  filter:drop-shadow(0 3px 4px rgba(238,56,81,.18));
}

@media (min-width:981px) and (max-width:1419px){
  body.fluir-layout-body .fluir-dashboard-grid{
    grid-template-columns:1fr;
  }

  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1179px){
  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  }
}

@media (max-width:900px){
  body.fluir-layout-body .fluir-top-actions{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  body.fluir-layout-body .fluir-search-form{
    flex:1 1 260px;
  }

  body.fluir-layout-body .fluir-search-form input{
    width:auto;
  }
}

/* Alpha 155 - fidelidade de composicao ao painel Fluir ideal */
body.fluir-layout-body .app-shell{
  grid-template-columns:272px minmax(0,1fr);
}

body.fluir-layout-body .app-sidebar,
body.fluir-layout-body .sidebar.app-sidebar,
body.fluir-layout-body .sidebar{
  width:272px;
  padding:26px 20px;
}

@media (min-width:901px){
  body.fluir-layout-body .app-content,
  body.fluir-layout-body .content{
    margin-left:272px;
    width:calc(100% - 272px);
    padding:28px 30px 32px;
  }
}

body.fluir-layout-body .fluir-dashboard{
  gap:20px;
  max-width:1220px;
  margin:0 auto;
}

body.fluir-layout-body .fluir-hero{
  min-height:118px;
  align-items:flex-start;
  padding:0;
}

body.fluir-layout-body .fluir-hero h1{
  font-size:clamp(32px,3.1vw,42px);
  font-weight:700;
  letter-spacing:-.04em;
}

body.fluir-layout-body .fluir-private-alert{
  min-height:58px;
  padding:13px 18px;
}

body.fluir-layout-body .fluir-metric-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

body.fluir-layout-body .fluir-metric-card{
  height:172px;
  min-height:172px;
  padding:20px 22px 48px;
  border-radius:22px;
}

body.fluir-layout-body .fluir-metric-card strong{
  font-size:clamp(23px,2.1vw,30px);
}

body.fluir-layout-body .fluir-spark{
  height:34px;
  bottom:12px;
}

body.fluir-layout-body .fluir-dashboard-grid{
  grid-template-columns:minmax(0,1.04fr) minmax(330px,.96fr);
  gap:22px;
  align-items:start;
}

body.fluir-layout-body .fluir-chart-panel{
  min-height:414px;
}

body.fluir-layout-body .fluir-revenue-chart{
  height:260px;
}

body.fluir-layout-body .fluir-revenue-chart .bar-area{
  height:184px;
}

body.fluir-layout-body .fluir-comparison{
  padding:14px 16px;
}

body.fluir-layout-body .fluir-chart-panel,
body.fluir-layout-body .fluir-competence-card,
body.fluir-layout-body .fluir-shortcuts{
  border-radius:24px;
}

body.fluir-layout-body .fluir-competence-card{
  min-height:274px;
  padding:24px;
}

body.fluir-layout-body .fluir-competence-body{
  grid-template-columns:minmax(142px,178px) minmax(0,1fr);
  gap:22px;
  padding:14px 0 16px;
}

body.fluir-layout-body .fluir-donut{
  width:150px;
  height:150px;
  margin:auto;
  background:
    conic-gradient(
      var(--fluir-green) 0 var(--closed, 0%),
      #ffb22b var(--closed, 0%) var(--attention, 0%),
      #e3e8ef var(--attention, 0%) 100%
    );
  box-shadow:0 18px 34px rgba(7,31,61,.08);
}

body.fluir-layout-body .fluir-donut::after{
  inset:19px;
}

body.fluir-layout-body .fluir-donut span{
  font-size:31px;
}

body.fluir-layout-body .fluir-competence-list{
  gap:12px;
}

body.fluir-layout-body .fluir-competence-list div{
  grid-template-columns:18px 34px 1fr;
}

body.fluir-layout-body .fluir-detail-button{
  margin-top:0;
}

body.fluir-layout-body .fluir-attention-card{
  min-height:104px;
  grid-template-columns:58px 1fr auto;
  padding:20px 22px;
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(18,180,126,.20), transparent 30%),
    linear-gradient(135deg,#064a47 0%,#002f38 100%);
}

body.fluir-layout-body .fluir-attention-icon{
  width:54px;
  height:54px;
}

body.fluir-layout-body .fluir-shortcuts{
  padding:22px 24px;
}

@media (min-width:1180px){
  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(6,minmax(144px,1fr));
  }

  body.fluir-layout-body .fluir-shortcut{
    grid-template-columns:44px minmax(0,1fr) 18px;
    min-height:66px;
    padding:11px 12px;
    column-gap:10px;
  }

  body.fluir-layout-body .fluir-shortcut > span{
    width:44px;
    height:44px;
    border-radius:15px;
  }
}

@media (min-width:981px) and (max-width:1320px){
  body.fluir-layout-body .fluir-dashboard-grid{
    grid-template-columns:minmax(0,1.04fr) minmax(330px,.96fr);
  }

  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (min-width:901px) and (max-width:1180px){
  body.fluir-layout-body .fluir-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.fluir-layout-body .fluir-dashboard-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  body.fluir-layout-body .fluir-dashboard-grid,
  body.fluir-layout-body .fluir-competence-body,
  body.fluir-layout-body .fluir-attention-card{
    grid-template-columns:1fr;
  }
}

/* Alpha 156 - microfidelidade visual: marca, sidebar e cards financeiros */
body.fluir-layout-body .marca{
  margin-bottom:28px;
}

body.fluir-layout-body .marca-topo{
  gap:9px;
  margin-bottom:12px;
}

body.fluir-layout-body .marca-icone.fluir-leaf{
  width:44px;
  height:42px;
  flex:0 0 44px;
  flex-basis:44px;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.fluir-layout-body .marca-icone.fluir-leaf span,
body.fluir-layout-body .marca-icone.fluir-leaf::before{
  width:38px;
  height:25px;
  left:1px;
  top:8px;
  border-radius:82% 12% 82% 18%;
  background:linear-gradient(135deg,#9cf6b8 0%,#36d383 48%,#008765 100%);
  box-shadow:0 12px 23px rgba(21,208,123,.28);
}

body.fluir-layout-body .marca-icone.fluir-leaf::after{
  width:31px;
  left:6px;
  top:21px;
  background:rgba(255,255,255,.46);
}

body.fluir-layout-body .marca-titulo strong,
body.fluir-layout-body .mobile-brand strong{
  font-size:28px;
  line-height:.98;
  letter-spacing:-.055em;
}

body.fluir-layout-body .marca-titulo small{
  font-size:10px;
  color:rgba(255,255,255,.78);
  letter-spacing:-.01em;
}

body.fluir-layout-body .marca > small{
  color:rgba(255,255,255,.74);
  font-size:11px;
  margin-top:8px;
}

body.fluir-layout-body .marca-badge{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.15);
  color:#eafff5;
}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav{
  margin-top:24px;
  gap:6px;
}

body.fluir-layout-body .menu-nav .menu-item{
  min-height:41px;
  padding:0 11px;
  border-radius:12px;
  font-size:13px;
  font-weight:550;
  color:rgba(237,251,247,.80);
}

body.fluir-layout-body .menu-nav .mi{
  width:28px;
  height:28px;
  border-radius:10px;
  background:rgba(255,255,255,.075);
}

body.fluir-layout-body .menu-nav .mi .fluir-svg{
  width:17px;
  height:17px;
  stroke-width:2.15;
}

body.fluir-layout-body .menu-nav .menu-item.ativo,
body.fluir-layout-body .menu-nav .menu-item.active{
  background:linear-gradient(100deg,rgba(27,185,128,.82),rgba(0,104,84,.62));
  color:#fff;
  box-shadow:0 14px 30px rgba(0,82,72,.22);
}

body.fluir-layout-body .menu-nav .menu-item.ativo::before,
body.fluir-layout-body .menu-nav .menu-item.active::before{
  display:none;
}

body.fluir-layout-body .menu-nav .menu-item.ativo .mi,
body.fluir-layout-body .menu-nav .menu-item.active .mi{
  background:rgba(255,255,255,.18);
  color:#fff;
}

body.fluir-layout-body .rodape-lateral{
  margin-top:24px;
  padding:16px 15px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:15px;
  background:rgba(255,255,255,.035);
  color:rgba(238,252,248,.75);
  font-size:11px;
  line-height:1.55;
}

body.fluir-layout-body .rodape-lateral .seguranca{
  color:#7cf0a6;
  font-size:12px;
  margin-bottom:8px;
}

body.fluir-layout-body .fluir-metric-card{
  height:190px;
  min-height:190px;
  padding:24px 24px 56px;
  border-radius:20px;
  box-shadow:0 16px 38px rgba(7,31,61,.055);
}

body.fluir-layout-body .fluir-metric-card::after{
  display:none;
}

body.fluir-layout-body .fluir-metric-head{
  margin-bottom:12px;
  gap:8px;
}

body.fluir-layout-body .fluir-metric-card label{
  flex:1 1 auto;
  min-width:0;
  padding-top:2px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.045em;
  line-height:1.2;
  white-space:nowrap;
  color:#193452;
}

body.fluir-layout-body .fluir-metric-card strong{
  font-size:clamp(25px,2.2vw,32px);
  font-weight:700;
  line-height:1.05;
  margin-bottom:12px;
}

body.fluir-layout-body .fluir-metric-card small{
  font-size:13px;
  font-weight:540;
}

body.fluir-layout-body .fluir-metric-icon{
  width:55px;
  height:55px;
  flex:0 0 55px;
  border-radius:18px;
  background:color-mix(in srgb, var(--metric) 15%, #f7fffb);
}

body.fluir-layout-body .fluir-metric-icon .fluir-svg{
  width:29px;
  height:29px;
  stroke-width:2.18;
}

body.fluir-layout-body .fluir-spark{
  left:24px;
  right:24px;
  bottom:5px;
  width:calc(100% - 48px);
  height:23px;
  color:var(--metric);
  stroke-width:2.2;
  opacity:.98;
  filter:drop-shadow(0 3px 4px color-mix(in srgb, var(--metric) 22%, transparent));
}

@media (min-width:901px){
  body.fluir-layout-body .fluir-metric-grid{
    gap:16px;
  }
}

/* Alpha 162 final — prevalece sobre os ajustes históricos da sidebar */
body.fluir-layout-body .app-sidebar,
body.fluir-layout-body .sidebar.app-sidebar{
  padding:20px 18px 18px;
  background:
    radial-gradient(circle at 88% 88%,rgba(71,213,139,.15),transparent 24%),
    linear-gradient(165deg,#003137 0%,#003f42 47%,#002e35 100%);
}

body.fluir-layout-body .marca{margin-bottom:14px}
body.fluir-layout-body .marca-topo{gap:7px;margin-bottom:0}
body.fluir-layout-body .marca-icone.fluir-leaf{width:37px;height:34px;flex-basis:37px}
body.fluir-layout-body .marca-icone.fluir-leaf span,
body.fluir-layout-body .marca-icone.fluir-leaf::before{width:32px;height:20px;left:0;top:6px}
body.fluir-layout-body .marca-icone.fluir-leaf::after{width:25px;left:4px;top:17px}
body.fluir-layout-body .marca-titulo strong{font-size:23px;font-weight:700;letter-spacing:-.052em}
body.fluir-layout-body .marca-titulo small{font-size:8px;font-weight:500;letter-spacing:0}

body.fluir-layout-body .desktop-sidebar-inner .menu-nav{margin-top:12px;gap:5px;position:relative;z-index:2}
body.fluir-layout-body .menu-nav .menu-item{min-height:37px;padding:0 9px;border-radius:10px;column-gap:9px;color:rgba(245,255,252,.86);font-size:11px;font-weight:550}
body.fluir-layout-body .menu-nav .mi{width:23px;height:23px;flex:0 0 23px;border-radius:8px;background:rgba(255,255,255,.065)}
body.fluir-layout-body .menu-nav .mi .fluir-svg{width:14px;height:14px;stroke-width:2.15}
body.fluir-layout-body .menu-nav .menu-item.ativo,
body.fluir-layout-body .menu-nav .menu-item.active{background:linear-gradient(100deg,#007a63 0%,#006052 100%);box-shadow:0 8px 20px rgba(0,42,39,.2)}
body.fluir-layout-body .menu-nav .menu-item.ativo::before,
body.fluir-layout-body .menu-nav .menu-item.active::before{display:block;content:"";position:absolute;left:0;top:8px;bottom:8px;width:2px;border-radius:0 4px 4px 0;background:#44e2b9}
body.fluir-layout-body .menu-nav .menu-item.ativo .mi,
body.fluir-layout-body .menu-nav .menu-item.active .mi{background:rgba(255,255,255,.12)}

body.fluir-layout-body .rodape-lateral{position:relative;z-index:2;margin:0 0 112px;padding:14px 13px;border-color:rgba(124,240,166,.17);border-radius:13px;background:rgba(0,49,51,.30);color:rgba(238,252,248,.72);font-size:9px;line-height:1.55}
body.fluir-layout-body .rodape-lateral .seguranca{display:flex;align-items:center;gap:6px;color:#73eaa1;font-size:10px;font-weight:600;margin-bottom:7px}

@media (max-width:900px){
  body.fluir-layout-body .rodape-lateral{margin-bottom:0}
  body.fluir-layout-body .sidebar-botanical,
  body.fluir-layout-body .menu-notification{display:none}
}

/* Alpha 157 - atalhos rápidos fiéis ao layout Fluir em desktop amplo */
@media (min-width:1420px){
  body.fluir-layout-body .fluir-shortcut-grid{
    grid-template-columns:repeat(6,minmax(170px,1fr));
    gap:12px;
  }

  body.fluir-layout-body .fluir-shortcut{
    grid-template-columns:36px minmax(0,1fr) 12px;
    column-gap:7px;
    min-height:60px;
    padding:10px 10px;
    border-radius:14px;
  }

  body.fluir-layout-body .fluir-shortcut > span{
    width:36px;
    height:36px;
    border-radius:13px;
  }

  body.fluir-layout-body .fluir-shortcut > strong{
    font-size:10px;
    line-height:1.1;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:visible;
  }

  body.fluir-layout-body .fluir-shortcut > small{
    font-size:9px;
    line-height:1.1;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:visible;
  }

  body.fluir-layout-body .fluir-shortcut > i{
    width:12px;
  }
}

/* Alpha 163 final — painel com ritmo, peso tipográfico e proporções da referência */
body.fluir-layout-body .fluir-dashboard{max-width:1180px;gap:18px}
body.fluir-layout-body .fluir-hero{min-height:88px;align-items:center}
body.fluir-layout-body .fluir-hero h1{margin-bottom:5px;font-size:clamp(32px,3vw,39px);font-weight:650;letter-spacing:-.055em;line-height:1.05}
body.fluir-layout-body .fluir-hero p{font-size:15px;font-weight:420;line-height:1.45}
body.fluir-layout-body .fluir-top-actions{gap:12px}
body.fluir-layout-body .fluir-year-form,body.fluir-layout-body .fluir-icon-button,body.fluir-layout-body .fluir-avatar{min-height:56px;border-radius:15px;box-shadow:0 10px 26px rgba(7,31,61,.045)}
body.fluir-layout-body .fluir-year-form{min-width:210px;padding:0 15px 0 17px}
body.fluir-layout-body .fluir-year-form select{font-size:14px;font-weight:620}
body.fluir-layout-body .fluir-icon-button,body.fluir-layout-body .fluir-avatar{flex-basis:56px;width:56px}
body.fluir-layout-body .fluir-search-form{position:relative;flex:0 0 56px;width:56px;min-height:56px;overflow:visible;border-radius:15px;transition:flex-basis .18s ease,width .18s ease}
body.fluir-layout-body .fluir-search-form input{display:none}
body.fluir-layout-body .fluir-search-form.open{flex-basis:244px;width:244px;overflow:hidden}
body.fluir-layout-body .fluir-search-form.open input{display:block;flex:1 1 auto;width:178px;min-height:54px;font-size:13px}
body.fluir-layout-body .fluir-search-form .fluir-icon-button{flex:0 0 56px;width:56px;min-height:54px;border:0}
body.fluir-layout-body .fluir-profile{position:relative;flex:0 0 56px}
body.fluir-layout-body .fluir-avatar{cursor:pointer;font-size:14px;font-weight:700}
body.fluir-layout-body .fluir-profile-menu{position:absolute;z-index:20;top:66px;right:0;width:190px;padding:12px;border:1px solid var(--fluir-line);border-radius:14px;background:#fff;box-shadow:0 18px 38px rgba(7,31,61,.14)}
body.fluir-layout-body .fluir-profile-menu strong{display:block;overflow:hidden;color:var(--fluir-ink);font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
body.fluir-layout-body .fluir-profile-menu a{display:block;margin-top:9px;color:var(--fluir-green);font-size:12px;font-weight:700;text-decoration:none}
body.fluir-layout-body .fluir-private-alert{min-height:58px;padding:11px 16px;border-radius:14px;box-shadow:none}
body.fluir-layout-body .fluir-private-alert > div{font-size:13px;font-weight:430}
body.fluir-layout-body .fluir-alert-icon{width:32px;height:32px;flex-basis:32px;border-radius:11px}
body.fluir-layout-body .fluir-alert-close{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;margin-left:auto;padding:0;border:0;background:transparent;color:#5e7088;cursor:pointer}
body.fluir-layout-body .fluir-metric-grid{gap:16px}

/* Alpha 165 - auditoria funcional, modais consistentes e responsividade operacional */
body.fluir-layout-body .modal-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

body.fluir-layout-body .modal-heading h2{
  margin:4px 0 6px;
}

body.fluir-layout-body .modal-heading p{
  margin:0;
  color:var(--muted);
}

body.fluir-layout-body .modal-close{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--fluir-ink);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

body.fluir-layout-body .modal-form,
body.fluir-layout-body .compact-entry-form{
  display:grid;
  gap:14px;
}

body.fluir-layout-body .modal-form label,
body.fluir-layout-body .compact-entry-form label{
  display:grid;
  gap:7px;
  min-width:0;
  color:var(--fluir-ink);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}

body.fluir-layout-body .modal-form textarea,
body.fluir-layout-body .compact-entry-form textarea,
body.fluir-layout-body .compact-entry-form input,
body.fluir-layout-body .compact-entry-form select{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  text-transform:none;
  font-weight:600;
}

body.fluir-layout-body .expense-review-modal{
  width:min(760px,100%);
}

body.fluir-layout-body .expense-review-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

@media (max-width:760px){
  body.fluir-layout-body .mobile-menu-nav{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    max-height:min(62vh,520px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:2px;
  }

  body.fluir-layout-body .fluir-metric-grid{
    grid-template-columns:1fr;
  }

  body.fluir-layout-body .fluir-metric-card{
    width:100%;
    min-width:0;
    height:150px;
    min-height:150px;
  }

  body.fluir-layout-body .filters.compact input{
    flex:0 1 auto;
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
  }

  body.fluir-layout-body .expense-review-form{
    grid-template-columns:1fr;
  }

  body.fluir-layout-body .mobile-card-table{
    overflow:visible;
    border:0;
    box-shadow:none;
    background:transparent;
  }

  body.fluir-layout-body .mobile-card-table table{
    display:block;
    width:100%;
    min-width:0;
  }

  body.fluir-layout-body .mobile-card-table thead{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }

  body.fluir-layout-body .mobile-card-table tbody{
    display:grid;
    gap:12px;
    width:100%;
  }

  body.fluir-layout-body .mobile-card-table tbody tr{
    display:block;
    width:100%;
    overflow:hidden;
    border:1px solid #dfe9f3;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px rgba(7,31,61,.04);
  }

  body.fluir-layout-body .mobile-card-table tbody td{
    display:grid;
    grid-template-columns:minmax(96px,.42fr) minmax(0,1fr);
    gap:12px;
    align-items:start;
    width:100%;
    min-width:0;
    padding:11px 13px;
    border:0;
    border-top:1px solid #edf2f7;
    white-space:normal;
    box-sizing:border-box;
  }

  body.fluir-layout-body .mobile-card-table tbody td:first-child{
    border-top:0;
  }

  body.fluir-layout-body .mobile-card-table tbody td::before{
    content:attr(data-label);
    color:#64748b;
    font-size:10px;
    font-weight:850;
    line-height:1.3;
    text-transform:uppercase;
  }

  body.fluir-layout-body .mobile-card-table tbody td[data-label=""]::before,
  body.fluir-layout-body .mobile-card-table tbody td.empty-row::before{
    display:none;
  }

  body.fluir-layout-body .mobile-card-table tbody td.empty-row{
    display:block;
  }

  body.fluir-layout-body .mobile-card-table .row-classify,
  body.fluir-layout-body .mobile-card-table .inline-actions{
    width:100%;
    min-width:0;
  }

  body.fluir-layout-body .modal-heading{
    gap:12px;
  }

  body.fluir-layout-body .modal-card{
    max-height:calc(100vh - 24px);
    overflow-y:auto;
  }
}
body.fluir-layout-body .fluir-metric-card{height:172px;min-height:172px;padding:18px 20px 38px;border-radius:18px;box-shadow:0 12px 28px rgba(7,31,61,.045)}
body.fluir-layout-body .fluir-metric-head{margin-bottom:10px}
body.fluir-layout-body .fluir-metric-card label{padding-top:1px;font-size:9px;font-weight:670;letter-spacing:.04em}
body.fluir-layout-body .fluir-metric-card strong{margin-bottom:9px;font-size:clamp(23px,2vw,28px);font-weight:650;letter-spacing:-.05em}
body.fluir-layout-body .fluir-metric-card small{font-size:12px;font-weight:520}
body.fluir-layout-body .fluir-metric-icon{width:48px;height:48px;flex-basis:48px;border-radius:15px}
body.fluir-layout-body .fluir-metric-icon .fluir-svg{width:25px;height:25px;stroke-width:2.05}
body.fluir-layout-body .fluir-spark{left:20px;right:20px;bottom:10px;width:calc(100% - 40px);height:22px;stroke-width:2}
@media (min-width:981px){body.fluir-layout-body .fluir-dashboard-grid{grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);gap:20px}}
body.fluir-layout-body .fluir-chart-panel,body.fluir-layout-body .fluir-competence-card,body.fluir-layout-body .fluir-shortcuts{border-radius:20px;box-shadow:0 14px 34px rgba(7,31,61,.055)}
body.fluir-layout-body .fluir-chart-panel{min-height:438px;height:438px;padding:22px}
body.fluir-layout-body .fluir-chart-panel .section-header h2,body.fluir-layout-body .fluir-competence-card .section-header h2,body.fluir-layout-body .fluir-shortcuts h2{font-size:20px;font-weight:650;letter-spacing:-.042em}
body.fluir-layout-body .fluir-chart-panel .section-header p,body.fluir-layout-body .fluir-competence-card .section-header p,body.fluir-layout-body .fluir-shortcuts .section-header p{margin-top:3px;font-size:12px}
body.fluir-layout-body .fluir-segmented{padding:3px}
body.fluir-layout-body .fluir-segmented span{min-width:62px;padding:8px 12px;font-size:13px;font-weight:650}
body.fluir-layout-body .fluir-comparison{min-height:60px;margin:12px 0 7px;padding:11px 13px;border-radius:13px;font-size:12px;line-height:1.42}
body.fluir-layout-body .fluir-revenue-chart{height:224px;padding-top:2px;gap:7px}
body.fluir-layout-body .fluir-revenue-chart .month-group{min-width:0}
body.fluir-layout-body .fluir-revenue-chart .bar-label{height:22px;margin-bottom:3px;font-size:10px}
body.fluir-layout-body .fluir-revenue-chart .bar-area{height:154px;gap:5px}
body.fluir-layout-body .fluir-revenue-chart .bar{width:min(25px,42%);border-radius:7px 7px 2px 2px}
body.fluir-layout-body .fluir-revenue-chart .month-name{padding-top:6px;font-size:11px}
body.fluir-layout-body .fluir-chart-footer{margin-top:5px}
body.fluir-layout-body .fluir-chart-footer .legend{font-size:11px}
body.fluir-layout-body .fluir-chart-footer .button,body.fluir-layout-body .fluir-detail-button{min-height:38px;padding:0 13px;border-radius:11px;font-size:11px;font-weight:650}
body.fluir-layout-body .fluir-side-stack{gap:18px}
body.fluir-layout-body .fluir-competence-card{min-height:304px;height:304px;padding:22px}
body.fluir-layout-body .fluir-competence-body{grid-template-columns:170px minmax(0,1fr);gap:18px;padding:10px 0 13px}
body.fluir-layout-body .fluir-donut{width:142px;height:142px;box-shadow:none}
body.fluir-layout-body .fluir-donut::after{inset:17px}
body.fluir-layout-body .fluir-donut span{font-size:29px;font-weight:700}
body.fluir-layout-body .fluir-donut small{font-size:11px;font-weight:520}
body.fluir-layout-body .fluir-competence-list{gap:10px}
body.fluir-layout-body .fluir-competence-list div{grid-template-columns:16px 30px 1fr;gap:8px}
body.fluir-layout-body .fluir-competence-list i{width:11px;height:11px}
body.fluir-layout-body .fluir-competence-list strong{font-size:16px;font-weight:700}
body.fluir-layout-body .fluir-competence-list span{font-size:12px;font-weight:570}
body.fluir-layout-body .fluir-attention-card{min-height:112px;padding:17px 19px;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;border-radius:18px;box-shadow:0 16px 34px rgba(0,47,55,.15)}
body.fluir-layout-body .fluir-attention-icon{width:46px;height:46px;font-size:22px}
body.fluir-layout-body .fluir-attention-card strong{font-size:13px;font-weight:620}
body.fluir-layout-body .fluir-attention-card p{font-size:12px;line-height:1.42}
body.fluir-layout-body .fluir-attention-card .button{min-height:40px;padding:0 13px;border-radius:11px;font-size:11px;font-weight:650}
body.fluir-layout-body .fluir-shortcuts{padding:20px}
body.fluir-layout-body .fluir-shortcut-grid{gap:12px}
body.fluir-layout-body .fluir-shortcut{min-height:62px;padding:9px 10px;border-radius:13px}
body.fluir-layout-body .fluir-shortcut > span{width:38px;height:38px;border-radius:13px}
body.fluir-layout-body .fluir-shortcut > strong{font-size:10px;font-weight:650}
body.fluir-layout-body .fluir-shortcut > small{font-size:9px}
@media (max-width:980px){body.fluir-layout-body .fluir-hero{min-height:0;align-items:flex-start}body.fluir-layout-body .fluir-dashboard-grid{grid-template-columns:1fr}}
@media (max-width:760px){body.fluir-layout-body .fluir-search-form,body.fluir-layout-body .fluir-search-form.open{flex:1 1 100%;width:100%}body.fluir-layout-body .fluir-search-form input,body.fluir-layout-body .fluir-search-form.open input{display:block;flex:1 1 auto}body.fluir-layout-body .fluir-chart-panel,body.fluir-layout-body .fluir-competence-card{height:auto;min-height:0}}

/* Alpha 164 — entrada Fluir: mesma leveza e confiança do painel */
body.fluir-auth-body{color:var(--fluir-text,#142846);background:radial-gradient(circle at 15% 15%,rgba(0,185,130,.14),transparent 28%),radial-gradient(circle at 90% 10%,rgba(0,133,101,.11),transparent 26%),linear-gradient(135deg,#f8fbfd,#eef6f4);font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif}
body.fluir-auth-body .auth-wrap{padding:28px}
body.fluir-auth-body .auth .card{width:min(454px,calc(100vw - 32px));padding:34px;border-color:#dce9e8;border-radius:24px;background:rgba(255,255,255,.95);box-shadow:0 24px 68px rgba(7,31,61,.10)}
body.fluir-auth-body .fluir-auth-logo{gap:8px;margin-bottom:28px;font-size:inherit;font-weight:inherit;letter-spacing:normal}
body.fluir-auth-body .fluir-auth-logo-title{display:flex;align-items:center;gap:10px;color:var(--fluir-ink,#071f3d)}
body.fluir-auth-body .fluir-auth-logo-title .fluir-leaf{width:44px;height:39px;flex-basis:44px;margin:0}
body.fluir-auth-body .fluir-auth-logo-title strong{font-size:29px;font-weight:700;letter-spacing:-.055em}
body.fluir-auth-body .fluir-auth-logo small{max-width:300px;color:#63728a;font-size:13px;font-weight:460;line-height:1.45}
body.fluir-auth-body .auth h2{margin:0 0 6px;color:var(--fluir-ink,#071f3d);font-size:28px;font-weight:650;letter-spacing:-.045em}
body.fluir-auth-body .auth .lead{margin:0 0 25px;color:#64748b;font-size:13px;line-height:1.5}
body.fluir-auth-body .auth .field{margin-bottom:17px}
body.fluir-auth-body .auth .field label{display:block;margin:0 0 7px;color:#51657d;font-size:10px;font-weight:700;letter-spacing:.065em}
body.fluir-auth-body .auth .field input{display:block;width:100%;min-height:50px;padding:0 14px;border:1px solid #d9e4ed;border-radius:12px;background:#fbfdff;color:var(--fluir-ink,#071f3d);font-family:inherit;font-size:14px;font-weight:450;outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
body.fluir-auth-body .auth .field input:focus{border-color:#00a878;background:#fff;box-shadow:0 0 0 4px rgba(0,168,120,.12)}
body.fluir-auth-body .fluir-auth-password{position:relative}
body.fluir-auth-body .fluir-auth-password input{padding-right:50px}
body.fluir-auth-body .fluir-password-toggle{position:absolute;top:50%;right:7px;display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;transform:translateY(-50%);border:0;border-radius:9px;background:transparent;color:#688097;cursor:pointer}
body.fluir-auth-body .fluir-password-toggle:hover{background:#edf7f4;color:var(--fluir-green,#008565)}
body.fluir-auth-body .fluir-password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.fluir-auth-body .auth .button.full{min-height:50px;margin-top:7px;border-radius:12px;background:linear-gradient(135deg,#008565,#006e59);box-shadow:0 12px 24px rgba(0,112,89,.20);font-family:inherit;font-size:13px;font-weight:650;letter-spacing:-.01em;transition:transform .16s ease,box-shadow .16s ease}
body.fluir-auth-body .auth .button.full:hover{transform:translateY(-1px);box-shadow:0 15px 28px rgba(0,112,89,.25)}
body.fluir-auth-body .auth .footer-note{display:flex;gap:7px;align-items:flex-start;margin:22px 0 0;padding-top:17px;border-top:1px solid #edf1f5;color:#718198;font-size:11px;line-height:1.5}
body.fluir-auth-body .auth .footer-note::before{content:"";width:8px;height:8px;flex:0 0 8px;margin-top:4px;border-radius:50%;background:#00a878;box-shadow:0 0 0 4px rgba(0,168,120,.12)}
body.fluir-auth-body .auth .notice.error{margin:0 0 18px;border:1px solid #ffd0d1;background:#fff5f5;color:#b42318;font-size:12px}
@media (max-width:520px){body.fluir-auth-body .auth-wrap{padding:16px}body.fluir-auth-body .auth .card{padding:26px 22px;border-radius:20px}}

/* Alpha 175 - cadastro e verificacao da conta profissional */
body.fluir-auth-body .account-auth-card{width:min(520px,calc(100vw - 32px))}
body.fluir-auth-body .auth .field small{display:block;margin-top:7px;color:#718198;font-size:11px;line-height:1.45}
body.fluir-auth-body .auth .button.full:disabled{cursor:not-allowed;opacity:.48;transform:none;box-shadow:none}
body.fluir-auth-body .auth-links{display:flex;justify-content:space-between;gap:14px;margin-top:18px;font-size:12px}
body.fluir-auth-body .auth-links a,
body.fluir-auth-body .auth-secondary a{color:#00745d;font-weight:650;text-decoration:none}
body.fluir-auth-body .auth-links a:hover,
body.fluir-auth-body .auth-secondary a:hover{text-decoration:underline}
body.fluir-auth-body .auth-secondary{margin:18px 0 0;text-align:center;color:#718198;font-size:12px}
@media (max-width:520px){body.fluir-auth-body .auth-links{align-items:flex-start;flex-direction:column}}

/* Alpha 165 final - regras móveis devem prevalecer sobre os ajustes históricos */
@media (max-width:900px){
  body.fluir-layout-body .app-sidebar,
  body.fluir-layout-body .sidebar.app-sidebar,
  body.fluir-layout-body .sidebar{
    width:100%;
    max-width:none;
    padding:16px;
    box-sizing:border-box;
  }

  body.fluir-layout-body .mobile-shellbar{
    width:100%;
    box-sizing:border-box;
  }
}

@media (max-width:760px){
  body.fluir-layout-body .fluir-metric-card{
    height:150px;
    min-height:150px;
  }
}

/* Alpha 166 - hierarquia operacional e leitura direta */
body.fluir-layout-body{
  background:#f4f7fa;
}

body.fluir-layout-body .shell.app-shell{
  display:block;
}

body.fluir-layout-body .sidebar.app-sidebar{
  width:232px;
  padding:22px 14px 14px;
  position:fixed;
  inset:0 auto 0 0;
  height:100vh;
  background:#063f43;
}

body.fluir-layout-body .desktop-sidebar-inner{
  display:flex;
  min-height:calc(100vh - 36px);
  flex-direction:column;
}

body.fluir-layout-body .sidebar::before,
body.fluir-layout-body .sidebar::after,
body.fluir-layout-body .sidebar-botanical{
  display:none;
}

body.fluir-layout-body .marca{
  margin:0 8px 20px;
}

body.fluir-layout-body .marca-topo{
  gap:10px;
}

body.fluir-layout-body .marca-icone{
  width:34px;
  height:31px;
  flex-basis:34px;
}

body.fluir-layout-body .marca-titulo strong{
  font-size:22px;
}

body.fluir-layout-body .marca-titulo small{
  margin-top:1px;
  font-size:9px;
}

body.fluir-layout-body .menu-nav{
  display:grid;
  gap:3px;
  margin:0;
}

body.fluir-layout-body .menu-section-label{
  display:block;
  margin:14px 10px 5px;
  color:rgba(255,255,255,.48);
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.fluir-layout-body .menu-section-label:first-child{
  margin-top:0;
}

body.fluir-layout-body .menu-item{
  min-height:38px;
  padding:7px 9px;
  border-radius:7px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:600;
}

body.fluir-layout-body .menu-item .mi{
  width:27px;
  height:27px;
  flex-basis:27px;
  border-radius:7px;
  background:rgba(255,255,255,.07);
}

body.fluir-layout-body .menu-item.ativo{
  background:#087c68;
  color:#fff;
  box-shadow:none;
}

body.fluir-layout-body .menu-item.ativo::before{
  display:none;
}

body.fluir-layout-body .sidebar-account{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 30px;
  gap:9px;
  align-items:center;
  margin-top:auto;
  padding:11px 9px;
  border-top:1px solid rgba(255,255,255,.13);
}

body.fluir-layout-body .sidebar-account-avatar{
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:7px;
  background:#0a8f75;
  color:#fff;
  font-size:11px;
  font-weight:800;
}

body.fluir-layout-body .sidebar-account-copy{
  display:grid;
  min-width:0;
}

body.fluir-layout-body .sidebar-account-copy strong,
body.fluir-layout-body .sidebar-account-copy small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.fluir-layout-body .sidebar-account-copy strong{
  color:#fff;
  font-size:11px;
}

body.fluir-layout-body .sidebar-account-copy small{
  color:rgba(255,255,255,.55);
  font-size:9px;
}

body.fluir-layout-body .sidebar-logout,
body.fluir-layout-body .mobile-logout{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.78);
  text-decoration:none;
}

body.fluir-layout-body .logout-form{margin:0;display:inline-flex}
body.fluir-layout-body .logout-form button{font:inherit;border:0;cursor:pointer}

body.fluir-layout-body .sidebar-logout{
  width:30px;
  height:30px;
  border-radius:7px;
}

body.fluir-layout-body .sidebar-logout:hover{
  background:rgba(255,255,255,.1);
  color:#fff;
}

body.fluir-layout-body .sidebar-logout .fluir-svg,
body.fluir-layout-body .mobile-logout .fluir-svg{
  width:17px;
  height:17px;
}

body.fluir-layout-body .content.app-content{
  width:calc(100% - 232px);
  max-width:1480px;
  margin-left:232px;
  padding:24px 30px 44px;
}

body.fluir-layout-body .page-header{
  min-height:0;
  align-items:flex-end;
  margin:0 0 18px;
  padding:0 0 17px;
  border:0;
  border-bottom:1px solid #dce5ec;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.fluir-layout-body .page-header h1{
  margin:2px 0 4px;
  font-size:28px;
  line-height:1.08;
  letter-spacing:0;
}

body.fluir-layout-body .page-header .eyebrow{
  font-size:9px;
  letter-spacing:.08em;
}

body.fluir-layout-body .page-header .sub{
  max-width:680px;
  font-size:12px;
  line-height:1.4;
}

body.fluir-layout-body .page-header .user{
  display:none;
}

body.fluir-layout-body .page-primary-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

body.fluir-layout-body .card,
body.fluir-layout-body .page-panel,
body.fluir-layout-body .receipt-panel,
body.fluir-layout-body .receipt-list-panel,
body.fluir-layout-body .rs-panel,
body.fluir-layout-body .import-card{
  border-color:#dce5ec;
  border-radius:8px;
  box-shadow:0 4px 14px rgba(7,31,61,.035);
}

body.fluir-layout-body .button,
body.fluir-layout-body .action-button,
body.fluir-layout-body .table-action{
  min-height:38px;
  border-radius:7px;
  box-shadow:none;
  font-size:12px;
}

body.fluir-layout-body .notice{
  margin-bottom:14px;
  padding:11px 13px;
  border-radius:7px;
  box-shadow:none;
  font-size:12px;
}

body.fluir-layout-body .panel-head{
  margin-bottom:14px;
}

body.fluir-layout-body .panel-head h2{
  font-size:17px;
  letter-spacing:0;
}

body.fluir-layout-body .panel-head p{
  margin-top:3px;
  font-size:12px;
}

body.fluir-layout-body .filters{
  display:grid;
  grid-template-columns:minmax(220px,1.7fr) minmax(150px,1fr) minmax(140px,1fr) auto auto;
  gap:8px;
  padding:10px;
  border:1px solid #e0e8ef;
  border-radius:8px;
  background:#f8fafc;
}

body.fluir-layout-body .filters.compact{
  grid-template-columns:minmax(220px,1fr) auto auto;
}

body.fluir-layout-body .filters input,
body.fluir-layout-body .filters select{
  width:100%;
  min-width:0;
  min-height:40px;
  border-radius:7px;
}

body.fluir-layout-body .operational-table,
body.fluir-layout-body .table-wrap,
body.fluir-layout-body .preview-table,
body.fluir-layout-body .fiscal-preview-scroll{
  border-radius:8px;
  box-shadow:none;
}

body.fluir-layout-body th{
  padding:10px 11px;
  background:#f5f8fb;
  font-size:9px;
  letter-spacing:.05em;
}

body.fluir-layout-body td{
  padding:11px;
}

body.fluir-layout-body tbody tr:hover td{
  background:#f9fbfc;
}

body.fluir-layout-body .row-metadata{
  color:#7a899d;
}

/* Painel */
body.fluir-layout-body .fluir-dashboard{
  max-width:1240px;
  gap:14px;
}

body.fluir-layout-body .fluir-hero{
  min-height:0;
  margin-bottom:2px;
  padding:0 0 17px;
  border-bottom:1px solid #dce5ec;
}

body.fluir-layout-body .fluir-hero h1{
  margin:0 0 3px;
  font-size:30px;
  line-height:1.08;
  letter-spacing:0;
}

body.fluir-layout-body .fluir-hero p{
  font-size:12px;
}

body.fluir-layout-body .fluir-year-form,
body.fluir-layout-body .fluir-icon-button{
  min-height:42px;
  height:42px;
  border-radius:7px;
  box-shadow:none;
}

body.fluir-layout-body .fluir-year-form{
  min-width:184px;
}

body.fluir-layout-body .fluir-icon-button{
  width:42px;
  flex-basis:42px;
}

body.fluir-layout-body .fluir-search-form{
  width:42px;
  min-height:42px;
  flex-basis:42px;
  border-radius:7px;
}

body.fluir-layout-body .fluir-search-form .fluir-icon-button{
  width:42px;
  min-height:40px;
  flex-basis:42px;
}

body.fluir-layout-body .fluir-private-alert{
  display:none;
}

body.fluir-layout-body .fluir-metric-grid,
body.fluir-layout-body .receipt-stats,
body.fluir-layout-body .operation-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:14px;
}

body.fluir-layout-body .fluir-metric-card,
body.fluir-layout-body .receipt-stat,
body.fluir-layout-body .operation-card{
  min-width:0;
  height:106px;
  min-height:106px;
  padding:14px 15px;
  overflow:hidden;
  border-radius:8px;
  background:#fff;
}

body.fluir-layout-body .fluir-metric-card::after,
body.fluir-layout-body .receipt-stat::after,
body.fluir-layout-body .operation-card::after{
  display:none;
}

body.fluir-layout-body .fluir-metric-card.green,
body.fluir-layout-body .receipt-stat.green,
body.fluir-layout-body .operation-card.soft-green{border-left:3px solid #0a9b7a}
body.fluir-layout-body .fluir-metric-card.blue,
body.fluir-layout-body .receipt-stat.blue,
body.fluir-layout-body .operation-card.soft-blue{border-left:3px solid #3f78c5}
body.fluir-layout-body .fluir-metric-card.orange,
body.fluir-layout-body .receipt-stat.orange,
body.fluir-layout-body .operation-card.soft-orange{border-left:3px solid #d79732}
body.fluir-layout-body .fluir-metric-card.red,
body.fluir-layout-body .receipt-stat.red,
body.fluir-layout-body .operation-card.soft-red{border-left:3px solid #d35f65}

body.fluir-layout-body .fluir-metric-head{
  margin-bottom:7px;
}

body.fluir-layout-body .fluir-metric-card label,
body.fluir-layout-body .receipt-stat label,
body.fluir-layout-body .operation-card label{
  margin:0 0 7px;
  padding:0;
  font-size:8px;
  letter-spacing:.04em;
}

body.fluir-layout-body .fluir-metric-card strong,
body.fluir-layout-body .receipt-stat strong,
body.fluir-layout-body .operation-card strong{
  margin:0 0 4px;
  font-size:21px;
  letter-spacing:0;
}

body.fluir-layout-body .fluir-metric-card small,
body.fluir-layout-body .receipt-stat small,
body.fluir-layout-body .operation-card small{
  font-size:10px;
}

body.fluir-layout-body .fluir-metric-icon{
  width:31px;
  height:31px;
  flex-basis:31px;
  border-radius:7px;
}

body.fluir-layout-body .fluir-metric-icon .fluir-svg{
  width:17px;
  height:17px;
}

body.fluir-layout-body .fluir-spark{
  right:12px;
  bottom:10px;
  left:auto;
  width:70px;
  height:18px;
}

body.fluir-layout-body .fluir-dashboard-grid{
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}

body.fluir-layout-body .fluir-chart-panel{
  width:100%;
  height:364px;
  min-height:364px;
  padding:18px;
  border-radius:8px;
}

body.fluir-layout-body .fluir-chart-panel .section-header h2,
body.fluir-layout-body .fluir-competence-card .section-header h2,
body.fluir-layout-body .fluir-shortcuts h2{
  font-size:17px;
  letter-spacing:0;
}

body.fluir-layout-body .fluir-revenue-chart{
  height:190px;
}

body.fluir-layout-body .fluir-revenue-chart .bar-area{
  height:125px;
}

body.fluir-layout-body .fluir-comparison{
  min-height:44px;
  margin:8px 0 4px;
  padding:9px 11px;
}

body.fluir-layout-body .fluir-side-stack{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:12px;
}

body.fluir-layout-body .fluir-competence-card{
  height:auto;
  min-height:190px;
  padding:17px;
  border-radius:8px;
}

body.fluir-layout-body .fluir-competence-body{
  grid-template-columns:110px minmax(0,1fr);
  gap:14px;
  padding:3px 0 9px;
}

body.fluir-layout-body .fluir-donut{
  width:96px;
  height:96px;
}

body.fluir-layout-body .fluir-donut::after{
  inset:12px;
}

body.fluir-layout-body .fluir-donut span{
  font-size:21px;
}

body.fluir-layout-body .fluir-attention-card{
  min-height:190px;
  align-content:center;
  grid-template-columns:38px minmax(0,1fr);
  padding:17px;
  border-radius:8px;
  background:#064d4d;
  box-shadow:none;
}

body.fluir-layout-body .fluir-attention-icon{
  width:36px;
  height:36px;
}

body.fluir-layout-body .fluir-attention-card .button{
  grid-column:2;
  justify-self:start;
}

body.fluir-layout-body .fluir-shortcuts{
  padding:16px;
  border-radius:8px;
}

body.fluir-layout-body .fluir-shortcut-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

body.fluir-layout-body .fluir-shortcut{
  min-height:58px;
  border-radius:7px;
}

/* Recebimentos */
body.fluir-layout-body .receipt-panel{
  padding:17px;
}

body.fluir-layout-body .receipt-panel .operational-table table{
  min-width:720px;
}

body.fluir-layout-body .receipt-panel .operational-table th:first-child,
body.fluir-layout-body .receipt-panel .operational-table td:first-child{
  width:105px;
}

body.fluir-layout-body .receipt-panel .operational-table th:nth-child(3),
body.fluir-layout-body .receipt-panel .operational-table td:nth-child(3){width:115px}
body.fluir-layout-body .receipt-panel .operational-table th:nth-child(4),
body.fluir-layout-body .receipt-panel .operational-table td:nth-child(4){width:170px}
body.fluir-layout-body .receipt-panel .operational-table th:nth-child(5),
body.fluir-layout-body .receipt-panel .operational-table td:nth-child(5){width:135px}

/* Pacientes */
body.fluir-layout-body .patient-tabs{
  margin:0 0 14px;
  padding:3px;
  border-radius:8px;
  background:#eaf0f4;
}

body.fluir-layout-body .patient-tabs a{
  padding:8px 12px;
  border-radius:6px;
  font-size:11px;
}

body.fluir-layout-body .patients-main{
  padding:17px;
}

body.fluir-layout-body .patient-table table{
  min-width:720px;
}

body.fluir-layout-body .patient-table th:nth-child(2),
body.fluir-layout-body .patient-table td:nth-child(2){width:150px}
body.fluir-layout-body .patient-table th:nth-child(3),
body.fluir-layout-body .patient-table td:nth-child(3){width:180px}
body.fluir-layout-body .patient-table th:nth-child(4),
body.fluir-layout-body .patient-table td:nth-child(4){width:250px}

body.fluir-layout-body .patient-financial-summary,
body.fluir-layout-body .patient-registration-summary{
  display:table-cell;
  vertical-align:top;
}

body.fluir-layout-body .patient-financial-summary > *,
body.fluir-layout-body .patient-registration-summary > *{
  display:block;
  width:max-content;
  max-width:100%;
}

body.fluir-layout-body .patient-financial-summary > * + *,
body.fluir-layout-body .patient-registration-summary > * + *{
  margin-top:4px;
}

body.fluir-layout-body .patient-financial-summary small{
  color:var(--muted);
}

body.fluir-layout-body .patient-registration-summary .tag{
  justify-self:start;
}

body.fluir-layout-body .row-primary-actions{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}

body.fluir-layout-body .row-more{
  position:relative;
  margin-top:7px;
}

body.fluir-layout-body .row-more summary{
  width:max-content;
  color:#60738a;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

body.fluir-layout-body .row-more-menu{
  display:grid;
  gap:7px;
  margin-top:7px;
  padding:9px;
  border:1px solid #dde6ee;
  border-radius:7px;
  background:#f8fafc;
}

body.fluir-layout-body .row-more-menu .row-classify{
  display:grid;
  grid-template-columns:minmax(100px,1fr) auto;
  gap:6px;
}

body.fluir-layout-body .row-more-menu .action-button{
  width:100%;
}

/* Pendências */
body.fluir-layout-body .queue-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-bottom:14px;
}

body.fluir-layout-body .queue-card{
  min-height:82px;
  padding:14px;
  border-radius:8px;
}

body.fluir-layout-body .queue-card h2{
  font-size:13px;
}

body.fluir-layout-body .queue-card strong{
  font-size:22px;
}

body.fluir-layout-body .pending-people-panel{
  padding:17px;
}

body.fluir-layout-body .pending-person-row{
  border-radius:7px;
}

/* Receita Saúde */
body.fluir-layout-body .fiscal-month-toolbar{
  display:grid;
  grid-template-columns:minmax(160px,1fr) auto auto;
  gap:18px;
  align-items:center;
  margin-bottom:12px;
  padding:14px 16px;
  border-radius:8px;
}

body.fluir-layout-body .fiscal-month-toolbar h2{
  margin:0 0 2px;
  font-size:18px;
}

body.fluir-layout-body .fiscal-month-toolbar p{
  margin:0;
  font-size:11px;
}

body.fluir-layout-body .fiscal-month-total{
  display:grid;
  min-width:130px;
  gap:2px;
}

body.fluir-layout-body .fiscal-month-total small{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

body.fluir-layout-body .fiscal-month-total strong{
  color:var(--fluir-ink);
  font-size:18px;
}

body.fluir-layout-body .fiscal-status-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
  gap:5px;
  margin:0 0 12px;
  padding:4px;
  border:1px solid #dce5ec;
  border-radius:8px;
  background:#eaf0f4;
}

body.fluir-layout-body .fiscal-status-tabs a{
  display:flex;
  min-height:42px;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  padding:8px 11px;
  border-radius:6px;
  color:#53677e;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}

body.fluir-layout-body .fiscal-status-tabs a.active{
  background:#fff;
  color:#075f52;
  box-shadow:0 2px 7px rgba(7,31,61,.07);
}

body.fluir-layout-body .fiscal-status-tabs strong{
  display:grid;
  min-width:24px;
  height:24px;
  place-items:center;
  border-radius:6px;
  background:#dfe7ed;
  color:#32475e;
  font-size:11px;
}

body.fluir-layout-body .fiscal-status-tabs a.active strong{
  background:#dff4ed;
  color:#075f52;
}

body.fluir-layout-body .fiscal-month-block{
  padding:17px;
  border-radius:8px;
}

body.fluir-layout-body .fiscal-month-block .fiscal-preview-scroll table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}

body.fluir-layout-body .fiscal-month-block .fiscal-col-date{width:92px}
body.fluir-layout-body .fiscal-month-block .fiscal-col-patient{width:22%}
body.fluir-layout-body .fiscal-month-block .fiscal-col-payer{width:22%}
body.fluir-layout-body .fiscal-month-block .fiscal-col-amount{width:88px}
body.fluir-layout-body .fiscal-month-block .fiscal-col-actions{width:154px}

body.fluir-layout-body .fiscal-month-block .fiscal-col-actions .button{
  width:100%;
  padding-inline:9px;
}

/* Importação e área pessoal seguem a mesma hierarquia operacional. */
body.fluir-layout-body .import-flow-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
  padding:10px 2px 14px;
  border-bottom:1px solid var(--line);
}

body.fluir-layout-body .import-flow-summary > strong{
  color:var(--navy);
  font-size:13px;
}

body.fluir-layout-body .import-flow-summary .universal-flow{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}

body.fluir-layout-body .personal-page-header{
  margin-bottom:16px;
}

body.fluir-layout-body .personal-page-header input[type="month"]{
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-weight:700;
}

body.fluir-layout-body .personal-page .overview-kpis{
  gap:10px;
  margin-bottom:16px;
}

body.fluir-layout-body .personal-page .overview-kpi{
  min-height:108px;
  padding:15px 16px;
  border:1px solid var(--line);
  border-left:3px solid var(--kpi-color);
  border-radius:8px;
  background:#fff;
  box-shadow:0 5px 14px rgba(7,31,61,.035);
}

body.fluir-layout-body .personal-page .overview-kpi.green{--kpi-color:#078c68;--kpi-soft:#e7f7f1}
body.fluir-layout-body .personal-page .overview-kpi.blue{--kpi-color:#2777bd;--kpi-soft:#eaf3fb}
body.fluir-layout-body .personal-page .overview-kpi.orange{--kpi-color:#c37a1c;--kpi-soft:#fff3df}
body.fluir-layout-body .personal-page .overview-kpi.purple{--kpi-color:#725bb3;--kpi-soft:#f0ecfb}

body.fluir-layout-body .personal-page .overview-kpi::before,
body.fluir-layout-body .personal-page .overview-kpi::after{
  display:none;
}

body.fluir-layout-body .personal-page .overview-kpi strong{
  font-size:25px;
  letter-spacing:0;
}

@media (max-width:1180px) and (min-width:901px){
  body.fluir-layout-body .sidebar.app-sidebar{width:210px;padding-inline:11px}
  body.fluir-layout-body .content.app-content{width:calc(100% - 210px);margin-left:210px;padding-inline:22px}
  body.fluir-layout-body .fluir-metric-grid,body.fluir-layout-body .receipt-stats,body.fluir-layout-body .operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fluir-layout-body .filters{grid-template-columns:minmax(180px,1fr) minmax(135px,.8fr) minmax(120px,.7fr) auto auto}
  body.fluir-layout-body .filters select[name="origem"]{grid-column:auto}
}

@media (max-width:900px){
  body.fluir-layout-body .shell.app-shell{display:block}
  body.fluir-layout-body .sidebar.app-sidebar{position:relative;inset:auto;width:100%;height:auto}
  body.fluir-layout-body .desktop-sidebar-inner{display:none}
  body.fluir-layout-body .mobile-logout{justify-content:flex-start;gap:8px;margin-top:8px;padding:10px;border-top:1px solid rgba(255,255,255,.13)}
  body.fluir-layout-body .content.app-content{width:100%;margin-left:0;padding:18px}
}

@media (max-width:760px){
  body.fluir-layout-body .import-flow-summary{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  body.fluir-layout-body .import-flow-summary .universal-flow{
    width:100%;
    justify-content:space-between;
    gap:4px;
  }
  body.fluir-layout-body .fluir-top-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px 42px;
    gap:10px;
    width:100%;
  }
  body.fluir-layout-body .fluir-year-form{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
  }
  body.fluir-layout-body .fluir-search-form,
  body.fluir-layout-body .fluir-search-form.open{
    grid-column:1;
    width:100%;
    min-width:0;
    flex:initial;
  }
  body.fluir-layout-body .fluir-search-form input,
  body.fluir-layout-body .fluir-search-form.open input{
    min-width:0;
  }
  body.fluir-layout-body .fluir-chart-panel{
    overflow:hidden;
  }
  body.fluir-layout-body .fluir-revenue-chart{
    width:100%;
    min-width:0;
    max-width:100%;
    overflow-x:auto;
  }
  body.fluir-layout-body .fluir-revenue-chart .month-group{
    flex:0 0 40px;
  }
  body.fluir-layout-body .mobile-card-table table,
  body.fluir-layout-body .mobile-card-table tbody,
  body.fluir-layout-body .mobile-card-table tbody tr{
    width:100%;
    min-width:0;
  }
  body.fluir-layout-body .patient-table .patient-financial-summary,
  body.fluir-layout-body .patient-table .patient-registration-summary{
    display:grid;
  }
  body.fluir-layout-body .page-header{align-items:flex-start;padding-bottom:14px}
  body.fluir-layout-body .page-primary-actions{width:100%}
  body.fluir-layout-body .page-primary-actions .button{flex:1}
  body.fluir-layout-body .filters,body.fluir-layout-body .filters.compact{grid-template-columns:1fr}
  body.fluir-layout-body .fluir-metric-grid,body.fluir-layout-body .receipt-stats,body.fluir-layout-body .operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fluir-layout-body .fluir-metric-card,body.fluir-layout-body .receipt-stat,body.fluir-layout-body .operation-card{height:100px;min-height:100px}
  body.fluir-layout-body .fluir-side-stack{grid-template-columns:1fr}
  body.fluir-layout-body .fluir-attention-card{min-height:0}
  body.fluir-layout-body .fluir-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fluir-layout-body .queue-grid{grid-template-columns:1fr}
  body.fluir-layout-body .fiscal-month-toolbar{grid-template-columns:1fr;gap:10px}
  body.fluir-layout-body .fiscal-month-total{grid-row:2}
  body.fluir-layout-body .export-filter{grid-row:3}
  body.fluir-layout-body .fiscal-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fluir-layout-body .row-primary-actions{display:grid;grid-template-columns:1fr}
  body.fluir-layout-body .row-primary-actions .action-button{width:100%}
}

@media (max-width:430px){
  body.fluir-layout-body .content.app-content{padding:14px}
  body.fluir-layout-body .fluir-metric-grid,body.fluir-layout-body .receipt-stats,body.fluir-layout-body .operation-grid{grid-template-columns:1fr}
  body.fluir-layout-body .fluir-shortcut-grid{grid-template-columns:1fr}
}

/* Alpha 167: cadastro de contas e importacao multibanco. */
body.fluir-layout-body .bank-account-modal-card{
  width:min(680px,100%);
}
body.fluir-layout-body .bank-account-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body.fluir-layout-body .bank-account-form .modal-field{
  display:grid;
  gap:7px;
  color:var(--fluir-ink,#142b49);
  font-size:12px;
  font-weight:700;
}
body.fluir-layout-body .bank-account-form #custom-institution-field[hidden]{display:none}
body.fluir-layout-body .bank-account-form input,
body.fluir-layout-body .bank-account-form select{
  width:100%;
  min-height:42px;
  border:1px solid var(--fluir-line,#dbe3ed);
  border-radius:7px;
  background:#fff;
  padding:9px 11px;
  color:var(--fluir-ink,#142b49);
}
body.fluir-layout-body .bank-account-reference-grid{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body.fluir-layout-body .bank-account-form .modal-actions{
  grid-column:1/-1;
}
@media (max-width:700px){
  body.fluir-layout-body .bank-account-form,
  body.fluir-layout-body .bank-account-reference-grid{grid-template-columns:1fr}
}

/* Alpha 175 hotfix: acesso visivel aos dados profissionais. */
body.fluir-layout-body .notice-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
body.fluir-layout-body .notice-action > div{
  display:grid;
  gap:3px;
  min-width:0;
}
body.fluir-layout-body .notice-action strong{
  display:block;
  color:inherit;
  font-size:14px;
}
body.fluir-layout-body .notice-action span{
  display:block;
}
body.fluir-layout-body .notice-action .button{
  flex:0 0 auto;
  margin:0;
  white-space:nowrap;
}
body.fluir-layout-body .professional-setup-notice{
  margin:0 0 18px;
}
@media (max-width:700px){
  body.fluir-layout-body .notice-action{
    align-items:stretch;
    flex-direction:column;
    gap:12px;
  }
  body.fluir-layout-body .notice-action .button{
    width:100%;
    justify-content:center;
  }
}

/* Alpha 177: governanca de acesso, aceite legal e onboarding. */
.onboarding-intro{display:grid;gap:4px;margin-bottom:20px;padding:16px 18px;border:1px solid #cfe7e3;border-radius:10px;background:#f3fbfa}.onboarding-intro strong{color:var(--navy-900);font-size:15px}.onboarding-intro span{color:var(--muted);font-size:13px;line-height:1.5}.onboarding-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.onboarding-guide article{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.guide-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#e9f6f4;color:var(--teal-700);font-size:12px;font-weight:800}.onboarding-guide strong{display:block;color:var(--navy-900);font-size:13px}.onboarding-guide p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.annual-monitor{padding:22px;margin:18px 0}.annual-monitor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.annual-monitor-head h2{margin:2px 0 4px;color:var(--navy-900);font-size:20px}.annual-monitor-head p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px}.annual-monitor-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.annual-monitor-metrics div{display:grid;gap:5px;padding:13px;border:1px solid var(--line);border-radius:8px}.annual-monitor-metrics span{color:var(--muted);font-size:10px;font-weight:800}.annual-monitor-metrics strong{color:var(--navy-900);font-size:17px}.annual-monitor-alerts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.annual-monitor-alert{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:8px;text-decoration:none}.annual-monitor-alert.attention{border-color:#f3d8a6;background:#fffaf0}.annual-monitor-alert.info{background:#f5f9ff}.annual-monitor-alert strong{color:var(--navy-900);font-size:13px}.annual-monitor-alert span{color:var(--muted);font-size:12px;line-height:1.4}.annual-monitor-alert small{color:var(--teal-700);font-size:11px;font-weight:800}.annual-monitor-ok{margin-top:14px;padding:12px 14px;border-radius:8px;background:#f0faf5;color:var(--green-700);font-size:12px;font-weight:700}
.legal-checks{display:grid;gap:10px;margin:16px 0 18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.legal-checks label{display:flex;align-items:flex-start;gap:9px;color:var(--ink);font-size:13px;line-height:1.45}
.legal-checks input{width:17px;height:17px;margin-top:1px;flex:0 0 auto}
.legal-checks a,.legal-links a{color:var(--teal-700);font-weight:700}
.legal-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.legal-links a{border:1px solid var(--line);border-radius:8px;padding:12px;text-decoration:none;text-align:center;background:#fff}
.legal-document{width:min(820px,calc(100% - 32px));margin:32px auto}
.legal-document-card{padding:34px}
.legal-document-card h1{margin:4px 0 24px;color:var(--navy-900);font-size:30px}
.legal-document-card h2{margin:25px 0 7px;color:var(--navy-900);font-size:16px}
.legal-document-card p{color:var(--muted);line-height:1.7}
.governance-header{align-items:center}
.governance-panel,.onboarding-panel{padding:24px;margin-bottom:18px}
.governance-section-head h2{margin:0 0 5px;font-size:17px;color:var(--navy-900)}
.governance-section-head p{margin:0 0 18px;color:var(--muted);font-size:13px}
.access-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.access-row{display:grid;grid-template-columns:42px minmax(210px,1fr) 120px 90px 145px;gap:14px;align-items:center;padding:14px;border-bottom:1px solid var(--line);background:#fff}
.access-row:last-child{border-bottom:0}
.access-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--blue-100);color:var(--blue-700);font-weight:800}
.access-avatar.pending{background:var(--gold-100);color:var(--gold-600)}
.access-person{display:grid;gap:3px;min-width:0}.access-person strong{color:var(--navy-900);font-size:13px}.access-person span{overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px}
.role-badge,.access-state{justify-self:start;display:inline-flex;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:750;white-space:nowrap}
.role-badge.owner{background:#eaf7f5;color:var(--teal-700)}.role-badge.accountant{background:var(--blue-100);color:var(--blue-700)}
.access-state.active{background:var(--green-100);color:var(--green-700)}.access-state.revoked{background:var(--red-100);color:var(--red-700)}.access-state.pending{background:var(--gold-100);color:var(--gold-600)}
.access-action{justify-self:end}.access-action form{margin:0}.action-button.danger{color:var(--red-700);border-color:#efb8ba}.danger-button{background:var(--red-700)}
.app-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none}.app-dialog::backdrop{background:rgba(7,17,30,.58);backdrop-filter:blur(3px)}
.dialog-card{width:min(560px,calc(100vw - 32px));background:#fff;border-radius:12px;padding:24px;box-shadow:var(--shadow-raised)}.dialog-card-small{width:min(480px,calc(100vw - 32px))}
.dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.dialog-head h2{margin:3px 0 0;color:var(--navy-900);font-size:22px}.dialog-close{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy-800);font-size:24px;cursor:pointer}
.dialog-helper{color:var(--muted);font-size:13px;line-height:1.5}.dialog-card .field{display:grid;gap:7px;margin-top:18px}.dialog-card .field label{font-size:11px;font-weight:760;color:var(--muted)}.dialog-card .field input{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font-size:14px}
.permission-summary{display:grid;gap:5px;margin:16px 0;padding:13px;border-radius:8px;background:#f4f8fb}.permission-summary strong{font-size:13px;color:var(--navy-900)}.permission-summary span,.permission-summary small{color:var(--muted);font-size:12px;line-height:1.45}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
.onboarding-progress{height:8px;border-radius:999px;background:#e7edf4;overflow:hidden;margin-bottom:22px}.onboarding-progress span{display:block;height:100%;background:var(--teal-600);transition:width .2s ease}
.onboarding-steps{border:1px solid var(--line);border-radius:10px;overflow:hidden}.onboarding-step{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:15px;align-items:center;padding:19px;border-bottom:1px solid var(--line)}.onboarding-step:last-child{border-bottom:0}.onboarding-step.current{background:#f2faf9}.onboarding-step.done{background:#fbfcfd}.step-number{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#edf1f6;color:var(--muted);font-weight:800}.onboarding-step.current .step-number{background:var(--teal-700);color:#fff}.onboarding-step.done .step-number{background:var(--green-100);color:var(--green-700)}
.onboarding-step h2{margin:2px 0 4px;color:var(--navy-900);font-size:15px}.onboarding-step p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.onboarding-step>strong{color:var(--green-700);font-size:12px}
.onboarding-complete{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding:16px;border-radius:10px;background:var(--green-100)}.onboarding-complete div{display:grid;gap:4px}.onboarding-complete strong{color:var(--green-700)}.onboarding-complete span{color:var(--muted);font-size:12px}
@media(max-width:850px){.access-row{grid-template-columns:42px 1fr auto}.role-badge{grid-column:2}.access-state{grid-column:3;grid-row:1}.access-action{grid-column:2/-1;justify-self:start}.onboarding-step{grid-template-columns:42px 1fr}.onboarding-step>.button,.onboarding-step>strong{grid-column:2;justify-self:start}.onboarding-guide,.annual-monitor-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.legal-links{grid-template-columns:1fr}.legal-document-card{padding:22px}.governance-header{align-items:stretch}.governance-header .button{width:100%}.dialog-actions{flex-direction:column-reverse}.dialog-actions .button{width:100%}.onboarding-complete{align-items:stretch;flex-direction:column}.onboarding-complete .button{width:100%}.onboarding-guide,.annual-monitor-metrics,.annual-monitor-alerts{grid-template-columns:1fr}.annual-monitor-head{align-items:stretch;flex-direction:column}}

/* Alpha 180: visor administrativo de contas da plataforma. */
.platform-account-monitor{padding:22px;margin:0 0 18px;border-left:3px solid var(--teal-600)}
.platform-account-monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.platform-account-monitor-head h2{margin:2px 0 4px;color:var(--navy-900);font-size:20px}
.platform-account-monitor-head p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px}
.platform-admin-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eaf7f5;color:var(--teal-700);font-size:11px;font-weight:800;white-space:nowrap}
.platform-account-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.platform-account-metrics div{display:grid;align-content:start;gap:5px;min-height:78px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff}
.platform-account-metrics span{color:var(--muted);font-size:10px;font-weight:800}
.platform-account-metrics strong{color:var(--navy-900);font-size:23px;line-height:1}
.platform-account-metrics small{color:var(--muted);font-size:11px}
.platform-account-monitor-foot{margin:12px 0 0;color:var(--muted);font-size:12px}
.platform-account-monitor-foot strong{color:var(--navy-900)}
@media(max-width:850px){.platform-account-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.platform-account-monitor-head{align-items:stretch;flex-direction:column}.platform-admin-badge{align-self:flex-start}.platform-account-metrics{grid-template-columns:1fr}}
.fiscal-form-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding-top:20px;margin-top:4px;border-top:1px solid var(--line)}
.fiscal-form-section:first-of-type{padding-top:0;border-top:0}
.fiscal-form-section-head{grid-column:1/-1}.fiscal-form-section-head h3{margin:0 0 4px;color:var(--navy-900);font-size:15px}.fiscal-form-section-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.fiscal-form-section label{display:grid;gap:6px;color:var(--navy-900);font-size:12px;font-weight:700}.fiscal-form-section label span{color:var(--muted);font-weight:500}.fiscal-form-section input,.fiscal-form-section select,.fiscal-form-section textarea{width:100%;box-sizing:border-box}.fiscal-field-wide{grid-column:1/-1}.fiscal-history-card{margin-top:18px;padding:22px}.fiscal-history-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}.fiscal-history-item{display:grid;grid-template-columns:90px 1fr 1.5fr 110px 140px;gap:12px;align-items:center;padding:13px 14px;border-bottom:1px solid var(--line);font-size:12px}.fiscal-history-item:last-child{border-bottom:0}.fiscal-history-item strong{color:var(--navy-900)}.fiscal-history-item span{color:var(--muted)}.fiscal-history-item code{color:var(--blue-700);font-size:11px}
@media(max-width:850px){.fiscal-form-section{grid-template-columns:1fr}.fiscal-field-wide{grid-column:auto}.fiscal-history-item{grid-template-columns:1fr 1fr}.fiscal-history-item code{grid-column:1/-1}}

}
