/**
 * PGO - Tempus — ajustes sobre AdminLTE 3.
 * Variáveis de marca, compatibilidade com markup legado (.x_panel) e tema escuro.
 */

:root {
  --app-accent: #26b99a;
  --brand-primary: #6c72ff;
  --brand-periwinkle: #8a91fb;
  --brand-sky: #57c3ff;

  /* Derivados da paleta (hover/active/foco) — mesma família cromática */
  --brand-primary-hover: #5d63f5;
  --brand-primary-active: #4f55d8;
  --brand-primary-border-strong: #4a50e0;
  --app-accent-hover: #1fa085;
  --app-accent-active: #199077;
  --brand-sky-hover: #3db8f0;
  --brand-sky-active: #2ea8e0;
  --brand-focus-ring: rgba(108, 114, 255, 0.45);

  /* Bootstrap/AdminLTE — alinha variáveis onde o vendor usa var() */
  --primary: var(--brand-primary);
  --success: var(--app-accent);
  --info: var(--brand-sky);
  --blue: var(--brand-primary);
}

/*
 * Paleta PGO nos componentes Bootstrap 4 / AdminLTE 3.
 * O vendor usa hex fixo em muitas regras; aqui só cores (var da paleta).
 */
a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-hover);
}

.text-muted a {
  color: inherit;
}

.btn-link {
  color: var(--brand-primary) !important;
}

.btn-link:hover {
  color: var(--brand-primary-hover) !important;
}

.btn-primary {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  color: #fff !important;
  background-color: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-active) !important;
}

.btn-primary.focus,
.btn-primary:focus {
  color: #fff !important;
  background-color: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-active) !important;
  box-shadow: 0 0 0 0.2rem var(--brand-focus-ring) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  opacity: 0.65;
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: var(--brand-primary-active) !important;
  border-color: var(--brand-primary-border-strong) !important;
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem var(--brand-focus-ring) !important;
}

.btn-outline-primary {
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.btn-success {
  color: #fff !important;
  background-color: var(--app-accent) !important;
  border-color: var(--app-accent) !important;
  box-shadow: none !important;
}

.btn-success:hover {
  color: #fff !important;
  background-color: var(--app-accent-hover) !important;
  border-color: var(--app-accent-active) !important;
}

.btn-success.focus,
.btn-success:focus {
  color: #fff !important;
  background-color: var(--app-accent-hover) !important;
  border-color: var(--app-accent-active) !important;
  box-shadow: 0 0 0 0.2rem rgba(38, 185, 154, 0.4) !important;
}

.btn-info {
  color: #fff !important;
  background-color: var(--brand-sky) !important;
  border-color: var(--brand-sky) !important;
  box-shadow: none !important;
}

.btn-info:hover {
  color: #fff !important;
  background-color: var(--brand-sky-hover) !important;
  border-color: var(--brand-sky-active) !important;
}

.btn-info.focus,
.btn-info:focus {
  color: #fff !important;
  background-color: var(--brand-sky-hover) !important;
  border-color: var(--brand-sky-active) !important;
  box-shadow: 0 0 0 0.2rem rgba(87, 195, 255, 0.4) !important;
}

.badge-primary {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
}

.badge-success {
  color: #fff !important;
  background-color: var(--app-accent) !important;
}

.badge-info {
  color: #fff !important;
  background-color: var(--brand-sky) !important;
}

.bg-primary {
  background-color: var(--brand-primary) !important;
}

.text-primary {
  color: var(--brand-primary) !important;
}

.border-primary {
  border-color: var(--brand-primary) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
}

.nav-pills .nav-link:not(.active):hover {
  color: var(--brand-primary) !important;
}

.page-link {
  color: var(--brand-primary) !important;
}

.page-item.active .page-link {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.list-group-item.active {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
}

.alert-primary {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary-border-strong) !important;
}

.card-primary:not(.card-outline) > .card-header {
  background-color: var(--brand-primary) !important;
}

.card-primary:not(.card-outline) > .card-header,
.card-primary:not(.card-outline) > .card-header a {
  color: #fff !important;
}

.card-primary.card-outline {
  border-top: 3px solid var(--brand-primary) !important;
}

.card-primary.card-outline-tabs > .card-header a.active,
.card-primary.card-outline-tabs > .card-header a.active:hover {
  border-top: 3px solid var(--brand-primary) !important;
}

.dark-mode .card-primary:not(.card-outline) > .card-header {
  background-color: var(--brand-primary) !important;
}

.dark-mode .card-primary.card-outline {
  border-top-color: var(--brand-primary) !important;
}

.dark-mode .card-primary.card-outline-tabs > .card-header a.active,
.dark-mode .card-primary.card-outline-tabs > .card-header a.active:hover {
  border-top-color: var(--brand-primary) !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

.sidebar-dark-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active {
  border-color: var(--brand-primary) !important;
}

.dark-mode .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.dark-mode .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

.dark-mode .sidebar-dark-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active,
.dark-mode .sidebar-light-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active {
  border-color: var(--brand-primary) !important;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary-border-strong) !important;
  color: #fff !important;
}

html[data-theme="dark"] {
  --app-bg: #111827;
  --app-surface: #1f2937;
  --app-border: #374151;
  --app-text: #f3f4f6;
  --app-text-muted: #cbd5e1;
  --app-info: #0ea5e9;
  --app-field-bg: #1f2937;
  --app-field-border: #4b5563;
  --app-field-text: #f3f4f6;
  --app-field-placeholder: #94a3b8;
  --app-field-disabled-bg: #111827;
}

/* Compat: páginas que ainda usam .x_panel — visual próximo de .card AdminLTE */
.x_panel {
  position: relative;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .x_panel {
  background: #343a40;
  color: #f8f9fa;
}

html[data-theme="dark"] .app-top-nav-item .form-control {
  background: #343a40 !important;
  border-color: var(--app-border) !important;
  color: #e5e7eb !important;
}

.app-inbox-badge {
  background: var(--app-accent) !important;
  font-weight: 600;
  font-size: 10px;
}

.nav-inbox-menu {
  min-width: 300px;
  max-width: min(380px, 92vw);
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Itens do envelope: layout compacto, imagem pequena, data separada do título */
.nav-inbox-li {
  list-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .nav-inbox-li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inbox-item-link {
  display: block;
  padding: 10px 12px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.12s ease;
}
.nav-inbox-item-link:hover {
  background: rgba(44, 82, 130, 0.08);
}
html[data-theme="dark"] .nav-inbox-item-link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nav-inbox-thumb {
  flex: 0 0 auto;
}
.nav-inbox-thumb img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}
html[data-theme="dark"] .nav-inbox-thumb img {
  background: #334155;
}
.nav-inbox-main {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-inbox-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  margin-bottom: 4px;
  word-wrap: break-word;
}
html[data-theme="dark"] .nav-inbox-title {
  color: #f1f5f9;
}
.nav-inbox-time {
  font-size: 0.6875rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.3;
}
.nav-inbox-time-icon {
  margin-right: 4px;
  opacity: 0.85;
}
html[data-theme="dark"] .nav-inbox-time {
  color: #94a3b8;
}
.nav-inbox-message {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 6px;
}
html[data-theme="dark"] .nav-inbox-message {
  color: #cbd5e1;
}
.nav-inbox-lembrete {
  font-size: 0.6875rem;
  color: #b45309;
  margin-bottom: 4px;
  line-height: 1.4;
}
html[data-theme="dark"] .nav-inbox-lembrete {
  color: #fbbf24;
}
.nav-inbox-motivo {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #64748b;
  margin-bottom: 4px;
}
html[data-theme="dark"] .nav-inbox-motivo {
  color: #94a3b8;
}
.nav-inbox-footer {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
html[data-theme="dark"] .nav-inbox-footer {
  color: #64748b;
}
.nav-inbox-item-link--nohref {
  cursor: default !important;
}

.nav-inbox-loading {
  padding: 12px 16px;
}

html[data-theme="dark"] .nav-inbox-loading {
  color: var(--app-text-muted) !important;
}

html[data-theme="dark"] .dashboard-kpi-number {
  color: #f9fafb !important;
}

html[data-theme="dark"] .x_title h2,
html[data-theme="dark"] .x_content p,
html[data-theme="dark"] .content-header h1,
html[data-theme="dark"] .dropdown-menu > li > a,
html[data-theme="dark"] .dropdown-item {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .dashboard-kpi-card .x_title,
html[data-theme="dark"] .x_panel .x_title {
  border-bottom-color: #4b5563 !important;
}

html[data-theme="dark"] .dashboard-kpi-card {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
}

html[data-theme="dark"] .dashboard-kpi-card .x_title {
  border-bottom-color: #374151 !important;
}

html[data-theme="dark"] .dashboard-kpi-card .x_title h2 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .dashboard-kpi-card .x_content p {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dashboard-central-grid,
html[data-theme="dark"] .dashboard-summary-grid {
  gap: 14px;
}


/* Rodapé no tema escuro */
html[data-theme="dark"] .main-footer {
  border-top-color: #334155 !important;
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: var(--app-field-bg) !important;
  border-color: var(--app-field-border) !important;
  color: var(--app-field-text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--app-field-placeholder) !important;
}

/* Mensagens (alerts) no tema escuro */
html[data-theme="dark"] .alert {
  float: none !important;
  max-width: none !important;
  white-space: normal !important;
  margin-bottom: 16px !important;
  padding: 12px 40px 12px 16px !important;
  border-radius: 8px !important;
  border: 1px solid #334155 !important;
  border-left-width: 4px !important;
  background: #0f172a !important;
  color: #f1f5f9 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  font-weight: 500;
  line-height: 1.45;
}

html[data-theme="dark"] .alert .close {
  color: #e2e8f0 !important;
  opacity: 0.9;
  text-shadow: none;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
}

html[data-theme="dark"] .alert .close:hover,
html[data-theme="dark"] .alert .close:focus {
  opacity: 1;
  color: #ffffff !important;
}

html[data-theme="dark"] .alert a.alert-link {
  color: inherit !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-theme="dark"] .alert-success {
  background: #0c1f17 !important;
  border-color: #334155 !important;
  border-left-color: #34d399 !important;
  color: #ecfdf5 !important;
}

html[data-theme="dark"] .alert-info {
  background: #0f1b2e !important;
  border-color: #334155 !important;
  border-left-color: #38bdf8 !important;
  color: #e0f2fe !important;
}

html[data-theme="dark"] .alert-warning {
  background: #1c1408 !important;
  border-color: #334155 !important;
  border-left-color: #fbbf24 !important;
  color: #fef9c3 !important;
}

html[data-theme="dark"] .alert-danger,
html[data-theme="dark"] .alert-error {
  background: #1f0f0f !important;
  border-color: #334155 !important;
  border-left-color: #fb7185 !important;
  color: #ffe4e6 !important;
}

html[data-theme="dark"] .alert-debug {
  background: #171717 !important;
  border-color: #404040 !important;
  border-left-color: #a3a3a3 !important;
  color: #fafafa !important;
}

html[data-theme="dark"] .x_panel {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

html[data-theme="dark"] .x_panel .x_title {
  border-bottom-color: #374151 !important;
}

/* Tabelas no tema escuro (ex.: /administradoras/) */
html[data-theme="dark"] .table {
  color: #e5e7eb !important;
  background: transparent !important;
}

html[data-theme="dark"] .table > thead > tr > th {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: var(--app-border) !important;
}

html[data-theme="dark"] .table > tbody > tr > td {
  background: #111827 !important;
  color: var(--app-text) !important;
  border-top: 1px solid var(--app-border) !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: #0f172a !important;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > td,
html[data-theme="dark"] .table > tbody > tr:hover > td {
  background: #1e293b !important;
}

html[data-theme="dark"] .btn.btn-xs.btn-info {
  background-color: var(--brand-sky) !important;
  border-color: var(--brand-sky-active) !important;
  color: #f2fbff !important;
}

html[data-theme="dark"] .btn.btn-xs.btn-danger {
  background-color: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #fef2f2 !important;
}

/* Grid moderna (light + dark) */
.x_panel .table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.x_panel .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.x_panel .table > thead > tr > th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom-width: 1px;
}

.x_panel .table > tbody > tr > td {
  padding: 12px 14px;
  vertical-align: middle;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.x_panel .table > tbody > tr:hover > td {
  transform: translateZ(0);
}

.x_panel .table .btn-xs {
  border-radius: 6px;
  font-weight: 600;
}

/* Rodapé de tabela — paginação (Bootstrap 4 page-item / page-link) */
.app-table-pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 1rem 1.25rem 1.125rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: linear-gradient(180deg, rgba(108, 114, 255, 0.045) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.app-table-pagination__meta {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  white-space: nowrap;
}

.app-table-pagination__nav {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-table-pagination__count {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.app-table-pagination__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 0.15rem;
  vertical-align: middle;
}

.app-table-pagination .pagination {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.app-table-pagination .page-item {
  margin: 0 2px;
}

.app-table-pagination .page-link {
  border-radius: 8px;
  min-width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #495057;
  line-height: 1;
  box-shadow: none;
}

.app-table-pagination .page-link:hover {
  background-color: rgba(108, 114, 255, 0.12);
  border-color: rgba(108, 114, 255, 0.35);
  color: var(--brand-primary);
}

.app-table-pagination .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  cursor: default;
}

.app-table-pagination .page-item.disabled .page-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #adb5bd;
  cursor: not-allowed;
  opacity: 0.85;
}

.app-table-pagination .page-item.disabled .page-link:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #adb5bd;
}

.app-table-pagination__ellipsis.page-link {
  min-width: 2.125rem;
  border: none;
  background: transparent;
  color: #868e96;
  font-weight: 700;
}

body.dark-mode .app-table-pagination,
html[data-theme="dark"] .app-table-pagination {
  border-top-color: var(--app-border, rgba(255, 255, 255, 0.1));
  background: linear-gradient(180deg, rgba(108, 114, 255, 0.08) 0%, rgba(17, 24, 39, 0.4) 100%);
}

body.dark-mode .app-table-pagination .page-link,
html[data-theme="dark"] .app-table-pagination .page-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--app-border, rgba(255, 255, 255, 0.12));
  color: #e5e7eb;
}

body.dark-mode .app-table-pagination .page-link:hover,
html[data-theme="dark"] .app-table-pagination .page-link:hover {
  background: rgba(108, 114, 255, 0.2);
  border-color: var(--brand-periwinkle);
  color: #fff;
}

body.dark-mode .app-table-pagination .page-item.active .page-link,
html[data-theme="dark"] .app-table-pagination .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

body.dark-mode .app-table-pagination .page-item.disabled .page-link,
html[data-theme="dark"] .app-table-pagination .page-item.disabled .page-link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: #6b7280;
}

body.dark-mode .app-table-pagination__dot,
html[data-theme="dark"] .app-table-pagination__dot {
  background: rgba(255, 255, 255, 0.25);
}

body.dark-mode .app-table-pagination .text-dark,
html[data-theme="dark"] .app-table-pagination .text-dark {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] .table-responsive {
  border: 1px solid var(--app-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Botões no app: paleta PGO (sem gradiente) */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .pagination > .active > a,
html[data-theme="dark"] .pagination > .active > span {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary-active) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .btn-success {
  background: var(--app-accent) !important;
  border-color: var(--app-accent-active) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] a,
html[data-theme="dark"] .x_title h2 a {
  color: var(--brand-periwinkle);
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] .x_title h2 a:hover {
  color: var(--brand-sky);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .select2-selection,
html[data-theme="dark"] .select2-selection--single {
  background: var(--app-field-bg) !important;
  border-color: var(--app-field-border) !important;
  color: var(--app-field-text) !important;
  border-radius: 8px !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #26b99a !important;
  box-shadow: 0 0 0 3px rgba(38, 185, 154, 0.2) !important;
}

html[data-theme="dark"] .form-control::placeholder {
  color: var(--app-field-placeholder) !important;
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-control[readonly],
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled {
  background: var(--app-field-disabled-bg) !important;
  color: var(--app-text-muted) !important;
  border-color: var(--app-field-border) !important;
  opacity: 1;
}

html[data-theme="dark"] .input-group-text {
  background: var(--app-field-bg) !important;
  color: var(--app-text-muted) !important;
  border-color: var(--app-field-border) !important;
}

html[data-theme="dark"] .dashboard-page-premium .dashboard-kpi-card {
  background: var(--app-surface) !important;
}

html[data-theme="dark"] .dashboard-page-premium .dashboard-kpi-number {
  color: #f9fafb !important;
  text-shadow: none;
}

html[data-theme="dark"] .dashboard-page-premium .dashboard-summary-card {
  border-color: var(--app-border) !important;
}

html[data-theme="dark"] .dashboard-page-premium .x_title h2 i {
  color: #26b99a !important;
}

html[data-theme="dark"] .users-list-panel .table > tbody > tr > td,
html[data-theme="dark"] .services-list-panel .table > tbody > tr > td {
  padding-top: 12px;
  padding-bottom: 12px;
}

html[data-theme="dark"] .users-list-panel .table > tbody > tr:hover > td,
html[data-theme="dark"] .services-list-panel .table > tbody > tr:hover > td {
  box-shadow: none;
}

html[data-theme="dark"] .users-list-panel .btn-xs,
html[data-theme="dark"] .services-list-panel .btn-xs {
  border-radius: 7px;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 9px;
}

html[data-theme="dark"] .users-list-panel .btn-info,
html[data-theme="dark"] .services-list-panel .btn-info {
  background: var(--brand-sky) !important;
  border-color: var(--brand-sky-active) !important;
  color: #f6fdff !important;
}

html[data-theme="dark"] .users-list-panel .btn-danger,
html[data-theme="dark"] .services-list-panel .btn-danger {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #fef2f2 !important;
}

.page-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

/* Formulários: botões alinhados à direita */
.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e9f2;
}

/* ---------- Formulário moderno (CRUD) ---------- */
.form-modern-panel .x_title {
  border-bottom: 1px solid #e5e9f2;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.form-modern-panel .x_title h2 {
  font-size: 18px;
  font-weight: 600;
  color: #2a3f54;
}

/* Mais respiro lateral nos formulários (evita conteúdo colado à esquerda) */
.form-modern-panel .x_content {
  padding: 18px 22px 16px;
}

/* Gutter mais equilibrado para ocupar melhor a largura útil */
.form-modern .row {
  margin-left: -8px;
  margin-right: -8px;
}

.form-modern .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

/*
 * Formulários CRUD: coluna estrutural principal deve ocupar largura total.
 * Mantém os grids internos (rows aninhadas) funcionando normalmente.
 */
.form-modern > .row > [class*="col-lg-8"],
.form-modern > .row > [class*="col-lg-9"],
.form-modern > .row > [class*="col-md-10"] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .form-modern-panel .x_content {
    padding-left: 26px;
    padding-right: 26px;
  }
  .form-modern .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  .form-modern .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 767px) {
  .form-modern-panel .x_content {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.form-modern .form-group-modern {
  margin-bottom: 22px;
}

.form-modern .form-group-modern > .control-label {
  font-weight: 600;
  color: #2a3f54;
  margin-bottom: 8px;
  display: block;
}

.form-modern .form-required {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 2px;
}

.form-modern .form-control {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #d9dee4;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* <select> herda .form-control mas browsers aplicam padding/altura diferentes */
.form-modern select.form-control {
  height: 44px;
  min-height: 44px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  line-height: 1.5;
}

.form-modern .form-control:focus {
  border-color: #26b99a;
  box-shadow: 0 0 0 3px rgba(38, 185, 154, 0.12);
}

.form-modern .form-help {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
}

.form-modern .form-section-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #73879c;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e9f2;
}

.form-modern .form-section-heading:first-of-type {
  margin-top: 0;
}

.form-modern textarea.form-control {
  height: auto;
  min-height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Toggle ativo / inativo */
.cliente-switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cliente-switch-label-text {
  font-weight: 600;
  color: #2a3f54;
  min-width: 80px;
}

.cliente-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.cliente-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cliente-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 28px;
  transition: background-color 0.2s ease;
}

.cliente-switch-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cliente-switch input:checked + .cliente-switch-slider {
  background-color: #26b99a;
}

.cliente-switch input:checked + .cliente-switch-slider::before {
  transform: translateX(24px);
}

.cliente-switch input:focus + .cliente-switch-slider {
  box-shadow: 0 0 0 3px rgba(38, 185, 154, 0.25);
}

/* Toggle "Registo ativo" no formulário de pessoa (alinha à altura dos inputs) */
.form-modern .form-modern-switch-row {
  min-height: 44px;
  padding: 8px 14px;
  background: #f7f9fb;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
}

html[data-theme="dark"] .form-modern .form-modern-switch-row {
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--app-border);
}

/* Pessoa: data de nascimento/abertura e registo ativo na mesma linha */
.form-modern .pessoa-data-registo-linha {
  width: 100%;
}
.form-modern .pessoa-data-registo-linha .pessoa-data-registo-data {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}
.form-modern .pessoa-data-registo-linha .pessoa-data-registo-data > .control-label {
  width: 100%;
}
.form-modern .pessoa-data-registo-linha .pessoa-data-registo-data .form-control[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Formulário moderno — tema escuro (CRUD ex.: clientes) */
html[data-theme="dark"] .form-modern-panel.x_panel {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

html[data-theme="dark"] .form-modern-panel .x_title {
  border-bottom-color: var(--app-border) !important;
}

html[data-theme="dark"] .form-modern-panel .x_title h2 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .form-modern .form-group-modern > .control-label {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .form-modern .form-section-heading {
  color: #94a3b8 !important;
  border-bottom-color: var(--app-border) !important;
}

html[data-theme="dark"] .cliente-switch-label-text {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .form-modern .form-control {
  background: var(--app-field-bg) !important;
  border-color: var(--app-field-border) !important;
  color: var(--app-field-text) !important;
}

html[data-theme="dark"] .form-modern .form-control:focus {
  border-color: var(--app-accent) !important;
  box-shadow: 0 0 0 3px rgba(38, 185, 154, 0.2) !important;
}

html[data-theme="dark"] .form-modern .form-help,
html[data-theme="dark"] .form-modern .help-block.text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .form-actions-bar {
  border-top-color: var(--app-border) !important;
}

/* ---------- Wizard cadastro cliente ---------- */
.cliente-wizard-page {
  max-width: 960px;
  margin: 0 auto;
}

.cliente-wizard-card {
  border-radius: 14px !important;
  /* visible: a barra de passos pode ter 2 linhas; hidden recortava a 2.ª linha em alguns layouts */
  overflow: visible;
  border: 1px solid #e5e9f2 !important;
}

.cliente-wizard-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 1.25rem 1.5rem 1rem !important;
}

.cliente-wizard-intro {
  line-height: 1.5;
}

.cliente-wizard-steps__list {
  /* Grelha: evita «só 5 passos visíveis» quando flex + max-width 140px cabia ~5 por linha */
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-bottom: 6px;
}

.cliente-wizard-steps__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.cliente-wizard-steps__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.cliente-wizard-steps__dot--todo {
  background: #fff;
  border: 2px solid #d9dee4;
  color: #94a3b8;
}

.cliente-wizard-steps__dot--done {
  background: #26b99a;
  border: 2px solid #1fa88c;
  color: #fff;
  font-size: 13px;
}

.cliente-wizard-steps__dot--current {
  background: #fff;
  border: 3px solid #26b99a;
  color: #26b99a;
  box-shadow: 0 0 0 4px rgba(38, 185, 154, 0.2);
}

.cliente-wizard-steps__label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-word;
}

.cliente-wizard-steps__item:has(.cliente-wizard-steps__dot--current) .cliente-wizard-steps__label {
  color: #26b99a;
}

.cliente-wizard-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: #e8ecf1;
  overflow: hidden;
}

.cliente-wizard-progress__fill {
  background: linear-gradient(90deg, #26b99a, #1fa88c) !important;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.cliente-wizard-progress__text {
  font-size: 14px;
  color: #64748b;
}

.cliente-wizard-progress__strong {
  font-weight: 700;
  color: #2a3f54;
}

.cliente-wizard-progress__name {
  color: #334155;
  font-weight: 600;
}

.cliente-wizard-card-body {
  padding: 1.25rem 1.5rem 1.5rem !important;
}

.cliente-wizard-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a3f54;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.cliente-wizard-step-lead {
  font-size: 14px;
  line-height: 1.5;
}

.cliente-wizard-ico {
  color: #26b99a;
}

.cliente-wizard-fields--recorrencias {
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding: 12px 12px 8px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #e5e9f2;
  background: #f4f7fa;
}

.cliente-wizard-rec-bloco {
  margin-bottom: 12px;
  padding: 14px 14px 6px;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cliente-wizard-rec-bloco:last-child {
  margin-bottom: 6px;
}

.cliente-wizard-rec-bloco__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f9d7a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.cliente-wizard-rec-bloco__row {
  margin-left: -8px;
  margin-right: -8px;
}

.cliente-wizard-rec-bloco__row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.cliente-wizard-fields--recorrencias .form-group-modern {
  margin-bottom: 12px;
}

.cliente-wizard-field--checkbox {
  margin-bottom: 16px !important;
}

.cliente-wizard-cb-label {
  cursor: pointer;
  font-weight: 600;
  color: #2a3f54;
}

.cliente-wizard-cb-input input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  accent-color: #26b99a;
  cursor: pointer;
}

.cliente-wizard-cb-text {
  line-height: 1.4;
}

/* Passo Estrutura predial: checkboxes em cartão */
.cliente-wizard-field--checkbox-tile {
  margin-bottom: 14px !important;
}

.cliente-wizard-cb-tile {
  display: block;
  position: relative;
  cursor: pointer;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  min-height: 56px;
}

.cliente-wizard-cb-tile:hover {
  border-color: #26b99a;
  box-shadow: 0 4px 14px rgba(38, 185, 154, 0.12);
}

.cliente-wizard-cb-tile:focus-within {
  border-color: #26b99a;
  box-shadow: 0 0 0 3px rgba(38, 185, 154, 0.2);
}

.cliente-wizard-cb-tile:has(.cliente-wizard-cb-tile__input:checked) {
  border-color: #26b99a;
  background: linear-gradient(145deg, #ecfdf8 0%, #ffffff 55%);
  box-shadow: 0 4px 16px rgba(38, 185, 154, 0.14);
}

.cliente-wizard-cb-tile__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cliente-wizard-cb-tile__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.cliente-wizard-cb-tile__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #ffffff;
  flex-shrink: 0;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.cliente-wizard-cb-tile__indicator .fa-check {
  font-size: 11px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.cliente-wizard-cb-tile:has(.cliente-wizard-cb-tile__input:checked) .cliente-wizard-cb-tile__indicator {
  background: #26b99a;
  border-color: #1fa88c;
}

.cliente-wizard-cb-tile:has(.cliente-wizard-cb-tile__input:checked) .cliente-wizard-cb-tile__indicator .fa-check {
  opacity: 1;
  transform: scale(1);
}

.cliente-wizard-cb-tile__text {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #2a3f54;
}

.cliente-wizard-fields--estrutura .cliente-wizard-field--checkbox-tile.has-error .cliente-wizard-cb-tile {
  border-color: #dc3545;
}

html[data-theme="dark"] .cliente-wizard-cb-tile {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .cliente-wizard-cb-tile:hover {
  border-color: #26b99a;
}

html[data-theme="dark"] .cliente-wizard-cb-tile:has(.cliente-wizard-cb-tile__input:checked) {
  background: linear-gradient(145deg, rgba(38, 185, 154, 0.14) 0%, #1e293b 60%);
  border-color: #26b99a;
}

html[data-theme="dark"] .cliente-wizard-cb-tile__indicator {
  background: #0f172a;
  border-color: #475569;
}

html[data-theme="dark"] .cliente-wizard-cb-tile__text {
  color: #f1f5f9;
}

/* Estrutura: elevador — mesma linha: tile col-lg-4 como os outros + empresa col-lg-8 */
.cliente-wizard-elevador-linha {
  margin-bottom: 0.25rem;
}

.cliente-wizard-elevador-linha__row {
  margin-left: -8px;
  margin-right: -8px;
}

.cliente-wizard-elevador-linha__row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.cliente-wizard-elevador-linha__check .cliente-wizard-cb-tile {
  width: 100%;
}

.cliente-wizard-elevador-empresa .form-control {
  width: 100%;
}

@media (min-width: 992px) {
  .cliente-wizard-elevador-empresa-col .form-group {
    min-height: 56px;
  }
}

html[data-theme="dark"] .cliente-wizard-elevador-empresa .control-label {
  color: #e2e8f0;
}

/* Estrutura: textos logo abaixo do checkbox poço artesiano (linha completa) */
.cliente-wizard-textos-pos-poco {
  margin-top: 0.35rem;
}

.cliente-wizard-textos-pos-poco__row {
  margin-left: -8px;
  margin-right: -8px;
}

.cliente-wizard-textos-pos-poco__row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.cliente-wizard-actions {
  justify-content: space-between !important;
  align-items: center;
  margin-top: 28px !important;
  padding-top: 20px !important;
}

.cliente-wizard-actions .cliente-wizard-btn-next {
  min-width: 160px;
  border-radius: 10px;
  font-weight: 600;
}

.cliente-wizard-actions .cliente-wizard-btn-back,
.cliente-wizard-actions .cliente-wizard-btn-cancel {
  border-radius: 10px;
}

@media (max-width: 991.98px) {
  .cliente-wizard-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .cliente-wizard-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cliente-wizard-card-header,
  .cliente-wizard-card-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .cliente-wizard-steps__label {
    font-size: 9px;
  }

  .cliente-wizard-steps__dot {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

html[data-theme="dark"] .cliente-wizard-card {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
}

html[data-theme="dark"] .cliente-wizard-card-header {
  background: linear-gradient(180deg, #111827 0%, var(--app-surface) 100%) !important;
}

html[data-theme="dark"] .cliente-wizard-intro {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .cliente-wizard-steps__dot--todo {
  background: #1f2937 !important;
  border-color: var(--app-border) !important;
  color: #64748b !important;
}

html[data-theme="dark"] .cliente-wizard-steps__label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .cliente-wizard-steps__item:has(.cliente-wizard-steps__dot--current) .cliente-wizard-steps__label {
  color: #34d399 !important;
}

html[data-theme="dark"] .cliente-wizard-steps__dot--current {
  background: #111827 !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15) !important;
}

html[data-theme="dark"] .cliente-wizard-progress__bar {
  background: #1f2937 !important;
}

html[data-theme="dark"] .cliente-wizard-progress__strong {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .cliente-wizard-progress__name {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .cliente-wizard-step-title {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .cliente-wizard-fields--recorrencias {
  background: rgba(15, 23, 42, 0.45) !important;
  border-color: var(--app-border) !important;
}

html[data-theme="dark"] .cliente-wizard-rec-bloco {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .cliente-wizard-rec-bloco__title {
  color: #34d399 !important;
}

html[data-theme="dark"] .cliente-wizard-cb-label {
  color: #e5e7eb !important;
}

/* ---------- Login split (base_auth) ---------- */
html,
body.login.login-split-page {
  min-height: 100%;
}

html body.login.login-split-page {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 13, 34, 0.78) 0%, rgba(9, 13, 34, 0.82) 100%),
    url("/static/img/backdrop_login.png") center center / cover no-repeat fixed !important;
}

/* Remove "caixas" brancas herdadas do tema antigo de login */
body.login.login-split-page .login_wrapper,
body.login.login-split-page .animate.form,
body.login.login-split-page .login_form,
body.login.login-split-page .login_content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.login-split-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-split-card {
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(360px, 41%) 1fr;
  background: #0f173d;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2b376d;
  box-shadow:
    0 18px 46px rgba(2, 6, 23, 0.55);
}

.login-split-visual {
  position: relative;
  background: linear-gradient(165deg, #0a1338 0%, #121f4e 100%);
  color: #d7e0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 28px;
  text-align: center;
}

.login-split-visual::before {
  content: none;
}

.login-split-logo {
  position: relative;
  z-index: 1;
  width: min(340px, 96%);
  max-height: 250px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.login-split-tagline {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #c7d2ff;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.login-split-form {
  padding: 48px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #121b45 0%, #0f173d 100%);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.login-split-form,
.login-split-form p,
.login-split-form label,
.login-split-form a,
.login-split-form input,
.login-split-form button,
.login-split-form .change_link,
.login-split-form .text-muted,
.login-split-form .small {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.auth-title {
  margin: 0 0 8px;
  color: #f3f5ff;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 2px 18px rgba(108, 114, 255, 0.35);
}

.auth-subtitle {
  margin: 0 0 26px;
  color: #b4c1f3;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: center;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.auth-form-modern.auth-split-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-form-modern .auth-field {
  margin-bottom: 16px;
  width: 100%;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  color: #c8d4f8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.auth-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9bd4;
  pointer-events: none;
}

.auth-input-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-form-modern .auth-input-wrap .form-control.auth-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #334784;
  box-shadow: none;
  padding: 8px 14px 8px 40px;
  font-size: 14px;
  line-height: 1.4;
  color: #e7ecff;
  background: #0b1231;
}

.auth-form-modern .auth-input-wrap .form-control.auth-input::placeholder {
  color: #7a88b8;
  opacity: 1;
}

.auth-form-modern .auth-input-wrap .form-control.auth-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(108, 114, 255, 0.28);
}

.auth-form-modern .auth-input-wrap.auth-input-with-suffix .form-control.auth-input {
  padding-right: 80px;
}

.auth-password-suffix-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-password-suffix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: rgba(108, 114, 255, 0.2);
  color: #c8d4f8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-password-suffix-btn:hover {
  background: rgba(108, 114, 255, 0.35);
  color: #fff;
}

.auth-password-suffix-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 114, 255, 0.5);
}

.auth-submit {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

/* Mesma altura e largura dos inputs (Bootstrap .btn altera padding) */
.auth-form-modern .auth-submit .btn.auth-button.auth-button-split {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  line-height: 1.2;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border-width: 1px;
}

.auth-button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

/* Botão login: gradiente marca (roxo #6C72FF → periwinkle #8A91FB, toque ciano #57C3FF) */
.auth-button-split {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-periwinkle) 58%,
    var(--brand-sky) 100%
  ) !important;
  border-color: #5a60e8 !important;
  color: #ffffff !important;
}

.auth-button-split:hover,
.auth-button-split:focus {
  background: linear-gradient(
    135deg,
    #5d63f5 0%,
    #7a82f0 55%,
    #4ab8f0 100%
  ) !important;
  border-color: #4f55d8 !important;
  color: #ffffff !important;
}

.auth-footer-link {
  margin-top: 14px;
  width: 100%;
  text-align: right;
}

.auth-footer-link .change_link {
  margin: 0;
  text-align: right;
}

.auth-footer-link .change_link a {
  color: #c5d2ff;
  font-weight: 600;
}

.login-footer-brand {
  margin-top: 18px;
  text-align: center;
}

/* Alertas na tela de login (mensagens Django) */
body.login.login-split-page .login-auth-alert {
  position: relative;
  float: none;
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid rgba(108, 114, 255, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 25, 53, 0.95) 0%, rgba(15, 23, 61, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
  overflow: hidden;
  border-left: 4px solid var(--brand-primary);
}

body.login.login-split-page .login-auth-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 42px 14px 16px;
}

body.login.login-split-page .login-auth-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-top: 0;
  background: linear-gradient(
    155deg,
    rgba(108, 114, 255, 0.55) 0%,
    rgba(138, 145, 251, 0.28) 100%
  );
  color: #e8eaff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 4px 16px rgba(108, 114, 255, 0.45),
    0 0 24px rgba(108, 114, 255, 0.25);
}

body.login.login-split-page .login-auth-alert-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

body.login.login-split-page .login-auth-alert-text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #e4e9ff;
  letter-spacing: 0.01em;
}

body.login.login-split-page .login-auth-alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  float: none;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  opacity: 1 !important;
  background: linear-gradient(
    145deg,
    rgba(108, 114, 255, 0.75) 0%,
    rgba(87, 195, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow:
    0 2px 12px rgba(108, 114, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.login.login-split-page .login-auth-alert-close:hover,
body.login.login-split-page .login-auth-alert-close:focus {
  color: #ffffff !important;
  opacity: 1 !important;
  outline: none;
  background: linear-gradient(145deg, #6c72ff 0%, #57c3ff 100%);
  transform: scale(1.06);
  box-shadow:
    0 4px 18px rgba(108, 114, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.login.login-split-page .login-auth-alert.alert-info {
  border-left-color: var(--brand-sky);
}

body.login.login-split-page .login-auth-alert.alert-info .login-auth-alert-icon {
  color: var(--brand-sky);
}

body.login.login-split-page .login-auth-alert.alert-success {
  border-left-color: #34d399;
}

body.login.login-split-page .login-auth-alert.alert-success .login-auth-alert-icon {
  color: #6ee7b7;
}

body.login.login-split-page .login-auth-alert.alert-warning {
  border-left-color: #fdb52a;
}

body.login.login-split-page .login-auth-alert.alert-warning .login-auth-alert-icon {
  color: #fcd34d;
}

body.login.login-split-page .login-auth-alert.alert-danger,
body.login.login-split-page .login-auth-alert.alert-error {
  border-left-color: #fb7185;
}

body.login.login-split-page .login-auth-alert.alert-danger .login-auth-alert-icon,
body.login.login-split-page .login-auth-alert.alert-error .login-auth-alert-icon {
  color: #fda4af;
}

@media (max-width: 992px) {
  .login-split-card {
    max-width: 560px;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-split-visual {
    min-height: 210px;
    padding: 24px;
  }

  .login-split-form {
    padding: 32px 22px 22px;
  }

  .auth-title {
    font-size: 28px;
  }
}

/* Sidebar: logo da empresa na área da marca (AdminLTE .brand-link) */
.main-sidebar .brand-link.brand-link-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  line-height: 0;
  min-height: 4.5rem;
}

.main-sidebar .brand-link.brand-link-logo .brand-logo-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(5.25rem, 12vh);
  object-fit: contain;
  object-position: center;
}

.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.brand-link-logo {
  min-height: 3.5rem;
  padding: 0.4rem 0.35rem;
}

.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.brand-link-logo .brand-logo-img {
  max-height: min(4rem, 14vh);
  width: 100%;
  max-width: 100%;
}

/* Sidebar: garantir submenu AdminLTE (treeview) sem cortar quando há vários ítems */
.sidebar-dark-primary #sidebar-menu.nav-sidebar .menu-open > .nav-treeview,
.sidebar-dark-primary #sidebar-menu.nav-sidebar .menu-is-opening > .nav-treeview {
  max-height: none !important;
}

/* Serviços: evitar submenu cortado apenas quando expandido (não forçar display sempre) */
#sidebar-grupo-servicos.menu-open > .nav-treeview,
#sidebar-grupo-servicos.menu-is-opening > .nav-treeview {
  max-height: none !important;
  overflow: visible !important;
}

/* ---------- Dashboard clean ---------- */
/* Só na home/dashboard: cabeçalho e cartões mais compactos e tipografia atual */
.content-wrapper:has(.dashboard-page) .content-header {
  padding-top: 0.75rem;
  padding-bottom: 0.65rem;
}

.content-wrapper:has(.dashboard-page) .content-header h1 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
}

html[data-theme="dark"] .content-wrapper:has(.dashboard-page) .content-header h1 {
  color: #f1f5f9 !important;
}

.dashboard-page.dashboard-page-premium {
  --dashboard-card-radius: 12px;
  --dashboard-title-color: #64748b;
  --dashboard-desc-color: #94a3b8;
}


.dashboard-page .x_panel.dashboard-kpi-card {
  border-radius: var(--dashboard-card-radius);
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .dashboard-page .x_panel.dashboard-kpi-card {
  border-color: var(--app-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dashboard-page.dashboard-page-modern .x_title {
  padding-bottom: var(--dash-xs);
  margin-bottom: var(--dash-sm);
  border-bottom: 1px solid #e8edf3;
}

.dashboard-page:not(.dashboard-page-modern) .x_title {
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #e8edf3;
}

.dashboard-page .x_title h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--dashboard-title-color);
}

.dashboard-page.dashboard-page-modern .x_title h2 i.fa {
  font-size: 0.85em;
  margin-right: var(--dash-xs);
  opacity: 0.85;
}

.dashboard-page:not(.dashboard-page-modern) .x_title h2 i.fa {
  font-size: 0.85em;
  margin-right: 0.4rem;
  opacity: 0.85;
}

.dashboard-page .x_content p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--dashboard-desc-color);
  margin-bottom: 0;
}

html[data-theme="dark"] .dashboard-page .x_title {
  border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .dashboard-page .x_title h2 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dashboard-page .x_content p {
  color: #94a3b8 !important;
}

/* Dashboard: sem rolagem horizontal (viewport / grelhas / gráfico) */
html:has(.dashboard-page),
body:has(.dashboard-page) {
  overflow-x: hidden;
}

.content-wrapper:has(.dashboard-page) {
  overflow-x: hidden;
  max-width: 100%;
}

.content-wrapper:has(.dashboard-page) section.content {
  overflow-x: hidden;
  max-width: 100%;
}

.content-wrapper:has(.dashboard-page) section.content > .container-fluid {
  overflow-x: hidden;
  max-width: 100%;
}

.dashboard-page {
  overflow-x: hidden;
  max-width: 100%;
}
/* ---------- Dashboard moderno (layout + cartões métrica) ---------- */
.content-wrapper:has(.dashboard-page-modern) {
  --dash-xs: 0.5rem;
  --dash-sm: 0.75rem;
  --dash-md: 1rem;
  --dash-lg: 1.25rem;
  --dash-xl: 1.5rem;
  --dash-2xl: 2rem;
  --dash-gap: var(--dash-md);
  --dash-section-y: var(--dash-xl);
  --dash-radius-panel: 16px;
  --dash-radius-stat: 14px;
}

.content-wrapper:has(.dashboard-page-modern) section.content > .container-fluid {
  padding-top: var(--dash-sm);
  padding-right: var(--dash-md);
  padding-left: var(--dash-md);
  padding-bottom: var(--dash-2xl);
}

.content-wrapper:has(.dashboard-page-modern) section.content {
  background: #f1f5f9;
}

html[data-theme="dark"] .content-wrapper:has(.dashboard-page-modern) section.content {
  background: #0b1220 !important;
}

/* Painéis de secção (blocos com título) */
.dashboard-page-modern .dashboard-panel.x_panel {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--dash-radius-panel) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
  margin-bottom: 0;
}

.dashboard-page-modern .dashboard-panel .x_title {
  padding: var(--dash-md) var(--dash-lg) var(--dash-sm);
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.dashboard-page-modern .dashboard-panel .x_title h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #334155;
}

.dashboard-page-modern .dashboard-panel .x_content {
  padding: var(--dash-lg) var(--dash-lg) var(--dash-xl);
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-panel.x_panel {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-panel .x_title {
  background: linear-gradient(180deg, #1a2332 0%, var(--app-surface) 100%);
  border-bottom-color: var(--app-border);
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-panel .x_title h2 {
  color: #e2e8f0 !important;
}

/* Cartão métrica (faixa lateral + ícone em “chip”) */
.dashboard-page-modern .dashboard-stat-card.x_panel {
  position: relative;
  border: none !important;
  border-radius: var(--dash-radius-stat) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
  margin-bottom: 0;
  --stat-accent: var(--brand-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-page-modern .dashboard-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stat-accent);
  border-radius: 4px 0 0 4px;
}

.dashboard-page-modern .dashboard-stat-card .x_title {
  padding: var(--dash-sm) var(--dash-md) var(--dash-xs);
  margin-bottom: 0;
  border-bottom: none;
  background: transparent;
}

.dashboard-page-modern .dashboard-stat-card .x_title h2 {
  display: flex;
  align-items: center;
  gap: var(--dash-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #475569;
}

.dashboard-page-modern .dashboard-stat-card .x_title h2 i.fa {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--dash-xs);
  font-size: 0.8rem;
  border-radius: var(--dash-xs);
  background: rgba(108, 114, 255, 0.12);
  background: color-mix(in srgb, var(--stat-accent) 18%, transparent);
  color: var(--stat-accent);
  opacity: 1;
}

.dashboard-page-modern .dashboard-stat-card .x_content {
  padding: var(--dash-xs) var(--dash-md) var(--dash-md);
}

.dashboard-page-modern .dashboard-stat--pay {
  --stat-accent: #e11d48;
}

.dashboard-page-modern .dashboard-stat--recv {
  --stat-accent: var(--app-accent);
}

.dashboard-page-modern .dashboard-stat--tasks {
  --stat-accent: var(--brand-primary);
}

.dashboard-page-modern .dashboard-stat--neutral {
  --stat-accent: #94a3b8;
}

.dashboard-page-modern .dashboard-stat--summary {
  --stat-accent: #64748b;
}

.dashboard-page-modern .dashboard-summary-grid .dashboard-summary-item:nth-child(1) .dashboard-stat-card {
  --stat-accent: var(--brand-primary);
}

.dashboard-page-modern .dashboard-summary-grid .dashboard-summary-item:nth-child(2) .dashboard-stat-card {
  --stat-accent: var(--brand-periwinkle);
}

.dashboard-page-modern .dashboard-summary-grid .dashboard-summary-item:nth-child(3) .dashboard-stat-card {
  --stat-accent: var(--app-accent);
}

.dashboard-page-modern .dashboard-summary-grid .dashboard-summary-item:nth-child(4) .dashboard-stat-card {
  --stat-accent: #f59e0b;
}

.dashboard-page-modern .dashboard-summary-grid .dashboard-summary-item:nth-child(5) .dashboard-stat-card {
  --stat-accent: var(--brand-sky);
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-stat-card.x_panel {
  background: var(--app-surface) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-stat-card .x_title h2 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-stat-card .x_title h2 i.fa {
  background: rgba(108, 114, 255, 0.15);
  background: color-mix(in srgb, var(--stat-accent) 24%, transparent);
}

html:not([data-theme="dark"]) .dashboard-page-modern .dashboard-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}

/* Barra de filtro no dashboard */
.content-wrapper:has(.dashboard-page-modern) .dashboard-filter-form .form-control {
  border-radius: var(--dash-sm);
  border-color: #e2e8f0;
  font-size: 0.8125rem;
  min-height: 2.5rem;
  padding-left: var(--dash-sm);
  padding-right: var(--dash-sm);
}

.content-wrapper:has(.dashboard-page-modern) .dashboard-filter-form .btn {
  border-radius: var(--dash-sm);
  padding-right: var(--dash-md);
  padding-left: var(--dash-md);
  font-weight: 600;
  font-size: 0.8125rem;
}

html[data-theme="dark"] .content-wrapper:has(.dashboard-page-modern) .dashboard-filter-form .form-control {
  border-color: var(--app-border) !important;
}

.dashboard-page-modern .dashboard-central-grid {
  gap: var(--dash-gap);
}

.dashboard-page-modern .dashboard-summary-grid {
  column-gap: var(--dash-gap);
  row-gap: var(--dash-gap);
  width: 100%;
  padding: 0 !important;
}

/* Espaçamento vertical entre blocos da dashboard */
.dashboard-page-modern > .row.dashboard-section-gap:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.dashboard-page-modern > .row.dashboard-section-gap:not(:first-of-type) {
  margin-top: 0;
  padding-top: var(--dash-section-y);
}

.dashboard-page-modern > .row.dashboard-chart-row {
  padding-bottom: var(--dash-xs);
}

/* Gráfico de clientes */
.dashboard-page-modern .dashboard-chart-panel .dashboard-chart-subtitle {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #64748b;
  margin-top: var(--dash-xs);
  padding-left: 0;
  padding-right: 0;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-chart-panel .dashboard-chart-subtitle {
  color: #94a3b8 !important;
}

.dashboard-page-modern .dashboard-chart-panel .x_title {
  padding-bottom: var(--dash-sm);
}

.dashboard-page-modern .dashboard-chart-canvas-wrap {
  position: relative;
  min-height: 300px;
  height: min(42vh, 380px);
  padding: var(--dash-sm) var(--dash-md) var(--dash-md) !important;
  overflow: hidden;
  max-width: 100%;
}

.dashboard-page .dashboard-chart-canvas-wrap canvas {
  max-width: 100% !important;
}

.dashboard-page-modern .dashboard-chart-panel .x_title h2 i.fa {
  width: auto;
  height: auto;
  display: inline;
  padding: 0;
  background: none !important;
  color: inherit;
  opacity: 0.9;
}

/* Colunas internas (“Resumo dos Clientes”): respiro entre cartões ao empilhar */
.dashboard-page-modern .dashboard-panel .x_content .row > [class*="col-"] {
  margin-bottom: var(--dash-md);
}

@media (min-width: 992px) {
  .dashboard-page-modern .dashboard-panel .x_content .row > [class*="col-"] {
    margin-bottom: 0;
  }
}

.content-wrapper:has(.dashboard-page-modern) .dashboard-filter-form {
  gap: var(--dash-sm);
}

.content-wrapper:has(.dashboard-page-modern) .content-header {
  padding-top: var(--dash-sm);
  padding-bottom: var(--dash-sm);
}

.dashboard-hero-panel {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e9f2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-content {
  padding: 14px 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.dashboard-hero-logo {
  width: auto;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
  display: block;
}

.dashboard-kpi-card {
  border-radius: 10px;
  border: 1px solid #e5e9f2;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Sobrescreve comportamento do tema que força scroll em cards .tile */
.dashboard-kpi-card.tile {
  height: auto !important;
  overflow: visible !important;
}

.dashboard-kpi-card-compact .x_title {
  margin-bottom: 0.5rem;
}

.dashboard-page-modern .dashboard-kpi-card-compact .x_title {
  margin-bottom: var(--dash-xs);
}

.dashboard-kpi-card-compact .x_title h2 {
  font-size: 0.875rem;
}

.dashboard-kpi-card-compact .x_title h2 i.fa {
  margin-right: 8px;
}

.dashboard-kpi-card-compact .x_content {
  min-height: 5.75rem;
  padding-top: 0.5rem;
}

.dashboard-page-modern .dashboard-kpi-card-compact .x_content {
  min-height: 6rem;
  padding-top: var(--dash-xs);
}

.dashboard-uniform-row {
  display: flex;
  flex-wrap: wrap;
}

.dashboard-uniform-col {
  display: flex;
}

.dashboard-uniform-card {
  width: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.dashboard-uniform-card .x_content {
  flex: 1;
}

.dashboard-uniform-card .x_title h2 {
  min-height: 22px;
  display: flex;
  align-items: center;
}

.dashboard-uniform-card .dashboard-kpi-number {
  min-height: 40px;
}

.dashboard-uniform-card .x_content p {
  min-height: 36px;
  margin-bottom: 0;
}

.dashboard-central-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0;
  overflow-x: clip;
  overflow-y: visible;
}

.dashboard-central-item {
  min-width: 0;
  width: 100%;
}

.dashboard-central-card {
  margin-bottom: 0;
  height: 100%;
  width: 100%;
  min-height: 150px;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
  width: 100%;
  padding: 0;
  align-items: stretch;
}

.dashboard-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-summary-card {
  margin-bottom: 0;
  width: 100%;
  min-height: 150px;
}

/* Mesma altura em todos os cards da linha (lupa ou não) */
.dashboard-summary-grid .dashboard-summary-card.dashboard-kpi-card.tile {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100% !important;
  min-height: 168px;
}

.dashboard-summary-grid .dashboard-summary-card .x_title {
  flex-shrink: 0;
  min-height: 2.85rem;
  display: flex;
  align-items: center;
}

/* clearfix legado empurrava a altura do título sem necessidade */
.dashboard-summary-grid .dashboard-summary-card .x_title .clearfix {
  display: none;
}

.dashboard-summary-grid .dashboard-summary-card .x_title h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.dashboard-summary-grid .dashboard-summary-card .x_content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 6.25rem;
}

.dashboard-summary-grid .dashboard-summary-card .x_content p {
  margin-bottom: 0;
  min-height: 2.75rem;
  line-height: 1.35;
}

/* Lupa do relatório de clientes no card — garante visibilidade */
.dashboard-page-modern .dashboard-summary-card .x_title--with-action {
  overflow: visible;
  gap: 0.35rem;
}

.dashboard-page-modern .dashboard-summary-card .dashboard-card-relatorio-btn {
  min-width: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

html[data-theme="dark"] .dashboard-page-modern .dashboard-summary-card .dashboard-card-relatorio-btn {
  color: #fff;
}

.dashboard-central-card .x_title h2 {
  min-height: 22px;
}

.dashboard-central-card .dashboard-kpi-number {
  min-height: 40px;
}

.dashboard-central-card .x_content p {
  min-height: 36px;
  margin-bottom: 0;
}

.x_panel .x_content .dashboard-central-grid:last-child,
.dashboard-central-grid:last-child {
  margin-right: 0 !important;
}

/* Evita corte horizontal em qualquer variação de layout */
.dashboard-kpi-card .x_content {
  overflow-x: hidden;
  overflow-y: visible;
}

.dashboard-kpi-card .x_content,
.dashboard-kpi-card .x_title {
  height: auto !important;
}

/* Espaço no final da área de conteúdo */
section.content > .container-fluid {
  padding-bottom: 0.5rem;
}

@media (max-width: 991px) {
  .dashboard-central-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dashboard-central-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }
}
html:not([data-theme="dark"]) .dashboard-kpi-card:not(.dashboard-stat-card):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.09);
}

.dashboard-page .dashboard-kpi-number {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.dashboard-page.dashboard-page-modern .dashboard-kpi-number {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--dash-xs);
}

.dashboard-kpi-number {
  font-size: 30px;
  font-weight: 700;
  color: #2a3f54;
  margin-bottom: 4px;
}

.dashboard-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section-gap {
  margin-top: 1.5rem;
}

.dashboard-page .dashboard-summary-item .x_panel {
  height: 100%;
  flex: 1 1 auto;
}

@media (max-width: 767px) {
  .dashboard-filter-form {
    flex-wrap: wrap;
    width: 100%;
  }

  .dashboard-filter-form .form-control {
    min-width: 0;
  }
}

/* Mensagens globais — compactas (não dominam o formulário) */
.app-messages-row {
  margin-bottom: 0;
}

.app-message {
  border-radius: 6px;
  border-left-width: 3px !important;
  padding: 0.35rem 0.6rem 0.35rem 0.5rem !important;
  margin-bottom: 0.35rem !important;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.app-message__icon {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
  margin-right: 0.45rem;
  margin-top: 0.06rem;
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.95;
}

.app-message__body {
  flex: 1;
  min-width: 0;
}

/* Tema escuro: mensagem compacta (sobrescreve padding grande do .alert global) */
html[data-theme="dark"] .app-message {
  padding: 0.35rem 0.65rem 0.35rem 0.5rem !important;
  margin-bottom: 0.35rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28) !important;
}

html:not([data-theme="dark"]) .app-message.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #14532d;
}

html:not([data-theme="dark"]) .app-message.alert-success .app-message__icon {
  color: #15803d;
}

html:not([data-theme="dark"]) .app-message.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  color: #1e3a8a;
}

html:not([data-theme="dark"]) .app-message.alert-info .app-message__icon {
  color: #1d4ed8;
}

html:not([data-theme="dark"]) .app-message.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
  color: #78350f;
}

html:not([data-theme="dark"]) .app-message.alert-warning .app-message__icon {
  color: #b45309;
}

html:not([data-theme="dark"]) .app-message.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  color: #7f1d1d;
}

html:not([data-theme="dark"]) .app-message.alert-danger .app-message__icon {
  color: #b91c1c;
}

html:not([data-theme="dark"]) .app-message.alert-secondary {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-left-color: #64748b;
  color: #334155;
}

html:not([data-theme="dark"]) .app-message.alert-secondary .app-message__icon {
  color: #475569;
}

html[data-theme="dark"] .app-message .app-message__icon {
  opacity: 1;
}

/* Inbox: chamar atenção quando há operadores aguardando liberação (admin/coordenador) */
.nav-inbox-attention {
  color: #ffc107 !important;
  animation: nav-inbox-pulse 2.2s ease-in-out infinite;
}
@keyframes nav-inbox-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.07);
  }
}

/* ---------- Quadro de anotações — Kanban (cartões) ---------- */
.anotacoes-cmd {
  gap: 0.5rem 0.75rem;
}

.anotacoes-cmd__filter .form-control {
  min-width: 12rem;
  max-width: 20rem;
  height: 34px;
  border-radius: 8px;
  border-color: #d1d5db;
  font-size: 0.875rem;
}

.anotacoes-cmd__new {
  border-radius: 8px;
  font-weight: 600;
}

.anotacoes-kanban {
  margin: 0 -0.5rem;
  padding: 0 0.25rem 1rem;
}

/*
 * Kanban anotações: cadeia flex até ao container-fluid para as colunas
 * (.anotacoes-lane) esticarem até à base da área útil.
 */
.content-wrapper:has(.anotacoes-kanban--fill) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.75rem);
}

.content-wrapper:has(.anotacoes-kanban--fill) .content-header {
  flex-shrink: 0;
}

.content-wrapper:has(.anotacoes-kanban--fill) > section.content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-wrapper:has(.anotacoes-kanban--fill) > section.content > .container-fluid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Mesmo layout quando o :has() não existe ou falha — classe definida em anotacoes_board.html */
.content-wrapper.content-wrapper--anotacoes-fill {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.75rem);
}

.content-wrapper.content-wrapper--anotacoes-fill .content-header {
  flex-shrink: 0;
}

.content-wrapper.content-wrapper--anotacoes-fill > section.content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-wrapper.content-wrapper--anotacoes-fill > section.content > .container-fluid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-wrapper.content-wrapper--anotacoes-fill > section.content > .container-fluid > .anotacoes-board-shell,
.content-wrapper:has(.anotacoes-kanban--fill) > section.content > .container-fluid > .anotacoes-board-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  overflow: hidden;
}

.content-wrapper.content-wrapper--anotacoes-fill > section.content > .container-fluid > .anotacoes-board-shell > .x_content,
.content-wrapper:has(.anotacoes-kanban--fill) > section.content > .container-fluid > .anotacoes-board-shell > .x_content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Ocupa altura e largura úteis (Kanban “full bleed” na secção) */
.anotacoes-kanban--fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: -0.35rem -0.65rem 0;
  padding: 0 0.35rem 0.5rem;
  width: calc(100% + 1.3rem);
  max-width: none;
}

.anotacoes-kanban__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0 0.35rem;
}

.anotacoes-kanban__pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.anotacoes-kanban__pill--accent {
  background: #d1fae5;
  color: #065f46;
}

.anotacoes-kanban__hint {
  font-size: 0.75rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.anotacoes-kanban__scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.anotacoes-kanban__scroll--fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
}

.anotacoes-kanban__board {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding-bottom: 0.25rem;
}

/* Três colunas com a mesma largura (1fr) até preencher a área útil */
.anotacoes-kanban__board.anotacoes-kanban__board--cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.anotacoes-kanban__board--cols3 .anotacoes-lane {
  flex: unset;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: 100%;
}

.anotacoes-lane--placeholder {
  opacity: 0.85;
}

.anotacoes-lane__empty--muted {
  font-style: italic;
}

.anotacoes-kanban__empty {
  padding: 2rem 1rem;
}

/* Coluna estilo Trello — largura partilhada para encher o ecrã */
.anotacoes-lane {
  flex: 1 1 0;
  min-width: clamp(240px, 26vw, 100%);
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 12px;
  background: #ebecf0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.anotacoes-lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.5rem;
  flex-shrink: 0;
}

.anotacoes-lane__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #172b4d;
  letter-spacing: -0.01em;
}

.anotacoes-lane__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 1.35rem;
  height: 1.35rem;
  line-height: 1.35rem;
  text-align: center;
  border-radius: 999px;
  background: rgba(9, 30, 66, 0.08);
  color: #5e6c84;
}

.anotacoes-lane__list {
  list-style: none;
  margin: 0;
  padding: 0 0.55rem;
  flex: 1 1 auto;
  min-height: 8rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.anotacoes-lane__empty {
  margin: 0 0.45rem 0.5rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  color: #5e6c84;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.anotacoes-lane__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0.45rem 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5e6c84;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.anotacoes-lane__add:hover {
  background: rgba(9, 30, 66, 0.08);
  color: #172b4d;
  text-decoration: none;
}

/* Cartão — largura total da coluna, mais área de texto */
.anotacoes-tile {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.55rem;
  margin-bottom: 0.55rem;
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
  cursor: grab;
  border: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.anotacoes-tile:hover {
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.15);
  background: #fafbfc;
}

.anotacoes-tile:active {
  cursor: grabbing;
}

.anotacoes-tile__row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.anotacoes-tile__grip {
  flex-shrink: 0;
  color: #b3b9c4;
  font-size: 0.75rem;
  line-height: 1.4;
  padding-top: 0.1rem;
  cursor: grab;
}

.anotacoes-tile__grip:active {
  cursor: grabbing;
}

.anotacoes-tile__title {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #172b4d;
  text-decoration: none;
}

.anotacoes-tile__title:hover {
  color: #0d6e5c;
  text-decoration: none;
}

.anotacoes-tile__sub {
  font-size: 0.75rem;
  color: #5e6c84;
  line-height: 1.45;
  margin-bottom: 0.4rem;
  padding-left: 1.1rem;
  word-break: break-word;
}

.anotacoes-tile__condo {
  font-weight: 500;
}

.anotacoes-tile__sep {
  margin: 0 0.15rem;
  opacity: 0.7;
}

.anotacoes-tile__reg {
  font-weight: 400;
}

.anotacoes-tile__date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #026aa7;
  background: #e4f0f6;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin: 0 0 0.35rem 1.1rem;
}

.anotacoes-tile__date i {
  font-size: 0.65rem;
  opacity: 0.85;
}

.anotacoes-tile__excerpt {
  font-size: 0.8125rem;
  color: #5e6c84;
  line-height: 1.5;
  margin: 0 0 0.4rem 1.1rem;
  max-height: 6.5em;
  overflow: hidden;
  word-break: break-word;
}

.anotacoes-tile__foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0 0;
  margin-top: 0.15rem;
  border-top: 1px solid #f0f1f3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.anotacoes-tile:hover .anotacoes-tile__foot {
  opacity: 1;
}

@media (hover: none), (max-width: 767px) {
  .anotacoes-tile__foot {
    opacity: 1;
  }
}

.anotacoes-tile__link {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5e6c84;
  cursor: pointer;
  text-decoration: none;
}

.anotacoes-tile__link:hover {
  color: #172b4d;
  text-decoration: underline;
}

.anotacoes-tile__link--danger:hover {
  color: #c9372c;
}

.anotacoes-sortable-ghost {
  opacity: 0.42 !important;
  background: #dfe1e6 !important;
}

.anotacoes-sortable-drag {
  opacity: 1 !important;
  box-shadow: 0 8px 20px rgba(9, 30, 66, 0.18) !important;
  transform: rotate(2deg);
}

/* Formulário cartão de anotação (compacto, alinhado ao Kanban) */
.anotacoes-form-card-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.anotacoes-form-panel--compact .x_title h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.anotacoes-form-prefill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}

.anotacoes-form-prefill-chips__item {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e8f5f0;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.anotacoes-form-panel__note {
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* Tema escuro — quadro anotações (Kanban) */
html[data-theme="dark"] .anotacoes-kanban__pill {
  background: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .anotacoes-kanban__pill--accent {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

html[data-theme="dark"] .anotacoes-lane {
  background: #1e293b;
  box-shadow: inset 0 0 0 1px #334155;
}

html[data-theme="dark"] .anotacoes-lane__name {
  color: #f1f5f9;
}

html[data-theme="dark"] .anotacoes-lane__badge {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

html[data-theme="dark"] .anotacoes-lane__empty {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.4);
}

html[data-theme="dark"] .anotacoes-lane__add {
  color: #94a3b8;
}

html[data-theme="dark"] .anotacoes-lane__add:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

html[data-theme="dark"] .anotacoes-tile {
  background: #0f172a;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .anotacoes-tile:hover {
  background: #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .anotacoes-tile__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .anotacoes-tile__title:hover {
  color: #6ee7b7;
}

html[data-theme="dark"] .anotacoes-tile__sub,
html[data-theme="dark"] .anotacoes-tile__excerpt {
  color: #94a3b8;
}

html[data-theme="dark"] .anotacoes-tile__date {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
}

html[data-theme="dark"] .anotacoes-tile__foot {
  border-top-color: #334155;
}

html[data-theme="dark"] .anotacoes-tile__link {
  color: #94a3b8;
}

html[data-theme="dark"] .anotacoes-tile__link:hover {
  color: #f1f5f9;
}

html[data-theme="dark"] .anotacoes-sortable-ghost {
  background: #334155 !important;
}

html[data-theme="dark"] .anotacoes-form-prefill-chips__item {
  background: rgba(16, 185, 129, 0.15);
  border-color: #047857;
  color: #6ee7b7;
}
