.platform-context { display: flex; gap: 8px; align-items: center; min-width: 0; flex: 1; }
.platform-context select { width: auto; max-width: 220px; min-height: 32px; padding: 5px 8px; }
.platform-context > strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-content { padding: 20px; }
.platform-content .panel { padding: 16px; margin-top: 16px; }
.platform-content .form-grid { margin-block: 12px; }
.platform-content .retorno-import > .form-grid { margin-block: 0; }
.platform-content .panel-head { padding: 0 0 12px; }
.platform-content .table-wrap { overflow-x: auto; }
.platform-modules { border: 0; padding: 0; margin-block: 12px; }
.platform-modules label { display: inline-flex; gap: 8px; align-items: center; margin-right: 16px; }
.platform-modules input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; }
.platform-content .record-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.platform-content .platform-link { white-space: nowrap; text-decoration: underline; }
.platform-content .login-card { margin: auto; }
.platform-context .btn { min-height: 32px; padding: 5px 10px; }
.platform-content small { color: var(--muted); }
.platform-content .panel p + p { margin-top: 10px; }
@media (max-width: 960px) {
  .platform-frame .sidebar { top: var(--platform-topbar, var(--topbar)); }
  .platform-frame .drawer-scrim { top: var(--platform-topbar, var(--topbar)); }
  .platform-context { flex-wrap: wrap; }
  .platform-context select, .platform-context .btn { min-height: 44px; }
  .platform-modules label { min-height: 44px; }
  .platform-context > strong { display: none; }
  .platform-frame .topbar { flex-wrap: wrap; padding-block: 8px; gap: 8px; }
  .platform-frame { grid-template-rows: auto minmax(0, 1fr); }
  .platform-context { order: 3; flex-basis: 100%; }
  .platform-context select { flex: 1; max-width: none; }
  .platform-content { padding: 12px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; border: 0; }
.nfse-nowrap { white-space: nowrap; }
.nfse-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin-block: 16px; }
.nfse-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.nfse-summary dt { color: var(--muted); font-size: 12px; }
.nfse-summary .nfse-full { grid-column: 1 / -1; }
.nfse-modal details { border-top: 1px solid var(--line); padding-block: 12px; }
.nfse-modal details > summary { cursor: pointer; font-weight: 600; }
.nfse-modal details .form-grid { margin-top: 12px; }
.nfse-modal .radio-field label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.nfse-modal input[type=file] { max-width: 100%; }
.nfse-response { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 250px; overflow: auto; }
@media (max-width: 960px), (pointer: coarse) {
  .nfse-modal .radio-field label, .nfse-modal details > summary { min-height: 44px; }
}
@media (max-width: 600px) {
  .nfse-summary { grid-template-columns: minmax(0,1fr); }
}
.filter-grid.sisper-client-filters:not(.batch-search) { display: grid; grid-template-columns: minmax(240px, 1fr) 170px auto; align-items: end; gap: 10px; margin: 10px 0; }
.sisper-client-filters .filter-actions { grid-column: auto; }
.sisper-client-modal .form-grid { margin-block: 12px; }
.sisper-client-modal .record-code .read-value { min-width: 0; overflow-wrap: anywhere; }
.sisper-client-modal label[for="client-confirm-link"] { overflow-wrap: anywhere; }
.sisper-client-connection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-block: 12px; }
.sisper-client-connection dd { margin: 0; overflow-wrap: anywhere; }
.sisper-client-modal .radio-field label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
@media (max-width: 960px), (pointer: coarse) {
  .sisper-client-modal .radio-field label { min-height: 44px; }
}
@media (max-width: 760px) {
  .filter-grid.sisper-client-filters:not(.batch-search) { grid-template-columns: minmax(0, 1fr); }
  .sisper-clients-page > .heading { flex-direction: column; align-items: flex-start; }
  .sisper-clients-page > .heading .title-lockup { min-width: 0; }
}
.report-heading { margin: 16px 0; overflow-wrap: anywhere; }
.report-heading h2 { margin: 0 0 10px; }
.report-heading p { margin: 4px 0; font-size: 13px; }
.report-money { display: block; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-panel th:nth-child(n+3) { text-align: right; }
.report-panel .table-wrap { margin-top: 12px; }
.report-document { color: #111; background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.report-identity { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid #111; border-radius: 12px; text-align: center; }
.report-identity img { width: 100%; max-height: 70px; object-fit: contain; }
.report-document-title { text-align: center; font-family: Georgia, serif; padding-top: 14px; }
.report-period { border-block: 1px solid #111; padding: 7px 0; }
.report-selection { font-size: 12px; }
.report-opening { margin: 16px 0 24px; }
.report-financial-section { margin-top: 24px; }
.report-financial-section h3 { font-family: Georgia, serif; border-bottom: 1px solid #111; padding-bottom: 5px; }
.report-financial-section table { min-width: 430px; }
.report-financial-section th:last-child { text-align: right; }
.report-financial-section tbody tr:last-child td { border-block: 1px solid #111; }
.report-summary { width: min(560px, 100%); margin: 28px 0 20px auto; border-top: 1px solid #111; padding-top: 14px; }
.report-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin: 10px 0; font-weight: 700; }
.report-summary dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .report-document { padding: 10px; }
  .report-identity { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .report-identity img { width: 110px; justify-self: center; }
  .report-summary { font-size: 12px; }
}
.company-logo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border: 1px solid var(--line); padding: 14px; margin-block: 14px; }
.company-logo-field img { width: 150px; height: 90px; object-fit: contain; background: #fff; }
.company-logo-field > div { min-width: 0; flex: 1 1 230px; }
.company-logo-field input[type=file] { max-width: 100%; }
.report-analytic-title, .report-group-total { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.report-analytic-title { border-bottom: 1px solid #111; padding-bottom: 6px; }
.report-analytic-group { margin-block: 18px; }
.report-analytic-group table { min-width: 720px; }
.report-detail-text { display: block; white-space: pre-line; min-width: 250px; overflow-wrap: anywhere; }
.report-analytic-group .table-wrap { margin-top: 4px; }
.report-analytic-group h4 { margin-bottom: 4px; }
.report-analytic-group td { white-space: normal; vertical-align: top; }
.report-analytic-group td:first-child { width: 23%; overflow-wrap: anywhere; }
.report-analytic-group td:nth-child(2) { width: 49%; }
.report-analytic-group td:nth-child(3) { width: 13%; white-space: nowrap; text-align: right; }
.report-analytic-group td:last-child { width: 15%; }
.report-analytic-group tbody tr:last-child td { border-block: 0; }
.report-analytic-group .report-plan-total { margin-top: 0; border-top: 0; }
.report-group-total { border-block: 1px solid #111; padding: 6px 0; font-weight: 700; }
.report-panel .report-analytic-group th:nth-child(n) { text-align: left; }
.report-panel .report-analytic-group th:last-child { text-align: right; }
.report-panel .report-analytic-group th:nth-child(3) { text-align: right; }
.report-statement table { min-width: 860px; }
.report-statement td { vertical-align: top; }
.report-statement td:nth-child(2) { min-width: 150px; white-space: normal; overflow-wrap: anywhere; }
.report-statement td:first-child { white-space: nowrap; }
.report-statement td:nth-child(n+4) { text-align: right; white-space: nowrap; }
.report-panel .report-statement th:nth-child(3) { text-align: left; }
.report-obligations .report-analytic-group table { min-width: 860px; }
.report-obligations .report-analytic-group td:first-child { width: 22%; }
.report-obligations .report-analytic-group td:nth-child(2) { width: 39%; }
.report-obligations .report-analytic-group td:nth-child(3) { width: 13%; }
.report-obligations .report-analytic-group td:nth-child(n+4) { width: 13%; white-space: nowrap; text-align: right; }
.report-obligations .report-analytic-group td:last-child { width: 13%; }
.report-panel .report-obligations th:nth-child(n+4) { text-align: right; }
.report-panel .report-obligation-table { table-layout: fixed; min-width: 860px; }
.report-obligation-table tfoot :is(th,td), .report-obligation-totals tbody :is(th,td) { border-block: 1px solid #111; background: transparent; color: inherit; font-weight: 700; }
.report-obligation-table tfoot th, .report-obligation-totals tbody th, .report-title-summary tbody th { text-align: left; font-size: inherit; }
.report-obligation-totals .table-wrap { border-color: transparent; border-radius: 0; }
.report-title-summary tbody th { background: transparent; color: inherit; }
.report-title-summary tbody td { font-weight: 700; }
.report-title-summary { margin: 28px 0 20px; }
.report-panel .report-title-summary th:nth-child(n+2) { text-align: right; }

/* Teste visual: itens e grupos do menu com peso regular, inclusive o selecionado. */
.platform-frame .sidebar .nav,
.platform-frame .sidebar .nav[aria-current] { font-weight: 400; }
.platform-frame:not(.menu-modern) .sidebar nav > .nav-dropdown > summary.nav { font-weight: 700; }

/* Alternativa moderna; o catálogo e os componentes de navegação são os mesmos. */
.menu-appearance { padding: 2px 6px 14px; }
.menu-appearance-label { display: block; margin: 0 4px 8px; color: #59718d; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.menu-style-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #cbdded; border-radius: 10px; background: #e2edf8; }
.menu-style-switch button { flex: 1; min-width: 0; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 7px; background: transparent; color: #385570; font: inherit; font-size: 12px; cursor: pointer; }
.menu-style-switch button[aria-pressed=true] { background: #fff; color: #075fae; box-shadow: 0 1px 4px #173c6220; }
.menu-style-switch button:focus-visible { outline: 2px solid #73baff; outline-offset: 2px; }
.platform-frame.menu-modern { --sidebar: 264px; }
.menu-modern .sidebar { padding: 16px 10px; background: linear-gradient(180deg, #1c3b5a, #17334e); border-right: 1px solid #365570; color: #dce8f5; }
.menu-modern .menu-appearance { padding-bottom: 16px; }
.menu-modern .menu-appearance-label { color: #a8c2dd; }
.menu-modern .menu-style-switch { border-color: #486781; background: #18334d; }
.menu-modern .menu-style-switch button { color: #b8cce2; }
.menu-modern .menu-style-switch button[aria-pressed=true] { color: #fff; background: #245b8d; box-shadow: 0 2px 5px #0002; }
.platform-frame.menu-modern .sidebar .nav { gap: 9px; min-height: 36px; margin-bottom: 3px; padding: 8px 9px; color: #dbe7f4; font-size: 12px; line-height: 1.35; border-radius: 8px; transition: background .15s, color .15s; }
.menu-modern .sidebar .nav > span { min-width: 0; overflow-wrap: anywhere; }
.menu-modern .sidebar .nav svg { width: 17px; height: 17px; color: #97bbdf; }
.menu-modern .sidebar .nav:hover { background: #ffffff0d; color: #fff; }
.menu-modern .sidebar .nav[aria-current] { background: linear-gradient(100deg,#1468b8,#197acb); color: #fff; box-shadow: 0 3px 10px #0002; }
.menu-modern .sidebar .nav[aria-current] svg { color: #fff; }
.menu-modern .sidebar nav > .nav-dropdown { margin-top: 10px; padding: 4px; border: 1px solid #42627e; border-radius: 12px; background: #ffffff06; }
.menu-modern .sidebar nav > .nav-dropdown > summary { margin: 0; color: #eef5ff; }
.menu-modern .sidebar nav > .nav-dropdown > summary > svg:first-child { box-sizing: content-box; padding: 6px; background: #315775; color: #badbff; border-radius: 8px; }
.menu-modern .sidebar .nav-submenu { margin: 5px 0 2px 15px; padding-left: 7px; border-color: #395570; }
.menu-modern .sidebar .nav-submenu .nav-dropdown { margin-top: 4px; }
.menu-modern .sidebar .nav-submenu .nav { padding-block: 7px; }
@media (min-width: 961px) {
  .platform-frame.collapsed .menu-appearance { display: none; }
  .menu-modern.collapsed .sidebar nav > .nav-dropdown { padding: 0; border: 0; background: transparent; }
  .menu-modern.collapsed .sidebar .nav { justify-content: center; padding-inline: 4px; }
  .menu-modern.collapsed .sidebar .nav-submenu { margin-left: 0; padding-left: 0; border: 0; }
}
@media (max-width: 960px), (pointer: coarse) {
  .platform-frame.menu-modern .sidebar .nav, .menu-style-switch button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-modern .sidebar .nav { transition: none; }
}
.reajuste-lot { margin-top: 18px; }
.reajuste-item th:nth-child(2), .reajuste-item th:nth-child(3), .reajuste-item th:nth-child(4) { text-align: right; }
.lote-modal .modal-head > div { min-width: 0; flex: 1; }
.lote-modal .modal-head h2 { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.lote-heading-field { display: flex; flex-direction: column; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.lote-heading-label { font-size: 10px; font-weight: 600; }
.lote-modal .modal-head p { overflow-wrap: anywhere; margin-top: 6px; }
.reajuste-item { border: 1px solid var(--border, #d5e4f5); border-radius: 10px; padding: 12px; margin-top: 10px; min-width: 0; }
.reajuste-item-heading, .reajuste-bases { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.reajuste-select { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.reajuste-select input { width: 18px; min-height: 18px; }
.reajuste-bases { margin: 12px 0; }
.reajuste-bases p { margin: 0; }
.reajuste-bases p .report-money { display: inline; }
.reajuste-bases input { width: 154px; }
.reajuste-panel .filters { grid-template-columns: repeat(3, minmax(0, 190px)); }
.reajuste-panel .filters input { max-width: 190px; }
@media (max-width: 700px) {
  .reajuste-panel .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .reajuste-panel .filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px), (pointer: coarse) {
  .reajuste-select { min-height: 44px; }
  .reajuste-select input { min-height: 24px; width: 24px; }
}
.person-attachment-upload { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: end; margin: 16px 0; }
[data-person-attachments] > p { margin-bottom: 12px; }
@media(max-width:700px) { .person-attachment-upload { grid-template-columns: minmax(0,1fr); } }
.site-admin { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; }
.site-admin .panel { min-width: 0; }
.site-admin .form-field.long, .site-content-modal .form-field.long { grid-column: 1/-1; }
.site-admin label input, .site-admin label textarea, .site-admin label select, .site-content-modal label input, .site-content-modal label textarea, .site-content-modal label select { font-weight: 400; }
.site-admin .radio-option, .site-content-modal .radio-option { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
@media(max-width:700px) { .site-admin .radio-option, .site-content-modal .radio-option { min-height: 44px; } }
.site-admin-actions, .site-video-upload { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.site-admin-image { display: block; max-width: 100%; max-height: 300px; object-fit: contain; margin: 12px 0; }
.site-admin-video { width: 100%; max-height: 360px; background: #102547; }
.site-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0; }
.simplified-payments .table-wrap table { min-width: 1250px; }
.simplified-payments > .filters { display: grid; grid-template-columns: minmax(220px,1fr) 190px auto; align-items: end; }
.simplified-payments > .filters .filter-name { grid-column: auto; }
@media(max-width:700px) {
  .simplified-payments > .filters { grid-template-columns: minmax(0,1fr); }
}
.simplified-payments td:nth-child(n+6):nth-child(-n+9),
.simplified-payments td:nth-child(11) { white-space: nowrap; }
.simplified-payments td:nth-child(4) { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.simplified-footer { padding-top: 16px; }
.simplified-footer .treasury-totals { flex-wrap: wrap; margin-top: 12px; }
.simplified-payment-modal { max-width: 700px; }
.simplified-payment-modal .full-width { grid-column: 1/-1; }
