body {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    body.page-loaded {
        opacity: 1;
    }


        /* Estilos para navbar minimalista */
        .navbar-custom {
            background-color: #355c7d;
            color: white;
        }

        .navbar-custom a {
            color: #343a40;
            font-weight: 500;
        }

        /* Estilos do corpo */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        body {
            background-color: #eef2f6;
            color: #343a40;
            font-family: 'Roboto', sans-serif;
        }

        /* Sidebar */
        .sidebar {
            background-color: rgba(200, 210, 220, 0.9);
            height: calc(100vh - 50px);
            padding: 15px;
            width: 250px;
            position: fixed;
            top: 50px;
        }

        .sidebar a {
            color: #000;
            text-decoration: none;
            padding: 10px 0;
            display: block;
        }

        .sidebar a:hover {
            text-decoration: underline;
        }

        /* Estilo do conteúdo principal */
        .main-content {
            padding: 0;
            margin-left: 0px;
            margin-right: 0px;

            background-color: #0000;
            border-radius: 5px;
            box-shadow: none;
            height: calc(100vh - 0px);
            overflow: auto;
        }

        /* Efeito de fade customizado */
.modal.fade .modal-dialog {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

/* Efeito de zoom opcional */
.modal.fade.zoom .modal-dialog {
  transform: scale(0.8);
}

.modal.show.zoom .modal-dialog {
  transform: scale(1);
}
#genericModal .modal-content {
  background-color: #f7f9fb !important;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

#genericModal .modal-header,
#genericModal .modal-footer {
  background: #ffffff;
  border-color: #d8e0ea;
  padding: 12px 16px;
}

#genericModal .modal-title {
  color: #17202b;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#genericModal .modal-body {
  padding: 16px;
}

body.rhsim-profile-modal-open {
  overflow: hidden !important;
}

#genericModal.rhsim-profile-modal {
  overflow: hidden;
}

#genericModal.rhsim-profile-modal .modal-dialog {
  height: calc(100dvh - 2rem);
  margin-bottom: 1rem;
  margin-top: 1rem;
  max-height: calc(100dvh - 2rem);
}

#genericModal.rhsim-profile-modal .modal-content {
  display: flex;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

#genericModal.rhsim-profile-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#genericModal .modal-body > .container {
  max-width: none;
  padding: 0;
}

#genericModal section#form {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  padding: 14px;
}

#genericModal .rhsim-modal-form {
  display: grid;
  gap: 12px;
}

#genericModal .rhsim-modal-form .row {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
  margin-left: 0;
  margin-right: 0;
}

#genericModal .rhsim-modal-form .col,
#genericModal .rhsim-modal-form [class*="col-"] {
  min-width: 220px;
  padding-left: 0;
  padding-right: 0;
}

#genericModal .rhsim-modal-form .form-group {
  display: grid;
  gap: 6px;
  margin: 0;
}

#genericModal .rhsim-modal-form .form-label,
#genericModal .rhsim-modal-form label:not(.rh-declaration-form__check) {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  margin: 0;
  text-transform: uppercase;
}

#genericModal .rhsim-modal-form .form-control,
#genericModal .rhsim-modal-form .form-select,
#genericModal .rhsim-modal-form select,
#genericModal .rhsim-modal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#genericModal .rhsim-modal-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: #17202b;
  min-height: 39px;
  padding: 8px 10px;
  width: 100%;
}

#genericModal .rhsim-modal-form textarea {
  min-height: 96px;
  resize: vertical;
}

#genericModal .rhsim-modal-form .form-control:focus,
#genericModal .rhsim-modal-form .form-select:focus,
#genericModal .rhsim-modal-form select:focus,
#genericModal .rhsim-modal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
#genericModal .rhsim-modal-form textarea:focus {
  border-color: #255ea8;
  box-shadow: none;
  outline: 2px solid rgba(37, 94, 168, 0.14);
}

#genericModal .select2-container {
  width: 100% !important;
}

#genericModal .select2-container--default .select2-selection--single {
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  min-height: 39px;
}

#genericModal .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #17202b;
  line-height: 37px;
  padding-left: 10px;
}

#genericModal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 37px;
}

#genericModal .rhsim-modal-form .btn,
#genericModal .modal-footer .btn {
  border-radius: 3px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

#genericModal .rhsim-modal-form .btn-success {
  background: #0f8b6f;
  border-color: #0f8b6f;
}

#genericModal .rhsim-modal-form .form-group.mt-3 {
  border-top: 1px solid #e5edf5;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px !important;
  padding-top: 12px;
}

.rhsim-nominal-modal {
  background: #f7f9fb;
  color: #17202b;
  display: grid;
  gap: 12px;
}

.rhsim-nominal-modal__header,
.rhsim-nominal-modal__tabs,
.rhsim-nominal-modal__content,
.rhsim-nominal-modal__footer {
  background: #ffffff;
  border: 1px solid #d8e0ea;
}

.rhsim-nominal-modal__header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.rhsim-nominal-modal__header span,
.rhsim-nominal-modal__footer {
  color: #66717f;
}

.rhsim-nominal-modal__header > div > span {
  color: #255ea8;
  display: block;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rhsim-nominal-modal__header h2 {
  color: #17202b;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 2px 0 0;
  text-transform: uppercase;
}

.rhsim-nominal-modal__pdf {
  align-items: center;
  background: #a3443f;
  border: 1px solid #a3443f;
  border-radius: 3px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.rhsim-nominal-modal__pdf:hover {
  background: #8f3733;
  border-color: #8f3733;
  color: #ffffff;
  text-decoration: none;
}

.rhsim-nominal-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.rhsim-nominal-modal__tab {
  align-items: center;
  background: #f9fbfd;
  border: 1px solid #d8e0ea;
  border-radius: 3px;
  color: #66717f;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rhsim-nominal-modal__tab:hover,
.rhsim-nominal-modal__tab.is-active {
  background: rgba(37, 94, 168, 0.10);
  border-color: rgba(37, 94, 168, 0.35);
  color: #255ea8;
}

.rhsim-nominal-modal__tab.is-active {
  box-shadow: inset 0 -3px 0 #255ea8;
}

.rhsim-nominal-modal__content {
  min-height: 360px;
  overflow: hidden;
}

.rhsim-nominal-modal__panel {
  display: none;
}

.rhsim-nominal-modal__panel.is-active {
  animation: rhsimTabIn 180ms ease both;
  display: block;
}

.rhsim-nominal-modal__table-wrap {
  max-height: 430px;
  overflow: auto;
}

.rhsim-nominal-modal__table-wrap--compact {
  max-width: 620px;
}

.rhsim-nominal-modal__table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.rhsim-nominal-modal__table-wrap--compact .rhsim-nominal-modal__table {
  min-width: 460px;
}

.rhsim-nominal-modal__table th,
.rhsim-nominal-modal__table td {
  border-bottom: 1px solid #e8edf2;
  color: #17202b;
  font-size: 0.8rem;
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.rhsim-nominal-modal__table th {
  background: #1f2933;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.rhsim-nominal-modal__table tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.rhsim-nominal-modal__table tbody tr:hover {
  background: #eef5fb;
}

.rhsim-nominal-profile-link,
.rhsim-nominal-profile-link:hover,
.rhsim-nominal-profile-link:focus,
.rhsim-nominal-profile-link:visited {
  color: inherit !important;
  display: inline;
  font: inherit;
  text-align: inherit;
  text-decoration: none !important;
}

.rhsim-nominal-modal__footer {
  font-size: 0.82rem;
  padding: 10px 12px;
  text-align: center;
}

@keyframes rhsimTabIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.admin-sidebar {
  background: #17202b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  display: flex;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
  text-decoration: none;
}

.admin-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.admin-brand img {
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.admin-brand span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-brand strong {
  font-size: 0.88rem;
  letter-spacing: 0;
  line-height: 1.1;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  line-height: 1.2;
}

.admin-nav {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
}

.admin-nav__link,
.admin-logout {
  align-items: center;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
}

.admin-nav__link i,
.admin-logout i {
  color: rgba(255, 255, 255, 0.54);
  font-size: 1rem;
  text-align: center;
  width: 20px;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: rgba(31, 111, 235, 0.18);
  color: #ffffff;
  text-decoration: none;
}

.admin-nav__link.is-active {
  box-shadow: inset 3px 0 0 #69a2ff;
}

.admin-nav__link:hover i,
.admin-nav__link.is-active i {
  color: #9ec3ff;
}

.admin-nav__link--filters {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(158, 195, 255, 0.18);
  color: #ffffff;
  min-height: 50px;
  padding-right: 10px;
  position: relative;
}

.admin-nav__link--filters i {
  align-items: center;
  background: #69a2ff;
  border-radius: 4px;
  color: #17202b;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.admin-nav__link--filters span {
  font-weight: 800;
  line-height: 1.15;
}

.admin-nav__link--filters::after {
  background: rgba(105, 162, 255, 0.16);
  border: 1px solid rgba(105, 162, 255, 0.24);
  color: #cfe1ff;
  content: "Consulta";
  font-size: 0.66rem;
  font-weight: 800;
  margin-left: auto;
  padding: 3px 6px;
  text-transform: uppercase;
}

.admin-nav__link--filters:hover,
.admin-nav__link--filters.is-active {
  background: rgba(31, 111, 235, 0.28);
  border-color: rgba(105, 162, 255, 0.42);
}

.admin-nav__link--filters:hover i,
.admin-nav__link--filters.is-active i {
  color: #17202b;
}

.admin-sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: auto;
  padding: 12px;
}

.admin-sidebar__links {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px;
}

.admin-sidebar__external {
  align-items: center;
  background: rgba(23, 32, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex: 1;
  height: 38px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-sidebar__external i {
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem;
  text-align: center;
  width: 18px;
}

.admin-sidebar__external:hover {
  background: rgba(31, 111, 235, 0.24);
  border-color: rgba(105, 162, 255, 0.42);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.admin-sidebar__external:hover i {
  color: #9ec3ff;
}

.admin-logout:hover {
  background: rgba(189, 63, 58, 0.18);
  color: #ffffff;
  text-decoration: none;
}

.admin-main {
  min-width: 0;
  padding: 0;
  position: relative;
}

.admin-command-bar {
  align-items: center;
  background: #eef2f6;
  border: 0;
  border-bottom: 1px solid #ccd6e1;
  border-radius: 0;
  box-shadow: none;
  color: #17202b;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-command-bar::after {
  background: linear-gradient(90deg, rgba(23, 32, 43, 0.12), rgba(23, 32, 43, 0));
  bottom: -4px;
  content: "";
  height: 4px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.admin-command-bar div {
  display: grid;
  gap: 2px;
}

.admin-command-bar span {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-command-bar strong {
  font-size: 1.2rem;
}

.admin-search {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bfcad7;
  border-radius: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 0 0 0 4px;
}

.admin-search i {
  color: #1f6feb;
}

.admin-search input {
  background: transparent;
  border: 0;
  color: #18212b;
  min-width: 0;
  outline: 0;
}

.admin-search button {
  background: transparent;
  border: 0;
  border-left: 1px solid #cbd5e1;
  border-radius: 0;
  color: #255ea8;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.admin-search button:hover {
  background: rgba(37, 94, 168, 0.08);
  color: #174a86;
}

.admin-main > .rh-dashboard {
  border-radius: 6px;
  margin-left: 0;
  margin-top: 14px;
}

@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }

  .main-content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .admin-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-sidebar {
    border-radius: 0;
    height: 100vh;
    margin-bottom: 0;
    position: sticky;
    top: 0;
  }

  .admin-brand {
    justify-content: center;
    min-height: 74px;
    padding: 12px;
  }

  .admin-brand img {
    height: 42px;
    width: 42px;
  }

  .admin-brand span,
  .admin-nav__link span,
  .admin-logout span {
    display: none;
  }

  .admin-nav {
    grid-template-columns: 1fr;
    padding: 12px 8px;
  }

  .admin-nav__link,
  .admin-sidebar__external,
  .admin-logout {
    justify-content: center;
    padding: 0;
  }

  .admin-nav__link i,
  .admin-sidebar__external i,
  .admin-logout i {
    font-size: 1.05rem;
    width: auto;
  }

  .admin-sidebar__links {
    background: transparent;
    border: 0;
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 0 10px;
  }

  .admin-sidebar__external {
    flex: initial;
    height: 40px;
    width: 100%;
  }

  .admin-nav__link--filters {
    min-height: 46px;
    padding: 0;
  }

  .admin-nav__link--filters i {
    height: 34px;
    width: 34px;
  }

  .admin-nav__link--filters::after {
    display: none;
  }

  .admin-main {
    padding-left: 0;
  }

  .admin-command-bar {
    grid-template-columns: 1fr;
    padding-right: 12px;
  }

  #genericModal .modal-dialog {
    margin: 10px;
  }

  #genericModal .rhsim-modal-form .row {
    display: grid;
    gap: 12px;
  }

  #genericModal .rhsim-modal-form .col,
  #genericModal .rhsim-modal-form [class*="col-"] {
    min-width: 0;
    width: 100%;
  }

  #genericModal .rhsim-modal-form .form-group.mt-3 {
    align-items: stretch;
    flex-direction: column;
  }
}

.rhsim-theme-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7dee6;
  color: #1f2933;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  margin: 0 0 0 auto;
  min-height: 36px;
  min-width: 128px;
  padding: 7px 11px;
  white-space: nowrap;
}

.rhsim-theme-toggle:hover {
  background: #eef2f6;
  color: #255ea8;
}

.rhsim-theme-toggle i {
  color: #255ea8;
}

[data-rh-theme="dark"] body {
  background: #111827;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .main-content,
[data-rh-theme="dark"] .admin-shell,
[data-rh-theme="dark"] .admin-main,
[data-rh-theme="dark"] .rh-dashboard {
  background: #111827;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .admin-command-bar,
[data-rh-theme="dark"] .people-module,
[data-rh-theme="dark"] .people-toolbar,
[data-rh-theme="dark"] .people-list,
[data-rh-theme="dark"] .people-pagination,
[data-rh-theme="dark"] .card,
[data-rh-theme="dark"] .container,
[data-rh-theme="dark"] .table-responsive,
[data-rh-theme="dark"] #genericModal .modal-content,
[data-rh-theme="dark"] #genericModal .modal-header,
[data-rh-theme="dark"] #genericModal .modal-footer,
[data-rh-theme="dark"] #genericModal .modal-body,
[data-rh-theme="dark"] .rhsim-nominal-modal,
[data-rh-theme="dark"] .rhsim-nominal-modal__header,
[data-rh-theme="dark"] .rhsim-nominal-modal__tabs,
[data-rh-theme="dark"] .rhsim-nominal-modal__content,
[data-rh-theme="dark"] .rhsim-nominal-modal__footer {
  background: #182230;
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .admin-sidebar {
  background: #0f172a;
  border-color: #334155;
}

[data-rh-theme="dark"] .admin-sidebar a,
[data-rh-theme="dark"] .admin-sidebar__external,
[data-rh-theme="dark"] .people-person,
[data-rh-theme="dark"] .people-cell,
[data-rh-theme="dark"] .people-actions a,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab,
[data-rh-theme="dark"] .rhsim-nominal-modal__pdf {
  color: #f4f7fb;
  border-color: #334155;
}

[data-rh-theme="dark"] .admin-sidebar a:hover,
[data-rh-theme="dark"] .admin-sidebar__external:hover,
[data-rh-theme="dark"] .people-row:hover,
[data-rh-theme="dark"] .people-person:hover,
[data-rh-theme="dark"] .people-actions a:hover,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab:hover,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab.is-active {
  background: #243247;
}

[data-rh-theme="dark"] .admin-command-bar span,
[data-rh-theme="dark"] .people-toolbar span,
[data-rh-theme="dark"] .people-person small,
[data-rh-theme="dark"] .people-cell small,
[data-rh-theme="dark"] .rhsim-nominal-modal__header span,
[data-rh-theme="dark"] .rhsim-nominal-modal__footer,
[data-rh-theme="dark"] .text-muted {
  color: #a8b3c4 !important;
}

[data-rh-theme="dark"] .admin-command-bar strong,
[data-rh-theme="dark"] .people-toolbar strong,
[data-rh-theme="dark"] .people-person strong,
[data-rh-theme="dark"] .people-cell strong,
[data-rh-theme="dark"] h1,
[data-rh-theme="dark"] h2,
[data-rh-theme="dark"] h3,
[data-rh-theme="dark"] h4,
[data-rh-theme="dark"] h5,
[data-rh-theme="dark"] h6,
[data-rh-theme="dark"] label {
  color: #f4f7fb;
}

[data-rh-theme="dark"] input,
[data-rh-theme="dark"] select,
[data-rh-theme="dark"] textarea,
[data-rh-theme="dark"] .form-control,
[data-rh-theme="dark"] .form-select,
[data-rh-theme="dark"] .admin-search input {
  background: #111827;
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] input::placeholder,
[data-rh-theme="dark"] textarea::placeholder {
  color: #7f8da3;
}

[data-rh-theme="dark"] .admin-search,
[data-rh-theme="dark"] .people-list__head,
[data-rh-theme="dark"] .rhsim-nominal-modal__table th,
[data-rh-theme="dark"] table thead,
[data-rh-theme="dark"] .table thead {
  background: #202b3a;
  color: #f4f7fb;
}

[data-rh-theme="dark"] table,
[data-rh-theme="dark"] .table,
[data-rh-theme="dark"] table td,
[data-rh-theme="dark"] table th,
[data-rh-theme="dark"] .table td,
[data-rh-theme="dark"] .table th,
[data-rh-theme="dark"] .people-list__head,
[data-rh-theme="dark"] .people-row,
[data-rh-theme="dark"] .rhsim-nominal-modal__table th,
[data-rh-theme="dark"] .rhsim-nominal-modal__table td {
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] tbody tr:nth-child(even),
[data-rh-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-rh-theme="dark"] .rhsim-nominal-modal__table tbody tr:nth-child(even) {
  background: #202b3a;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .modal-backdrop {
  background: #000;
}

[data-rh-theme="dark"] .rh-modern {
  --rh-bg: #111827;
  --rh-surface: #182230;
  --rh-surface-soft: #202b3a;
  --rh-surface-hover: #243247;
  --rh-ink: #f4f7fb;
  --rh-muted: #a8b3c4;
  --rh-line: #334155;
  --rh-line-soft: #2a384b;
  --rh-blue: #6aa7ff;
  --rh-green: #55c59f;
  --rh-amber: #f1c96b;
  --rh-red: #f1807f;
  --rh-rose: #e48aa8;
}

[data-rh-theme="dark"] .rh-overview,
[data-rh-theme="dark"] .rh-kpi-grid,
[data-rh-theme="dark"] .rh-content-grid,
[data-rh-theme="dark"] .rh-lower-grid,
[data-rh-theme="dark"] .rh-panel,
[data-rh-theme="dark"] .rh-kpi,
[data-rh-theme="dark"] .rhsim-theme-toggle {
  background: #182230;
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .rh-overview__lead,
[data-rh-theme="dark"] .rh-shortcut--featured,
[data-rh-theme="dark"] .rh-shortcut > i:first-child {
  background: #202b3a;
}

[data-rh-theme="dark"] .rh-overview__lead span,
[data-rh-theme="dark"] .rh-overview__metric span,
[data-rh-theme="dark"] .rh-overview__metric small,
[data-rh-theme="dark"] .rh-kpi span,
[data-rh-theme="dark"] .rh-kpi small,
[data-rh-theme="dark"] .rh-bar-row span,
[data-rh-theme="dark"] .rh-mini-row span,
[data-rh-theme="dark"] .rh-shortcut span,
[data-rh-theme="dark"] .rh-section__header span,
[data-rh-theme="dark"] .rh-shortcut__arrow {
  color: #a8b3c4;
}

[data-rh-theme="dark"] .rh-kpi:hover,
[data-rh-theme="dark"] .rh-bar-row:hover,
[data-rh-theme="dark"] .rh-mini-row:hover,
[data-rh-theme="dark"] .rh-shortcut:hover,
[data-rh-theme="dark"] .rhsim-theme-toggle:hover {
  background: #243247;
}

.rh-filtered-list__date--late {
  background: transparent !important;
  border-color: #d7dee6 !important;
  color: #a3443f !important;
  font-weight: 850;
}

[data-rh-theme="dark"] .rh-filtered-list__date--late {
  border-color: #334155 !important;
  color: #f1807f !important;
}

[data-rh-theme="dark"] .bg-white,
[data-rh-theme="dark"] .bg-light,
[data-rh-theme="dark"] .table-light,
[data-rh-theme="dark"] .list-group-item,
[data-rh-theme="dark"] .dropdown-menu,
[data-rh-theme="dark"] .page-link,
[data-rh-theme="dark"] .pagination,
[data-rh-theme="dark"] .modal-content,
[data-rh-theme="dark"] .modal-header,
[data-rh-theme="dark"] .modal-footer,
[data-rh-theme="dark"] section#form,
[data-rh-theme="dark"] article,
[data-rh-theme="dark"] .shadow-sm,
[data-rh-theme="dark"] .rounded {
  background-color: #182230 !important;
  border-color: #334155 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .table-light > *,
[data-rh-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-rh-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-rh-theme="dark"] .table-hover > tbody > tr:hover,
[data-rh-theme="dark"] tr.table-light,
[data-rh-theme="dark"] tr.table-light > td,
[data-rh-theme="dark"] tr.table-light > th {
  background-color: #202b3a !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-rh-theme="dark"] .list-group-item:hover,
[data-rh-theme="dark"] .dropdown-item:hover,
[data-rh-theme="dark"] .page-link:hover {
  background-color: #243247 !important;
}

[data-rh-theme="dark"] a:not(.btn):not(.people-add):not(.rhsim-nominal-modal__pdf) {
  color: #8cbcff;
}

[data-rh-theme="dark"] a:not(.btn):not(.people-add):not(.rhsim-nominal-modal__pdf):hover {
  color: #b8d6ff;
}

[data-rh-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1);
}

[data-rh-theme="dark"] .alert,
[data-rh-theme="dark"] .alert-success,
[data-rh-theme="dark"] .alert-danger,
[data-rh-theme="dark"] .alert-warning,
[data-rh-theme="dark"] .alert-info {
  background-color: #202b3a;
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .badge.bg-secondary,
[data-rh-theme="dark"] .badge.bg-light {
  background-color: #334155 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .select2-container--default .select2-selection--single,
[data-rh-theme="dark"] .select2-dropdown,
[data-rh-theme="dark"] .select2-search__field,
[data-rh-theme="dark"] .select2-results__option {
  background-color: #111827 !important;
  border-color: #334155 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #243247 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .rh-filtered-list,
[data-rh-theme="dark"] .rh-filtered-list__header,
[data-rh-theme="dark"] .rh-filtered-list__summary,
[data-rh-theme="dark"] .rh-filtered-list__table-wrap,
[data-rh-theme="dark"] .rh-filtered-list__cards,
[data-rh-theme="dark"] .rh-filtered-list__card,
[data-rh-theme="dark"] .rh-filtered-list__details,
[data-rh-theme="dark"] .rh-profile,
[data-rh-theme="dark"] .rh-profile__card,
[data-rh-theme="dark"] .rh-profile__panel,
[data-rh-theme="dark"] .rh-profile__table-wrap,
[data-rh-theme="dark"] .rh-registry-filter,
[data-rh-theme="dark"] .rh-registry-filter__header,
[data-rh-theme="dark"] .rh-registry-filter__summary,
[data-rh-theme="dark"] .rh-registry-filter__results,
[data-rh-theme="dark"] .rh-trend-report,
[data-rh-theme="dark"] .rh-trend-report__chart-panel,
[data-rh-theme="dark"] .rh-trend-report__table-panel,
[data-rh-theme="dark"] .rh-absence-report,
[data-rh-theme="dark"] .rh-absence-report__panel,
[data-rh-theme="dark"] .rh-pyramid-report,
[data-rh-theme="dark"] .rh-pyramid-report__panel {
  background: #182230 !important;
  border-color: #334155 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .rh-filtered-list__details div,
[data-rh-theme="dark"] .rh-profile__button,
[data-rh-theme="dark"] .rh-profile__metric,
[data-rh-theme="dark"] .rh-profile__tab,
[data-rh-theme="dark"] .rh-registry-filter__table-wrap,
[data-rh-theme="dark"] .rh-trend-report__table-wrap,
[data-rh-theme="dark"] .rh-absence-report__table-wrap,
[data-rh-theme="dark"] .rh-pyramid-report__table-wrap {
  background: #202b3a !important;
  border-color: #334155 !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .rh-profile__tab.active,
[data-rh-theme="dark"] .rh-profile__tab:hover,
[data-rh-theme="dark"] .rh-filtered-list__card:hover,
[data-rh-theme="dark"] .rh-registry-filter__table tbody tr:hover {
  background: #243247 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__header span,
[data-rh-theme="dark"] .rh-filtered-list__summary span,
[data-rh-theme="dark"] .rh-filtered-list__person span,
[data-rh-theme="dark"] .rh-filtered-list__details dt,
[data-rh-theme="dark"] .rh-profile__card p,
[data-rh-theme="dark"] .rh-profile__metric span,
[data-rh-theme="dark"] .rh-profile__table td:first-child,
[data-rh-theme="dark"] .rh-registry-filter__chips span,
[data-rh-theme="dark"] .rh-trend-report__header span,
[data-rh-theme="dark"] .rh-absence-report__header span,
[data-rh-theme="dark"] .rh-pyramid-report__header span {
  color: #a8b3c4 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__table th,
[data-rh-theme="dark"] .rh-registry-filter__table th,
[data-rh-theme="dark"] .rh-trend-report__table th,
[data-rh-theme="dark"] .rh-absence-report__table th,
[data-rh-theme="dark"] .rh-pyramid-report__table th {
  background: #202b3a !important;
  color: #f4f7fb !important;
}

[data-rh-theme="dark"] .rh-filtered-list__table td,
[data-rh-theme="dark"] .rh-registry-filter__table td,
[data-rh-theme="dark"] .rh-trend-report__table td,
[data-rh-theme="dark"] .rh-absence-report__table td,
[data-rh-theme="dark"] .rh-pyramid-report__table td {
  border-color: #334155 !important;
  color: #f4f7fb !important;
}

@media (max-width: 520px) {
  .main-content {
    padding: 0;
  }

  .admin-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-main {
    padding-left: 0;
  }

  .admin-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-search button {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #cbd5e1;
  }

  .admin-main > .rh-dashboard {
    margin-left: 0;
    margin-top: 10px;
  }
}

.people-module {
  background: #f4f6f8;
  border: 1px solid #d7dee6;
  margin-top: 14px;
}

.people-toolbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d7dee6;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
}

.people-toolbar div {
  display: grid;
  gap: 2px;
}

.people-toolbar span {
  color: #66717f;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.people-toolbar strong {
  color: #1f2933;
  font-size: 1rem;
}

.people-add {
  align-items: center;
  background: #17202b;
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}

.people-add:hover {
  background: #255ea8;
  color: #ffffff;
  text-decoration: none;
}

.people-list {
  background: #ffffff;
  overflow-x: auto;
}

.people-list__head,
.people-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 150px minmax(190px, 1fr) 120px minmax(210px, auto);
  min-width: 940px;
}

.people-list__head {
  background: #f8fafc;
  border-bottom: 1px solid #d7dee6;
  color: #66717f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.people-list__head span,
.people-row > * {
  align-items: center;
  border-right: 1px solid #e8edf2;
  display: flex;
  min-width: 0;
  padding: 10px 12px;
}

.people-list__head span:last-child,
.people-row > *:last-child {
  border-right: 0;
}

.people-row {
  border-bottom: 1px solid #e8edf2;
  min-height: 64px;
}

.people-row:hover {
  background: #f8fafc;
}

.people-person {
  color: #1f2933;
  gap: 10px;
  text-decoration: none;
}

.people-person:hover {
  color: #255ea8;
  text-decoration: none;
}

.people-person img {
  background: #eef2f6;
  border: 1px solid #d7dee6;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.people-person span,
.people-cell {
  display: grid;
  gap: 3px;
}

.people-person strong,
.people-cell strong {
  color: #1f2933;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-person small,
.people-cell small {
  color: #66717f;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-state .badge {
  border-radius: 0;
  font-weight: 700;
}

.people-actions {
  gap: 6px;
  justify-content: flex-end;
}

.people-actions a {
  align-items: center;
  border: 1px solid #d7dee6;
  color: #1f2933;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding: 0 9px;
  text-decoration: none;
}

.people-actions a:hover {
  background: #eef2f6;
  color: #255ea8;
  text-decoration: none;
}

.people-pagination {
  background: #ffffff;
  border-top: 1px solid #d7dee6;
  padding: 10px 12px;
}

@media (max-width: 760px) {
  .people-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .people-add {
    justify-content: center;
  }
}

/* Camada final de legibilidade do modo escuro. Mantem contraste consistente em telas antigas e novas. */
[data-rh-theme="dark"] {
  color-scheme: dark;
}

[data-rh-theme="dark"],
[data-rh-theme="dark"] body,
[data-rh-theme="dark"] .main-content,
[data-rh-theme="dark"] .admin-shell,
[data-rh-theme="dark"] .admin-main {
  background: #0f172a !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .admin-command-bar,
[data-rh-theme="dark"] .people-module,
[data-rh-theme="dark"] .people-toolbar,
[data-rh-theme="dark"] .people-list,
[data-rh-theme="dark"] .people-pagination,
[data-rh-theme="dark"] .card,
[data-rh-theme="dark"] .container,
[data-rh-theme="dark"] .table-responsive,
[data-rh-theme="dark"] .modal-content,
[data-rh-theme="dark"] .modal-header,
[data-rh-theme="dark"] .modal-body,
[data-rh-theme="dark"] .modal-footer,
[data-rh-theme="dark"] .dropdown-menu,
[data-rh-theme="dark"] .list-group-item,
[data-rh-theme="dark"] .page-link,
[data-rh-theme="dark"] .bg-white,
[data-rh-theme="dark"] .bg-light,
[data-rh-theme="dark"] .shadow-sm,
[data-rh-theme="dark"] section#form,
[data-rh-theme="dark"] article:not(.rh-overview__lead):not(.rh-overview__metric):not(.rh-kpi):not(.rh-panel) {
  background: #182230 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .admin-sidebar {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .admin-sidebar a,
[data-rh-theme="dark"] .admin-sidebar__external,
[data-rh-theme="dark"] .people-person,
[data-rh-theme="dark"] .people-actions a,
[data-rh-theme="dark"] .dropdown-item,
[data-rh-theme="dark"] .page-link {
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .admin-sidebar a:hover,
[data-rh-theme="dark"] .admin-sidebar__external:hover,
[data-rh-theme="dark"] .people-row:hover,
[data-rh-theme="dark"] .people-person:hover,
[data-rh-theme="dark"] .people-actions a:hover,
[data-rh-theme="dark"] .dropdown-item:hover,
[data-rh-theme="dark"] .page-link:hover {
  background: #243247 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] h1,
[data-rh-theme="dark"] h2,
[data-rh-theme="dark"] h3,
[data-rh-theme="dark"] h4,
[data-rh-theme="dark"] h5,
[data-rh-theme="dark"] h6,
[data-rh-theme="dark"] label,
[data-rh-theme="dark"] strong,
[data-rh-theme="dark"] .people-toolbar strong,
[data-rh-theme="dark"] .people-person strong,
[data-rh-theme="dark"] .people-cell strong,
[data-rh-theme="dark"] .modal-title {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] small,
[data-rh-theme="dark"] .text-muted,
[data-rh-theme="dark"] .people-toolbar span,
[data-rh-theme="dark"] .people-person small,
[data-rh-theme="dark"] .people-cell small,
[data-rh-theme="dark"] .admin-command-bar span,
[data-rh-theme="dark"] .form-text {
  color: #a8b3c4 !important;
}

[data-rh-theme="dark"] input,
[data-rh-theme="dark"] select,
[data-rh-theme="dark"] textarea,
[data-rh-theme="dark"] .form-control,
[data-rh-theme="dark"] .form-select,
[data-rh-theme="dark"] .admin-search,
[data-rh-theme="dark"] .admin-search input,
[data-rh-theme="dark"] .select2-container--default .select2-selection--single,
[data-rh-theme="dark"] .select2-dropdown,
[data-rh-theme="dark"] .select2-search__field {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] input:focus,
[data-rh-theme="dark"] select:focus,
[data-rh-theme="dark"] textarea:focus,
[data-rh-theme="dark"] .form-control:focus,
[data-rh-theme="dark"] .form-select:focus {
  background: #111827 !important;
  border-color: #6aa7ff !important;
  box-shadow: 0 0 0 0.15rem rgba(106, 167, 255, 0.22) !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] input::placeholder,
[data-rh-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}

/* Ajuste específico do perfil do efetivo no modo escuro */
[data-rh-theme="dark"] .rh-profile,
[data-rh-theme="dark"] .rh-profile__main,
[data-rh-theme="dark"] .rh-profile__aside {
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-profile__card,
[data-rh-theme="dark"] .rh-profile__summary,
[data-rh-theme="dark"] .rh-profile__hero,
[data-rh-theme="dark"] .rh-profile__panel,
[data-rh-theme="dark"] .rh-profile__info-grid article,
[data-rh-theme="dark"] .rh-profile__service div,
[data-rh-theme="dark"] .rh-profile__table-wrap,
[data-rh-theme="dark"] .rh-profile__table,
[data-rh-theme="dark"] .rh-profile__table tbody tr,
[data-rh-theme="dark"] .rh-profile__table tbody td {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-profile__card h1,
[data-rh-theme="dark"] .rh-profile__hero h2,
[data-rh-theme="dark"] .rh-profile__panel h3,
[data-rh-theme="dark"] .rh-profile__table-block h3,
[data-rh-theme="dark"] .rh-profile__service strong,
[data-rh-theme="dark"] .rh-profile__summary strong,
[data-rh-theme="dark"] .rh-profile__info-grid strong,
[data-rh-theme="dark"] .rh-profile__table strong,
[data-rh-theme="dark"] .rh-profile__table b {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-profile__card p,
[data-rh-theme="dark"] .rh-profile__hero > div > span,
[data-rh-theme="dark"] .rh-profile__summary span,
[data-rh-theme="dark"] .rh-profile__info-grid span,
[data-rh-theme="dark"] .rh-profile__service span,
[data-rh-theme="dark"] .rh-profile__table td,
[data-rh-theme="dark"] .rh-profile__table td span,
[data-rh-theme="dark"] .rh-profile__table td small {
  color: #cbd5e1 !important;
}

[data-rh-theme="dark"] .rh-profile__table thead th,
[data-rh-theme="dark"] .rh-profile__table th {
  background: #1f2937 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-profile__table tbody tr:hover,
[data-rh-theme="dark"] .rh-profile__table tbody tr:hover td {
  background: #1e293b !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .rh-profile__badges span,
[data-rh-theme="dark"] .rh-profile__badge-muted {
  background: #1e293b !important;
  border: 1px solid #475569 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-profile__photo,
[data-rh-theme="dark"] .rh-profile__photo--empty {
  background: #1f2937 !important;
  border-color: #475569 !important;
}

[data-rh-theme="dark"] .rh-profile__photo--empty span {
  color: #f8fafc !important;
}

/* Pirâmide de categoria no modo escuro */
[data-rh-theme="dark"] .rh-pyramid-report {
  background: #0f172a !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__header,
[data-rh-theme="dark"] .rh-pyramid-report__metrics,
[data-rh-theme="dark"] .rh-pyramid-report__panel {
  background: #111827 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__header h1,
[data-rh-theme="dark"] .rh-pyramid-report__section-title h2,
[data-rh-theme="dark"] .rh-pyramid-report__row > span,
[data-rh-theme="dark"] .rh-pyramid-report__table td {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__header span,
[data-rh-theme="dark"] .rh-pyramid-report__metrics span,
[data-rh-theme="dark"] .rh-pyramid-report__section-title span,
[data-rh-theme="dark"] .rh-pyramid-report__empty {
  color: #a8b3c7 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__metrics article,
[data-rh-theme="dark"] .rh-pyramid-report__section-title {
  border-color: #334155 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__metrics strong {
  color: #93c5fd !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__chart {
  background: #111827 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__row {
  background: #172033 !important;
  border: 1px solid #263449 !important;
  padding: 8px 10px;
}

[data-rh-theme="dark"] .rh-pyramid-report__track {
  background: #0b1220 !important;
  border-color: #334155 !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

[data-rh-theme="dark"] .rh-pyramid-report__track i {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 48%, #22c55e 100%) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
  opacity: 0.95;
}

[data-rh-theme="dark"] .rh-pyramid-report__track strong {
  color: #ffffff !important;
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(226, 232, 240, 0.2) !important;
  border-radius: 999px;
  line-height: 1;
  min-width: 34px;
  padding: 4px 9px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.95);
}

[data-rh-theme="dark"] .rh-pyramid-report__table-wrap {
  border-color: #334155 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__table th {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__table td {
  border-color: #263449 !important;
}

[data-rh-theme="dark"] .rh-pyramid-report__table tbody tr:nth-child(even),
[data-rh-theme="dark"] .rh-pyramid-report__table tbody tr:hover {
  background: #172033 !important;
}

/* Botões de ações do perfil no modo escuro */
[data-rh-theme="dark"] .rh-profile__top-actions a,
[data-rh-theme="dark"] .rh-profile__action-grid a,
[data-rh-theme="dark"] .rh-profile__table a,
[data-rh-theme="dark"] .rh-profile__table button,
[data-rh-theme="dark"] .rh-profile__table .btn,
[data-rh-theme="dark"] .rh-profile__table [class*="btn"],
[data-rh-theme="dark"] .rh-profile__panel a.btn,
[data-rh-theme="dark"] .rh-profile__panel button.btn {
  background: #020617 !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

[data-rh-theme="dark"] .rh-profile__top-actions a span,
[data-rh-theme="dark"] .rh-profile__action-grid a span,
[data-rh-theme="dark"] .rh-profile__table a span,
[data-rh-theme="dark"] .rh-profile__table button span,
[data-rh-theme="dark"] .rh-profile__table .btn span,
[data-rh-theme="dark"] .rh-profile__table [class*="btn"] span,
[data-rh-theme="dark"] .rh-profile__panel a.btn span,
[data-rh-theme="dark"] .rh-profile__panel button.btn span {
  color: #ffffff !important;
}

[data-rh-theme="dark"] .rh-profile__top-actions a:hover,
[data-rh-theme="dark"] .rh-profile__action-grid a:hover,
[data-rh-theme="dark"] .rh-profile__table a:hover,
[data-rh-theme="dark"] .rh-profile__table button:hover,
[data-rh-theme="dark"] .rh-profile__table .btn:hover,
[data-rh-theme="dark"] .rh-profile__table [class*="btn"]:hover,
[data-rh-theme="dark"] .rh-profile__panel a.btn:hover,
[data-rh-theme="dark"] .rh-profile__panel button.btn:hover {
  background: #0f172a !important;
  border-color: #64748b !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .rh-profile__action-grid li {
  background: transparent !important;
}

/* Linhas e cartões clicáveis das listas filtradas */
.rh-filtered-list__row--clickable,
.rh-filtered-list__card--clickable {
  cursor: pointer;
}

.rh-filtered-list__row--clickable:hover,
.rh-filtered-list__row--clickable:focus,
.rh-filtered-list__card--clickable:hover,
.rh-filtered-list__card--clickable:focus {
  background: #eef5fb !important;
  outline: 2px solid #255ea8;
  outline-offset: -2px;
}

[data-rh-theme="dark"] .rh-filtered-list__row--clickable:hover,
[data-rh-theme="dark"] .rh-filtered-list__row--clickable:focus,
[data-rh-theme="dark"] .rh-filtered-list__card--clickable:hover,
[data-rh-theme="dark"] .rh-filtered-list__card--clickable:focus {
  background: #1e293b !important;
  outline-color: #60a5fa;
}

.rh-filtered-list__profile-link {
  background: #111827 !important;
  border: 1px solid #111827 !important;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  min-width: 64px;
  padding: 7px 10px;
  text-decoration: none !important;
}

.rh-filtered-list__profile-link:hover,
.rh-filtered-list__profile-link:focus {
  background: #255ea8 !important;
  border-color: #255ea8 !important;
  color: #ffffff !important;
  outline: 2px solid rgba(37, 94, 168, 0.28);
  outline-offset: 1px;
}

[data-rh-theme="dark"] .rh-filtered-list__profile-link {
  background: #020617 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .rh-filtered-list__profile-link:hover,
[data-rh-theme="dark"] .rh-filtered-list__profile-link:focus {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

/* Cartões das listas de ausentes/formação no modo escuro */
[data-rh-theme="dark"] .rh-filtered-list__cards,
[data-rh-theme="dark"] .rh-filtered-list__card {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__card:hover,
[data-rh-theme="dark"] .rh-filtered-list__card--clickable:hover,
[data-rh-theme="dark"] .rh-filtered-list__card--clickable:focus {
  background: #1e293b !important;
}

[data-rh-theme="dark"] .rh-filtered-list__person strong {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-filtered-list__person span,
[data-rh-theme="dark"] .rh-filtered-list__date {
  background: transparent !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__date--late {
  color: #f87171 !important;
  font-weight: 850;
}

[data-rh-theme="dark"] .rh-filtered-list__details div {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__details dt {
  color: #a8b3c7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__details dd {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-filtered-list__badges span {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__photo--empty {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #93c5fd !important;
}

/* Gráfico de fluxo de efetivos no modo escuro */
[data-rh-theme="dark"] .rh-trend-report__chart-panel,
[data-rh-theme="dark"] .rh-trend-report__table-panel,
[data-rh-theme="dark"] .rh-trend-report__metrics,
[data-rh-theme="dark"] .rh-trend-report__header {
  background: #111827 !important;
  border-color: #334155 !important;
}

[data-rh-theme="dark"] .rh-trend-report__chart {
  background: #111827 !important;
}

[data-rh-theme="dark"] .rh-trend-report__grid line {
  stroke: #263449 !important;
}

[data-rh-theme="dark"] .rh-trend-report__point {
  stroke: #111827 !important;
  stroke-width: 1.5 !important;
}

[data-rh-theme="dark"] .rh-trend-report__value,
[data-rh-theme="dark"] .rh-trend-report__year {
  font-weight: 500 !important;
  paint-order: normal !important;
  stroke: transparent !important;
  stroke-width: 0 !important;
}

[data-rh-theme="dark"] .rh-trend-report__value--in {
  fill: #93c5fd !important;
}

[data-rh-theme="dark"] .rh-trend-report__value--out {
  fill: #fca5a5 !important;
}

[data-rh-theme="dark"] .rh-trend-report__year {
  fill: #a8b3c7 !important;
}

[data-rh-theme="dark"] .rh-trend-report__metrics strong {
  color: #93c5fd !important;
  font-weight: 750 !important;
}

[data-rh-theme="dark"] table,
[data-rh-theme="dark"] .table {
  background: #182230 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] thead,
[data-rh-theme="dark"] .table thead,
[data-rh-theme="dark"] .people-list__head,
[data-rh-theme="dark"] table th,
[data-rh-theme="dark"] .table th {
  background: #202b3a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] table td,
[data-rh-theme="dark"] .table td,
[data-rh-theme="dark"] .people-row > *,
[data-rh-theme="dark"] .people-list__head span {
  background-color: transparent !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] tbody tr:nth-child(even),
[data-rh-theme="dark"] tr.table-light,
[data-rh-theme="dark"] tr.table-light > td,
[data-rh-theme="dark"] .table-light > *,
[data-rh-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #202b3a !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .table-hover > tbody > tr:hover,
[data-rh-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-rh-theme="dark"] tbody tr:hover {
  background-color: #243247 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-outline-secondary,
[data-rh-theme="dark"] .btn-outline-dark,
[data-rh-theme="dark"] .btn-light,
[data-rh-theme="dark"] .btn-secondary {
  background: #202b3a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .btn-outline-secondary:hover,
[data-rh-theme="dark"] .btn-outline-dark:hover,
[data-rh-theme="dark"] .btn-light:hover,
[data-rh-theme="dark"] .btn-secondary:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .alert {
  background: #202b3a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .badge.bg-light,
[data-rh-theme="dark"] .badge.bg-secondary {
  background: #334155 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] img {
  border-color: #334155;
}

[data-rh-theme="dark"] hr {
  border-color: #334155;
  opacity: 1;
}

[data-rh-theme="dark"] .rh-filtered-list,
[data-rh-theme="dark"] .rh-profile,
[data-rh-theme="dark"] .rh-registry-filter,
[data-rh-theme="dark"] .rh-trend-report,
[data-rh-theme="dark"] .rh-absence-report,
[data-rh-theme="dark"] .rh-pyramid-report {
  background: #0f172a !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__header,
[data-rh-theme="dark"] .rh-filtered-list__summary,
[data-rh-theme="dark"] .rh-filtered-list__table-wrap,
[data-rh-theme="dark"] .rh-filtered-list__card,
[data-rh-theme="dark"] .rh-filtered-list__details,
[data-rh-theme="dark"] .rh-profile__card,
[data-rh-theme="dark"] .rh-profile__panel,
[data-rh-theme="dark"] .rh-profile__table-wrap,
[data-rh-theme="dark"] .rh-registry-filter__header,
[data-rh-theme="dark"] .rh-registry-filter__form,
[data-rh-theme="dark"] .rh-registry-filter__summary,
[data-rh-theme="dark"] .rh-registry-filter__results,
[data-rh-theme="dark"] .rh-trend-report__chart-panel,
[data-rh-theme="dark"] .rh-trend-report__table-panel,
[data-rh-theme="dark"] .rh-absence-report__panel,
[data-rh-theme="dark"] .rh-pyramid-report__panel {
  background: #182230 !important;
  border-color: #334155 !important;
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__details div,
[data-rh-theme="dark"] .rh-profile__button,
[data-rh-theme="dark"] .rh-profile__metric,
[data-rh-theme="dark"] .rh-profile__tab,
[data-rh-theme="dark"] .rh-registry-filter__chips span {
  background: #202b3a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .rh-profile__tab.active,
[data-rh-theme="dark"] .rh-profile__tab:hover,
[data-rh-theme="dark"] .rh-filtered-list__card:hover {
  background: #243247 !important;
}

[data-rh-theme="dark"] .rh-filtered-list__header span,
[data-rh-theme="dark"] .rh-filtered-list__summary span,
[data-rh-theme="dark"] .rh-filtered-list__person span,
[data-rh-theme="dark"] .rh-filtered-list__details dt,
[data-rh-theme="dark"] .rh-profile__card p,
[data-rh-theme="dark"] .rh-profile__metric span,
[data-rh-theme="dark"] .rh-profile__table td:first-child {
  color: #a8b3c4 !important;
}

/* Botões e abas no modo escuro */
[data-rh-theme="dark"] .btn,
[data-rh-theme="dark"] button,
[data-rh-theme="dark"] .people-add,
[data-rh-theme="dark"] .admin-search button,
[data-rh-theme="dark"] .rhsim-theme-toggle,
[data-rh-theme="dark"] .rh-profile__button,
[data-rh-theme="dark"] .rh-profile__action-grid a,
[data-rh-theme="dark"] .rh-filtered-list__actions a,
[data-rh-theme="dark"] .rh-filtered-list__edit,
[data-rh-theme="dark"] .rh-registry-filter__actions button {
  border-color: #475569 !important;
  color: #f8fafc !important;
  font-weight: 800;
}

[data-rh-theme="dark"] .btn-primary,
[data-rh-theme="dark"] .people-add,
[data-rh-theme="dark"] .admin-search button,
[data-rh-theme="dark"] .rh-filtered-list__edit,
[data-rh-theme="dark"] .rh-registry-filter__actions button {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-primary:hover,
[data-rh-theme="dark"] .people-add:hover,
[data-rh-theme="dark"] .admin-search button:hover,
[data-rh-theme="dark"] .rh-filtered-list__edit:hover,
[data-rh-theme="dark"] .rh-registry-filter__actions button:hover {
  background: #1d4ed8 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-success {
  background: #0f8b6f !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-success:hover {
  background: #0b745d !important;
  border-color: #6ee7b7 !important;
}

[data-rh-theme="dark"] .btn-danger,
[data-rh-theme="dark"] .rh-filtered-list__pdf,
[data-rh-theme="dark"] .rhsim-nominal-modal__pdf {
  background: #b91c1c !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-danger:hover,
[data-rh-theme="dark"] .rh-filtered-list__pdf:hover,
[data-rh-theme="dark"] .rhsim-nominal-modal__pdf:hover {
  background: #991b1b !important;
  border-color: #fca5a5 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-warning {
  background: #b7791f !important;
  border-color: #facc15 !important;
  color: #111827 !important;
}

[data-rh-theme="dark"] .btn-warning:hover {
  background: #d99b22 !important;
  border-color: #fde047 !important;
  color: #111827 !important;
}

[data-rh-theme="dark"] .btn-info {
  background: #0e7490 !important;
  border-color: #67e8f9 !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .btn-info:hover {
  background: #155e75 !important;
  border-color: #a5f3fc !important;
}

[data-rh-theme="dark"] .btn-secondary,
[data-rh-theme="dark"] .btn-light,
[data-rh-theme="dark"] .btn-dark,
[data-rh-theme="dark"] .btn-outline-primary,
[data-rh-theme="dark"] .btn-outline-secondary,
[data-rh-theme="dark"] .btn-outline-dark,
[data-rh-theme="dark"] .rhsim-theme-toggle,
[data-rh-theme="dark"] .rh-profile__button {
  background: #202b3a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .btn-secondary:hover,
[data-rh-theme="dark"] .btn-light:hover,
[data-rh-theme="dark"] .btn-dark:hover,
[data-rh-theme="dark"] .btn-outline-primary:hover,
[data-rh-theme="dark"] .btn-outline-secondary:hover,
[data-rh-theme="dark"] .btn-outline-dark:hover,
[data-rh-theme="dark"] .rhsim-theme-toggle:hover,
[data-rh-theme="dark"] .rh-profile__button:hover {
  background: #334155 !important;
  border-color: #6aa7ff !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .nav-tabs,
[data-rh-theme="dark"] .nav-pills,
[data-rh-theme="dark"] .rh-profile__tabs,
[data-rh-theme="dark"] .rh-filtered-list__tabs,
[data-rh-theme="dark"] .rhsim-nominal-modal__tabs {
  background: #182230 !important;
  border-color: #334155 !important;
}

[data-rh-theme="dark"] .nav-tabs .nav-link,
[data-rh-theme="dark"] .nav-pills .nav-link,
[data-rh-theme="dark"] .rh-profile__tabs button,
[data-rh-theme="dark"] .rh-profile__tab,
[data-rh-theme="dark"] .rh-filtered-list__tab,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab {
  background: #202b3a !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
  font-weight: 800;
}

[data-rh-theme="dark"] .nav-tabs .nav-link:hover,
[data-rh-theme="dark"] .nav-pills .nav-link:hover,
[data-rh-theme="dark"] .rh-profile__tabs button:hover,
[data-rh-theme="dark"] .rh-profile__tab:hover,
[data-rh-theme="dark"] .rh-filtered-list__tab:hover,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab:hover {
  background: #243247 !important;
  border-color: #6aa7ff !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .nav-tabs .nav-link.active,
[data-rh-theme="dark"] .nav-pills .nav-link.active,
[data-rh-theme="dark"] .rh-profile__tabs button.active,
[data-rh-theme="dark"] .rh-profile__tab.active,
[data-rh-theme="dark"] .rh-filtered-list__tab--active,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab.is-active {
  background: #2563eb !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

[data-rh-theme="dark"] .rh-filtered-list__tab strong,
[data-rh-theme="dark"] .rh-filtered-list__tab--active strong,
[data-rh-theme="dark"] .rhsim-nominal-modal__tab strong {
  color: inherit !important;
}

/* Legibilidade final para textos, números e contadores no modo escuro */
[data-rh-theme="dark"] .content *,
[data-rh-theme="dark"] .main-content *,
[data-rh-theme="dark"] .rh-dashboard *,
[data-rh-theme="dark"] .rh-profile *,
[data-rh-theme="dark"] .rh-filtered-list *,
[data-rh-theme="dark"] .rh-registry-filter *,
[data-rh-theme="dark"] .modal-content *,
[data-rh-theme="dark"] .card *,
[data-rh-theme="dark"] table * {
  border-color: #334155;
}

[data-rh-theme="dark"] .content p,
[data-rh-theme="dark"] .content span,
[data-rh-theme="dark"] .content small,
[data-rh-theme="dark"] .content label,
[data-rh-theme="dark"] .content strong,
[data-rh-theme="dark"] .content b,
[data-rh-theme="dark"] .content td,
[data-rh-theme="dark"] .content th,
[data-rh-theme="dark"] .main-content p,
[data-rh-theme="dark"] .main-content span,
[data-rh-theme="dark"] .main-content small,
[data-rh-theme="dark"] .main-content label,
[data-rh-theme="dark"] .main-content strong,
[data-rh-theme="dark"] .main-content b,
[data-rh-theme="dark"] .main-content td,
[data-rh-theme="dark"] .main-content th,
[data-rh-theme="dark"] .modal-content p,
[data-rh-theme="dark"] .modal-content span,
[data-rh-theme="dark"] .modal-content small,
[data-rh-theme="dark"] .modal-content label,
[data-rh-theme="dark"] .modal-content strong,
[data-rh-theme="dark"] .modal-content b,
[data-rh-theme="dark"] .modal-content td,
[data-rh-theme="dark"] .modal-content th {
  color: #e5edf7 !important;
}

[data-rh-theme="dark"] .text-muted,
[data-rh-theme="dark"] .muted,
[data-rh-theme="dark"] .help-text,
[data-rh-theme="dark"] .form-text,
[data-rh-theme="dark"] .rh-muted,
[data-rh-theme="dark"] .rh-dashboard small,
[data-rh-theme="dark"] .rh-profile small,
[data-rh-theme="dark"] .rh-filtered-list small,
[data-rh-theme="dark"] .rh-registry-filter small {
  color: #a8b3c7 !important;
}

[data-rh-theme="dark"] .badge,
[data-rh-theme="dark"] .label,
[data-rh-theme="dark"] .count,
[data-rh-theme="dark"] .counter,
[data-rh-theme="dark"] .stat,
[data-rh-theme="dark"] .number,
[data-rh-theme="dark"] .value,
[data-rh-theme="dark"] .total,
[data-rh-theme="dark"] [class*="count"],
[data-rh-theme="dark"] [class*="total"],
[data-rh-theme="dark"] [class*="value"],
[data-rh-theme="dark"] [class*="number"],
[data-rh-theme="dark"] [class*="metric"],
[data-rh-theme="dark"] [class*="kpi"] {
  color: #f8fafc !important;
}

[data-rh-theme="dark"] .badge,
[data-rh-theme="dark"] .label {
  background: #1f2937 !important;
  border: 1px solid #475569 !important;
}

[data-rh-theme="dark"] a:not(.btn):not(.button):not(.nav-link) {
  color: #93c5fd !important;
}

[data-rh-theme="dark"] a:not(.btn):not(.button):not(.nav-link):hover {
  color: #bfdbfe !important;
}

[data-rh-theme="dark"] input::placeholder,
[data-rh-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}
.rhsim-manage-shortcut {
  background: #111827;
  border: 1px solid #111827;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  min-width: 64px;
  padding: 7px 10px;
  text-decoration: none;
}

.rhsim-manage-shortcut:hover,
.rhsim-manage-shortcut:focus {
  background: #255ea8;
  border-color: #255ea8;
  color: #ffffff !important;
  outline: 2px solid rgba(37, 94, 168, 0.28);
  outline-offset: 1px;
}

.rhsim-list-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7dee6;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 10px 0;
  min-height: 42px;
  padding: 8px 12px;
}

.rhsim-list-search i {
  color: #255ea8;
}

.rhsim-list-search input {
  background: transparent;
  border: 0;
  color: #1f2933;
  font: inherit;
  min-width: 0;
  outline: 0;
}

.rhsim-list-search span {
  color: #66717f;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.rhsim-list-search__empty {
  background: #ffffff;
  border: 1px dashed #d7dee6;
  color: #66717f;
  margin: 0 0 10px;
  padding: 12px;
  text-align: center;
}

[data-rh-theme="dark"] .rhsim-list-search,
[data-rh-theme="dark"] .rhsim-list-search__empty {
  background: #182230;
  border-color: #334155;
  color: #f4f7fb;
}

[data-rh-theme="dark"] .rhsim-list-search input {
  color: #f4f7fb;
}

[data-rh-theme="dark"] .rhsim-list-search span,
[data-rh-theme="dark"] .rhsim-list-search__empty {
  color: #a8b3c4;
}

.rh-shortcuts {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.rhsim-period-filter {
  background: #ffffff;
  border: 1px solid #d7dee6;
  margin-bottom: 12px;
  padding: 16px;
}

.rhsim-period-filter h1 {
  color: #1f2933;
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.rhsim-period-filter span {
  color: #66717f;
}

.rhsim-period-filter form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  margin-top: 14px;
}

.rhsim-period-filter label {
  display: grid;
  gap: 5px;
}

.rhsim-period-filter input {
  border: 1px solid #d7dee6;
  min-height: 38px;
  padding: 7px 10px;
}

.rhsim-period-filter button {
  background: #1f2933;
  border: 1px solid #1f2933;
  color: #ffffff;
  font-weight: 800;
  min-height: 38px;
  padding: 7px 14px;
}

.rhsim-period-filter__error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  margin: 12px 0 0;
  padding: 8px 10px;
}

[data-rh-theme="dark"] .rhsim-period-filter {
  background: #182230;
  border-color: #334155;
}

[data-rh-theme="dark"] .rhsim-period-filter h1,
[data-rh-theme="dark"] .rhsim-period-filter input {
  color: #f4f7fb;
}

[data-rh-theme="dark"] .rhsim-period-filter input {
  background: #111827;
  border-color: #334155;
}

@media (max-width: 720px) {
  .rhsim-period-filter form {
    grid-template-columns: 1fr;
  }
}
