@import url('/assets/professional-forms-v1.css?v=154');
/* CHAPINTER Enterprise Design v4 — final normalization layer for every authenticated page. */
body[data-app-shell="1"]{--ed-bg:#eef4f5;--ed-surface:#fff;--ed-surface-soft:#f5f9fa;--ed-ink:#0a2d40;--ed-muted:#607a86;--ed-border:#d3e1e6;--ed-primary:#0aa997;--ed-primary-dark:#08786e;--ed-danger:#b53b30;--ed-warning:#a66b00;--ed-radius:18px;background:linear-gradient(180deg,#eaf2f4 0,#f7f9fa 520px);color:var(--ed-ink)}
body[data-app-shell="1"] :where(main,.shell,.dashboard-shell){min-width:0}
body[data-app-shell="1"] main.shell{max-width:1600px;padding-block:30px 84px}
body[data-app-shell="1"] :where(.page-hero,.module-hero,.dashboard-hero){position:relative;overflow:hidden;border:1px solid var(--ed-border);border-radius:24px;background:radial-gradient(circle at 94% 0,rgba(10,169,151,.18),transparent 30%),linear-gradient(130deg,#fff,#f5fbfa);box-shadow:0 14px 42px rgba(7,45,62,.07)}
body[data-app-shell="1"] :where(.page-hero,.module-hero,.dashboard-hero)::after{content:"";position:absolute;right:-65px;bottom:-95px;width:220px;height:220px;border:42px solid rgba(10,169,151,.055);border-radius:50%;pointer-events:none}
body[data-app-shell="1"] :where(.panel,.card,.surface,details){min-width:0;border-color:var(--ed-border);background:var(--ed-surface);color:var(--ed-ink);box-shadow:0 8px 28px rgba(6,42,59,.055)}
body[data-app-shell="1"] :where(.panel,.surface){border-radius:var(--ed-radius)}
body[data-app-shell="1"] :where(.section-heading,.panel-heading){flex-wrap:wrap;align-items:flex-start}
body[data-app-shell="1"] :where(.section-heading,.panel-heading)>:first-child{min-width:min(100%,280px);flex:1}
body[data-app-shell="1"] :where(.section-heading,.panel-heading) h1,body[data-app-shell="1"] :where(.section-heading,.panel-heading) h2{margin:.12em 0}
body[data-app-shell="1"] :where(.page-actions,.hero-actions,.top-actions,.source-actions){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body[data-app-shell="1"] :where(.dashboard-grid,.module-grid,.grid,.metric-strip,.stats-grid,.choice-grid,.form-grid){align-items:stretch;gap:16px}
body[data-app-shell="1"] :where(.metric-card,.stat-card,.source-metric){min-width:0;border:1px solid var(--ed-border);border-radius:16px;background:var(--ed-surface);color:var(--ed-ink);box-shadow:0 7px 22px rgba(7,43,59,.05)}
body[data-app-shell="1"] :where(.metric-card,.stat-card):hover{transform:translateY(-2px);border-color:#9bcfc7;background:#f8fdfc;color:var(--ed-ink)}
body[data-app-shell="1"] :where(form,.filter-panel,.filters,.filter-grid){min-width:0}
body[data-app-shell="1"] :where(input,select,textarea){background:#fff;color:#123546;border-color:#afc5ce}
body[data-app-shell="1"] :where(input,select,textarea)::placeholder{color:#7f939c;opacity:1}
body[data-app-shell="1"] :where(input,select,textarea):disabled{background:#edf2f4;color:#6d8088;opacity:1}
body[data-app-shell="1"] :where(.check-row,.radio-row){display:flex;align-items:flex-start;gap:9px;min-width:0}
body[data-app-shell="1"] :where(.check-row,.radio-row)>input{flex:0 0 auto;width:18px;min-height:18px;margin:2px 0 0}
body[data-app-shell="1"] :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table){width:100%;max-width:100%;overflow:auto;border-radius:15px;-webkit-overflow-scrolling:touch}
body[data-app-shell="1"] table{width:100%;max-width:100%;table-layout:auto;background:var(--ed-surface)}
body[data-app-shell="1"] th{position:sticky;top:0;z-index:1;white-space:nowrap;background:#eaf2f4;color:#345866}
body[data-app-shell="1"] td{max-width:420px;color:#173a4a;overflow-wrap:anywhere}
body[data-app-shell="1"] tbody tr,body[data-app-shell="1"] tbody td{transition:background-color .12s ease,color .12s ease}
body[data-app-shell="1"] tbody tr:hover,body[data-app-shell="1"] tbody tr:focus-within{background:#edf9f7!important;color:#173a4a!important}
body[data-app-shell="1"] tbody tr:hover td,body[data-app-shell="1"] tbody tr:focus-within td{background:transparent!important;color:#173a4a!important}
body[data-app-shell="1"] :where(.status-chip,.count-badge,.badge){max-width:100%;white-space:normal;line-height:1.25;text-align:center}
body[data-app-shell="1"] :where(.alert,.flash,.flash-success,.source-note,.field-help){max-width:100%;overflow-wrap:anywhere}
body[data-app-shell="1"] dialog{width:min(760px,calc(100vw - 30px));max-height:calc(100vh - 30px);padding:0;border:0;border-radius:20px;overflow:auto;box-shadow:0 30px 90px rgba(2,30,45,.35)}
body[data-app-shell="1"] dialog::backdrop{background:rgba(2,24,37,.62);backdrop-filter:blur(3px)}
body[data-app-shell="1"] :where(.chart-bars,.chart-container,.analytics-panel){min-width:0;overflow:hidden}
body[data-app-shell="1"] :where(canvas,svg,img){max-width:100%;height:auto}
body[data-app-shell="1"] :where(.pagination,.pager){display:flex;flex-wrap:wrap;gap:7px;align-items:center}
body[data-app-shell="1"] :where(.pagination,.pager) a{display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid var(--ed-border);border-radius:9px;background:#fff;text-decoration:none}
body[data-app-shell="1"] .empty-state{min-height:150px;display:flex;align-items:center;justify-content:center;gap:18px;background:linear-gradient(135deg,#f9fcfc,#eef7f6)}
body[data-app-shell="1"] :focus-visible{outline:3px solid rgba(10,169,151,.35);outline-offset:2px}

body[data-app-shell="1"].theme-dark{--ed-bg:#071e2b;--ed-surface:#0d2a39;--ed-surface-soft:#102f3f;--ed-ink:#eef8fa;--ed-muted:#abc0c9;--ed-border:#2d5060;background:#071e2b;color:var(--ed-ink)}
body[data-app-shell="1"].theme-dark :where(.page-hero,.module-hero,.dashboard-hero,.panel,.card,.surface,details,.metric-card,.stat-card,.source-metric,table){background:#0d2a39;color:var(--ed-ink);border-color:var(--ed-border)}
body[data-app-shell="1"].theme-dark :where(input,select,textarea){background:#082432;color:#eef8fa;border-color:#466b7b}
body[data-app-shell="1"].theme-dark :where(input,select,textarea)::placeholder{color:#9bb2bc}
body[data-app-shell="1"].theme-dark th{background:#143747;color:#d1e3e8}
body[data-app-shell="1"].theme-dark td{color:#e4f0f3;border-color:#294b59}
body[data-app-shell="1"].theme-dark tbody tr:hover,body[data-app-shell="1"].theme-dark tbody tr:focus-within{background:#123e49!important;color:#fff!important}
body[data-app-shell="1"].theme-dark tbody tr:hover td,body[data-app-shell="1"].theme-dark tbody tr:focus-within td{color:#fff!important;background:transparent!important}
body[data-app-shell="1"].theme-dark :where(.metric-card,.stat-card):hover{background:#123e49;color:#fff;border-color:#398274}
body[data-app-shell="1"].theme-dark .empty-state{background:linear-gradient(135deg,#0a2331,#10363d)}

@media(max-width:1100px){body[data-app-shell="1"] main.shell{padding-block:24px 86px}body[data-app-shell="1"] :where(.page-hero,.module-hero,.dashboard-hero){padding:28px}.table-wrap table,.table-scroll table,.data-table-wrap table,.responsive-table table{min-width:760px}}
@media(max-width:700px){body[data-app-shell="1"] main.shell{padding-inline:14px}body[data-app-shell="1"] :where(.page-hero,.module-hero,.dashboard-hero){padding:22px 18px;border-radius:18px}body[data-app-shell="1"] :where(.page-actions,.hero-actions,.top-actions,.source-actions){display:grid;grid-template-columns:1fr;width:100%}body[data-app-shell="1"] :where(.page-actions,.hero-actions,.top-actions,.source-actions)>*{width:100%}body[data-app-shell="1"] :where(.panel,.surface){padding:18px 15px;border-radius:16px}body[data-app-shell="1"] :where(.dashboard-grid,.module-grid,.grid,.metric-strip,.stats-grid,.choice-grid,.form-grid){grid-template-columns:1fr!important}body[data-app-shell="1"] .empty-state{align-items:flex-start;flex-direction:column;text-align:left}}
/* Concise operational density; Radar and fiscal preparation keep their dedicated rich layouts. */
body[data-app-shell="1"] main.shell:not(.radar-workspace):not(.fiscal-shell) :where(.panel,.card){padding:19px}body[data-app-shell="1"] main.shell:not(.radar-workspace):not(.fiscal-shell) form:not(.professional-form) label{margin:10px 0;font-size:12px}body[data-app-shell="1"] main.shell:not(.radar-workspace):not(.fiscal-shell) form:not(.professional-form) :where(input,select,textarea){min-height:42px;padding:9px 11px;font-size:13px}body[data-app-shell="1"] main.shell:not(.radar-workspace):not(.fiscal-shell) :where(.panel-heading,.section-heading){margin-bottom:13px}body[data-app-shell="1"] main.shell:not(.radar-workspace):not(.fiscal-shell) :where(.record-stack,.record-grid){gap:9px}
@media print{body[data-app-shell="1"]{padding:0!important;background:#fff!important;color:#000!important}body[data-app-shell="1"] :where(.workspace-nav,.workspace-more,.context-help,.environment-badge,.page-actions,.hero-actions,button){display:none!important}body[data-app-shell="1"] :where(.panel,.card,.surface){break-inside:avoid;box-shadow:none!important;border-color:#bbb!important}}

/* Desktop-operational finish: dense, predictable and aligned with the CMS document flow. */
.cms-document-flow{margin-top:20px;padding:20px;border:1px solid #c8d9df;border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(5,43,59,.06)}.cms-flow-rail{display:grid;grid-template-columns:repeat(10,minmax(145px,1fr));overflow:auto;border:1px solid #d4e1e5;border-radius:12px;background:#f7fafb}.cms-flow-rail article{display:flex;gap:9px;min-height:112px;padding:13px;border-right:1px solid #d4e1e5}.cms-flow-rail article:last-child{border-right:0}.cms-flow-rail article>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:7px;background:#07384a;color:#fff;font-size:11px;font-weight:900}.cms-flow-rail strong,.cms-flow-rail small,.cms-flow-rail p{display:block}.cms-flow-rail strong{color:#092d3e;font-size:12px}.cms-flow-rail small{margin-top:2px;color:#008b7c;font-size:10px;font-weight:800}.cms-flow-rail p{margin:7px 0 0;color:#607a86;font-size:10px;line-height:1.35}.cms-stage .open-process{display:inline-flex;margin-top:10px}
body[data-app-shell="1"] table tbody tr:hover td,body[data-app-shell="1"] table tbody tr:focus-within td{filter:none!important}.radar-professional-table tbody tr:hover td,.radar-professional-table tbody tr:focus-within td{background:#104151!important;color:#fff!important}.radar-professional-table tbody tr:hover a,.radar-professional-table tbody tr:focus-within a{color:#5de4cf!important}
@media(max-width:900px){.cms-flow-rail{grid-template-columns:repeat(10,155px)}}

/* Tabelas operacionais consistentes em todas as áreas. */
.department-operational-table{border-collapse:separate!important;border-spacing:0!important;font-variant-numeric:tabular-nums}.department-operational-table th{height:42px;padding:9px 11px!important;border-bottom:2px solid #b8ced5;font-size:10px!important;letter-spacing:.055em;text-transform:uppercase}.department-operational-table td{padding:10px 11px!important;border-bottom:1px solid #dbe5e8;vertical-align:middle;font-size:12px}.department-operational-table tbody tr{position:relative}.department-operational-table tbody tr td:first-child{border-left:4px solid #9aabb2}.department-operational-table tbody tr[data-operational-state="success"] td:first-child{border-left-color:#16a879}.department-operational-table tbody tr[data-operational-state="progress"] td:first-child{border-left-color:#278ed1}.department-operational-table tbody tr[data-operational-state="warning"] td:first-child{border-left-color:#e7ad28}.department-operational-table tbody tr[data-operational-state="danger"] td:first-child{border-left-color:#df594f}.department-operational-table tbody tr[data-operational-state="success"] td:first-child:before{content:'✓ ';color:#11825f;font-weight:900}.department-operational-table tbody tr[data-operational-state="progress"] td:first-child:before{content:'● ';color:#278ed1}.department-operational-table tbody tr[data-operational-state="warning"] td:first-child:before{content:'⚠ ';color:#a96e00}.department-operational-table tbody tr[data-operational-state="danger"] td:first-child:before{content:'! ';color:#c43d34;font-weight:900}
