/* GERADO por tools/build_styles.py. Edite styles/sources; consulte styles/README.md. */
/* fonte: shared/foundation.css */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #f0f4f1;
  --surface-strong: #e8f4ee;
  --text: #1a2520;
  --muted: #6b7a72;
  --line: #e4e8e5;
  --brand: #e8a020;
  --brand-dark: #1a2e1a;
  --brand-mid: #1a7a3a;
  --accent: #f0b93a;
  --info: #1769aa;
  --danger: #c0392b;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-soft: 0 1px 4px rgba(0,0,0,0.05);
  --sidebar-bg: #1a2e1a;
  --sidebar-active: rgba(232,160,32,0.18);
  --sidebar-text: rgba(255,255,255,0.7);
  --sidebar-text-active: #f0b93a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  box-shadow: 1px 0 0 rgba(0,0,0,0.08);
  overflow-y: auto;
}

.brand {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.brand:hover {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
}

.brand:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-footer label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.brand strong {
  line-height: 1.1;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: #fff;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.32);
  padding: 10px 10px 3px;
  margin-top: 4px;
}

.nav-primary,
.nav-accordion,
.nav-group-items {
  display: grid;
  gap: 2px;
}

.nav-accordion {
  gap: 4px;
  margin-top: 8px;
}

.nav-group {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-group-toggle {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: rgba(255,255,255,0.58);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.nav-group-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-group-toggle .nav-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  opacity: 0.8;
}

.nav-chevron {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-group.is-open .nav-chevron {
  transform: rotate(90deg);
}

.nav-group-toggle:hover,
.nav-group-toggle.group-active,
.nav-group.is-open > .nav-group-toggle {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-group-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.nav-group-items {
  padding: 2px 0 7px;
}

.nav-group-items[hidden] {
  display: none;
}

.nav-group-items > .nav-item:not(.sub-nav-item) {
  padding-left: 18px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--sidebar-text);
  background: transparent;
  text-align: left;
  font-weight: 500;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item .nav-icon {
  font-size: 1rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-item.active {
  color: var(--sidebar-text-active);
  background: var(--sidebar-active);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-item:hover:not(.active) {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-item.group-active {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
}

.sub-nav-item {
  margin-left: 14px;
  width: calc(100% - 14px);
  min-height: 34px;
  padding: 5px 10px 5px 20px;
  font-size: 0.84rem;
  opacity: 0.9;
}

.sub-nav-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
  vertical-align: middle;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.app-version {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  text-align: center;
  letter-spacing: 0.03em;
}

.sidebar-clock {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: center;
}

.sidebar-footer input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.month-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.month-button.light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.topbar-period .month-button {
  min-width: 130px;
  border-radius: 20px;
}

.content {
  min-width: 0;
  padding: 24px 28px 40px;
  background: var(--bg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar > div:first-child {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: min(420px, 38vw);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  font-size: 1.05rem;
}

.topbar p,
.panel-heading p {
  margin-top: 5px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.topbar-actions > * {
  flex: 0 1 auto;
  white-space: nowrap;
}

.persistence-status {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-left: 4px solid #c73737;
  background: #fff4f4;
  color: #a51f1f;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.backup-status {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-left: 4px solid #c47a00;
  background: #fff8e9;
  color: #7a4d00;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
}

.backup-status strong {
  color: #9a6100;
  font-weight: 850;
}

.external-status {
  display: none !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-left: 4px solid #61756b;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.external-status > strong {
  color: var(--text);
  font-weight: 850;
}

.external-status span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.external-status small {
  color: var(--muted);
  font-size: 0.78rem;
}

.notice-stack {
  position: fixed;
  top: var(--notice-header-height, 64px);
  right: 18px;
  z-index: 31;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  max-height: min(30vh, 240px);
  overflow-y: auto;
  margin: 0;
}

.notice-stack:empty {
  display: none;
}

.app-notice {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(11, 35, 25, 0.14);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-notice.success {
  border-left-color: #18834c;
}

.app-notice.warning {
  border-left-color: #c47a00;
}

.app-notice.error {
  border-left-color: #c73737;
}

.jump-highlight {
  box-shadow: 0 0 0 3px rgba(27, 127, 72, 0.22);
  transition: box-shadow 0.2s ease;
}

.app-notice button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
}

.topbar-period {
  display: grid;
  gap: 5px;
  flex: 0 1 150px;
  min-width: 130px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-actions .primary-button,
.topbar-actions .secondary-button,
.topbar-actions .import-backup-label {
  padding-left: 12px;
  padding-right: 12px;
}
/* fonte: shared/buttons.css */
.primary-button,
.secondary-button,
.ghost-button,
.ghost-light-button,
.danger-light-button {
  border: 0;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.88rem;
}

.primary-button {
  background: var(--brand-mid);
  color: #fff;
  box-shadow: none;
}

.primary-button:hover {
  background: #158034;
}

.save-button.pending {
  background: #c47a00;
  box-shadow: 0 12px 22px rgba(196, 122, 0, 0.28);
  animation: pulse-save 1.8s ease-in-out infinite;
}

.save-button.save-error,
.save-button.save-error:hover {
  background: #b42323;
  box-shadow: none;
  animation: none;
}

@keyframes pulse-save {
  0%, 100% { box-shadow: 0 12px 22px rgba(196, 122, 0, 0.28); }
  50% { box-shadow: 0 12px 28px rgba(196, 122, 0, 0.52); }
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.secondary-button:hover {
  background: var(--surface-alt);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.ghost-light-button:disabled,
.danger-light-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.file-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--brand-mid);
  font-weight: 800;
  font-size: 0.95rem;
}

.file-button input {
  display: none;
}

.import-backup-label {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  align-self: center;
}

.import-backup-label:hover {
  background: var(--surface-alt);
}

.import-backup-label input {
  display: none;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}

.ghost-button:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.ghost-light-button {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.danger-light-button {
  background: #fff7f7;
  color: #b42323;
  border: 1px solid #efc7c7;
}

.danger-light-button:hover {
  background: #fdecec;
}

.success-button {
  border: 1px solid rgba(23, 96, 67, 0.35);
  border-radius: 8px;
  background: #eaf7f1;
  color: #176043;
  font-weight: 800;
}

.danger {
  color: #ffdada;
}

.danger-outline {
  border-color: rgba(180, 59, 59, 0.38);
  color: var(--danger);
  background: #fff7f7;
}

.view {
  display: none;
}

.active-view {
  display: grid;
  gap: 18px;
}

.is-hidden {
  display: none !important;
}
/* fonte: dashboard/overview.css */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.kpi {
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.kpi-button {
  appearance: none;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
}

.kpi-button:hover,
.kpi-button[aria-expanded="true"] {
  border-color: rgba(232,160,32,0.55);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.kpi-tax::before {
  background: var(--brand);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand-mid);
  border-radius: 10px 0 0 10px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 5px;
}

.kpi-delivery-title {
  margin-bottom: 10px;
}

.kpi-delivery-split {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-delivery-box {
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
  padding: 8px 10px;
}

.kpi-delivery-box:only-child {
  grid-column: 1 / -1;
}

.kpi-delivery-box.lenha {
  background: #fffaf0;
  border-color: #ead9af;
}

.kpi .kpi-delivery-box span {
  font-size: 0.68rem;
  line-height: 1;
}

.kpi .kpi-delivery-box.lenha span {
  color: #9a6500;
}

.kpi .kpi-delivery-box strong {
  font-size: 1rem;
  margin-top: 5px;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.dashboard-financial-summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 18px;
}

.dashboard-profit-hero {
  background: linear-gradient(135deg, #eaf3fb 0%, #f7fbff 100%);
  border: 1px solid #cfe1f2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 18px;
}

.dashboard-profit-hero span,
.dashboard-profit-hero small,
.dashboard-profit-hero em,
.dashboard-block-title span {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.dashboard-profit-hero span {
  font-size: 0.8rem;
}

.dashboard-profit-hero strong {
  color: var(--info);
  display: block;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1;
  margin: 10px 0 8px;
}

.dashboard-profit-hero small {
  color: var(--info);
  font-size: 0.82rem;
}

.dashboard-profit-hero em {
  background: #fff8e7;
  border: 1px solid #ead08f;
  border-radius: 8px;
  color: #9a6500;
  font-size: 0.78rem;
  font-style: normal;
  padding: 9px 10px;
}

.dashboard-profit-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-profit-kpis .dashboard-financial-item {
  appearance: none;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  min-width: 0;
  padding: 12px;
  text-align: left;
}

.dashboard-profit-kpis .dashboard-financial-item span,
.dashboard-profit-kpis .dashboard-financial-item small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-profit-kpis .dashboard-financial-item strong {
  color: var(--text);
  display: block;
  font-size: 1.08rem;
  margin: 6px 0 0;
  white-space: nowrap;
}

.dashboard-profit-kpis .dashboard-financial-item small {
  font-size: 0.67rem;
  margin-top: 4px;
}

.dashboard-profit-kpis .dashboard-kpi-blue {
  background: #edf6ff;
  border-color: #cfe1f2;
}

.dashboard-profit-kpis .dashboard-kpi-blue strong {
  color: var(--info);
}

.dashboard-profit-kpis .dashboard-kpi-green {
  background: #eaf7ef;
  border-color: #b9dec8;
}

.dashboard-profit-kpis .dashboard-kpi-green strong {
  color: var(--brand-mid);
}

.dashboard-profit-kpis .dashboard-kpi-yellow {
  background: #fff8e7;
  border-color: #ead08f;
}

.dashboard-profit-kpis .dashboard-kpi-yellow strong {
  color: #9a6500;
}

.dashboard-profit-kpis .negative-value {
  background: #fff4f2;
  border-color: rgba(192,57,43,0.25);
}

.dashboard-profit-kpis .negative-value strong {
  color: var(--danger);
}

.dashboard-close-status,
.dashboard-dre-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.dashboard-close-status {
  grid-column: 1 / -1;
}

.dashboard-block-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dashboard-block-title h3 {
  font-size: 1rem;
  margin: 0;
}

.dashboard-block-title span {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 4px 10px;
}

.dashboard-close-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-close-step {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.dashboard-close-step span,
.dashboard-close-step small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
}

.dashboard-close-step strong {
  color: var(--text);
  display: block;
  font-size: 0.98rem;
  margin: 5px 0 2px;
  white-space: nowrap;
}

.dashboard-close-step.done {
  background: #eef9f2;
  border-color: #c9e7d4;
  border-left-color: var(--brand-mid);
}

.dashboard-close-step.warning {
  background: #fff8e7;
  border-color: #ead08f;
  border-left-color: var(--brand);
}

.dashboard-close-step.pending {
  background: #f8f9f8;
  border-left-color: #aeb8b2;
}

.dashboard-dre-card {
  grid-column: 1 / -1;
}

.dashboard-dre-list {
  display: grid;
  gap: 0;
}

.dashboard-dre-row,
.dashboard-dre-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.dashboard-dre-row span,
.dashboard-dre-row small,
.dashboard-dre-total span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-dre-row small {
  font-size: 0.66rem;
  margin-top: 2px;
}

.dashboard-dre-row strong,
.dashboard-dre-total strong {
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.dashboard-dre-row.positive strong {
  color: var(--brand-mid);
}

.dashboard-dre-row.negative strong {
  color: var(--danger);
}

.dashboard-dre-row.pending strong {
  color: #9a6500;
}

.dashboard-dre-total {
  background: #eaf3fb;
  border: 1px solid #cfe1f2;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.dashboard-dre-total strong {
  color: var(--info);
  font-size: 1.15rem;
}

.dashboard-financial-summary {
  display: block;
}

.dashboard-reference-shell {
  display: grid;
  gap: 14px;
}

.dashboard-reference-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.dashboard-financial-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 12px;
}

.dashboard-financial-mini span,
.dashboard-financial-mini small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-financial-mini strong {
  color: var(--text);
  display: block;
  font-size: clamp(1.08rem, 1.35vw, 1.42rem);
  line-height: 1.1;
  margin: 9px 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dashboard-financial-mini.dashboard-kpi-blue strong {
  color: var(--info);
}

.dashboard-financial-mini.dashboard-kpi-green strong {
  color: var(--brand-mid);
}

.dashboard-financial-mini.dashboard-kpi-yellow strong {
  color: #b87400;
}

.dashboard-financial-mini.dashboard-kpi-red strong {
  color: var(--danger);
}

.dashboard-trend {
  margin-top: 8px;
}

.dashboard-trend.up {
  color: var(--brand-mid);
}

.dashboard-trend.down {
  color: var(--danger);
}

.dashboard-close-status {
  padding: 16px 18px;
}

.dashboard-close-status .dashboard-block-title p,
.dashboard-pending-card .dashboard-block-title p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 4px 0 0;
}

.dashboard-close-grid {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 6px 4px 0;
}

.dashboard-close-step {
  background: transparent;
  border: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 0 5px;
  position: relative;
  text-align: center;
}

.dashboard-close-step::after {
  background: #cfd7d2;
  content: "";
  height: 2px;
  left: calc(50% + 18px);
  position: absolute;
  right: calc(-50% + 18px);
  top: 17px;
}

.dashboard-close-step:last-child::after {
  display: none;
}

.dashboard-close-step.done::after {
  background: var(--brand-mid);
}

.dashboard-step-dot {
  align-items: center;
  background: #f4f6f5;
  border: 2px solid #d7dfda;
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
  z-index: 1;
}

.dashboard-close-step.done .dashboard-step-dot {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.dashboard-close-step.pending .dashboard-step-dot {
  background: #fff8e7;
  border-color: var(--brand);
  color: #b87400;
}

.dashboard-close-step.preview .dashboard-step-dot {
  background: #f2f4f3;
  border-color: #cfd7d2;
  color: var(--muted);
}

.dashboard-close-step span {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.dashboard-close-step small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.dashboard-close-step.done small {
  color: var(--brand-mid);
}

.dashboard-close-step.pending small {
  color: #b87400;
}

.dashboard-reference-bottom {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
}

.dashboard-dre-card,
.dashboard-pending-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: auto;
  min-width: 0;
  padding: 14px;
}

.dashboard-dre-row,
.dashboard-dre-total {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) 84px;
}

.dashboard-dre-row strong,
.dashboard-dre-row em,
.dashboard-dre-total strong,
.dashboard-dre-total em {
  font-style: normal;
  text-align: right;
}

.dashboard-dre-row em,
.dashboard-dre-total em {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-dre-row.negative em,
.dashboard-dre-row.negative strong,
.dashboard-dre-total.negative em,
.dashboard-dre-total.negative strong {
  color: var(--danger);
}

.dashboard-dre-total {
  background: #eef8f2;
  border-color: #c7e4d1;
}

.dashboard-dre-note,
.dashboard-pending-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 12px 0 0;
}

.dashboard-pending-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-pending-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px 14px;
}

.dashboard-pending-row + .dashboard-pending-row {
  border-top: 1px solid var(--line);
}

.dashboard-pending-row strong,
.dashboard-pending-row small {
  display: block;
}

.dashboard-pending-row strong {
  color: var(--text);
  font-size: 0.84rem;
}

.dashboard-pending-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.dashboard-pending-row > span {
  background: #fff8e7;
  border: 1px solid #ead08f;
  border-radius: 999px;
  color: #b87400;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 9px;
  white-space: nowrap;
}

.dashboard-pending-row button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.dashboard-pending-note {
  background: #eef5ff;
  border: 1px solid #bfd6f5;
  border-radius: 8px;
  color: #235c9c;
  padding: 10px 12px;
}

.dashboard-audit-block {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.dashboard-audit-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-audit-heading h3 {
  margin: 0;
}

.dashboard-audit-heading small,
.dashboard-audit-row span,
.dashboard-audit-external {
  color: var(--muted);
}

.dashboard-audit-heading > strong {
  background: #eef8f2;
  border: 1px solid #c7e4d1;
  border-radius: 999px;
  color: var(--brand-mid);
  font-size: 0.72rem;
  padding: 6px 10px;
  white-space: nowrap;
}

.dashboard-audit-heading > strong.erro {
  background: #fff3f1;
  border-color: #efc5bd;
  color: var(--danger);
}

.dashboard-audit-equation {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.74rem;
  gap: 7px;
  padding: 10px;
}

.dashboard-audit-equation strong {
  color: var(--brand-mid);
}

.dashboard-audit-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.dashboard-audit-row {
  border-left: 4px solid #c7e4d1;
  display: grid;
  font-size: 0.74rem;
  gap: 2px;
  padding: 7px 9px;
}

.dashboard-audit-row.actionable {
  border-bottom: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: left;
  width: 100%;
}

.dashboard-audit-row.actionable:hover,
.dashboard-audit-row.actionable:focus-visible {
  box-shadow: 0 0 0 2px rgba(196, 122, 0, 0.22);
  outline: none;
}

.dashboard-audit-row em {
  color: var(--brand-mid);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 3px;
}

.dashboard-audit-row.erro {
  background: #fff6f4;
  border-left-color: var(--danger);
}

.dashboard-audit-row.aviso {
  background: #fff9ec;
  border-left-color: #d99a20;
}

.dashboard-audit-row.ok {
  background: #f2faf5;
}

#tabelaEntregas tr.jump-highlight td {
  background: #fff3cf;
  box-shadow: inset 0 2px 0 rgba(196, 122, 0, 0.45), inset 0 -2px 0 rgba(196, 122, 0, 0.45);
}

.dashboard-audit-external {
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 10px 0 0;
  padding-top: 9px;
}

.dashboard-reference-hidden-tax {
  display: none;
}

.dashboard-financial-result {
  background: #eaf3fb;
  border: 1px solid #cfe1f2;
  border-radius: 8px;
  padding: 16px;
}

.dashboard-financial-result span,
.dashboard-financial-result small {
  color: var(--muted);
  display: block;
}

.dashboard-financial-result span {
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-financial-result strong {
  color: var(--info);
  display: block;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  margin: 7px 0 8px;
}

.dashboard-financial-result small {
  color: var(--info);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-financial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-financial-grid > div,
.dashboard-financial-grid > button {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.dashboard-financial-grid > button {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.dashboard-tax-trigger {
  cursor: pointer;
}

.dashboard-tax-trigger:hover,
.dashboard-tax-trigger[aria-expanded="true"] {
  background: #fff7f5;
  border-color: rgba(192,57,43,0.38);
  box-shadow: 0 2px 8px rgba(192,57,43,0.08);
}

.dashboard-financial-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-financial-grid strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-top: 5px;
  white-space: nowrap;
}

.dashboard-financial-grid small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
}

.dashboard-financial-grid .negative-value strong {
  color: var(--danger);
}

.dashboard-financial-grid .positive-value strong {
  color: var(--info);
}

.dashboard-tax-panel .panel-heading {
  border-bottom: 1px solid var(--line);
}

.dashboard-tax-panel-body {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
}

.dashboard-tax-panel-top,
.dashboard-tax-total-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
}

.dashboard-tax-panel-top span,
.dashboard-tax-total-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-tax-panel-top strong {
  color: var(--text);
  font-size: 1.05rem;
  margin-left: 8px;
}

.dashboard-tax-panel-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0;
}

.dashboard-tax-panel-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.dashboard-tax-chip-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-tax-chip {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.dashboard-tax-chip-icms {
  background: #fff7f5;
  border-color: rgba(192,57,43,0.22);
}

.dashboard-tax-chip span,
.dashboard-tax-chip small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
}

.dashboard-tax-chip em {
  font-style: normal;
  white-space: nowrap;
}

.dashboard-tax-chip strong {
  color: var(--danger);
  display: block;
  font-size: 0.98rem;
  margin: 5px 0 0;
  white-space: nowrap;
}

.dashboard-tax-total-strip {
  background: var(--green-soft);
  border-top: 2px solid rgba(42,123,90,0.25);
  padding: 10px 12px;
}

.dashboard-tax-total-strip strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.dashboard-tax-table th,
.dashboard-tax-table td,
.tax-table th,
.tax-table td {
  white-space: nowrap;
}

.dashboard-tax-table td:nth-child(3),
.tax-table td:nth-child(1) {
  white-space: normal;
}
/* fonte: shared/panels.css */
.period-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.period-panel label {
  max-width: 240px;
  width: 100%;
}

.period-panel p {
  color: var(--muted);
  text-align: right;
}

.panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel-heading.split {
  align-items: flex-start;
}

.panel-toggle {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.panel-toggle > span {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--brand-accent);
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.panel-toggle[aria-expanded="true"] > span {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.dashboard-collapsible-panel .panel-heading {
  border-bottom: 0;
}

.dashboard-collapsible-panel .collapsed-content {
  border-top: 1px solid var(--line);
}

.dashboard-panel-toggle small {
  display: block;
  margin-top: 4px;
}

.dashboard-collapse-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-collapse-summary.alert-warning {
  color: #d48a00;
}

.dashboard-collapse-summary.alert-critical {
  color: #d12626;
}

.dashboard-panel-toggle.has-warning-alert > span {
  border-color: #e8b357;
  color: #b06d00;
}

.dashboard-panel-toggle.has-critical-alert > span {
  border-color: #e6a5a5;
  color: #c62828;
}

.collapsed-content[hidden] {
  display: none !important;
}

.warning-text {
  color: #a36a00;
  font-weight: 800;
}

.danger-text {
  color: var(--danger);
  font-weight: 800;
}
/* fonte: people/schedule-and-costs.css */
.unit-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.unit-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
}

.unit-tab.active {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
  font-weight: 600;
}

.panel-heading select {
  min-width: 220px;
}

.inline-filter {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 8px;
  white-space: nowrap;
}

.inline-filter select {
  min-width: 180px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.88rem;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-alt);
}

.stock-table {
  min-width: 0;
  table-layout: fixed;
}

.stock-table th,
.stock-table td {
  padding: 9px 8px;
  font-size: 0.86rem;
}

.stock-table th {
  font-size: 0.68rem;
  line-height: 1.15;
}

.stock-table th:first-child,
.stock-table td:first-child {
  width: 17%;
}

.stock-table .table-input {
  width: 92px;
  min-height: 30px;
  padding: 6px 7px;
}

.stock-total-row td {
  background: #fff8e8;
  border-top: 2px solid #d8ba7a;
  font-weight: 800;
}

.scale-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.scale-actions label {
  min-width: 190px;
}

.hint-line {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.scale-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dfd4bd;
  border-radius: 8px;
  background: #fffaf0;
}

.scale-editor > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.scale-editor span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.scale-editor-chips,
.scale-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scale-editor-chips button {
  border: 1px solid #d9d4ca;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.scale-editor-chips button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.scale-editor-chips button.vacation-disabled,
.scale-autocomplete button:disabled {
  background: #fff4f2;
  border-color: #efc5bf;
  color: #9b3a2f;
  cursor: not-allowed;
  opacity: 0.72;
}

.scale-autocomplete button:disabled:hover {
  background: #fff4f2;
}

.scale-easy-builder {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #c9ddd0;
  border-radius: 8px;
  background: #f4faf6;
}

.scale-alternating-builder {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #b8d3c1;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #f2f8f4;
}

.scale-alternating-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.scale-alternating-title {
  display: grid;
  gap: 2px;
  align-self: center;
}

.scale-alternating-title strong {
  font-size: 1.02rem;
}

.scale-alternating-title span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.scale-alternating-settings {
  display: grid;
  grid-template-columns: minmax(145px, 180px) minmax(160px, 190px) auto;
  gap: 8px;
  align-items: end;
}

.scale-alternating-settings label:not(.inline-check) {
  display: grid;
  gap: 5px;
}

.scale-alternating-settings label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.scale-alternating-admin-check {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 10px;
  white-space: nowrap;
}

.scale-alternating-admin-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.scale-alternating-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.scale-alternating-group {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 92px;
  padding: 9px 10px;
  border: 1px solid #d5e1d8;
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  background: #fff;
}

.scale-alternating-group.cycle-b {
  border-top-color: #d78b2e;
}

.scale-alternating-group.cycle-admin {
  border-top-color: #769181;
  min-height: 0;
}

.scale-alternating-group.is-disabled {
  opacity: 0.58;
}

.scale-alternating-group:last-child {
  grid-column: 1 / -1;
}

.scale-alternating-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.scale-alternating-group-heading strong {
  white-space: nowrap;
}

.scale-alternating-group-heading small {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.scale-alternating-group-heading small b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e9f2ec;
  color: var(--brand-dark);
  font-size: 0.72rem;
}

.scale-selected-team {
  align-items: center;
}

.scale-selected-team button.active,
.scale-add-person {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.scale-selected-team button.active span {
  margin-left: 5px;
  font-size: 1rem;
  line-height: 0.8;
}

.scale-add-person {
  border-style: dashed !important;
  border-color: #97b4a1 !important;
  background: #f8fbf9 !important;
  color: var(--brand-dark) !important;
}

.scale-empty-team {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
}

.scale-alternating-changes {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #d5e1d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.scale-alternating-changes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scale-alternating-changes-heading > div {
  display: grid;
  gap: 1px;
}

.scale-alternating-changes-heading small,
.scale-alternating-change-empty,
.scale-alternating-change-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.scale-alternating-change-empty {
  margin: 0;
}

.scale-alternating-change-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.scale-alternating-change-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e0e7e2;
  border-radius: 7px;
  background: #fff;
}

.scale-alternating-change-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.scale-alternating-change-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-change-period {
  padding: 4px 6px;
  border-radius: 6px;
  background: #fff4dd;
  color: #8b5b0a;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.scale-change-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scale-alternating-summary {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid #d5e1d8;
  border-radius: 7px;
  background: #fff;
}

.scale-alternating-summary > span {
  padding: 6px 11px;
  border-right: 1px solid #e2e9e4;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.scale-alternating-summary > span:last-child {
  border-right: 0;
}

.scale-alternating-summary strong {
  color: var(--text);
  font-size: 0.8rem;
}

.scale-alternating-summary small {
  margin-left: 3px;
}

.scale-alternating-summary .has-warning strong {
  color: var(--danger);
}

.scale-alternating-summary .is-ok strong {
  color: var(--brand-dark);
}

.scale-alternating-summary .scale-vacation-period-summary,
.scale-rich-base-summary .scale-vacation-period-summary {
  border-right: 0;
  border-top: 1px solid #e2e9e4;
  display: grid;
  flex: 1 1 100%;
  gap: 2px;
  white-space: normal;
}

.scale-alternating-summary .scale-vacation-period-summary small,
.scale-rich-base-summary .scale-vacation-period-summary small {
  line-height: 1.35;
  margin-left: 0;
}

.scale-alternating-summary .scale-vacation-period-summary.has-vacation strong,
.scale-rich-base-summary .scale-vacation-period-summary.has-vacation strong {
  color: #8b5b0a;
}

#statusEscalaAlternada {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.scale-alternating-preview-details {
  border-top: 1px solid #d5e1d8;
  padding-top: 10px;
}

.scale-alternating-preview-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 800;
}

.scale-alternating-preview {
  max-height: 330px;
  margin-top: 10px;
}

.scale-alternating-preview table {
  min-width: 760px;
}

.scale-alternating-preview tr.cycle-a td:first-child,
.scale-alternating-preview tr.cycle-b td:first-child {
  border-left: 4px solid var(--brand);
  font-weight: 900;
}

.scale-alternating-preview tr.cycle-b td:first-child {
  border-left-color: #bf7a2c;
}

.scale-alternating-preview .vacation-warning {
  color: var(--danger);
  font-weight: 800;
}

.scale-alternating-preview .scale-change-warning {
  display: block;
  margin-top: 3px;
  color: #a56709;
  font-size: 0.7rem;
  font-weight: 900;
}

.scale-alternating-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 36, 25, 0.42);
  backdrop-filter: blur(2px);
}

.scale-alternating-picker {
  display: grid;
  width: min(620px, 100%);
  max-height: min(78vh, 680px);
  overflow: hidden;
  border: 1px solid #c9d8ce;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(17, 36, 25, 0.24);
}

.scale-alternating-picker header,
.scale-alternating-picker footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.scale-alternating-picker header {
  border-bottom: 1px solid var(--line);
}

.scale-alternating-picker header > div {
  display: grid;
  gap: 2px;
}

.scale-alternating-picker header small {
  color: var(--muted);
  font-weight: 700;
}

.scale-alternating-picker footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.scale-alternating-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  padding: 12px 14px;
}

.scale-alternating-picker-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.scale-alternating-picker-list button:hover {
  border-color: #91b29c;
  background: #f4faf6;
}

.scale-alternating-picker-list button.active {
  border-color: var(--brand);
  background: #e9f5ed;
}

.scale-alternating-picker-list button span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-alternating-picker-list button small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.scale-change-dialog {
  width: min(720px, 100%);
}

.scale-change-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.scale-change-form label {
  gap: 4px;
}

.scale-change-form label[hidden] {
  display: none;
}

.scale-change-dialog > .form-status {
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  color: var(--danger);
}

.scale-easy-builder-heading,
.scale-easy-actions,
.scale-easy-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scale-easy-builder-heading {
  justify-content: space-between;
}

.scale-easy-builder-heading > div,
.scale-easy-step > div {
  display: grid;
  gap: 2px;
}

.scale-easy-builder-heading span,
.scale-easy-step small,
#statusEquipeEscala {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.scale-easy-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.scale-easy-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) repeat(2, minmax(130px, 0.8fr)) minmax(170px, 1fr);
  gap: 10px;
}

.scale-easy-fields label {
  display: grid;
  gap: 5px;
}

.scale-easy-fields label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.scale-easy-actions {
  flex-wrap: wrap;
}

#statusEquipeEscala {
  min-width: 190px;
}

.scale-rich-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.scale-rich-base-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scale-rich-base-group {
  align-content: start;
  background: #fff;
  border: 1px solid #d5e1d8;
  border-radius: 8px;
  border-top: 3px solid var(--brand);
  display: grid;
  gap: 8px;
  min-height: 102px;
  min-width: 0;
  padding: 10px;
}

.scale-rich-base-group:nth-child(2) {
  border-top-color: #d98e2f;
}

.scale-rich-base-group:nth-child(3) {
  border-top-color: #516d8b;
}

.scale-rich-base-group:nth-child(4) {
  border-top-color: #769181;
}

.scale-rich-base-group-heading {
  display: grid;
  gap: 4px;
}

.scale-rich-base-group-heading strong {
  font-size: 0.92rem;
}

.scale-rich-base-group-heading small {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.74rem;
  font-weight: 750;
  justify-content: space-between;
}

.scale-rich-base-group-heading small b {
  align-items: center;
  background: #e9f2ec;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 0.7rem;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 5px;
}

.scale-rich-base-summary {
  background: #fff;
  border: 1px solid #d5e1d8;
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.scale-rich-base-summary > span {
  border-right: 1px solid #e2e9e4;
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  font-weight: 750;
  gap: 1px;
  padding: 7px 11px;
}

.scale-rich-base-summary > span:last-child {
  border-right: 0;
}

.scale-rich-base-summary strong {
  color: var(--text);
  font-size: 0.8rem;
}

.scale-rich-base-summary .has-warning strong {
  color: var(--danger);
}

.scale-rich-base-summary .is-ok strong {
  color: var(--brand-dark);
}

.scale-rich-base-actions {
  justify-content: flex-end;
}

#statusEscalaBaseRich {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .scale-alternating-toolbar {
    grid-template-columns: 1fr auto;
  }

  .scale-alternating-settings {
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
  }

  .scale-alternating-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scale-rich-base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scale-easy-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .scale-easy-builder-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .scale-easy-fields {
    grid-template-columns: 1fr;
  }

  .scale-alternating-settings,
  .scale-alternating-groups,
  .scale-rich-base-grid {
    grid-template-columns: 1fr;
  }

  .scale-rich-heading-actions {
    justify-content: flex-start;
  }

  .scale-alternating-group:last-child {
    grid-column: auto;
  }

  .scale-alternating-settings {
    grid-row: auto;
    grid-column: auto;
  }

  .scale-alternating-toolbar {
    grid-template-columns: 1fr;
  }

  .scale-alternating-picker-list {
    grid-template-columns: 1fr;
  }

  .scale-alternating-changes-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .scale-alternating-change-list,
  .scale-change-form {
    grid-template-columns: 1fr;
  }

  .scale-alternating-change-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scale-change-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.scale-copy-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.scale-pattern-panel {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  background: #f7faf6;
}

.scale-pattern-panel > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.scale-pattern-panel span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.scale-pattern-panel label {
  min-width: 96px;
}

.scale-pattern-panel button {
  min-height: 36px;
}

#statusPadraoEscala {
  min-width: 150px;
}

.scale-wrap {
  max-height: 64vh;
}

.scale-table {
  min-width: 900px;
  table-layout: fixed;
}

.scale-table th,
.scale-table td {
  padding: 7px 8px;
  white-space: normal;
  vertical-align: top;
}

.scale-table th:first-child,
.scale-table td:first-child {
  width: 42px;
  text-align: center;
}

.scale-table th:nth-child(2),
.scale-table td:nth-child(2) {
  width: 76px;
}

.scale-table th:nth-child(3),
.scale-table td:nth-child(3) {
  width: 82px;
}

.scale-select-col input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.scale-table textarea {
  width: 100%;
  min-height: 46px;
  resize: vertical;
  border: 1px solid #d9d4ca;
  border-radius: 6px;
  padding: 6px 7px;
  font: inherit;
  line-height: 1.25;
}

.scale-table tr.scale-holiday-row td {
  background: #fce4e4;
  color: #7f1d1d;
}

.scale-table tr.scale-holiday-row textarea {
  border-color: #efb6b6;
  background: #fff7f7;
}

.holiday-label {
  display: block;
  margin-top: 3px;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.scale-table textarea.active-scale-cell {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(166, 103, 0, 0.16);
  background: #fffdf7;
}

.scale-autocomplete {
  background: #fff;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(19, 42, 31, 0.18);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: fixed;
  z-index: 1000;
}

.scale-autocomplete[hidden] {
  display: none;
}

.scale-autocomplete button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.scale-autocomplete button:hover {
  background: #edf6f0;
}

.scale-autocomplete small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.scale-summary-table {
  min-width: 720px;
}

.hours-entry-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(110px, 0.6fr) minmax(90px, 0.5fr) minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
  align-items: end;
}

.hours-table {
  min-width: 980px;
}

.hours-summary-table {
  min-width: 760px;
}

.hours-summary-table th,
.hours-summary-table td {
  padding: 7px 7px;
}

.employee-total-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  padding: 18px;
}

.employee-total-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.employee-total-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.employee-total-card-button:hover,
.employee-total-card-button.expanded {
  border-color: rgba(166, 103, 0, 0.48);
  box-shadow: 0 10px 24px rgba(70, 45, 12, 0.1);
}

.employee-total-card-button:focus-visible {
  outline: 3px solid rgba(166, 103, 0, 0.35);
  outline-offset: 2px;
}

.employee-total-card span,
.employee-total-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.employee-total-card strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 1.4rem;
}

.employee-total-card.flamma-unit {
  border-color: rgba(45, 105, 80, 0.2);
  background: #f3faf6;
}

.employee-total-card.bioenergetic-unit {
  border-color: rgba(56, 89, 140, 0.2);
  background: #f4f7fd;
}

.employee-total-card.grand-total {
  border-color: rgba(166, 103, 0, 0.78);
  background: #a66700;
  color: #fff;
}

.employee-total-card.company-total {
  border-color: rgba(45, 105, 80, 0.78);
  background: #2d6950;
  color: #fff;
}

.employee-total-card.grand-total span,
.employee-total-card.grand-total small,
.employee-total-card.company-total span,
.employee-total-card.company-total small {
  color: rgba(255, 255, 255, 0.86);
}

.employee-total-expanded {
  grid-column: 1 / -1;
  border: 1px solid rgba(80, 63, 42, 0.16);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fffdfa;
}

.employee-total-expanded h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.employee-total-expanded h4 {
  margin: 16px 0 8px;
  color: var(--danger);
  font-size: 0.9rem;
}

.employee-total-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding-left: 20px;
}

.employee-total-list li {
  min-width: 0;
  padding-left: 4px;
}

.employee-total-list strong {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.employee-total-list-away,
.employee-total-list-note {
  border-top: 1px solid rgba(176, 68, 68, 0.16);
  padding-top: 10px;
}

.employee-total-expanded h4.employee-off-payroll-heading {
  color: var(--primary);
}

.employee-total-list-off-payroll {
  border-top: 1px solid rgba(45, 105, 80, 0.18);
  padding-top: 10px;
}

.employee-off-payroll-tag {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.employee-unit-off-payroll {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.employee-unit-off-payroll h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
/* fonte: reports/preview.css */
.reports-toolbar {
  overflow: visible;
}

.reports-actions,
.reports-filters {
  display: flex;
  align-items: end;
  gap: 10px;
}

.reports-actions {
  flex: 0 0 auto;
}

.reports-filters {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.reports-filters label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reports-filters [hidden] {
  display: none !important;
}

.reports-filter-note {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.reports-filter-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.reports-filter-note strong {
  font-size: 0.9rem;
}

.reports-preview {
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8edea;
}

.report-paper {
  box-sizing: border-box;
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 14mm);
  overflow: hidden;
  border: 1px solid #d8dedb;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 47, 37, 0.12);
  color: #18231e;
}

.report-paper-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-mid);
}

.report-brand {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 3px;
}

.report-brand img {
  width: min(260px, 100%);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.report-brand div,
.report-meta {
  display: grid;
  gap: 3px;
}

.report-brand strong {
  font-size: 1rem;
}

.report-brand span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-meta {
  justify-items: end;
}

.report-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-meta strong {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.report-meta .is-preview {
  border: 1px solid #e5bd67;
  background: #fff8e9;
  color: #946000;
}

.report-meta .is-closed {
  border: 1px solid #a8cfb9;
  background: #edf8f1;
  color: #1d7147;
}

.report-paper-header > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.report-paper-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.report-paper-kpis > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce5df;
  border-radius: 6px;
  background: #f7fbf8;
}

.report-paper-kpis span,
.report-paper-kpis strong {
  display: block;
}

.report-paper-kpis span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.report-paper-kpis strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #146ea8;
  font-size: clamp(0.9rem, 1.8vw, 1.08rem);
}

.report-paper-section {
  margin-top: 14px;
  break-inside: avoid;
}

.report-paper-section h2 {
  margin: 0 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dfe6e2;
  font-size: 0.82rem;
}

.report-statement {
  display: grid;
}

.report-statement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 5px 4px;
  border-bottom: 1px solid #edf0ee;
}

.report-statement-row > div {
  min-width: 0;
}

.report-statement-row strong,
.report-statement-row small {
  display: block;
}

.report-statement-row strong {
  font-size: 0.73rem;
}

.report-statement-row small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.61rem;
}

.report-statement-row > span {
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 850;
}

.report-statement-row.income > span,
.report-statement-row.result > span {
  color: #167247;
}

.report-statement-row.expense > span {
  color: var(--danger);
}

.report-statement-row.total {
  margin-top: 2px;
  padding: 7px 6px;
  border-bottom-color: #bfcfc6;
  background: #f4f8f5;
}

.report-statement-row.total strong,
.report-statement-row.total > span {
  font-size: 0.79rem;
}

.report-paper-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 14px;
}

.report-paper table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.66rem;
}

.report-paper th,
.report-paper td {
  padding: 6px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #e5eae7;
  text-align: left;
}

.report-paper th {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.report-paper th:not(:first-child),
.report-paper td:not(:first-child) {
  text-align: right;
}

.report-pending-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-pending-section li {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding-left: 8px;
  border-left: 3px solid #d69b24;
}

.report-pending-section li.is-clear {
  border-left-color: #2d8b5a;
}

.report-pending-section strong,
.report-pending-section span {
  overflow-wrap: anywhere;
  font-size: 0.62rem;
}

.report-pending-section span {
  color: var(--muted);
}

.report-unit-note {
  margin-top: 18px;
  padding: 10px 12px;
  border-left: 4px solid #247b52;
  background: #f4f8f5;
}

.report-unit-note strong,
.report-unit-note p {
  display: block;
  margin: 0;
  font-size: 0.7rem;
}

.report-unit-note p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.report-unit .report-paper-kpis small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 750;
}

.report-unit-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.report-unit-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #dce5df;
  border-radius: 6px;
  background: #f7fbf8;
}

.report-unit-check.warning {
  border-color: #e6c77f;
  background: #fff9eb;
}

.report-unit-check > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #dff3e7;
  color: #197249;
  font-size: 0.68rem;
  font-weight: 900;
}

.report-unit-check.warning > span {
  background: #fbe8b8;
  color: #9a6500;
}

.report-unit-check strong,
.report-unit-check small {
  display: block;
  overflow-wrap: anywhere;
}

.report-unit-check strong {
  font-size: 0.65rem;
}

.report-unit-check small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.25;
}

.report-unit-check b {
  font-size: 0.7rem;
}

@media (max-width: 760px) {
  .report-unit-check-list {
    grid-template-columns: 1fr;
  }
}

.report-paper-footer {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #dfe6e2;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.4;
}

.report-general {
  padding: 12mm;
}

.report-general .report-paper-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 12px;
}

.report-general .report-brand img {
  width: min(285px, 100%);
  height: 44px;
}

.report-general .report-brand strong {
  font-size: 1.02rem;
}

.report-general .report-brand span,
.report-general .report-meta span {
  font-size: 0.66rem;
}

.report-general .report-meta strong {
  padding: 0;
  color: #18231e;
  font-size: 0.68rem;
}

.report-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.report-title-row h1,
.report-title-row p {
  margin: 0;
}

.report-title-row h1 {
  font-size: 1.34rem;
  line-height: 1.15;
}

.report-title-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.report-status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.report-status-pill.is-preview {
  background: #fff0c8;
  color: #976200;
}

.report-status-pill.is-closed {
  background: #e5f4eb;
  color: #167247;
}

.report-general .report-paper-kpis {
  gap: 10px;
  margin: 14px 0 12px;
}

.report-general .report-paper-kpis > div {
  min-height: 66px;
  padding: 11px 12px;
  background: #fff;
}

.report-general .report-paper-kpis strong {
  color: #1670b5;
  font-size: 1.03rem;
  overflow-wrap: normal;
  white-space: nowrap;
}

.report-general .report-paper-kpis strong.is-income,
.report-general .report-paper-kpis strong.is-result {
  color: #16854d;
}

.report-general .report-paper-kpis strong.is-negative {
  color: var(--danger);
}

.report-general .report-paper-kpis small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.25;
}

.report-block {
  overflow: hidden;
  border: 1px solid #d3ddd7;
  border-radius: 6px;
}

.report-block > h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #d3ddd7;
  background: #f3f7f4;
  font-size: 0.72rem;
}

.report-block > h2 strong {
  white-space: nowrap;
}

.report-general .report-statement-row {
  padding: 5px 10px;
}

.report-general .report-statement-row strong,
.report-general .report-statement-row > span {
  font-size: 0.69rem;
}

.report-general .report-statement-row small {
  font-size: 0.57rem;
}

.report-general .report-statement-row.total {
  margin: 0;
  padding: 7px 10px;
  background: #e8f4ec;
}

.report-general .report-statement-row.total strong,
.report-general .report-statement-row.total > span {
  font-size: 0.74rem;
}

.report-general .report-statement-group,
.report-general .report-statement-percent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 70px;
  gap: 10px;
  align-items: center;
}

.report-general .report-statement-group {
  padding: 6px 10px;
  border-bottom: 1px solid #d3ddd7;
  background: #f3f7f4;
}

.report-general .report-statement-group.report-statement-subgroup {
  background: #f8faf9;
  border-left: 4px solid #8bb8a0;
  padding-left: 12px;
}

.report-general .report-statement-group strong {
  color: var(--brand-dark);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.report-general .report-statement-group span,
.report-general .report-statement-group em {
  color: var(--muted);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.report-general .report-statement-percent > span,
.report-general .report-statement-percent > em {
  white-space: nowrap;
  text-align: right;
}

.report-general .report-statement-percent > em {
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.report-general .report-statement-percent.income > em,
.report-general .report-statement-percent.result > em {
  color: #167247;
}

.report-general .report-statement-percent.expense > em {
  color: var(--danger);
}

.report-general .report-statement-percent.total > em {
  font-size: 0.71rem;
}

.report-provision-note {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #b9d6c4;
  border-left: 4px solid #247b52;
  border-radius: 6px;
  background: #f2f8f4;
}

.report-provision-note strong {
  color: var(--brand-dark);
  font-size: 0.68rem;
}

.report-provision-note span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.35;
}

.report-composition-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-mini-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #e4eae6;
  font-size: 0.65rem;
}

.report-mini-list > div:last-child {
  border-bottom: 0;
}

.report-mini-list .total {
  background: #e8f4ec;
  font-weight: 850;
}

.report-mini-list strong {
  white-space: nowrap;
}

.report-centers table col:nth-child(1) {
  width: 35%;
}

.report-centers table col:nth-child(2) {
  width: 21%;
}

.report-centers table col:nth-child(3) {
  width: 22%;
}

.report-centers table col:nth-child(4) {
  width: 22%;
}

.report-centers th,
.report-centers td {
  padding: 5px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2;
}

.report-centers table {
  min-width: 0;
  max-width: 100%;
}

.report-centers th:nth-child(2),
.report-centers td:nth-child(2),
.report-centers th:nth-child(3),
.report-centers td:nth-child(3) {
  white-space: nowrap;
}

.report-centers th:first-child,
.report-centers td:first-child {
  text-align: left;
}

.report-centers .report-status-positive,
.report-centers .report-status-expense {
  font-weight: 850;
}

.report-centers .report-status-positive {
  color: #16854d;
}

.report-centers .report-status-expense {
  color: var(--danger);
}

.report-expenses-centers table col:nth-child(1) {
  width: 46%;
}

.report-expenses-centers table col:nth-child(2) {
  width: 18%;
}

.report-expenses-centers table col:nth-child(3),
.report-expenses-centers table col:nth-child(4) {
  width: 18%;
}

.report-expenses-centers .report-center-fleet td {
  background: #fff8e9;
  color: #704a00;
  font-weight: 850;
}

.report-expenses-centers .report-centers-total td {
  background: #e8f4ec;
  color: var(--brand-dark);
  font-weight: 850;
}

.report-center-warning {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #ead9a9;
  background: #fff8e9;
  color: #704a00;
  font-size: 0.63rem;
  line-height: 1.4;
}

.report-center-warning strong {
  color: #704a00;
}

.report-center-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #f7faf8;
}

.report-center-print-table,
.report-center-print-pages {
  display: none;
}

.report-center-print-note {
  display: none;
}

.report-print-only {
  display: none !important;
}

.report-center-detail-card {
  overflow: hidden; border: 1px solid #d3ddd7; border-radius: 6px; background: #fff;
  display: flex; flex-direction: column;
}
.report-center-detail-card > header {
  padding: 8px 9px; border-bottom: 1px solid #d3ddd7; background: #eef6f1;
  min-height: 48px; box-sizing: border-box;
}
.report-center-detail-card > header > div { display: grid; gap: 3px; }
.report-center-detail-card > header strong { color: var(--brand-dark); font-size: .8rem; }
.report-center-detail-card > header small { color: var(--muted); font-size: .65rem; }
.report-center-detail-card > table { height: auto; margin: 0; table-layout: fixed; }
.report-center-detail-card table col:first-child { width: 47%; }
.report-center-detail-card table col:nth-child(2) { width: 34%; }
.report-center-detail-card table col:nth-child(3) { width: 19%; }
.report-center-detail-card th, .report-center-detail-card td {
  padding: 4px 6px; overflow: visible; text-overflow: clip; font-size: .7rem; line-height: 1.35;
}
.report-center-detail-card th:not(:first-child), .report-center-detail-card td:not(:first-child) {
  overflow-wrap: normal; white-space: normal; text-align: right; font-variant-numeric: tabular-nums;
}
.report-center-detail-card thead th { font-size: .62rem; }
.report-center-detail-card tfoot th { background: #e8f4ec; color: var(--brand-dark); font-weight: 750; }
.report-center-detail-card td small { display: block; color: var(--muted); }
.report-center-explanations { padding: 8px 0; font-size: .65rem; line-height: 1.4; color: var(--muted); }
.report-center-explanations p { margin: 0 0 3px; }
.report-center-screen-explanations { padding: 0 10px; }
.report-center-empty {
  color: var(--muted);
  text-align: center !important;
}

.report-center-note {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid #d3ddd7;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.4;
}

.report-distribution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #d3ddd7;
  border-radius: 6px;
  font-size: 0.68rem;
}

.report-distribution > div {
  display: flex;
  gap: 28px;
}

.report-distribution span,
.report-distribution span strong {
  display: block;
}

.report-distribution span {
  color: var(--muted);
  font-size: 0.57rem;
}

.report-distribution span strong {
  margin-top: 2px;
  color: var(--danger);
  font-size: 0.69rem;
  white-space: nowrap;
}

.report-distribution span:last-child strong {
  color: #1670b5;
}

.report-general .report-paper-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 8px;
}

@media (max-width: 1180px) {
  .topbar {
    display: grid;
    align-items: start;
  }

  .topbar > div:first-child {
    max-width: none;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .reports-toolbar .panel-heading,
  .reports-filters {
    align-items: stretch;
  }

  .reports-toolbar .panel-heading,
  .reports-actions {
    flex-wrap: wrap;
  }

  .reports-filters label,
  .reports-filter-note {
    min-width: min(100%, 220px);
    flex: 1 1 180px;
  }

  .reports-preview {
    padding: 12px;
  }

  .report-paper-columns,
  .report-pending-section ul {
    grid-template-columns: 1fr;
  }
}
/* fonte: reports/print.css */
@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  /* v828: only the report's ancestor path participates in pagination.
     New navigation/toolbars cannot silently become part of the document. */
  body.report-print-mode > :not(.app-shell),
  body.report-print-mode > .app-shell > :not(.content),
  body.report-print-mode .content > :not(#relatorios),
  body.report-print-mode #relatorios > :not(.reports-hub-shell),
  body.report-print-mode .reports-hub-shell > :not(#relatorioPreview),
  body.report-print-mode #relatorioPreview > :not(.report-paper) {
    display: none !important;
  }

  body.report-print-mode .reports-hub-shell,
  body.report-print-mode #relatorios,
  body.report-print-mode .report-statement,
  body.report-print-mode .report-paper-columns {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.report-print-mode .report-paper-section {
    break-inside: auto !important;
    page-break-inside: auto !important;
    overflow: visible !important;
  }

  body.report-print-mode .report-statement-row,
  body.report-print-mode .report-paper tr,
  body.report-print-mode .report-paper-header,
  body.report-print-mode .report-title-row,
  body.report-print-mode .report-paper-kpis,
  body.report-print-mode .report-unit-check {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.report-print-mode .report-paper h2,
  body.report-print-mode .report-statement-group {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  body.report-print-mode .report-paper thead { display: table-header-group; }
  body.report-print-mode .report-paper tfoot { display: table-row-group; }

  /* WebKit can split a cell's label and detail despite break-inside on tr.
     An atomic cell content box keeps the complete item on the same page. */
  body.report-print-mode .report-print-cell {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.report-print-mode .report-unit-check-list {
    display: block !important;
  }

  body.report-print-mode .report-unit-check {
    display: inline-grid !important;
    width: calc(50% - 6px);
    margin: 0 6px 6px 0;
    vertical-align: top;
  }

  body.report-print-mode {
    background: #fff !important;
    color: #18231e !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.report-print-mode .sidebar,
  body.report-print-mode .topbar,
  body.report-print-mode #recoveryStatus,
  body.report-print-mode #persistenceStatus,
  body.report-print-mode #backupStatus,
  body.report-print-mode #externalStatus,
  body.report-print-mode .period-lock-banner,
  body.report-print-mode .period-snapshot-status,
  body.report-print-mode .closing-print-preview,
  body.report-print-mode .expenses-recurring-launch-modal,
  body.report-print-mode .notice-stack,
  body.report-print-mode .period-close-modal,
  body.report-print-mode .month-picker,
  body.report-print-mode .sync-conflict-screen,
  body.report-print-mode .audit-detail-overlay,
  body.report-print-mode .access-toast,
  body.report-print-mode .central-update-banner,
  body.report-print-mode .reports-toolbar,
  body.report-print-mode .reports-hub-shell > .module-navigation-panel {
    display: none !important;
  }

  body.report-print-mode .app-shell,
  body.report-print-mode .content {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.report-print-mode .view {
    display: none !important;
  }

  body.report-print-mode #relatorios {
    display: block !important;
  }

  body.report-print-mode .reports-preview {
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: #fff !important;
  }

  body.report-print-mode .report-paper {
    /* A4 minus the two 10 mm page margins. Percentage width lets WebKit
       choose a different print scale, overflowing otherwise fitting pages. */
    width: 190mm !important;
    max-width: 190mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.report-print-mode .report-paper-section,
  body.report-print-mode .report-paper-kpis,
  body.report-print-mode .report-unit-note {
    break-inside: avoid;
  }

  body.report-print-mode .report-general .report-paper-section {
    break-inside: auto;
  }

  body.report-print-mode .report-general .report-paper-header,
  body.report-print-mode .report-general .report-title-row,
  body.report-print-mode .report-general .report-paper-kpis,
  body.report-print-mode .report-general .report-statement-row,
  body.report-print-mode .report-general .report-statement-group,
  body.report-print-mode .report-general table tr,
  body.report-print-mode .report-general .report-center-detail-card,
  body.report-print-mode .report-general .report-center-warning,
  body.report-print-mode .report-general .report-center-note,
  body.report-print-mode .report-general .report-provision-note,
  body.report-print-mode .report-general .report-paper-footer {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  body.report-print-mode .report-general {
    orphans: 3;
    widows: 3;
  }

  body.report-print-mode .report-general table {
    page-break-inside: auto;
  }

  body.report-print-mode .report-general thead {
    display: table-header-group;
  }

  body.report-print-mode .report-general tfoot {
    display: table-row-group;
  }

  body.report-print-mode .report-general table tr {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.report-print-mode .report-general .report-statement-group,
  body.report-print-mode .report-general .report-complete-centers > h2,
  body.report-print-mode .report-general .report-center-warning {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.report-print-mode .report-general .report-statement-group.report-print-new-page,
  body.report-print-mode .report-general .report-complete-centers {
    break-before: page;
    page-break-before: always;
  }

  body.report-print-mode .report-general .report-screen-dre {
    display: none !important;
  }

  body.report-print-mode .report-general .report-print-only {
    display: block !important;
  }

  body.report-print-mode .report-general > .report-paper-header,
  body.report-print-mode .report-general > .report-title-row,
  body.report-print-mode .report-general > .report-paper-kpis {
    display: none !important;
  }

  body.report-print-mode .report-general .report-complete-centers {
    display: block !important;
    overflow: visible !important;
    border: 0 !important;
  }

  body.report-print-mode .report-general .report-provision-note {
    display: none !important;
  }

  body.report-print-mode .report-general > .report-paper-footer {
    display: none !important;
  }

  body.report-print-mode .report-general .report-general-print-pages {
    display: block !important;
  }

  body.report-print-mode .report-general .report-general-print-page {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.report-print-mode .report-general .report-general-print-page + .report-general-print-page {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.report-print-mode .report-general .report-general-print-page > .report-paper-header,
  body.report-print-mode .report-general .report-general-print-page > .report-title-row,
  body.report-print-mode .report-general .report-general-print-page > .report-paper-kpis,
  body.report-print-mode .report-general .report-general-print-page > .report-paper-section,
  body.report-print-mode .report-general .report-general-print-page > .report-general-company-note,
  body.report-print-mode .report-general .report-general-print-page > .report-general-print-page-footer {
    flex-shrink: 0;
  }

  body.report-print-mode .report-general .report-general-print-page .report-title-row {
    margin-top: 13px;
  }

  body.report-print-mode .report-general .report-general-print-page .report-paper-kpis {
    margin-top: 11px;
    margin-bottom: 10px;
  }

  body.report-print-mode .report-general .report-general-print-page .report-paper-kpis > div {
    min-height: 61px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  body.report-print-mode .report-general .report-general-print-page .report-paper-section {
    margin-top: 8px;
  }

  body.report-print-mode .report-general .report-general-print-page .report-statement-row {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.report-print-mode .report-general .report-general-print-page .report-statement-row small {
    margin-top: 0;
    line-height: 1.15;
  }

  body.report-print-mode .report-general .report-general-print-page .report-statement-row.total {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-title-row {
    margin-top: 12px;
    margin-bottom: 9px;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-title-row h1 {
    font-size: 1.18rem;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row {
    padding-top: 3.5px;
    padding-bottom: 3.5px;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row strong,
  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row > span {
    font-size: 0.66rem;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row small {
    font-size: 0.54rem;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-statement-group {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row.total strong,
  body.report-print-mode .report-general .report-general-print-page-two .report-statement-row.total > span {
    font-size: 0.72rem;
  }

  body.report-print-mode .report-general .report-general-company-note {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    padding: 7px 9px;
    border: 1px solid #bfd7c8;
    border-left: 4px solid #247b52;
    border-radius: 4px;
    background: #f4faf6;
  }

  body.report-print-mode .report-general .report-general-company-note strong {
    color: #195a39;
    font-size: 0.63rem;
  }

  body.report-print-mode .report-general .report-general-company-note span {
    color: #53645c;
    font-size: 0.56rem;
    line-height: 1.3;
  }

  body.report-print-mode .report-general .report-general-print-page-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
  }

  body.report-print-mode .report-general .report-print-page {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.report-print-mode .report-general .report-center-print-note {
    display: inline;
  }

  body.report-print-mode .report-general .report-complete-centers > h2,
  body.report-print-mode .report-general .report-complete-centers > .report-center-warning {
    display: none !important;
  }

  body.report-print-mode .report-general .report-center-note {
    display: none !important;
  }

  body.report-print-mode .report-general .report-center-detail-grid {
    display: none !important;
  }

  body.report-print-mode .report-general .report-center-print-pages {
    display: block !important;
  }

  body.report-print-mode .report-general .report-center-print-page {
    display: block !important;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    overflow: visible;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.report-print-mode .report-general .report-center-print-page + .report-center-print-page {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.report-print-mode .report-general .report-center-print-tail {
    display: inline-block; width: 100%; vertical-align: top;
    break-inside: avoid-page !important; page-break-inside: avoid !important;
  }
  body.report-print-mode .report-general .report-center-print-page-heading,
  body.report-print-mode .report-general .report-center-print-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.report-print-mode .report-general .report-center-print-page-heading {
    margin-top: 7px;
    padding: 6px 8px;
    border: 1px solid #d8e3dc;
    border-radius: 5px;
    background: #f5faf7;
  }

  body.report-print-mode .report-general .report-center-print-page-heading > div {
    display: grid;
    gap: 2px;
  }

  body.report-print-mode .report-general .report-center-print-page-heading strong {
    color: var(--brand-dark);
    font-size: 0.75rem;
  }

  body.report-print-mode .report-general .report-center-print-page-heading span,
  body.report-print-mode .report-general .report-center-print-page-heading em {
    color: var(--muted);
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 750;
  }

  body.report-print-mode .report-general .report-center-print-grid {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
    align-items: start;
    min-height: 0;
    padding: 7px 0;
  }

  body.report-print-mode .report-general .report-center-print-pair {
    display: flex !important;
    align-items: stretch;
    gap: 3mm;
    margin-bottom: 3mm;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
  body.report-print-mode .report-general .report-center-print-pair > .report-center-detail-card {
    flex: 1 1 0;
    width: 0 !important;
    min-width: 0;
  }
  /* The first pair starts below the page heading. If it is taller than A4,
     let its intact table rows continue instead of orphaning that heading. */
  body.report-print-mode .report-general .report-center-print-pair:first-child {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.report-print-mode .report-general .report-center-print-page-footer {
    padding-top: 6px;
    border-top: 1px solid #dfe6e2;
    color: var(--muted);
    font-size: 0.55rem;
  }

  body.report-print-mode .report-general .report-center-screen-explanations { display: none !important; }
  body.report-print-mode .report-general .report-center-detail-card {
    display: block !important; margin: 0 !important; overflow: visible !important;
    break-inside: auto; page-break-inside: auto;
  }
  body.report-print-mode .report-general .report-center-detail-card > header {
    padding: 5px 6px; min-height: 32px; break-after: avoid;
  }
  body.report-print-mode .report-general .report-center-detail-card > table { height: auto !important; }
  body.report-print-mode .report-general .report-center-detail-card th,
  body.report-print-mode .report-general .report-center-detail-card td {
    padding: 2px 5px; font-size: 8.2pt; line-height: 1.2;
  }
  body.report-print-mode .report-general .report-center-detail-card thead th { font-size: 7.5pt; }
  body.report-print-mode .report-general .report-center-detail-card td small { font-size: 7.5pt; }
  body.report-print-mode .report-general .report-center-detail-card > header strong { font-size: 9pt; }
  body.report-print-mode .report-general .report-center-detail-card > header small { font-size: 7.5pt; }
  body.report-print-mode .report-general .report-center-explanations { font-size: 7.5pt; }
  body.report-print-mode .report-general .report-center-explanations p { break-inside: avoid; }

  body.report-print-mode .report-general .report-center-note,
  body.report-print-mode .report-general .report-center-print-page-footer,
  body.report-print-mode .report-general .report-paper-footer {
    break-before: avoid-page;
    page-break-before: avoid;
  }
}
/* fonte: people/employees-and-vacation.css */
.employee-form {
  grid-template-columns: minmax(150px, 0.8fr) minmax(240px, 1.5fr) minmax(130px, 0.7fr) minmax(180px, 1fr) repeat(5, minmax(110px, 0.6fr)) minmax(220px, 1fr) auto;
}

.employee-record-panel {
  overflow: visible;
}

.employee-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 8px;
  padding: 0 18px 16px;
}

.employee-search input {
  width: 100%;
}

.employee-suggestions {
  position: absolute;
  z-index: 8;
  top: 76px;
  left: 18px;
  width: min(420px, calc(100% - 36px));
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.employee-suggestions:empty {
  display: none;
}

.employee-suggestions button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.employee-suggestions button:last-child {
  border-bottom: 0;
}

.employee-suggestions button:hover {
  background: #f4f7f4;
}

.employee-suggestions small,
.employee-record-summary small,
.employee-mask-value small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.employee-record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 18px 16px;
}

.employee-record-summary > div,
.employee-mask-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.employee-record-summary > div {
  padding: 12px;
}

.employee-record-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.employee-record-edit-action {
  display: flex;
  align-items: end;
}

.employee-record-edit-action button {
  width: 100%;
}

.employee-mask {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.employee-empty-ficha {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfb;
  font-weight: 800;
}

.employee-current-data-note {
  grid-column: 1 / -1;
  background: #fff7e6;
  border: 1px solid #ecd599;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.employee-current-data-note strong {
  color: #815b0a;
  font-size: 0.78rem;
}

.employee-current-data-note span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.employee-mask-card {
  overflow: hidden;
}

.employee-mask-card h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f2eadb;
  font-size: 0.95rem;
}

.employee-mask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.employee-mask-value {
  min-height: 58px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.employee-mask-value:nth-child(2n) {
  border-right: 0;
}

.employee-mask-value strong {
  display: block;
  margin-top: 4px;
}

.employee-mask-value input,
.employee-mask-value select {
  width: 100%;
  min-height: 34px;
  margin-top: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 850;
}

.employee-mask-value input:focus,
.employee-mask-value select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(45, 105, 80, 0.16);
}

.employee-mask-save-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.employee-record-form {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.employee-record-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.employee-record-group h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.employee-record-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.employee-record-fields input,
.employee-record-fields select {
  min-width: 0;
}

.employee-record-fields input[type="text"],
.employee-record-fields textarea,
.employee-mask-value input[type="text"],
.employee-mask-value textarea {
  text-transform: uppercase;
}

.employee-record-actions {
  display: flex;
  justify-content: flex-end;
}

.off-payroll-panel > summary,
.payroll-off-payroll-panel > summary {
  cursor: pointer;
  list-style: none;
}

.off-payroll-panel > summary::-webkit-details-marker,
.payroll-off-payroll-panel > summary::-webkit-details-marker {
  display: none;
}

.off-payroll-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 18px;
}

.off-payroll-form input,
.off-payroll-form select {
  min-width: 0;
  width: 100%;
}

.off-payroll-form .off-payroll-note {
  grid-column: span 2;
}

.off-payroll-form .form-actions {
  align-self: end;
  justify-content: flex-end;
}

.off-payroll-list,
.off-payroll-payment-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.off-payroll-person,
.off-payroll-payment {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, 1.6fr) minmax(130px, 0.8fr) minmax(90px, 0.55fr) auto;
  min-width: 0;
  padding: 12px 14px;
}

.off-payroll-person.is-inactive {
  background: #f6f7f6;
  opacity: 0.76;
}

.off-payroll-person strong,
.off-payroll-person small,
.off-payroll-person span,
.off-payroll-payment strong,
.off-payroll-payment small,
.off-payroll-payment span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.off-payroll-person small,
.off-payroll-person span,
.off-payroll-payment small,
.off-payroll-payment span {
  color: var(--muted);
  font-weight: 750;
}

.off-payroll-payment {
  grid-template-columns: minmax(180px, 1.3fr) minmax(145px, 0.8fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) auto;
}

.off-payroll-payment.is-paid {
  background: var(--soft-green);
  border-color: #b7d4c2;
}

.off-payroll-payment input {
  min-width: 0;
  width: 100%;
}

.off-payroll-payment .expenses-actions,
.off-payroll-person .expenses-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.employee-unit-stack {
  display: grid;
  gap: 18px;
}

.employee-off-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.employee-off-list:empty {
  display: none;
}

.employee-off-list > strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.employee-off-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-off-items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #efb6b6;
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  background: #fff7f7;
}

.employee-off-items small {
  color: var(--muted);
  font-weight: 750;
}

.employee-unit-panel {
  margin: 0;
}

.employee-unit-toggle {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.employee-unit-toggle strong {
  color: var(--brand-mid);
  font-size: 0.92rem;
}

.employee-unit-panel.expanded .employee-unit-toggle {
  border-bottom-color: rgba(166, 103, 0, 0.28);
  background: #fffdfa;
}

.employee-table {
  min-width: 900px;
}

.employee-off-panel {
  margin-top: 18px;
  border-color: #e4b4b4;
}

.employee-off-panel .employee-unit-toggle {
  background: #fffafa;
}

.employee-off-panel .employee-unit-toggle strong {
  color: #9b2929;
}

.employee-off-table {
  min-width: 820px;
}

.employee-table th,
.employee-table td {
  padding: 7px 7px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 850;
}

.status-active {
  color: #176043;
  background: #e2f4ec;
}

.status-away {
  color: #806000;
  background: #fff1c6;
}

.status-off {
  color: #8a1f1f;
  background: #fce4e4;
}

.status-available {
  color: #7a4b00;
  background: #fff0c8;
}

.status-future {
  color: #3f5364;
  background: #eaf0f4;
}

.vacation-table {
  min-width: 980px;
  font-size: 0.82rem;
}

.vacation-table th,
.vacation-table td {
  padding: 8px 7px;
}

.vacation-schedule-table {
  font-size: 0.78rem;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.vacation-schedule-table .vacation-col-employee { width: 18%; }
.vacation-schedule-table .vacation-col-unit { width: 13%; }
.vacation-schedule-table .vacation-col-date { width: 9%; }
.vacation-schedule-table .vacation-col-days { width: 5.5%; }
.vacation-schedule-table .vacation-col-period { width: 16%; }
.vacation-schedule-table .vacation-col-origin { width: 21.5%; }
.vacation-schedule-table .vacation-col-actions { width: 8%; }

.vacation-schedule-table th,
.vacation-schedule-table td {
  min-width: 0;
  overflow: hidden;
  padding: 8px 7px;
}

.vacation-schedule-table .vacation-origin-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vacation-schedule-table .row-actions {
  white-space: nowrap;
}

.vacation-row.limite-vencido {
  background: #fff3f3;
}

.vacation-row.a-vencer {
  background: #fffaf0;
}

.vacation-kpi.warning::before {
  background: #c88a14;
}

.vacation-kpi.danger::before {
  background: var(--danger);
}

.vacation-kpi {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vacation-kpi small {
  display: block;
  margin-top: 8px;
  color: var(--brand-mid);
  font-size: 0.76rem;
  font-weight: 850;
}

.vacation-kpi:hover,
.vacation-kpi.expanded {
  border-color: rgba(166, 103, 0, 0.48);
  box-shadow: 0 10px 24px rgba(70, 45, 12, 0.1);
}

.vacation-summary-expanded:empty {
  display: none;
}

.vacation-summary-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.vacation-unit-stack {
  margin-top: 0;
}

.vacation-unit-panel .vacation-table {
  min-width: 900px;
}

.vacation-import-preview:empty {
  display: none;
}

.vacation-import-loading {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.vacation-import-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.vacation-import-form .wide {
  grid-column: 1 / -1;
}

.document-import-warning {
  background: #fff8e1;
  border: 1px solid #e5bd48;
  border-left: 4px solid #c58a00;
  border-radius: 8px;
  color: #6f4700;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 11px 13px;
}

.document-import-warning span {
  color: #6f4700;
  font-size: 0.86rem;
  font-weight: 700;
}

.document-confirmation {
  align-items: center;
  background: #f5f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
}

.document-confirmation input {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.document-confirmation span {
  font-weight: 800;
}

.vacation-balance-preview {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.vacation-balance-preview small {
  color: var(--muted);
  font-weight: 750;
}

.vacation-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
}
.benefit-bio-selection { padding: 14px; margin-top: 12px; border: 1px solid var(--border); border-radius: 8px; }
.benefit-bio-selection p { margin: 6px 0 12px; }
.benefit-bio-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; margin-bottom: 12px; }
.benefit-bio-options label { display: flex; align-items: center; gap: 8px; }
/* fonte: shared/table-and-form-details.css */
.slim-button {
  min-height: 32px;
  padding: 6px 10px;
}

.hours-table th,
.hours-table td {
  padding: 7px 7px;
}

.hours-table .table-input {
  width: 86px;
}

.auto-hours-row td {
  background: #fff7f7;
}

.auto-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #efb6b6;
  border-radius: 999px;
  color: #991b1b;
  background: #fce4e4;
  font-size: 0.75rem;
  font-weight: 800;
}

.hours-obs-input {
  width: 100%;
  min-width: 180px;
}

.employee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-chips span {
  border: 1px solid #d9d4ca;
  border-radius: 999px;
  background: #fffaf0;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.employee-chips .muted-chip {
  background: #f3f1ec;
  color: var(--muted);
}

td.numeric,
th.numeric {
  text-align: right;
}

.dashboard-client-table th,
.dashboard-client-table td,
.dashboard-client-table td.numeric {
  text-align: center;
}

.biomassa-table-stack {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.biomassa-table-stack strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.biomassa-table-stack small {
  color: #9a6500;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-total-row td {
  background: #eef6f1;
  border-top: 2px solid #9db9a8;
  color: #173f2a;
  font-weight: 700;
}

.month-closing-reading-row td {
  border-top: 2px solid #9db9a8;
  background: #f3f7f5;
  font-weight: 700;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.muted-row {
  color: var(--muted);
  background: #fafbf9;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding: 18px;
}

.closing-measure-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.closing-form-top {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(160px, 0.8fr) minmax(240px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
}

.closing-measure-grid {
  display: grid;
  grid-template-columns: 90px repeat(6, minmax(84px, 1fr));
  border: 1px solid var(--line);
  overflow-x: auto;
}

.closing-measure-grid > * {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
}

.closing-measure-grid strong,
.closing-measure-head {
  display: grid;
  align-items: center;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.closing-measure-grid input {
  width: 100%;
  min-height: 32px;
  border: 0;
  background: #fff;
  text-align: right;
}
/* fonte: operation/consumption.css */
.daily-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding: 18px;
}

.daily-readings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.daily-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.daily-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 18px 0;
}

.daily-quick-toggle {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 7px;
  margin-right: auto;
}

.daily-quick-toggle input {
  accent-color: var(--brand);
  height: 18px;
  width: 18px;
}

.daily-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
}

.daily-total span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.daily-total strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
}

.daily-total small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 4px;
}

.daily-average-total {
  border-left: 4px solid var(--brand-mid);
}

.daily-service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.daily-service-tab {
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 850;
}

.daily-service-tab + .daily-service-tab {
  border-left: 1px solid var(--line);
}

.daily-service-tab.active {
  border-bottom-color: var(--brand-mid);
  background: var(--surface-strong);
  color: var(--brand-mid);
}

.daily-service-tab:hover:not(.active) {
  background: #f6faf7;
  color: var(--text);
}

.daily-service-stack {
  display: grid;
  gap: 16px;
  padding: 12px;
}

.daily-service-title {
  margin-bottom: 4px;
  color: var(--brand-mid);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.daily-quick-entry {
  background: #f6faf7;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-bottom: 10px;
  overflow: hidden;
  padding: 10px 12px 12px;
}

.daily-quick-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.daily-quick-heading > div {
  min-width: 0;
}

.daily-quick-heading strong {
  color: var(--brand-mid);
  font-size: 0.86rem;
}

.daily-quick-heading > div > span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 2px;
}

.daily-quick-date {
  flex: 0 0 150px;
}

.daily-quick-controls {
  align-items: end;
  display: flex;
  flex: 0 1 auto;
  gap: 10px;
  margin-left: auto;
  margin-right: 40px;
  max-width: 100%;
}

.daily-quick-time > span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.daily-quick-time > div {
  display: flex;
}

.daily-quick-time button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  min-height: 36px;
  padding: 6px 16px;
}

.daily-quick-time button:first-child {
  border-radius: 7px 0 0 7px;
}

.daily-quick-time button:last-child {
  border-left: 0;
  border-radius: 0 7px 7px 0;
}

.daily-quick-time button.active {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.daily-quick-time button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.daily-quick-date > span,
.daily-quick-fields label > span,
.daily-quick-glicerina label > span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 3px;
  white-space: nowrap;
}

.daily-quick-date input,
.daily-quick-fields input,
.daily-quick-glicerina input {
  min-height: 36px;
  padding: 6px 8px;
  width: 100%;
}

.daily-quick-rows {
  display: grid;
  gap: 7px;
}

.daily-quick-services {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-quick-service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
  padding: 9px;
}

.daily-quick-service h4,
.daily-quick-glicerina h4 {
  color: var(--brand-mid);
  font-size: 0.76rem;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.daily-quick-service-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.daily-quick-service-heading h4 {
  margin: 0;
}

.daily-quick-service-heading span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: right;
}

.daily-quick-glicerina {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 9px;
}

.daily-quick-glicerina-heading {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.daily-quick-glicerina-heading h4 {
  margin-bottom: 2px;
}

.daily-quick-glicerina-heading > div > span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
}

.daily-quick-glicerina label {
  display: block;
  max-width: 240px;
}

.daily-quick-glicerina .daily-quick-actions {
  margin-top: 8px;
}

.daily-quick-row {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(118px, 0.65fr) minmax(0, 4fr);
  padding: 8px;
}

.daily-quick-hour {
  align-self: center;
  min-width: 0;
}

.daily-quick-hour strong {
  color: var(--brand-mid);
  display: block;
  font-size: 0.9rem;
}

.daily-quick-hour span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

.daily-quick-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  min-width: 0;
}

.daily-quick-fields label {
  min-width: 0;
}

.daily-quick-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.daily-quick-actions > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.daily-quick-lower {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(430px, 540px) minmax(0, 1fr);
  margin-top: 10px;
}

.daily-quick-glicerina-compact {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(125px, 1fr) 150px 125px;
  padding: 8px 9px;
}

.daily-quick-glicerina-compact h4 {
  color: var(--brand-mid);
  font-size: 0.76rem;
  margin: 0 0 2px;
}

.daily-quick-glicerina-compact > div > span,
.daily-quick-glicerina-compact label > span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
}

.daily-quick-glicerina-compact label > span {
  margin-bottom: 3px;
  white-space: nowrap;
}

.daily-quick-glicerina-compact input {
  min-height: 36px;
  padding: 6px 8px;
  width: 100%;
}

.daily-quick-lower .daily-quick-actions {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .daily-quick-lower {
    grid-template-columns: 1fr;
  }
}

.daily-quick-save {
  min-height: 36px;
  padding: 7px 11px;
  white-space: nowrap;
}

.daily-service-summary {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.daily-meter-grid {
  display: grid;
  gap: 12px;
}

.daily-meter {
  min-width: 0;
}

.daily-meter h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.daily-sheet-wrap {
  max-height: 62vh;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compact-total {
  max-height: 34vh;
}

.daily-sheet {
  min-width: 0;
  width: 100%;
  font-size: 0.62rem;
  table-layout: fixed;
}

.daily-sheet th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf7f1;
}

.daily-sheet td:first-child,
.daily-sheet th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.daily-sheet th:first-child {
  z-index: 3;
  background: #edf7f1;
}

.daily-sheet input {
  width: 100%;
  min-height: 22px;
  padding: 1px 2px;
  font-size: 0.62rem;
  border-radius: 0;
  border: 1px solid #d2b65a;
  background: #fff3a8;
  text-align: center;
}

.daily-sheet .readonly {
  background: #f8faf8;
  color: var(--muted);
}

.daily-sheet .calc-cell {
  font-weight: 800;
  text-align: right;
}

.daily-sheet th,
.daily-sheet td {
  padding: 4px 3px;
  text-align: center;
  white-space: normal;
}

.daily-sheet .status-ok {
  color: var(--brand-dark);
  font-weight: 800;
}

.daily-sheet .status-alert {
  color: var(--danger);
  font-weight: 800;
}

.spreadsheet-sheet thead tr:first-child th {
  border-bottom: 0;
  font-size: 0.68rem;
}

.spreadsheet-sheet thead tr:nth-child(2) th {
  top: 24px;
}

.spreadsheet-sheet th {
  border-right: 1px solid var(--line);
}

.spreadsheet-sheet td {
  border-right: 1px solid var(--line);
}

.spreadsheet-sheet .date-cell {
  font-weight: 700;
  background: #fff;
}

.spreadsheet-sheet .check-row td {
  background: #fbfcfb;
}

.spreadsheet-sheet .check-row input {
  background: #fff;
  border-color: #cfd8d2;
}

.spreadsheet-sheet .calc-cell {
  background: #fff;
}

.spreadsheet-sheet .official-consumption-cell {
  background: #fffdf1;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.spreadsheet-sheet th:nth-last-child(4),
.spreadsheet-sheet td:nth-last-child(4) {
  border-left: 2px solid #8f9d94;
}
/* fonte: shared/inputs-and-imports.css */
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
}

.table-input {
  width: 130px;
  min-height: 34px;
  text-align: right;
}

.muted-cell {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.xml-credit-review {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: var(--warning-dark, #7a5712);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.xml-credit-review select {
  width: 100%;
  min-width: 12rem;
  font-size: 0.78rem;
}

.employee-pension {
  display: block;
  margin-top: 4px;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 800;
}

.wide {
  grid-column: span 3;
}

.form-action {
  align-self: end;
}

.alert-list,
.registry-list {
  list-style: none;
  margin: 0;
  padding: 12px 18px 18px;
}

.import-preview {
  padding: 0 18px 18px;
}

.import-preview:empty {
  display: none;
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
}

.import-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.import-preview select {
  min-width: 130px;
}

.xml-bulk-toolbar {
  align-items: end;
  background: #f3f7f3;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.7fr) minmax(180px, 0.6fr);
  margin-bottom: 14px;
  padding: 12px;
}

.xml-bulk-toolbar > div,
.xml-bulk-toolbar > div span {
  display: grid;
  gap: 3px;
}

.xml-bulk-toolbar > div span {
  color: var(--muted);
  font-size: 0.82rem;
}
/* fonte: operation/delivery-documents.css */
.delivery-total-row th {
  background: var(--surface-strong);
  border-top: 2px solid var(--line);
  font-weight: 850;
}

.deliveries-table {
  min-width: 1100px;
  table-layout: fixed;
  width: 100%;
}

.deliveries-table th,
.deliveries-table td {
  font-size: 0.79rem;
  padding-left: 8px;
  padding-right: 8px;
}

.deliveries-table th:nth-child(1) { width: 12%; }
.deliveries-table th:nth-child(2) { width: 11%; }
.deliveries-table th:nth-child(3) { width: 12%; }
.deliveries-table th:nth-child(4) { width: 14%; }
.deliveries-table th:nth-child(5) { width: 10%; }
.deliveries-table th:nth-child(6) { width: 6%; }
.deliveries-table th:nth-child(7) { width: 15%; }
.deliveries-table th:nth-child(8) { width: 14%; }
.deliveries-table th:nth-child(9) { width: 6%; }

/* Datas completas podem quebrar dentro da própria coluna em todas as unidades. */
.deliveries-table tbody tr[data-entrega-row] > td:first-child,
.deliveries-table tbody tr[data-entrega-row] > td:first-child .muted-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.deliveries-table .delivery-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliveries-table .delivery-ellipsis .muted-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.deliveries-supplier-subtotal th {
  border-bottom-width: 3px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.deliveries-supplier-subtotal th:first-child small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  margin-top: 2px;
}

.delivery-unit-toolbar,
.delivery-real-weight-toolbar {
  align-items: end;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.8fr) minmax(140px, 0.4fr) auto;
  padding: 12px 20px;
}

.delivery-unit-toggle {
  align-items: center;
  background: #fafbfa;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  text-align: left;
  width: 100%;
}

.delivery-unit-toggle > div {
  display: grid;
  gap: 1px;
}

.delivery-unit-toggle small,
.delivery-unit-toggle > span {
  color: var(--muted);
}

.delivery-unit-toolbar > div,
.delivery-real-weight-toolbar > div {
  display: grid;
  gap: 2px;
}

.delivery-unit-toolbar > div span,
.delivery-real-weight-toolbar > div span {
  color: var(--muted);
  font-size: 0.82rem;
}

.delivery-real-weight-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(230px, 0.9fr) auto;
}

.delivery-weight-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.delivery-weight-cell small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.delivery-weight-real-line {
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.delivery-weight-real-line strong {
  font-size: 0.75rem;
  white-space: nowrap;
}

.delivery-weight-status {
  color: var(--muted);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.delivery-weight-status.same,
.delivery-weight-status.informed {
  color: var(--brand-mid);
}

.delivery-weight-status.pending,
.delivery-weight-status.undefined {
  color: #a36a00;
}

.delivery-weight-input {
  min-height: 28px;
  padding: 4px 6px;
  text-align: right;
  width: 92px;
}

.delivery-total-weight-stack {
  align-items: flex-end;
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

.delivery-total-weight-stack small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.delivery-total-weight-stack strong {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .delivery-unit-toolbar,
  .delivery-real-weight-toolbar { grid-template-columns: 1fr 1fr; }
}

.required-select {
  border-color: var(--danger);
  background: #fff5f5;
}

.xml-split-detail-row > td {
  background: #f7faf7;
  padding: 0 12px 14px;
}

.xml-split-panel {
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.xml-split-heading,
.xml-split-footer,
.xml-split-line {
  align-items: end;
  display: flex;
  gap: 12px;
}

.xml-split-heading {
  align-items: center;
  justify-content: space-between;
}

.xml-split-heading > div {
  display: grid;
  gap: 2px;
}

.xml-split-heading span,
.xml-split-footer span {
  color: var(--muted);
  font-size: 0.82rem;
}

.xml-split-list {
  display: grid;
  gap: 8px;
}

.xml-split-line > span {
  font-weight: 800;
  padding-bottom: 10px;
}

.xml-split-line label {
  flex: 1 1 180px;
}

.xml-split-footer {
  align-items: center;
  flex-wrap: wrap;
}

.xml-split-error,
.xml-split-ok {
  font-size: 0.85rem;
  font-weight: 750;
  margin: 0;
}

.xml-split-error { color: var(--danger); }
.xml-split-ok { color: var(--brand-mid); }

@media (max-width: 900px) {
  .xml-split-line { align-items: stretch; flex-direction: column; }
  .xml-split-line > span { padding-bottom: 0; }
}

/* v849: receipt allocations and document subtotals. */
.lenha-link-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) auto;gap:12px;align-items:end;margin:10px 0}
#lenhaContent .lenha-ledger{border:1px solid var(--border,#dbe5df);border-radius:12px;padding:16px;margin:16px 0}
#lenhaContent .lenha-link-row label{min-width:0}#lenhaLinks{border:1px solid #dbe5df;border-radius:10px;padding:12px}
.deliveries-document-heading th{text-align:left;background:#eaf4ee;padding:12px}.deliveries-document-subtotal th{background:#f5f8f6;font-weight:600}
@media(max-width:750px){.lenha-link-row{grid-template-columns:1fr}#lenhaContent .panel-heading{flex-wrap:wrap}}

/* Biomass batch preview: compact rows with independent, expandable edits. */
#xmlImportPreview .xml-batch-heading,
#xmlImportPreview .xml-batch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
#xmlImportPreview .xml-batch-heading > div,
#xmlImportPreview .xml-batch-destination,
#xmlImportPreview .xml-batch-document > div { min-width: 0; }
#xmlImportPreview .xml-batch-heading span,
#xmlImportPreview .xml-batch-document span,
#xmlImportPreview .xml-batch-document small,
#xmlImportPreview .xml-batch-destination span,
#xmlImportPreview .xml-document-source span { display: block; color: var(--muted); font-size: .82rem; }
#xmlImportPreview .xml-select-all { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
#xmlImportPreview [data-xml-selected],
#xmlImportPreview [data-xml-select-all] { width: 20px; height: 20px; min-height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--brand-mid); }
#xmlImportPreview .xml-batch-bulk { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
#xmlImportPreview .xml-batch-bulk > summary { padding: 12px 14px; cursor: pointer; color: var(--brand-mid); font-weight: 700; }
#xmlImportPreview .xml-batch-bulk .xml-bulk-toolbar { margin: 0; border: 0; border-radius: 0 0 10px 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#xmlImportPreview .xml-bulk-toolbar p { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--muted); }
#xmlImportPreview .xml-batch-table { width: 100%; min-width: 0; table-layout: fixed; }
#xmlImportPreview .xml-batch-table th,
#xmlImportPreview .xml-batch-table td { padding: 12px; }
#xmlImportPreview .xml-batch-row > td { vertical-align: middle; }
#xmlImportPreview .xml-batch-document small { white-space: normal; overflow-wrap: anywhere; }
#xmlImportPreview .xml-batch-document { display: flex; align-items: center; gap: 12px; }
#xmlImportPreview .xml-batch-document span,
#xmlImportPreview .xml-batch-destination strong,
#xmlImportPreview .xml-batch-destination span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#xmlImportPreview .xml-batch-destination strong { display: block; }
#xmlImportPreview .xml-batch-row.is-unselected { background: var(--surface-soft, #f7f9f8); }
#xmlImportPreview .xml-mobile-label { display: none; }
#xmlImportPreview .xml-batch-action { text-align: right; }
#xmlImportPreview .xml-batch-action button { min-width: 0; padding: 8px 10px; }
#xmlImportPreview .xml-edit-row > td,
#xmlImportPreview .xml-accounting-row > td { background: #f6faf8; }
#xmlImportPreview .xml-edit-panel { padding: 6px 8px; }
#xmlImportPreview .xml-document-source { margin: 0 0 10px; overflow-wrap: anywhere; }
#xmlImportPreview .xml-edit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
#xmlImportPreview .xml-edit-fields input,
#xmlImportPreview .xml-edit-fields select,
#xmlImportPreview .xml-bulk-toolbar select { width: 100%; min-width: 0; }
#xmlImportPreview .xml-edit-split { align-self: center; }
#xmlImportPreview .xml-credit-review { max-width: 450px; }
#xmlImportPreview .xml-credit-review select { min-width: 0; }
#xmlImportPreview .xml-batch-footer { position: sticky; bottom: 0; z-index: 4; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
#xmlImportPreview .xml-batch-footer .invoice-review-summary { padding: 0; margin: 0; background: none; border: 0; gap: 4px; }
#xmlImportPreview .xml-batch-footer .import-actions { padding-top: 0; flex-wrap: wrap; }
#xmlImportPreview .xml-batch-warnings { padding: 12px; margin-bottom: 12px; background: #fff7df; border-radius: 8px; }
#xmlImportPreview .xml-batch-table tr[hidden] { display: none !important; }
@media (max-width: 1100px) {
  #xmlImportPreview .xml-batch-table th,
  #xmlImportPreview .xml-batch-table td { padding: 10px 7px; }
  #xmlImportPreview .xml-batch-document { gap: 8px; }
}
@media (max-width: 700px) {
  #xmlImportPreview .xml-batch-heading { flex-wrap: wrap; }
  #xmlImportPreview .xml-batch-table colgroup,
  #xmlImportPreview .xml-batch-table thead { display: none; }
  #xmlImportPreview .xml-batch-table,
  #xmlImportPreview .xml-batch-table tbody { display: block; }
  #xmlImportPreview .xml-batch-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); gap: 4px 12px; }
  #xmlImportPreview .xml-batch-row > td { border: 0; padding: 4px; width: auto; }
  #xmlImportPreview .xml-batch-row > td:first-child,
  #xmlImportPreview .xml-batch-destination { grid-column: 1 / -1; }
  #xmlImportPreview .xml-batch-action { grid-column: 2; }
  #xmlImportPreview .xml-batch-quantity { text-align: left; }
  #xmlImportPreview .xml-mobile-label { display: block; font-size: .75rem; color: var(--muted); }
  #xmlImportPreview .xml-edit-row,
  #xmlImportPreview .xml-accounting-row,
  #xmlImportPreview .xml-split-detail-row,
  #xmlImportPreview .xml-edit-row > td,
  #xmlImportPreview .xml-accounting-row > td,
  #xmlImportPreview .xml-split-detail-row > td { display: block; }
  #xmlImportPreview .xml-edit-fields,
  #xmlImportPreview .xml-batch-bulk .xml-bulk-toolbar { grid-template-columns: minmax(0, 1fr); }
  #xmlImportPreview .xml-batch-footer { gap: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #xmlImportPreview .xml-batch-footer .import-actions { width: 100%; }
  #xmlImportPreview .xml-batch-footer #confirmarXmlImport { flex: 1; white-space: normal; }
}
/* fonte: control/registry-and-alerts.css */
.alert-list li,
.registry-list li {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.registry-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uppercase-input {
  text-transform: uppercase;
}

.registry-actions {
  display: flex;
  gap: 6px;
}

.icms-decision-edit-actions {
  flex-wrap: wrap;
  min-width: 260px;
}

.registry-delete-button {
  color: var(--danger);
}

.registry-list span {
  color: var(--muted);
}

.mini-danger-button {
  border: 1px solid #f1c7c7;
  border-radius: 8px;
  background: #fff7f7;
  color: var(--danger);
  font-weight: 800;
  padding: 7px 9px;
}

.alert-list li:last-child,
.registry-list li:last-child {
  border-bottom: 0;
}

.alert-list strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.alert-list span {
  color: var(--text);
  font-size: 1rem;
}

.alert-list li.alert-critical {
  background: transparent;
}

.alert-list li.alert-critical strong {
  color: #d12626;
}

.alert-list li.alert-warning {
  background: transparent;
}

.alert-list li.alert-warning strong {
  color: #c98200;
}

.alert-list li.alert-critical span,
.alert-list li.alert-warning span {
  color: var(--text);
}

.alert-group-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.alert-group-items span {
  display: block;
}

.alert-vacation-grid {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.alert-vacation-head,
.alert-vacation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(160px, 1fr) minmax(90px, 0.55fr) minmax(85px, 0.5fr);
  gap: 14px;
  align-items: center;
}

.alert-vacation-head {
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
}

.alert-vacation-head span {
  color: var(--muted) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.alert-vacation-row {
  padding: 9px 0;
  border-bottom: 1px solid rgba(226, 216, 200, 0.65);
}

.alert-vacation-row:last-child {
  border-bottom: 0;
}

.alert-vacation-row.alert-row-critical span:last-child {
  color: #d12626;
  font-weight: 800;
}

.alert-vacation-row.alert-row-warning span:last-child {
  color: #c98200;
  font-weight: 800;
}

.alert-vacation-row span {
  min-width: 0;
  white-space: normal;
}

.closing-detail {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.closing-collapsible {
  border-bottom: 1px solid var(--line);
}

.closing-collapsible[hidden] {
  display: none;
}

.closing-collapsible .panel-heading {
  border-bottom: 0;
  padding: 12px 18px;
}

.closing-collapsible h3,
.closing-collapsible p {
  margin: 0;
}

.closing-collapsible p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 3px;
}

.closing-adjust {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto minmax(180px, 1.2fr);
  gap: 12px;
  align-items: end;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.closing-adjust[hidden] {
  display: none;
}

.closing-adjust span,
.closing-note,
.muted-inline {
  color: var(--muted);
  font-size: 0.86rem;
}

.rich-closing-editor {
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.rich-closing-editor[hidden] {
  display: none;
}

.local-month-dialog{width:min(390px,calc(100vw - 32px));border:1px solid #cbdcd3;border-radius:14px;padding:18px;color:var(--text);background:#fff;box-shadow:0 16px 60px #123b2530}.local-month-dialog::backdrop{background:#123b2560}.local-month-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.local-month-dialog header button{border:1px solid #d5e1da;background:#f5faf7;border-radius:8px;padding:6px 16px;font-size:22px}.local-month-dialog footer{display:flex;justify-content:flex-end;margin-top:16px}.local-month-dialog [aria-pressed="true"]{background:#167947;color:white}

/* Operational alerts: one compact row per subject, consistent on both surfaces. */
.home-alert-strip {display:flex;align-items:center;gap:10px;padding:10px 13px;margin-bottom:18px;border:1px solid var(--line,#dce7e1);border-radius:7px;background:white;font-size:13px;line-height:1.4;}
.home-alert-icon {width:17px;height:17px;flex:0 0 17px;color:#ae790a;}
.home-alert-strip strong {font-weight:650;min-width:0;overflow-wrap:anywhere;}
.home-alert-strip .home-alert-link {margin-left:auto;flex-shrink:0;border:0;background:transparent;color:var(--brand-mid,#14794f);font:inherit;font-size:12px;font-weight:650;padding:6px 0;cursor:pointer;}
.home-alert-strip .home-alert-link:focus-visible {outline:2px solid var(--brand-mid,#14794f);outline-offset:4px;border-radius:3px;}
.home-alert-critical {color:#b2392d;font-size:12px;}
.home-alert-strip.has-critical .home-alert-icon {color:#b2392d;}

.alert-bell-panel {position:absolute;right:12px;top:calc(100% + 8px);width:min(460px,calc(100vw - 24px));max-height:75vh;overflow:auto;background:var(--surface,#fff);border:1px solid #d7e4dd;border-radius:12px;box-shadow:0 12px 36px #15392a33;padding:16px;z-index:100;}
.alert-bell-panel header {display:flex;align-items:center;justify-content:space-between;}
.alert-bell-panel ul,.alerts-dedicated-list {padding:0;list-style:none;}
.alert-followup-tabs {display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px;}
.alert-followup-tabs [aria-pressed="true"] {background:#e7f3ec;border-color:#16834b;color:#14633f;}
.alerts-summary-grid {gap:12px!important;}
.alerts-summary-card {min-height:0!important;padding:14px 18px!important;display:grid!important;grid-template-columns:1fr auto!important;gap:3px 14px!important;}
.alerts-summary-card strong {grid-column:2;grid-row:1/3;font-size:26px!important;}
.alerts-summary-card em {display:none;}
.alert-compact-row {display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px!important;padding:14px 18px!important;border:0!important;border-bottom:1px solid #dce7e1!important;border-left:3px solid #d9a240!important;border-radius:0!important;background:#fff!important;font-size:14px;}
.alert-compact-row.is-critical {border-left-color:#bd3a2c!important;}
.alert-compact-row strong,.alert-compact-row span,.alert-compact-row small {display:block;overflow-wrap:anywhere;}
.alert-compact-row small {color:var(--muted);margin-top:4px;}
.alert-compact-actions {flex-shrink:0;text-align:right;}
.alert-compact-actions summary {cursor:pointer;color:#14633f;font-size:13px;padding:7px 0;}
.alert-compact-actions details>div {display:grid;gap:8px;max-width:245px;text-align:left;}
.alert-compact-actions label {font-size:13px;display:grid;gap:5px;}
.alert-compact-empty,.alert-followup-error {padding:16px 20px;}
.alert-followup-error {color:#9f3025;background:#fff3f0;}
.alerts-igpm-panel>summary,.alert-integration-panel>summary {padding:16px 20px;font-weight:650;cursor:pointer;}
#alertIntegrationList {padding:0 20px 20px;}
@media(max-width:700px) {.alert-compact-row {flex-direction:column;}.alert-compact-actions {display:flex;gap:14px;flex-wrap:wrap;text-align:left;}.alerts-summary-grid {grid-template-columns:1fr 1fr!important;}.alerts-summary-card small {font-size:12px;}.alert-bell-panel .alert-compact-row{padding:12px 8px!important;}}

@media(max-width:500px){.home-alert-strip{gap:8px;font-size:12px;padding:9px 11px;flex-wrap:wrap;}.home-alert-critical{width:auto;}.home-alert-strip .home-alert-link{margin-left:auto;}}
/* fonte: operation/client-closing-base.css */
.rich-closing-heading,
.rich-closing-footer {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.rich-closing-heading h3,
.rich-closing-heading p {
  margin: 0;
}

.rich-closing-heading p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.rich-closing-heading label {
  flex: 0 0 190px;
}

.closing-tariff-strip {
  align-items: center;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  min-height: 44px;
  padding: 7px 24px;
}

.closing-tariff-strip > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.closing-tariff-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.closing-tariff-strip strong {
  font-size: 0.98rem;
}

.rich-closing-table {
  margin-top: 14px;
}

.rich-closing-details {
  background: #fff;
}

.rich-closing-details form {
  padding: 0 18px 16px;
}

.rich-closing-table table {
  min-width: 850px;
}

.rich-closing-table .table-input {
  min-width: 92px;
  width: 100%;
}

.rich-closing-table tfoot th {
  background: var(--surface-strong);
  border-top: 2px solid var(--line);
}

.rich-closing-footer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.rich-closing-footer span,
.rich-closing-footer small,
.rich-closing-footer strong {
  display: block;
}

.rich-closing-footer span,
.rich-closing-footer small {
  color: var(--muted);
}

.rich-closing-footer strong {
  font-size: 1.25rem;
  margin: 3px 0;
}

.rich-closing-actions {
  display: flex;
  gap: 10px;
}

.closing-note {
  margin: 0;
}

.closing-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.8fr);
  gap: 12px;
}

.closing-result-card {
  background: #e9f5ee;
  border: 1px solid #d1e5d8;
  border-radius: 8px;
  padding: 16px;
}

.closing-result-card span,
.closing-result-card small,
.closing-result-card em {
  color: var(--muted);
  display: block;
  font-style: normal;
}

.closing-result-card span {
  font-size: 0.86rem;
}

.closing-result-card strong {
  color: var(--info);
  display: block;
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 7px 0 9px;
}

.closing-result-card small {
  color: var(--info);
  font-weight: 800;
}

.closing-result-card em {
  font-size: 0.78rem;
  margin-top: 8px;
}

.closing-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.closing-finance-grid > div,
.closing-operational-strip > div {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.closing-finance-grid span,
.closing-operational-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
}

.closing-finance-grid strong,
.closing-operational-strip strong {
  display: block;
  font-size: 1rem;
  margin-top: 5px;
  white-space: nowrap;
}

.closing-finance-grid small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.closing-operational-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.closing-operational-strip small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 3px;
}

.closing-operational-strip .closing-vapor-breakdown {
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.closing-operational-strip .closing-vapor-breakdown span {
  display: block;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
}

.closing-operational-strip .closing-vapor-breakdown span + span {
  margin-top: 2px;
}

.negative-value {
  color: #a33f36;
}

.positive-value {
  color: var(--info);
}

.closing-detail-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.closing-detail-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding: 13px 16px;
}

.closing-detail-section summary::-webkit-details-marker {
  display: none;
}

.closing-detail-section summary::before {
  color: var(--brand-accent);
  content: "▸";
  font-weight: 900;
  margin-right: 8px;
}

.closing-detail-section[open] summary::before {
  content: "▾";
}

.closing-detail-section summary span {
  color: var(--text);
  flex: 1;
  font-weight: 900;
}

.closing-detail-section summary small {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.closing-detail-section .table-wrap {
  border-top: 1px solid var(--line);
  margin: 0;
}

.closing-withdrawals-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.closing-withdrawals-summary {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  padding: 14px 16px;
}

.closing-withdrawals-collapsible > summary.closing-withdrawals-summary {
  align-items: center;
  cursor: pointer;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr) auto;
  list-style: none;
}

.closing-withdrawals-collapsible > summary.closing-withdrawals-summary::-webkit-details-marker {
  display: none;
}

.closing-withdrawals-toggle {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-mid);
  font-size: 0;
  font-weight: 900;
  justify-self: end;
  padding: 8px 14px;
  white-space: nowrap;
}

.closing-withdrawals-toggle::before {
  content: "Abrir";
  font-size: 0.9rem;
}

.closing-withdrawals-collapsible[open] .closing-withdrawals-toggle::before {
  content: "Recolher";
}

.closing-withdrawals-summary h3,
.closing-withdrawals-summary p {
  margin: 0;
}

.closing-withdrawals-summary h3 {
  font-size: 1rem;
}

.closing-withdrawals-summary p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.closing-withdrawals-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.closing-withdrawals-kpis > div {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 9px 11px;
}

.closing-withdrawals-kpis span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.closing-withdrawals-kpis strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closing-withdrawals-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.closing-withdrawal-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.7fr) minmax(150px, 1fr) minmax(130px, 0.8fr) minmax(180px, 1.2fr) auto;
}

.closing-withdrawal-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 5px;
  min-width: 0;
}

.closing-withdrawal-form input {
  min-width: 0;
}

.closing-withdrawal-form .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

.closing-withdrawals-table {
  table-layout: fixed;
  width: 100%;
}

.closing-withdrawals-table th:nth-child(1),
.closing-withdrawals-table td:nth-child(1) { width: 9%; }
.closing-withdrawals-table th:nth-child(2),
.closing-withdrawals-table td:nth-child(2) { width: 24%; }
.closing-withdrawals-table th:nth-child(3),
.closing-withdrawals-table td:nth-child(3) { width: 18%; }
.closing-withdrawals-table th:nth-child(4),
.closing-withdrawals-table td:nth-child(4) { width: 27%; }
.closing-withdrawals-table th:nth-child(5),
.closing-withdrawals-table td:nth-child(5) { width: 22%; }

.closing-withdrawal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.closing-withdrawals-table td { vertical-align: middle; }
.closing-withdrawal-actions button { flex: 0 0 auto; }

.closing-withdrawal-name,
.closing-withdrawal-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.closing-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-strong);
}

.closing-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.closing-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.closing-metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.supplier-subtotal-row th {
  background: #f3f7f3;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.supplier-subtotal-row th:first-child {
  text-align: right;
}

.closing-delivery-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.closing-delivery-table th,
.closing-delivery-table td {
  padding: 7px 8px;
  font-size: 0.78rem;
  overflow: hidden;
}

.closing-delivery-table th:nth-child(1) { width: 10%; }
.closing-delivery-table th:nth-child(2) { width: 30%; }
.closing-delivery-table th:nth-child(3) { width: 12%; }
.closing-delivery-table th:nth-child(4) { width: 9%; }
.closing-delivery-table th:nth-child(5) { width: 14%; }
.closing-delivery-table th:nth-child(6) { width: 25%; }

.closing-delivery-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closing-delivery-table .compact-number {
  white-space: nowrap;
}

.closing-delivery-table .muted-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.closing-value-stack {
  line-height: 1.2;
}

.closing-value-stack strong,
.closing-value-stack small {
  display: block;
}

.closing-value-stack small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: normal;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
/* fonte: finance/registry-and-tax-base.css */
.registry-shell {
  display: grid;
  gap: 14px;
}

.registry-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.registry-overview.assets-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.registry-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid #cad9cf;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 10px 12px;
  text-align: left;
}

.registry-summary-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.registry-summary-card strong {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.registry-summary-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.registry-summary-card.active {
  background: #eaf6ef;
  border-color: #a7c9b3;
  border-left-color: var(--brand-mid);
}

.registry-summary-card:focus-visible {
  outline: 3px solid rgba(31, 132, 92, 0.2);
  outline-offset: 2px;
}

.registry-main-panel .panel-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.registry-main-panel .panel-heading h2 {
  font-size: 1rem;
}

.registry-count-pill {
  align-self: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.registry-form-stack {
  border-bottom: 1px solid var(--line);
}

.registry-form {
  align-items: center;
  border-bottom: 0;
  padding: 10px 14px;
}

.registry-form[hidden],
.registry-table[hidden] {
  display: none !important;
}

.registry-form.fornecedor-form {
  gap: 7px;
  grid-template-columns: minmax(180px, 1fr) max-content 70px max-content 82px 82px;
}

.registry-form.fornecedor-form > * {
  min-width: 0;
}

.registry-form.fornecedor-form input[name="creditoIcmsPercent"],
.registry-form.fornecedor-form input[name="retencaoInssPercent"] {
  max-width: 82px;
}

.registry-form .inline-check {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  gap: 5px;
  white-space: nowrap;
}

.registry-form .inline-check input {
  min-height: auto;
}

.registry-table-wrap {
  overflow-x: hidden;
}

.registry-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.registry-table th,
.registry-table td {
  font-size: 0.78rem;
  padding: 7px 10px;
  white-space: normal;
}

.registry-table th:nth-child(1),
.registry-table td:nth-child(1) {
  width: 62%;
}

.registry-table th:nth-child(2),
.registry-table td:nth-child(2) {
  width: 20%;
}

.registry-table th:nth-child(3),
.registry-table td:nth-child(3) {
  text-align: right;
  width: 18%;
}

.registry-table[data-cadastro-table="fornecedor"] th:nth-child(1),
.registry-table[data-cadastro-table="fornecedor"] td:nth-child(1) {
  width: 50%;
}

.registry-table[data-cadastro-table="fornecedor"] th:nth-child(2),
.registry-table[data-cadastro-table="fornecedor"] td:nth-child(2),
.registry-table[data-cadastro-table="fornecedor"] th:nth-child(3),
.registry-table[data-cadastro-table="fornecedor"] td:nth-child(3) {
  text-align: left;
  width: 15%;
}

.registry-table[data-cadastro-table="fornecedor"] th:nth-child(4),
.registry-table[data-cadastro-table="fornecedor"] td:nth-child(4) {
  text-align: right;
  width: 20%;
}

.registry-name-cell strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
}

.registry-table .registry-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}

.registry-form input,
.registry-form select {
  font-size: 0.8rem;
  min-height: 34px;
  padding: 6px 8px;
}

.registry-form .secondary-button,
.registry-table .slim-button {
  font-size: 0.76rem;
  min-height: 30px;
  padding: 6px 9px;
}

.tax-credit-shell {
  gap: 14px;
}

.tax-credit-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tax-credit-summary-card {
  cursor: default;
}

.tax-credit-panel .panel-heading p {
  color: var(--muted);
  font-size: 0.82rem;
}

.tax-credit-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 16px 18px;
}

.tax-credit-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(130px, 0.85fr) minmax(90px, 0.6fr) minmax(170px, 1fr) minmax(150px, 0.85fr);
  gap: 10px;
  padding: 14px 18px 16px;
}

.tax-credit-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 5px;
}

.tax-credit-form input,
.tax-credit-form select {
  font-size: 0.82rem;
  min-height: 34px;
  padding: 6px 8px;
}

.tax-credit-form .wide,
.tax-credit-status,
.tax-credit-meta,
.tax-credit-actions {
  grid-column: 1 / -1;
}

.tax-credit-status {
  color: var(--brand-mid);
  font-size: 0.82rem;
  font-weight: 800;
}

.tax-credit-meta {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.74rem;
  gap: 6px;
  grid-template-columns: 2fr 0.7fr 1.3fr;
  padding: 9px 10px;
}

.tax-credit-meta strong {
  color: var(--text);
  margin-right: 4px;
}

.tax-credit-actions {
  display: flex;
  gap: 10px;
}

.tax-credit-table th,
.tax-credit-table td {
  font-size: 0.76rem;
  padding: 7px 9px;
}

.tax-credit-table th:nth-child(1),
.tax-credit-table td:nth-child(1) { width: 10%; }
.tax-credit-table th:nth-child(2),
.tax-credit-table td:nth-child(2) { width: 33%; }
.tax-credit-table th:nth-child(3),
.tax-credit-table td:nth-child(3) { width: 9%; }
.tax-credit-table th:nth-child(4),
.tax-credit-table td:nth-child(4) { width: 15%; }
.tax-credit-table th:nth-child(5),
.tax-credit-table td:nth-child(5) {
  text-align: right;
  white-space: nowrap;
  width: 12%;
}
.tax-credit-table th:nth-child(6),
.tax-credit-table td:nth-child(6) {
  text-align: right;
  width: 21%;
}

.tax-credit-table td:nth-child(6) .registry-actions {
  flex-wrap: wrap;
  min-width: 0;
  white-space: normal;
}

.tax-credit-table td:nth-child(6) .slim-button {
  white-space: nowrap;
}

.tax-credit-table .registry-name-cell small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  margin-top: 2px;
}

.tax-page-shell {
  display: grid;
  gap: 18px;
}

.tax-page-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tax-total-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.tax-total-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand-mid);
}

.tax-total-card.tax-alert::before {
  background: var(--brand);
}

.tax-total-card.tax-info::before {
  background: var(--info);
}

.tax-total-card.tax-danger::before {
  background: var(--danger);
}

.tax-total-card span,
.tax-total-card small {
  color: var(--muted);
  display: block;
}

.tax-total-card span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tax-total-card strong {
  color: var(--text);
  display: block;
  font-size: clamp(1.08rem, 1.15vw, 1.28rem);
  line-height: 1.15;
  margin-top: 8px;
  white-space: nowrap;
}

.tax-total-card small {
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 6px;
}

.tax-main-panel .registry-count-pill {
  align-self: center;
}

.tax-table th,
.tax-table td {
  padding: 12px 16px;
}

.tax-table .numeric {
  text-align: right;
}

.tax-table td.numeric small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 3px;
  white-space: nowrap;
}

.tax-quarter-panel .table-wrap {
  border-top: 1px solid var(--line);
}

.tax-quarter-adjust {
  align-items: end;
  background: var(--soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(220px, 280px)) minmax(220px, 1fr);
  padding: 14px 16px;
}

.tax-quarter-adjust label,
.tax-quarter-adjust div {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.tax-quarter-adjust small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.tax-quarter-adjust input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 12px;
}

.tax-quarter-adjust strong {
  color: var(--text);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .tax-quarter-adjust {
    grid-template-columns: 1fr;
  }
}

.tax-investment-section {
  border-top: 1px solid var(--line);
  min-width: 0;
}

.tax-investment-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  padding: 14px 16px 16px;
}

.tax-investment-monthly,
.tax-investment-fiscal {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.tax-investment-heading {
  align-items: center;
  background: var(--surface);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
}

.tax-investment-heading h3 {
  font-size: 0.98rem;
  margin: 0;
}

.tax-investment-heading small,
.tax-investment-heading span,
.tax-investment-fiscal-list span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.tax-investment-heading strong {
  color: var(--info);
  font-size: 1rem;
  white-space: nowrap;
}

.tax-investment-table-wrap {
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.tax-investment-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
}

.tax-investment-table th,
.tax-investment-table td {
  padding: 8px 8px;
}

.tax-investment-table th:nth-child(1),
.tax-investment-table td:nth-child(1) { width: 13%; }
.tax-investment-table th:nth-child(2),
.tax-investment-table td:nth-child(2),
.tax-investment-table th:nth-child(3),
.tax-investment-table td:nth-child(3),
.tax-investment-table th:nth-child(4),
.tax-investment-table td:nth-child(4),
.tax-investment-table th:nth-child(5),
.tax-investment-table td:nth-child(5) { width: 16%; }
.tax-investment-table th:nth-child(6),
.tax-investment-table td:nth-child(6) { width: 23%; }

.tax-investment-input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  max-width: 100%;
  min-width: 0;
  padding: 7px 7px;
  text-align: right;
  width: 100%;
}

.tax-investment-fiscal-list {
  display: grid;
  gap: 0;
}

.tax-investment-fiscal-list > div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 14px;
}

.tax-investment-fiscal-list strong {
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.tax-investment-fiscal-total {
  background: var(--soft);
}

.tax-investment-final-total {
  align-items: center;
  background: #eaf7ef;
  border-top: 1px solid #c9e7d4;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.tax-investment-final-total span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.tax-investment-final-total strong {
  color: var(--brand-mid);
  font-size: 1.02rem;
  white-space: nowrap;
}
/* fonte: finance/tariffs.css */
.tariff-panel {
  grid-column: 1 / -1;
}

.igpm-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
}

.igpm-indicator:focus-visible {
  outline: 3px solid rgba(31, 132, 92, 0.22);
  outline-offset: 2px;
}

.igpm-indicator span,
.igpm-indicator small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.igpm-indicator small {
  text-align: right;
  line-height: 1.35;
}

.igpm-indicator strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.3rem;
}

.igpm-indicator.triggered {
  border-color: rgba(180, 59, 59, 0.38);
  background: #fff1f1;
}

.igpm-indicator.triggered strong {
  color: var(--danger);
}

.igpm-indicator.triggered span,
.igpm-indicator.triggered small {
  color: #7f3434;
}

.igpm-indicator.safe strong {
  color: #087a50;
}

.igpm-indicator.stale {
  border-color: rgba(196, 122, 0, 0.42);
}

.igpm-stale-note {
  color: #a35f00 !important;
}

.igpm-month-detail {
  flex: 1 0 100%;
  border-top: 1px solid rgba(191, 204, 195, 0.9);
  padding-top: 12px;
}

.igpm-month-detail p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
}

.igpm-month-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(88px, 0.55fr) minmax(100px, 0.65fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 204, 195, 0.9);
  border-radius: 8px;
  background: #fff;
}

.igpm-month-grid > span,
.igpm-month-grid > strong,
.igpm-month-grid > .igpm-preview-cell {
  border-bottom: 1px solid rgba(226, 216, 200, 0.72);
  color: var(--text);
  font-size: 0.84rem;
  padding: 8px 10px;
}

.igpm-month-grid > span {
  background: #f3f7f4;
  color: var(--muted) !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.igpm-month-grid > strong {
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
}

.alerts-igpm-indicator .igpm-month-grid > strong {
  font-size: 0.88rem;
  line-height: 1.25;
  margin: 0;
}

.igpm-month-grid > strong:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.igpm-month-grid > .igpm-preview-cell {
  background: #fff8e8;
  border-bottom: 0;
  border-top: 1px solid rgba(232, 154, 26, 0.42);
  min-width: 0;
}

.igpm-preview-cell b,
.igpm-preview-cell small {
  display: block;
  line-height: 1.25;
}

.alerts-igpm-indicator .igpm-preview-cell b {
  color: #b96c00;
  font-size: 0.88rem;
  margin: 0;
}

.alerts-igpm-indicator .igpm-preview-cell small {
  color: #8a6a38;
  font-size: 0.68rem;
  font-weight: 750;
  margin-top: 2px;
  text-align: left;
}

.igpm-preview-period {
  border-left: 3px solid #e89a1a;
}

.igpm-preview-period em {
  background: #fff0d2;
  border: 1px solid rgba(232, 154, 26, 0.34);
  border-radius: 999px;
  color: #a96200;
  display: inline-block;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 850;
  margin-top: 4px;
  padding: 2px 7px;
}
/* fonte: shared/forms-and-responsive.css */
.compact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.compact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-form.two-inputs {
  grid-template-columns: minmax(0, 1fr) 88px auto;
}

.compact-form.medidor-form,
.compact-form.tarifa-form {
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) auto;
}

.compact-form.tarifa-form {
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) auto;
  align-items: end;
}

.tarifa-period-field .month-button {
  width: 100%;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--brand-mid);
  font-size: 0.84rem;
  font-weight: 800;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.delivery-row-actions {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px;
  padding-left: 3px !important;
  padding-right: 3px !important;
  white-space: nowrap;
}

.delivery-row-actions .icon-button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.delivery-edit-button {
  min-height: 28px;
  padding: 0;
  font-size: 1rem;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  font-weight: 800;
}

.icon-button.neutral {
  color: var(--brand-dark);
}

.month-picker {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(14, 28, 22, 0.24);
  padding: 20px;
}

.month-picker[hidden] {
  display: none;
}

.month-picker-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.month-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.month-picker-head strong {
  font-size: 1.15rem;
}

.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-picker-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 800;
}

.month-picker-grid button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

  .sidebar-footer {
    grid-template-columns: 1fr auto;
  }

  .kpi-grid,
  .dashboard-grid,
	  .dashboard-financial-summary,
	  .registry-overview,
	  .registry-overview.assets-overview,
	  .tax-credit-overview,
	  .tax-page-overview,
	  .registry-grid,
  .closing-summary,
  .daily-summary,
  .employee-record-summary,
  .employee-mask {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
	  .registry-form.fornecedor-form,
	  .tax-credit-form,
	  .closing-form-top,
  .closing-adjust,
  .daily-form,
  .daily-readings,
  .employee-record-fields,
  .vacation-import-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rich-closing-heading,
  .rich-closing-footer {
    align-items: stretch;
    display: grid;
  }

  .rich-closing-heading label {
    max-width: 240px;
  }

  .xml-bulk-toolbar {
    grid-template-columns: 1fr;
  }

  .hours-entry-form {
    grid-template-columns: 1fr;
  }

	  .dashboard-financial-grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

    .dashboard-profit-kpis,
    .dashboard-reference-cards,
    .dashboard-close-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

	  .tax-credit-meta {
	    grid-template-columns: 1fr;
	  }

	  .dashboard-tax-panel-body {
	    grid-template-columns: 1fr;
	  }

	  .dashboard-tax-chip-grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

    .closing-withdrawals-summary,
    .closing-withdrawal-form {
      grid-template-columns: 1fr;
    }

    .closing-withdrawals-collapsible > summary.closing-withdrawals-summary {
      grid-template-columns: 1fr;
    }

    .closing-withdrawals-toggle {
      justify-self: start;
    }

    .closing-withdrawals-kpis {
      grid-template-columns: 1fr;
    }

	}

@media (max-width: 680px) {
  .content {
    padding: 18px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .topbar-actions > * {
    flex: 1 1 auto;
  }

  .nav,
  .kpi-grid,
  .dashboard-grid,
  .dashboard-financial-summary,
	  .dashboard-financial-grid,
  .dashboard-reference-cards,
	  .registry-overview,
	  .registry-overview.assets-overview,
	  .tax-credit-overview,
	  .tax-page-overview,
	  .registry-grid,
  .closing-summary,
  .daily-summary,
  .employee-record-summary,
  .employee-mask,
  .form-grid,
	  .registry-form.fornecedor-form,
	  .tax-credit-form,
	  .closing-form-top,
  .vacation-import-form,
  .closing-adjust,
  .daily-form,
  .daily-readings,
  .employee-record-fields,
  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .period-panel {
    align-items: stretch;
    display: grid;
  }

  .period-panel p {
    text-align: left;
  }

  .rich-closing-actions {
    display: grid;
  }

  .wide {
    grid-column: auto;
  }

  .compact-form,
  .compact-form.two-inputs,
  .compact-form.medidor-form,
  .compact-form.tarifa-form {
    grid-template-columns: 1fr;
  }

  .dashboard-tax-panel-body {
    grid-template-columns: 1fr;
  }

  .dashboard-tax-chip-grid {
    grid-template-columns: 1fr;
  }
}
/* fonte: operation/stock.css */
/* Organização da área de Estoque — v403 */
.stock-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stock-navigation-panel {
  overflow: hidden;
}

.stock-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.stock-navigation-heading h2,
.stock-navigation-heading p {
  margin: 0;
}

.stock-navigation-heading h2 {
  font-size: 1.2rem;
}

.stock-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.stock-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stock-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.stock-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.stock-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-estoque-aba-painel][hidden] {
  display: none !important;
}

.stock-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stock-total-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 116px;
  padding: 16px 17px;
}

.stock-total-card.stock-info {
  border-left-color: #2f7fb5;
}

.stock-total-card.stock-outflow {
  border-left-color: #bf8b08;
}

.stock-total-card.stock-value {
  border-left-color: #7656a8;
}

.stock-total-card > span {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 850;
}

.stock-total-card > strong {
  color: var(--text);
  font-size: 1.36rem;
  line-height: 1.15;
  margin-top: 8px;
}

.stock-total-card > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 5px;
}

.stock-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.stock-action-grid button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
}

.stock-action-grid button:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.stock-action-grid button.primary {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.stock-action-grid button > span {
  font-size: 1.08rem;
  grid-row: 1 / span 2;
}

.stock-action-grid button > strong {
  font-size: 0.78rem;
}

.stock-action-grid button > small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.stock-action-grid button.primary > small {
  color: rgba(255, 255, 255, 0.84);
}

.stock-summary-columns,
.stock-conference-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  min-width: 0;
}

.stock-unit-grid,
.stock-review-list {
  display: grid;
  gap: 9px;
  padding: 0 16px 16px;
}

.stock-unit-card {
  align-items: center;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  padding: 12px 13px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.stock-unit-card:hover {
  border-color: #8fc3a0;
  box-shadow: 0 5px 14px rgba(24, 77, 43, 0.1);
  transform: translateY(-1px);
}

.stock-unit-card:focus-visible {
  outline: 3px solid rgba(31, 139, 74, 0.25);
  outline-offset: 2px;
}

.stock-unit-card > div:first-child strong,
.stock-unit-card > div:first-child small {
  display: block;
}

.stock-unit-card > div:first-child strong {
  font-size: 0.78rem;
}

.stock-unit-card > div:first-child small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  margin-top: 2px;
}

.stock-unit-metric {
  text-align: right;
}

.stock-unit-metric span,
.stock-unit-metric strong {
  display: block;
}

.stock-unit-metric span {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stock-unit-metric strong {
  font-size: 0.68rem;
  margin-top: 3px;
  white-space: nowrap;
}

.stock-review-row {
  align-items: center;
  background: #f2faf5;
  border: 1px solid #b8dcc4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
}

.stock-review-row.warning {
  background: #fff8e8;
  border-color: #eed18a;
}

.stock-review-icon {
  align-items: center;
  background: #e4f3e9;
  border-radius: 50%;
  color: var(--brand-mid);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.stock-review-row.warning .stock-review-icon {
  background: #fae8b7;
  color: #8c6300;
}

.stock-review-row > div strong,
.stock-review-row > div small {
  display: block;
}

.stock-review-row > div strong {
  font-size: 0.77rem;
}

.stock-review-row > div small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}

.stock-review-row > button {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.stock-heading-note {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.stock-adjust-form-visible {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.stock-safety-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.stock-safety-list > div {
  background: #eef7f1;
  border: 1px solid #cce4d4;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 12px 13px;
}

.stock-safety-list strong {
  color: var(--brand-mid);
  font-size: 0.76rem;
}

.stock-safety-list span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .stock-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-summary-columns,
  .stock-conference-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .stock-tabs {
    display: flex;
    overflow-x: auto;
  }
  .stock-tabs button {
    flex: 0 0 auto;
    min-width: 128px;
  }
  .stock-unit-card {
    grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  }
  .stock-unit-metric:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  .stock-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-overview,
  .stock-action-grid {
    grid-template-columns: 1fr;
  }
  .stock-unit-card {
    grid-template-columns: 1fr 1fr;
  }
  .stock-unit-card > div:first-child {
    grid-column: 1 / -1;
  }
  .stock-unit-metric {
    text-align: left;
  }
  .stock-unit-metric:last-child {
    display: block;
  }
  .stock-review-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .stock-review-row > button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }
}

#estoqueValorControles {
  padding: 16px 20px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
}
#estoqueValorControles p { margin: 0; }
.stock-value-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-value-table td { vertical-align: middle; }
.stock-value-table th:not(:first-child),
.stock-value-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.stock-value-table th:nth-child(2), .stock-value-table td.stock-value-price { text-align: center; }
.stock-value-price > strong, .stock-value-price > small { display: block; }
.stock-value-price > small { margin: 2px 0; }
#estoque .stock-value-adjust {
  min-height: 24px; height: auto; padding: 2px 6px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ui-modern-emerald);
  font-size: var(--ui-font-caption); font-weight: 400; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 2px;
}
#estoque .stock-value-adjust:hover { color: var(--ui-modern-emerald-hover); }
.stock-value-editor { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 8px 12px; text-align: left; }
.stock-value-editor label { display: grid; gap: 6px; }
.stock-value-editor input { width: 160px; max-width: 100%; }
.stock-value-editor small { flex-basis: 100%; color: var(--muted); }
@media (pointer: coarse) { #estoque .stock-value-adjust { min-height: 44px; min-width: 44px; } }


@media screen {
 #estoque .stock-value-workspace { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr); gap:18px; align-items:start; }
 #estoque .stock-value-workspace[hidden] { display:none; }
 #estoque .stock-value-main,#estoque .stock-value-support { min-width:0; }
 #estoque .stock-value-support { display:grid; gap:14px; }
 #estoque .stock-value-table { width:100%; min-width:0; table-layout:fixed; }
 #estoque .stock-value-table th:first-child { width:36%; }
 #estoque .stock-value-table th:nth-child(2) { width:32%; }
 #estoque .stock-value-table th,#estoque .stock-value-table td { padding:14px 12px; font-size:13px; white-space:normal; overflow-wrap:anywhere; }
 #estoque .stock-value-table td strong { font-size:13px; }
 #estoque .stock-value-table td small { display:block; margin-top:4px; font-size:11px; font-weight:400; }
 #estoque .stock-value-total { padding:20px; }
 #estoque .stock-value-total h3 { margin:0; font-size:15px; }
 #estoque .stock-value-total-heading>strong { display:block; color:#147c4b; font-size:26px; margin:14px 0 6px; font-variant-numeric:tabular-nums; }
 #estoque .stock-value-total-heading>small { color:var(--muted); font-size:12px; }
 #estoque .stock-value-total dl>div { display:flex; justify-content:space-between; gap:12px; font-size:12px; padding:8px 0; }
 #estoque .stock-value-total dd { margin:0; font-variant-numeric:tabular-nums; }
 #estoque [data-stock-total-anchor] { margin-top:18px; border-top:1px solid #dce5df; padding-top:14px; }
 #estoque .stock-value-entries { padding:16px; border-top:1px solid #dce5df; }
 #estoque .stock-value-method { padding:16px; }
 #estoque .stock-value-entries>summary,#estoque .stock-value-method>summary { cursor:pointer; color:#147c4b; font-size:13px; font-weight:600; }
 #estoque .stock-value-method p,#estoque #estoqueValorControles p { font-size:12px; line-height:1.5; color:var(--muted); }
 #estoque .stock-value-editor { padding:12px 0; }
 #estoque .stock-value-total .stock-value-editor label,#estoque .stock-value-total .stock-value-editor input { width:100%; }
}
@media screen and (max-width:1000px) {
 #estoque .stock-value-workspace { grid-template-columns:minmax(0,1fr); }
}
@media screen and (max-width:480px) {
 #estoque .stock-value-table th,#estoque .stock-value-table td { padding:12px 6px; font-size:11px; }
 #estoque .stock-value-table td strong { font-size:12px; }
}
/* fonte: operation/deliveries.css */
/* Organização da área de Entregas — v401 */
.deliveries-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.deliveries-navigation-panel {
  overflow: hidden;
}

.deliveries-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.deliveries-navigation-heading h2,
.deliveries-navigation-heading p {
  margin: 0;
}

.deliveries-navigation-heading h2 {
  font-size: 1.2rem;
}

.deliveries-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.deliveries-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.deliveries-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.deliveries-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.deliveries-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-entregas-aba-painel][hidden] {
  display: none !important;
}

.deliveries-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.deliveries-total-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 116px;
  padding: 16px 17px;
}

.deliveries-total-card.deliveries-info {
  border-left-color: #2f7fb5;
}

.deliveries-total-card.deliveries-cost {
  border-left-color: #be3b2f;
}

.deliveries-total-card.deliveries-warning {
  border-left-color: #bf8b08;
}

.deliveries-total-card > span {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 850;
}

.deliveries-total-card > strong {
  color: var(--text);
  font-size: 1.48rem;
  line-height: 1.15;
  margin-top: 8px;
}

.deliveries-total-card > small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 5px;
}

.deliveries-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.deliveries-action-grid button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
}

.deliveries-action-grid button:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.deliveries-action-grid button.primary {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.deliveries-action-grid button > span {
  font-size: 1.1rem;
  grid-row: 1 / span 2;
}

.deliveries-action-grid button > strong {
  font-size: 0.78rem;
}

.deliveries-action-grid button > small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.deliveries-action-grid button.primary > small {
  color: rgba(255, 255, 255, 0.84);
}

.deliveries-summary-columns,
.deliveries-conference-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  min-width: 0;
}

.deliveries-review-list,
.deliveries-conference-list {
  display: grid;
  gap: 9px;
  padding: 0 16px 16px;
}

.deliveries-review-row,
.deliveries-conference-row {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
}

.deliveries-review-row.warning {
  background: #fff8e8;
  border-color: #eed18a;
}

.deliveries-review-row.ok {
  background: #f2faf5;
  border-color: #b8dcc4;
}

.deliveries-review-icon {
  align-items: center;
  background: #e4f3e9;
  border-radius: 50%;
  color: var(--brand-mid);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.deliveries-review-row.warning .deliveries-review-icon {
  background: #fae8b7;
  color: #8c6300;
}

.deliveries-review-copy strong,
.deliveries-review-copy small {
  display: block;
}

.deliveries-review-copy strong {
  font-size: 0.78rem;
}

.deliveries-review-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}

.deliveries-review-row button,
.deliveries-conference-row button {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.deliveries-recent-panel .table-wrap {
  border-top: 1px solid var(--line);
}

.deliveries-recent-table th,
.deliveries-recent-table td {
  font-size: 0.68rem;
  padding: 9px 10px;
}

.deliveries-recent-table td:last-child {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.deliveries-unit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.deliveries-unit-card {
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  padding: 14px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.deliveries-unit-card:hover {
  border-color: #8fc3a0;
  box-shadow: 0 5px 14px rgba(24, 77, 43, 0.1);
  transform: translateY(-1px);
}

.deliveries-unit-card:focus-visible {
  outline: 3px solid rgba(31, 139, 74, 0.25);
  outline-offset: 2px;
}

.deliveries-unit-card > div:first-child strong,
.deliveries-unit-card > div:first-child small {
  display: block;
}

.deliveries-unit-card > div:first-child strong {
  font-size: 0.82rem;
}

.deliveries-unit-card > div:first-child small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 3px;
}

.deliveries-unit-metric {
  text-align: right;
}

.deliveries-unit-metric span,
.deliveries-unit-metric strong {
  display: block;
}

.deliveries-unit-metric span {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deliveries-unit-metric strong {
  font-size: 0.74rem;
  margin-top: 3px;
  white-space: nowrap;
}

.delivery-cost-filter {
  align-items: center;
  background: #eef7f1;
  border-bottom: 1px solid #cce4d4;
  border-top: 1px solid #cce4d4;
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
}

.delivery-cost-filter[hidden] {
  display: none !important;
}

.delivery-cost-filter strong {
  color: var(--brand-dark);
}

.deliveries-safety-rule {
  background: #eef7f1;
  border: 1px solid #cce4d4;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  margin: 0 16px 14px;
  padding: 13px 14px;
}

.deliveries-safety-rule strong {
  color: var(--brand-mid);
  font-size: 0.78rem;
}

.deliveries-safety-rule span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .deliveries-overview,
  .deliveries-unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .deliveries-summary-columns,
  .deliveries-conference-columns {
    grid-template-columns: 1fr;
  }
  .deliveries-tabs {
    display: flex;
    overflow-x: auto;
  }
  .deliveries-tabs button {
    flex: 0 0 auto;
    min-width: 116px;
  }
}

@media (max-width: 680px) {
  .deliveries-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .deliveries-overview,
  .deliveries-action-grid,
  .deliveries-unit-grid {
    grid-template-columns: 1fr;
  }
  .deliveries-unit-card {
    grid-template-columns: 1fr 1fr;
  }
  .deliveries-unit-card > div:first-child {
    grid-column: 1 / -1;
  }
  .deliveries-unit-metric {
    text-align: left;
  }
  .deliveries-review-row,
  .deliveries-conference-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .deliveries-review-row button,
  .deliveries-conference-row button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }
}

/* Physical wood receipts share the existing delivery and closing shell. */
#lenhaContent details { border: 1px solid #dce7e2; border-radius: 12px; padding: 18px; margin: 16px 0; }
#lenhaContent summary { cursor: pointer; font-weight: 700; color: #13794d; }
.lenha-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.lenha-form label { display: flex; flex-direction: column; gap: 7px; }
.lenha-wide { grid-column: 1 / -1; }
.lenha-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.lenha-summary > div { background: #f3f8f5; border-radius: 10px; padding: 15px; }
.lenha-summary dt { color: #61756c; font-size: 13px; }
.lenha-summary dd { margin: 8px 0 0; font-weight: 700; }
.lenha-valuation { margin: 18px 0; grid-column: 1 / -1; }
.lenha-withdrawal-check { background: #f0f7f3; border: 1px solid #dce7e2; border-radius: 10px; padding: 15px; margin-bottom: 15px; }
#lenhaError:not(:empty) { background: #fff0e5; padding: 14px; border-radius: 8px; }
#lenhaVolumePreview { background: #e9f5ee; padding: 16px; font-weight: 700; border-radius: 10px; }
@media (max-width: 760px) { .lenha-form, .lenha-summary { grid-template-columns: 1fr; } }

#lenhaContent > h3, #lenhaContent > p, #lenhaContent > button { margin: 18px 20px; }
#lenhaContent td button { margin: 3px; }
#lenhaContent .lenha-valuation { padding: 20px; }
/* fonte: operation/vehicles.css */
/* Organização da área de Veículos — v404 */
.vehicles-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.vehicles-navigation-panel {
  overflow: hidden;
}

.vehicles-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.vehicles-navigation-heading h2,
.vehicles-navigation-heading p {
  margin: 0;
}

.vehicles-navigation-heading h2 {
  font-size: 1.2rem;
}

.vehicles-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.vehicles-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vehicles-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.vehicles-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.vehicles-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-veiculos-aba-painel][hidden] {
  display: none !important;
}

.vehicles-hub-shell .vehicle-kpi-grid {
  margin: 0;
}

.vehicles-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.vehicles-action-grid button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
}

.vehicles-action-grid button:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.vehicles-action-grid button.primary {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.vehicles-action-grid button > span {
  font-size: 1.08rem;
  grid-row: 1 / span 2;
}

.vehicles-action-grid button > strong {
  font-size: 0.78rem;
}

.vehicles-action-grid button > small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.vehicles-action-grid button.primary > small {
  color: rgba(255, 255, 255, 0.84);
}

.vehicles-summary-columns,
.vehicles-pending-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  min-width: 0;
}

.vehicles-pending-columns {
  margin-top: 0;
}

.vehicles-unit-grid,
.vehicles-review-list {
  display: grid;
  gap: 9px;
  padding: 0 16px 16px;
}

.vehicles-unit-card {
  align-items: center;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  padding: 12px 13px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.vehicles-unit-card:hover {
  border-color: #8fc3a0;
  box-shadow: 0 5px 14px rgba(24, 77, 43, 0.1);
  transform: translateY(-1px);
}

.vehicles-unit-card:focus-visible {
  outline: 3px solid rgba(31, 139, 74, 0.25);
  outline-offset: 2px;
}

.vehicles-unit-card > div:first-child strong,
.vehicles-unit-card > div:first-child small,
.vehicles-unit-metric span,
.vehicles-unit-metric strong {
  display: block;
}

.vehicles-unit-card > div:first-child strong {
  font-size: 0.78rem;
}

.vehicles-unit-card > div:first-child small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  margin-top: 2px;
}

.vehicles-unit-metric {
  text-align: right;
}

.vehicles-unit-metric span {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.vehicles-unit-metric strong {
  font-size: 0.72rem;
  margin-top: 3px;
  white-space: nowrap;
}

.vehicles-unit-metric.warning strong {
  color: #a36b00;
}

.vehicles-review-row {
  align-items: center;
  background: #f2faf5;
  border: 1px solid #b8dcc4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
}

.vehicles-review-row.warning {
  background: #fff8e8;
  border-color: #eed18a;
}

.vehicles-review-icon {
  align-items: center;
  background: #e4f3e9;
  border-radius: 50%;
  color: var(--brand-mid);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.vehicles-review-row.warning .vehicles-review-icon {
  background: #fae8b7;
  color: #8c6300;
}

.vehicles-review-row > div strong,
.vehicles-review-row > div small {
  display: block;
}

.vehicles-review-row > div strong {
  font-size: 0.77rem;
}

.vehicles-review-row > div small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}

.vehicles-review-row > button {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.vehicles-active-filter {
  align-items: center;
  background: #f4f8f5;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.73rem;
  font-weight: 750;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 16px;
}

.vehicles-empty-detail {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 260px;
  padding: 32px;
  text-align: center;
}

.vehicles-empty-detail[hidden] {
  display: none !important;
}

.vehicles-empty-detail > span {
  font-size: 2rem;
}

.vehicles-empty-detail h2,
.vehicles-empty-detail p {
  margin: 0;
}

.vehicles-empty-detail p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 420px;
}

.vehicles-hub-shell .vehicle-import-grid {
  margin: 0;
}

.vehicles-hub-shell .vehicle-detail-panel {
  margin-top: 0;
}

.vehicle-import-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.vehicle-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vehicle-filter-kpi {
  cursor: pointer;
  text-align: left;
}

.vehicle-filter-kpi small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.vehicle-filter-kpi.expanded {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.vehicle-import-grid .panel {
  margin: 0;
}

.vehicle-import-preview:empty {
  display: none;
}

.vehicle-import-form,
.vehicle-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.vehicle-import-form label,
.vehicle-form label,
.vehicle-filter {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 6px;
}

.vehicle-import-form .wide,
.vehicle-form .wide,
.vehicle-import-result {
  grid-column: 1 / -1;
}

.vehicle-import-result {
  background: #f5f8f5;
  border-left: 4px solid var(--accent);
  display: grid;
  gap: 3px;
  padding: 11px 13px;
}

.vehicle-import-result span {
  color: var(--muted);
  font-size: 0.86rem;
}

.vehicle-import-warning {
  background: #fff8e1;
  border: 1px solid #e5bd48;
  border-left: 4px solid #c58a00;
  border-radius: 8px;
  color: #6f4700;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 11px 13px;
}

.vehicle-import-warning span {
  color: #6f4700;
  font-size: 0.86rem;
  font-weight: 700;
}

.vehicle-import-actions,
.vehicle-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.vehicle-detail-panel {
  margin-top: 18px;
}

.vehicle-insurance-history {
  border-top: 1px solid var(--border);
  padding: 18px;
}

.vehicle-fines-history {
  border-top: 1px solid var(--border);
  padding: 18px;
}

.vehicle-fines-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vehicle-fines-heading h3,
.vehicle-fines-heading p {
  margin: 0;
}

.vehicle-fines-heading p,
.vehicle-fine-note {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 4px;
}

.vehicle-fine-note {
  color: var(--warning);
}

.vehicle-fines-table {
  min-width: 0;
  table-layout: fixed;
}

.vehicle-fines-table th,
.vehicle-fines-table td {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  padding: 9px 8px;
}

.vehicle-fines-table th:nth-child(3),
.vehicle-fines-table td:nth-child(3) {
  width: 28%;
}

.vehicle-insurance-history h3 {
  margin: 0 0 14px;
}

.seguro-vigente-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}

.seguro-vigente-header {
  align-items: center;
  background: #fff6df;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.seguro-vigente-title,
.seguro-label {
  color: var(--ink);
  font-weight: 900;
}

.seguro-vigente-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.seguro-vigente-grid > div:not(.seguro-cobertura-full) {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
}

.seguro-vigente-grid > div:not(.seguro-cobertura-full) strong {
  overflow-wrap: anywhere;
}

.seguro-cobertura-full {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  padding: 11px 12px;
}

.seguro-cobertura-full p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.seguro-fonte {
  background: #f8f6ef;
}

.vehicle-table td:first-child {
  min-width: 165px;
}

.vehicle-table {
  font-size: 0.82rem;
}

.vehicle-table th {
  font-size: 0.72rem;
  padding: 10px 7px;
}

.vehicle-table td {
  padding: 10px 7px;
}

.vehicle-table .slim-button {
  font-size: 0.76rem;
  min-height: 34px;
  padding: 6px 9px;
  white-space: nowrap;
}

.vehicle-table td:nth-child(n+2) {
  white-space: nowrap;
}

.vehicle-row td {
  transition: background-color 140ms ease;
}

.vehicle-pending-critical td:first-child {
  box-shadow: inset 4px 0 0 #ba2f2f;
}

.vehicle-row-carro td {
  background: #eef8f1;
}

.vehicle-row-caminhao td {
  background: #eef5fb;
}

.vehicle-row-equipamento td {
  background: #fff7df;
}

.vehicle-row-carro td:first-child {
  border-left: 4px solid #3b8a59;
}

.vehicle-row-caminhao td:first-child {
  border-left: 4px solid #3679ad;
}

.vehicle-row-equipamento td:first-child {
  border-left: 4px solid #c78a16;
}

.vehicle-type-label {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 4px;
}

.vehicle-pending-note {
  color: #7a5a00;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 4px;
  white-space: normal;
}

.vehicle-pending-note.critical {
  color: #b12626;
}

.vehicle-fipe-value,
.vehicle-fipe-model,
.vehicle-fipe-status,
.vehicle-fipe-warning {
  display: block;
  font-size: 0.7rem;
  margin-top: 3px;
  white-space: normal;
}

.vehicle-fipe-value {
  color: #17613b;
}

.vehicle-fipe-model,
.vehicle-fipe-status {
  color: var(--muted);
  font-weight: 600;
}

.vehicle-fipe-warning {
  color: #a35f00;
  font-weight: 750;
}

.vehicle-filter select {
  min-width: 180px;
}

.vehicle-unit-control {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.vehicle-unit-control .slim-button {
  min-height: 44px;
  white-space: nowrap;
}

.panel-subheading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 18px;
}

.scale-food-import {
  border-top: 1px solid var(--line);
}

.scale-food-import:empty {
  display: none;
}

.scale-food-import-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 18px;
}

.scale-food-import-header span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.scale-food-import .import-note {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  padding: 0 18px 14px;
}

.scale-food-table td,
.scale-food-table th {
  font-size: 0.84rem;
}

@media (max-width: 1050px) {
  .vehicle-import-grid {
    grid-template-columns: 1fr;
  }

  .vehicles-summary-columns,
  .vehicles-pending-columns {
    grid-template-columns: 1fr;
  }

  .seguro-vigente-grid {
    grid-template-columns: 1fr;
  }

  .daily-quick-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .daily-quick-services {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .vehicles-tabs {
    display: flex;
    overflow-x: auto;
  }

  .vehicles-tabs button {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .vehicles-unit-card {
    grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  }

  .vehicles-unit-metric:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  .vehicles-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .vehicles-action-grid {
    grid-template-columns: 1fr;
  }

  .vehicles-unit-card {
    grid-template-columns: 1fr 1fr;
  }

  .vehicles-unit-card > div:first-child {
    grid-column: 1 / -1;
  }

  .vehicles-unit-metric {
    text-align: left;
  }

  .vehicles-unit-metric:last-child {
    display: block;
  }

  .vehicles-review-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .vehicles-review-row > button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }

  .daily-quick-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-quick-controls {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .daily-quick-glicerina-compact {
    grid-template-columns: 1fr;
  }

  .daily-quick-time button {
    flex: 1;
  }

  .daily-quick-glicerina-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-quick-date {
    flex-basis: auto;
  }

  .daily-quick-row {
    grid-template-columns: 1fr;
  }

  .daily-quick-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-quick-save {
    width: 100%;
  }

  .vehicle-import-form,
  .vehicle-form {
    grid-template-columns: 1fr;
  }

  .vehicle-unit-control {
    grid-template-columns: 1fr;
  }

  .vehicle-import-form .wide,
  .vehicle-form .wide,
  .vehicle-import-result,
  .vehicle-import-warning {
    grid-column: auto;
  }

  .scale-food-import-header,
  .panel-subheading {
    align-items: stretch;
    flex-direction: column;
  }
}
/* fonte: shared/light-theme.css */
/* v225 - visual claro e familiar. Esta camada nao altera estrutura ou comportamento. */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-alt: #f7f9f8;
  --surface-strong: #edf6f0;
  --text: #17231c;
  --muted: #68756d;
  --line: #dfe6e1;
  --brand-dark: #183c28;
  --brand-mid: #1d7a45;
  --brand-accent: #1d7a45;
  --shadow: 0 1px 3px rgba(22, 48, 32, 0.08);
  --shadow-soft: 0 1px 2px rgba(22, 48, 32, 0.06);
  --sidebar-bg: #daefe2;
  --sidebar-active: #cde7d8;
  --sidebar-text: #4d6255;
  --sidebar-text-active: #145f35;
}

body {
  background: var(--bg);
}

.sidebar {
  padding: 18px 12px;
  background: var(--sidebar-bg);
  color: var(--text);
  border-right: 1px solid var(--line);
  box-shadow: none;
}

.brand {
  color: var(--text);
  border-bottom-color: var(--line);
}

.brand:hover {
  background: #cfe8da;
}

.brand:focus-visible {
  outline-color: rgba(29, 122, 69, 0.38);
}

.brand strong {
  color: var(--text);
}

.brand span,
.sidebar-footer label {
  color: var(--muted);
}

.brand-mark {
  border-radius: 7px;
  box-shadow: none;
}

.nav-section-label {
  color: #8a978f;
  letter-spacing: 0.06em;
}

.nav-group {
  border-top-color: #c5ded0;
}

.nav-group-toggle {
  color: #66736b;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-group-toggle .nav-icon {
  filter: grayscale(1);
  opacity: 0.68;
}

.nav-group-toggle:hover {
  color: var(--text);
  background: #d1e9dc;
}

.nav-group-toggle.group-active,
.nav-group.is-open > .nav-group-toggle {
  color: var(--sidebar-text-active);
  background: #d3eadf;
  font-weight: 600;
}

.nav-group-toggle.group-active .nav-icon,
.nav-group.is-open > .nav-group-toggle .nav-icon {
  filter: none;
  opacity: 1;
}

.nav-group-toggle:focus-visible {
  outline-color: rgba(29, 122, 69, 0.38);
}

.nav-item {
  color: var(--sidebar-text);
  min-height: 38px;
}

.nav-item .nav-icon {
  filter: grayscale(1);
  opacity: 0.68;
}

.nav-item.active {
  color: var(--sidebar-text-active);
  background: var(--sidebar-active);
  box-shadow: inset 3px 0 0 var(--brand-mid);
}

.nav-item.active .nav-icon {
  filter: none;
}

.nav-item:hover:not(.active) {
  color: var(--text);
  background: #d1e9dc;
}

.nav-item.group-active {
  color: var(--text);
  background: #d3eadf;
}

.sub-nav-item {
  color: #66736b;
}

.app-version {
  color: #99a49d;
}

.sidebar-clock {
  color: #536158;
}

.sidebar-footer input,
.month-button {
  color: var(--text);
  background: #eef8f2;
  border-color: #bdd8c9;
}

.sidebar-footer .ghost-button {
  color: #a33a3a;
  background: #fff;
  border-color: #e5c7c7;
}

.sidebar-footer .ghost-button:hover {
  color: #8f2525;
  background: #fff6f6;
}

.content {
  padding: 0 28px 40px;
}

.topbar {
  margin: 0 -28px 24px;
  padding: 18px 28px;
  border-radius: 0;
  box-shadow: 0 1px 0 var(--line);
}

.topbar h1 {
  color: #173020;
}

.topbar-period .month-button,
.month-button.light {
  border-radius: 6px;
  box-shadow: none;
}

.primary-button,
.secondary-button,
.ghost-button,
.ghost-light-button,
.danger-light-button,
.import-backup-label,
.file-button,
.success-button {
  border-radius: 6px;
  box-shadow: none;
}

.primary-button:hover {
  background: #166638;
}

.secondary-button:hover,
.import-backup-label:hover {
  border-color: #cfd9d2;
  background: #f7f9f8;
}

.kpi,
.panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi {
  padding: 15px 17px;
}

.kpi::before {
  border-radius: 8px 0 0 8px;
}

.kpi span {
  letter-spacing: 0;
  text-transform: none;
}

.panel-heading {
  padding: 15px 18px;
  background: #fff;
}

.panel-toggle > span,
.unit-tab {
  border-radius: 6px;
}

th {
  color: #5f6c64;
  background: #f4f7f5;
  letter-spacing: 0.03em;
}

th,
td {
  padding: 10px 12px;
}

tbody tr:hover > td {
  background-color: #fbfdfc;
}

input,
select,
textarea {
  border-color: #d6dfd9;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #78ad8c;
  outline: 3px solid rgba(29, 122, 69, 0.11);
}

.table-wrap {
  scrollbar-color: #b8c5bd transparent;
  scrollbar-width: thin;
}

.xml-bulk-toolbar,
.daily-quick-panel,
.scale-editor {
  border-radius: 7px;
}
/* fonte: people/payroll.css */
.payroll-shell {
  display: grid;
  gap: 16px;
}

.payroll-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.payroll-total-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
  min-height: 98px;
  padding: 16px 18px;
}

.payroll-total-card span,
.payroll-total-card small {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.payroll-total-card strong {
  color: var(--text);
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 7px 0 4px;
}

.payroll-total-card.payroll-warning {
  border-left-color: var(--gold);
}

.payroll-total-card.payroll-info {
  border-left-color: #2f7dbd;
}

.payroll-items-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 16px 18px 0;
}

.panel-heading-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.clickable-panel-heading {
  cursor: pointer;
}

.clickable-panel-heading:focus-visible {
  outline: 3px solid rgba(28, 126, 75, 0.25);
  outline-offset: -3px;
}

.payroll-benefit-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 0;
}

.payroll-unit-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  padding: 16px 18px 18px;
}

.payroll-unit-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.payroll-unit-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 34px 10px 12px;
  position: relative;
  text-align: left;
}

.payroll-unit-button.active {
  background: var(--soft-green);
  border-color: #b7d4c2;
}

.payroll-unit-button::after {
  background: var(--brand-mid);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.12);
  content: "";
  height: 12px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
}

.payroll-unit-button.status-warning::after {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.payroll-unit-button.status-empty::after {
  background: #82908a;
  box-shadow: 0 0 0 3px rgba(130, 144, 138, 0.12);
}

.payroll-unit-button strong,
.payroll-unit-button small {
  display: block;
}

.payroll-unit-button small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 3px;
}

.payroll-unit-status {
  border-radius: 999px;
  display: none;
  height: 0;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

.payroll-unit-status.ok {
  background: var(--brand-mid);
}

.payroll-unit-status.warning {
  background: var(--gold);
}

.payroll-unit-status.empty {
  background: #82908a;
}

.payroll-unit-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.payroll-unit-detail-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.payroll-unit-detail-heading h2 {
  margin: 0 0 4px;
}

.payroll-unit-detail-heading p {
  color: var(--muted);
  margin: 0;
}

.payroll-unit-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.payroll-unit-kpis article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  min-height: 90px;
  padding: 12px 14px;
}

.payroll-unit-kpis article.payroll-info {
  border-left-color: #2f7dbd;
}

.payroll-unit-kpis article.payroll-warning {
  border-left-color: var(--gold);
}

.payroll-unit-kpis span,
.payroll-unit-kpis small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.payroll-unit-kpis strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.1;
  margin: 8px 0 4px;
}

.payroll-unit-action-table {
  table-layout: fixed;
  width: 100%;
}

.payroll-unit-action-table th,
.payroll-unit-action-table td {
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  padding: 11px 12px;
}

.payroll-unit-action-table thead th {
  background: var(--surface);
  color: var(--muted);
  text-align: left;
}

.payroll-unit-action-table th:nth-child(1),
.payroll-unit-action-table td:nth-child(1) {
  width: 30%;
}

.payroll-unit-action-table th:nth-child(2),
.payroll-unit-action-table td:nth-child(2) {
  width: 20%;
}

.payroll-unit-action-table th:nth-child(3),
.payroll-unit-action-table td:nth-child(3) {
  width: 28%;
}

.payroll-unit-action-table th:nth-child(4),
.payroll-unit-action-table td:nth-child(4) {
  text-align: right;
  width: 22%;
}

.payroll-unit-alert {
  background: #fff8e8;
  border: 1px solid #ead9a5;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
  margin-top: 14px;
  padding: 12px 14px;
}

.payroll-item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  min-height: 88px;
  padding: 12px 14px;
  text-align: left;
}

.payroll-item-card span,
.payroll-item-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.payroll-item-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
  margin: 6px 0 3px;
}

.payroll-item-card.payroll-warning {
  border-left-color: var(--gold);
}

.payroll-item-card.payroll-info {
  border-left-color: #2f7dbd;
}

.payroll-item-card.selected {
  background: #eef8f1;
  border-color: #a9d1b8;
}

.payroll-item-detail {
  padding: 14px 18px 18px;
}

.payroll-item-detail-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.payroll-item-detail-title {
  align-items: center;
  background: var(--soft-green);
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.payroll-item-table {
  table-layout: fixed;
  width: 100%;
}

.payroll-item-table th,
.payroll-item-table td {
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  padding: 9px 12px;
  vertical-align: top;
}

.payroll-item-table th:nth-child(1),
.payroll-item-table td:nth-child(1) {
  width: 70%;
}

.payroll-item-table th:nth-child(2),
.payroll-item-table td:nth-child(2) {
  width: 30%;
}

.payroll-import-preview:empty {
  display: none;
}

.payroll-import-form {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.payroll-table {
  table-layout: fixed;
  width: 100%;
}

.payroll-table th,
.payroll-table td {
  font-size: 0.92rem;
  vertical-align: middle;
}

.payroll-table small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
  margin-top: 3px;
}

.payroll-table select {
  min-width: 130px;
  width: 100%;
}

.benefit-split-toggle {
  align-self: center;
}

.recurring-benefit-panel {
  background: linear-gradient(135deg, #eef8f1, #f8fbf9);
  border: 1px solid #bddbc7;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.recurring-benefit-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.recurring-benefit-panel h3,
.recurring-benefit-panel p {
  margin: 0;
}

.recurring-benefit-panel p,
.recurring-benefit-panel small {
  color: var(--muted);
}

.recurring-benefit-panel label {
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 5px;
}

.recurring-benefit-panel .primary-button {
  align-self: end;
  white-space: nowrap;
}

.recurring-benefit-panel.is-confirmed {
  border-color: #82bf96;
}

@media (max-width: 900px) {
  .recurring-benefit-panel {
    grid-template-columns: 1fr;
  }
}

.benefit-split-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.benefit-split-panel[hidden] {
  display: none !important;
}

.benefit-split-note {
  background: var(--brand-soft);
  border-radius: 7px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 750;
  margin: 0;
  padding: 8px 10px;
}

.benefit-split-note.is-warning {
  background: #fff4dd;
  color: #8a5700;
}

.benefit-split-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.benefit-split-row label {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-size: 0.78rem;
  gap: 7px;
}

.benefit-split-row small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.benefit-table {
  table-layout: fixed;
  width: 100%;
}

.benefit-table th:nth-child(1),
.benefit-table td:nth-child(1) {
  width: 16%;
}

.benefit-table th:nth-child(2),
.benefit-table td:nth-child(2) {
  width: 13%;
}

.benefit-table th:nth-child(3),
.benefit-table td:nth-child(3) {
  width: 12%;
}

.benefit-table th:nth-child(4),
.benefit-table td:nth-child(4) {
  width: 15%;
}

.benefit-table th:nth-child(5),
.benefit-table td:nth-child(5) {
  width: 15%;
}

.benefit-table th:nth-child(6),
.benefit-table td:nth-child(6) {
  width: 13%;
}

.benefit-table th:nth-child(7),
.benefit-table td:nth-child(7) {
  width: 16%;
}

.benefit-document-row td {
  background: var(--surface-strong);
  border-top: 2px solid var(--line);
  overflow: hidden;
}

.benefit-document-row td:first-child strong {
  display: block;
}

.benefit-document-row small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  margin-top: 2px;
}

.benefit-group-toggle {
  margin-top: 6px;
  padding: 5px 9px;
}

.benefit-supplier-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-unit-row td {
  color: var(--muted);
  font-size: 0.78rem;
}

.benefit-unit-row td:first-child {
  padding-left: 24px;
}

.benefit-unit-row td:first-child span::before {
  content: "↳ ";
}

.guide-table {
  table-layout: fixed;
  width: 100%;
}

.guide-table th,
.guide-table td {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.guide-table th:nth-child(1),
.guide-table td:nth-child(1) {
  width: 15%;
}

.guide-table th:nth-child(2),
.guide-table td:nth-child(2) {
  width: 14%;
}

.guide-table th:nth-child(3),
.guide-table td:nth-child(3) {
  width: 14%;
}

.guide-table th:nth-child(4),
.guide-table td:nth-child(4) {
  width: 30%;
}

.guide-table th:nth-child(5),
.guide-table td:nth-child(5) {
  width: 15%;
}

.guide-table th:nth-child(6),
.guide-table td:nth-child(6) {
  width: 12%;
}

.guide-table input,
.guide-table select {
  min-width: 0;
  width: 100%;
}

.guide-table small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  margin-top: 3px;
}

.guide-period-cell span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin: 3px 0 2px;
}

.guide-period-cell span:first-child {
  margin-top: 0;
}

.document-import-warning.is-error {
  background: #fff1ef;
  border-color: #e7a59d;
  border-left-color: #bd3f32;
  color: #8f2f25;
}

.document-import-warning.is-error span {
  color: #8f2f25;
}

.fgts-guide-preview-list {
  display: grid;
  gap: 14px;
}

.fgts-guide-preview-card {
  background: #fff;
  border: 1px solid #cbd8d1;
  border-left: 5px solid #238653;
  border-radius: 12px;
  display: grid;
  gap: 13px;
  padding: 16px;
}

.fgts-guide-preview-card.is-blocked {
  background: #fffafa;
  border-color: #e5b3ad;
  border-left-color: #bd3f32;
}

.fgts-guide-preview-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.fgts-guide-preview-header strong,
.fgts-guide-preview-header small {
  display: block;
}

.fgts-guide-preview-header strong {
  color: var(--ink);
  font-size: 1rem;
}

.fgts-guide-preview-header small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.fgts-guide-preview-status {
  border: 1px solid currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 9px;
}

.fgts-guide-preview-status.valid {
  background: #edf8f1;
  color: #167044;
}

.fgts-guide-preview-status.blocked {
  background: #fff0ee;
  color: #a5362c;
}

.fgts-guide-preview-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fgts-guide-preview-fields label,
.fgts-guide-preview-value {
  min-width: 0;
}

.fgts-guide-preview-fields label > span,
.fgts-guide-preview-value > span {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.fgts-guide-preview-fields input,
.fgts-guide-preview-fields select,
.fgts-guide-preview-value input {
  min-width: 0;
  width: 100%;
}

.fgts-guide-preview-fields small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  margin-top: 4px;
}

.fgts-guide-preview-values {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fgts-guide-preview-value {
  background: #f6f8f7;
  border: 1px solid #dce5e0;
  border-radius: 9px;
  display: block;
  padding: 11px 12px;
}

.fgts-guide-preview-value.primary {
  background: #edf8f1;
  border-color: #b9dcc8;
}

.fgts-guide-preview-value strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.fgts-guide-preview-value.primary strong {
  color: #176e44;
}

.fgts-guide-preview-value small,
.fgts-guide-preview-breakdown {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  line-height: 1.3;
  margin-top: 4px;
}

.fgts-guide-preview-equation {
  align-items: baseline;
  background: #f6f8f7;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 9px 11px;
}

.fgts-guide-preview-equation.is-valid {
  color: #176e44;
}

.fgts-guide-preview-equation.is-blocked {
  background: #fff0ee;
  color: #9c3329;
}

.fgts-guide-preview-equation span,
.fgts-guide-preview-equation strong {
  font-size: 0.83rem;
}

.fgts-guide-preview-equation small {
  flex-basis: 100%;
  font-size: 0.7rem;
}

.fgts-guide-preview-errors,
.fgts-guide-preview-help,
.fgts-guide-preview-source {
  font-size: 0.76rem;
  line-height: 1.4;
  margin: 0;
}

.fgts-guide-preview-errors {
  color: #9c3329;
  padding-left: 18px;
}

.fgts-guide-preview-help {
  color: #176e44;
  font-weight: 750;
}

.fgts-guide-preview-source {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.fgts-guide-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .fgts-guide-preview-header {
    flex-direction: column;
  }

  .fgts-guide-preview-values {
    grid-template-columns: 1fr;
  }

  .fgts-guide-preview-actions {
    justify-content: stretch;
  }

  .fgts-guide-preview-actions button {
    flex: 1 1 100%;
  }
}

.payroll-inss-panel {
  overflow: hidden;
}

.inss-reconciliation {
  min-width: 0;
  padding: 18px 20px;
}

.inss-reconciliation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.inss-reconciliation-heading h2 {
  font-size: 1.08rem;
  margin: 0 0 4px;
}

.inss-reconciliation-heading h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.inss-launches-heading {
  margin: 18px 0 8px;
}

.inss-heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inss-reconciliation-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.inss-reconciliation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.inss-reconciliation-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 12px 14px;
}

.inss-reconciliation-grid span,
.inss-reconciliation-grid small {
  color: var(--muted);
  display: block;
  overflow-wrap: anywhere;
}

.inss-reconciliation-grid span {
  font-size: 0.76rem;
  font-weight: 800;
}

.inss-reconciliation-grid strong {
  display: block;
  font-size: 0.98rem;
  margin: 5px 0 3px;
  overflow-wrap: anywhere;
}

.inss-reconciliation-grid small {
  font-size: 0.72rem;
}

.inss-reconciliation-grid article.ok strong {
  color: #167044;
}

.inss-reconciliation-grid article.warning strong {
  color: #986600;
}

.inss-reconciliation-grid .inss-difference-card {
  grid-column: 1 / -1;
}

.inss-rate-table-wrap {
  overflow-x: hidden;
}

.inss-rate-table {
  table-layout: fixed;
  width: 100%;
}

.inss-rate-table th,
.inss-rate-table td {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.inss-rate-table th:first-child,
.inss-rate-table td:first-child {
  width: 30%;
}

.inss-rate-table th:not(:first-child),
.inss-rate-table td:not(:first-child) {
  text-align: right;
  width: 17.5%;
}

.inss-rate-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  margin-top: 2px;
}

.inss-rate-table tfoot th {
  background: #edf7f0;
  border-top: 1px solid #c9dfd0;
}

.inss-launches-table {
  margin-bottom: 14px;
}

.inss-launches-table th:first-child,
.inss-launches-table td:first-child {
  width: 28%;
}

.inss-launches-table th:not(:first-child),
.inss-launches-table td:not(:first-child) {
  text-align: left;
  width: auto;
}

.inss-launches-table th:nth-child(2),
.inss-launches-table td:nth-child(2),
.inss-launches-table th:nth-child(3),
.inss-launches-table td:nth-child(3) {
  width: 19%;
}

.inss-launches-table th:nth-child(4),
.inss-launches-table td:nth-child(4) {
  text-align: right;
  width: 17%;
}

.inss-launches-table th:last-child,
.inss-launches-table td:last-child {
  text-align: right;
  width: 92px;
}

.inss-reconciliation-note,
.inss-reconciliation-empty {
  background: #f4f8f5;
  border: 1px solid #d5e3da;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 12px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.inss-reconciliation-note strong {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .inss-reconciliation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .inss-reconciliation,
  .inss-rate-table th,
  .inss-rate-table td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .inss-reconciliation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inss-reconciliation-grid {
    grid-template-columns: 1fr;
  }

  .inss-rate-table th,
  .inss-rate-table td {
    font-size: 0.7rem;
  }
}

/* Organização da área de Funcionários — v406 */
.employees-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.employees-navigation-panel {
  overflow: hidden;
}

.employees-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.employees-navigation-heading h2,
.employees-navigation-heading p {
  margin: 0;
}

.employees-navigation-heading h2 {
  font-size: 1.2rem;
}

.employees-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.employees-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.employees-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.employees-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.employees-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-funcionarios-aba-painel][hidden] {
  display: none !important;
}

.employees-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.employees-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  min-width: 0;
  padding: 14px 15px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.employees-summary-card:hover {
  box-shadow: 0 5px 14px rgba(24, 77, 43, 0.1);
  transform: translateY(-1px);
}

.employees-summary-card:focus-visible {
  outline: 3px solid rgba(31, 139, 74, 0.24);
  outline-offset: 2px;
}

.employees-summary-card span,
.employees-summary-card small,
.employees-summary-card strong {
  display: block;
}

.employees-summary-card span,
.employees-summary-card small {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 800;
}

.employees-summary-card strong {
  color: var(--brand-mid);
  font-size: 1.48rem;
  margin: 7px 0 5px;
}

.employees-summary-card.away {
  background: #fffaf0;
  border-left-color: #bd851b;
}

.employees-summary-card.vacation {
  background: #fffaf0;
  border-left-color: #d79019;
}

.employees-summary-card.vacation strong {
  color: #9a6500;
}

.employees-summary-card.away strong {
  color: #9a6500;
}

.employees-summary-card.off-payroll {
  background: #f3f8fd;
  border-left-color: var(--info);
}

.employees-summary-card.off-payroll strong {
  color: var(--info);
}

.employees-summary-card.off {
  background: #fff7f7;
  border-left-color: var(--danger);
}

.employees-summary-card.off strong {
  color: var(--danger);
}

.employees-vacation-advance-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.employees-vacation-advance-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.employees-vacation-advance-heading > div,
.employees-vacation-advance-list li {
  display: grid;
  gap: 2px;
}

.employees-vacation-advance-heading small,
.employees-vacation-advance-list small,
.employees-vacation-advance-list p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.employees-vacation-advance-heading > span {
  background: #fff0c8;
  border-radius: 999px;
  color: #7a4b00;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 5px 9px;
  white-space: nowrap;
}

.employees-vacation-advance-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employees-vacation-advance-metrics > div {
  background: #f5f8f6;
  border: 1px solid #dce6df;
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.employees-vacation-advance-metrics > div.highlight {
  background: #edf7f0;
  border-color: #bcd9c5;
}

.employees-vacation-advance-metrics small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.employees-vacation-advance-metrics strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.employees-vacation-advance-list {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.employees-vacation-advance-list ol {
  display: grid;
  gap: 5px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 7px 0 0;
  padding-left: 22px;
}

.employee-total-list-vacation small {
  color: #8b5b0a;
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
}

.employees-unit-summary-panel,
.employees-new-panel,
.employees-off-payroll-panel,
.employees-off-panel {
  margin: 0;
}

.employees-unit-summary-panel {
  overflow: hidden;
}

.employees-unit-summary-panel .employee-total-grid {
  border-top: 1px solid var(--line);
}

.employees-directory-panel {
  display: grid;
  gap: 16px;
}

.employees-directory-heading {
  margin: 0;
}

.employees-directory-heading + .employee-unit-stack {
  gap: 12px;
}

.employees-off-panel {
  border-color: #e4b4b4;
  overflow: hidden;
}

.employees-off-panel .panel-heading {
  background: #fffafa;
}

@media (max-width: 1050px) {
  .employees-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employees-unit-summary-panel .employee-total-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 1250px) and (min-width: 1051px) {
  .employees-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .employees-navigation-heading {
    align-items: flex-start;
  }

  .employees-tabs {
    display: flex;
    overflow-x: auto;
  }

  .employees-tabs button {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .employees-overview,
  .employees-unit-summary-panel .employee-total-grid {
    grid-template-columns: 1fr;
  }

  .employees-vacation-advance-metrics,
  .employees-vacation-advance-list ol {
    grid-template-columns: 1fr;
  }
}

.fgts-reconciliation {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.fgts-reconciliation:empty {
  display: none;
}

.fgts-reconciliation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fgts-reconciliation-heading h3 {
  font-size: 1rem;
  margin: 0 0 3px;
}

.fgts-reconciliation-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.fgts-reconciliation-heading.secondary {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.fgts-reconciliation-status {
  background: #f1f4f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 10px;
}

.fgts-reconciliation-status.ok {
  background: #e8f5ed;
  border-color: #b9ddc6;
  color: #167044;
}

.fgts-reconciliation-status.warning {
  background: #fff7df;
  border-color: #efd69a;
  color: #986600;
}

.fgts-reconciliation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payroll-competence-transfer-panel .fgts-reconciliation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payroll-competence-transfer-panel .inss-rate-table-wrap {
  overflow-x: auto;
}

.payroll-competence-transfer-table {
  min-width: 980px;
}

.payroll-competence-transfer-table th:first-child,
.payroll-competence-transfer-table td:first-child {
  text-align: left;
  width: 24%;
}

.payroll-competence-transfer-table th:nth-child(2),
.payroll-competence-transfer-table td:nth-child(2) {
  text-align: left;
  width: 16%;
}

.payroll-competence-transfer-table th:nth-child(3),
.payroll-competence-transfer-table td:nth-child(3),
.payroll-competence-transfer-table th:nth-child(5),
.payroll-competence-transfer-table td:nth-child(5) {
  width: 14%;
}

.payroll-competence-transfer-table th:nth-child(4),
.payroll-competence-transfer-table td:nth-child(4),
.payroll-competence-transfer-table th:nth-child(6),
.payroll-competence-transfer-table td:nth-child(6) {
  width: 16%;
}

.fgts-reconciliation-grid.severance-provision-reconciliation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.fgts-reconciliation-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 12px 14px;
}

.fgts-reconciliation-grid span,
.fgts-reconciliation-grid small {
  color: var(--muted);
  display: block;
  overflow-wrap: anywhere;
}

.fgts-reconciliation-grid span {
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.fgts-reconciliation-grid strong {
  display: block;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.fgts-reconciliation-grid small {
  font-size: 0.72rem;
  margin-top: 4px;
}

.fgts-reconciliation-grid article.ok strong {
  color: #167044;
}

.fgts-reconciliation-grid article.warning strong {
  color: #986600;
}

@media (max-width: 760px) {
  .fgts-reconciliation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fgts-reconciliation-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .payroll-competence-transfer-panel .fgts-reconciliation-grid,
  .fgts-reconciliation-grid.severance-provision-reconciliation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-import-form .guide-table th:nth-child(1),
.guide-import-form .guide-table td:nth-child(1) {
  width: 11%;
}

.guide-import-form .guide-table th:nth-child(2),
.guide-import-form .guide-table td:nth-child(2) {
  width: 11%;
}

.guide-import-form .guide-table th:nth-child(3),
.guide-import-form .guide-table td:nth-child(3) {
  width: 15%;
}

.guide-import-form .guide-table th:nth-child(4),
.guide-import-form .guide-table td:nth-child(4) {
  width: 11%;
}

.guide-import-form .guide-table th:nth-child(5),
.guide-import-form .guide-table td:nth-child(5) {
  width: 12%;
}

.guide-import-form .guide-table th:nth-child(6),
.guide-import-form .guide-table td:nth-child(6) {
  width: 18%;
}

.guide-import-form .guide-table th:nth-child(7),
.guide-import-form .guide-table td:nth-child(7) {
  width: 22%;
}

.payroll-main-panel .table-wrap,
.payroll-detail-panel .table-wrap {
  overflow-x: hidden;
}

.payroll-summary-table th,
.payroll-summary-table td {
  font-size: 0.82rem;
  padding: 10px 9px;
  white-space: nowrap;
}

.payroll-summary-table th:nth-child(1),
.payroll-summary-table td:nth-child(1) {
  width: 15%;
}

.payroll-summary-table th:nth-child(2),
.payroll-summary-table td:nth-child(2),
.payroll-summary-table th:nth-child(3),
.payroll-summary-table td:nth-child(3),
.payroll-summary-table th:nth-child(4),
.payroll-summary-table td:nth-child(4),
.payroll-summary-table th:nth-child(5),
.payroll-summary-table td:nth-child(5),
.payroll-summary-table th:nth-child(6),
.payroll-summary-table td:nth-child(6) {
  width: 14%;
}

.payroll-summary-table th:nth-child(7),
.payroll-summary-table td:nth-child(7) {
  width: 15%;
}

.payroll-detail-panel .table-wrap {
  border-top: 1px solid var(--line);
}

.payroll-detail-actions {
  align-items: end;
  display: flex;
  gap: 12px;
}

.payroll-detail-actions label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 4px;
  min-width: 230px;
}

.payroll-detail-actions select {
  font-size: 0.9rem;
  min-width: 0;
  width: 100%;
}

.payroll-detail-table {
  min-width: 0;
}

.payroll-detail-table th,
.payroll-detail-table td {
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 8px 3px;
}

.payroll-detail-table th:nth-child(1),
.payroll-detail-table td:nth-child(1) {
  width: 4%;
  text-align: center;
}

.payroll-detail-table th:nth-child(2),
.payroll-detail-table td:nth-child(2) {
  width: 10%;
}

.payroll-detail-table th:nth-child(3),
.payroll-detail-table td:nth-child(3),
.payroll-detail-table th:nth-child(4),
.payroll-detail-table td:nth-child(4),
.payroll-detail-table th:nth-child(5),
.payroll-detail-table td:nth-child(5),
.payroll-detail-table th:nth-child(6),
.payroll-detail-table td:nth-child(6),
.payroll-detail-table th:nth-child(7),
.payroll-detail-table td:nth-child(7),
.payroll-detail-table th:nth-child(8),
.payroll-detail-table td:nth-child(8),
.payroll-detail-table th:nth-child(9),
.payroll-detail-table td:nth-child(9),
.payroll-detail-table th:nth-child(10),
.payroll-detail-table td:nth-child(10),
.payroll-detail-table th:nth-child(11),
.payroll-detail-table td:nth-child(11),
.payroll-detail-table th:nth-child(12),
.payroll-detail-table td:nth-child(12) {
  width: 7.4%;
}

.payroll-detail-table th:nth-child(13),
.payroll-detail-table td:nth-child(13) {
  width: 7%;
}

.payroll-detail-table .registry-name-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-detail-table .payroll-conf-line {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: normal;
}

.payroll-detail-table .slim-button {
  font-size: 0.72rem;
  padding: 7px 8px;
}

.payroll-detail-blocks {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.payroll-detail-consolidated,
.payroll-detail-type-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.payroll-detail-consolidated {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 1fr) minmax(620px, 2fr);
  padding: 16px 18px;
}

.payroll-detail-consolidated > div {
  display: grid;
  gap: 5px;
}

.payroll-detail-consolidated > div > strong {
  color: var(--ink);
  font-size: 1rem;
}

.payroll-detail-consolidated > div > small,
.payroll-detail-type-block header > div > small {
  color: var(--muted);
  line-height: 1.35;
}

.payroll-detail-consolidated dl,
.payroll-detail-type-block header dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.payroll-detail-consolidated dl > div,
.payroll-detail-type-block header dl > div {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.payroll-detail-consolidated dt,
.payroll-detail-type-block dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payroll-detail-consolidated dd,
.payroll-detail-type-block dd {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
}

.payroll-detail-consolidated .is-ok,
.payroll-detail-type-block .is-ok {
  background: var(--surface-strong);
  border-color: rgba(29, 122, 69, 0.28);
}

.payroll-detail-consolidated .is-warning,
.payroll-detail-type-block .is-warning {
  background: #fff7e5;
  border-color: #efd49a;
}

.payroll-detail-type-block header {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(310px, 1.2fr) minmax(0, 2fr);
  padding: 14px 16px;
}

.payroll-detail-type-block header > div:first-child {
  align-items: center;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: auto 1fr;
}

.payroll-detail-type-block header h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

.payroll-detail-type-block header small {
  grid-column: 1 / -1;
}

.payroll-type-code {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid rgba(29, 122, 69, 0.28);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 8px;
}

.payroll-detail-type-block .table-wrap {
  border-top: 1px solid var(--line);
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.payroll-detail-type-block .payroll-detail-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.payroll-detail-type-block .payroll-detail-table th,
.payroll-detail-type-block .payroll-detail-table td {
  font-size: 0.58rem;
  overflow: hidden;
  padding: 8px 2px;
  text-overflow: ellipsis;
}

.payroll-detail-type-block .payroll-detail-table th:nth-child(1),
.payroll-detail-type-block .payroll-detail-table td:nth-child(1) {
  text-align: left;
  width: 12%;
}

.payroll-detail-type-block .payroll-detail-table th:nth-child(n+2):nth-child(-n+11),
.payroll-detail-type-block .payroll-detail-table td:nth-child(n+2):nth-child(-n+11) {
  width: 7.7%;
}

.payroll-detail-type-block .payroll-detail-table th:nth-child(12),
.payroll-detail-type-block .payroll-detail-table td:nth-child(12) {
  width: 11%;
}

.payroll-detail-type-block .payroll-detail-table .slim-button {
  font-size: 0.62rem;
  max-width: 100%;
  padding: 6px 5px;
  width: auto;
}

.payroll-absorbed-note {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .payroll-detail-consolidated,
  .payroll-detail-type-block header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .payroll-detail-blocks {
    padding: 12px;
  }

  .payroll-detail-consolidated dl,
  .payroll-detail-type-block header dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .off-payroll-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .off-payroll-person,
  .off-payroll-payment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-unit-layout {
    grid-template-columns: 1fr;
  }

  .payroll-unit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-unit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sub-nav-item {
    width: calc(100% - 14px);
  }
}

@media (max-width: 680px) {
  .content {
    padding: 0 14px 28px;
  }

  .topbar {
    margin: 0 -14px 18px;
    padding: 16px 14px;
    position: static;
  }

  .sidebar {
    padding: 12px;
  }

  .brand {
    padding-bottom: 10px;
    margin-bottom: 2px;
  }

  .payroll-unit-list,
  .payroll-unit-kpis {
    grid-template-columns: 1fr;
  }

  .off-payroll-form,
  .off-payroll-person,
  .off-payroll-payment {
    grid-template-columns: 1fr;
  }

  .off-payroll-form .off-payroll-note {
    grid-column: auto;
  }

  .nav-item {
    min-height: 36px;
    padding: 7px 9px;
  }

  .nav-section-label {
    padding-top: 7px;
  }

  .sidebar-footer {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }

  .sidebar-footer .ghost-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .tax-investment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tax-investment-grid {
    padding: 12px;
  }

  .tax-investment-heading,
  .tax-investment-fiscal-list > div,
  .tax-investment-final-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .tax-investment-table {
    min-width: 760px;
  }
}

/* A guia de INSS tem campos e vínculos editáveis: mantenha todos visíveis. */
.payroll-guide-preview-list { display: grid; gap: 16px; }
.payroll-guide-preview-card {
  min-width: 0; padding: 18px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff;
}
.payroll-guide-preview-heading {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
  align-items: end; gap: 16px; margin-bottom: 16px;
}
.payroll-guide-preview-heading > div { min-width: 0; overflow-wrap: anywhere; }
.payroll-guide-preview-heading > div > span { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.payroll-guide-preview-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.payroll-guide-preview-card label { min-width: 0; display: grid; gap: 6px; }
.payroll-guide-preview-card input, .payroll-guide-preview-card select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.payroll-guide-source { margin-top: 12px; overflow-wrap: anywhere; }
.payroll-guide-source p { margin: 8px 0 0; }
.payroll-guide-funrural { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f4f8f6; }
.payroll-guide-funrural p { margin: 0; }
.payroll-guide-funrural.is-pending { background: #fff8e2; border-color: #e8ce79; }
@media (max-width: 760px) {
  .payroll-guide-preview-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-guide-preview-heading { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .payroll-guide-preview-card { padding: 12px; }
  .payroll-guide-preview-fields { grid-template-columns: 1fr; }
  .payroll-guide-funrural { padding: 12px; }
}

.payroll-funrural-notes { list-style: none; padding: 0; margin: 10px 0; }
.payroll-funrural-notes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.payroll-funrural-notes li > span { min-width: 0; overflow-wrap: anywhere; }
.payroll-funrural-notes small { display: block; margin-top: 4px; }
.payroll-funrural-notes li > strong { white-space: nowrap; }
.payroll-guide-preview-card .payroll-funrural-confirm { display: flex; align-items: start; gap: 10px; }
.payroll-guide-preview-card .payroll-funrural-confirm input { width: 20px; min-width: 20px; height: 20px; margin-top: 2px; }

@media screen {
 #custosFuncionarios .payroll-shell.payroll-workspace { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr); gap:18px; align-items:start; }
 #custosFuncionarios .payroll-workspace>.payroll-navigation-panel { grid-column:1/-1; }
 #custosFuncionarios .payroll-workspace>[data-folha-aba-painel] { grid-column:1; min-width:0; }
 #custosFuncionarios .payroll-workspace>.payroll-workspace-support { grid-column:2; grid-row:2 / span 3; display:grid; gap:14px; min-width:0; }
 #custosFuncionarios .payroll-workspace-support[hidden] { display:none; }
 #custosFuncionarios .payroll-workspace .panel-heading { padding:16px; }
 #custosFuncionarios .payroll-workspace .panel-heading h2 { font-size:16px; }
 #custosFuncionarios .payroll-workspace .panel-heading p,#custosFuncionarios .payroll-workspace .panel-heading small { font-size:12px; font-weight:400; }
 #custosFuncionarios .payroll-workspace-status { padding:0 16px; }
 #custosFuncionarios .payroll-workspace-status>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid #dce5df; }
 #custosFuncionarios .payroll-workspace-status small { display:block; margin-top:4px; font-size:12px; color:var(--muted); }
 #custosFuncionarios .payroll-workspace-status strong { font-size:13px; }
 #custosFuncionarios .payroll-workspace-links>details { padding:16px; border-bottom:1px solid #dce5df; }
 #custosFuncionarios .payroll-workspace-links summary { cursor:pointer; color:#147c4b; font-size:13px; font-weight:650; }
 #custosFuncionarios .payroll-workspace-links p { color:var(--muted); font-size:12px; line-height:1.5; }
 #custosFuncionarios .payroll-workspace .payroll-detail-panel>.panel-heading { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
 #custosFuncionarios .payroll-workspace .payroll-detail-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:end; width:100%; }
 #custosFuncionarios .payroll-workspace .payroll-detail-actions>button { flex:0 0 auto; width:auto; }
 #custosFuncionarios .payroll-workspace .payroll-detail-actions label { min-width:0; }
 #custosFuncionarios .payroll-workspace .payroll-detail-actions select { width:100%; max-width:240px; }
 #custosFuncionarios .payroll-workspace .payroll-detail-blocks { padding:12px; }
 #custosFuncionarios .payroll-workspace .payroll-detail-consolidated, #custosFuncionarios .payroll-workspace .payroll-detail-type-block header { grid-template-columns:minmax(0,1fr); }
 #custosFuncionarios .payroll-workspace .payroll-detail-consolidated dl, #custosFuncionarios .payroll-workspace .payroll-detail-type-block header dl { min-width:0; }
}
@media screen and (max-width:1100px) {
 #custosFuncionarios .payroll-shell.payroll-workspace { grid-template-columns:minmax(0,1fr); }
 #custosFuncionarios .payroll-workspace>.payroll-workspace-support { grid-column:1; grid-row:auto; }
}

/* Prévia de importação: valores visíveis e composição na própria linha. */
#custosFuncionarios .payroll-workspace:has(.payroll-preview-list) {
  grid-template-columns: minmax(0, 1fr);
}
#custosFuncionarios .payroll-workspace:has(.payroll-preview-list) > .payroll-workspace-support {
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.payroll-preview-heading h3 { margin: 18px 0 6px; }
.payroll-preview-heading p { margin: 0 0 16px; color: var(--muted); }
.payroll-preview-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.payroll-preview-totals > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9f7; }
.payroll-preview-totals span, .payroll-preview-value small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
.payroll-preview-totals strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.payroll-preview-list { display: grid; gap: 12px; }
.payroll-preview-person { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; }
.payroll-preview-person > summary { display: grid; grid-template-columns: minmax(180px, 1.8fr) repeat(3, minmax(115px, 1fr)) 20px; gap: 16px; align-items: center; padding: 18px; cursor: pointer; list-style: none; }
.payroll-preview-person > summary::-webkit-details-marker { display: none; }
.payroll-preview-person > summary:focus-visible { outline: 2px solid var(--brand-mid); outline-offset: 2px; border-radius: 10px; }
.payroll-preview-person-name { min-width: 0; overflow-wrap: anywhere; }
.payroll-preview-person-name strong, .payroll-preview-person-name small { display: block; }
.payroll-preview-person-name small { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.payroll-preview-value { min-width: 0; padding: 10px; }
.payroll-preview-value strong { font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.payroll-preview-net { color: var(--brand-dark); background: #edf7f1 !important; border-radius: 8px; }
.payroll-preview-chevron { text-align: center; color: var(--brand-mid); }
.payroll-preview-person[open] > summary .payroll-preview-chevron { transform: rotate(180deg); }
.payroll-preview-notices { grid-column: 1 / -1; font-size: .85rem; line-height: 1.5; }
.payroll-preview-person-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.payroll-preview-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; padding: 16px 0; }
.payroll-preview-fields label { display: grid; align-content: start; gap: 8px; color: var(--muted); font-size: .85rem; min-width: 0; }
.payroll-preview-fields :is(input, select) { width: 100%; min-width: 0; max-width: 100%; }
.payroll-preview-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.payroll-preview-composition { min-width: 0; padding: 16px; background: #f7faf8; border: 1px solid var(--line); border-radius: 8px; }
.payroll-preview-composition h4 { margin: 0 0 10px; font-size: .95rem; }
.payroll-preview-composition dl { margin: 0; }
.payroll-preview-composition dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .85rem; }
.payroll-preview-composition dt { overflow-wrap: anywhere; }
.payroll-preview-composition dd { margin: 0; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.payroll-preview-composition-total { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 700; }
.payroll-preview-fgts { margin: 16px 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.payroll-preview-fgts span { display: block; margin-top: 4px; }
.payroll-preview-note, .payroll-preview-provisions p, .payroll-preview-person-body > .provision-source { font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.payroll-preview-provisions { border-top: 1px solid var(--line); padding-top: 14px; }
.payroll-preview-provisions > summary { color: var(--brand-mid); cursor: pointer; font-weight: 700; }
@media (max-width: 900px) {
  .payroll-preview-person > summary { grid-template-columns: repeat(3, minmax(0, 1fr)) 18px; gap: 8px; padding: 14px; }
  .payroll-preview-person-name { grid-column: 1 / 4; }
  .payroll-preview-chevron { grid-column: 4; grid-row: 1; }
  .payroll-preview-value { padding: 8px 4px; }
  .payroll-preview-person-body { padding: 0 14px 14px; }
}
@media (max-width: 600px) {
  .payroll-preview-totals { grid-template-columns: 1fr; gap: 8px; }
  .payroll-preview-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; }
  .payroll-preview-totals span { margin: 0; }
  .payroll-preview-totals strong { font-size: 1rem; }
  .payroll-preview-person > summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .payroll-preview-person-name { grid-column: 1; }
  .payroll-preview-chevron { grid-column: 2; }
  .payroll-preview-value { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px; }
  .payroll-preview-value small { margin: 0; }
  .payroll-preview-breakdown { grid-template-columns: 1fr; }
  #custosFuncionarios .payroll-workspace:has(.payroll-preview-list) > .payroll-workspace-support { grid-template-columns: 1fr; }
}
/* fonte: finance/expense-import.css */
.expenses-shell {
  display: grid;
  gap: 16px;
}

.expenses-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expenses-summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  padding: 14px 16px;
  text-align: left;
}

.expenses-summary-action {
  cursor: pointer;
}

.expenses-summary-action:hover {
  border-color: #d9c58a;
  background: #fffdf7;
}

.expenses-summary-action:focus-visible {
  outline: 2px solid rgba(214, 155, 0, 0.34);
  outline-offset: 2px;
}

.expenses-summary-card span,
.expenses-summary-card small,
.expenses-bottom-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.expenses-summary-card strong {
  color: var(--text);
  display: block;
  font-size: 1.3rem;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-summary-card small {
  font-size: 0.72rem;
  margin-top: 4px;
}

.expenses-danger strong { color: var(--danger); }
.expenses-warning strong { color: var(--warning); }
.expenses-info strong { color: var(--info); }

.expenses-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  min-width: 0;
}

.expenses-form-panel,
.expenses-list-panel {
  min-width: 0;
}

.expenses-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.expenses-form[hidden],
.expenses-form-actions[hidden] {
  display: none;
}

.expenses-mode-switch {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 16px;
}

.expenses-mode-switch button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-width: 0;
  padding: 9px 8px;
}

.expenses-mode-switch button.active {
  background: var(--card);
  border-color: var(--line);
  color: var(--brand-mid);
}

.expenses-form label,
.expenses-class-row label {
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.expenses-form .wide,
.expenses-class-row.wide {
  grid-column: 1 / -1;
}

.expenses-form-submit-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.expenses-form-submit-row .primary-button {
  flex: 1 1 auto;
}

.expenses-edit-split {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.expenses-edit-split .expenses-split-heading > span strong,
.expenses-edit-split .expenses-split-heading > span small {
  display: block;
}

.expenses-edit-split .expenses-split-heading > span small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}

.expenses-form label[hidden] {
  display: none;
}

.expenses-form-destination {
  background: #f2faf5;
  border: 1px solid #c8dfd0;
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  padding: 12px;
}

.expenses-form-destination small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.expenses-retention-editor {
  background: #f7fbf8;
  border: 1px solid #c8dfd0;
  border-left: 4px solid var(--brand-mid);
  border-radius: 9px;
  padding: 12px;
}

.expenses-retention-toggle {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  gap: 9px;
}

.expenses-retention-informative {
  background: #fff;
  border: 1px solid #d6e7dc;
  border-radius: 8px;
  display: grid !important;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px 11px;
}

.expenses-retention-informative small,
.expenses-retention-grid label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.expenses-retention-toggle input {
  accent-color: var(--brand-mid);
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

#gastoNfRetencoesPanel {
  border-top: 1px solid #d6e7dc;
  margin-top: 11px;
  padding-top: 11px;
}

#gastoNfRetencoesPanel[hidden] { display: none; }

.expenses-retention-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 11px;
  flex-wrap: wrap;
}

.expenses-retention-heading > * {
  min-width: 0;
}

.expenses-retention-heading strong,
.expenses-retention-heading small {
  display: block;
}

.expenses-retention-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 3px;
}

.expenses-retention-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expenses-retention-equation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 11px;
  padding: 10px 12px;
}

.expenses-retention-equation.ok {
  background: #edf8f1;
  border-color: #acd3ba;
  color: var(--brand-mid);
}

.expenses-retention-equation.warning {
  background: #fff7e7;
  border-color: #edc474;
  color: #875d10;
}

.expenses-form input,
.expenses-form select,
.expenses-filters input,
.expenses-filters select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  min-width: 0;
  padding: 10px 11px;
  width: 100%;
}

.expenses-destination-toolbar {
  align-items: center;
  background: #f2faf5;
  border-bottom: 1px solid #c8dfd0;
  border-top: 1px solid #c8dfd0;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  padding: 10px 16px;
}

.expenses-destination-toolbar[hidden] { display: none; }

.expenses-destination-toolbar label,
.expenses-destination-toolbar > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.expenses-destination-toolbar label,
.expenses-destination-toolbar > strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.expenses-selection-cell {
  text-align: center !important;
}

.expenses-selection-cell input,
.expenses-destination-toolbar input {
  accent-color: var(--brand-mid);
  height: 16px;
  width: 16px;
}

.expenses-destination-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  max-width: 100%;
  padding: 7px 6px;
  width: 100%;
}

.expenses-destination-select.is-employee {
  background: #eaf6ee;
  border-color: #9dceb0;
  color: var(--brand-mid);
}

.expenses-destination-static {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.expenses-class-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.expenses-list-heading {
  padding-bottom: 10px;
}

.expenses-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 14px;
}

.expenses-filters select {
  flex: 0 1 200px;
  font-size: 0.84rem;
  padding: 8px 10px;
}

.expenses-search-field {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex: 1 1 390px;
  min-width: 280px;
  padding-left: 10px;
}

.expenses-search-field:focus-within {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(24, 130, 72, 0.1);
}

.expenses-search-field > span {
  color: var(--brand-mid);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.expenses-search-field input {
  border: 0;
  box-shadow: none;
  flex: 1 1 auto;
  font-size: 0.86rem;
  padding: 8px 9px;
}

.expenses-search-field input:focus {
  outline: 0;
}

.expenses-search-clear {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 8px 10px;
}

.expenses-search-clear[hidden] {
  display: none;
}

.expenses-search-summary {
  color: var(--muted);
  flex: 1 0 100%;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

.expenses-period-note {
  color: var(--brand-mid);
  display: block;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.2;
  margin-top: 3px;
}

.expenses-search-highlight {
  background: #eef9f1;
  box-shadow: inset 4px 0 0 var(--brand-mid);
}

.expenses-rateio-parent-row {
  background: #f7fbf8;
  cursor: pointer;
}

.expenses-rateio-parent-row:hover {
  background: #eef7f1;
}

.expenses-rateio-toggle {
  align-items: center;
  background: #e7f4eb;
  border: 1px solid #a9cfb6;
  border-radius: 999px;
  color: var(--brand-mid);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.expenses-rateio-toggle:hover,
.expenses-rateio-toggle:focus-visible {
  background: #d9eddf;
  border-color: var(--brand-mid);
  outline: 0;
}

.expenses-document-number {
  display: block;
}

.expenses-document-cell {
  min-width: 0;
  overflow: hidden;
  white-space: normal;
}

.expenses-rateio-badge {
  background: #fff1d8;
  border: 1px solid #edc474;
  border-radius: 999px;
  box-sizing: border-box;
  color: #8a5b08;
  display: block;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 7px;
  text-align: center;
  white-space: normal;
  width: fit-content;
}

.expenses-retention-badge {
  background: #eef4ff;
  border: 1px solid #a9bee9;
  border-radius: 999px;
  color: #315b9a;
  display: block;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 7px;
  white-space: normal;
  width: fit-content;
}

.expenses-retention-badge.ok {
  background: #eaf6ee;
  border-color: #9dceb0;
  color: var(--brand-mid);
}

.expenses-retention-detail {
  border-top: 1px solid #d9e5dd;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 14px;
}

.expenses-retention-detail article {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 9px 10px;
}

.expenses-retention-detail span,
.expenses-retention-detail strong,
.expenses-retention-detail small {
  display: block;
  overflow-wrap: anywhere;
}

.expenses-retention-detail span,
.expenses-retention-detail small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.expenses-retention-detail strong { margin: 3px 0; }

.expenses-rateio-detail-row[hidden] {
  display: none;
}

.expenses-rateio-detail-row > td {
  background: #f7fbf8;
  padding: 0 14px 14px;
  width: auto !important;
}

.expenses-rateio-detail {
  background: var(--card);
  border: 1px solid #bcd9c6;
  border-radius: 10px;
  box-shadow: inset 4px 0 0 var(--brand-mid);
  overflow: hidden;
}

.expenses-rateio-detail-heading {
  align-items: center;
  background: #eef7f1;
  border-bottom: 1px solid #cfe1d5;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 14px;
}

.expenses-rateio-detail-heading > span {
  display: grid;
  gap: 2px;
}

.expenses-rateio-detail-heading > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.expenses-rateio-detail-heading small,
.expenses-rateio-part small {
  color: var(--muted);
  display: block;
  font-size: 0.63rem;
  font-weight: 750;
  line-height: 1.25;
}

.expenses-rateio-detail-heading strong {
  color: var(--brand-dark);
}

.expenses-rateio-parts {
  display: grid;
}

.expenses-rateio-part {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 76px repeat(auto-fit, minmax(112px, 1fr));
  padding: 10px 14px;
}

.expenses-rateio-part:first-child {
  border-top: 0;
}

.expenses-rateio-part > span {
  min-width: 0;
}

.expenses-rateio-part > span > strong {
  display: block;
  font-size: 0.74rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.expenses-rateio-part-number {
  color: var(--brand-mid);
  font-size: 0.7rem;
  font-weight: 900;
}

.expenses-rateio-part-destination .expenses-destination-select {
  margin-top: 3px;
}

.expenses-rateio-part-selection {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
}

.expenses-table-wrap {
  overflow-x: hidden;
}

.expenses-table {
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.expenses-table th,
.expenses-table td {
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.expenses-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-transform: uppercase;
  white-space: normal;
  word-break: normal;
}

.expenses-table th:nth-child(1),
.expenses-table td:nth-child(1) { width: 4%; }
.expenses-table th:nth-child(2),
.expenses-table td:nth-child(2) { width: 8%; }
.expenses-table th:nth-child(3),
.expenses-table td:nth-child(3) { width: 12%; }
.expenses-table th:nth-child(4),
.expenses-table td:nth-child(4) { width: 10%; }
.expenses-table th:nth-child(5),
.expenses-table td:nth-child(5) { width: 16%; }
.expenses-table th:nth-child(6),
.expenses-table td:nth-child(6) { width: 14%; }
.expenses-table th:nth-child(7),
.expenses-table td:nth-child(7) { width: 11%; }
.expenses-table th:nth-child(8),
.expenses-table td:nth-child(8) { width: 14%; }
.expenses-table th:nth-child(9),
.expenses-table td:nth-child(9) { width: 11%; }

.expenses-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expenses-status-note {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 3px;
}

.expenses-pending-row {
  background: #fffaf0;
}

.expenses-bottom-summary {
  display: block;
  padding: 14px 16px 16px;
}

.expenses-bottom-summary-split {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expenses-bottom-summary-split > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.expenses-bottom-summary-split strong {
  margin-left: 0;
  text-align: left;
}

.expenses-bottom-summary-split .is-employee strong { color: var(--brand-mid); }

.benefit-from-expenses-row { background: #f2faf5; }

.expenses-bottom-summary > div {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
}

.expenses-bottom-summary strong {
  color: var(--danger);
  font-size: 1.05rem;
  margin-left: 16px;
  text-align: right;
}

@media (max-width: 1180px) {
  .expenses-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expenses-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .expenses-destination-toolbar,
  .expenses-bottom-summary-split { grid-template-columns: 1fr; }
  .expenses-rateio-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .expenses-rateio-detail-heading > span:last-child {
    text-align: left;
  }
  .expenses-rateio-part {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expenses-search-field,
  .expenses-filters select { flex-basis: 100%; }
  .expenses-overview {
    grid-template-columns: 1fr;
  }
  .expenses-form {
    grid-template-columns: 1fr;
  }
  .expenses-class-row {
    grid-template-columns: 1fr;
  }
}


.expenses-import-panel {
  min-width: 0;
}

.expenses-xml-preview:empty {
  display: none;
}

.expenses-import-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 14px;
}

.expenses-import-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.expenses-import-card.has-warning {
  border-color: #efd28a;
}

.expenses-import-card.has-error {
  border-color: #f2b8b5;
  padding: 14px;
}

.expenses-import-head {
  align-items: center;
  background: var(--surface);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
}

.expenses-import-head div {
  min-width: 0;
}

.expenses-import-source strong,
.expenses-import-source span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-import-source span,
.expenses-import-review-fields label,
.expenses-import-grid label,
.expenses-split-line label,
.expenses-import-actions span,
.expenses-split-footer span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.expenses-import-source {
  flex: 1 1 220px;
}

.expenses-import-review-fields {
  display: grid;
  flex: 0 1 360px;
  gap: 10px;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr);
  min-width: 0;
}

.expenses-import-review-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.expenses-import-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(220px, 1.2fr) auto;
  min-width: 0;
  padding: 14px;
}

.expenses-import-grid label,
.expenses-split-line label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.expenses-import-grid input,
.expenses-import-grid select,
.expenses-import-review-fields input,
.expenses-split-line input,
.expenses-split-line select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  min-width: 0;
  padding: 8px 9px;
  width: 100%;
}

.expenses-split-panel {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
}

.expenses-split-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expenses-employee-split {
  background: var(--surface-strong);
  border: 1px solid #bcd7c7;
  border-left: 4px solid var(--brand-mid);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.expenses-employee-summary {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 0.8fr) minmax(210px, 1fr);
}

.expenses-employee-summary label {
  color: var(--muted);
  display: grid;
  font-size: 0.75rem;
  font-weight: 850;
  gap: 6px;
}

.expenses-employee-summary input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.expenses-employee-summary > span {
  display: grid;
  gap: 2px;
}

.expenses-employee-summary > span small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.expenses-employee-summary > span strong {
  color: var(--brand-mid);
  font-size: 1.15rem;
}

.expenses-employee-units {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.expenses-employee-units > label {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 9px 10px;
}

.expenses-employee-units > label.is-selected {
  border-color: #78ad8d;
  box-shadow: inset 0 0 0 1px rgba(26, 122, 58, 0.14);
}

.expenses-employee-units > label > span {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 7px;
}

.expenses-employee-units input[type="checkbox"],
.expenses-employee-confirm input[type="checkbox"] {
  accent-color: var(--brand-mid);
  flex: 0 0 18px;
  height: 18px;
  min-height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  width: 18px;
}

.expenses-employee-units > label small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.expenses-employee-units > label strong {
  color: var(--text);
  font-size: 0.82rem;
}

.expenses-employee-rule {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0;
}

.expenses-employee-confirm {
  align-items: flex-start;
  background: #fff8e8;
  border: 1px solid rgba(154, 103, 0, 0.28);
  border-radius: 7px;
  color: #805900;
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 8px;
  padding: 9px 10px;
}

.expenses-split-heading,
.expenses-split-footer,
.expenses-import-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.expenses-split-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.expenses-split-line {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(160px, 1fr) minmax(160px, 1fr) minmax(120px, 0.7fr) auto;
  min-width: 0;
}

.expenses-split-line > span {
  color: var(--muted);
  font-weight: 900;
  padding-bottom: 9px;
}

.expenses-split-footer {
  margin-top: 10px;
}

.expenses-import-actions {
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
}

.expenses-import-error,
.expenses-import-warning,
.expenses-import-ok {
  font-size: 0.78rem;
  font-weight: 800;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.expenses-import-error {
  color: var(--danger);
}

.expenses-import-ok {
  color: var(--brand-mid);
}

.expenses-import-warning {
  color: #9a6700;
}

.expenses-import-biomass-block {
  align-items: center;
  background: #fff4f4;
  border: 1px solid rgba(199, 55, 55, 0.28);
  border-left: 4px solid var(--danger);
  border-radius: 7px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.expenses-import-biomass-block p {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0;
}

.expenses-import-biomass-block button {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .expenses-import-review-fields,
  .expenses-import-grid,
  .expenses-split-line {
    grid-template-columns: 1fr;
  }
  .expenses-split-line > span {
    padding-bottom: 0;
  }
  .expenses-import-actions,
  .expenses-import-biomass-block,
  .expenses-split-heading,
  .expenses-split-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .expenses-employee-summary {
    grid-template-columns: 1fr;
  }
  .expenses-split-actions {
    align-items: stretch;
    width: 100%;
  }
}


.expenses-form-heading {
  align-items: flex-start;
}

.expenses-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.slim-file-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.expenses-form-panel .expenses-xml-preview {
  border-top: 1px solid var(--line);
}

.expenses-form-panel .expenses-import-list {
  padding: 14px 16px;
}

.expenses-form-panel .expenses-import-grid {
  grid-template-columns: 1fr;
}

.expenses-form-panel .expenses-import-head {
  align-items: flex-start;
  flex-direction: column;
}

.expenses-form-panel .expenses-import-review-fields {
  flex-basis: auto;
  width: 100%;
}

.expenses-form-panel .expenses-split-line {
  grid-template-columns: 1fr;
}

.expenses-form-panel .expenses-split-line > span {
  padding-bottom: 0;
}

.expenses-form-panel .expenses-import-actions,
.expenses-form-panel .expenses-split-heading,
.expenses-form-panel .expenses-split-footer {
  align-items: flex-start;
  flex-direction: column;
}

@media (max-width: 760px) {
  .expenses-form-heading,
  .expenses-form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}


.expenses-class-actions {
  align-items: end;
  display: flex;
  gap: 8px;
}

.expenses-class-panel {
  border-top: 1px solid var(--line);
  max-width: 100%;
  overflow: hidden;
  padding: 14px 16px 16px;
}

.expenses-class-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
  min-width: 0;
}

.expenses-class-panel-head strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.expenses-class-panel-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.expenses-class-list {
  display: grid;
  gap: 8px;
}

.expenses-class-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
}

.expenses-class-item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.expenses-class-item-main strong {
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-class-item-main span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.expenses-class-item-actions {
  display: grid;
  gap: 6px;
  width: 92px;
}

.expenses-class-item-actions .slim-button {
  font-size: 0.7rem;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  width: 100%;
}

@media (max-width: 760px) {
  .expenses-class-actions,
  .expenses-class-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .expenses-class-panel-head small {
    text-align: left;
  }
}

/* Destination is independent of classification, including split invoices. */
.expenses-split-line, .expenses-form-panel .expenses-split-line {
  grid-template-columns: 24px repeat(4, minmax(130px, 1fr)) auto;
}
@media (max-width: 1100px) {
  .expenses-split-line, .expenses-form-panel .expenses-split-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .expenses-split-line, .expenses-form-panel .expenses-split-line { grid-template-columns: minmax(0, 1fr); }
}

/* The source uses a column layout inside the entry panel: no flex height reservation. */
.expenses-form-panel .expenses-import-source { flex: none; width: 100%; }

/* The review stays compact; values wrap instead of widening the form. */
.invoice-review-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 14px; margin-block: 12px; border: 1px solid var(--border-color, #dce6e1); border-radius: 10px; background: #f5f9f7; color: #34463e; }
.invoice-review-summary > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.invoice-review-summary > strong { flex-basis: 100%; }
.expenses-import-source small { display: block; font-weight: 400; color: #60786c; overflow-wrap: anywhere; }
.expenses-import-actions .import-note { min-width: 0; overflow-wrap: anywhere; }
.expenses-import-actions .import-note button { margin-top: 6px; }
/* fonte: finance/other-income.css */
.other-income-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.other-income-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.other-income-summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  padding: 14px 16px;
}

.other-income-summary-card span,
.other-income-summary-card small {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.other-income-summary-card strong {
  color: var(--text);
  display: block;
  font-size: 1.3rem;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-income-summary-card small {
  font-size: 0.72rem;
  margin-top: 4px;
}

.other-income-info strong,
.other-income-summary-card strong.positive-value {
  color: var(--brand-mid);
}

.other-income-summary-card strong.negative-value {
  color: var(--danger);
}

.other-income-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  min-width: 0;
}

.other-income-form-panel,
.other-income-list-panel {
  min-width: 0;
}

.other-income-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.other-income-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.other-income-form .wide {
  grid-column: 1 / -1;
}

.other-income-form input,
.other-income-form select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
  padding: 10px 11px;
  width: 100%;
}

.other-income-form [hidden] {
  display: none;
}

.other-income-result-preview {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 11px 12px;
}

.other-income-result-preview span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.other-income-result-preview strong {
  font-size: 1rem;
  text-align: right;
}

.other-income-table-wrap {
  overflow-x: hidden;
}

.other-income-table {
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.other-income-table th,
.other-income-table td {
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  padding: 10px 9px;
  text-align: left;
  vertical-align: middle;
}

.other-income-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

.other-income-table th:nth-child(1),
.other-income-table td:nth-child(1) { width: 8%; }
.other-income-table th:nth-child(2),
.other-income-table td:nth-child(2) { width: 14%; }
.other-income-table th:nth-child(3),
.other-income-table td:nth-child(3) { width: 24%; }
.other-income-table th:nth-child(4),
.other-income-table td:nth-child(4) { width: 12%; }
.other-income-table th:nth-child(5),
.other-income-table td:nth-child(5) { width: 13%; }
.other-income-table th:nth-child(6),
.other-income-table td:nth-child(6) { width: 13%; }
.other-income-table th:nth-child(7),
.other-income-table td:nth-child(7) { width: 16%; }

.other-income-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-income-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 12px 16px 14px;
}

@media (max-width: 1180px) {
  .other-income-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .other-income-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .other-income-overview,
  .other-income-form {
    grid-template-columns: 1fr;
  }
  .other-income-table th:nth-child(4),
  .other-income-table td:nth-child(4),
  .other-income-table th:nth-child(5),
  .other-income-table td:nth-child(5) {
    display: none;
  }
  .other-income-table th:nth-child(1),
  .other-income-table td:nth-child(1) { width: 14%; }
  .other-income-table th:nth-child(2),
  .other-income-table td:nth-child(2) { width: 20%; }
  .other-income-table th:nth-child(3),
  .other-income-table td:nth-child(3) { width: 28%; }
  .other-income-table th:nth-child(6),
  .other-income-table td:nth-child(6) { width: 18%; }
  .other-income-table th:nth-child(7),
  .other-income-table td:nth-child(7) { width: 20%; }
}
/* fonte: finance/navigation.css */
/* v398 - navegação financeira e organização de folha e encargos */
.finance-hub-shell,
.payroll-tab-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.finance-quick-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.finance-quick-actions button,
.payroll-action-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 3px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 74px;
  padding: 12px 14px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.finance-quick-actions button:hover,
.payroll-action-grid button:hover {
  background: #f4faf6;
  border-color: #8ebca0;
  transform: translateY(-1px);
}

.finance-quick-actions button:focus-visible,
.payroll-action-grid button:focus-visible,
.payroll-tabs button:focus-visible,
.finance-status-row:focus-visible,
.finance-pending-row:focus-visible {
  outline: 3px solid rgba(29, 122, 69, 0.18);
  outline-offset: 2px;
}

.finance-quick-actions button > span,
.payroll-action-grid button > span {
  align-self: center;
  font-size: 1.25rem;
  grid-row: 1 / 3;
}

.finance-quick-actions strong,
.payroll-action-grid strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.finance-quick-actions small,
.payroll-action-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.finance-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #2f7dbd;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 16px 18px;
}

.finance-kpi-card.positive { border-left-color: var(--brand-mid); }
.finance-kpi-card.negative { border-left-color: var(--danger); }
.finance-kpi-card.balance { border-left-color: #8f6f18; }

.finance-kpi-card span,
.finance-kpi-card small {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.finance-kpi-card strong {
  color: var(--text);
  display: block;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 7px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-hub-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-width: 0;
}

.finance-status-list,
.finance-pending-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.finance-status-row,
.finance-pending-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.finance-status-row {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
}

.finance-pending-row {
  background: #fffaf0;
  border-color: #eed8a7;
  grid-template-columns: 26px minmax(0, 1fr) auto;
}

.finance-status-row:hover,
.finance-pending-row:hover {
  border-color: #8ebca0;
}

.finance-status-row > span:nth-child(2),
.finance-pending-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.finance-status-row small,
.finance-pending-row small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.finance-status-row b {
  font-size: 0.78rem;
  white-space: nowrap;
}

.finance-status-row em,
.finance-pending-row em {
  color: var(--brand-mid);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.finance-status-dot,
.finance-pending-row > span:first-child {
  align-items: center;
  background: #eef3f0;
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.finance-status-row.done .finance-status-dot {
  background: #e5f4e9;
  color: var(--brand-mid);
}

.finance-pending-row > span:first-child {
  background: #f7e7bb;
  color: #8d6200;
}

.finance-empty-state {
  align-items: center;
  background: #edf8f0;
  border: 1px solid #cce4d3;
  border-radius: 8px;
  color: var(--brand-dark);
  display: grid;
  gap: 4px;
  min-height: 94px;
  padding: 16px;
  text-align: center;
}

.finance-empty-state span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.payroll-navigation-panel {
  overflow: hidden;
}

.payroll-navigation-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.payroll-navigation-heading h2,
.payroll-navigation-heading p {
  margin: 0;
}

.payroll-navigation-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
}

.payroll-navigation-status {
  display: grid;
  gap: 3px;
  text-align: right;
}

.payroll-navigation-status strong {
  color: var(--brand-mid);
  font-size: 0.82rem;
}

.payroll-navigation-status span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.payroll-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 10px;
}

.payroll-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 13px 10px 11px;
}

.payroll-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.payroll-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

.payroll-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 18px 18px;
}

[data-folha-aba-painel][hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .finance-quick-actions,
  .finance-kpi-grid,
  .payroll-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-hub-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .finance-quick-actions,
  .finance-kpi-grid,
  .payroll-action-grid,
  .payroll-overview {
    grid-template-columns: 1fr;
  }
  .payroll-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .payroll-navigation-status {
    text-align: left;
  }
  .payroll-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0 6px 6px;
  }
  .payroll-tabs button {
    min-width: 0;
    overflow-wrap: anywhere;
    padding-inline: 6px;
  }
  .finance-status-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .finance-status-row b {
    display: none;
  }
  .finance-pending-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .finance-pending-row em {
    grid-column: 2;
  }
}
/* fonte: people/provisions.css */
/* Provisões trabalhistas */
.provision-ledger { padding: 0; border-top: 1px solid var(--line); }
.provision-annual-toggle > summary, .provision-ended > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.provision-annual-toggle > summary::-webkit-details-marker, .provision-ended > summary::-webkit-details-marker { display: none; }
.provision-annual-toggle > summary > span:first-child::before, .provision-ended > summary > span:first-child::before { content: "▸"; color: var(--brand-mid); margin-right: 8px; }
.provision-annual-toggle[open] > summary > span:first-child::before, .provision-ended[open] > summary > span:first-child::before { content: "▾"; }
.provision-annual-toggle > summary small, .provision-ended > summary small { font: inherit; color: var(--muted); }
.provision-annual-action, .provision-ended > summary > span:last-child { color: var(--brand-mid); font-size: .8rem; white-space: nowrap; }
.provision-annual-toggle:not([open]) .when-open, .provision-annual-toggle[open] .when-closed { display: none; }
.provision-annual-toggle[open] > summary { border-bottom: 1px solid var(--line); }
.provision-annual-body { padding: 0 18px 16px; }
.provision-annual-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 16px; }
.provision-annual-toolbar p, .provision-ledger .provision-source { color: var(--muted); font-size: .8rem; margin: 8px 0; }
.provision-group-title { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 18px 0 8px; }
.provision-group-title span { color: var(--muted); font-size: .8rem; font-weight: 400; }
.provision-ended { margin-top: 16px; border-top: 1px solid var(--line); }
.provision-ended > summary { padding: 14px 0; font-size: .9rem; }
.provision-annual-toggle > summary:focus-visible, .provision-ended > summary:focus-visible { outline: 2px solid var(--brand-mid); outline-offset: -2px; }
.provision-ledger .panel-heading { padding: 0 0 16px; }
.provision-ledger h3, .provision-import-check h3 { margin: 0 0 6px; }
.provision-ledger p, .provision-import-check p { line-height: 1.5; }
.provision-ledger-filters, .provision-ledger-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.provision-ledger-filters label, .provision-opening-edit label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 700; min-width: 0; }
.provision-ledger-summary { gap: 0; background: #f4f9f6; border-block: 1px solid var(--line); margin-bottom: 8px; }
.provision-ledger-summary > div { padding: 10px 14px; }
.provision-ledger-summary span, .provision-ledger-summary small { display: block; color: var(--muted); font-size: .8rem; }
.provision-ledger-summary strong { display: block; font-size: .95rem; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.provision-person { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; overflow: hidden; }
.provision-person > summary { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; background: #fff; }
.provision-person[open] > summary { background: #eff7f2; border-bottom: 1px solid var(--line); }
.provision-person > summary > span { min-width: 0; font-size: .75rem; color: var(--muted); }
.provision-person > summary > span:not(:first-child) { text-align: right; }
.provision-person summary strong { display: block; margin-top: 3px; color: var(--ink); font-size: .9rem; font-variant-numeric: tabular-nums; }
.provision-person summary small { display: block; font-size: .75rem; margin-top: 5px; }
.provision-person > summary > span:first-child::before { content: "▸"; float: left; margin: 4px 8px 4px 0; color: var(--brand-mid); }
.provision-person[open] > summary > span:first-child::before { content: "▾"; }
.provision-detail-copy { padding: 8px 16px 16px; font-size: .85rem; }
.provision-detail-copy h4 { margin: 18px 0 6px; }
.provision-ledger-table { width: 100%; table-layout: fixed; }
.provision-ledger-table th, .provision-ledger-table td { padding: 10px; vertical-align: top; overflow-wrap: anywhere; }
.provision-ledger-table th:first-child { width: 16%; }
.provision-ledger-table th.numeric { width: 20%; }
.provision-ledger-table small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.provision-text-action { background: none; border: 0; padding: 0; color: var(--brand-mid); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 700; }
.provision-opening-edit { margin-top: 16px; padding: 12px; background: #f7faf8; border: 1px solid var(--line); border-radius: 6px; }
.provision-opening-edit > summary { cursor: pointer; color: var(--brand-mid); font-weight: 700; }
.provision-opening-edit form { display: grid; grid-template-columns: 1fr 1fr 2fr auto; align-items: end; gap: 10px; }
.provision-import-check, .provision-saved-check { padding: 16px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbf9; }
.provision-saved-check { flex-basis: 100%; min-width: 0; }
.provision-check-close { float: right; margin: 0 0 8px 12px; }
.provision-guide-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.provision-guide-actions .slim-button { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.payroll-employee-actions:has([data-provision-records]) { flex-wrap: wrap; gap: 8px; }
.provision-saved-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; }
.provision-preview-effects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 12px 0; }
.provision-preview-effects article { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.provision-preview-effects dl { margin: 10px 0 0; }
.provision-preview-effects dl div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: .85rem; }
.provision-preview-effects dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.provision-receipt { background: white; border-top: 1px solid var(--line); padding: 10px 12px; }
.provision-receipt > summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.provision-receipt p { font-size: .85rem; }
.payroll-reference-year { display: block; margin-top: 8px; font-size: .75rem; }
.payroll-reference-year input { width: 96px; min-width: 0; }
@media(max-width: 700px) {
  .provision-annual-body { padding: 0 12px 12px; }
  .provision-annual-toggle > summary { padding: 14px 12px; font-size: .85rem; }
  .provision-ledger-filters { grid-template-columns: 1fr; gap: 10px; }
  .provision-ledger-summary { grid-template-columns: 1fr; gap: 0; }
  .provision-ledger-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .provision-ledger-summary > div { padding: 10px 8px; }
  .provision-ledger-summary strong { font-size: .9rem; margin: 0; white-space: nowrap; }
  .provision-person > summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px 6px; }
  .provision-person > summary > span:first-child { grid-column: 1 / -1; }
  .provision-person summary strong { font-size: .78rem; }
  .provision-person > summary > span:not(:first-child) { text-align: left; }
  .provision-opening-edit form { grid-template-columns: 1fr; }
  .provision-detail-copy { padding: 8px 12px 12px; }
  .provision-import-check { padding: 12px; }
  .provision-ledger-table { min-width: 580px; }
}
.provision-profit-strip,
.payroll-provision-grid,
.payroll-provision-columns,
.payroll-provision-unit-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.provision-profit-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provision-profit-strip[hidden] {
  display: none !important;
}

.provision-profit-strip article {
  background: #f8fbf9;
  border: 1px solid #cfe0d5;
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  min-width: 0;
  padding: 14px 16px;
}

.provision-profit-strip article.adjustment {
  background: #fffaf0;
  border-color: #ead7a8;
  border-left-color: #a67711;
}

.provision-profit-strip article.result {
  background: #eef7fb;
  border-color: #c4ddea;
  border-left-color: #2f7dbd;
}

.provision-profit-strip span,
.provision-profit-strip small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.provision-profit-strip strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
}

.payroll-provision-panel {
  min-width: 0;
  overflow: hidden;
}

.payroll-provision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 18px 16px;
}

.payroll-provision-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.payroll-provision-card.highlight {
  background: #edf8f0;
  border-color: #c6dfcd;
}

.payroll-provision-card.warning {
  background: #fffaf0;
  border-color: #ead7a8;
}

.payroll-provision-card span,
.payroll-provision-card small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.payroll-provision-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
}

.payroll-provision-equation {
  align-items: center;
  background: #f4f7f5;
  border-block: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-width: 0;
  padding: 13px 18px;
}

.payroll-provision-equation span,
.payroll-provision-equation strong {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.payroll-provision-equation b {
  color: var(--muted);
}

.payroll-provision-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px 16px;
}

.payroll-provision-block,
.payroll-provision-units {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.payroll-provision-block-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 13px 14px;
}

.payroll-provision-block-heading > div {
  min-width: 0;
}

.payroll-provision-block-heading h3,
.payroll-provision-block-heading p {
  margin: 0;
  overflow-wrap: anywhere;
}

.payroll-provision-block-heading h3 {
  font-size: 0.92rem;
}

.payroll-provision-block-heading p {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 3px;
}

.payroll-provision-list,
.payroll-provision-review {
  display: grid;
  gap: 7px;
  padding: 0 14px 14px;
}

.payroll-provision-row,
.payroll-provision-review-row {
  align-items: center;
  background: #fafcfb;
  border: 1px solid #e2e9e5;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
}

.payroll-provision-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.payroll-provision-row span,
.payroll-provision-review-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payroll-provision-row small,
.payroll-provision-review-row small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.payroll-provision-row strong {
  white-space: nowrap;
}

.payroll-provision-review-row {
  grid-template-columns: 24px minmax(0, 1fr);
}

.payroll-provision-review-row > b {
  align-items: center;
  background: #e5f4e9;
  border-radius: 50%;
  color: var(--brand-mid);
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.payroll-provision-review-row.warning {
  background: #fffaf0;
  border-color: #ead7a8;
}

.payroll-provision-review-row.warning > b {
  background: #f7e7bb;
  color: #8d6200;
}

.payroll-provision-review-row.waiting {
  background: #f4f8fb;
  border-color: #cbdce8;
}

.payroll-provision-review-row.waiting > b {
  background: #deedf6;
  color: #37677f;
}

.payroll-provision-units {
  margin: 0 18px 16px;
}

.payroll-provision-severance {
  border: 1px solid #d7dfda;
  border-radius: 8px;
  margin: 0 18px 16px;
  min-width: 0;
  overflow: hidden;
}

.payroll-severance-summary,
.payroll-severance-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.payroll-severance-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.payroll-severance-summary article {
  background: #f7faf8;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  min-width: 0;
  padding: 11px;
}

.payroll-severance-summary span,
.payroll-severance-summary small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.payroll-severance-summary strong {
  display: block;
  font-size: 1rem;
  margin: 5px 0 3px;
  overflow-wrap: anywhere;
}

.payroll-severance-details {
  border-top: 1px solid var(--line);
}

.payroll-severance-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 12px 14px;
}

.payroll-severance-details > summary::-webkit-details-marker {
  display: none;
}

.payroll-severance-details > summary::after {
  color: var(--muted);
  content: "Abrir";
  font-size: 0.7rem;
  font-weight: 800;
}

.payroll-severance-details[open] > summary::after {
  content: "Fechar";
}

.payroll-severance-details > summary span,
.payroll-severance-details > summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payroll-severance-details > summary span {
  font-size: 0.78rem;
  font-weight: 800;
}

.payroll-severance-details > summary small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.payroll-severance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.payroll-severance-card {
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
}

.payroll-severance-card.settled {
  background: #f8fbf9;
  border-color: #bdd6c5;
}

.payroll-severance-card > header {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.payroll-severance-card > header span {
  min-width: 0;
}

.payroll-severance-card > header strong,
.payroll-severance-card > header small {
  display: block;
  overflow-wrap: anywhere;
}

.payroll-severance-card > header strong {
  font-size: 0.78rem;
}

.payroll-severance-card > header small,
.payroll-severance-card > small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}

.payroll-severance-card > header b {
  background: #e5f4e9;
  border-radius: 999px;
  color: var(--brand-mid);
  font-size: 0.62rem;
  padding: 4px 7px;
  white-space: nowrap;
}

.payroll-severance-values,
.payroll-severance-settlement {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payroll-severance-values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payroll-severance-values span,
.payroll-severance-settlement span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payroll-severance-values strong,
.payroll-severance-settlement strong {
  color: var(--text);
  display: block;
  font-size: 0.72rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.payroll-severance-settlement {
  background: #eef7fb;
  border-radius: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
}

.payroll-provision-unit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.payroll-provision-unit-card {
  background: #fafcfb;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
}

.payroll-provision-unit-card span,
.payroll-provision-unit-card small {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.payroll-provision-unit-card strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.payroll-provision-note {
  background: #eef7fb;
  border-top: 1px solid #c4ddea;
  color: #31566b;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 12px 18px;
}

@media (max-width: 980px) and (min-width: 761px) {
  .payroll-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 6px;
  }
  .payroll-provision-grid,
  .payroll-provision-unit-grid,
  .payroll-severance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payroll-severance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .provision-profit-strip,
  .payroll-provision-columns {
    grid-template-columns: 1fr;
  }
  .payroll-provision-grid,
  .payroll-provision-unit-grid,
  .payroll-severance-grid,
  .payroll-severance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payroll-provision-block-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .payroll-provision-grid,
  .payroll-provision-unit-grid,
  .payroll-severance-grid,
  .payroll-severance-summary {
    grid-template-columns: 1fr;
  }
  .payroll-provision-equation {
    align-items: stretch;
    flex-direction: column;
  }
  .payroll-provision-equation b {
    text-align: center;
  }
}
/* fonte: finance/expenses.css */
/* Organização da área de Gastos — v399 */
.expenses-navigation-panel {
  overflow: hidden;
}

.expenses-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.expenses-navigation-heading h2,
.expenses-navigation-heading p {
  margin: 0;
}

.expenses-navigation-heading h2 {
  font-size: 1.2rem;
}

.expenses-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.expenses-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.expenses-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.expenses-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.expenses-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-gastos-aba-painel][hidden] {
  display: none !important;
}

.expenses-tab-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.expenses-quick-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.expenses-quick-actions button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
}

.expenses-quick-actions button:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.expenses-quick-actions button.primary {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.expenses-quick-actions button span {
  font-size: 1.08rem;
}

.expenses-summary-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.expenses-recurring-summary,
.expenses-recent-summary {
  display: grid;
  padding: 0 16px 16px;
}

.expenses-summary-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-width: 0;
  padding: 11px 0;
}

.expenses-summary-row:first-child {
  border-top: 0;
}

.expenses-summary-row > span,
.expenses-summary-row > span strong,
.expenses-summary-row > span small {
  display: block;
  min-width: 0;
}

.expenses-summary-row > span strong,
.expenses-summary-row > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-summary-row > span strong {
  font-size: 0.82rem;
}

.expenses-summary-row > span small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.expenses-summary-row > b {
  font-size: 0.84rem;
  white-space: nowrap;
}

.expenses-summary-row > button,
.expenses-empty-card button,
.expenses-review-strip button {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px;
}

.expenses-summary-row > button:disabled {
  color: var(--muted);
  cursor: default;
}

.expenses-review-strip {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efd28a;
  border-left: 4px solid #d89a0d;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
  padding: 13px 15px;
}

.expenses-review-strip span,
.expenses-review-strip strong,
.expenses-review-strip small {
  display: block;
}

.expenses-review-strip strong {
  font-size: 0.82rem;
}

.expenses-review-strip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.expenses-form-panel-wide {
  max-width: none;
  width: 100%;
}

.expenses-recurring-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.expenses-recurring-day-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.expenses-form .expenses-recurring-last-day {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 7px;
  line-height: 1.2;
}

.expenses-form .expenses-recurring-last-day input {
  accent-color: var(--brand-mid);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  padding: 0;
  width: 18px;
}

.expenses-recurring-day-field.is-last-day > label:first-child {
  opacity: 0.58;
}

[data-gastos-aba-painel="recorrentes"] .panel-heading p {
  font-size: 0.78rem;
  line-height: 1.35;
}

.expenses-recurring-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.expenses-recurring-row {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
  min-width: 0;
  padding: 12px;
}

.expenses-recurring-row.is-launched {
  background: #f4faf6;
  border-color: #cce4d4;
}

.expenses-recurring-row > div:first-child,
.expenses-recurring-value {
  min-width: 0;
}

.expenses-recurring-row strong,
.expenses-recurring-row small {
  display: block;
}

.expenses-recurring-row > div:first-child strong,
.expenses-recurring-row > div:first-child small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-recurring-row > div:first-child strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.expenses-recurring-row small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 3px;
}

.expenses-recurring-value {
  text-align: right;
  white-space: nowrap;
}

.expenses-recurring-value small { overflow: hidden; text-overflow: ellipsis; }
.expenses-form.recurring-form { align-items:start; grid-template-columns:repeat(3,minmax(0,1fr)); }
.expenses-form.recurring-form > .wide { grid-column:auto; }
.expenses-form.recurring-form > button.wide { grid-column:1 / -1; }
@media(max-width:700px) { .expenses-form.recurring-form { grid-template-columns:1fr; } }
.recurring-form .expenses-recurring-day-field > label:first-child { display: grid; gap: 7px; }

.expenses-recurring-value > strong {
  font-size: 0.84rem;
}

.expenses-recurring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.expenses-recurring-actions .slim-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.74rem;
}

.expenses-recurring-launch-modal[hidden] {
  display: none;
}

.expenses-recurring-launch-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.expenses-recurring-launch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 36, 25, 0.48);
  backdrop-filter: blur(2px);
}

.expenses-recurring-launch-dialog {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid #c9d8ce;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(17, 36, 25, 0.28);
}

.expenses-recurring-launch-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.expenses-recurring-launch-dialog > header span,
.expenses-recurring-launch-dialog > header h2,
.expenses-recurring-launch-dialog > header p {
  display: block;
  margin: 0;
}

.expenses-recurring-launch-dialog > header span {
  color: var(--brand-mid);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.expenses-recurring-launch-dialog > header h2 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.expenses-recurring-launch-dialog > header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.expenses-recurring-launch-dialog form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.expenses-recurring-launch-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.expenses-recurring-launch-context > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.expenses-recurring-launch-context small,
.expenses-recurring-launch-context strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-recurring-launch-context small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.expenses-recurring-launch-context strong {
  margin-top: 2px;
  font-size: 0.78rem;
}

.expenses-recurring-launch-dialog form > label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.expenses-recurring-launch-dialog form > label > small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.expenses-recurring-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.expenses-recurring-money-input:focus-within {
  border-color: var(--brand-mid);
  outline: 2px solid var(--brand-mid);
  outline-offset: 2px;
}

.expenses-recurring-money-input b {
  padding-left: 14px;
  color: var(--brand-mid);
  font-size: 1rem;
}

.expenses-recurring-money-input input {
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: right;
}

#gastoRecorrenteLancamentoModal .expenses-recurring-money-input > input {
  /* O contorno pertence ao conjunto, incluindo o prefixo da moeda. */
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

#gastoRecorrenteLancamentoModal .expenses-recurring-money-input > input:is(:focus, :focus-visible) {
  box-shadow: none;
  outline: none;
}

.expenses-recurring-launch-dialog .form-status {
  min-height: 0;
  color: var(--danger);
}

.expenses-recurring-launch-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

body.nfse-integration-open {
  overflow: hidden;
}

.nfse-integration-dialog {
  width: min(1040px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
}

.nfse-integration-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

[data-integration-pane] {
  display: grid;
  gap: 16px;
  min-width: 0;
}

[data-integration-pane][hidden],
#emailIntegrationSettings[hidden],
#expenseEmailSearchPanel[hidden] {
  display: none !important;
}

.nfse-integration-dialog .panel {
  margin: 0;
  min-width: 0;
}

.nfse-integration-dialog .expenses-email-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  align-items: center;
}

.nfse-integration-dialog #expenseEmailSearchPanel .expenses-email-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}

#expenseEmailSearchStatus {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

#expenseEmailSearchStatus span {
  color: var(--muted);
  font-size: 0.76rem;
}

#expenseEmailSyncButton {
  min-height: 42px;
  align-self: center;
}

.nfse-integration-dialog .integration-tabs {
  margin: 0;
  padding: 0;
}

#nfseIntegrationStatus {
  display: block;
}

.nfse-integration-dialog .expenses-email-toolbar label {
  min-width: 0;
}

.nfse-integration-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
}

.nfse-integration-section h3,
.nfse-integration-section p {
  margin: 0;
}

.nfse-integration-section p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nfse-integration-form {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
  padding: 0 !important;
}

.nfse-integration-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 800;
}

.nfse-integration-form button {
  grid-column: 1 / -1;
  justify-self: end;
}

.nfse-integration-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.nfse-integration-section > .primary-button {
  justify-self: end;
}

@media (max-width: 680px) {
  .nfse-integration-form,
  .nfse-integration-dialog .expenses-email-toolbar,
  .nfse-integration-dialog #expenseEmailSearchPanel .expenses-email-toolbar {
    grid-template-columns: 1fr;
  }
}

.delivery-edit-dialog {
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
}

.delivery-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-edit-form .delivery-edit-context,
.delivery-edit-form .delivery-edit-preservation,
.delivery-edit-form .wide,
.delivery-edit-form .form-status,
.delivery-edit-form footer {
  grid-column: 1 / -1;
}

.delivery-edit-form > label {
  min-width: 0;
}

.delivery-edit-form > label input,
.delivery-edit-form > label select {
  width: 100%;
}

.delivery-edit-preservation {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8ddcf;
  border-radius: 8px;
  background: #f2f8f4;
  color: var(--brand-dark);
  font-size: 0.76rem;
  line-height: 1.45;
}

.delivery-edit-preservation strong {
  font-weight: 900;
}

.expenses-empty-card {
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px dashed #cbd7cf;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 4px;
  padding: 16px;
}

.expenses-empty-card.compact {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 4px;
  padding: 12px;
}

.expenses-unit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.expenses-unit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  text-align: left;
}

.expenses-unit-card:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.expenses-unit-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-unit-card strong {
  font-size: 1.15rem;
}

.expenses-unit-card small,
.expenses-unit-card em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
}

.expenses-unit-card em {
  color: var(--brand-mid);
  font-weight: 900;
  margin-top: 5px;
}

.expenses-conference-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.expenses-month-closing {
  padding: 0 16px 16px;
}

.expenses-month-closing-card {
  align-items: center;
  background: #fff9eb;
  border: 1px solid #e9cc82;
  border-radius: 9px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  padding: 14px;
}

.expenses-month-closing-card.is-confirmed {
  background: #f2faf5;
  border-color: #b8dcc4;
}

.expenses-month-closing-card.is-waiting {
  background: #f7f9f8;
  border-color: var(--line);
}

.expenses-month-closing-icon {
  align-items: center;
  background: #d89a0d;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.95rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.expenses-month-closing-card.is-confirmed .expenses-month-closing-icon {
  background: var(--brand-mid);
}

.expenses-month-closing-card.is-waiting .expenses-month-closing-icon {
  background: #87958c;
}

.expenses-month-closing-copy strong,
.expenses-month-closing-copy small {
  display: block;
}

.expenses-month-closing-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 3px;
}

.expenses-month-closing-status {
  background: #fff2cf;
  border-radius: 999px;
  color: #8a6200;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.expenses-month-closing-card.is-confirmed .expenses-month-closing-status {
  background: #dff2e5;
  color: var(--brand-mid);
}

.expenses-month-closing-card.is-waiting .expenses-month-closing-status {
  background: #e9eeeb;
  color: #647168;
}

.expenses-month-closing-card > button {
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 9px 11px;
  white-space: nowrap;
}

.expenses-month-closing-card > button:disabled {
  background: #edf0ee !important;
  border-color: #dce2de !important;
  color: #8c9790;
  cursor: not-allowed;
}

.expenses-conference-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.expenses-conference-row,
.expenses-conference-ok {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efd28a;
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.expenses-conference-row.error {
  background: #fff5f4;
  border-color: #efc1bd;
}

.expenses-conference-row.success {
  background: #f2faf5;
  border-color: #b8dcc4;
}

.expenses-conference-ok {
  background: #f3faf5;
  border-color: #c8e2d0;
  grid-template-columns: 28px minmax(0, 1fr);
}

.expenses-conference-row > span:first-child,
.expenses-conference-ok > span:first-child {
  align-items: center;
  background: #d89a0d;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.expenses-conference-row.error > span:first-child {
  background: var(--danger);
}

.expenses-conference-row.success > span:first-child {
  background: var(--brand-mid);
}

.expenses-conference-ok > span:first-child {
  background: var(--brand-mid);
}

.expenses-conference-row strong,
.expenses-conference-row small,
.expenses-conference-ok strong,
.expenses-conference-ok small {
  display: block;
}

.expenses-conference-row small,
.expenses-conference-ok small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.expenses-conference-row em {
  color: var(--brand-mid);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

button.expenses-conference-row {
  appearance: none;
  font: inherit;
}

.expenses-conference-row.is-action {
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.expenses-conference-row.is-action:hover {
  background: #fff3d6;
  border-color: #dcae3f;
  box-shadow: 0 3px 10px rgba(116, 78, 0, 0.09);
}

.expenses-conference-row.is-action:focus-visible {
  outline: 3px solid rgba(216, 154, 13, 0.28);
  outline-offset: 2px;
}

.expenses-duplicate-group {
  background: #fff;
  border: 1px solid #efc1bd;
  border-radius: 9px;
  overflow: hidden;
}

.expenses-duplicate-group.is-confirmed {
  border-color: #b8dcc4;
}

.expenses-duplicate-group .expenses-duplicate-heading {
  border: 0;
  border-radius: 0;
}

.expenses-duplicate-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.expenses-duplicate-actions > button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--brand-mid);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 8px;
  white-space: nowrap;
}

.expenses-duplicate-actions > button:hover,
.expenses-duplicate-actions > button:focus-visible {
  background: #edf8f0;
  border-color: #b8dcc4;
  outline: none;
}

.expenses-confirmation-button {
  background: #f2faf5 !important;
  border-color: #b8dcc4 !important;
}

.expenses-confirmation-button.is-confirmed {
  background: transparent !important;
  color: var(--muted);
}

.expenses-duplicate-items {
  border-top: 1px solid #f0d3cf;
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px 52px;
}

.expenses-duplicate-group.is-confirmed .expenses-duplicate-items {
  background: #fbfefc;
  border-top-color: #d5e8db;
}

.expenses-duplicate-group.is-confirmed .expenses-duplicate-item {
  background: #fff;
  border-color: #dcebe1;
}

.expenses-duplicate-item {
  align-items: start;
  background: #fffafa;
  border: 1px solid #f0dfdc;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 90px minmax(130px, 1fr) minmax(130px, 1fr) 110px;
  padding: 9px 10px;
}

.expenses-duplicate-item span,
.expenses-duplicate-item strong,
.expenses-duplicate-item small {
  display: block;
  min-width: 0;
}

.expenses-duplicate-item strong {
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expenses-duplicate-item small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 2px;
}

tr.expenses-duplicate-highlight td {
  background: #fff0cd;
  border-bottom-color: #e6bc57;
  border-top: 2px solid #d89a0d;
}

tr.expenses-duplicate-highlight td:first-child {
  border-left: 3px solid #d89a0d;
}

@media (max-width: 1180px) {
  .expenses-summary-columns,
  .expenses-recurring-layout {
    grid-template-columns: 1fr;
  }
  .expenses-unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .expenses-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .expenses-tabs {
    display: flex;
    overflow-x: auto;
  }
  .expenses-tabs button {
    flex: 0 0 auto;
    min-width: 112px;
  }
  .expenses-quick-actions,
  .expenses-unit-grid,
  .expenses-conference-kpis {
    grid-template-columns: 1fr;
  }
  .expenses-month-closing-card {
    align-items: start;
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .expenses-month-closing-status,
  .expenses-month-closing-card > button {
    grid-column: 2;
    justify-self: start;
  }
  .expenses-summary-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .expenses-summary-row > button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .expenses-review-strip,
  .expenses-empty-card.compact {
    align-items: flex-start;
    flex-direction: column;
  }
  .expenses-recurring-row {
    grid-template-columns: 1fr;
  }
  .expenses-recurring-value {
    text-align: left;
  }
  .expenses-recurring-actions {
    justify-content: flex-start;
  }
  .expenses-recurring-launch-modal {
    align-items: end;
    padding: 10px;
  }
  .expenses-recurring-launch-context {
    grid-template-columns: 1fr;
  }
  .expenses-recurring-launch-dialog footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .expenses-recurring-launch-dialog footer button {
    width: 100%;
  }
  .delivery-edit-form {
    grid-template-columns: 1fr;
  }
  .delivery-edit-form .delivery-edit-context {
    grid-template-columns: 1fr;
  }
  .expenses-conference-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .expenses-conference-row em {
    grid-column: 2;
  }
  .expenses-duplicate-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .expenses-duplicate-items {
    padding-left: 12px;
  }
  .expenses-duplicate-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* O formulário continua montado para preservar o rascunho. */
#gastos .expenses-manual-disclosure { margin: 16px; border: 1px solid var(--line); border-radius: 8px; }
#gastos .expenses-manual-disclosure > summary { padding: 12px 16px; color: var(--brand-mid); font-weight: 600; cursor: pointer; }
#gastos .expenses-manual-disclosure > summary:focus-visible { outline: 2px solid var(--brand-mid); outline-offset: 2px; }
/* fonte: finance/taxes.css */
/* Organização da área de Impostos — v400 */
.tax-navigation-panel {
  overflow: hidden;
}

.tax-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.tax-navigation-heading h2,
.tax-navigation-heading p {
  margin: 0;
}

.tax-navigation-heading h2 {
  font-size: 1.2rem;
}

.tax-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.tax-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.retention-guide-list,
.retention-obligation-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.retention-guide-card,
.retention-obligation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.retention-guide-card > header,
.retention-obligation-card > header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  padding: 12px 14px;
}

.retention-guide-card header span,
.retention-guide-card header small,
.retention-obligation-card header span,
.retention-obligation-card header small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  margin-top: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.retention-guide-linked-value {
  color: var(--text) !important;
  text-align: right;
}

.retention-guide-linked-value strong,
.retention-guide-linked-value small {
  display: block;
}

.retention-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.retention-guide-body,
.retention-obligation-body {
  background: #f8fbf9;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 11px 14px;
}

.retention-guide-line,
.retention-obligation-line {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 0.76rem;
}

.retention-guide-linked-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding-top: 10px;
}

.retention-guide-linked-document {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 10px;
}

.retention-guide-linked-document span,
.retention-guide-linked-document strong,
.retention-guide-linked-document small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.retention-guide-linked-document small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  margin-top: 2px;
}

.retention-import-card {
  background: #f7fbf8;
  border: 1px solid #c8dfd0;
  border-radius: 10px;
  margin: 14px 16px 0;
  padding: 14px;
}

.retention-import-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.retention-import-grid label,
.retention-link-option,
.retention-component-option {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.retention-import-grid input,
.retention-import-grid select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  display: block;
  font: inherit;
  font-weight: 800;
  margin-top: 4px;
  min-width: 0;
  padding: 8px 9px;
  width: 100%;
}

.retention-component-list,
.retention-link-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.retention-component-option,
.retention-link-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.retention-component-option input,
.retention-link-option input {
  accent-color: var(--brand-mid);
  height: 16px;
  width: 16px;
}

.retention-component-option.is-locked {
  background: #f4f5f4;
  color: #747b76;
}

.retention-component-option.is-locked input {
  cursor: not-allowed;
}

.retention-component-option.is-readonly {
  background: #f6f8f6;
}

.retention-component-option > span:not(.retention-component-value) small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 2px;
}

.retention-component-value {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 128px;
}

.retention-component-value small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.retention-component-option .retention-component-value input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  height: auto;
  padding: 7px 8px;
  text-align: right;
  width: 118px;
}

.retention-component-option .retention-component-value input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 2px rgba(24, 128, 70, 0.12);
  outline: none;
}

.retention-manual-adjustment {
  background: #fffaf0;
  border-color: #e5bf71;
  border-style: dashed;
}

.retention-manual-symbol {
  align-items: center;
  background: #fff0ca;
  border-radius: 50%;
  color: #8a5d08;
  display: inline-flex;
  font-size: 1rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.retention-import-balance {
  background: #fff7e7;
  border: 1px solid #edc474;
  border-radius: 8px;
  color: #875d10;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.45;
  margin-top: 11px;
  padding: 10px 12px;
}

.retention-import-balance.ok {
  background: #edf8f1;
  border-color: #acd3ba;
  color: var(--brand-mid);
}

@media (max-width: 980px) {
  .expenses-retention-grid,
  .retention-import-grid,
  .expenses-retention-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retention-guide-card > header,
  .retention-obligation-card > header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .retention-guide-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tax-tabs {
    display: flex;
    overflow-x: auto;
  }

  .tax-tabs button {
    flex: 0 0 auto;
    min-width: 130px;
  }
}

@media (max-width: 620px) {
  .expenses-retention-grid,
  .retention-import-grid,
  .expenses-retention-detail,
  .retention-guide-card > header,
  .retention-obligation-card > header {
    grid-template-columns: 1fr;
  }

  .retention-guide-linked-document {
    grid-template-columns: 1fr;
  }

  .retention-guide-linked-document .ghost-light-button {
    justify-self: start;
  }

  .retention-component-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .retention-component-value {
    grid-column: 2;
    justify-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .retention-component-option .retention-component-value input {
    width: 100%;
  }
}

.tax-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.tax-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.tax-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-impostos-aba-painel][hidden] {
  display: none !important;
}

/* Moved guide sections keep their domain layout classes, which can otherwise
   override the browser's default display:none for the hidden attribute. */
#guideCenterPanels [hidden],
#guideCenterTabs [hidden] {
  display: none !important;
}

.tax-tab-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.tax-page-overview-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tax-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.tax-action-grid button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
}

.tax-action-grid button:hover {
  background: #f6faf7;
  border-color: #b8d4c1;
}

.tax-action-grid button.primary {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.tax-action-grid button span {
  font-size: 1.08rem;
}

.tax-summary-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.tax-summary-list {
  display: grid;
  padding: 0 16px 16px;
}

.tax-summary-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-width: 0;
  padding: 11px 0;
}

.tax-summary-row:first-child {
  border-top: 0;
}

.tax-summary-row span,
.tax-summary-row strong,
.tax-summary-row small {
  display: block;
  min-width: 0;
}

.tax-summary-row span strong,
.tax-summary-row span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tax-summary-row span strong,
.tax-summary-row b {
  font-size: 0.82rem;
}

.tax-summary-row span small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.tax-summary-row b {
  white-space: nowrap;
}

.tax-summary-status,
.tax-guide-status {
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.tax-summary-status.ok,
.tax-guide-status.ok {
  background: #e7f6ec;
  color: var(--brand-mid);
}

.tax-summary-status.neutral,
.tax-guide-status.empty {
  background: var(--soft);
  color: var(--muted);
}

.tax-guide-status.warning {
  background: #fff1cf;
  color: #9a6500;
}

.tax-guide-status.info {
  background: #e9f3ff;
  color: #28649c;
}

.tax-review-strip {
  align-items: center;
  background: #f3faf5;
  border: 1px solid #cce4d4;
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
  padding: 13px 15px;
}

.tax-review-strip.warning {
  background: #fff8e8;
  border-color: #efd28a;
  border-left-color: #d89a0d;
}

.tax-review-strip span,
.tax-review-strip strong,
.tax-review-strip small {
  display: block;
}

.tax-review-strip strong {
  font-size: 0.82rem;
}

.tax-review-strip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.tax-review-strip button {
  background: transparent;
  border: 0;
  color: var(--brand-mid);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.tax-memory-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 14px 16px 16px;
}

.tax-memory-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.tax-memory-grid span,
.tax-memory-grid strong,
.tax-memory-grid small {
  display: block;
}

.tax-memory-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.tax-memory-grid strong {
  font-size: 0.92rem;
  margin-top: 5px;
  white-space: nowrap;
}

.tax-memory-grid small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 3px;
}

.tax-memory-hidden-total {
  display: none;
}

.tax-guide-comparison-table td:first-child strong,
.tax-guide-comparison-table td:first-child small {
  display: block;
}

.tax-guide-comparison-table td:first-child small {
  color: var(--muted);
  font-size: 0.66rem;
  margin-top: 3px;
  max-width: 280px;
}

.tax-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tax-guide-rule {
  background: #eef7f1;
  border-top: 1px solid #cce4d4;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 13px 16px;
}

.tax-guide-rule strong {
  color: var(--brand-mid);
}

@media (max-width: 1180px) {
  .tax-page-overview-four,
  .tax-memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tax-summary-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tax-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .tax-tabs {
    display: flex;
    overflow-x: auto;
  }
  .tax-tabs button {
    flex: 0 0 auto;
    min-width: 118px;
  }
  .tax-action-grid,
  .tax-page-overview-four,
  .tax-memory-grid {
    grid-template-columns: 1fr;
  }
  .tax-summary-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tax-summary-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .tax-review-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reforma: reuse the existing tax panels and readable responsive forms. */
#reformaContent .panel { margin-top: 16px; padding: 20px; }
.reforma-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; align-items: end; }
.reforma-form label { display: grid; gap: 6px; }
.reforma-form input,.reforma-form select { width:100%; min-width:0; padding:9px; border:1px solid #cbd5ce; border-radius:7px; background:#fff; color:#183c2e; }
.reforma-form input[type=checkbox] { width:auto; justify-self:start; }
.reforma-wide { grid-column:1/-1; }
#reformaContent table { width:100%; border-collapse:collapse; }
#reformaContent th,#reformaContent td { padding:10px; text-align:left; border-bottom:1px solid #e0e7e2; }
#reformaContent small { display:block; }
#reformaError:not(:empty) { padding:14px; color:#842929; background:#fff0ed; border-radius:8px; }
#reformaSimulation { margin-top:18px; }
#reformaContent p { line-height:1.5; }

#reformaContent .reforma-status { padding:18px 20px; background:#eef7f1; border:1px solid #c5dfcf; border-radius:12px; }
#reformaContent .reforma-status nav { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
#reformaContent .reforma-period { display:grid; gap:6px; max-width:280px; }
#reformaContent .reforma-form label:has(input[type=checkbox]) { display:flex; align-items:center; gap:10px; grid-column:1/-1; }
#reformaContent h3 { margin:0 0 16px; }
#reformaContent button[type=submit] { align-self:end; justify-self:start; }
/* fonte: finance/closing.css */
/* Organização da área de Fechamento */
.closing-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.closing-navigation-panel {
  overflow: hidden;
}

.closing-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-fechamento-aba-painel][hidden] {
  display: none !important;
}

.closing-summary-columns,
.closing-audit-columns {
  margin-top: 16px;
}

.closing-summary-columns .finance-status-panel,
.closing-summary-columns .finance-pending-panel,
.closing-audit-columns .finance-status-panel,
.closing-audit-columns .finance-pending-panel {
  min-width: 0;
}

.closing-summary-columns .finance-status-row b,
.closing-audit-columns .finance-status-row b {
  text-align: right;
}

.closing-audit-columns .finance-status-row b small {
  color: var(--muted);
  display: block;
  font-size: 0.64rem;
  margin-top: 2px;
}

.closing-duplicate-status {
  padding: 0 18px 18px;
}

.closing-duplicate-alert {
  background: #fff1ef;
  border: 1px solid #edc0ba;
  border-radius: 8px;
  color: #8b2d24;
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 14px;
  text-align: center;
}

.closing-duplicate-alert strong {
  font-size: 0.82rem;
}

.closing-duplicate-alert span {
  font-size: 0.72rem;
  font-weight: 700;
}

.closing-duplicate-confirmed {
  background: #f2faf5;
  border: 1px solid #b8dcc4;
  border-radius: 8px;
  color: var(--brand-dark);
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 14px;
  text-align: center;
}

.closing-duplicate-confirmed strong {
  font-size: 0.82rem;
}

.closing-duplicate-confirmed span {
  font-size: 0.72rem;
  font-weight: 700;
}

.closing-notice-row.erro,
.closing-audit-row.erro {
  background: #fff1ef;
  border-color: #edc0ba;
}

.closing-notice-row.ok,
.closing-audit-row.ok {
  background: #f2faf5;
  border-color: #b8dcc4;
}

.closing-notice-row.ok > span:first-child,
.closing-audit-row.ok > span:first-child {
  background: #e3f3e8;
  color: var(--brand-mid);
}

.closing-notice-row.has-confirmation,
.closing-audit-row.has-confirmation {
  cursor: default;
}

.closing-audit-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.closing-audit-actions button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 7px 8px;
  white-space: nowrap;
}

.closing-audit-actions button:hover,
.closing-audit-actions button:focus-visible {
  background: #edf8f0;
  border-color: #b8dcc4;
  outline: none;
}

.closing-audit-actions button.confirm {
  background: #f2faf5;
  border-color: #b8dcc4;
}

.closing-audit-actions button.confirm.is-confirmed {
  background: transparent;
  color: var(--muted);
}

.closing-audit-equation {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 18px 12px;
  padding: 12px 14px;
}

.closing-audit-equation span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.closing-audit-equation b {
  color: var(--text);
  font-size: 0.76rem;
}

.closing-audit-equation strong {
  color: var(--brand-mid);
  font-size: 0.78rem;
}

.closing-audit-equation .closing-audit-break {
  flex-basis: 100%;
  height: 0;
}

.closing-audit-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 14px;
}

.closing-audit-row {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #eed8a7;
  border-radius: 7px;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

button.closing-audit-row {
  cursor: pointer;
}

.closing-audit-row > span:first-child {
  align-items: center;
  background: #f7e7bb;
  border-radius: 50%;
  color: #8d6200;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.closing-audit-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.closing-audit-row small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.closing-audit-row em {
  color: var(--brand-mid);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.closing-external-note {
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 18px;
  padding: 13px 0 17px;
}

.registry-count-pill.warning {
  background: #fff4d6;
  border-color: #ead08c;
  color: #8a5b00;
}

.registry-count-pill.danger {
  background: #fff1ef;
  border-color: #edc0ba;
  color: #a13227;
}

.closing-unit-guidance {
  background: #eef5ff;
  border: 1px solid #c8dcf5;
  border-radius: 7px;
  color: #285b8f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 9px 12px;
}

.closing-units-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 270px minmax(0, 1fr);
  margin-top: 14px;
  min-width: 0;
}

.closing-units-nav-panel,
.closing-unit-detail-panel {
  min-width: 0;
}

.closing-unit-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.closing-unit-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.closing-unit-button:hover {
  border-color: #8ebca0;
}

.closing-unit-button.active {
  background: #eef8f1;
  border-color: #9fcbae;
  color: var(--brand-mid);
}

.closing-unit-button span,
.closing-unit-button strong,
.closing-unit-button small {
  display: block;
  min-width: 0;
}

.closing-unit-button strong {
  font-size: 0.78rem;
}

.closing-unit-button small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  margin-top: 2px;
}

.closing-unit-button i {
  background: var(--brand-mid);
  border: 3px solid #dff0e4;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 14px;
  margin-left: 8px;
  width: 14px;
}

.closing-unit-select-native {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.closing-unit-detail-panel .closing-detail {
  padding-top: 14px;
}

@media (max-width: 1180px) {
  .closing-units-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .closing-units-layout,
  .closing-summary-columns,
  .closing-audit-columns {
    grid-template-columns: 1fr;
  }
  .closing-unit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .closing-tabs {
    display: flex;
    overflow-x: auto;
  }
  .closing-tabs button {
    flex: 0 0 auto;
    min-width: 132px;
  }
  .closing-unit-list {
    grid-template-columns: 1fr;
  }
  .closing-audit-row,
  .closing-notice-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .closing-audit-row em,
  .closing-notice-row em {
    grid-column: 2;
    justify-self: start;
  }
  .closing-audit-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Fechamento mensal orientado a decisão — v590 */
#fechamento [data-fechamento-aba-painel] {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.closing-readiness,
.closing-result-panel,
.closing-values-panel,
.closing-units-table-panel {
  min-width: 0;
}

.closing-readiness-box {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #c8dcf5;
  border-radius: 8px;
  color: #285b8f;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.closing-readiness-box.ready {
  background: #f2faf5;
  border-color: #b8dcc4;
  color: var(--brand-dark);
}

.closing-readiness-box.warning {
  background: #fffaf0;
  border-color: #ead7a8;
  color: #7b5705;
}

.closing-readiness-icon {
  align-items: center;
  background: #e3edf9;
  border-radius: 50%;
  color: #285b8f;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.closing-readiness-box.ready .closing-readiness-icon {
  background: #e3f3e8;
  color: var(--brand-mid);
}

.closing-readiness-box.warning .closing-readiness-icon {
  background: #f7e7bb;
  color: #8d6200;
}

.closing-readiness-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.closing-readiness-copy strong {
  font-size: 0.86rem;
}

.closing-readiness-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.closing-readiness-pill {
  background: rgba(255,255,255,0.55);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 5px 9px;
  white-space: nowrap;
}

.closing-result-panel {
  overflow: hidden;
}

.closing-result-equation,
.closing-financial-equation {
  align-items: stretch;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 2px 18px 10px;
}

.closing-result-step {
  align-content: center;
  display: grid;
  flex: 1 1 0;
  gap: 4px;
  min-width: 0;
  padding: 10px 6px;
}

.closing-result-step small,
.closing-result-step em {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.closing-result-step strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.closing-result-step.positive strong {
  color: var(--brand-mid);
}

.closing-result-step.negative strong {
  color: var(--danger);
}

.closing-result-step.final {
  background: #eef7fb;
  border-left: 4px solid #2f7dbd;
  border-radius: 7px;
  flex-grow: 1.15;
  padding-inline: 12px;
}

.closing-financial-equation .closing-result-step.final {
  background: #fffaf0;
  border-left-color: #8f6f18;
}

.closing-result-operator {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex: 0 0 18px;
  font-size: 0.86rem;
  justify-content: center;
}

.closing-explanation-strip {
  background: #eef5ff;
  border: 1px solid #c8dcf5;
  border-radius: 7px;
  color: #285b8f;
  font-size: 0.72rem;
  font-weight: 750;
  margin: 0 18px 14px;
  padding: 9px 11px;
}

.closing-summary-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
}

.closing-review-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-width: 0;
}

.closing-review-grid > .panel {
  min-width: 0;
}

.closing-checked-list,
.closing-origin-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.closing-empty-state {
  align-content: center;
  background: #f2faf5;
  border: 1px solid #b8dcc4;
  border-radius: 8px;
  color: var(--brand-dark);
  display: grid;
  gap: 4px;
  min-height: 106px;
  padding: 16px;
  text-align: center;
}

.closing-empty-state.neutral {
  background: #f7faf8;
  border-color: var(--line);
}

.closing-empty-state strong {
  font-size: 0.82rem;
}

.closing-empty-state span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.closing-origin-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.closing-origin-row:hover,
.closing-origin-row:focus-visible {
  border-color: #8ebca0;
  outline: none;
}

.closing-origin-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.closing-origin-copy strong {
  font-size: 0.8rem;
}

.closing-origin-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.closing-origin-row b {
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

.closing-origin-row em {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
  padding-left: 10px;
  white-space: nowrap;
}

.closing-origin-row i {
  color: var(--brand-mid);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.closing-units-table-panel {
  overflow: hidden;
}

.closing-units-table-wrap {
  min-width: 0;
  padding: 0 18px;
}

.closing-units-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.closing-units-table th {
  background: #f4f7f5;
  color: #5f6c64;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: left;
}

.closing-units-table th,
.closing-units-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  vertical-align: middle;
}

.closing-units-table th:first-child { width: 25%; }
.closing-units-table th:nth-child(2) { width: 14%; }
.closing-units-table th:nth-child(3) { width: 16%; }
.closing-units-table th:nth-child(4) { width: 15%; }
.closing-units-table th:nth-child(5) { width: 17%; }
.closing-units-table th:last-child { width: 13%; }

.closing-units-table th:not(:first-child),
.closing-units-table td:not(:first-child) {
  text-align: right;
}

.closing-units-table tbody tr.selected td {
  background: #f6fbf8;
}

.closing-units-table td > strong,
.closing-units-table td > small {
  display: block;
}

.closing-units-table td > strong {
  font-size: 0.78rem;
}

.closing-units-table td > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.closing-units-table td:not(:first-child) {
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.closing-units-table button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--brand-mid);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 7px 8px;
  white-space: nowrap;
}

.closing-units-table button:hover,
.closing-units-table button:focus-visible {
  background: #edf8f0;
  border-color: #b8dcc4;
  outline: none;
}

.closing-units-note {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin: 10px 18px 15px;
}

.closing-unit-detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .closing-result-equation {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .closing-result-equation .closing-result-step:first-child {
    grid-column: 1 / -1;
  }

  .closing-result-equation .closing-result-operator {
    grid-column: 1;
  }

  .closing-result-equation .closing-result-step:not(:first-child) {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .closing-review-grid {
    grid-template-columns: 1fr;
  }

  .closing-origin-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .closing-origin-row em,
  .closing-origin-row i {
    grid-column: 2;
    justify-self: start;
  }

  .closing-origin-row em {
    border-left: 0;
    padding-left: 0;
  }

  .closing-units-table th:nth-child(2),
  .closing-units-table td:nth-child(2),
  .closing-units-table th:nth-child(3),
  .closing-units-table td:nth-child(3) {
    display: none;
  }

  .closing-units-table th:first-child { width: 32%; }
  .closing-units-table th:nth-child(4) { width: 23%; }
  .closing-units-table th:nth-child(5) { width: 27%; }
  .closing-units-table th:last-child { width: 18%; }
}

@media (max-width: 680px) {
  .closing-readiness-box {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .closing-readiness-pill {
    grid-column: 2;
    justify-self: start;
  }

  .closing-financial-equation {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .closing-financial-equation .closing-result-step:first-child {
    grid-column: 1 / -1;
  }

  .closing-financial-equation .closing-result-operator {
    grid-column: 1;
  }

  .closing-financial-equation .closing-result-step:not(:first-child) {
    grid-column: 2;
  }

  .closing-origin-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .closing-origin-row b,
  .closing-origin-row em,
  .closing-origin-row i {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .closing-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-summary-actions button {
    width: 100%;
  }

  .closing-units-table th:nth-child(4),
  .closing-units-table td:nth-child(4) {
    display: none;
  }

  .closing-units-table th:first-child { width: 40%; }
  .closing-units-table th:nth-child(5) { width: 32%; }
  .closing-units-table th:last-child { width: 28%; }

  .closing-unit-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* fonte: dashboard/home-and-alerts.css */
/* Organização da área Início — v405 */
.dashboard-home-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dashboard-home-heading {
  align-items: center;
}

.dashboard-home-heading h2,
.dashboard-home-heading p {
  margin: 0;
}

.dashboard-home-heading p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 3px;
}

.dashboard-financial-panel {
  overflow: hidden;
}

.dashboard-financial-panel .dashboard-financial-summary {
  border-top: 1px solid var(--line);
}

.dashboard-reference-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-financial-mini {
  border-left-width: 4px;
}

.dashboard-financial-mini.dashboard-kpi-income {
  background: #f3faf6;
  border-left-color: var(--brand-mid);
}

.dashboard-financial-mini.dashboard-kpi-income strong {
  color: var(--brand-mid);
}

.dashboard-financial-mini.dashboard-kpi-expense {
  background: #fff7f5;
  border-left-color: var(--danger);
}

.dashboard-financial-mini.dashboard-kpi-expense strong {
  color: var(--danger);
}

.dashboard-financial-mini.dashboard-kpi-profit {
  background: #f3f8fd;
  border-left-color: var(--info);
}

.dashboard-financial-mini.dashboard-kpi-profit strong {
  color: var(--info);
}

.dashboard-financial-mini.dashboard-kpi-balance {
  background: #fffbef;
  border-left-color: #aa8213;
}

.dashboard-financial-mini.dashboard-kpi-balance strong {
  color: #8b690d;
}

.dashboard-quick-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
}

.dashboard-quick-actions .dashboard-block-title p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 3px 0 0;
}

.dashboard-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-quick-grid button {
  align-items: center;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 60px;
  padding: 10px 13px;
  text-align: left;
}

.dashboard-quick-grid button:hover {
  background: #eef8f2;
  border-color: #98c9a8;
  box-shadow: 0 4px 12px rgba(24, 77, 43, 0.08);
}

.dashboard-quick-grid button:focus-visible {
  outline: 3px solid rgba(31, 139, 74, 0.22);
  outline-offset: 2px;
}

.dashboard-quick-grid button > span {
  font-size: 1.08rem;
  grid-row: 1 / span 2;
}

.dashboard-quick-grid button > strong {
  font-size: 0.78rem;
}

.dashboard-quick-grid button > small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.dashboard-pending-row.dashboard-pending-ok {
  background: #f2faf5;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-pending-row.dashboard-pending-ok > span {
  background: #eaf7ef;
  border-color: #b9dec8;
  color: var(--brand-mid);
}

.dashboard-operation-panel {
  overflow: hidden;
}

.dashboard-operation-panel .dashboard-operation-kpis {
  border-top: 1px solid var(--line);
  padding: 16px 16px 10px;
}

.dashboard-operation-panel .dashboard-operation-kpis .kpi {
  background: #f8fbf9;
  box-shadow: none;
}

.dashboard-igpm-indicator {
  margin: 0 16px 16px;
}

/* Central dedicada de alertas — v518 */
.alerts-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.alerts-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alerts-operational-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 2px 2px 0;
}

.alerts-operational-heading h2 {
  font-size: 1rem;
  margin: 0;
}

.alerts-operational-heading p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 3px 0 0;
}

.alerts-summary-card {
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  z-index: 1;
}

.alerts-summary-card:hover {
  border-color: #abcbbb;
  box-shadow: 0 6px 18px rgba(21, 81, 51, 0.12);
  transform: translateY(-1px);
}

.alerts-summary-card:focus-visible {
  outline: 3px solid rgba(31, 132, 75, 0.24);
  outline-offset: 2px;
}

.alerts-summary-card.selected {
  background: #f4fbf7;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 2px rgba(31, 132, 75, 0.12), var(--shadow-soft);
}

.alerts-summary-card span,
.alerts-summary-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.alerts-summary-card strong {
  color: var(--brand-mid);
  font-size: 1.7rem;
  line-height: 1.05;
}

.alerts-summary-card em {
  color: var(--brand-mid);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 5px;
}

.alerts-summary-card em::after {
  content: "  ▾";
}

.alerts-summary-card.selected em::after {
  content: "  ▴";
}

.alerts-igpm-panel[hidden],
.alerts-list-panel[hidden] {
  display: none;
}

.alerts-summary-critical strong { color: var(--danger); }
.alerts-summary-warning strong { color: #c97900; }
.alerts-summary-critical { border-top: 4px solid var(--danger); }
.alerts-summary-warning { border-top: 4px solid #e89a1a; }

.alerts-igpm-indicator {
  margin: 0 16px 16px;
  min-height: 118px;
  padding: 20px;
}

.alerts-igpm-indicator strong {
  font-size: 2.35rem;
}

.alerts-dedicated-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.alert-list.alerts-dedicated-list li {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 9px;
  padding: 13px 14px;
}

.alert-list.alerts-dedicated-list li.alert-critical {
  background: #fff8f8;
  border-left-color: var(--danger);
}

.alert-list.alerts-dedicated-list li.alert-warning {
  background: #fffbf3;
  border-left-color: #e89a1a;
}


.alert-dedicated-heading {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.alert-status-icon {
  align-items: center;
  background: #e5f3eb;
  border-radius: 8px;
  color: var(--brand-mid) !important;
  display: inline-flex;
  font-size: 1rem !important;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.alert-critical .alert-status-icon {
  background: #fde7e7;
  color: var(--danger) !important;
}

.alert-warning .alert-status-icon {
  background: #fff0d8;
  color: #c97900 !important;
}

.alert-dedicated-title strong {
  color: var(--text) !important;
}

.alert-dedicated-title small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

#alertasResumo.alert-critical,
#alertasAtivosTotal.alert-critical {
  background: #fde7e7;
  color: var(--danger);
}

#alertasResumo.alert-warning,
#alertasAtivosTotal.alert-warning {
  background: #fff0d8;
  color: #a96200;
}

#alertasResumo.alert-clear,
#alertasIgpmStatus.alert-clear,
#alertasAtivosTotal.alert-clear {
  background: #e5f3eb;
  color: var(--brand-mid);
}

#alertasIgpmStatus.alert-critical {
  background: #fde7e7;
  color: var(--danger);
}

@media (max-width: 1100px) {
  .alerts-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .alerts-summary-grid { grid-template-columns: 1fr; }
  .alert-dedicated-heading { grid-template-columns: 34px minmax(0, 1fr); }
  .alert-dedicated-heading button { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .dashboard-reference-cards,
  .dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-home-heading {
    align-items: flex-start;
    display: grid;
  }

  .dashboard-reference-cards,
  .dashboard-quick-grid,
  .dashboard-operation-panel .dashboard-operation-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-pending-row,
  .dashboard-pending-row.dashboard-pending-ok {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
/* fonte: people/schedule.css */
/* Organização da área de Escala — v407 */
.scale-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.scale-navigation-panel {
  overflow: hidden;
}

.scale-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.scale-navigation-heading h2,
.scale-navigation-heading p {
  margin: 0;
}

.scale-navigation-heading h2 {
  font-size: 1.2rem;
}

.scale-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.scale-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scale-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.scale-tabs button:hover:not(:disabled) {
  background: #f6faf7;
  color: var(--text);
}

.scale-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

.scale-tabs button:disabled {
  color: #a7b0aa;
  cursor: not-allowed;
  opacity: 0.62;
}

[data-escala-aba-painel][hidden] {
  display: none !important;
}

.scale-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.scale-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 14px 15px;
}

.scale-summary-card span,
.scale-summary-card small,
.scale-summary-card strong {
  display: block;
}

.scale-summary-card span,
.scale-summary-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.scale-summary-card strong {
  color: var(--brand-mid);
  font-size: 1.28rem;
  margin: 7px 0 5px;
  overflow-wrap: anywhere;
}

.scale-summary-card #escalaResumoUnidadeSelect {
  width: 100%;
  min-height: 38px;
  margin: 5px 0 4px;
  border-color: #bdd5c5;
  background: #f7fbf8;
  color: var(--brand-mid);
  font-size: 1rem;
  font-weight: 850;
}

.scale-unit-summary-panel,
.scale-edit-panel,
.scale-conference-panel,
.hours-entry-panel {
  margin: 0;
}

.scale-edit-body {
  padding: 12px 14px 14px;
}

.scale-edit-body .hint-line {
  margin-bottom: 12px;
}

.scale-unit-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scale-unit-status-item {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 16px 18px;
}

.scale-unit-status-item:last-child {
  border-right: 0;
}

.scale-unit-status-item span,
.scale-unit-status-item strong,
.scale-unit-status-item small {
  display: block;
}

.scale-unit-status-item span,
.scale-unit-status-item small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
}

.scale-unit-status-item strong {
  color: var(--text);
  font-size: 1.08rem;
  margin: 5px 0 3px;
}

.scale-conference-stack {
  display: grid;
  gap: 16px;
}

.scale-review-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
}

.scale-review-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px 12px;
}

.scale-review-row.ok {
  background: #f2faf5;
  border-color: #b9dec6;
}

.scale-review-row.warning {
  background: #fff9ed;
  border-color: #eccb83;
}

.scale-review-icon {
  align-items: center;
  background: #dff3e6;
  border-radius: 999px;
  color: var(--brand-mid);
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.scale-review-row.warning .scale-review-icon {
  background: #fff0c9;
  color: #9a6500;
}

.scale-review-row strong,
.scale-review-row small {
  display: block;
}

.scale-review-row small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.scale-review-count {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.scale-hours-separate-note {
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 18px 16px;
  padding-top: 12px;
}

.hours-entry-panel .hours-entry-form {
  margin: 0;
  padding: 14px 18px;
}

@media (max-width: 1050px) {
  .scale-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scale-unit-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scale-unit-status-item:nth-child(2) {
    border-right: 0;
  }

  .scale-unit-status-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .scale-navigation-heading {
    align-items: flex-start;
  }

  .scale-tabs {
    display: flex;
    overflow-x: auto;
  }

  .scale-tabs button {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .scale-overview,
  .scale-unit-status-grid {
    grid-template-columns: 1fr;
  }

  .scale-unit-status-item,
  .scale-unit-status-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .scale-unit-status-item:last-child {
    border-bottom: 0;
  }

  .scale-review-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .scale-review-count {
    grid-column: 2;
  }
}

/* v879: reference, cell warnings and review before applying. */
.scale-continuity {margin:16px 0;padding:16px;background:#f3f6f5;border:1px solid #d7e3dd;border-radius:12px;}
.scale-continuity table {width:100%;font-size:.88rem;color:#52645b;}
.scale-continuity td,.scale-continuity th {padding:8px;vertical-align:top;}
.scale-cycle-badge {display:block;width:max-content;padding:2px 8px;border-radius:6px;font-weight:700;}
.scale-cycle-badge.cycle-a {background:#e0f0ff;color:#124d7d;}
.scale-cycle-badge.cycle-b {background:#f2e4ff;color:#643783;}
.scale-cell-warnings {display:block;color:#895900;font-weight:600;max-width:260px;white-space:normal;}
.scale-cell-attention {background:#fff8e4;}
.scale-person-highlight {box-shadow:inset 0 0 0 3px #17794f;background:#e1f4e8;}
.scale-person-button {border:1px solid transparent;background:transparent;color:inherit;border-radius:6px;padding:5px;cursor:pointer;text-align:left;}
.scale-person-button[aria-pressed=true] {border-color:#17794f;background:#e1f4e8;}
.mtr-pdf-suggestions {margin-top:12px;}
.mtr-pdf-suggestions .mtr-suggestion {display:block;padding:12px;white-space:normal;overflow-wrap:anywhere;}
/* fonte: shared/domain-components.css */
/* Organização das áreas de Horas extras e Férias — v408 */
.hours-hub-shell,
.vacation-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Homogeneização final dos módulos — v409 */
.module-navigation-panel {
  overflow: hidden;
}

.module-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.module-navigation-heading h2,
.module-navigation-heading p {
  margin: 0;
}

.module-navigation-heading h2 {
  font-size: 1.2rem;
}

.module-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.module-tabs {
  border-top: 1px solid var(--line);
  display: grid;
}

.module-tabs-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-tabs-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.module-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.module-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-outras-receitas-aba-painel][hidden],
[data-creditos-icms-aba-painel][hidden],
[data-cadastros-aba-painel][hidden] {
  display: none !important;
}

.module-review-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}

.module-review-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px 12px;
}

.module-review-row.ok {
  background: #f2faf5;
  border-color: #b9dec6;
}

.module-review-row.warning {
  background: #fff9ed;
  border-color: #eccb83;
}

.module-review-icon {
  align-items: center;
  background: #dff3e6;
  border-radius: 999px;
  color: var(--brand-mid);
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.module-review-row.warning .module-review-icon {
  background: #fff0c9;
  color: #9a6500;
}

.module-review-row strong,
.module-review-row small {
  display: block;
}

.module-review-row small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.module-review-count {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.reports-hub-shell,
.consumption-hub-shell,
.registrations-hub-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.reports-toolbar,
.consumption-data-panel,
.registrations-main-panel,
.registrations-tariff-panel,
.other-income-form-panel,
.other-income-list-panel,
.other-income-conference-panel,
.tax-credit-conference-panel {
  margin: 0;
}

.reports-native-type {
  display: none !important;
}

.consumption-tabs .unit-tab {
  border-radius: 0;
}

.consumption-tabs .unit-tab.active {
  background: transparent;
}

body.consumo-view-active .topbar {
  position: static;
}

.registrations-hub-shell > [data-cadastros-aba-painel] {
  display: grid;
  gap: 14px;
}

@media (max-width: 760px) {
  .module-navigation-heading {
    align-items: flex-start;
  }

  .module-tabs {
    display: flex;
    overflow-x: auto;
  }

  .module-tabs button {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .module-review-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .module-review-count {
    grid-column: 2;
  }
}

.hours-navigation-panel,
.vacation-navigation-panel {
  overflow: hidden;
}

.hours-navigation-heading,
.vacation-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.hours-navigation-heading h2,
.hours-navigation-heading p,
.vacation-navigation-heading h2,
.vacation-navigation-heading p {
  margin: 0;
}

.hours-navigation-heading h2,
.vacation-navigation-heading h2 {
  font-size: 1.2rem;
}

.hours-navigation-heading p,
.vacation-navigation-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 3px;
}

.hours-tabs,
.vacation-tabs {
  border-top: 1px solid var(--line);
  display: grid;
}

.hours-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vacation-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hours-tabs button,
.vacation-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.hours-tabs button:hover,
.vacation-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.hours-tabs button.active,
.vacation-tabs button.active {
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

[data-horas-aba-painel][hidden],
[data-ferias-aba-painel][hidden] {
  display: none !important;
}

.hours-kpi-grid {
  margin-bottom: 16px;
}

.hours-summary-panel,
.hours-list-panel,
.hours-conference-panel,
.vacation-units-heading-panel,
.vacation-registered-panel,
.vacation-import-panel,
.vacation-conference-panel {
  margin: 0;
}

.vacation-units-heading-panel {
  margin-bottom: 16px;
}

.hours-review-list,
.vacation-review-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}

.hours-review-row,
.vacation-review-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px 12px;
}

.hours-review-row.ok,
.vacation-review-row.ok {
  background: #f2faf5;
  border-color: #b9dec6;
}

.hours-review-row.warning,
.vacation-review-row.warning {
  background: #fff9ed;
  border-color: #eccb83;
}

.hours-review-icon,
.vacation-review-icon {
  align-items: center;
  background: #dff3e6;
  border-radius: 999px;
  color: var(--brand-mid);
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.hours-review-row.warning .hours-review-icon,
.vacation-review-row.warning .vacation-review-icon {
  background: #fff0c9;
  color: #9a6500;
}

.hours-review-row strong,
.hours-review-row small,
.vacation-review-row strong,
.vacation-review-row small {
  display: block;
}

.hours-review-row small,
.vacation-review-row small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.hours-review-count,
.vacation-review-count {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hours-navigation-heading,
  .vacation-navigation-heading {
    align-items: flex-start;
  }

  .hours-tabs,
  .vacation-tabs {
    display: flex;
    overflow-x: auto;
  }

  .hours-tabs button,
  .vacation-tabs button {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .hours-review-row,
  .vacation-review-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .hours-review-count,
  .vacation-review-count {
    grid-column: 2;
  }
}
/* fonte: control/auth-and-audit.css */
/* ===== Autenticação e perfis de acesso (v525) ===== */
body.auth-pending .app-shell,
body.auth-pending > .notice-stack,
body.auth-pending > .month-picker {
  visibility: hidden;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(235, 93, 45, 0.15), transparent 32%),
    linear-gradient(145deg, #f7f3ef 0%, #efe8e1 100%);
}

.auth-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid rgba(76, 49, 35, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(66, 41, 29, 0.16);
}

.auth-brand { display: grid; justify-items: center; gap: 10px; width: 100%; margin-bottom: 14px; text-align: center; }
.auth-logo { width: 96px; height: 114px; object-fit: contain; margin: 0; }
.auth-brand span { color: #a44c2c; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-heading h1 { margin: 0 0 8px; color: #33251f; font-size: 1.65rem; }
.auth-heading p { margin: 0 0 25px; color: #76675f; line-height: 1.5; }
.auth-form { display: grid; gap: 16px; }
.auth-form label, .user-create-form label { display: grid; gap: 7px; color: #5f4b40; font-size: 0.82rem; font-weight: 750; }
.auth-form input, .user-create-form input, .user-create-form select { min-height: 44px; width: 100%; border: 1px solid #d9cec7; border-radius: 10px; background: #fff; padding: 0 12px; color: #352820; font: inherit; }
.auth-form input:focus, .user-create-form input:focus, .user-create-form select:focus { border-color: #c65e35; outline: 3px solid rgba(198, 94, 53, 0.12); }
.auth-submit { min-height: 46px; margin-top: 3px; }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 9px; background: #fff0ed; color: #a33122; font-size: 0.84rem; }
.auth-local-note { display: block; margin-top: 22px; color: #95877f; text-align: center; }

.session-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 9px; margin-bottom: 12px; padding: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.07); }
.session-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d96338; color: #fff; font-weight: 850; }
.session-person { min-width: 0; display: grid; gap: 1px; }
.session-person strong { overflow: hidden; color: #fff; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.session-person small { color: rgba(255,255,255,.63); font-size: .68rem; }
.session-logout { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; font-size: 1rem; }
.session-logout:hover { background: rgba(255,255,255,.12); color: #fff; }

.users-page-shell { display: grid; gap: 18px; }
.user-create-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr .85fr auto; align-items: end; gap: 12px; }
.user-create-form .form-status { grid-column: 1 / -1; min-height: 0; margin: 0; }
.form-status.success { color: #247247; }
.form-status.error { color: #a33122; }
.users-table td:first-child strong, .users-table td:first-child small { display: block; }
.users-table td:first-child small { margin-top: 2px; color: #9a7563; font-size: .7rem; }
.user-blocked { opacity: .68; }
.role-badge, .status-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.role-badge.role-administrador { background: #f8e6dd; color: #984321; }
.role-badge.role-operador { background: #e6effb; color: #315f95; }
.role-badge.role-consulta { background: #eeeaf7; color: #65538a; }
.status-badge.active { background: #e5f4eb; color: #27704a; }
.status-badge.blocked { background: #f3e7e5; color: #9a4138; }
.user-actions { display: flex; flex-wrap: wrap; gap: 7px; }

body.role-operador [data-view="cadastros"],
body.role-operador [data-nav-group="financeiro"],
body.role-operador [data-nav-group="controle"],
body.role-operador #resetDados,
body.role-operador .import-backup-label,
body.role-consulta #resetDados,
body.role-consulta .import-backup-label,
body.role-consulta #salvarAlteracoes,
body.role-consulta #descartarAlteracoes { display: none !important; }

body.role-consulta form button[type="submit"],
body.role-consulta button[class*="danger"],
body.role-consulta [data-excluir],
body.role-consulta [data-editar] { opacity: .42; cursor: not-allowed; }

.access-toast { position: fixed; right: 22px; bottom: 22px; z-index: 11000; max-width: 360px; padding: 13px 17px; border-radius: 10px; background: #3b2c25; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.access-toast.visible { opacity: 1; transform: translateY(0); }
.notice-stack > .access-toast { position: static; max-width: none; margin: 0; box-shadow: none; overflow-wrap: anywhere; }

@media (max-width: 1100px) { .user-create-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .auth-card { padding: 28px 22px; } .user-create-form { grid-template-columns: 1fr; } }

/* ===== Banco central, auditoria e restauração (v526) ===== */
.central-sync-status { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid #d9e7dd; border-radius: 9px; background: #f3f9f5; color: #357052; font-size: .72rem; font-weight: 800; white-space: nowrap; cursor: default; }
.central-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #42a46d; box-shadow: 0 0 0 3px rgba(66,164,109,.12); }
.central-sync-status[data-mode="saving"] { border-color: #eadfbf; background: #fffaf0; color: #8a6a22; }
.central-sync-status[data-mode="saving"] .central-sync-dot { background: #d8a62b; animation: central-sync-pulse 1s infinite alternate; }
.central-sync-status[data-mode="error"] { border-color: #efc8c2; background: #fff3f1; color: #a33f32; }
.central-sync-status[data-mode="error"] { cursor: pointer; }
.central-sync-status[data-mode="error"] .central-sync-dot { background: #c94c3c; }
.central-sync-status[data-mode="warning"],
.central-sync-status[data-mode="locked"],
.central-sync-status[data-mode="conflict"],
.central-sync-status[data-backup-status="pending"] { border-color: #ead7a4; background: #fff8e8; color: #856317; }
.central-sync-status[data-mode="warning"] .central-sync-dot,
.central-sync-status[data-mode="locked"] .central-sync-dot,
.central-sync-status[data-mode="conflict"] .central-sync-dot,
.central-sync-status[data-backup-status="pending"] .central-sync-dot { background: #d89d18; }
.central-sync-status[data-backup-status="failed"] { border-color: #efc8c2; background: #fff3f1; color: #a33f32; }
.central-sync-status[data-backup-status="failed"] .central-sync-dot { background: #c94c3c; }
.recovery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -12px 0 20px;
  padding: 11px 14px;
  border: 1px solid #e6c98e;
  border-radius: 10px;
  background: #fff9ed;
  color: #6f5017;
}
.recovery-status[hidden] { display: none; }
.recovery-status-copy { display: grid; gap: 2px; min-width: 0; }
.recovery-status-copy strong { font-size: .82rem; }
.recovery-status-copy small { color: #8a6a2c; font-size: .74rem; line-height: 1.35; }
.recovery-download-button {
  flex: 0 0 auto;
  border-color: #e6c98e;
  color: #7c5a18;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .recovery-status { align-items: stretch; flex-direction: column; }
  .recovery-download-button { width: 100%; }
}
@keyframes central-sync-pulse { to { opacity: .35; } }

.audit-page-shell { display: grid; gap: 18px; }
.audit-backup-actions { display: flex; align-items: center; gap: 10px; }
.audit-filters { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; }
.audit-filters label { display: grid; gap: 6px; min-width: 190px; color: #70594d; font-size: .76rem; font-weight: 800; }
.audit-filters select { min-height: 39px; border: 1px solid #d9cec7; border-radius: 9px; background: #fff; padding: 0 10px; color: #40312a; }
.audit-table td { vertical-align: middle; }
.audit-table td:nth-child(1) { white-space: nowrap; }
.audit-table td:nth-child(4) { min-width: 260px; }
.audit-count { margin: 13px 0 0; color: #8a7a72; font-size: .76rem; }

.audit-detail-overlay { position: fixed; inset: 0; z-index: 9000; display: grid; justify-items: end; background: rgba(40,29,24,.42); backdrop-filter: blur(2px); }
.audit-detail-overlay[hidden] { display: none; }
.audit-detail-card { display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: min(720px, 94vw); height: 100%; background: #f9f7f5; box-shadow: -18px 0 55px rgba(35,23,18,.22); }
.audit-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 24px 26px 18px; border-bottom: 1px solid #e5dcd6; background: #fff; }
.audit-detail-head small { display: block; margin-bottom: 6px; color: #967564; }
.audit-detail-head h2 { margin: 0; color: #3b2b24; font-size: 1.18rem; }
.audit-detail-changes { overflow-y: auto; padding: 20px 26px; }
.audit-change-item { margin-bottom: 12px; padding: 14px; border: 1px solid #e5dcd6; border-radius: 11px; background: #fff; }
.audit-change-item > strong { display: block; margin-bottom: 10px; color: #6e5141; font-size: .77rem; word-break: break-word; }
.audit-value-comparison { display: grid; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); align-items: center; gap: 8px; }
.audit-value-comparison > span { color: #a99284; text-align: center; }
.audit-value-comparison > div { min-width: 0; padding: 9px; border-radius: 8px; background: #f8f4f1; color: #493a32; font-size: .76rem; line-height: 1.45; overflow-wrap: anywhere; }
.audit-value-comparison small { display: block; margin-bottom: 4px; color: #9a7968; font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.audit-empty-value { color: #a18f85; }
.audit-detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 26px; border-top: 1px solid #e5dcd6; background: #fff; }
.audit-detail-footer p { margin: 0; color: #84736a; font-size: .74rem; }

.sync-conflict-screen { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 24px; background: rgba(41,28,22,.58); backdrop-filter: blur(4px); }
.sync-conflict-card { width: min(100%, 520px); padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.25); text-align: center; }
.sync-conflict-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 50%; background: #fff0d8; color: #a86c12; font-size: 1.5rem; font-weight: 900; }
.sync-conflict-card h2 { margin: 0 0 10px; color: #3f2e26; }
.sync-conflict-card p { margin: 0; color: #75655d; line-height: 1.55; }
.sync-conflict-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.central-update-banner { position: fixed; right: 20px; bottom: 20px; z-index: 8500; display: flex; align-items: center; gap: 18px; max-width: 560px; padding: 14px 15px 14px 18px; border: 1px solid #d7c9c0; border-radius: 12px; background: #fff; box-shadow: 0 15px 40px rgba(58,38,29,.18); }
.central-update-banner div { display: grid; gap: 2px; }
.central-update-banner strong { color: #4b382f; font-size: .82rem; }
.central-update-banner span { color: #806e64; font-size: .72rem; }

@media (max-width: 1100px) { .central-sync-status { display: none; } .audit-filters { flex-wrap: wrap; } }
@media (max-width: 650px) { .audit-intro-panel .panel-heading, .audit-detail-footer, .central-update-banner { align-items: stretch; flex-direction: column; } .audit-backup-actions, .sync-conflict-actions { flex-direction: column; } .audit-filters label { width: 100%; } .audit-value-comparison { grid-template-columns: 1fr; } .audit-value-comparison > span { transform: rotate(90deg); } }

/* Renovação no Início: preserva a aba e os formulários abertos. */
.session-renewal-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid #e9d4a6; border-radius: 10px; background: #fff9ed; color: #273b33; }
.session-renewal-banner > div:first-child { flex: 1 1 280px; min-width: 0; }
.session-renewal-banner span { display: block; margin-top: 4px; font-size: .85rem; }
.session-renewal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.session-renewal-actions .secondary-button { white-space: normal; }
@media print { .session-renewal-banner { display: none !important; } }
/* fonte: reports/client-closing.css */
/* Fechamentos operacionais por cliente — v545 */
.client-closing-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.client-closing-navigation-panel,
.client-closing-main-panel {
  overflow: hidden;
}

.client-closing-navigation-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.client-closing-navigation-heading h2,
.client-closing-navigation-heading p,
.client-closing-block-heading h3,
.client-closing-block-heading p,
.client-closing-table-heading h3,
.client-closing-table-heading p {
  margin: 0;
}

.client-closing-navigation-heading h2 {
  font-size: 1.2rem;
}

.client-closing-navigation-heading p,
.client-closing-block-heading p,
.client-closing-table-heading p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 3px;
}

.client-closing-client-tabs,
.client-closing-detail-tabs {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-closing-client-tabs button,
.client-closing-detail-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  padding: 13px 8px 11px;
}

.client-closing-client-tabs button:hover:not(:disabled),
.client-closing-detail-tabs button:hover {
  background: #f6faf7;
  color: var(--text);
}

.client-closing-client-tabs button.active,
.client-closing-detail-tabs button.active {
  background: var(--surface-strong);
  border-bottom-color: var(--brand-mid);
  color: var(--brand-mid);
}

.client-closing-client-tabs button:disabled {
  cursor: default;
  opacity: 0.56;
}

[data-fechamento-clientes-painel][hidden] {
  display: none !important;
}

.client-closing-heading {
  align-items: center;
  padding: 16px 18px;
}

.client-closing-heading-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.client-closing-heading-actions button {
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

.client-closing-overview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 14px 16px;
}

.client-closing-overview-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 86px;
  padding: 12px 13px;
}

.client-closing-overview-card.emphasis {
  border-left: 4px solid var(--brand-mid);
  padding-left: 10px;
}

.client-closing-overview-card.emphasis.result {
  background: #e7f5eb;
  border-color: #a9ceb6;
}

.client-closing-overview-card span,
.client-closing-overview-card small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.client-closing-overview-card strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.1;
  margin: 7px 0 5px;
}

.client-closing-detail-tabs {
  border-bottom: 1px solid var(--line);
}

.client-closing-summary-content {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding: 16px;
}

.client-closing-summary-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.client-closing-block-heading,
.client-closing-table-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 13px 14px;
}

.client-closing-block-heading {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.client-closing-block-heading h3,
.client-closing-table-heading h3 {
  font-size: 0.96rem;
}

.client-closing-block-heading > span,
.client-closing-table-heading > span {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.client-closing-table-heading > span.client {
  background: #e7f5eb;
  border-color: #a9ceb6;
  color: var(--brand-mid);
}

.client-closing-table-heading > span.partial {
  background: #fff5d9;
  border-color: #e8ca78;
  color: #8a6511;
}

.client-closing-table-heading > span.internal {
  background: #f5f2e8;
  border-color: #e3dcc5;
  color: #7a6829;
}

.client-closing-compact-table {
  overflow-x: auto;
}

.client-closing-compact-table table {
  border-collapse: collapse;
  font-size: 0.72rem;
  width: 100%;
}

.client-closing-compact-table th,
.client-closing-compact-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: right;
  white-space: nowrap;
}

.client-closing-compact-table th {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.client-closing-compact-table th:first-child,
.client-closing-compact-table td:first-child {
  text-align: left;
}

.client-closing-total-row td,
.client-closing-supplier-total td,
.client-closing-grand-total td {
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 850;
}

.client-closing-sum-row td:last-child {
  border-top: 2px solid var(--text);
}

.client-closing-stock-strip,
.client-closing-billing {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 11px 12px;
}

.client-closing-stock-strip span,
.client-closing-billing span {
  color: var(--muted);
  display: grid;
  font-size: 0.66rem;
  font-weight: 750;
  gap: 3px;
}

.client-closing-stock-strip strong,
.client-closing-billing strong {
  color: var(--text);
  font-size: 0.85rem;
}

.client-closing-table-content,
.client-closing-control-content,
.client-closing-vapor-content {
  padding: 8px 16px 16px;
}

.client-closing-control-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.client-closing-control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 14px;
}

.client-closing-control-title {
  align-items: center;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 14px;
}

.client-closing-control-title h3,
.client-closing-control-title p {
  margin: 0;
}

.client-closing-control-title h3 {
  font-size: 0.92rem;
}

.client-closing-control-title p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
}

.client-closing-control-title > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.client-closing-stock-equation {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 1.18fr);
  padding: 14px;
}

.client-closing-stock-equation > div {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 10px;
}

.client-closing-stock-equation > b {
  align-self: center;
  color: var(--muted);
  font-size: 1rem;
}

.client-closing-stock-equation span,
.client-closing-control-secondary span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 750;
}

.client-closing-stock-equation strong {
  font-size: 0.86rem;
  margin-top: 5px;
  white-space: nowrap;
}

.client-closing-stock-equation .result {
  background: #e7f5eb;
  border-color: #a9ceb6;
}

.client-closing-stock-equation .result strong {
  color: var(--brand-mid);
  font-size: 1rem;
}

.client-closing-nf-observation {
  background: #f1f8f3;
  border-left: 4px solid var(--brand-mid);
  display: grid;
  gap: 4px;
  margin: 0 14px 12px;
  padding: 11px 12px;
}

.client-closing-nf-observation.warning {
  background: #fff9eb;
  border-left-color: #c69222;
}

.client-closing-nf-observation span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
  text-transform: uppercase;
}

.client-closing-nf-observation strong {
  font-size: 0.82rem;
}

.client-closing-nf-observation strong > span {
  display: block;
}

.client-closing-nf-observation strong > span + span {
  margin-top: 3px;
}

.client-closing-nf-observation small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.client-closing-purchase-order {
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  margin: 14px 14px 0;
  padding: 10px 11px;
}

.client-closing-purchase-order.pending {
  border-left: 4px solid #d3a43b;
}

.client-closing-purchase-order.filled {
  border-left: 4px solid var(--brand);
}

.client-closing-purchase-order > span {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 850;
}

.client-closing-purchase-order input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 9px;
  text-transform: uppercase;
}

.client-closing-purchase-order input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 122, 69, 0.12);
  outline: 0;
}

.client-closing-purchase-order small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  grid-column: 1 / -1;
}

.client-closing-control-secondary {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 14px;
}

.client-closing-control-secondary span {
  display: grid;
  gap: 3px;
}

.client-closing-control-secondary strong {
  color: var(--text);
  font-size: 0.78rem;
}

.client-closing-index-result {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 14px 0;
}

.client-closing-index-result > div {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
}

.client-closing-index-result > div:last-child {
  border-left: 4px solid var(--brand);
}

.client-closing-index-result span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.client-closing-index-result strong {
  color: var(--text);
  font-size: 0.9rem;
}

.client-closing-index-result small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
}

.client-closing-cost-card {
  grid-column: 1 / -1;
}

.client-closing-cost-breakdown {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 12px 14px 0;
}

.client-closing-cost-breakdown > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

.client-closing-cost-breakdown span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
}

.client-closing-cost-breakdown strong {
  color: var(--text);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.client-closing-cost-breakdown small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.client-closing-vapor-summary {
  margin-top: 12px;
  width: 100%;
}

.client-closing-vapor-summary .client-closing-compact-table {
  overflow-x: visible;
}

.client-closing-vapor-summary table {
  min-width: 0;
  table-layout: fixed;
}

.client-closing-vapor-summary th:last-child,
.client-closing-vapor-summary td:last-child {
  width: 180px;
}

.client-closing-notes-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 610px;
  overflow: auto;
}

.client-closing-notes-table table {
  min-width: 850px;
}

.client-closing-notes-table th {
  background: var(--surface-strong);
  position: sticky;
  top: 0;
  z-index: 1;
}

.client-closing-notes-table th,
.client-closing-notes-table td {
  font-size: 0.7rem;
  padding: 8px 10px;
  white-space: nowrap;
}

.client-closing-notes-table th:nth-child(n+4),
.client-closing-notes-table td:nth-child(n+4) {
  text-align: right;
}

.client-closing-notes-table .closing-weight-real-cell {
  text-align: right !important;
}

.client-closing-supplier-total td,
.client-closing-grand-total td {
  border-top: 1px solid #cbdad0;
}

.client-closing-meter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-closing-meter-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.client-closing-meter-card > span {
  color: var(--brand-mid);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.client-closing-meter-card h3 {
  font-size: 0.96rem;
  margin: 5px 0 13px;
}

.client-closing-meter-card dl,
.client-closing-meter-card dl div {
  margin: 0;
}

.client-closing-meter-card dl div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.client-closing-meter-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.client-closing-meter-card dd {
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0;
}

.client-closing-meter-card dl div.adjustment {
  padding: 5px 0;
}

.client-closing-meter-adjustment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  height: 32px;
  padding: 0 8px;
  text-align: right;
  width: 96px;
}

.client-closing-meter-adjustment:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 122, 69, 0.12);
  outline: 0;
}

.client-closing-meter-adjustment:disabled {
  background: var(--surface-alt);
  color: var(--muted);
  cursor: not-allowed;
}

.client-closing-vapor-billing {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
}

.client-closing-vapor-billing > div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
}

.client-closing-vapor-billing > div + div {
  border-left: 1px solid var(--line);
}

.client-closing-vapor-billing span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.client-closing-vapor-billing strong {
  font-size: 1rem;
}

.client-closing-vapor-billing .highlight {
  background: var(--surface-strong);
}

.client-closing-footer {
  align-items: center;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 16px;
}

.aroma-closing-settings {
  align-items: end;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(170px, 1.35fr);
  margin-bottom: 12px;
  padding: 10px 12px;
}

.aroma-closing-settings label,
.aroma-closing-observations label {
  color: var(--muted);
  display: grid;
  font-size: 0.62rem;
  font-weight: 800;
  gap: 4px;
}

.aroma-closing-settings input,
.aroma-closing-observations input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 750;
  height: 32px;
  padding: 0 8px;
}

.aroma-closing-settings input:focus,
.aroma-closing-observations input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 122, 69, 0.12);
  outline: 0;
}

.aroma-closing-settings > small {
  align-self: center;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.35;
}

.biobrotas-closing-settings {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(170px, 1.25fr);
}

.biobrotas-control-grid {
  grid-template-columns: minmax(0, 1fr);
}

.biobrotas-stock-section {
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
}

.biobrotas-stock-section > strong {
  display: block;
  font-size: 0.74rem;
  padding: 0 14px;
}

.biobrotas-stock-section .client-closing-stock-equation {
  padding-top: 9px;
}

.aroma-closing-service-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.aroma-closing-meter-table table {
  min-width: 630px;
}

.aroma-closing-meter-table .client-closing-meter-adjustment {
  height: 29px;
  width: 76px;
}

.aroma-closing-billing small {
  color: var(--muted);
  display: block;
  font-size: 0.59rem;
  font-weight: 700;
}

.aroma-closing-indicators {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
}

.aroma-closing-indicators span {
  color: var(--muted);
  display: grid;
  font-size: 0.62rem;
  font-weight: 750;
  gap: 3px;
  padding: 9px 12px;
}

.aroma-closing-indicators span + span {
  border-left: 1px solid var(--line);
}

.aroma-closing-indicators strong {
  color: var(--text);
  font-size: 0.79rem;
}

.aroma-closing-observations {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.rich-closing-observation {
  grid-template-columns: minmax(0, 1fr);
}

.aroma-index-basis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 14px 0;
}

.aroma-index-basis > div {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.aroma-index-basis span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.aroma-index-basis strong {
  font-size: 0.78rem;
}

.aroma-provisional-note {
  background: #fff9eb;
  border-left: 4px solid #c69222;
  color: #6c571e;
  font-size: 0.63rem;
  font-weight: 750;
  line-height: 1.4;
  margin: 12px 14px 0;
  padding: 9px 10px;
}

.aroma-notes-group + .aroma-notes-group {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.aroma-no-nf {
  color: #8a6511;
  font-size: 0.62rem;
  font-weight: 850;
}

.client-closing-notes-table .aroma-no-nf-row td {
  background: #fff9eb;
}

.aroma-notes-overall {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 20px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
}

.aroma-notes-overall strong {
  font-size: 0.88rem;
}

#fechamentoClientesStatus {
  color: var(--brand-mid);
}

#fechamentoClientesStatus.warning {
  color: #9a6c13;
}

body.closing-print-preview-open {
  overflow: hidden;
}

.closing-print-preview[hidden] {
  display: none;
}

.closing-print-preview {
  display: grid;
  inset: 0;
  padding: 24px;
  place-items: center;
  position: fixed;
  z-index: 2500;
}

.closing-print-preview-backdrop {
  background: rgba(20, 32, 25, 0.68);
  inset: 0;
  position: absolute;
}

.closing-print-preview-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(17, 36, 24, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(92vh, 940px);
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(96vw, 980px);
  z-index: 1;
}

.closing-print-preview-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px;
}

.closing-print-preview-header span {
  color: var(--brand-mid);
  display: block;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.closing-print-preview-header h2 {
  font-size: 1rem;
  margin: 3px 0 0;
}

.closing-print-preview-header p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  margin: 3px 0 0;
}

.closing-print-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.closing-print-preview-actions button {
  font-size: 0.7rem;
  min-height: 38px;
  padding: 0 13px;
}

.closing-print-preview-stage {
  background: #dfe7e1;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
}

.closing-print-preview-stage iframe {
  background: #e7ece8;
  border: 1px solid #c4d0c7;
  border-radius: 6px;
  height: 100%;
  width: 100%;
}

@media (max-width: 1180px) {
  .client-closing-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .client-closing-summary-content {
    grid-template-columns: 1fr;
  }
  .client-closing-control-grid {
    grid-template-columns: 1fr;
  }
  .aroma-closing-service-grid {
    grid-template-columns: 1fr;
  }
  .aroma-closing-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aroma-closing-settings > small {
    grid-column: 1 / -1;
  }
  .client-closing-stock-equation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-closing-stock-equation > b {
    display: none;
  }
}

@media (max-width: 860px) {
  .client-closing-overview,
  .client-closing-meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-closing-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-closing-heading-actions {
    flex-wrap: wrap;
  }
  .aroma-closing-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .closing-print-preview {
    padding: 8px;
  }
  .closing-print-preview-dialog {
    height: 96vh;
    width: 100%;
  }
  .closing-print-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .closing-print-preview-actions,
  .closing-print-preview-actions button {
    width: 100%;
  }
  .client-closing-navigation-heading,
  .client-closing-table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-closing-client-tabs,
  .client-closing-detail-tabs {
    display: flex;
    overflow-x: auto;
  }
  .client-closing-client-tabs button,
  .client-closing-detail-tabs button {
    flex: 1 0 112px;
  }
  .client-closing-overview,
  .client-closing-meter-grid,
  .client-closing-vapor-billing,
  .client-closing-stock-strip,
  .client-closing-billing,
  .client-closing-control-secondary,
  .client-closing-index-result,
  .client-closing-cost-breakdown,
  .client-closing-purchase-order,
  .client-closing-stock-equation {
    grid-template-columns: 1fr;
  }
  .aroma-closing-settings,
  .aroma-closing-indicators,
  .aroma-closing-observations,
  .aroma-index-basis {
    grid-template-columns: 1fr;
  }
  .aroma-closing-indicators span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .client-closing-stock-equation > b {
    display: none;
  }
  .client-closing-heading-actions,
  .client-closing-heading-actions button {
    width: 100%;
  }
  .client-closing-vapor-billing > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .client-closing-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.client-closing-notes-table .client-closing-grand-total > td:not(:first-child) {
  border-top: 3px double #68756d;
}
.closing-manual-summary {
  margin-top: 20px;
}
.closing-manual-summary .client-closing-sum-row > td:last-child {
  border-top: 3px double #68756d;
}
/* fonte: finance/period-lock.css */
/* Fechamento administrativo da competência */
.period-lock-banner[hidden],
.period-snapshot-status[hidden],
.period-close-modal[hidden],
.period-close-fields[hidden],
.closing-period-actions[hidden] {
  display: none !important;
}

.period-lock-banner {
  align-items: center;
  background: linear-gradient(135deg, #163b2a, #1d5138);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(17, 56, 37, 0.18);
  color: #fff;
  display: flex;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 14px;
}

.period-lock-banner-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 1.05rem;
  height: 36px;
  justify-content: center;
}

.period-lock-banner-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.period-lock-banner-copy strong {
  font-size: 0.84rem;
}

.period-lock-banner-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.4;
}

.period-lock-banner .ghost-light-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  flex: 0 0 auto;
  white-space: nowrap;
}

.period-lock-banner .ghost-light-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.period-lock-banner .ghost-light-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.period-snapshot-status {
  align-items: center;
  background: #edf6f0;
  border: 1px solid #c9dfd0;
  border-radius: 9px;
  color: #245b3e;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: -4px 0 14px;
  padding: 10px 13px;
}

.period-snapshot-status > span:first-child {
  font-size: 1rem;
}

.period-snapshot-status > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.period-snapshot-status strong {
  font-size: 0.73rem;
}

.period-snapshot-status small {
  color: #5c7365;
  font-size: 0.64rem;
  line-height: 1.4;
}

.period-snapshot-status.is-pending {
  background: #eef5fb;
  border-color: #c9dceb;
  color: #245d87;
}

.period-snapshot-status.is-error {
  background: #fff4f1;
  border-color: #efc9c2;
  color: #9a3328;
}

.period-snapshot-status.is-error small {
  color: #805c56;
}

body.period-snapshot-pending .view.active-view:not(#ajudaManuais),
body.period-snapshot-error .view.active-view:not(#ajudaManuais) {
  min-height: 360px;
  position: relative;
}

body.period-snapshot-pending .view.active-view:not(#ajudaManuais)::after,
body.period-snapshot-error .view.active-view:not(#ajudaManuais)::after {
  align-items: center;
  background: rgba(244, 245, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  content: "Validando a fotografia oficial do fechamento…";
  display: flex;
  font-size: 0.76rem;
  font-weight: 750;
  inset: 0;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 360px;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 240;
}

body.period-snapshot-error .view.active-view:not(#ajudaManuais)::after {
  content: "Valores ocultos: o snapshot protegido precisa ser recuperado ou a competência deve ser reaberta.";
}

body.period-locked .topbar-period {
  color: #1b5438;
}

body.period-locked .topbar-period::before {
  content: "🔒";
  font-size: 0.72rem;
}

body.period-locked .view.active-view:not(#usuarios):not(#historico):not(#ajudaManuais) form :is(input, select, textarea),
body.period-locked .view.active-view:not(#usuarios):not(#historico):not(#ajudaManuais) input[type="file"] {
  cursor: not-allowed;
}
/* fonte: control/help.css */
/* Central de ajuda e manuais — consulta local, sem alterar o estado do sistema. */
.nav-help {
  border-top: 1px solid rgba(22, 88, 55, 0.12);
  margin-top: 10px;
  padding-top: 10px;
}

.nav-help .nav-item {
  font-weight: 760;
}

.manual-topbar-actions {
  align-items: center;
  display: none;
  gap: 10px;
}

.manual-topbar-version,
.manual-version-pill {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #cce2d3;
  border-radius: 999px;
  color: #21603f;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 35px;
  padding: 7px 12px;
  white-space: nowrap;
}

body.ajuda-manuais-view-active .manual-topbar-actions {
  display: flex;
}

body.ajuda-manuais-view-active .topbar-period,
body.ajuda-manuais-view-active #exportarFechamento,
body.ajuda-manuais-view-active .import-backup-label,
body.ajuda-manuais-view-active #salvarBackup,
body.ajuda-manuais-view-active #salvarAlteracoes:disabled,
body.ajuda-manuais-view-active #descartarAlteracoes:disabled,
body.ajuda-manuais-view-active #periodoBloqueioGlobal,
body.ajuda-manuais-view-active #periodoSnapshotStatus {
  display: none !important;
}

.help-manuals-view {
  background:
    radial-gradient(circle at 92% 4%, rgba(42, 139, 86, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbf9 0%, #f4f7f5 100%);
  min-height: calc(100vh - 116px);
  padding: 26px;
}

.manual-library-shell {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1440px;
}

.manual-library-heading,
.manual-search-panel,
.manual-card,
.manual-viewer {
  border-color: #d7e4db;
  box-shadow: 0 8px 26px rgba(25, 66, 44, 0.06);
}

.manual-library-heading {
  overflow: hidden;
  padding: 24px 26px;
  position: relative;
}

.manual-library-heading::before {
  background: linear-gradient(90deg, #16834c, #50aa73);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.manual-library-heading .panel-heading {
  margin-bottom: 18px;
}

.manual-eyebrow,
.manual-card-volume {
  color: #268255;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.manual-library-heading h2 {
  color: #163c29;
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin: 0 0 5px;
}

.manual-safety-note {
  align-items: flex-start;
  background: #f1f8f4;
  border: 1px solid #d4e8db;
  border-radius: 10px;
  color: #315a43;
  display: flex;
  gap: 11px;
  padding: 13px 15px;
}

.manual-safety-note > span {
  font-size: 1rem;
  line-height: 1.45;
}

.manual-safety-note p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.manual-search-panel {
  padding: 22px 24px;
}

.manual-search-panel .panel-heading {
  margin-bottom: 15px;
}

.manual-search-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, 1fr) minmax(205px, 250px) auto auto;
}

.manual-search-field {
  align-items: center;
  background: #fff;
  border: 1px solid #bcd5c4;
  border-radius: 9px;
  display: flex;
  min-height: 45px;
  overflow: hidden;
}

.manual-search-field:focus-within {
  border-color: #17834d;
  box-shadow: 0 0 0 3px rgba(23, 131, 77, 0.12);
}

.manual-search-icon {
  color: #24794d;
  font-size: 1.28rem;
  padding-left: 14px;
}

.manual-search-field input {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  color: #1e3327;
  font-size: 0.9rem;
  min-height: 43px;
  padding: 8px 13px 8px 10px;
  width: 100%;
}

.manual-search-scope {
  color: #567064;
  display: grid;
  font-size: 0.7rem;
  font-weight: 760;
  gap: 3px;
}

.manual-search-scope select {
  min-height: 45px;
}

.manual-search-controls > button {
  min-height: 45px;
}

.manual-search-status {
  color: #687b71;
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 12px;
}

.manual-search-status.is-error {
  color: #9b382f;
}

.manual-search-results {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

/* Central de ajuda: respostas por tarefa e ajuda contextual. */
body.ajuda-manuais-view-active #helpContextButton { display: none; }
.help-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #edf6f0; }
.help-context[hidden] { display: none; }
.help-context p { flex: 1; margin: 0; color: #254c36; }
.help-suggestions, .help-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.help-suggestions { margin-top: 14px; }
.help-suggestions button { background: #f5f8f6; border: 1px solid #d7e4db; border-radius: 24px; color: #315e44; padding: 8px 12px; font-size: .8rem; }
.help-suggestions button:hover { background: #e6f2eb; }
.help-practical-panel { padding: 24px; border: 1px solid #d7e4db; }
.help-tasks button { min-height: 42px; padding: 10px 17px; border: 1px solid #d2e1d7; background: white; border-radius: 10px; color: #345440; font-weight: 700; }
.help-tasks button[aria-pressed="true"] { background: #17663e; color: white; border-color: #17663e; }
.help-articles-status { color: #5a6e60; font-size: .84rem; margin: 18px 0 14px; }
.help-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.help-article { min-width: 0; border: 1px solid #d6e3db; border-radius: 14px; background: #fff; overflow: hidden; }
.help-article > summary { padding: 21px; cursor: pointer; list-style: none; display: grid; gap: 9px; }
.help-article > summary::-webkit-details-marker { display: none; }
.help-article > summary > strong { color: #153d28; font-size: 1.05rem; line-height: 1.4; }
.help-task-label { font-size: .7rem; font-weight: 800; color: #477057; text-transform: uppercase; letter-spacing: .06em; }
.help-answer { color: #4b6153; line-height: 1.6; font-size: .9rem; }
.help-expand { display: flex; justify-content: space-between; align-items: center; color: #17663e; font-weight: 700; font-size: .8rem; margin-top: 6px; }
.help-article[open] { border-color: #80ad90; box-shadow: 0 4px 18px #153d280a; }
.help-article[open] > summary .help-expand { display: none; }
.help-article-body { padding: 0 21px 21px; color: #344d3e; font-size: .9rem; line-height: 1.65; }
.help-article-body h3 { font-size: .92rem; margin: 0 0 10px; color: #1a422b; }
.help-article-body ol { margin: 0 0 16px; padding-left: 22px; }
.help-article-body li { padding-left: 4px; margin-bottom: 9px; }
.help-example { padding: 13px 16px; margin: 12px 0; border-radius: 10px; background: #f1f6f2; }
.help-example p { margin: 4px 0 0; }
.help-detail { border-top: 1px solid #e2eae5; padding-top: 12px; }
.help-detail summary { cursor: pointer; font-weight: 700; color: #315b40; min-height: 32px; }
.help-detail p { margin: 10px 0; }
.help-article-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.help-article-actions button { white-space: normal; text-align: left; }
.help-reviewed { margin: 14px 0 0; font-size: .72rem; color: #607366; }
.help-access-note { color: #607366; font-size: .8rem; }
.help-empty { grid-column: 1 / -1; padding: 20px; background: #f4f7f5; border-radius: 12px; color: #385441; }
#helpShowAll { margin-top: 18px; }
.help-pdf-heading { margin: 10px 0 0; }
.help-pdf-heading h2 { color: #254c36; margin: 0 0 6px; font-size: 1.1rem; }
.help-pdf-heading p { margin: 0; color: #607366; font-size: .88rem; }
#ajudaManuais :is(button, summary, input, select):focus-visible { outline: 3px solid #27865a; outline-offset: 3px; }
@media (max-width: 850px) {
  .help-articles { grid-template-columns: minmax(0, 1fr); }
  .help-practical-panel { padding: 16px; }
  .help-tasks button { flex: 1 1 auto; padding: 10px; }
  .help-article > summary { padding: 17px; }
  .help-article-body { padding: 0 17px 17px; }
  .help-context { align-items: flex-start; }
  .help-context p { flex-basis: 100%; }
}

.manual-search-result {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e4dc;
  border-radius: 9px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.manual-search-result:hover,
.manual-search-result:focus-visible {
  border-color: #75b68e;
  box-shadow: 0 7px 20px rgba(28, 91, 55, 0.09);
  outline: none;
  transform: translateY(-1px);
}

.manual-result-meta {
  align-items: center;
  color: #277a4e;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.manual-result-page {
  background: #edf7f1;
  border-radius: 999px;
  padding: 3px 7px;
}

.manual-search-result strong {
  color: #1b3928;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.manual-search-result p {
  color: #5c6d64;
  font-size: 0.78rem;
  line-height: 1.48;
  margin: 0;
}

.manual-result-open {
  color: #1c7c49;
  font-size: 1.2rem;
  font-weight: 800;
}

.manual-search-empty {
  background: #fafcfb;
  border: 1px dashed #cbdad0;
  border-radius: 9px;
  color: #5b7064;
  font-size: 0.8rem;
  padding: 18px;
  text-align: center;
}

.manual-cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-card {
  display: grid;
  gap: 17px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 25px;
  position: relative;
}

.manual-card::after {
  border-radius: 0 10px 10px 0;
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: 4px;
}

.manual-card-operational::after {
  background: #1e8b53;
}

.manual-card-rules::after {
  background: #2b6e8c;
}

.manual-card-icon {
  align-items: center;
  background: #edf7f1;
  border: 1px solid #d3e7da;
  border-radius: 12px;
  display: flex;
  font-size: 1.65rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.manual-card-rules .manual-card-icon {
  background: #eef5f8;
  border-color: #d4e4eb;
}

.manual-card h2 {
  color: #173a27;
  font-size: 1.15rem;
  margin: 0 0 7px;
}

.manual-card p {
  color: #5d6f65;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
}

.manual-card ul {
  color: #3f5b4b;
  display: grid;
  font-size: 0.77rem;
  gap: 5px;
  margin: 13px 0 0;
  padding-left: 18px;
}

.manual-card-footer {
  align-items: center;
  border-top: 1px solid #e0e9e3;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 15px;
}

.manual-card-footer > span {
  color: #6a7d72;
  font-size: 0.75rem;
}

.manual-card-footer > span strong {
  color: #254d36;
  font-size: 0.92rem;
}

.manual-viewer {
  margin: 0 auto;
  max-width: 1500px;
  overflow: hidden;
  padding: 0;
}

.manual-viewer-header {
  align-items: center;
  background: linear-gradient(135deg, #f9fcfa, #eff7f2);
  border-bottom: 1px solid #d7e4db;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 22px;
}

.manual-viewer-heading h2 {
  color: #153d29;
  font-size: 1.1rem;
  margin: 0 0 3px;
}

.manual-viewer-heading p {
  color: #607267;
  font-size: 0.75rem;
  margin: 0;
}

.manual-viewer-file-actions {
  display: flex;
  gap: 8px;
}

.manual-viewer-file-actions a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.manual-viewer-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dce6df;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 11px 16px;
}

.manual-viewer-toolbar button {
  min-height: 36px;
  padding: 7px 12px;
}

.manual-page-control {
  align-items: center;
  color: #53675c;
  display: flex;
  font-size: 0.74rem;
  font-weight: 750;
  gap: 6px;
}

.manual-page-control input {
  min-height: 36px;
  padding: 6px 7px;
  text-align: center;
  width: 64px;
}

.manual-toolbar-divider {
  background: #d8e3dc;
  height: 25px;
  margin: 0 3px;
  width: 1px;
}

.manual-zoom-button {
  font-size: 1.05rem;
  min-width: 38px;
}

.manual-zoom-label {
  color: #4e6257;
  font-size: 0.72rem;
  font-weight: 780;
  min-width: 48px;
  text-align: center;
}

.manual-viewer-status {
  background: #f3f8f5;
  border-bottom: 1px solid #dce7df;
  color: #547061;
  font-size: 0.75rem;
  padding: 9px 16px;
  text-align: center;
}

.manual-viewer-status[hidden] {
  display: none;
}

.manual-viewer-status.is-error {
  background: #fff3ef;
  color: #983d32;
}

.manual-canvas-wrap {
  align-items: flex-start;
  background:
    linear-gradient(45deg, rgba(31, 74, 49, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(31, 74, 49, 0.025) 25%, transparent 25%),
    #e9eeeb;
  background-size: 24px 24px;
  display: flex;
  justify-content: center;
  min-height: 680px;
  overflow: auto;
  padding: 28px;
}

#manualViewerCanvas {
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 38, 25, 0.18);
  display: block;
  max-width: none;
}

.manual-viewer-fallback {
  background: #fff7ed;
  border: 1px solid #f0d2ae;
  border-radius: 9px;
  color: #7a4e21;
  margin: 22px;
  padding: 18px;
  text-align: center;
}

.manual-viewer-fallback p {
  font-size: 0.8rem;
  margin: 5px 0 0;
}

.manual-viewer-fallback button {
  margin-top: 13px;
}

@media (max-width: 1120px) {
  .manual-search-controls {
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) auto;
  }

  #manualSearchClear {
    grid-column: 3;
  }

  .manual-cards-grid {
    grid-template-columns: 1fr;
  }

  .manual-viewer-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .manual-viewer-file-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .help-manuals-view {
    padding: 14px;
  }

  .manual-library-heading,
  .manual-search-panel,
  .manual-card {
    padding: 18px;
  }

  .manual-library-heading .panel-heading.split {
    align-items: flex-start;
    gap: 12px;
  }

  .manual-search-controls {
    grid-template-columns: 1fr;
  }

  #manualSearchClear {
    grid-column: auto;
  }

  .manual-card {
    grid-template-columns: 1fr;
  }

  .manual-card-icon {
    height: 44px;
    width: 44px;
  }

  .manual-viewer-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .manual-viewer-file-actions {
    grid-column: auto;
    justify-content: stretch;
  }

  .manual-viewer-file-actions a {
    flex: 1;
  }

  .manual-toolbar-divider {
    display: none;
  }

  .manual-canvas-wrap {
    min-height: 500px;
    padding: 12px;
  }
}
/* fonte: finance/period-close-dialog.css */
.closing-period-control {
  border-color: #d6e2da;
  overflow: hidden;
  padding: 0;
}

.closing-period-control-head {
  align-items: center;
  background: linear-gradient(135deg, #f8fbf9, #eef6f1);
  border-bottom: 1px solid #dce7df;
  display: grid;
  gap: 13px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.closing-period-control[data-period-state="closed"] {
  border-color: #b8d0c0;
  box-shadow: 0 8px 24px rgba(27, 77, 50, 0.1);
}

.closing-period-control[data-period-state="closed"] .closing-period-control-head {
  background: linear-gradient(135deg, #153d2a, #21593d);
  border-color: transparent;
  color: #fff;
}

.closing-period-control[data-period-state="reopened"] .closing-period-control-head {
  background: linear-gradient(135deg, #fff8ea, #fff3d7);
}

.closing-period-state-icon {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e5dc;
  border-radius: 10px;
  color: #276444;
  display: inline-flex;
  font-size: 1.15rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.closing-period-control[data-period-state="closed"] .closing-period-state-icon {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.closing-period-state-copy {
  min-width: 0;
}

.closing-period-state-copy > small {
  color: var(--brand-mid);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.closing-period-state-copy h2 {
  font-size: 1rem;
  margin: 0;
}

.closing-period-state-copy p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 4px 0 0;
}

.closing-period-control[data-period-state="closed"] .closing-period-state-copy > small,
.closing-period-control[data-period-state="closed"] .closing-period-state-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.closing-period-state-pill {
  background: #eaf4ed;
  border: 1px solid #cfe2d5;
  border-radius: 999px;
  color: #276444;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.closing-period-state-pill.is-closed {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.closing-period-state-pill.is-reopened {
  background: #fff1cb;
  border-color: #efd28b;
  color: #805a08;
}

.closing-period-control-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  padding: 18px 20px 20px;
}

.closing-period-checklist-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.closing-period-checklist-heading > div {
  display: grid;
  gap: 3px;
}

.closing-period-checklist-heading strong {
  font-size: 0.82rem;
}

.closing-period-checklist-heading small {
  color: var(--muted);
  font-size: 0.67rem;
}

.closing-period-checklist {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  max-height: 330px;
  overflow: auto;
}

.closing-period-check-item {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 9px 11px;
}

.closing-period-check-item + .closing-period-check-item {
  border-top: 1px solid var(--line);
}

.closing-period-check-icon {
  align-items: center;
  background: #e8f4ed;
  border-radius: 50%;
  color: #267047;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.closing-period-check-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.closing-period-check-copy strong {
  font-size: 0.72rem;
}

.closing-period-check-copy small {
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.4;
}

.closing-period-check-item > em {
  color: #2c704a;
  font-size: 0.59rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.closing-period-check-item.warning .closing-period-check-icon {
  background: #fff2d4;
  color: #916508;
}

.closing-period-check-item.warning > em {
  color: #8b620a;
}

.closing-period-check-item.blocking .closing-period-check-icon {
  background: #fde9e6;
  color: var(--danger);
}

.closing-period-check-item.blocking > em {
  color: var(--danger);
}

.closing-period-check-item.info .closing-period-check-icon {
  background: #e7f1fa;
  color: var(--info);
}

.closing-period-side {
  align-content: start;
  display: grid;
  gap: 10px;
}

.closing-period-history,
.closing-period-admin-note {
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.closing-period-history strong {
  font-size: 0.72rem;
}

.closing-period-history small,
.closing-period-admin-note {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.closing-period-actions {
  display: grid;
  gap: 8px;
}

.closing-period-actions button {
  min-height: 42px;
  width: 100%;
}

.closing-period-control[data-period-state="closed"] .closing-period-actions .secondary-button {
  border-color: #b9cec0;
  color: #225a3d;
}

body.period-close-modal-open {
  overflow: hidden;
}

.period-close-modal {
  align-items: center;
  background: rgba(16, 31, 22, 0.66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2800;
}

.period-close-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(10, 31, 18, 0.32);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 20px;
  width: min(620px, 100%);
}

.period-close-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 14px;
}

.period-close-head small {
  color: var(--brand-mid);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.period-close-head h2 {
  font-size: 1.1rem;
  margin: 3px 0 0;
}

.period-close-head p {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.period-close-summary {
  display: grid;
  gap: 9px;
}

.period-close-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-close-summary-grid > span {
  align-items: center;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.period-close-summary-grid strong {
  font-size: 1rem;
}

.period-close-summary-grid small {
  color: var(--muted);
  font-size: 0.62rem;
}

.period-close-summary-grid .has-error {
  background: #fff4f2;
  border-color: #f1cbc4;
  color: var(--danger);
}

.period-close-summary-grid .has-warning {
  background: #fff8e8;
  border-color: #eedcae;
  color: #87600b;
}

.period-close-summary-grid .is-ok {
  color: #276b47;
}

.period-close-warning-list {
  background: #fff9ec;
  border: 1px solid #eeddaa;
  border-radius: 9px;
  display: grid;
  max-height: 145px;
  overflow: auto;
}

.period-close-warning-list > span {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
}

.period-close-warning-list > span + span {
  border-top: 1px solid #f0e4c6;
}

.period-close-warning-list strong {
  color: #76530a;
  font-size: 0.67rem;
}

.period-close-warning-list small {
  color: #7a6b4b;
  font-size: 0.62rem;
  line-height: 1.4;
}

.period-close-summary-state {
  background: #eef7f1;
  border: 1px solid #d0e5d7;
  border-radius: 9px;
  display: grid;
  gap: 3px;
  padding: 11px;
}

.period-close-summary-state strong {
  color: #286847;
  font-size: 0.72rem;
}

.period-close-summary-state span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.period-close-summary-state.is-warning {
  background: #fff7e6;
  border-color: #ecd599;
}

.period-close-summary-state.is-warning strong {
  color: #815b0a;
}

.period-close-fields {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.period-close-fields > label:not(.period-close-accept) {
  color: #394840;
  display: grid;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 5px;
}

.period-close-fields input[type="text"],
.period-close-fields textarea {
  background: #fff;
  border: 1px solid #ccd7d0;
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  padding: 9px 10px;
  resize: vertical;
  width: 100%;
}

.period-close-fields input[type="text"]:focus,
.period-close-fields textarea:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.11);
  outline: 0;
}

.period-close-accept {
  align-items: flex-start;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #394840;
  cursor: pointer;
  display: grid;
  font-size: 0.68rem;
  font-weight: 650;
  gap: 9px;
  grid-template-columns: auto 1fr;
  line-height: 1.45;
  padding: 10px 11px;
}

.period-close-accept input {
  accent-color: var(--brand-mid);
  height: 16px;
  margin: 1px 0 0;
  width: 16px;
}

.period-close-status {
  background: #fff0ed;
  border: 1px solid #f0c5be;
  border-radius: 8px;
  color: #9f3125;
  font-size: 0.68rem;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 9px 11px;
}

.period-close-actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
}

.period-close-actions button {
  min-width: 130px;
}

@media (max-width: 880px) {
  .closing-period-control-body {
    grid-template-columns: 1fr;
  }

  .closing-period-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .closing-period-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .period-lock-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .period-lock-banner .ghost-light-button {
    margin-left: 48px;
    width: calc(100% - 48px);
  }

  .period-snapshot-status {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .period-snapshot-status button {
    grid-column: 2;
    justify-self: stretch;
  }

  .closing-period-control-head {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px;
  }

  .closing-period-state-pill {
    grid-column: 2;
    justify-self: start;
  }

  .closing-period-control-body {
    padding: 15px;
  }

  .closing-period-side,
  .closing-period-actions,
  .period-close-summary-grid {
    grid-template-columns: 1fr;
  }

  .closing-period-check-item {
    align-items: flex-start;
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .closing-period-check-item > em {
    grid-column: 2;
  }

  .period-close-modal {
    padding: 8px;
  }

  .period-close-card {
    border-radius: 10px;
    max-height: 96vh;
    padding: 15px;
  }

  .period-close-actions,
  .period-close-actions button {
    width: 100%;
  }
}
/* fonte: finance/overview.css */
/* v609 - cartões uniformes na Visão financeira */
#financeiro {
  --finance-card-background: #ffffff;
  --finance-card-border: #d9e3dc;
  --finance-card-radius: 10px;
  --finance-card-shadow: 0 1px 2px rgba(22, 48, 32, 0.06);
}

#financeiro .finance-quick-actions button,
#financeiro .finance-kpi-card,
#financeiro .provision-profit-strip article,
#financeiro .finance-status-row,
#financeiro .finance-pending-row,
#financeiro .finance-empty-state {
  background: var(--finance-card-background);
  border: 1px solid var(--finance-card-border);
  border-radius: var(--finance-card-radius);
  box-shadow: var(--finance-card-shadow);
}

#financeiro .finance-quick-actions button {
  border-left: 4px solid #a7b8ad;
  min-height: 82px;
  padding: 14px 16px;
}

#financeiro .finance-kpi-card,
#financeiro .provision-profit-strip article {
  align-content: start;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 126px;
  padding: 16px 18px;
}

#financeiro .provision-profit-strip {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

#financeiro .provision-profit-strip article {
  grid-column: span 2;
}

#financeiro .provision-profit-strip article:first-child {
  grid-column: 2 / span 2;
}

#financeiro .finance-kpi-card {
  border-left: 4px solid #2f7dbd;
}

#financeiro .finance-kpi-card.positive {
  border-left-color: var(--brand-mid);
}

#financeiro .finance-kpi-card.negative {
  border-left-color: var(--danger);
}

#financeiro .finance-kpi-card.balance,
#financeiro .finance-kpi-card.adjustment {
  border-left-color: #a67711;
}

#financeiro .finance-kpi-card.result {
  border-left-color: #2f7dbd;
}

#financeiro .finance-kpi-card span,
#financeiro .finance-kpi-card small,
#financeiro .provision-profit-strip span,
#financeiro .provision-profit-strip small {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#financeiro .finance-kpi-card strong,
#financeiro .provision-profit-strip strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 7px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#financeiro .finance-status-panel,
#financeiro .finance-pending-panel {
  min-width: 0;
  overflow: hidden;
}

#financeiro .finance-status-row,
#financeiro .finance-pending-row {
  min-height: 66px;
  padding: 11px 12px;
}

#financeiro .finance-status-row {
  border-left: 4px solid #c4d3ca;
}

#financeiro .finance-status-row.done {
  border-left-color: var(--brand-mid);
}

#financeiro .finance-pending-row {
  border-left: 4px solid #d5a337;
}

@media (max-width: 1180px) {
  #financeiro .provision-profit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #financeiro .provision-profit-strip article,
  #financeiro .provision-profit-strip article:first-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  #financeiro .provision-profit-strip {
    grid-template-columns: 1fr;
  }
}
/* fonte: people/payroll-details.css */
.payroll-employee-list {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.payroll-employee-row {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 12px;
}

.payroll-employee-row:last-child {
  border-bottom: 0;
}

.payroll-employee-primary {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns:
    minmax(150px, 1.35fr)
    minmax(145px, 1fr)
    minmax(145px, 1fr)
    minmax(105px, 0.72fr)
    auto;
}

.payroll-employee-primary.is-collapsible {
  grid-template-columns:
    minmax(180px, 1.35fr)
    minmax(145px, 1fr)
    minmax(165px, 1fr)
    minmax(105px, 0.72fr);
}

.payroll-employee-name,
.payroll-employee-main-value,
.payroll-employee-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payroll-employee-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 4px 0;
  text-align: left;
  width: 100%;
}

.payroll-employee-toggle-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payroll-pension-recipient {
  color: var(--danger) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.3;
  white-space: normal;
}

.payroll-employee-toggle-icon {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 1rem;
  height: 26px;
  justify-content: center;
  transition: transform 160ms ease;
  width: 26px;
}

.payroll-employee-toggle[aria-expanded="true"] .payroll-employee-toggle-icon {
  transform: rotate(180deg);
}

.payroll-employee-toggle:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(29, 122, 69, 0.2);
  outline-offset: 3px;
}

.payroll-employee-name strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.payroll-employee-name small,
.payroll-employee-main-value small,
.payroll-employee-status small,
.payroll-employee-breakdown dt {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
}

.payroll-employee-main-value strong,
.payroll-employee-status strong,
.payroll-employee-breakdown dd {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payroll-employee-main-value.is-paid {
  background: var(--surface-strong);
  border: 1px solid rgba(29, 122, 69, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
}

.payroll-employee-main-value.is-paid strong {
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.payroll-employee-breakdown {
  background: #f8fbf9;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 10px 0 0;
  padding: 9px 12px;
}

.payroll-employee-breakdown > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payroll-employee-breakdown dt,
.payroll-employee-breakdown dd {
  margin: 0;
}

.payroll-employee-details {
  display: grid;
  gap: 10px;
}

.payroll-employee-details[hidden] {
  display: none;
}

.payroll-employee-actions {
  display: flex;
  justify-content: flex-end;
}

.payroll-employee-actions .slim-button {
  font-size: 0.72rem;
  padding: 7px 9px;
}

.payroll-employee-primary .slim-button {
  font-size: 0.72rem;
  justify-self: end;
  padding: 7px 9px;
}

@media (max-width: 1180px) {
  .payroll-employee-primary {
    grid-template-columns: minmax(145px, 1.2fr) repeat(2, minmax(135px, 1fr)) minmax(90px, 0.7fr) auto;
  }

  .payroll-employee-primary.is-collapsible {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-employee-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .payroll-employee-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-employee-primary.is-collapsible {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-employee-name {
    grid-column: 1 / -1;
  }

  .payroll-employee-primary .slim-button {
    justify-self: start;
  }

  .payroll-employee-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* fonte: control/context-help.css */
.help-current-explanations { padding: 20px 24px; }
.help-current-explanations > summary { cursor: pointer; color: #254c36; font-weight: 750; }
.help-practical-panel[hidden], .help-current-explanations[hidden] { display: none; }
/* fonte: reports/periods.css */
/* Relatórios por competência: the same applied data is shown, printed and exported. */
.report-periods {
  min-height: 0;
  overflow: visible;
}

.report-periods .report-title-row {
  align-items: flex-start;
  gap: 12px;
}

.report-periods .report-title-row h1 {
  font-size: 1.3rem;
}

.report-periods .report-period-applied {
  padding: 10px 12px;
  border: 1px solid #d7e4dc;
  border-radius: 5px;
  background: #f4f8f5;
  overflow-wrap: anywhere;
}

.report-periods .report-period-applied strong {
  display: block;
  color: #1b5b3b;
  font-size: 0.72rem;
}

.report-periods .report-period-applied p,
.report-periods .report-period-status-detail {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.report-periods .report-period-status-detail {
  margin-top: 9px;
  color: #74500e;
}

.report-periods .report-period-kpis > div {
  display: grid;
  grid-template-rows: minmax(2.8em, auto) auto auto;
  align-content: start;
}
.report-periods .report-period-kpis > div > span { line-height: 1.4; }
.report-periods .report-period-kpis > div > strong { align-self: end; }
.report-periods .report-period-kpis strong .report-period-print-value { font: inherit; color: inherit; }
.report-periods .report-period-origin-action { display: block; margin-top: 5px; font-size: .62rem; white-space: normal; }
.report-periods .report-period-origin-action .report-period-drilldown { text-align: right; }
.report-periods .report-period-change small { white-space: normal; }
.report-periods .report-period-analysis .report-period-table .report-period-number { white-space: normal; }

.report-periods .report-period-kpis strong {
  color: #18623e;
}

.report-periods .report-period-kpis small {
  display: block;
  margin-top: 5px;
  color: #58695e;
  font-size: 0.63rem;
  line-height: 1.35;
}

.report-periods .report-period-expense-kpi {
  grid-template-columns: minmax(0, 1fr);
}

.report-periods .is-negative {
  color: #9b3029 !important;
}

.report-periods .is-negative .report-period-drilldown { color: inherit; }

.report-period-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.report-periods .report-period-table {
  margin: 0;
  min-width: 0;
  font-size: 0.7rem;
}

.report-periods .report-period-table th,
.report-periods .report-period-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.report-periods .report-period-table th {
  background: #edf5f0;
  color: #294f3b;
  font-size: 0.65rem;
  line-height: 1.3;
  text-transform: none;
}

.report-periods .report-period-table small {
  display: block;
  margin-top: 3px;
  color: #5a6960;
  font-size: 0.62rem;
  line-height: 1.4;
}

.report-periods .report-period-table .report-period-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-periods .report-period-table th:not(:first-child) {
  text-align: right;
}

.report-periods .report-period-months th:nth-child(2),
.report-periods .report-period-expenses th:nth-child(2),
.report-periods .report-period-expenses th:nth-child(3),
.report-periods .report-period-origins th:not(:last-child) {
  text-align: left;
}

.report-periods .report-period-total-row > * {
  background: #edf5f0;
  border-top: 3px double #577763;
  font-weight: 800;
}

.report-periods .report-period-note,
.report-periods .report-period-notes,
.report-periods .report-period-empty {
  color: #526159;
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.report-periods .report-period-notes {
  margin: 0;
  padding-left: 18px;
}

.report-periods .report-period-notes li + li {
  margin-top: 5px;
}

.report-period-notes + .report-period-ending { margin-top: 5px; }

.report-periods .report-period-drilldown {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #167247;
  font: inherit;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.report-periods .report-period-expense-action {
  display: block;
  margin-top: 5px;
  font-size: 0.63rem;
}

.report-periods .report-period-print-month,
.report-periods .report-period-print-value {
  display: none;
}

/* Print measurement is independent of the current desktop/phone viewport.
   This invisible clone exists only while preparePrint measures the cells. */
.report-periods.report-period-print-measure {
  position: fixed !important;
  display: block !important;
  left: -20000px !important;
  top: 0 !important;
  width: 190mm !important;
  min-width: 190mm !important;
  max-width: 190mm !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  font-size: 9pt !important;
}

.report-period-print-measure .report-period-table {
  display: table !important;
  width: 190mm !important;
  min-width: 0 !important;
  max-width: 190mm !important;
  table-layout: fixed !important;
  font-size: 9pt !important;
}

.report-period-print-measure .report-period-table th,
.report-period-print-measure .report-period-table td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 9pt !important;
}

.report-period-print-measure .report-period-table th { font-size: 9pt !important; }
.report-period-print-measure .report-period-table small { font-size: 9pt !important; }
.report-period-print-measure .report-print-cell { display: inline-block !important; width: 100%; vertical-align: top; box-sizing: border-box; padding: 2.1mm 1.6mm !important; border-bottom: 1px solid #e5eae7; }
.report-period-print-measure thead .report-print-cell { background: #edf5f0; }
.report-period-print-measure .report-period-total-row .report-print-cell { background: #edf5f0; border-top: 3px double #577763; }
.report-period-print-measure .report-period-drilldown,
.report-period-print-measure .report-period-origin-action { display: none !important; }
.report-period-print-measure .report-period-print-month,
.report-period-print-measure .report-period-print-value { display: inline !important; }

@media screen and (max-width: 700px) {
  .reports-preview:has(.report-periods) {
    padding: 8px;
  }

  .report-periods {
    padding: 16px 12px;
  }

  .report-periods .report-paper-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .report-periods .report-meta {
    justify-items: start;
  }

  .report-periods .report-meta strong {
    padding-left: 0;
  }

  .report-periods .report-title-row {
    display: block;
  }

  .report-periods .report-status-pill {
    display: inline-block;
    margin-top: 8px;
  }

  .report-periods .report-period-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-periods .report-period-table {
    min-width: 580px;
  }

  .report-periods .report-period-compact { min-width: 0; }
  .report-periods .report-period-responsive { min-width: 0; }
  .report-periods .report-period-responsive colgroup,
  .report-periods .report-period-responsive thead { display: none; }
  .report-periods .report-period-responsive,
  .report-periods .report-period-responsive tbody,
  .report-periods .report-period-responsive tr,
  .report-periods .report-period-responsive td { display: block; width: auto; }
  .report-periods .report-period-responsive tr { margin-bottom: 10px; border: 1px solid #d7e4dc; border-radius: 5px; overflow: hidden; }
  .report-periods .report-period-responsive td { border: 0; padding: 8px 10px; white-space: normal; }
  .report-periods .report-period-responsive td:first-child { background: #edf5f0; font-weight: 750; }
  .report-periods .report-period-responsive td:not(:first-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; border-top: 1px solid #e5eae7; }
  .report-periods .report-period-responsive td:not(:first-child)::before { content: attr(data-label); text-align: left; font-weight: 650; color: #526159; font-size: .7rem; }
  .report-periods .report-period-responsive .report-print-cell { min-width: 0; overflow-wrap: anywhere; }
  .report-periods .report-period-kpis > div { grid-template-rows: auto auto auto; }

  .report-periods .report-period-compact col:first-child { width: 52% !important; }
  .report-periods .report-period-compact col:last-child { width: 48% !important; }
}

@media screen and (max-width: 360px) {
  .report-periods .report-period-compact col:first-child { width: 42% !important; }
  .report-periods .report-period-compact col:last-child { width: 58% !important; }
}

@media print {
  body.report-print-mode .report-periods {
    font-size: 9pt;
    orphans: 3;
    widows: 3;
  }

  body.report-print-mode .report-periods .report-period-section,
  body.report-print-mode .report-periods .report-period-table-wrap,
  body.report-print-mode .report-periods .report-period-table {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.report-print-mode .report-periods .report-period-table {
    display: table;
    width: 190mm;
    min-width: 0 !important;
    max-width: 190mm;
    table-layout: fixed;
    font-size: 9pt;
  }

  body.report-print-mode .report-periods .report-period-table thead {
    display: table-header-group;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-table thead tr,
  body.report-print-mode .report-periods .report-period-table thead .report-print-cell {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-table tbody tr:first-child {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-table tfoot {
    display: table-row-group;
    break-before: avoid-page;
    page-break-before: avoid;
  }

  body.report-print-mode .report-periods .report-period-table tr,
  body.report-print-mode .report-periods .report-period-applied,
  body.report-print-mode .report-periods .report-period-note,
  body.report-print-mode .report-periods .report-period-notes li,
  body.report-print-mode .report-periods .report-period-status-detail,
  body.report-print-mode .report-periods .report-paper-footer {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-table th,
  body.report-print-mode .report-periods .report-period-table td {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    font-size: 9pt;
  }

  body.report-print-mode .report-periods .report-period-table th {
    font-size: 9pt;
  }

  body.report-print-mode .report-periods .report-period-table small {
    font-size: 9pt;
  }

  body.report-print-mode .report-periods .report-print-cell {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    box-sizing: border-box;
    padding: 2.1mm 1.6mm;
    border-bottom: 1px solid #e5eae7;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.report-print-mode .report-periods thead .report-print-cell {
    background: #edf5f0;
  }

  body.report-print-mode .report-periods .report-period-total-row .report-print-cell {
    background: #edf5f0;
    border-top: 3px double #577763;
  }

  body.report-print-mode .report-periods h2,
  body.report-print-mode .report-periods .report-paper-header,
  body.report-print-mode .report-periods .report-title-row {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-total-row,
  body.report-print-mode .report-periods .report-paper-footer {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-ending {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.report-print-mode .report-periods .report-period-drilldown,
  body.report-print-mode .report-periods .report-period-origin-action {
    display: none !important;
  }

  body.report-print-mode .report-periods .report-period-print-month,
  body.report-print-mode .report-periods .report-period-print-value {
    display: inline;
  }
}

/* Same physical A4 layout for native beforeprint and the hidden measurement.
   A compact variant changes spacing only, never the 9 pt reading size. */
.report-period-print-measure .report-paper-header { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 8px 20px !important; }
.report-period-print-measure .report-meta { justify-items: end !important; }
.report-period-print-measure .report-title-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; }
.report-period-print-measure .report-period-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.report-period-print-measure .report-period-expense-kpi { grid-template-columns: 1fr !important; }
.report-period-print-measure .report-period-kpis > div { grid-template-rows: minmax(2.8em, auto) auto auto !important; }
.report-period-print-measure .report-period-table colgroup { display: table-column-group !important; }
.report-period-print-measure .report-period-table col { display: table-column !important; }
.report-period-print-measure .report-period-table thead { display: table-header-group !important; }
.report-period-print-measure .report-period-table tbody { display: table-row-group !important; }
.report-period-print-measure .report-period-table tr { display: table-row !important; margin: 0 !important; border: 0 !important; }
.report-period-print-measure .report-period-table td,
.report-period-print-measure .report-period-table th { display: table-cell !important; width: auto !important; }
.report-period-print-measure .report-period-table td::before { display: none !important; }
/* Mobile cards emphasize their first cell. Native beforeprint still uses
   screen media, so that emphasis must not change the measured A4 wrapping. */
.report-period-print-measure .report-period-table td:first-child { font-weight: 400 !important; }
.report-period-print-measure .report-period-total-row td:first-child { font-weight: 800 !important; }
.report-period-print-measure .report-title-row p,
.report-period-print-measure .report-status-pill,
.report-period-print-measure .report-meta strong,
.report-period-print-measure .report-meta span,
.report-period-print-measure .report-brand span,
.report-period-print-measure .report-period-empty,
.report-period-print-measure .report-period-note,
.report-period-print-measure .report-period-notes,
.report-period-print-measure .report-period-applied p,
.report-period-print-measure .report-period-applied strong,
.report-period-print-measure .report-period-status-detail,
.report-period-print-measure .report-paper-footer,
.report-period-print-measure .report-period-kpis small,
.report-period-print-measure .report-period-kpis > div > span { font-size: 9pt !important; }
.report-period-print-measure .report-title-row h1 { font-size: 15pt !important; }
.report-period-print-measure .report-period-kpis strong { font-size: 14pt !important; }
.report-period-print-measure .report-period-table small { line-height: 1.4 !important; }
.report-period-print-measure .report-period-section { margin-top: 14px !important; }
.report-period-print-measure.report-period-print-compact .report-period-section { margin-top: 10px !important; }
.report-period-print-measure.report-period-print-compact .report-print-cell { padding-top: 1.6mm !important; padding-bottom: 1.6mm !important; }
@media print {
  body.report-print-mode .report-periods .report-title-row p,
  body.report-print-mode .report-periods .report-status-pill,
  body.report-print-mode .report-periods .report-meta strong,
  body.report-print-mode .report-periods .report-meta span,
  body.report-print-mode .report-periods .report-brand span,
  body.report-print-mode .report-periods .report-period-empty,
  body.report-print-mode .report-periods .report-period-note,
  body.report-print-mode .report-periods .report-period-notes,
  body.report-print-mode .report-periods .report-period-applied p,
  body.report-print-mode .report-periods .report-period-applied strong,
  body.report-print-mode .report-periods .report-period-status-detail,
  body.report-print-mode .report-periods .report-paper-footer,
  body.report-print-mode .report-periods .report-period-kpis small,
  body.report-print-mode .report-periods .report-period-kpis > div > span { font-size: 9pt; }
  body.report-print-mode .report-periods .report-title-row h1 { font-size: 15pt; }
  body.report-print-mode .report-periods .report-period-kpis strong { font-size: 14pt; }
  body.report-print-mode .report-period-print-compact .report-period-section { margin-top: 10px; }
  body.report-print-mode .report-period-print-compact .report-print-cell { padding-top: 1.6mm; padding-bottom: 1.6mm; }
}

.report-period-print-measure .report-period-screen-only,
.report-period-print-measure .report-period-table tr.report-period-screen-only { display: none !important; }
@media print {
  body.report-print-mode .report-periods .report-period-screen-only { display: none !important; }
}

@media print {
  body.report-print-mode .report-periods .report-period-flow-note { break-inside: auto !important; page-break-inside: auto !important; }
}
@media print {
  body.report-print-mode .report-periods .report-period-print-leading {
    display: block;
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
}
@media print {
  body.report-print-mode .report-periods .report-period-print-tail {
    display: inline-block !important;
    vertical-align: top;
    width: 100%;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
}
@media screen and (max-width: 700px) {
  .report-periods .report-period-responsive.mobile-scroll-table { min-width: 0 !important; table-layout: fixed !important; }
  .report-periods .report-period-responsive .mobile-table-key { position: static; min-width: 0; max-width: none; box-shadow: none; }
  .report-periods .mobile-table-hint:has(+ .report-period-table-wrap > .report-period-responsive) { display: none; }
}
.report-period-print-measure .mobile-table-hint { display: none !important; }
@media print { body.report-print-mode .report-periods .mobile-table-hint { display: none !important; } }

/* The executive summary retains 9 pt type; only whitespace is shortened. */
.report-period-print-measure.report-period-summary .report-print-cell { padding-top: 1.3mm !important; padding-bottom: 1.3mm !important; }
.report-period-print-measure.report-period-summary .report-period-kpis > div { grid-template-rows: minmax(2em, auto) auto !important; }
@media print {
  body.report-print-mode .report-period-summary .report-print-cell { padding-top: 1.3mm; padding-bottom: 1.3mm; }
  body.report-print-mode .report-period-summary .report-period-kpis > div { grid-template-rows: minmax(2em, auto) auto; }
}

/* Small comparisons stay together; long tables still paginate by whole rows. */
@media print {
  body.report-print-mode .report-periods .report-period-analysis-unit-comparison,
  body.report-print-mode .report-periods .report-period-analysis-operating-effects,
  body.report-print-mode .report-periods .report-period-analysis-biomass,
  body.report-print-mode .report-periods .report-period-analysis-biomass-index {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
}

/* The same paired cards are used on screen and A4. Pair boundaries are the
   only forced atomic blocks; long reports keep their normal pagination. */
.report-periods .report-profit-explanation { font-size: .82rem; line-height: 1.55; }
.report-periods .report-comparison-pair { display: flex; gap: 12px; margin: 12px 0; align-items: stretch; }
.report-periods .report-comparison-unit { display: grid; grid-template-rows: auto auto 1fr; flex: 1 1 0; min-width: 0; border: 1px solid #d7e4dc; border-radius: 6px; overflow: hidden; }
.report-periods .report-comparison-unit h3 { margin: 0; padding: 10px; min-height: 40px; box-sizing: border-box; background: #edf5f0; font-size: .82rem; }
.report-periods .report-comparison-unit table { table-layout: fixed; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0; font-size: .7rem; }
.report-periods .report-comparison-unit th, .report-periods .report-comparison-unit td { padding: 7px 5px; vertical-align: top; }
.report-periods .report-comparison-unit td, .report-periods .report-comparison-unit th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.report-periods .report-comparison-unit td { white-space: nowrap; }
.report-periods .report-comparison-unit thead th { white-space: normal; overflow-wrap: anywhere; height: 2.8em; vertical-align: middle; }
.report-periods .report-comparison-unit p { padding: 10px; margin: 0; font-size: .7rem; background: #f5faf7; line-height: 1.45; }
.report-periods .report-comparison-unit p span { display: block; margin-top: 5px; }
.report-periods .report-period-comparison-table .report-period-number { white-space: nowrap; }
.report-periods .report-period-comparison-table .report-period-change small { white-space: normal; font-size: .65rem; }
.report-periods .report-period-origin-action .report-period-drilldown { text-align: left; font-weight: 500; }
@media screen and (max-width: 700px) {
  .report-periods .report-comparison-pair { flex-direction: column; }
}
.report-period-print-measure .report-comparison-pair { flex-direction: row !important; }
.report-period-print-measure .report-comparison-unit table,
.report-period-print-measure .report-comparison-unit th,
.report-period-print-measure .report-comparison-unit td,
.report-period-print-measure .report-comparison-unit p { font-size: 9pt !important; }
@media print {
  body.report-print-mode .report-periods .report-comparison-pair { display: flex !important; flex-direction: row; gap: 3mm; break-inside: avoid !important; page-break-inside: avoid !important; }
  body.report-print-mode .report-periods .report-comparison-unit { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.report-print-mode .report-periods .report-comparison-unit table,
  body.report-print-mode .report-periods .report-comparison-unit th,
  body.report-print-mode .report-periods .report-comparison-unit td,
  body.report-print-mode .report-periods .report-comparison-unit p { font-size: 9pt; }
  body.report-print-mode .report-periods .report-comparison-unit h3 { font-size: 10pt; }
}

@media print {
  body.report-print-mode .report-periods .report-period-cost-comparison { break-inside: avoid-page !important; page-break-inside: avoid !important; }
}

.report-periods .report-comparison-unit .report-comparison-conclusion { padding: 10px; background: #e8f4ec; }
.report-periods .report-comparison-conclusion > div { display: flex; justify-content: space-between; gap: 8px; color: var(--brand-dark); font-size: .7rem; }
.report-periods .report-comparison-conclusion > div strong:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-periods .report-comparison-conclusion p { min-height: 2.9em; padding: 0; margin-top: 6px; background: transparent; color: var(--muted); }
.report-periods .report-comparison-unit .report-comparison-result > * { background: #f3f8f5; font-weight: 750; }
@media print {
  body.report-print-mode .report-periods .report-comparison-conclusion > div { font-size: 9pt; }
  body.report-print-mode .report-periods .report-comparison-unit h3 { min-height: 30px; }
}

@media print {
  /* The six comparable centers share a dedicated sheet. Each pair remains
     atomic when unusually long labels require additional sheets. */
  body.report-print-mode .report-periods .report-comparison-units {
    break-before: page !important; page-break-before: always !important;
    break-after: page !important; page-break-after: always !important;
  }
  body.report-print-mode .report-periods .report-comparison-unit tbody th {
    text-transform: none; font-weight: 400; background: transparent;
    font-size: 9pt; letter-spacing: normal; color: inherit;
  }
  body.report-print-mode .report-periods .report-comparison-result th { font-weight: 750; }
}
/* fonte: reports/period-controls.css */
#relatorios .reports-actions { flex-wrap: wrap; }
#relatorios .report-period-controls { align-items: end; }
#relatorios .report-period-controls label { flex: 1 1 180px; min-width: min(100%, 180px); }
#relatorios .report-period-controls input,
#relatorios .report-period-controls select { width: 100%; min-width: 0; }
#relatorioMaisFiltros { flex: 1 1 100%; }
#relatorioMaisFiltros > summary { cursor: pointer; color: var(--brand-mid); font-weight: 700; }
#relatorioMaisFiltros .reports-filters { border: 0; padding: 12px 0 0; }
#relatorioFiltroStatus { flex: 1 1 250px; margin: 0; font-size: .85rem; color: #74500e; }
#relatorioFiltroStatus[role="alert"] { color: #9b3029; }
.report-detail-dialog { width: min(1080px, calc(100% - 28px)); max-width: calc(100% - 28px); max-height: 90vh; box-sizing: border-box; border: 1px solid #bfd3c7; border-radius: 12px; padding: 20px; color: #20372a; background: #fff; overflow: hidden; }
.report-detail-dialog[open] { display: flex; flex-direction: column; }
.report-detail-dialog::backdrop { background: #102d2380; }
.report-detail-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; padding: 0 0 12px; flex-shrink: 0; }
.report-detail-dialog h2 { font-size: 1.15rem; margin: 0; }
.report-detail-dialog h3 { font-size: 1rem; margin: 22px 0 10px; }
.report-detail-dialog p { font-size: .85rem; }
.report-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; border-bottom: 1px solid #dce6df; flex-shrink: 0; }
#relatorioDetalheConteudo { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.report-detail-path { color: #126342; font-weight: 700; padding-top: 14px; overflow-wrap: anywhere; }
.report-detail-path span { padding: 0 6px; }
.report-detail-status, .report-detail-notes { color: #52675c; }
.report-detail-scroll { width: 100%; max-width: 100%; }
.report-detail-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.report-detail-table th, .report-detail-table td { padding: 12px 8px; vertical-align: top; border-bottom: 1px solid #dce6df; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.report-detail-table th { background: #eef5f0; position: sticky; top: 0; z-index: 1; }
.report-detail-table th:last-child, .report-detail-table td.report-detail-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-detail-table td > span, .report-detail-table td > small { display: block; margin-top: 4px; }
.report-detail-table td > small { color: #52675c; }
.report-detail-link { color: #11643f; background: none; border: none; border-radius: 0; padding: 0; font: inherit; font-weight: 650; text-align: left; text-decoration: underline; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.report-detail-emphasis { background: #edf7f1; font-weight: 750; }
.report-origin-details { margin-top: 8px; }
.report-origin-details summary { cursor: pointer; color: #126342; font-size: .8rem; }
.report-origin-part { border-left: 3px solid #b7d3c3; padding: 8px; margin: 8px 0; overflow-wrap: anywhere; }
.report-origin-part p { margin: 6px 0 0; font-size: .8rem; white-space: pre-line; }
.report-detail-total { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 10px; border-top: 3px double #547361; background: #eaf5ef; }
.report-detail-total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-detail-notes { padding: 0 4px; }
@media screen and (max-width: 700px) {
  #relatorios .reports-toolbar > .panel-heading { flex-direction: column; align-items: stretch; }
  #relatorios .reports-actions { width: 100%; }
  #relatorios .reports-actions button { flex: 1 1 auto; }
  #relatorios .report-period-controls { padding: 14px; }
  #relatorios #relatoriosAbas { display: grid; grid-template-columns: 1fr; }
  .report-detail-dialog { padding: 12px; max-height: 94vh; }
  .report-detail-dialog h2 { font-size: 1rem; }
  .report-detail-actions button { padding: 8px 10px; font-size: .8rem; }
  .report-detail-table { min-width: 0; }
  .report-detail-table:not(.report-detail-documents) col:first-child { width: 56% !important; }
  .report-detail-table:not(.report-detail-documents) col:last-child { width: 44% !important; }
  .report-detail-table:not(.report-detail-documents) td, .report-detail-table:not(.report-detail-documents) th { padding-left: 5px; padding-right: 5px; }
  .report-detail-documents colgroup, .report-detail-documents thead { display: none; }
  .report-detail-documents, .report-detail-documents tbody, .report-detail-documents tr, .report-detail-documents td { display: block; width: auto; }
  .report-detail-documents tr { padding: 8px 0; border-bottom: 2px solid #bfd3c7; }
  .report-detail-documents td { padding: 6px 8px; border: 0; }
  .report-detail-documents td::before { content: attr(data-label); display: block; color: #52675c; font-size: .72rem; font-weight: 650; margin-bottom: 3px; }
  .report-detail-documents td.report-detail-number { background: #eef5f0; font-weight: 750; }
  .report-detail-total { flex-wrap: wrap; font-size: .85rem; }
  .report-detail-total strong { margin-left: auto; }
}
@media print { .report-detail-dialog { display: none !important; } }

#relatorioAnotacoes { min-width: 0; margin-top: 14px; }
.report-annotations-editor { padding: 14px 16px; border: 1px solid #d7e4dc; border-radius: 8px; background: #fff; }
.report-annotations-editor > summary { color: #126342; font-weight: 750; cursor: pointer; }
.report-annotations-editor p { overflow-wrap: anywhere; }
.report-annotations-editor label { display: block; min-width: 0; margin-top: 10px; }
.report-annotations-editor select,
.report-annotations-editor textarea { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; margin-top: 5px; }
.report-annotations-editor textarea { resize: vertical; }
.report-annotations-editor .form-grid { min-width: 0; }
.report-annotations-editor .button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.report-annotations-editor .button-row button { max-width: 100%; white-space: normal; }
@media screen and (max-width: 700px) {
  .report-annotations-editor { padding: 12px; }
  .report-annotations-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
  .report-annotations-editor .button-row button { flex: 1 1 150px; }
}
@media print { #relatorioAnotacoes { display: none !important; } }

.report-period-origin-action { display:block; margin-top:.25rem; }
.report-period-origin-action .report-period-drilldown { font-size:.8rem; }
.report-detail-actions label { display:grid; gap:.25rem; }
@media print { .report-period-origin-action { display:none!important; } }

/* The workbench is screen-only. The PDF continues to use its canonical paper. */
@media screen {
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-hub-shell { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:18px; align-items:start; }
 body:not(.report-print-mode) #relatorios.reports-workspace .module-navigation-panel { grid-column:1/-1; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-toolbar { grid-column:2; grid-row:2; min-width:0; }
 body:not(.report-print-mode) #relatorios.reports-workspace #relatorioPreview { grid-column:1; grid-row:2 / span 2; min-width:0; padding:0; background:transparent; border:0; }
 body:not(.report-print-mode) #relatorios.reports-workspace #relatorioAnotacoes { grid-column:2; margin:0; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-toolbar>.panel-heading { display:grid; gap:12px; padding:16px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-toolbar h2 { font-size:16px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-toolbar p { font-size:12px; font-weight:400; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-actions { display:flex; gap:8px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-actions button { font-size:12px; padding:8px 10px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px; gap:12px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-controls label { min-width:0; font-size:12px; }
 body:not(.report-print-mode) #relatorios.reports-workspace :is(#relatorioReferenciaField,#relatorioComparacaoField,#relatorioUnidadeField,#relatorioMaisFiltros,#restaurarRelatorio) { grid-column:1/-1; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-controls input,body:not(.report-print-mode) #relatorios.reports-workspace .report-period-controls select { font-size:13px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-applied-controls { display:grid; gap:8px; padding:16px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-analysis { width:100%; min-height:0; margin:0; padding:20px; box-shadow:none; border:1px solid #dce5df; border-radius:10px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-paper-header { display:none; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-title-row h1 { font-size:22px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-applied { font-size:12px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-change-overview { margin-top:18px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-profit-explanation { background:#eff8f3; border-left:3px solid #147c4b; padding:14px; font-size:14px; line-height:1.6; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-disclosure { margin:12px 0; border:1px solid #dce5df; border-radius:8px; overflow:hidden; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-disclosure>summary { padding:14px; cursor:pointer; color:#147c4b; font-size:14px; font-weight:650; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-disclosure>.report-period-section { padding:0 14px 14px; margin:0; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-repeated-heading { display:none; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-kpis { align-items:stretch; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-kpis>div { display:flex; flex-direction:column; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-kpis>div>span { min-height:40px; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-period-kpis>div>strong { margin-top:auto; }
}
@media screen and (max-width:1100px) {
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-hub-shell { grid-template-columns:minmax(0,1fr); }
 body:not(.report-print-mode) #relatorios.reports-workspace .reports-toolbar,body:not(.report-print-mode) #relatorios.reports-workspace #relatorioPreview,body:not(.report-print-mode) #relatorios.reports-workspace #relatorioAnotacoes { grid-column:1; grid-row:auto; }
 body:not(.report-print-mode) #relatorios.reports-workspace .report-screen-analysis { padding:14px; }
}
