
  /* ===== TOGGLE SWITCH CORPORATIVO ===== */
  .switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    vertical-align: middle;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #adb5bd;
    transition: .25s;
    border-radius: 34px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .25s;
    border-radius: 50%;
  }

  .switch input:checked + .slider {
    background-color: #696cff; /* azul corporativo */
  }

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

/* ===== TEMA OSCURO GLOBAL DEL SISTEMA ===== */
html[data-theme="dark"] body {
  background-color: #151521 !important;
  color: #e7e7ef;
}

html[data-theme="dark"] main,
html[data-theme="dark"] footer {
  color: #e7e7ef;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .assistant-panel {
  background-color: #232333;
  border-color: #3a3a4f;
  color: #e7e7ef;
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .table-light,
html[data-theme="dark"] thead {
  background-color: #2b2b3d !important;
  border-color: #3a3a4f;
  color: #f2f2f7;
}

html[data-theme="dark"] .table {
  --bs-table-color: #e7e7ef;
  --bs-table-bg: transparent;
  --bs-table-border-color: #3a3a4f;
  --bs-table-striped-color: #e7e7ef;
  --bs-table-striped-bg: rgba(255, 255, 255, .025);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(105, 108, 255, .12);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .select2-selection,
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .select2-search__field {
  background-color: #181824 !important;
  border-color: #46465d !important;
  color: #f2f2f7 !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .select2-selection__placeholder,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text {
  color: #a9a9ba !important;
}

html[data-theme="dark"] .select2-results__option {
  background-color: #232333;
  color: #e7e7ef;
}

html[data-theme="dark"] .select2-results__option--highlighted,
html[data-theme="dark"] .select2-results__option[aria-selected="true"] {
  background-color: #696cff !important;
  color: #fff !important;
}

html[data-theme="dark"] .btn-icon {
  background: #2b2b3d;
  border-color: #46465d;
  color: #d7d7e3;
}

html[data-theme="dark"] .btn-icon:hover {
  background: #35354a;
  color: #8f91ff;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .alert-light {
  background-color: #2b2b3d !important;
  color: #e7e7ef !important;
  border-color: #46465d !important;
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom {
  border-color: #3a3a4f !important;
}

  /* ===== BOTÓN ÍCONO (VER) ===== */
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #566a7f;
  background: #fff;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-icon i {
  font-size: 1rem;
  line-height: 1;
}

.btn-icon:hover {
  background-color: #f5f6fa;
  border-color: #d9dee3;
  color: #696cff;
  transform: translateY(-1px);
}

/* ===== BADGE ACTIVA / INACTIVA (OUTLINE) ===== */
.badge-outline {
  background-color: transparent;
  border: 1px solid;
  border-radius: .5rem;
  padding: .35rem .6rem;
  font-weight: 600;
  font-size: .75rem;
}

/* Activa */
.badge-outline-active {
  color: #42ab49;           /* verde Bootstrap */
  border-color: #42ab49;
}

/* Inactiva */
.badge-outline-inactive {
  color: #6c757d;         /* gris claro */
  border-color: #6c757d;
}

.badge-outline-warning {
  color: #8a5a00;
  border-color: #f0b429;
  background-color: #fff4cc;
}

.badge-outline-danger {
  color: #9f1d20;
  border-color: #c63637;
  background-color: #fde2e2;
}

/* ===== ICONOS 3D (TABLAS) ===== */
.icon-3d {
  width: 22
  px;          /* tamaño ideal */
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.icon-3d:hover {
  transform: scale(1.15);
  filter: brightness(1.05);
}

.btn-reset{
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

  table.table {
    font-size: 1.05rem; /* 👈 letras más grandes */
  }

  table.table thead th {
    font-size: 1.1rem;
    font-weight: 700;
  }

  table.table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
    
  }

  

  .switch {
    transform: scale(1.1); /* 👈 toggle más grande */
  }

  .card {
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
  }

  .form-label {
    font-size: 1rem;
    font-weight: 600;
  }

  input, select, textarea {
    font-size: 1rem !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    line-height: 1.35 !important;
  }

  .form-control,
  .form-select {
    min-height: 44px;
    height: auto;
    line-height: 1.35 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .form-control-sm,
  .form-select-sm {
    min-height: 34px;
    line-height: 1.25 !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    font-size: .875rem !important;
  }

  h3 {
    font-size: 1.6rem;
    font-weight: 700;
  }

  h6 {
    font-size: 1.05rem;
    font-weight: 700;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .form-text {
    font-size: .9rem;
  }


    h3 {
    font-size: 1.6rem;
    font-weight: 700;
  }

  h6 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .card-body div {
    font-size: 1rem;
  }

  .text-muted.small {
    font-size: .9rem;
  }

  .badge {
    font-size: .85rem;
    padding: 6px 10px;
    border-radius: 8px;
  }

  .badge-status {
    background-color: #eef2ff;
    color: #3730a3;
    border-color: #818cf8;
    font-weight: 600;
    padding: .35rem .6rem;
    border-radius: .5rem;
    border: 1px solid;
    font-size: .75rem;
  }

  .badge-status-approved,
  .badge-status-done,
  .badge-status-finalizado,
  .badge-status-signed,
  .badge-status-paid,
  .badge-status-received,
  .badge-status-aprobada {
    color: #42ab49;
    border-color: #42ab49;
    background-color: rgba(66, 171, 73, .12);
    font-weight: 500;
  }

  .badge-status-draft,
  .badge-status-borrador,
  .badge-status-created,
  .badge-status-issued {
    color: #4b5563;
    border-color: #9ca3af;
    background-color: #f3f4f6;
  }

  .badge-status-sent,
  .badge-status-reviewed,
  .badge-status-in_progress,
  .badge-status-scheduled,
  .badge-status-technical_visit,
  .badge-status-ready_review,
  .badge-status-partial,
  .badge-status-confirmed,
  .badge-status-on_site,
  .badge-status-enviada,
  .badge-status-progreso {
    color: #696cff;
    border-color: #696cff;
    background-color: rgba(105, 108, 255, .08);
  }

  .badge-status-pending,
  .badge-status-requested,
  .badge-status-waiting_materials,
  .badge-status-suspended,
  .badge-status-due_today {
    color: #b7791f;
    border-color: #f6c343;
    background-color: rgba(246, 195, 67, .14);
  }

  .badge-status-delivered,
  .badge-status-invoiced,
  .badge-status-collected {
    color: #0f766e;
    border-color: #14b8a6;
    background-color: rgba(20, 184, 166, .10);
  }

  .badge-status-closed {
    color: #374151;
    border-color: #6b7280;
    background-color: rgba(107, 114, 128, .10);
  }

  .badge-status-rejected,
  .badge-status-cancelled,
  .badge-status-cancelado,
  .badge-status-cancelada,
  .badge-status-expired,
  .badge-status-overdue,
  .badge-status-failed,
  .badge-status-rechazada,
  .badge-status-cancelada {
    color: #c63637;
    border-color: #c63637;
    background-color: rgba(198, 54, 55, .12);
  }

  .badge-status-reimbursed,
  .badge-status-removed,
  .badge-status-assigned,
  .badge-status-info {
    color: #374151;
    border-color: #9ca3af;
    background-color: #f3f4f6;
  }

  .badge.text-bg-light,
  .badge.border.text-muted.bg-transparent {
    color: #374151 !important;
    border-color: #9ca3af !important;
    background-color: #f3f4f6 !important;
  }

  .list-group-item {
    font-size: 1rem;
    padding: 10px 14px;
  }

  .btn {
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  img {
    box-shadow: 0 6px 12px rgba(0,0,0,.12);
  }

  /* ===============================
   BOTONES OSCUROS – TEMA SISTEMA
   =============================== */

.btn-dark {
  background-color: #696cff !important;
  border-color: #696cff !important;
  color: #fff !important;
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: #696cff !important; /* un poco más oscuro */
  border-color: #696cff !important;
  color: #fff !important;
}

.btn-outline-dark {
  color: #696cff !important;
  border-color: #696cff !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: #696cff !important;
  border-color: #696cff !important;
  color: #fff !important;
}

/* ===============================
   RESPONSIVE BASE DEL SISTEMA
   =============================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main.container {
  max-width: 1500px;
  width: calc(100% - 48px);
}

/* ===============================
   PRUEBA VISUAL 2026: SISTEMA PRO
   Quitar este bloque para volver al estilo anterior.
   =============================== */
:root {
  --system-bg: #f6f7fb;
  --system-panel: #ffffff;
  --system-border: #e6e8f0;
  --system-text: #172033;
  --system-muted: #667085;
  --system-brand: #696cff;
  --system-brand-soft: rgba(105, 108, 255, .10);
  --system-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}

body {
  background:
    radial-gradient(900px 420px at 50% -220px, rgba(105, 108, 255, .14), transparent 70%),
    var(--system-bg) !important;
  color: var(--system-text);
  font-size: 15px;
}

main.container {
  padding-left: 0;
  padding-right: 0;
}

.card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--system-border);
  border-radius: 16px;
  box-shadow: var(--system-shadow);
}

.card-body {
  padding: 1.25rem;
}

.card h5,
.card h6,
h3 {
  color: var(--system-text);
  letter-spacing: -.01em;
}

.text-muted,
.small.text-muted,
.text-muted.small {
  color: var(--system-muted) !important;
}

.table-responsive {
  background: var(--system-panel);
  border: 1px solid var(--system-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.table {
  color: var(--system-text);
}

table.table {
  font-size: 1.04rem;
}

table.table thead th,
.table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--system-border);
  color: #475467;
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .055em;
  padding-bottom: 12px;
  padding-top: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

table.table tbody td,
.table tbody td {
  border-color: #eef0f5;
  padding-bottom: 14px;
  padding-top: 14px;
}

.table-hover tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
}

.table-hover tbody tr:hover {
  background: #f9fafb;
}

.table .fw-semibold,
.table .fw-bold {
  color: #101828;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-dark,
.btn-primary {
  background: var(--system-brand) !important;
  border-color: var(--system-brand) !important;
  box-shadow: 0 8px 18px rgba(105, 108, 255, .18);
}

.btn-outline-dark,
.btn-outline-primary {
  background: #fff !important;
  border-color: rgba(105, 108, 255, .35) !important;
  color: var(--system-brand) !important;
}

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

.form-control,
.form-select,
.select2-container .select2-selection--multiple {
  border-color: #d8dce7 !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(105, 108, 255, .55) !important;
  box-shadow: 0 0 0 .22rem rgba(105, 108, 255, .12) !important;
}

.badge,
.badge-status,
.badge-outline {
  border-radius: 999px;
  font-weight: 600;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.table-responsive > .table {
  margin-bottom: 0;
}

.table th,
.table td {
  vertical-align: middle;
}

.table td,
.table th,
.card,
.list-group-item,
.alert,
.dropdown-menu {
  overflow-wrap: anywhere;
}

.table-actions,
td .d-flex.gap-2,
td .btn-group {
  flex-wrap: wrap;
}

.mobile-record-list {
  display: grid;
  gap: 12px;
}

.mobile-record-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  padding: 14px;
}

.mobile-record-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mobile-record-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-record-subtitle {
  color: #6b7280;
  font-size: .88rem;
  line-height: 1.35;
  margin-top: 3px;
}

.mobile-record-meta {
  color: #4b5563;
  font-size: .88rem;
  line-height: 1.35;
  margin-top: 10px;
}

.mobile-record-row {
  align-items: center;
  border-top: 1px solid #eef2f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

.mobile-record-row span,
.mobile-record-grid span {
  color: #6b7280;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-record-row strong,
.mobile-record-grid strong {
  color: #111827;
  display: block;
  font-size: .92rem;
  line-height: 1.25;
  margin-top: 2px;
}

.mobile-record-grid {
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
}

.mobile-record-actions {
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.mobile-record-actions > .btn,
.mobile-record-actions > form {
  flex: 1 1 112px;
}

.mobile-record-actions form .btn {
  width: 100%;
}

.mobile-empty {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  padding: 18px;
  text-align: center;
}

@media (max-width: 991.98px) {
  body {
    font-size: 14px;
  }

  main.container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .container,
  .container-fluid {
    max-width: 100%;
  }

  .card {
    border-radius: 10px;
  }

  .card-body {
    padding: 1rem;
  }

  h3 {
    font-size: 1.32rem;
    line-height: 1.25;
  }

  h5 {
    font-size: 1.08rem;
  }

  .d-flex.justify-content-between {
    gap: .75rem;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 42px;
  }

  .table {
    min-width: 760px;
    font-size: .92rem;
  }

  .table thead th {
    font-size: .92rem;
    white-space: nowrap;
  }

  .table tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 767.98px) {
  body {
    background-color: #f4f6fb;
  }

  main.container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .container.mt-5,
  .container.pt-4,
  .container.mt-5.pt-4 {
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }

  .d-flex.justify-content-between,
  .d-flex.align-items-center,
  .d-flex.align-items-start {
    flex-wrap: wrap;
  }

  .d-flex.justify-content-between > .d-flex,
  .d-flex.align-items-center > .d-flex,
  .d-flex.align-items-start > .d-flex {
    flex-wrap: wrap;
  }

  .btn {
    font-size: .92rem;
    padding: 8px 11px;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  form.row [class*="col-md-"],
  form.row [class*="col-lg-"] {
    width: 100%;
  }

  .row.g-3,
  .row.g-4 {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }

  .table-responsive {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: .25rem;
  }

  .pagination .page-link {
    min-width: 38px;
    text-align: center;
  }

  .modal-dialog {
    margin: .75rem;
  }
}

/* La capa oscura va al final para prevalecer sobre los estilos de tablas y móviles. */
html[data-theme="dark"] .table-responsive {
  background: #232333 !important;
  border-color: #3a3a4f !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] table.table,
html[data-theme="dark"] .table {
  --bs-table-color: #e7e7ef;
  --bs-table-bg: #232333;
  --bs-table-border-color: #3a3a4f;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: #e7e7ef;
  --bs-table-striped-bg: #282839;
  --bs-table-active-color: #fff;
  --bs-table-active-bg: #303047;
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: #303047;
  background-color: #232333 !important;
  color: #e7e7ef !important;
}

html[data-theme="dark"] table.table > :not(caption) > * > *,
html[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: var(--bs-table-bg) !important;
  border-color: #3a3a4f !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, transparent));
  color: #e7e7ef !important;
}

html[data-theme="dark"] table.table thead th,
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] table.table .table-light th,
html[data-theme="dark"] .table-light > * > * {
  --bs-table-bg: #2b2b3d;
  background: #2b2b3d !important;
  border-color: #46465d !important;
  color: #f2f2f7 !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: #282839;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: #303047;
  background-color: #303047 !important;
  color: #fff !important;
}

html[data-theme="dark"] .table .fw-semibold,
html[data-theme="dark"] .table .fw-bold,
html[data-theme="dark"] .table a:not(.btn):not(.badge) {
  color: #f2f2f7 !important;
}

html[data-theme="dark"] .mobile-record-card {
  background: #232333 !important;
  border-color: #3a3a4f !important;
  color: #e7e7ef;
}

/* ===== LEGIBILIDAD Y ACCESIBILIDAD VISUAL ===== */
body {
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  overflow-wrap: normal;
}

h2 { font-size: clamp(1.55rem, 2.2vw, 2rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); }

.small,
small,
.form-text {
  font-size: .875rem;
  line-height: 1.45;
}

.form-label {
  color: #344054;
  font-weight: 600;
  margin-bottom: .45rem;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 42px;
  font-size: 1rem;
}

.form-control::placeholder {
  color: #7a8292;
  opacity: 1;
}

.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1.25;
  min-height: 40px;
  padding: .55rem .9rem;
}

.btn-sm {
  min-height: 34px;
  padding: .38rem .7rem;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(105, 108, 255, .35) !important;
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: .62;
}

.text-warning {
  color: #806000 !important;
}

.bg-warning,
.text-bg-warning {
  background-color: #ffdf7e !important;
  color: #3d2b00 !important;
}

.bg-warning-subtle {
  background-color: #fff7dc !important;
  color: #3d2b00 !important;
}

.bg-danger-subtle {
  background-color: #fff0f1 !important;
  color: #65151d !important;
}

.alert {
  border-radius: 12px;
  color: #344054;
  line-height: 1.5;
}

.alert-light {
  background: #fff;
  border-color: #dfe3eb !important;
}

.alert-info {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #243b6b;
}

.alert-warning {
  background: #fff7dc;
  border-color: #f1d27a;
  color: #574000;
}

.card-header.bg-dark {
  background: #2f318f !important;
  color: #fff !important;
}

.card-header.bg-dark :where(h1, h2, h3, h4, h5, h6, .small, small) {
  color: #fff !important;
}

.finance-control-header {
  background: linear-gradient(135deg, #dff5e7 0%, #ccebd9 100%) !important;
  border-bottom-color: #acd9be !important;
  color: #174d31 !important;
}

.finance-control-header h5 {
  color: #174d31 !important;
}

.finance-control-subtitle {
  color: #3f6f55 !important;
}

.table a:not(.btn) {
  color: #4d4fd1;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.table a:not(.btn):hover {
  color: #3032a8;
  text-decoration: underline;
}

.badge {
  font-size: .78rem;
  line-height: 1.25;
  padding: .38rem .6rem;
}

html[data-theme="dark"] main .form-label {
  color: #e2e2ec !important;
}

html[data-theme="dark"] main .text-warning {
  color: #ffd76a !important;
}

html[data-theme="dark"] main :where(.bg-warning-subtle, .alert-warning) {
  background: #493b13 !important;
  border-color: #75611f !important;
  color: #fff1b8 !important;
}

html[data-theme="dark"] main .bg-danger-subtle {
  background: #4a2429 !important;
  border-color: #81404a !important;
  color: #ffd9de !important;
}

html[data-theme="dark"] main .finance-control-header {
  background: linear-gradient(135deg, #1d4934 0%, #173d2c 100%) !important;
  border-bottom-color: #387458 !important;
  color: #edfff4 !important;
}

html[data-theme="dark"] main .finance-control-header h5 {
  color: #edfff4 !important;
}

html[data-theme="dark"] main .finance-control-subtitle {
  color: #b8dfc7 !important;
}

html[data-theme="dark"] main :where(.alert-light, .alert-info) {
  background: #29293b !important;
  border-color: #484862 !important;
  color: #e7e7ef !important;
}

html[data-theme="dark"] main .btn-outline-secondary {
  border-color: #74748b !important;
  color: #e0e0ea !important;
}

html[data-theme="dark"] main .btn-outline-secondary:hover,
html[data-theme="dark"] main .btn-outline-secondary:focus {
  background: #3d3d53 !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .card-body {
    padding: .85rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .text-muted.small,
  .form-text {
    font-size: .875rem;
  }

  .btn:not(.btn-icon):not(.btn-sm) {
    width: 100%;
  }

  .table .btn:not(.btn-icon),
  .table form {
    width: auto;
  }

  .d-flex.gap-2,
  .d-flex.gap-3 {
    width: 100%;
  }

  .d-flex.gap-2 > .btn,
  .d-flex.gap-3 > .btn,
  .d-flex.gap-2 > form,
  .d-flex.gap-3 > form {
    flex: 1 1 160px;
  }

  .badge {
    white-space: normal;
    text-align: left;
  }

  .table {
    min-width: 680px;
    font-size: .9rem;
  }

  .mobile-record-card .badge {
    flex: 0 0 auto;
    max-width: 46%;
    text-align: right;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

