
  /* ===== 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);
  }

  /* ===== 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-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-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-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 {
  background: #fff !important;
  border-color: rgba(105, 108, 255, .35) !important;
  color: var(--system-brand) !important;
}

.btn-outline-dark:hover,
.btn-outline-dark: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;
  }
}

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

  h3 {
    font-size: 1.18rem;
  }

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

  .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: .86rem;
  }

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

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

