/* Grupo ITAX: official site palette and type; provenance in assets/images/BRAND.md. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-400.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-500.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-600.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-700.ttf') format('truetype'); }
:root {
  --red: #e40a18;
  --red-dark: #79060e;
  --ink: #1a1a1a;
  --muted: #707070;
  --line: #e6e6e6;
  --bg: #f6f6f6;
  --green: #15734a;
  --amber: #946300;
  --danger: #bc1723;
  --chart-green: #22c55e;
  --chart-amber: #facc15;
  --chart-red: #ef4444;
  --button-height: 36px;
  --button-min-width: 108px;
  --bs-primary: var(--red);
  --bs-primary-rgb: 228, 10, 24;
  --bs-success: var(--green);
  --bs-success-rgb: 21, 115, 74;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 188, 23, 35;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-link-color: var(--red-dark);
  --bs-link-hover-color: var(--red);
  --bs-body-font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  --bs-body-font-size: 0.875rem;
}
html { font-size: 14px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); }
a { text-decoration: none; }
p { line-height: 1.5; }
h1, h2, h3 { color: inherit; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 14px; margin: 0 0 8px; }
h3 { font-size: 13px; margin: 0 0 8px; }
.icon { width: 17px; height: 17px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.app-shell { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 100vh; }
.main-area { min-width: 0; }
.sidebar { --bs-offcanvas-width: 240px; background: #0d0d0d !important; color: #fff; border: 0; }
.sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 26px 12px 14px; }
.brand-link { align-self: flex-start; margin: 0 14px 26px; }
.brand { width: 132px; height: auto; display: block; }
.sidebar .nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px; color: #bfbfbf; font-size: 12px; font-weight: 500; text-align: left; line-height: 1.35; }
.sidebar .nav-link .icon { width: 16px; height: 16px; }
.sidebar .nav-link:hover, .sidebar-close:hover { color: #fff; background: #1a1a1a; }
.sidebar .nav-link.active { background: var(--red); color: #fff; }
.nav-divider { height: 1px; background: #262626; margin: 12px; }
.nav-chevron { margin-left: auto; }
.nav-chevron .icon { width: 13px !important; }
[aria-expanded='true'] .nav-chevron { transform: rotate(180deg); }
.nav-submenu { padding: 5px 0 0 8px; }
.nav-submenu .nav-link { font-size: 11px; padding: 9px 10px; }
.unit-dot { width: 5px; height: 5px; border-radius: 50%; background: #808080; flex-shrink: 0; margin: 0 5px; }
.nav-bottom { margin-top: auto; padding-top: 24px; }
.aside-bottom { display: flex; justify-content: space-between; border-top: 1px solid #262626; margin: 12px 12px 0; padding-top: 14px; font-size: 10px; color: #bfbfbf; }
.aside-bottom span { color: #808080; }
.sidebar-close { color: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 22px; }
.topbar-title, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-title { color: var(--muted); font-size: 11px; white-space: nowrap; }
.topbar-title strong { color: var(--ink); font-size: 13px; }
.topbar-separator { color: #bfbfbf; }
.topbar-actions { gap: 6px; }
.topbar-actions form { margin: 0; }
.user-name { max-width: 170px; margin-left: 10px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { color: var(--muted); display: inline-flex; align-items: center; }
.user-role .icon { width: 15px; height: 15px; }
.content { padding: 20px 22px 28px; max-width: 1800px; margin: auto; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.heading h1 { margin: 0; }
.heading .eyebrow { margin-bottom: 4px; }
.eyebrow { font-size: 10px; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.sub, .small, .form-text { font-size: 11px; color: var(--muted); line-height: 1.45; }
.form-label { font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.form-select, .form-control { background-color: #fff; font-size: 12px; padding-top: 7px; padding-bottom: 7px; min-height: 32px; border-radius: 5px; }
textarea.form-control { min-height: 76px; }
.form-select:focus, .form-control:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgb(228 10 24 / 10%); }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
input[type='checkbox'] { accent-color: var(--red); }
.input-group-text { background: #fff; color: var(--muted); border-radius: 5px; }
.input-group > .input-group-text + .form-control { border-left: 0; }
.btn { --bs-btn-font-size: 11px; --bs-btn-font-weight: 600; --bs-btn-padding-x: 12px; --bs-btn-padding-y: 7px; --bs-btn-border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--button-height); min-height: var(--button-height); min-width: var(--button-min-width); flex-shrink: 0; white-space: nowrap; }
.btn-primary, .btn-danger { --bs-btn-color: #fff; --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red); --bs-btn-hover-bg: #c90915; --bs-btn-hover-border-color: #c90915; --bs-btn-active-bg: var(--red-dark); --bs-btn-active-border-color: var(--red-dark); --bs-btn-disabled-bg: var(--red); --bs-btn-disabled-border-color: var(--red); --bs-btn-focus-shadow-rgb: 228, 10, 24; }
.btn-outline-primary { --bs-btn-color: var(--red-dark); --bs-btn-border-color: #e6c7ca; --bs-btn-hover-bg: var(--red); --bs-btn-hover-border-color: var(--red); --bs-btn-active-bg: var(--red-dark); --bs-btn-active-border-color: var(--red-dark); }
.btn-outline-secondary { --bs-btn-color: #404040; --bs-btn-border-color: var(--line); --bs-btn-bg: #fff; --bs-btn-hover-bg: #f2f2f2; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #bfbfbf; }
.btn-icon, .icon-btn, .btn-close { box-sizing: border-box; width: var(--button-height); height: var(--button-height); min-width: var(--button-height); min-height: var(--button-height); padding: 6px; flex-shrink: 0; }
.btn-icon:not(.btn-primary):not(.btn-danger):not(.btn-dark):not(.btn-outline-primary), .icon-btn:not(.btn-primary):not(.btn-danger):not(.btn-dark):not(.btn-outline-primary) { border-color: transparent; }
.btn-outline-danger.btn-icon { --bs-btn-color: var(--red); --bs-btn-bg: transparent; --bs-btn-hover-color: var(--red-dark); --bs-btn-active-color: var(--red-dark); --bs-btn-active-bg: #ededed; --bs-btn-active-border-color: transparent; --bs-btn-focus-shadow-rgb: 228, 10, 24; }
.btn-icon:hover, .icon-btn:hover { background: #ededed; }
.btn-primary.btn-icon:hover, .btn-primary.icon-btn:hover, .btn-danger.btn-icon:hover, .btn-danger.icon-btn:hover { background: #c90915; }
.btn-icon.btn-link, .icon-btn.btn-link { color: var(--muted); }
.btn-icon.btn-link:hover, .icon-btn.btn-link:hover { color: var(--red-dark); }
.card { --bs-card-bg: #fff; --bs-card-border-radius: 6px; --bs-card-border-color: var(--line); --bs-card-spacer-x: 16px; --bs-card-spacer-y: 16px; box-shadow: none; }
.card h2:empty { display: none; }
.sectionhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sectionhead h2 { margin: 0; }
.filters { gap: 7px !important; margin-bottom: 16px !important; }
.filters .form-select { width: auto; flex: 1 1 140px; }
.filters .form-control { min-width: 170px; flex: 1.4 1 200px; width: auto; }
.period-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.period-toolbar > .icon { color: var(--muted); }
.period-toolbar .form-control { width: 148px; }
.period-picker { max-width: 100%; }
.period-picker .period-month { width: 115px; min-width: 0; flex: 0 1 115px; }
.period-picker .period-year { width: 86px; min-width: 0; flex: 0 0 86px; }
.period-list { font-size: 10px; color: var(--muted); margin-left: auto; }
.period-list summary { cursor: pointer; }
.period-list > :not(summary) { margin-top: 5px; }
.metric-label { display: flex; align-items: center; gap: 7px; }
.metric-label .icon { width: 15px; height: 15px; }
.kpi .value { font-size: 27px; font-weight: 700; letter-spacing: -0.06em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.kpi.featured { background: #1a1a1a; border-color: #1a1a1a; color: #fff; position: relative; }
.kpi.featured::after { content: ''; position: absolute; top: 15px; right: 0; width: 3px; height: 24px; background: var(--red); }
.kpi.featured .eyebrow, .kpi.featured .sub, .kpi.featured .small { color: #bfbfbf; }
.kpi .foot { font-size: 10px; color: var(--muted); margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 4px 6px; font-size: 10px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.green { color: var(--green); background: #edf5f0; }
.amber { color: var(--amber); background: #fff6e4; }
.red { color: var(--danger); background: #fceef0; }
.gray { color: var(--muted); background: #f0f0f0; }
.dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.progress { --bs-progress-height: 5px; --bs-progress-bg: #f0f0f0; --bs-progress-border-radius: 3px; margin-top: 8px; }
.bg-green { background-color: var(--green); }
.bg-amber { background-color: #cf9b35; }
.bg-red { background-color: var(--danger); }
.bg-gray { background-color: #d9d9d9; }
.perspective { padding: 10px 0; border-top: 1px solid var(--line); }
.perspective-count { font-size: 10px; color: var(--muted); margin-left: 7px; white-space: nowrap; }
.perspective .score { font-size: 17px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10px; color: var(--muted); margin-top: 10px; }
.legend span { display: flex; gap: 5px; align-items: center; }
.money { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; margin: 14px 0 6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.targetline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 11px; }
.notice { padding: 10px 12px; background: #fff8ea; border: 0; border-left: 2px solid #cf9b35; font-size: 11px; line-height: 1.45; margin: 12px 0; border-radius: 4px; color: var(--ink); }
.notice.neutral { background: #f3f3f3; border-color: #808080; }
.alert { font-size: 12px; padding: 10px 12px; border-radius: 5px; }
.polo-card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
.polo-card:hover { border-color: var(--red); }
.polo-card .big { font-size: 25px; font-weight: 700; margin: 10px 0 4px; }
.table-responsive { position: relative; }
.table { --bs-table-bg: #fff; --bs-table-hover-bg: #fafafa; font-size: 12px; }
.table th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .015em; padding: 8px 9px; background: #fafafa; white-space: nowrap; }
.table td { padding: 8px 9px; }
.table td.desc { min-width: 210px; max-width: 430px; line-height: 1.35; }
.table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td .small { font-size: 10px; margin-top: 2px; }
.table .btn { --button-height: 32px; height: auto; min-width: 0; }
.table .btn-icon, .table .icon-btn { --button-height: 28px; width: var(--button-height); height: var(--button-height); min-width: var(--button-height); padding: 5px; }
@media (max-width: 575.98px) {
  .table .btn-icon, .table .icon-btn { --button-height: 36px; }
}
.linkbtn { color: var(--red-dark); padding: 3px 0; text-decoration: none; text-align: left; align-self: flex-start; }
.linkbtn:hover { color: var(--red); }
.empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit { display: grid; gap: 10px; }
.audititem { border-left: 2px solid #cf9b35; }
.audititem.fixed { border-left-color: var(--green); }
.audititem p { font-size: 11px; }
.audit-details, .criteria-details, .detail-notes { margin-top: 12px; font-size: 11px; }
.audit-details summary, .criteria-details summary, .detail-notes summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.audit-details[open] summary, .criteria-details[open] summary, .detail-notes[open] summary { color: var(--ink); }
.audit-details[open] > :not(summary), .criteria-details[open] > :not(summary), .detail-notes[open] > :not(summary) { margin-top: 8px; }
.chain { display: grid; gap: 8px; }
.chainitem { border-left: 2px solid var(--red); padding: 8px 10px; background: #f6f6f6; font-size: 11px; line-height: 1.45; }
.modal-content { background: #fff; border-radius: 7px; }
.modal-header, .modal-footer { padding: 12px 16px; }
.modal-title { font-size: 14px !important; }
.modal-body { padding: 16px; overflow-wrap: anywhere; }
.modal-body dd { margin-top: 4px; }
footer, .dashboard-footer { font-size: 10px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.pagination { --bs-pagination-font-size: 11px; --bs-pagination-color: var(--red-dark); --bs-pagination-active-bg: var(--red); --bs-pagination-active-border-color: var(--red); --bs-pagination-padding-x: 10px; --bs-pagination-padding-y: 5px; }
.present-exit { display: none; }
body.present .sidebar, body.present .topbar { display: none !important; }
body.present .app-shell { display: block; }
body.present .content { max-width: 1600px; padding-top: 54px; }
body.present .present-exit { display: inline-flex; position: fixed; right: 16px; top: 10px; z-index: 1030; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1100; background: #fff; padding: 10px; }
.login-page { display: grid; place-items: center; min-height: 100dvh; background: #0d0d0d; padding: 24px; }
.login-card { width: 100%; max-width: 350px; background: #fff; border-radius: 8px; overflow: hidden; }
.login-brand { display: flex; align-items: center; justify-content: space-between; padding: 25px 28px; background: #1a1a1a; border-bottom: 2px solid var(--red); }
.login-brand img { width: 140px; height: auto; }
.login-brand span { color: #bfbfbf; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.login-form { padding: 24px 28px 28px; }
.login-form h1 { font-size: 18px; margin-bottom: 22px; }
.login-form .input-group-text { padding: 8px 10px; }
.login-form .form-control { min-height: 38px; }
.login-submit { justify-content: space-between; }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; }
  .sidebar .offcanvas-body { height: 100%; overflow-y: auto; }
}
@media (max-width: 1199.98px) {
  .content { padding: 18px; }
  .topbar { padding: 0 18px; }
}
@media (max-width: 991.98px) {
  .app-shell { display: block; }
  .sidebar .offcanvas-body { padding-top: 8px; }
  .sidebar .offcanvas-header { padding: 14px 20px; }
  .nav-bottom { padding-top: 24px; }
}
@media (max-width: 575.98px) {
  .content { padding: 14px 12px 24px; }
  .topbar { height: 56px; padding: 0 10px; gap: 6px; }
  .topbar-title { gap: 6px; }
  .topbar-title > span:not(.visually-hidden) { display: none; }
  .topbar-actions { gap: 3px; }
  .user-name { max-width: 90px; margin-left: 3px; font-size: 10px; }
  .user-role { display: none; }
  .heading { flex-wrap: wrap; gap: 10px; }
  h1 { font-size: 18px; }
  .card { --bs-card-spacer-x: 12px; --bs-card-spacer-y: 12px; }
  .sectionhead { flex-wrap: wrap; }
  .kpi .value, .money { font-size: 24px; }
  .filters .form-select { min-width: 0; flex-basis: calc(50% - 7px); }
  .filters .form-control { min-width: 0; flex-basis: 100%; }
  .period-list { margin-left: 0; }
  .login-page { padding: 18px; }
  .login-form .form-control { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .polo-card, .nav-chevron { transition: none; }
}

.responsible-fieldset { min-width: 0; }
.responsible-fieldset legend { float: none; width: auto; }
.responsible-options { max-height: 160px; overflow-y: auto; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; }
.responsible-option { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; cursor: pointer; font-size: 12px; }
.responsible-option .form-check-input { margin: 0; flex-shrink: 0; }

.indicator-table { max-height: calc(100dvh - 235px); }
.indicator-order-column { width: 65px; min-width: 65px; }
.indicator-drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; cursor: grab; user-select: none; }
.indicator-drag-handle:active { cursor: grabbing; }
.indicator-drag-handle[aria-disabled="true"] { cursor: default; opacity: .45; }
.indicator-table tr.is-dragging > td { background: #e6f2eb; box-shadow: inset 0 2px #73a88a, inset 0 -2px #73a88a; }
.indicator-table.is-ordering { user-select: none; }
.responsibility-table { max-height: calc(100dvh - 315px); }
.indicator-table th, .responsibility-table th { position: sticky; top: 0; z-index: 1; }
.indicator-table, .responsibility-table { min-height: 100px; overflow: auto; }
@media (max-width: 575.98px) {
  .indicator-table { max-height: calc(100dvh - 290px); }
  .responsibility-table { max-height: calc(100dvh - 345px); }
}

/* Distribuição dos indicadores avaliáveis por situação. */
.status-pie { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.pie-chart { width: 150px; height: 150px; flex: 0 0 150px; }
.pie-chart path, .pie-chart circle { stroke: var(--surface, #fff); stroke-width: 2; }
.pie-green { fill: var(--chart-green); color: var(--chart-green); }
.pie-amber { fill: var(--chart-amber); color: var(--chart-amber); }
.pie-red { fill: var(--chart-red); color: var(--chart-red); }
.pie-empty { fill: #edf0f4; }
.pie-chart text { fill: var(--muted); font-size: 15px; }
.pie-details { flex: 1; min-width: 0; }
.pie-legend { list-style: none; padding: 0; margin: 0; }
.pie-legend li { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12px; }
.pie-legend li > span:first-child { display: flex; align-items: center; gap: 6px; }
.pie-legend li > span:last-child { text-align: right; }
.pie-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
@media (max-width: 420px) {
  .status-pie { flex-direction: column; gap: 8px; }
  .pie-details { width: 100%; }
}

.perspectives-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.perspectives-grid .perspective-card { min-width: 0; }
.perspective-card .score { font-size: 17px; font-weight: 700; }
.perspectives-grid .status-pie { flex-direction: column; gap: 8px; }
.perspectives-grid .pie-details { width: 100%; }
@media (max-width: 1199px) {
  .perspectives-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .perspectives-grid { grid-template-columns: minmax(0, 1fr); }
}

.monthly-cell { text-align: center; min-width: 48px; }
.monthly-signal { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.signal-green { background: var(--chart-green); }
.signal-amber { background: var(--chart-amber); }
.signal-red { background: var(--chart-red); }
.signal-gray { background: #b0b8c4; }
.signal-excluded { background: linear-gradient(135deg, transparent 42%, #6c757d 43%, #6c757d 57%, transparent 58%); border: 1px solid #6c757d; box-shadow: none; }
.indicator-name-button { background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.indicator-name-button:hover { text-decoration: underline; }
.monthly-indicators .desc { min-width: 220px; }

.indicator-trend { padding: 14px; border: 1px solid var(--line, #e2e2e2); border-radius: 8px; background: var(--surface, #fff); }
.trend-chart { display: block; width: 100%; height: auto; }
.trend-chart text { fill: var(--muted, #6f6f6f); font-size: 12px; font-family: inherit; }
.trend-grid { stroke: #e5e7eb; stroke-width: 1; }
.trend-line { fill: none; stroke: #e40a18; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trend-point { fill: #e40a18; stroke: #fff; stroke-width: 2; }
.trend-chart .trend-value-label { fill: var(--ink, #222); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.indicator-category { background: #f1f3f5; color: var(--ink, #222); border: 1px solid #e2e2e2; font-weight: 600; padding: 6px 9px; }

.trend-target { fill: none; stroke: #36454f; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.trend-result-key, .trend-target-key { display: inline-block; width: 24px; vertical-align: middle; border-top: 3px solid #e40a18; }
.trend-target-key { border-top: 2px dotted #36454f; }

.trend-hit-area { fill: transparent; pointer-events: all; }
.trend-tooltip { visibility: hidden; pointer-events: none; }
.trend-hover:hover .trend-tooltip, .trend-hover:focus .trend-tooltip { visibility: visible; }
.trend-tooltip rect { fill: #36454f; }
.trend-chart .trend-tooltip text { fill: #fff; font-size: 12px; }
