﻿:root {
  --app-color-brand-900: #0f172a;
  --app-color-brand-800: #1e293b;
  --app-color-brand-700: #334155;
  --app-color-brand-600: #475569;
  --app-color-brand-500: #64748b;
  --app-color-brand-100: #e2e8f0;
  --app-color-brand-050: #f8fafc;
  --app-color-surface: #ffffff;
  --app-color-surface-muted: #f1f5f9;
  --app-color-border: rgba(15, 23, 42, 0.1);
  --app-color-primary: #0f6cbd;
  --app-color-primary-strong: #0b4f8a;
  --app-color-primary-soft: rgba(15, 108, 189, 0.12);
  --app-color-accent: #f59e0b;
  --app-color-text: #0f172a;
  --app-color-text-muted: #475569;
  --app-shadow-soft: 0 24px 48px rgba(15, 23, 42, 0.08);
  --app-shadow-sm: 0 12px 24px rgba(15, 23, 42, 0.06);
  --app-radius-xl: 1.5rem;
  --app-radius-lg: 1rem;
  --app-radius-md: 0.75rem;
  --app-max-content-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(15, 108, 189, 0.08), transparent 24rem), linear-gradient(180deg, #f8fbff 0%, #f4f7fb 45%, #eef3f8 100%);
  color: var(--app-color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.eyebrow {
  color: var(--app-color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  color: var(--app-color-brand-900);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.text-muted,
.text-subtle {
  color: var(--app-color-text-muted) !important;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.app-shell {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow-x: clip;
  overflow-y: hidden;
}

.app-shell__main {
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-shell__scroll {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.app-shell__content {
  width: 100%;
  min-height: 100%;
  max-width: var(--app-max-content-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

#blazor-error-ui {
  background: #fff1f2;
  border-top: 1px solid rgba(190, 24, 93, 0.2);
  bottom: 0;
  color: #9f1239;
  display: none;
  left: 0;
  padding: 0.75rem 1.25rem;
  position: fixed;
  right: 0;
  z-index: 1100;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  float: right;
}

@media (max-width: 768px) {
  .app-shell__content {
    padding: 1.5rem 0.625rem 3rem;
  }
}
.app-nav {
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--app-color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.app-nav__container {
  width: 100%;
  max-width: var(--app-max-content-width);
  margin: 0 auto;
  padding-inline: 1rem;
}

.app-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--app-color-brand-900);
}

.app-nav__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.app-nav__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-nav__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-nav__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.app-nav__collapse {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.app-nav__menu {
  margin-left: auto;
  gap: 0.75rem;
  align-items: center;
}

.app-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem !important;
  border-radius: 999px;
  color: var(--app-color-brand-700);
  font-weight: 600;
}

.app-nav__link:hover,
.app-nav__link:focus,
.app-nav__link.show {
  background: var(--app-color-primary-soft);
  color: var(--app-color-primary-strong);
}

.app-nav__dropdown-menu {
  min-width: 12rem;
  padding: 0.5rem;
  border: 1px solid var(--app-color-border);
  border-radius: 1rem;
  box-shadow: var(--app-shadow-sm);
  inset: calc(100% + 0.5rem) 0 auto auto;
}

.app-nav__dropdown-menu .dropdown-item {
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
}

.app-nav__dropdown-menu .dropdown-item.active,
.app-nav__dropdown-menu .dropdown-item:active {
  background: var(--app-color-primary);
  color: #fff;
}

.app-nav__toggle {
  border-color: rgba(15, 23, 42, 0.12);
}

@media (max-width: 991px) {
    .app-nav__container {
        padding-inline: 0.625rem;
  }
  .app-nav__collapse {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--app-color-border);
  }
  .app-nav__menu {
    margin-left: 0;
    align-items: stretch;
  }
    .app-nav__link {
        justify-content: space-between;
    }
}

.app-nav__session {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.app-nav__account {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.84);
}

.app-nav__avatar {
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--app-color-primary), #0f766e);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.app-nav__identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-nav__user {
    color: var(--app-color-brand-700);
    font-size: 0.85rem;
    font-weight: 800;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav__role {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--app-color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.app-nav__role-icon {
    font-size: 0.88rem;
    color: var(--app-color-primary);
}

.app-nav__logout-form {
    margin: 0;
}

.app-nav__logout {
    min-width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--app-color-brand-700);
    font-size: 0.82rem;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav__logout:hover,
.app-nav__logout:focus-visible {
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary-strong);
    transform: translateY(-1px);
}

.app-nav__logout .material-icons-outlined {
    font-size: 1.05rem;
}

.app-nav__logout-label {
    line-height: 1;
}

@media (max-width: 991px) {
    .app-nav__session {
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.7rem 1rem;
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .app-nav__account {
        flex: 1 1 auto;
    }

    .app-nav__user {
        max-width: none;
    }
}

.auth-layout {
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-page {
    width: min(100%, 28rem);
}

.login-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-soft);
}

.login-panel__brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.login-panel__logo {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}

.login-panel__eyebrow {
    color: var(--app-color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-panel__title {
    margin: 0;
    color: var(--app-color-brand-900);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.login-panel__title:focus {
    outline: 0;
}

.login-panel__alert {
    padding: 0.75rem 0.85rem;
    background: rgba(254, 242, 242, 0.96);
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 0.75rem;
    color: #b91c1c;
    font-weight: 700;
}

.login-panel__form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.login-panel__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.login-panel__field label {
    color: var(--app-color-brand-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-panel__field .form-control {
    min-height: 2.8rem;
    border-color: rgba(15, 23, 42, 0.12);
    border-radius: 0.85rem;
    font-weight: 600;
}

.login-panel__button {
    min-height: 2.85rem;
    border-radius: 0.85rem;
    font-weight: 800;
}
.btn-action {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--app-color-surface-muted);
  color: var(--app-color-brand-700);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-action:hover,
.btn-action:focus-visible {
  background: var(--app-color-primary-soft);
  color: var(--app-color-primary-strong);
  transform: translateY(-1px);
}

.btn-action.edit:hover,
.btn-action.edit:focus-visible {
  background: rgba(191, 219, 254, 0.9);
  color: #1d4ed8;
}

.btn-action.delete:hover,
.btn-action.delete:focus-visible {
  background: rgba(254, 202, 202, 0.9);
  color: #dc2626;
}

.busy-overlay-host {
  position: relative;
  isolation: isolate;
  min-height: 100%;
}

.busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  place-items: center;
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.busy-overlay__content {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(100%, 24rem);
  padding: 1.4rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.busy-overlay__spinner {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--app-color-primary);
}

.busy-overlay__title {
  color: var(--app-color-brand-900);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.busy-overlay__message {
  color: var(--app-color-text-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app-modal__dialog {
  width: min(100%, 34rem);
  max-height: min(90dvh, 48rem);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.app-modal__dialog--wide {
  width: min(100%, 42rem);
}

.app-modal__dialog--fullscreen {
  width: min(100%, 100vw - 2rem);
  height: min(100%, 100dvh - 2rem);
  max-height: calc(100dvh - 2rem);
}

.app-modal__header,
.app-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
}

.app-modal__header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.app-modal__body {
  padding: 1rem 1.1rem 1.1rem;
  overflow: auto;
}

.app-modal__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-modal__title {
  color: var(--app-color-brand-900);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-modal__message {
  color: var(--app-color-brand-700);
  line-height: 1.55;
}

.app-modal__close {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--app-color-brand-700);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-modal__close:hover,
.app-modal__close:focus-visible {
  background: var(--app-color-primary-soft);
  color: var(--app-color-primary-strong);
  transform: translateY(-1px);
}

.app-modal__checkbox {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.8);
  color: var(--app-color-brand-800);
  font-weight: 600;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.page-surface {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--app-radius-xl);
  box-shadow: var(--app-shadow-soft);
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    margin-bottom: 1.25rem;
  }
}
.eventos-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.eventos-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.eventos-page__lead {
  max-width: 52rem;
}

.eventos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.eventos-toolbar__search {
  position: relative;
  flex: 1 1 24rem;
  max-width: 34rem;
}

.eventos-toolbar__search .form-control {
  min-height: 2.85rem;
  padding-left: 3rem;
  border-radius: 999px;
}

.eventos-toolbar__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.eventos-toolbar__meta {
  display: flex;
  justify-content: flex-end;
}

.eventos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: var(--app-color-brand-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.eventos-alert {
  padding: 0.95rem 1.1rem;
  font-weight: 600;
}

.eventos-alert.is-success {
  background: rgba(240, 253, 244, 0.95);
  border: 1px solid rgba(22, 163, 74, 0.18);
  color: #166534;
}

.eventos-alert.is-error {
  background: rgba(254, 242, 242, 0.96);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.eventos-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.8rem 1.1rem;
  text-align: center;
}

.eventos-empty-state__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

.eventos-table-panel {
  padding: 1rem 1.1rem;
}

.eventos-table thead th {
  padding: 0 0 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.eventos-table tbody td {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--app-color-brand-800);
  vertical-align: middle;
}

.eventos-table__sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--app-color-brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eventos-table__sort-button:hover,
.eventos-table__sort-button:focus {
  color: var(--app-color-primary-strong);
}

.eventos-table__sort-button .material-icons-outlined {
  font-size: 1rem;
}

.eventos-table__sort-button.is-end {
  justify-content: flex-end;
}

.eventos-table__code {
  font-weight: 700;
  color: var(--app-color-brand-900);
  width: 8rem;
}

.eventos-table__description {
  font-weight: 600;
}

.eventos-folha-table {
  min-width: 86rem;
  table-layout: fixed;
}

.eventos-folha-table thead th {
  padding-inline: 0.55rem;
}

.eventos-folha-table tbody td {
  padding: 0.78rem 0.55rem;
}

.eventos-folha-table .eventos-table__sort-button {
  gap: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.eventos-folha-table .eventos-table__code {
  width: auto;
  white-space: nowrap;
}

.eventos-folha-table .eventos-table__description,
.eventos-folha-table__event {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.eventos-folha-table__nowrap {
  white-space: nowrap;
}

.eventos-folha-table__action-heading {
  color: var(--app-color-brand-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.eventos-folha-table__action-cell {
  white-space: nowrap;
}

.eventos-folha-table__action-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--app-color-primary);
  color: #fff;
}

.eventos-folha-table__action-link:hover,
.eventos-folha-table__action-link:focus-visible {
  background: var(--app-color-primary-strong);
  color: #fff;
}

.eventos-folha-table__action-link .material-icons-outlined {
  font-size: 1.05rem;
}

.eventos-folha-table__col-competencia {
  width: 6.5rem;
}

.eventos-folha-table__col-matricula {
  width: 6.25rem;
}

.eventos-folha-table__col-nome {
  width: 16.5rem;
}

.eventos-folha-table__col-codigo {
  width: 5rem;
}

.eventos-folha-table__col-evento {
  width: 17rem;
}

.eventos-folha-table__col-processamento {
  width: 8rem;
}

.eventos-folha-table__col-subtipo {
  width: 7rem;
}

.eventos-folha-table__col-referencia {
  width: 8rem;
}

.eventos-folha-table__col-valor {
  width: 8.25rem;
}

.eventos-folha-table__col-acao {
  width: 4.5rem;
}

.eventos-folha-informados-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.eventos-folha-informados-table th,
.eventos-folha-informados-table td {
  min-width: 0;
}

.eventos-folha-informados-table thead th {
  padding: 0 0.45rem 0.7rem;
}

.eventos-folha-informados-table tbody td {
  padding: 0.72rem 0.45rem;
}

.eventos-folha-informados-table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.72);
}

.eventos-folha-informados-table .eventos-table__sort-button {
  min-width: 0;
  gap: 0.28rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: normal;
}

.eventos-folha-informados-table .eventos-table__sort-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eventos-folha-informados-table .eventos-table__code {
  width: auto;
  white-space: nowrap;
}

.eventos-folha-informados-table__col-matricula {
  width: 5.8rem;
}

.eventos-folha-informados-table__col-servidor {
  width: 19%;
}

.eventos-folha-informados-table__col-contexto {
  width: 8.4rem;
}

.eventos-folha-informados-table__col-evento {
  width: 23%;
}

.eventos-folha-informados-table__col-valor {
  width: 7.3rem;
}

.eventos-folha-informados-table__col-justificativa {
  width: auto;
}

.eventos-folha-informados-table__col-acoes {
  width: 4.75rem;
}

.eventos-folha-informados-table__servidor,
.eventos-folha-informados-table__contexto,
.eventos-folha-informados-table__justificativa,
.eventos-folha-informados-table__evento {
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.eventos-folha-informados-table__servidor strong,
.eventos-folha-informados-table__contexto strong {
  display: block;
  color: var(--app-color-brand-900);
  font-weight: 800;
}

.eventos-folha-informados-table__contexto span,
.eventos-folha-informados-table__contexto small {
  display: block;
  color: var(--app-color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.eventos-folha-informados-table__evento {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.eventos-folha-informados-table__evento strong {
  min-width: 0;
  color: var(--app-color-brand-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.eventos-folha-informados-table__codigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.45rem;
  background: rgba(241, 245, 249, 0.9);
  color: var(--app-color-brand-700);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.eventos-folha-informados-table__valor {
  color: var(--app-color-brand-900);
  font-weight: 800;
  white-space: nowrap;
}

.eventos-folha-informados-table__justificativa {
  display: -webkit-box;
  max-height: 2.6rem;
  overflow: hidden;
  color: var(--app-color-brand-700);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.eventos-folha-informados-table .btn-action {
  width: 2rem;
  height: 2rem;
}

.eventos-folha-informados-table .btn-action .material-icons-outlined {
  font-size: 1rem !important;
}

.eventos-type-badge,
.eventos-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.eventos-type-badge.is-provento {
  color: #166534;
  background: rgba(187, 247, 208, 0.55);
}

.eventos-type-badge.is-desconto {
  color: #b91c1c;
  background: rgba(254, 202, 202, 0.55);
}

.eventos-type-badge.is-info {
  color: #0f766e;
  background: rgba(153, 246, 228, 0.5);
}

.eventos-type-badge.is-muted {
  color: #475569;
  background: rgba(226, 232, 240, 0.85);
}

.eventos-flag {
  color: #475569;
  background: rgba(226, 232, 240, 0.85);
}

.eventos-flag.is-active {
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

@media (max-width: 991px) {
  .eventos-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .eventos-toolbar__search {
    max-width: none;
  }
}
.configuracoes-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.configuracoes-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.configuracoes-page__lead {
  max-width: 58rem;
}

.configuracoes-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.configuracoes-panel__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

.configuracoes-panel__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

.configuracoes-panel__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.configuracoes-panel__title {
  color: var(--app-color-brand-900);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.configuracoes-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.configuracoes-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  background: rgba(248, 250, 252, 0.72);
  cursor: pointer;
}

.configuracoes-option.is-selected {
  border-color: rgba(15, 108, 189, 0.36);
  background: rgba(239, 246, 255, 0.88);
}

.configuracoes-option input {
  margin-top: 0.25rem;
}

.configuracoes-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.configuracoes-option__body strong {
  color: var(--app-color-brand-900);
  font-weight: 800;
}

.configuracoes-option__body span {
  color: var(--app-color-text-muted);
  line-height: 1.45;
}

.configuracoes-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.configuracoes-panel__status {
  color: var(--app-color-brand-700);
  font-weight: 700;
}

@media (max-width: 991px) {
  .configuracoes-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .configuracoes-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .configuracoes-panel__actions .btn {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .configuracoes-panel__heading {
    grid-template-columns: minmax(0, 1fr);
  }
}
.folha-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.folha-page:focus,
.folha-page:focus-visible {
  outline: none;
}

.folha-page .page-header {
  margin-bottom: 0.25rem;
}

.folha-page .page-title {
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1.02;
}

.folha-page__lead {
  max-width: 54rem;
  font-size: 0.94rem;
  line-height: 1.4;
}

.folha-section-header {
  padding-top: 0.25rem;
}

.folha-page__context-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: var(--app-color-brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.folha-page__context-chip-icon,
.folha-chip__icon,
.folha-toolbar__button-icon,
.folha-status-banner__icon .material-icons-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.folha-page__context-chip-icon,
.folha-chip__icon,
.folha-toolbar__button-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.folha-toolbar {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
}

.folha-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.25rem;
  background: radial-gradient(circle at top right, rgba(15, 108, 189, 0.12), transparent 14rem), linear-gradient(135deg, rgba(15, 108, 189, 0.13) 0%, rgba(14, 116, 144, 0.08) 48%, rgba(22, 163, 74, 0.07) 100%);
  pointer-events: none;
}

.folha-toolbar__hero,
.folha-toolbar__form {
  position: relative;
  z-index: 1;
}

.folha-toolbar__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.folha-toolbar__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.folha-toolbar__title {
  color: var(--app-color-brand-900);
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.folha-toolbar__hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.folha-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: var(--app-color-brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.folha-chip__label,
.folha-toolbar__button-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.folha-toolbar__form {
  display: grid;
  grid-template-columns: minmax(20rem, 1.8fr) minmax(11rem, 0.85fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.folha-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.folha-field__label {
  color: var(--app-color-brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.folha-field__input {
  min-height: 2.7rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
}

.folha-field__input:focus {
  border-color: rgba(15, 108, 189, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(15, 108, 189, 0.1);
}

.folha-selector {
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
}

.folha-selector__copy,
.folha-selector__meta {
  display: flex;
  flex-direction: column;
}

.folha-selector__copy {
  min-width: 0;
  gap: 0.08rem;
}

.folha-selector__title {
  color: var(--app-color-brand-900);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.12;
}

.folha-selector__subtitle {
  color: var(--app-color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.folha-selector__meta {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.folha-selector__hint {
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.12);
  color: var(--app-color-primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.folha-selector__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-color-brand-500);
  font-size: 1.1rem;
}

.folha-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.folha-toolbar__button {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.valores-pagar-toolbar__form {
  grid-template-columns: minmax(15rem, 1.05fr) minmax(18rem, 1.35fr) auto;
}

.valores-pagar-pills {
  min-height: 2.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.valores-pagar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(15, 108, 189, 0.22);
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.1);
  color: var(--app-color-primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.valores-pagar-pill.is-muted {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.9);
  color: var(--app-color-brand-600);
}

.valores-pagar-modal-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(13rem, 1.1fr) repeat(2, minmax(10rem, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.valores-pagar-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.valores-pagar-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.valores-pagar-toggle {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--app-color-brand-800);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
}

.valores-pagar-toggle input {
  margin: 0;
}

.folha-modal__dialog {
  width: min(100%, 56rem);
}

.folha-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.folha-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.folha-modal__search {
  position: relative;
  flex: 1 1 auto;
}

.folha-modal__search .form-control {
  min-height: 2.95rem;
  padding-left: 3rem;
  border-radius: 999px;
}

.folha-modal__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--app-color-brand-500);
}

.folha-modal__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.folha-modal__state {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.folha-modal__state .material-icons-outlined {
  font-size: 2rem;
  color: var(--app-color-brand-500);
}

.folha-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(60dvh, 34rem);
  overflow: auto;
}

.folha-modal__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.72);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.folha-modal__option:hover,
.folha-modal__option:focus-visible,
.folha-modal__option.is-selected {
  border-color: rgba(15, 108, 189, 0.26);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.folha-modal__option-main,
.folha-modal__option-side {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.folha-modal__option-main {
  min-width: 0;
}

.folha-modal__option-side {
  align-items: flex-end;
  flex-shrink: 0;
}

.folha-modal__option-name {
  color: var(--app-color-brand-900);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
}

.folha-modal__option-meta {
  color: var(--app-color-text-muted);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.15;
}

.folha-modal__option-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.12);
  color: var(--app-color-primary-strong);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
}

.folha-status-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.folha-status-banner.is-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(255, 255, 255, 0.9));
}

.folha-status-banner.is-error {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.9));
}

.folha-status-banner__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--app-color-primary-strong);
}

.folha-status-banner.is-error .folha-status-banner__icon {
  color: #b91c1c;
}

.folha-status-banner.is-success .folha-status-banner__icon {
  color: #15803d;
}

.folha-status-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
}

.folha-subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--app-color-brand-800);
  font-size: 0.94rem;
  font-weight: 700;
}

.folha-result-panel {
  padding: 0.85rem 1rem;
}

.folha-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.folha-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.folha-result-card,
.folha-kpi-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.folha-kpi-card {
  width: 100%;
}

.folha-result-card {
  display: block;
}

.folha-result-card__label,
.folha-kpi-card__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--app-color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.folha-result-card__value,
.folha-kpi-card__value {
  color: var(--app-color-brand-900);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
}

.material-icons-outlined.folha-kpi-card__icon,
.folha-sheet-card__icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  flex: 0 0 2.15rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  align-self: center;
}

.material-icons-outlined.folha-kpi-card__icon {
  background: rgba(15, 108, 189, 0.14);
  color: var(--app-color-primary-strong);
}

.material-icons-outlined.folha-kpi-card__icon.is-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.material-icons-outlined.folha-kpi-card__icon.is-info {
  background: rgba(14, 116, 144, 0.15);
  color: #0f766e;
}

.material-icons-outlined.folha-kpi-card__icon.is-success {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.folha-loading-state,
.folha-empty-state {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.folha-empty-state__icon {
  font-size: 2.35rem;
  color: var(--app-color-brand-500);
}

.folha-section-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.folha-section-panel {
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.folha-section-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: radial-gradient(circle at top right, rgba(15, 108, 189, 0.08), transparent 14rem), linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 249, 0.97));
}

.folha-section-panel__heading {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.folha-section-panel__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.folha-section-panel__title {
  margin: 0;
  color: var(--app-color-brand-900);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
}

.folha-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.58rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: var(--app-color-brand-700);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.folha-badge--emphasis {
  background: rgba(15, 108, 189, 0.12);
  color: var(--app-color-primary-strong);
}

.folha-section-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.folha-section-empty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  color: var(--app-color-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.folha-section-empty .material-icons-outlined {
  color: var(--app-color-brand-500);
}

.folha-compare-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
  border-top: 3px solid rgba(15, 108, 189, 0.5);
}

.folha-compare-card.is-base {
  border-top: 3px solid rgba(22, 163, 74, 0.85);
}

.folha-compare-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.folha-compare-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: var(--app-color-brand-700);
  align-self: flex-start;
  flex-shrink: 0;
}

.folha-compare-card__pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.12);
  color: var(--app-color-primary-strong);
  font-size: 0.95rem;
  line-height: 1;
}

.folha-compare-card__pill-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.folha-compare-card__pill-label {
  color: var(--app-color-text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.folha-compare-card__pill-value {
  color: var(--app-color-brand-900);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.folha-compare-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.folha-compare-card__icon {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
  font-size: 1.08rem;
  line-height: 1;
  text-align: center;
  background: rgba(15, 108, 189, 0.12);
  color: var(--app-color-primary-strong);
}

.folha-compare-card.is-base .folha-compare-card__icon {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.folha-compare-card__title {
  margin: 0 0 0.12rem;
  color: var(--app-color-brand-900);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.12;
}

.folha-compare-card__subtitle {
  color: var(--app-color-text-muted);
  font-size: 0.78rem;
  line-height: 1.15;
}

.folha-compare-card__totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0.5rem;
  align-items: stretch;
}

.folha-compare-card__totals > div {
  min-width: 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.48rem 0.58rem;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.78rem;
  text-align: right;
}

.folha-compare-card__totals span {
  color: var(--app-color-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.folha-compare-card__totals strong {
  color: var(--app-color-brand-900);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.folha-compare-card__totals .is-diferenca {
  background: rgba(15, 108, 189, 0.08);
}

.folha-compare-card__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.folha-fact {
  padding: 0.5rem 0.58rem;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.72rem;
}

.folha-fact__label {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--app-color-text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.folha-fact__value {
  color: var(--app-color-brand-900);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
}

.folha-comparison-table {
  overflow: hidden;
  border-radius: 0.8rem;
  table-layout: fixed;
}

.folha-comparison-table thead th {
  padding: 0.56rem 0.6rem;
  background: rgba(241, 245, 249, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--app-color-brand-700);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.folha-comparison-table tbody td,
.folha-comparison-table tfoot td {
  padding: 0.52rem 0.6rem;
  border-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
  font-size: 0.84rem;
  line-height: 1.2;
}

.folha-comparison-table tfoot td {
  background: rgba(248, 250, 252, 0.94);
  font-weight: 800;
}

.folha-comparison-table__code {
  color: var(--app-color-brand-900);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.folha-comparison-table__description {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.folha-comparison-table__description strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.folha-event-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.folha-event-tag.is-provento {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.folha-event-tag.is-desconto {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.folha-event-tag.is-info {
  background: rgba(14, 116, 144, 0.14);
  color: #0f766e;
}

.folha-event-tag.is-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.folha-compare-value {
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.folha-compare-value.is-provento {
  color: #166534;
}

.folha-compare-value.is-desconto {
  color: #b91c1c;
}

.folha-reference-delta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.22rem;
  padding: 0.12rem 0.18rem;
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.07);
  border: 1px solid rgba(15, 108, 189, 0.12);
  color: var(--app-color-brand-700);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.folha-reference-delta__value {
  border-radius: 999px;
  text-decoration: line-through;
  padding: 0.2rem 0.4rem;
  background: whitesmoke;
  font-weight: 800;
}

.folha-reference-delta__value.is-current {
  text-decoration: none;
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.folha-reference-delta__icon {
  width: 1.18rem;
  height: 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.18rem;
  border-radius: 999px;
  background: var(--app-color-surface);
  color: var(--app-color-primary-strong);
  font-size: 1rem;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1200px) {
  .folha-result-grid,
  .folha-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .folha-toolbar__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .valores-pagar-toolbar__form,
  .valores-pagar-modal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .folha-toolbar__actions {
    grid-column: 1/-1;
  }
  .folha-compare-card__facts,
  .folha-compare-card__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .folha-page__context-chip,
  .folha-toolbar__hero,
  .folha-toolbar__actions,
  .folha-section-panel__header,
  .folha-compare-card__header {
    width: 100%;
  }
  .folha-toolbar,
  .folha-section-panel__body {
    padding: 0.85rem;
  }
  .folha-toolbar__hero,
  .folha-toolbar__actions,
  .folha-section-panel__header,
  .folha-compare-card__header {
    flex-direction: column;
    align-items: stretch;
  }
  .folha-toolbar__hero-badges,
  .folha-modal__summary {
    justify-content: flex-start;
  }
  .folha-toolbar__form,
  .valores-pagar-toolbar__form,
  .valores-pagar-modal-grid,
  .folha-result-grid,
  .folha-kpi-grid,
  .folha-compare-card__facts,
  .folha-compare-card__totals {
    grid-template-columns: 1fr;
  }
  .folha-toolbar__button,
  .folha-modal__option {
    width: 100%;
  }
  .folha-modal__toolbar,
  .folha-modal__option,
  .folha-modal__option-side {
    flex-direction: column;
    align-items: stretch;
  }
  .folha-selector {
    min-height: 4rem;
  }
  .folha-selector__meta {
    flex-direction: row;
    align-items: center;
  }
}
.recalculo-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recalculo-page .page-header {
  margin-bottom: 0.25rem;
}

.recalculo-page .page-title {
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1.02;
}

.recalculo-page__header {
  padding-top: 0.25rem;
}

.recalculo-page__lead {
  max-width: 58rem;
  font-size: 0.94rem;
  line-height: 1.45;
}

.recalculo-page__context-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: var(--app-color-brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.recalculo-page__context-chip-icon,
.recalculo-toolbar__button-icon,
.recalculo-table__action-icon,
.recalculo-status-banner__icon .material-icons-outlined,
.recalculo-kpi-card__icon,
.recalculo-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.recalculo-page__context-chip-icon,
.recalculo-toolbar__button-icon,
.recalculo-table__action-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.recalculo-toolbar {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
}

.recalculo-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.75rem;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 14rem), linear-gradient(135deg, rgba(15, 108, 189, 0.1), transparent 58%);
  pointer-events: none;
}

.recalculo-toolbar__hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.recalculo-toolbar__eyebrow,
.recalculo-subsection-header__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recalculo-toolbar__title {
  color: var(--app-color-brand-900);
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.recalculo-toolbar__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.recalculo-status-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.recalculo-status-banner__icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
}

.recalculo-status-banner__copy strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--app-color-brand-900);
}

.recalculo-status-banner.is-success {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(240, 253, 244, 0.95);
}

.recalculo-status-banner.is-success .recalculo-status-banner__icon {
  color: #15803d;
  background: rgba(34, 197, 94, 0.16);
}

.recalculo-status-banner.is-error {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
}

.recalculo-status-banner.is-error .recalculo-status-banner__icon {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.18);
}

.recalculo-status-banner:not(.is-success):not(.is-error) {
  background: rgba(239, 246, 255, 0.96);
  border-color: rgba(14, 116, 144, 0.16);
}

.recalculo-status-banner:not(.is-success):not(.is-error) .recalculo-status-banner__icon {
  color: #0f766e;
  background: rgba(45, 212, 191, 0.18);
}

.recalculo-result-panel,
.recalculo-table-panel {
  padding: 1rem 1.1rem;
}

.recalculo-subsection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.recalculo-subsection-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.recalculo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: var(--app-color-brand-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.recalculo-badge.is-loading {
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

.recalculo-result-grid,
.recalculo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.recalculo-result-card,
.recalculo-kpi-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
}

.recalculo-result-card__label,
.recalculo-kpi-card__label {
  display: block;
  color: var(--app-color-brand-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recalculo-result-card__value,
.recalculo-kpi-card__value {
  color: var(--app-color-brand-900);
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.material-icons-outlined.recalculo-kpi-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.95rem;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  align-self: center;
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

.material-icons-outlined.recalculo-kpi-card__icon.is-success {
  color: #15803d;
  background: rgba(187, 247, 208, 0.55);
}

.material-icons-outlined.recalculo-kpi-card__icon.is-info {
  color: #0f766e;
  background: rgba(153, 246, 228, 0.5);
}

.recalculo-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.1rem;
  text-align: center;
}

.recalculo-empty-state__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  font-size: 1.55rem;
  color: var(--app-color-primary-strong);
  background: var(--app-color-primary-soft);
}

.recalculo-table {
  table-layout: fixed;
}

.recalculo-table thead th {
  padding: 0 0 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.recalculo-table tbody td {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--app-color-brand-800);
  vertical-align: middle;
}

.recalculo-table__sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--app-color-brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recalculo-table__sort-button.is-end {
  justify-content: flex-end;
}

.recalculo-table__sort-button:hover,
.recalculo-table__sort-button:focus {
  color: var(--app-color-primary-strong);
}

.recalculo-table__sort-button .material-icons-outlined {
  font-size: 1rem;
}

.recalculo-table__cpf {
  width: 11rem;
  font-weight: 700;
  color: var(--app-color-brand-900);
}

.recalculo-table__name {
  font-weight: 600;
}

.recalculo-table__person-button {
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--app-color-brand-900);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.recalculo-table__person-button:hover,
.recalculo-table__person-button:focus-visible {
  color: var(--app-color-primary-strong);
}

.recalculo-table__person-button small {
  color: var(--app-color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.recalculo-table__value {
  font-weight: 800;
  color: #166534;
}

.recalculo-table__actions-heading {
  width: 10rem;
  color: var(--app-color-brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recalculo-table__actions {
  width: 10rem;
}

.recalculo-table__action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 8.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.recalculo-modal__dialog {
  width: min(100%, 62rem);
}

.recalculo-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.recalculo-modal__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.recalculo-modal__summary-card {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  background: rgba(248, 250, 252, 0.9);
}

.recalculo-modal__summary-card span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--app-color-brand-700);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.recalculo-modal__summary-card strong {
  color: var(--app-color-brand-900);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.recalculo-modal__state {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.recalculo-modal__state .material-icons-outlined {
  color: var(--app-color-brand-500);
  font-size: 2rem;
}

.recalculo-modal-table {
  table-layout: fixed;
}

.recalculo-modal-table thead th {
  padding: 0.55rem 0.6rem;
  background: rgba(241, 245, 249, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--app-color-brand-700);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.recalculo-modal-table tbody td {
  padding: 0.6rem;
  border-color: rgba(15, 23, 42, 0.06);
  color: var(--app-color-brand-800);
  font-size: 0.86rem;
}

.recalculo-modal-table__matricula,
.recalculo-modal-table__value {
  font-weight: 800;
}

.recalculo-modal-table__value {
  color: #166534;
}

.recalculo-modal-table__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .recalculo-toolbar__hero,
  .recalculo-subsection-header {
    flex-direction: column;
  }
  .recalculo-toolbar__button {
    width: 100%;
    justify-content: center;
  }
  .recalculo-result-grid,
  .recalculo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .recalculo-result-grid,
  .recalculo-kpi-grid,
  .recalculo-modal__summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .recalculo-table {
    min-width: 50rem;
  }
  .recalculo-modal-table {
    min-width: 44rem;
  }
}
.tempo-servico-page,
.tempo-servico-pessoa-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tempo-servico-page__header-actions,
.tempo-servico-pessoa-page__header-actions,
.tempo-servico-panel__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tempo-servico-page__lead,
.tempo-servico-pessoa-page__lead {
  max-width: 62rem;
}

.tempo-servico-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.tempo-servico-toolbar__search {
  position: relative;
  flex: 1 1 24rem;
  max-width: 34rem;
}

.tempo-servico-toolbar__search .form-control {
  min-height: 2.85rem;
  padding-left: 3rem;
  border-radius: 999px;
}

.tempo-servico-toolbar__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.tempo-servico-toolbar__meta,
.tempo-servico-pessoa-hero__meta,
.tempo-servico-page__count-stack,
.tempo-servico-detail-table__badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tempo-servico-page__cpf,
.tempo-servico-page__saldo,
.tempo-servico-page__percentual,
.tempo-servico-page__competencia,
.tempo-servico-detail-table__competencia,
.tempo-servico-detail-table__percentual,
.tempo-servico-detail-table__diferenca {
  color: var(--app-color-brand-700);
  white-space: nowrap;
}

.tempo-servico-page__percentual,
.tempo-servico-detail-table__percentual,
.tempo-servico-detail-table__diferenca {
  font-weight: 800;
}

.tempo-servico-table,
.tempo-servico-detail-table {
  min-width: 64rem;
}

.tempo-servico-pessoa-page__header {
  padding-top: 0.25rem;
}

.tempo-servico-pessoa-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.tempo-servico-pessoa-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.5rem;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 14rem), linear-gradient(135deg, rgba(15, 108, 189, 0.1), transparent 58%);
  pointer-events: none;
}

.tempo-servico-pessoa-hero > * {
  position: relative;
  z-index: 1;
}

.tempo-servico-pessoa-hero__eyebrow {
  color: var(--app-color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tempo-servico-pessoa-hero__title {
  color: var(--app-color-brand-900);
  font-size: clamp(1.35rem, 1.9vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tempo-servico-pessoa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tempo-servico-panel {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tempo-servico-panel__empty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  color: var(--app-color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.tempo-servico-panel__empty .material-icons-outlined {
  color: var(--app-color-brand-500);
}

.tempo-servico-detail-table__switch-label {
  min-width: 2rem;
  color: var(--app-color-brand-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.tempo-servico-calculo-modal__dialog {
  width: min(100%, 100vw - 2rem);
}

.tempo-servico-calculo-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tempo-servico-calculo-modal__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tempo-servico-calculo-modal__filters {
  display: flex;
  justify-content: flex-end;
}

.tempo-servico-calculo-modal__filter-label {
  color: var(--app-color-brand-700);
  font-weight: 700;
}

.tempo-servico-calculo-modal__badge--danger {
  color: #b91c1c;
  background: rgba(254, 202, 202, 0.72);
  border-color: rgba(220, 38, 38, 0.18);
}

.tempo-servico-calculo-modal__table {
  min-width: 96rem;
}

.tempo-servico-calculo-modal__table td,
.tempo-servico-calculo-modal__table th {
  white-space: nowrap;
  text-align: center;
}

.tempo-servico-calculo-modal__heading--ats,
.tempo-servico-calculo-modal__cell--ats,
.tempo-servico-calculo-modal__cell--compare {
  font-weight: 800;
}

.tempo-servico-calculo-modal__heading--ats,
.tempo-servico-calculo-modal__cell--ats {
  color: var(--app-color-primary-strong);
  background: rgba(15, 108, 189, 0.08);
}

.tempo-servico-calculo-modal__cell--compare {
  color: var(--app-color-brand-900);
}

.tempo-servico-calculo-modal__cell--danger {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.72);
}

.tempo-servico-calculo-modal__row--danger td {
  background: rgba(254, 242, 242, 0.85);
}

.tempo-servico-calculo-modal__row--danger .tempo-servico-detail-table__competencia {
  color: #991b1b;
  font-weight: 800;
}

.tempo-servico-auditoria-modal__dialog {
  width: min(100%, 100vw - 2rem);
}

.tempo-servico-auditoria-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tempo-servico-auditoria-modal__body > * {
  flex-shrink: 0;
}

.tempo-servico-auditoria-modal__query {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(11rem, 0.65fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
}

.tempo-servico-auditoria-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tempo-servico-auditoria-modal__field .form-label {
  margin: 0;
  color: var(--app-color-brand-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.tempo-servico-auditoria-modal__field .form-control {
  min-height: 2.7rem;
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  box-shadow: none;
  font-weight: 600;
}

.tempo-servico-auditoria-modal__field .form-control:focus {
  border-color: rgba(15, 108, 189, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(15, 108, 189, 0.1);
}

.tempo-servico-auditoria-modal__mode {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--app-color-brand-700);
  font-weight: 700;
}

.tempo-servico-auditoria-modal__summary-grid,
.tempo-servico-auditoria-modal__section-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.tempo-servico-auditoria-modal__summary-item,
.tempo-servico-auditoria-modal__section-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
}

.tempo-servico-auditoria-modal__summary-item.is-primary {
  background: var(--app-color-primary-soft);
  border-color: rgba(15, 108, 189, 0.22);
}

.tempo-servico-auditoria-modal__summary-item span,
.tempo-servico-auditoria-modal__section-summary-item span,
.tempo-servico-auditoria-modal__section-summary-item small,
.tempo-servico-auditoria-modal__section-total span {
  color: var(--app-color-brand-700);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.tempo-servico-auditoria-modal__summary-item strong,
.tempo-servico-auditoria-modal__section-summary-item strong,
.tempo-servico-auditoria-modal__section-total strong {
  color: var(--app-color-brand-900);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

.tempo-servico-auditoria-modal__section-summary-item small {
  color: var(--app-color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.tempo-servico-auditoria-modal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tempo-servico-auditoria-modal__section {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.tempo-servico-auditoria-modal__section[open] {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.tempo-servico-auditoria-modal__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.tempo-servico-auditoria-modal__section-header::-webkit-details-marker {
  display: none;
}

.tempo-servico-auditoria-modal__section-header h3 {
  color: var(--app-color-brand-900);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.tempo-servico-auditoria-modal__section-total {
  min-width: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.75rem;
  text-align: right;
}

.tempo-servico-auditoria-modal__section-body {
  padding: 0 1rem 1rem;
}

.tempo-servico-auditoria-modal__table {
  min-width: 76rem;
  table-layout: fixed;
}

.tempo-servico-auditoria-modal__table thead th {
  padding: 0.6rem;
  background: rgba(241, 245, 249, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--app-color-brand-700);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.tempo-servico-auditoria-modal__table tbody td {
  padding: 0.65rem;
  border-color: rgba(15, 23, 42, 0.06);
  color: var(--app-color-brand-800);
  font-size: 0.86rem;
  vertical-align: middle;
}

.tempo-servico-auditoria-modal__item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.tempo-servico-auditoria-modal__item span {
  width: fit-content;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 108, 189, 0.1);
  color: var(--app-color-primary-strong);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.tempo-servico-auditoria-modal__item strong {
  color: var(--app-color-brand-900);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.tempo-servico-auditoria-modal__item small {
  color: var(--app-color-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

.tempo-servico-auditoria-modal__cell--auditado {
  color: var(--app-color-primary-strong) !important;
  background: rgba(15, 108, 189, 0.08) !important;
  font-weight: 800;
}

@media (max-width: 991px) {
  .tempo-servico-toolbar,
  .tempo-servico-pessoa-hero,
  .tempo-servico-pessoa-page__header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tempo-servico-toolbar__search {
    max-width: none;
  }
  .tempo-servico-pessoa-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tempo-servico-auditoria-modal__query,
  .tempo-servico-auditoria-modal__summary-grid,
  .tempo-servico-auditoria-modal__section-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tempo-servico-auditoria-modal__query .btn {
    grid-column: 1/-1;
  }
}
@media (max-width: 767px) {
  .tempo-servico-table,
  .tempo-servico-detail-table {
    min-width: 52rem;
  }
  .tempo-servico-pessoa-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tempo-servico-auditoria-modal__query,
  .tempo-servico-auditoria-modal__summary-grid,
  .tempo-servico-auditoria-modal__section-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .tempo-servico-auditoria-modal__section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .tempo-servico-auditoria-modal__section-total {
    min-width: 0;
    text-align: left;
  }
}
