/* ==========================================================================
   ESTILOS GENERALES DEL PANEL DE ADMINISTRACIÓN (ECO BIKE - ORIGINAL BASE)
   ========================================================================== */
:root {
  --admin-primary: #e53935;
  --admin-primary-hover: #c62828;
  --admin-bg: #f4f5f7;
  --admin-card-bg: #ffffff;
  --admin-text: #141416;
  --admin-border: #e0e0e0;
  --admin-error-bg: #ffebee;
  --admin-error-text: #c62828;
}

body.admin-body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  margin: 0;
  padding: 40px 20px;
}

.admin-container {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--admin-card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--admin-border);
}

.admin-header {
  margin-bottom: 25px;
  border-bottom: 2px solid var(--admin-bg);
  padding-bottom: 15px;
}

.admin-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--admin-text);
  text-transform: uppercase;
}

/* Alertas */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background-color: var(--admin-error-bg);
  color: var(--admin-error-text);
  border: 1px solid #ffcdd2;
}

/* Alertas de Confirmación/Éxito */
.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Formularios */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333333;
}

.form-input,
.form-select,
.form-textarea,
.form-file {
  width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  background-color: #ffffff;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--admin-primary);
  color: #ffffff;
}

.btn-primary:hover {
  color: #ffffff;
  background-color: #000000;
}

.btn.btn-primary-home {
  background-color: #847c11;
  color: #ffffff;
}

.btn-primary-home:hover {
  color: #ffffff;
  background-color: #000000;
}

.btn-secondary {
  background-color: #f1f3f5;
  color: #495057;
  border: 1px solid #ced4da;
}

.btn-secondary:hover {
  background-color: #e9ecef;
  color: #212529;
}

/* Botón Ver en Tienda */
.btn-view-live {
  background-color: #0284c7;
  color: #ffffff;
}

.btn-view-live:hover {
  background-color: #0369a1;
  color: #ffffff;
}

/* Vista previa de imagen en formulario de edición */
.image-preview-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
  background-color: var(--admin-bg);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
}

.image-preview-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--admin-border);
}

.image-preview-info {
  font-size: 13px;
  color: #555555;
}

/* Modificador para contenedores anchos (Tablas / Listados) */
.admin-container-wide {
  max-width: 1260px;
  width: 96%;
  margin: 0 auto;
}

/* Barra superior del Panel */
.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--admin-bg);
  gap: 16px;
  flex-wrap: wrap;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.admin-header-actions .btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Barra de acciones secundarias */
.admin-actions-bar {
  margin-bottom: 20px;
}

/* Tabla de Administración */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #ffffff;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table th {
  background-color: var(--admin-bg);
  font-weight: 700;
  color: #444444;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background-color: #fafafa;
}

.table-thumb,
.admin-thumb-img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  object-fit: cover !important;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid var(--admin-border);
  display: block;
  margin: 0 auto;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
  color: #94a3b8;
  text-align: center;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Columna de Acciones de la tabla (Siempre 3 botones en línea) */
.row-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

.th-acciones,
.admin-table th:last-child,
.admin-table td:last-child {
  width: 130px !important;
  min-width: 130px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.btn-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-size: 13px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.btn-action-view {
  background-color: #3235db !important;
  color: #ffffff !important;
}
.btn-action-view:hover {
  background-color: #000000 !important;
}

.btn-action-edit {
  background-color: #1976d2 !important;
  color: #ffffff !important;
}
.btn-action-edit:hover {
  background-color: #0a3a75 !important;
}

.btn-action-del {
  background-color: #f10404 !important;
  color: #ffffff !important;
}
.btn-action-del:hover {
  background-color: #000000 !important;
}

.btn-whatsapp-action {
  background-color: #055021 !important;
  color: #ffffff !important;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-whatsapp-action:hover {
  background-color: #7ee9a5 !important;
  color: #000000 !important;
}

.btn-action-print {
  background-color: #ec0e0e !important;
  color: #ffffff !important;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-action-print:hover {
  background-color: #df9898 !important;
  color: #000000 !important;
}

.text-center {
  text-align: center !important;
}

/* Estilos de botones adicionales del Panel */
.btn.btn-logout {
  background-color: #555555;
  color: #ffffff;
  font-size: 14px;
}

.btn-logout:hover {
  background-color: #000000;
}

.btn-edit {
  background-color: #1976d2;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-edit:hover {
  background-color: #0a3a75;
}

.btn-delete {
  background-color: #f10404;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-delete:hover {
  background-color: #000000;
}

.btn-sm {
  margin: 10px 0 40px 0;
}

.btn-delete-grande {
  background-color: #f10404;
  color: #ffffff;
}

.btn-categoria {
  background-color: #160564;
  color: #ffffff;
}
/* ==========================================================================
   ESTILOS DE LOGIN DE ADMINISTRACIÓN
   ========================================================================== */
body.login-body {
  background-color: #141416;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.login-box {
  background-color: #1f1f23;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #2d2d35;
}

.login-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.login-box .form-label {
  color: #e0e0e0;
}

.form-input-dark {
  background-color: #2a2a30;
  border: 1px solid #444444;
  color: #ffffff;
}

.form-input-dark:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-salir {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #aaaaaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.btn-salir:hover {
  color: #ffffff;
  text-decoration: underline;
}
.form-inline {
  display: inline;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN DE ELIMINACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-icon-warning {
  width: 60px;
  height: 60px;
  background-color: #ffebee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.modal-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 800;
  color: #141416;
}

.modal-text {
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.modal-text strong {
  color: #d32f2f;
  word-break: break-word;
}

.modal-subtext {
  font-size: 12px;
  color: #777777;
  margin: 0 0 24px 0;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-actions .btn {
  min-width: 130px;
}

.page-link {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.page-link.active {
  font-size: 18px;
  font-weight: 700;
  color: blue;
  text-decoration: underline;
}

/* Información del usuario y rol */
.admin-user-info {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-rol {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-rol-admin {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-rol-empleado {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-rol-visualizador {
  background-color: #f3f4f6;
  color: #4b5563;
}

.badge-estado {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-activo {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-inactivo {
  background-color: #fee2e2;
  color: #991b1b;
}

.btn-gest-users {
  background-color: #2563eb;
  color: #fff;
}

.btn-gest-users:hover {
  color: #fff;
  background-color: #000;
}

.solo-lectura {
  color: #991b1b;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
}

/* ======================================================
   GESTIÓN DE GALERÍA DE IMÁGENES (ADMIN)
====================================================== */
.galeria-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.galeria-admin-item {
  position: relative;
  background: #17181c;
  border: 1px solid #333640;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.galeria-admin-thumb {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.galeria-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #ea3d33;
  font-weight: 600;
  cursor: pointer;
}

.galeria-checkbox-label input[type="checkbox"] {
  accent-color: #ea3d33;
}

/* ======================================================
   ESPECIFICACIONES TÉCNICAS (CSP Compliant)
====================================================== */
.specs-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333640;
}

.specs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.specs-section-title {
  margin: 0;
  font-size: 0.95rem;
  color: #ea3d33;
  font-weight: bold;
}

.specs-btn-add {
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.specs-description-hint {
  font-size: 0.78rem;
  color: #888890;
  margin-bottom: 14px;
}

.specs-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.btn-spec-remove {
  background: #ea3d33;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  transition: background 0.2s;
}

.btn-spec-remove:hover {
  background: #c92f26;
}

.admin-form-actions-margin {
  margin-top: 30px;
}

.label-quitar-imagen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  cursor: pointer;
  color: #ea3d33;
  font-weight: 600;
  font-size: 0.85rem;
}

.label-quitar-imagen input[type="checkbox"] {
  accent-color: #ea3d33;
}

/* Botón Ver en listado de productos */
.btn-view {
  background-color: #048504;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
}

.btn-view:hover {
  background-color: #023d07;
  color: #ffffff;
}

/* Efecto hover sobre miniatura cliqueable */
.table-thumb-link {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.table-thumb-link:hover .table-thumb {
  transform: scale(1.08);
  border-color: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.35);
}

/* Enlace del título del producto */
.table-prod-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.table-prod-link:hover {
  color: #e53935;
  text-decoration: underline;
}

/* ======================================================
   ESTILOS DE BANDEJA DE MENSAJES
====================================================== */
.btn-mensajes {
  background-color: #0f766e;
  color: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-mensajes:hover {
  background-color: #000000;
  color: #ffffff;
}

.badge-counter {
  background-color: #ea3d33;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

.badge-nuevo {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.badge-leido {
  background-color: #f3f4f6;
  color: #6b7280;
}

.fila-mensaje-nuevo {
  background-color: #f0fdf4 !important;
}

.mensaje-texto-box {
  max-width: 380px;
  max-height: 90px;
  overflow-y: auto;
  font-size: 13px;
  color: #333333;
  line-height: 1.4;
  background: #fafafa;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* ======================================================
   ESTILOS DE CONTROL DE STOCK
====================================================== */
.badge-stock {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-stock-alto {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.badge-stock-bajo {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-stock-agotado {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 800;
}

.alerta-stock-critico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  margin: 20px 0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Botón Clonar / Duplicar */
.btn-clone {
  background-color: #6366f1;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.btn-clone:hover {
  background-color: #4b40c5;
  color: #ffffff;
}

/* Botón Exportar a Excel */
.btn-excel {
  background-color: #107c41;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-excel:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Botón Precios Masivos */
.btn-precios {
  background-color: #d97706;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-precios:hover {
  background-color: #000000;
  color: #ffffff;
}

/* ======================================================
   ORDENAMIENTO DE COLUMNAS (TABLA)
====================================================== */
.th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.th-sortable:hover {
  background-color: #eaecef;
}

.th-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.th-sort-link:hover {
  color: #e53935;
}

.sort-inactive {
  color: #b0b3b8;
  font-size: 11px;
}

.sort-active {
  color: #e53935;
  font-size: 14px;
}

/* ======================================================
   FEATURE A: 4 TARJETAS DE MÉTRICAS FINANCIERAS
====================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.metric-card-highlight {
  background: linear-gradient(135deg, #cffce7 0%, #ffffff 100%);
  border-color: #bbf7d0;
}

.metric-card-rosa {
  background: linear-gradient(135deg, #e9bde7 0%, #ffffff 100%);
  border-color: #f7bbe5;
}

.metric-card-amarillo {
  background: linear-gradient(135deg, #e4f390 0%, #ffffff 100%);
  border-color: #dbf777;
}

.metric-card-blue {
  background: linear-gradient(135deg, #bfc5f3 0%, #ffffff 100%);
  border-color: #0d10e6;
}

.metric-title {
  font-size: 11px;
  font-weight: 800;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-number {
  font-size: 28px;
  font-weight: 900;
  color: #141416;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-number.metric-amber {
  color: #d97706;
}

.metric-number.metric-red {
  color: #d92606;
}

.metric-number.metric-teal {
  color: #04534d;
}

.metric-number.metric-green {
  color: #15803d;
}

.metric-sub {
  font-size: 12px;
  color: #777777;
}

/* ======================================================
   FEATURE C: BARRA FLOTANTE DE ACCIONES POR LOTE
====================================================== */
.bulk-actions-bar {
  background-color: #1e1e24;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: fadeInDown 0.2s ease-out;
}

.bulk-bar-hidden {
  display: none !important;
}

.bulk-counter {
  font-size: 14px;
  font-weight: 800;
  color: #4ade80;
}

.bulk-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-select {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  background-color: #1d870a;
  color: #ffffff;
  border-color: #444444;
  font-weight: 600;
}

.bulk-actions-bar .btn,
.bulk-actions-bar button {
  padding: 8px 16px !important;
  font-size: 13px !important;
  margin: 0 !important;
}

.btn-auditoria {
  background-color: #4338ca;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-auditoria:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-destruir {
  padding: 12px 20px;
  font-size: 14px;
  color: #ffffff;
  background-color: #1b04ee;
}

.btn-destruir:hover {
  background-color: #000000;
}

.btn-papelera {
  background: #545455;
  color: #ffffff;
}

.btn-papelera:hover {
  background: #000000;
  color: #ffffff;
}

.btn-restaurar,
.btn-destruir {
  padding: 12px 12px;
  font-size: 12px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   LAYOUT COMPACTO DE FILTROS Y BÚSQUEDA
====================================================== */
.admin-toolbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
  background-color: #f8fafc !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-filter-form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  flex: 1 1 auto !important;
  margin-bottom: 0 !important;
}

.toolbar-search {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 220px !important;
  min-width: 190px !important;
  margin: 0 !important;
}

.toolbar-search i {
  position: absolute !important;
  left: 12px !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}

.toolbar-search input {
  width: 100% !important;
  padding: 8px 12px 8px 34px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 4px !important;
  font-size: 13.5px !important;
  height: 40px !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
}

.admin-filter-form select,
.admin-filter-form .form-select,
.select-cat,
.select-stock,
.select-per-page {
  width: auto !important;
  min-width: 130px !important;
  max-width: 250px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
}

.toolbar-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.toolbar-trash-link,
a[href*="papelera"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

.filtros-superiores-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.filtros-superiores-row .form-select {
  margin: 0 !important;
  width: 100%;
}

.filtros-superiores-row .btn-sm {
  margin: 5px 0 0 0 !important;
  align-self: flex-start;
}

/* Fila combinada: Ver: [20] + Buscador en vivo */
.search-page-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin-top: 5px;
}

.ver-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 75px;
  flex-shrink: 0;
}

.ver-label {
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  margin: 0;
}

.ver-select {
  width: 100% !important;
  margin: 0 !important;
  height: 42px;
  padding: 6px 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.search-wrapper {
  flex: 1;
}

.search-live-input {
  width: 100% !important;
  margin: 0 !important;
  height: 42px;
  padding: 10px 14px;
  box-sizing: border-box;
}

.admin-count-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* Botón Backup BD */
.btn-backup {
  background-color: #0891b2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.btn-backup:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Botón Taller / Boxes */
.btn-taller {
  background-color: #8c06d9;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-taller:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn.btn-print {
  margin: 20px;
}

/* ======================================================
   ESTILOS DE COMPROBANTE DE TALLER (IMPRESIÓN / PDF)
====================================================== */
body.imprimir-body {
  background-color: #f1f5f9;
  color: #1e293b;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.imprimir-barra-acciones {
  background-color: #1e1e24;
  padding: 16px 20px;
  border-bottom: 2px solid #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.imprimir-acciones-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.imprimir-documento-hoja {
  max-width: 820px;
  margin: 30px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}

.talon-card {
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  padding: 24px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.talon-card-taller {
  background-color: #f8fafc;
  border-style: solid;
  border-color: #cbd5e1;
}

.talon-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.talon-marca {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.talon-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.talon-numero-box {
  text-align: right;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.talon-numero-label {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 800;
}

.talon-numero-val {
  font-size: 20px;
  font-weight: 900;
  color: #d97706;
  font-family: monospace;
}

.talon-numero-destacado .talon-numero-val {
  font-size: 24px;
  color: #b91c1c;
}

.talon-grid-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.talon-dato-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dato-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.dato-val {
  color: #1e293b;
  font-size: 14px;
}

.talon-box-trabajo {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.trabajo-titulo {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.trabajo-texto {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
}

.notas-internas-alerta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #b45309;
}

.talon-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.talon-terminos {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  max-width: 480px;
}

.talon-total-box {
  text-align: right;
  white-space: nowrap;
}

.total-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.total-monto {
  font-size: 22px;
  font-weight: 900;
  color: #15803d;
}

.linea-corte-recorte {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin: 25px 0;
  user-select: none;
}

/* COMPORTAMIENTO AL IMPRIMIR O GENERAR PDF */
@media print {
  .no-print {
    display: none !important;
  }
  body.imprimir-body {
    background-color: #ffffff !important;
    padding: 0 !important;
  }
  .imprimir-documento-hoja {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
}

.btn.btn-etiquetas {
  background-color: #545455;
  color: #ffffff;
}

.btn-etiquetas:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn.btn-presupuestos {
  background-color: #ad0fa5;
  color: #ffffff;
  margin-top: 10px;
}

.btn-presupuestos:hover {
  background-color: #000000;
  color: #ffffff;
  margin-top: 10px;
}

/* Botón Ventas & POS (Verde Esmeralda) */
.btn.btn-pos {
  background-color: #059669;
  color: #ffffff;
  margin-top: 10px;
}

.btn-pos:hover {
  background-color: #000000;
  color: #ffffff;
  margin-top: 10px;
}

/* Botón Caja Diaria (Azul Cielo Profesional) */
.btn.btn-caja {
  background-color: #0284c7;
  color: #ffffff;
  margin-top: 10px;
}

.btn-caja:hover {
  background-color: #000000;
  color: #ffffff;
  margin-top: 10px;
}

/* ==========================================================================
   ESTILOS DE TABLA Y FILTROS PARA INDEX (100% CSP COMPLIANT)
   ========================================================================== */
.th-check {
  width: 38px;
  text-align: center;
}

.admin-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.form-hidden {
  display: none;
}

.icono-papelera-title {
  color: #d32f2f;
}

.alert-undo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-undo {
  background: #ffffff;
  border: 1px solid #2e7d32;
  color: #2e7d32;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
}
.btn-undo:hover {
  background: #e8f5e9;
}

.filtros-botones-wrapper {
  display: flex;
  gap: 8px;
}

.bulk-label-accion {
  font-size: 13px;
  color: #a3a3a3;
}

/* ==========================================================================
   ESTILOS DE BANDEJA DE MENSAJES (100% CSP COMPLIANT)
   ========================================================================== */
.td-fecha-mensaje {
  white-space: nowrap;
  font-size: 13px;
  color: #666666;
}

.btn-accion-mini {
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.bandeja-vacia-card {
  background: #ffffff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
}

.bandeja-vacia-icono {
  font-size: 3rem;
  color: #aaaaaa;
  margin-bottom: 12px;
}

.bandeja-vacia-texto {
  font-size: 1.1rem;
  color: #555555;
  margin: 0;
}

/* ==========================================================================
   ESTILOS PARA PANTALLA PRECIOS MASIVOS (100% CSP COMPLIANT)
   ========================================================================== */
.precios-intro-text {
  font-size: 14px;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-hint-small {
  color: #777777;
  font-size: 12px;
  margin-top: -4px;
  display: block;
}

.form-group-checkbox {
  margin-top: 5px;
}

.checkbox-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

.checkbox-redondear {
  accent-color: #e53935;
  width: 16px;
  height: 16px;
}

.form-actions-precios {
  margin-top: 25px;
}

.btn-aplicar-precios {
  background-color: #d97706 !important;
  color: #ffffff !important;
}
.btn-aplicar-precios:hover {
  background-color: #b45309 !important;
}

/* ==========================================================================
   Gestión de Usuarios (admin/usuarios.php)
   ========================================================================== */
.fila-inactiva {
  opacity: 0.6;
  background-color: #fcfcfc;
}

.badge-tu-usuario {
  font-size: 11px;
  color: #15803d;
  font-weight: 700;
  margin-left: 5px;
}

.td-permisos-desc {
  color: #64748b;
  font-size: 13px;
}

/* ==========================================================================
   Registro de Auditoría (admin/auditoria.php)
   ========================================================================== */
.th-nowrap {
  white-space: nowrap;
}

.td-fecha-hora {
  white-space: nowrap;
  font-family: monospace;
  font-size: 12px;
  color: #555555;
}

.td-detalles-op {
  font-size: 13px;
  color: #333333;
  line-height: 1.4;
}

.td-ip-cliente {
  font-family: monospace;
  font-size: 11px;
  color: #777777;
}

.empty-state-card {
  background: #ffffff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.empty-state-icon {
  font-size: 3rem;
  color: #aaaaaa;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 1.1rem;
  color: #555555;
  margin: 0;
}

/* ==========================================================================
   Gestión de Taller (admin/taller.php) - CSP Clean
   ========================================================================== */
.icon-wrench-amber {
  color: #d97706;
}

.icon-wsp-green {
  color: #16a34a;
}

.metric-card-retirar {
  border-color: #efb086;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.metric-number-cobrar {
  color: #2563eb;
}

.btn-nueva-ot {
  background-color: #d97706;
}

.btn-nueva-ot:hover {
  background-color: #b45309;
}

.taller-filter-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.taller-filter-input {
  width: 260px;
}

.taller-filter-select {
  width: auto;
}

.btn-no-margin {
  margin: 0;
}

.th-w-orden {
  width: 90px;
}

.th-w-acciones-taller {
  width: 160px;
}

.tr-orden-lista {
  background-color: #f0fdf4;
}

.orden-numero-txt {
  font-family: monospace;
  color: #d97706;
  font-size: 13px;
}

.td-fecha-ingreso {
  white-space: nowrap;
  font-size: 12px;
  color: #555555;
}

.cliente-telefono-block {
  font-size: 12px;
  color: #666666;
}

.icon-phone-sm {
  font-size: 11px;
}

.bicicleta-modelo-txt {
  font-weight: 700;
  color: #1e293b;
}

.td-falla-servicio {
  font-size: 12px;
  color: #475569;
  max-width: 280px;
}

.badge-orden-lista {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.td-total-monto {
  font-weight: 900;
  font-size: 14px;
  color: #15803d;
  white-space: nowrap;
}

.btn-taller-wsp {
  background: #25d366;
  padding: 6px 10px;
  color: #ffffff;
}

.btn-taller-wsp:hover {
  background: #1ebd56;
}

.btn-taller-action {
  padding: 6px 10px;
  font-size: 12px;
}

.admin-container-md {
  max-width: 720px;
}

.form-actions-mt20 {
  margin-top: 20px;
}

.btn-amber {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
}

.btn-amber:hover {
  background-color: #b45309 !important;
  color: #ffffff !important;
}

/* ======================================================
   ESTILOS EDICIÓN Y GESTIÓN DE USUARIOS
====================================================== */
.input-readonly-disabled,
.form-input:disabled {
  background: #e5e7eb !important;
  cursor: not-allowed !important;
}

.form-group-card {
  background: #f9fafb;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.form-label-mb8 {
  margin-bottom: 8px;
}

.form-checkbox-label-bold {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.form-checkbox-label-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  margin-top: 10px;
}

.form-help-block {
  color: #6b7280;
  display: block;
  margin-top: 5px;
}

.form-actions-mt25 {
  margin-top: 25px;
}

.form-group-mt10 {
  margin-top: 10px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

/* Clases de utilidad */
.flex {
  display: flex !important;
}
.inline-flex {
  display: inline-flex !important;
}
.items-center {
  align-items: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.justify-center {
  justify-content: center !important;
}
.gap-1 {
  gap: 4px !important;
}
.gap-2 {
  gap: 8px !important;
}
.text-red {
  color: #e53935 !important;
}
.text-muted {
  color: #64748b !important;
}

.dot {
  font-size: 16px; /* Ajusta el tamaño del círculo aquí */
  vertical-align: middle; /* Lo alinea bien con el texto */
}
.red {
  color: #e74c3c;
}
.blue {
  color: #3498db;
}
.yellow {
  color: #f1c40f;
}
.green {
  color: #2ecc71;
}
.gray {
  color: #95a5a6;
}

.btn-pos-cobrar {
  background-color: #059669 !important;
  color: #ffffff !important;
}
.btn-pos-cobrar:hover {
  background-color: #047857 !important;
  color: #ffffff !important;
}

/* ======================================================
   SUB-CONTROLES DINÁMICOS DE ACCIONES POR LOTE
   ====================================================== */
.select-bulk-sub {
  width: auto !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  background-color: #ffffff !important;
  color: #141416 !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

.select-bulk-sub-sm {
  width: auto !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
  background-color: #ffffff !important;
  color: #141416 !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 4px !important;
}

.bulk-sub-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: #ffffff !important;
  padding: 4px 10px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 4px !important;
}

.input-bulk-qty {
  width: 80px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 4px !important;
  padding: 4px 6px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  text-align: right !important;
  color: #141416 !important;
}

.bulk-addon {
  color: #666666 !important;
  font-weight: bold !important;
  font-size: 13px !important;
}

.label-bulk-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: #333333 !important;
  margin-left: 6px !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* ======================================================
   ESTILOS DEL MÓDULO DE PEDIDOS WEB
====================================================== */
.btn-pedidos {
  background-color: #2563eb !important;
  color: #ffffff !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pedidos:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.select-estado-mini {
  background-color: #1a1c22;
  color: #ffffff;
  border: 1px solid #3b3f4f;
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.select-estado-mini:hover,
.select-estado-mini:focus {
  border-color: #3b82f6;
}

.btn-ver-tienda {
  background-color: #eb2525 !important;
  color: #ffffff !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ver-tienda:hover {
  background-color: #000000 !important;
  color: #ffffff;
}

/* ======================================================
   ESTILOS DEL MÓDULO DE PEDIDOS WEB
====================================================== */
.btn-pedidos {
  background-color: #2563eb !important;
  color: #ffffff !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pedidos:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* Columna de acciones específica para pedidos */
.col-acciones-pedidos {
  width: 185px !important;
  min-width: 185px !important;
  text-align: center !important;
}

.pedidos-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.btn-action-wsp {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

.btn-action-wsp:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
}

.select-estado-mini {
  height: 30px !important;
  min-height: 30px !important;
  line-height: 28px !important;
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  outline: none !important;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.select-estado-mini:hover,
.select-estado-mini:focus {
  border-color: #3b82f6 !important;
  background-color: #0f172a !important;
}

/* Modal Detalle Pedido */
.modal-card-detalle {
  max-width: 680px !important;
  text-align: left !important;
  padding: 24px 28px !important;
  background-color: #181920 !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
}

.modal-header-detalle {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #2d3139 !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
}

.modal-header-detalle h3 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

.btn-close-modal {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.btn-close-modal:hover {
  color: #ffffff !important;
  background-color: #272a34 !important;
}

/* ======================================================
   CLASES ZERO-INLINE-STYLE PARA PEDIDOS (CSP COMPLIANT)
====================================================== */
.empty-pedidos-td {
  padding: 40px 20px !important;
  color: #888888 !important;
  text-align: center !important;
}

.empty-pedidos-icon {
  font-size: 2.5rem !important;
  margin-bottom: 12px !important;
  display: block !important;
}

.pedido-codigo {
  font-size: 0.95rem !important;
}

.pedido-fecha {
  font-size: 0.82rem !important;
  color: #aaaaaa !important;
}

.pedido-contacto-wrap {
  font-size: 0.8rem !important;
  margin-top: 3px !important;
}

.pedido-wsp-link {
  color: #25d366 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.pedido-direccion {
  font-size: 0.85rem !important;
  max-width: 220px !important;
}

.pedido-nota {
  font-size: 0.75rem !important;
  color: #fbbf24 !important;
  font-style: italic !important;
  margin-top: 2px !important;
}

.pedido-metodo {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  font-size: 0.78rem !important;
}

.pedido-cambio {
  font-size: 0.75rem !important;
  color: #f59e0b !important;
  margin-top: 2px !important;
}

.pedido-total {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #10b981 !important;
}

.form-estado-pedido {
  margin: 0 !important;
  display: inline-flex !important;
}

.modal-footer-actions {
  margin-top: 20px !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.table-loading {
  opacity: 0.4 !important;
  transition: opacity 0.2s ease !important;
}

/* Modal Detalle (Sin estilos inline) */
.modal-grid-datos {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  font-size: 0.88rem !important;
  background-color: #121318 !important;
  padding: 14px !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  border: 1px solid #232733 !important;
}

.modal-dato-lbl {
  color: #94a3b8 !important;
}

.modal-dato-val {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.modal-dato-estado {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.modal-card-nota {
  background-color: #232733 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
  color: #fbbf24 !important;
  border-left: 3px solid #f59e0b !important;
}

.modal-card-cambio {
  background-color: #232733 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
  color: #38bdf8 !important;
  border-left: 3px solid #0284c7 !important;
}

.modal-articulos-titulo {
  color: #ea3d33 !important;
  font-size: 0.95rem !important;
  margin-bottom: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

.modal-articulos-tabla {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.88rem !important;
}

.modal-articulos-tabla thead tr {
  border-bottom: 1px solid #334155 !important;
  text-align: left !important;
  color: #94a3b8 !important;
}

.modal-articulos-tabla th {
  padding: 8px 0 !important;
}

.modal-articulos-tabla tbody tr {
  border-bottom: 1px solid #232733 !important;
}

.modal-articulos-tabla td {
  padding: 10px 0 !important;
}

.modal-item-nombre {
  color: #ffffff !important;
}

.modal-item-codigo {
  color: #64748b !important;
  font-size: 0.8rem !important;
}

.modal-item-cant {
  text-align: center !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.modal-item-unit {
  text-align: right !important;
  color: #94a3b8 !important;
}

.modal-item-sub {
  text-align: right !important;
  color: #10b981 !important;
  font-weight: 700 !important;
}

.modal-tfoot-lbl {
  padding: 14px 0 !important;
  text-align: right !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
}

.modal-tfoot-val {
  padding: 14px 0 !important;
  text-align: right !important;
  font-weight: 900 !important;
  color: #10b981 !important;
  font-size: 1.25rem !important;
}

.modal-sin-items {
  padding: 16px 0 !important;
  text-align: center !important;
  color: #64748b !important;
}

/* ======================================================
   COLORES DE FONDO RELLENOS PARA BOTONES DEL PANEL ADMIN
====================================================== */
.btn-precios,
.btn-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}
.btn-precios:hover,
.btn-warning:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-gest-users,
.btn-users {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}
.btn-gest-users:hover,
.btn-users:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-excel,
.btn-success {
  background-color: #107c41 !important;
  color: #ffffff !important;
  border-color: #107c41 !important;
}
.btn-excel:hover,
.btn-success:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-backup,
.btn-info {
  background-color: #0891b2 !important;
  color: #ffffff !important;
  border-color: #0891b2 !important;
}
.btn-backup:hover,
.btn-info:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-auditoria,
.btn-dark {
  background-color: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}
.btn-auditoria:hover,
.btn-dark:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-primary-home,
.btn-outline-info {
  background-color: #ea3d33 !important;
  color: #ffffff !important;
  border-color: #ea3d33 !important;
}
.btn-primary-home:hover,
.btn-outline-info:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-logout,
.btn-outline-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}
.btn-logout:hover,
.btn-outline-danger:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-outline-secondary {
  background-color: #475569 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}
.btn-outline-secondary:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.btn-volver {
  background-color: #12107c !important;
  color: #ffffff !important;
  border-color: #10127c !important;
}

.btn-volver:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ======================================================
   REMITO DE DESPACHO Y ETIQUETA DE ENCOMIENDA (PEDIDOS WEB)
====================================================== */
.remito-body {
  background-color: #1e1e24;
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
}

.remito-actions-bar {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.remito-hoja {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  color: #111827;
  padding: 36px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.remito-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.remito-logo-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #111827;
}

.remito-logo-title span {
  color: #ea3d33;
}

.remito-sub {
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.remito-datos-empresa {
  font-size: 12px;
  color: #6b7280;
}

.remito-tipo-doc {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.remito-doc-label {
  font-size: 12px;
  font-weight: 800;
  color: #ea3d33;
  letter-spacing: 1px;
}

.remito-doc-numero {
  font-size: 22px;
  font-family: monospace;
  font-weight: 900;
  color: #111827;
  margin: 2px 0;
}

.remito-doc-fecha {
  font-size: 12px;
  color: #6b7280;
}

.remito-seccion-envio {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.remito-envio-header {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
}

.remito-envio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.remito-dato {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remito-dato-completo {
  grid-column: 1 / -1;
}

.remito-dato-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.remito-dato-val {
  font-size: 15px;
  color: #0f172a;
}

.remito-nombre-cliente {
  font-size: 17px;
  font-weight: 800;
}

.remito-telefono {
  font-size: 16px;
  color: #0369a1;
}

.remito-direccion {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.remito-caja-nota {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 8px 12px;
  border-radius: 6px;
}

.remito-nota-texto {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.remito-pago-alerta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.remito-pago-alerta.pago-acreditado {
  background-color: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
}

.remito-pago-alerta.pago-contraentrega {
  background-color: #fffbeb;
  border: 2px solid #f59e0b;
  color: #92400e;
}

.pago-status-icon {
  font-size: 26px;
}

.pago-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pago-status-info strong {
  font-size: 15px;
  font-weight: 800;
}

.remito-tabla-wrap {
  margin-bottom: 24px;
}

.remito-table {
  width: 100%;
  border-collapse: collapse;
}

.remito-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 12px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.remito-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #1e293b;
}

.remito-col-cant {
  width: 60px;
}

.remito-total-label {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  padding: 14px 12px !important;
}

.remito-total-val {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  padding: 14px 12px !important;
  font-family: monospace;
}

.remito-pie-conformidad {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px dashed #94a3b8;
}

.conformidad-texto {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 24px;
  font-style: italic;
}

.conformidad-firmas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.firma-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.firma-linea {
  width: 100%;
  border-bottom: 1px solid #475569;
  height: 30px;
}

.firma-box span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-align: center;
}

.remito-footer-code {
  margin-top: 24px;
  font-size: 11px;
  font-family: monospace;
  color: #94a3b8;
  letter-spacing: 1px;
}

.btn-action-print {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-print:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.btn-imprimir-remito {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
}

.btn-imprimir-remito:hover {
  background-color: #0369a1 !important;
}

@media print {
  .no-print {
    display: none !important;
  }
  body.remito-body {
    background-color: #ffffff !important;
    padding: 0 !important;
  }
  .remito-hoja {
    max-width: 100% !important;
    padding: 10mm 15mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  @page {
    margin: 10mm;
    size: auto;
  }
}

/* ======================================================
   TARJETAS INTERACTIVAS & BARRA DE REPOSICIÓN A PROVEEDORES
====================================================== */
.metric-card-interactive {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.metric-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15) !important;
  border-color: #ef4444 !important;
}

.metric-card-active {
  border: 2px solid #ef4444 !important;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2) !important;
}

.alerta-reposicion-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.alerta-reposicion-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #881337;
}

.alerta-reposicion-info i {
  font-size: 24px;
  color: #e11d48;
}

.alerta-reposicion-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-reposicion-csv {
  background-color: #107c41 !important;
  color: #ffffff !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.15s ease;
}
.btn-reposicion-csv:hover {
  background-color: #0c5c30 !important;
}

.btn-reposicion-print {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.15s ease;
}
.btn-reposicion-print:hover {
  background-color: #0369a1 !important;
}

/* Planilla de Reposición Checklist */
.alerta-reposicion-resumen {
  display: flex;
  gap: 24px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.resumen-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resumen-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.resumen-val {
  font-size: 16px;
  color: #0f172a;
}

.checklist-square {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #64748b;
  border-radius: 3px;
  vertical-align: middle;
}

.pedido-linea-vacia {
  border-bottom: 1px dotted #94a3b8;
  height: 20px;
  min-width: 80px;
}

.row-agotado {
  background-color: #fff1f2 !important;
}

.row-critico {
  background-color: #ffffff !important;
}

/* ==========================================================================
   MEJORA TALLER: BOTÓN AVISAR BICI LISTA Y MODAL DE PLANTILLAS WHATSAPP
   ========================================================================== */
.actions-group-taller {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Botón prominente de 1 clic para Bici Lista */
.btn-aviso-wsp-lista {
  background-color: #25d366 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-aviso-wsp-lista:hover {
  background-color: #1ea952 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.5) !important;
}

.btn-aviso-wsp-lista i {
  font-size: 15px;
}

/* Fila de tabla destacada cuando la bici está lista */
.row-status-lista {
  background-color: #f0fdf4 !important;
  border-left: 4px solid #22c55e !important;
}

.row-status-lista:hover {
  background-color: #dcfce7 !important;
}

/* Banner de Alerta cuando hay bicis listas para retirar */
.alerta-taller-listas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 5px solid #22c55e;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
  flex-wrap: wrap;
}

.alerta-taller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #14532d;
}

.alerta-taller-icon {
  font-size: 26px;
  color: #22c55e;
}

.alerta-taller-sub {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #166534;
}

.btn-ver-listas {
  background-color: #16a34a !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ver-listas:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
}

/* ==========================================================================
   MODAL DE PLANTILLAS DE WHATSAPP PARA TALLER
   ========================================================================== */
.modal-wsp-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-wsp-backdrop.modal-visible {
  opacity: 1;
  visibility: visible;
}

.modal-wsp-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.25s ease;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-wsp-header {
  padding: 18px 24px;
  background-color: #075e54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-wsp-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-wsp-icon {
  font-size: 30px;
  color: #25d366;
}

.modal-wsp-titulo {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.modal-wsp-sub {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: #d1fae5;
}

.modal-wsp-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-wsp-close:hover {
  opacity: 1;
}

.modal-wsp-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-selector-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

@media (min-width: 540px) {
  .template-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-template-chip {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-template-chip:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-template-chip.active {
  background-color: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
  font-weight: 700;
  box-shadow: 0 0 0 1px #22c55e;
}

.modal-wsp-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  background-color: #f8fafc;
  color: #1e293b;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-wsp-textarea:focus {
  border-color: #25d366;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.modal-wsp-tips {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-wsp-tips i {
  color: #eab308;
}

.modal-wsp-footer {
  padding: 16px 24px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-enviar-wsp {
  background-color: #25d366 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-enviar-wsp:hover {
  background-color: #1ea952 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5) !important;
}

/* ==========================================================================
   MEJORA CIERRE DE CAJA DIARIA: ARQUEO X / Z Y RESUMEN DISCRIMINADO
   ========================================================================== */

/* Banner de Notificación de Cierre Exitoso con Acceso al Ticket Z */
.banner-cierre-exitoso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 5px solid #22c55e;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  flex-wrap: wrap;
}

.banner-cierre-info {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #14532d;
}

.banner-cierre-icon {
  font-size: 32px;
  color: #22c55e;
}

.banner-cierre-sub {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: #166534;
}

.btn-imprimir-cierre {
  background-color: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
  transition: all 0.2s ease;
}

.btn-imprimir-cierre:hover {
  background-color: #15803d !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(22, 163, 74, 0.45);
}

/* Tarjeta de Resumen Discriminado del Día */
.card-resumen-discriminado {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.resumen-discriminado-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #334155;
  padding-bottom: 14px;
}

.resumen-discriminado-titulo {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resumen-discriminado-sub {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.btn-imprimir-arqueo-x {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-imprimir-arqueo-x:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Grilla de 3 columnas para Canales y Medios */
.grid-resumen-canales {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-resumen-canales {
    grid-template-columns: repeat(3, 1fr);
  }
}

.canal-box {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.canal-box-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.canal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
}

.canal-valor {
  font-family: monospace;
  font-size: 14px;
}

.canal-box-total {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-color: #4338ca;
  justify-content: center;
  text-align: center;
}

.total-facturado-big {
  font-size: 26px;
  font-weight: 900;
  font-family: monospace;
  color: #38bdf8;
  margin: 6px 0;
}

.canal-subtext {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   ESTILOS DE TICKET TÉRMICO DE CIERRE DIARIO (cierre_imprimir.php)
   ========================================================================== */
.ticket-cierre-titulo {
  font-size: 12px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: 1px;
}

.ticket-seccion-titulo {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  padding: 4px 0 2px 0;
  margin-top: 8px;
  margin-bottom: 4px;
}

.row-subtotal-ticket {
  border-top: 1px dotted #000;
  font-weight: 900;
}

.ticket-linea-vacia {
  font-size: 9px;
  color: #444;
  font-style: italic;
  padding: 3px 0;
}

.ticket-notas-box {
  margin-top: 8px;
  border: 1px dashed #000;
  padding: 6px;
  font-size: 10px;
  line-height: 1.3;
}

.ticket-firmas-wrap {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.ticket-firma-col {
  text-align: center;
  width: 42%;
  font-size: 9px;
  font-weight: bold;
}

.linea-firma {
  border-bottom: 1px solid #000;
  margin-bottom: 4px;
  height: 16px;
}

/* ==========================================================================
   AJUSTES VISUALES DE CAJA (ESPACIADO, AIRE Y ALTO CONTRASTE)
   ========================================================================== */

/* 1. Tarjetas KPI del Comienzo (Fondo Inicial, Efectivo, Digital, Egresos, Teórico) */
.caja-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 20px !important;
  margin-bottom: 24px !important;
}

.caja-kpi-grid .kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.caja-kpi-grid .kpi-card-highlight {
  background: #f0fdf4 !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12) !important;
}

.caja-kpi-grid .kpi-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.caja-kpi-grid .kpi-value {
  font-size: 22px !important;
  font-weight: 900 !important;
  font-family: monospace !important;
  line-height: 1.2 !important;
  margin: 3px 0 !important;
}

.caja-kpi-grid .text-white {
  color: #0f172a !important; /* En fondo blanco de tarjeta, texto oscuro bien legible */
}

/* 2. Más aire / separación arriba para la caja de Resumen Discriminado */
.card-resumen-discriminado {
  margin-top: 32px !important;
  margin-bottom: 28px !important;
}

/* 3. Alto Contraste para la Caja Vertical de la Derecha (Cierre de Caja Arqueo Z) */
.card-cierre-caja {
  background-color: #18181b !important;
  border: 2px solid #ef4444 !important;
  border-radius: 14px !important;
  padding: 24px !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.card-cierre-caja .cierre-card-title {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px 0 !important;
}

.card-cierre-caja p,
.card-cierre-caja .text-neutral-400 {
  color: #cbd5e1 !important; /* Texto explicativo en gris claro bien visible */
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.card-cierre-caja label,
.card-cierre-caja .text-neutral-300 {
  color: #f1f5f9 !important; /* Rótulos en blanco tiza brillante */
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: block !important;
  margin-bottom: 6px !important;
}

/* Contenedor del balance y diferencia en vivo */
.card-cierre-caja .caja-diferencia-box {
  background-color: #090d16 !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 14px !important;
  margin: 16px 0 !important;
  color: #ffffff !important;
}

.card-cierre-caja .caja-diferencia-box span {
  color: #f8fafc !important; /* Saldo teórico y diferencia en blanco puro */
  font-size: 13px !important;
}

.card-cierre-caja .row-diferencia-border {
  border-top: 1px dashed #334155 !important;
  padding-top: 8px !important;
  margin-top: 8px !important;
}

.card-cierre-caja #txt-diferencia {
  font-size: 16px !important;
  font-weight: 900 !important;
  font-family: monospace !important;
}

/* Campos de entrada y textarea dentro de la tarjeta de cierre */
.card-cierre-caja .input-pos,
.card-cierre-caja textarea {
  background-color: #0f172a !important;
  border: 1px solid #475569 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.card-cierre-caja .input-pos:focus,
.card-cierre-caja textarea:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Clases de colores universales de apoyo */
.text-emerald {
  color: #10b981 !important;
}
.text-blue {
  color: #38bdf8 !important;
}
.text-red {
  color: #f87171 !important;
}
.text-yellow {
  color: #facc15 !important;
}
.text-purple {
  color: #c084fc !important;
}

/* ==========================================================================
   MEJORA TABLA DE VENTAS COBRADAS: TEXTO OSCURO Y BOTÓN DE TICKET
   ========================================================================== */

/* 1. Canales y Medios de Pago con letra oscura de alto contraste (Mostrador, Taller, Efectivo) */
.ventas-scroll-container .badge-status,
.ventas-scroll-container .badge-neutral,
.ventas-scroll-container .badge-info,
.ventas-scroll-container .badge-warning,
.admin-table tbody td span.badge-status {
  color: #0f172a !important; /* Mismo color oscuro y nítido de la tabla */
  font-weight: 700 !important;
  font-size: 12px !important;
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  letter-spacing: 0.3px !important;
}

/* Taller con fondo suave y letras oscuras bien legibles */
.ventas-scroll-container .badge-warning {
  background-color: #fef3c7 !important;
  border-color: #fde047 !important;
  color: #78350f !important;
}

/* Efectivo / Medios con fondo celeste suave y letras oscuras */
.ventas-scroll-container .badge-info {
  background-color: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0369a1 !important;
}

/* Mostrador con fondo gris perla y letras grafito oscuro */
.ventas-scroll-container .badge-neutral {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* 2. Botón de Ticket Térmico con diseño estándar y profesional */
.ventas-scroll-container .btn-action-print {
  background-color: #ea3d33 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(234, 61, 51, 0.3) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.ventas-scroll-container .btn-action-print:hover {
  background-color: #c92a21 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(234, 61, 51, 0.45) !important;
}

.ventas-scroll-container .btn-action-print i {
  font-size: 13px !important;
}

/* ==============================================================================
   ESTILOS GESTIÓN DE CUPONES EN PANEL ADMIN (admin/cupones.php)
   ============================================================================== */
.btn-cupones {
  background-color: #098a04e7;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cupones:hover {
  background-color: #000000;
  color: #ffffff;
}

.cupones-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .cupones-layout-grid {
    grid-template-columns: 1fr;
  }
}

.card-nuevo-cupon,
.card-lista-cupones {
  background-color: #17181c;
  border: 1px solid #282a32;
  border-radius: 10px;
  padding: 24px;
}

.card-cupon-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #282a32;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-cupon {
  margin-bottom: 16px;
}

.form-group-cupon label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-row-cupon {
  display: flex;
  gap: 12px;
}

.input-cupon {
  width: 100%;
  background-color: #0f1013;
  border: 1px solid #333642;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  box-sizing: border-box;
}

.input-cupon:focus {
  border-color: #ea3d33;
  box-shadow: 0 0 0 2px rgba(234, 61, 51, 0.25);
  outline: none;
}

.input-cupon-codigo {
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 1px;
}

.select-tipo-cupon {
  width: 100%;
  height: 42px;
  background-color: #0f1013;
  border: 1px solid #333642;
  border-radius: 6px;
  padding: 0 10px;
  color: #ffffff;
  box-sizing: border-box;
}

.btn-guardar-cupon {
  margin-top: 10px;
  padding: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cupon-codigo-pill {
  font-family: monospace;
  font-weight: 800;
  background-color: #27272a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #3f3f46;
  letter-spacing: 0.5px;
  display: inline-block;
}

.cupon-actions-group {
  display: inline-flex;
  gap: 6px;
}

.btn-action-pause {
  background-color: #eab308;
  color: #000000;
}

.btn-action-play {
  background-color: #10b981;
  color: #ffffff;
}

.empty-cupones-box {
  text-align: center;
  padding: 40px 20px;
}

/* ==========================================================================
   MÓDULO DE CUENTAS CORRIENTES, CLIENTES Y SEÑAS (ECO BIKE)
   ========================================================================== */
.btn-clientes {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-clientes:hover {
  background-color: #0369a1 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.metric-card-danger {
  border-left: 4px solid #ef4444;
}

.metric-card-success {
  border-left: 4px solid #10b981;
}

.filter-tabs-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-tab {
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #e4e4e7;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d4d4d8;
}

.pill-tab:hover {
  background-color: #d4d4d8;
  color: #18181b;
}

.pill-tab.active {
  background-color: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.pill-tab-deuda.active {
  background-color: #dc2626;
  color: #ffffff;
  border-color: #b91c1c;
}

.pill-tab-favor.active {
  background-color: #059669;
  color: #ffffff;
  border-color: #047857;
}

.cliente-nombre-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cliente-doc-sub {
  font-size: 11px;
  color: #71717a;
  font-family: monospace;
}

.cliente-notas-badge {
  font-size: 11px;
  color: #b45309;
  background-color: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cliente-contacto-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-mini-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  transition: opacity 0.2s;
}

.btn-mini-whatsapp:hover {
  opacity: 0.9;
}

.badge-saldo {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-family: monospace;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.badge-saldo-deuda {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.badge-saldo-favor {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}

.badge-saldo-cero {
  background-color: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}

.cliente-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-pago {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-pago:hover {
  background-color: #047857 !important;
}

.cobro-cliente-banner {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cobro-cliente-title {
  font-size: 16px;
  color: #0f172a;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.saldo-inicial-box {
  background-color: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  padding: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.historial-resumen-banner {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.historial-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 8px 10px;
}

.badge-mini {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-mini-red {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-mini-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-mini-blue {
  background-color: #e0f2fe;
  color: #075985;
}

.badge-mini-amber {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-mini-gray {
  background-color: #f4f4f5;
  color: #52525b;
}

.btn-icon-ticket {
  background-color: #f4f4f5;
  color: #18181b;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon-ticket:hover {
  background-color: #18181b;
  color: #ffffff;
}

.empty-clientes-box {
  text-align: center;
  padding: 40px 20px;
}

/* ==========================================================================
   ESTILOS ADICIONALES: CUENTA CORRIENTE & SEÑAS EN POS Y RECIBOS
   ========================================================================== */
.cliente-pos-saldo-badge {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  display: none;
  line-height: 1.3;
}

.cliente-pos-saldo-badge.badge-deuda {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #dc2626;
}

.cliente-pos-saldo-badge.badge-favor {
  background: #064e3b;
  color: #86efac;
  border: 1px solid #10b981;
}

.cliente-pos-saldo-badge.badge-aldia {
  background: #27272a;
  color: #a1a1aa;
  border: 1px solid #3f3f46;
}

.aviso-cta-cte-box {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #27272a;
  border-left: 3px solid #f59e0b;
  padding: 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #fbbf24;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ticket-divider-dotted {
  border-bottom: 1px dashed #000000;
  margin: 8px 0;
}

.ticket-concept-title {
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
}

.ticket-concept-desc {
  font-size: 12px;
  margin-top: 2px;
}

.highlight-total {
  font-size: 13px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 4px 0;
  margin: 4px 0;
}

.ticket-signature-box {
  margin-top: 28px;
  text-align: center;
}

.signature-line {
  border-top: 1px solid #000000;
  width: 75%;
  margin: 0 auto 4px auto;
}

.signature-caption {
  font-size: 9px;
  color: #4b5563;
}

/* ==========================================================================
   AJUSTES FINOS DE ESPACIADO, BUSCADOR, BOTONERA Y MODALES (clientes.php)
   ========================================================================== */

/* Corrección de utilidades de texto usadas en clientes.php */
.metric-card-danger .text-red {
  color: #dc2626 !important;
}

.metric-card-success .text-green,
.text-green {
  color: #059669 !important;
}

.text-right {
  text-align: right !important;
}

/* Barra de Búsqueda + Filtros: mayor separación entre lupa/input y botonera, tamaño compacto */
.table-actions-bar {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0 18px 0;
}

.search-form-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0;
}

.search-input-wrapper {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.table-actions-bar .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
}

.table-actions-bar .search-input {
  width: 100%;
  height: 34px;
  padding: 6px 30px 6px 32px;
  font-size: 12.5px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.table-actions-bar .search-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.table-actions-bar .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 2px 5px;
}

.table-actions-bar .search-clear:hover {
  color: #dc2626;
}

/* Botonera de filtros más compacta y prolija */
.table-actions-bar .filter-tabs-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-actions-bar .pill-tab {
  padding: 5px 11px;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
  gap: 5px;
}

/* Botones de acciones de tabla compactos en una sola línea */
.table-actions-bar + .table-responsive .admin-table th:last-child,
.table-actions-bar + .table-responsive .admin-table td:last-child {
  width: auto !important;
  min-width: 245px !important;
}

.cliente-actions-group {
  flex-wrap: nowrap;
  gap: 6px;
}

.cliente-actions-group .btn-sm {
  padding: 5px 10px !important;
  font-size: 12px !important;
  border-radius: 5px !important;
  height: 30px;
  white-space: nowrap;
  line-height: 1.2;
}

.badge-saldo {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Base para modales flotantes cuando pos.css no está cargado */
.pos-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.pos-modal-backdrop.is-open,
.pos-modal-backdrop.active {
  display: flex !important;
}

/* Estilos claros, compactos y con excelente separación entre campos para modales de clientes.php */
#modal-cobro .pos-modal-content,
#modal-cliente .pos-modal-content,
#modal-historial .pos-modal-content {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  color: #0f172a;
}

#modal-historial .pos-modal-content.pos-modal-content-lg {
  max-width: 820px;
}

#modal-cobro form,
#modal-cliente form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  margin: 0;
}

#modal-cobro .pos-modal-header,
#modal-cliente .pos-modal-header,
#modal-historial .pos-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

#modal-cobro .pos-modal-header h3,
#modal-cliente .pos-modal-header h3,
#modal-historial .pos-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

#modal-cobro .pos-modal-close,
#modal-cliente .pos-modal-close,
#modal-historial .pos-modal-close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

#modal-cobro .pos-modal-close:hover,
#modal-cliente .pos-modal-close:hover,
#modal-historial .pos-modal-close:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

#modal-cobro .pos-modal-body,
#modal-cliente .pos-modal-body,
#modal-historial .pos-modal-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#modal-cobro .cobro-cliente-banner {
  margin-bottom: 2px;
}

#modal-cliente .grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  #modal-cliente .grid-2-cols {
    grid-template-columns: 1fr;
  }
}

#modal-cobro .form-group-pos,
#modal-cliente .form-group-pos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

#modal-cobro .form-group-pos .form-label,
#modal-cliente .form-group-pos .form-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

#modal-cobro .input-pos,
#modal-cliente .input-pos {
  width: 100%;
  height: 36px;
  padding: 6px 11px;
  font-size: 13px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#modal-cliente textarea.input-pos {
  height: auto;
  min-height: 68px;
  padding: 8px 11px;
  resize: vertical;
  line-height: 1.45;
}

#modal-cobro .input-pos:focus,
#modal-cliente .input-pos:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
}

#modal-cliente .saldo-inicial-box {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

#modal-cobro .checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}

#modal-cobro .checkbox-container input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}

#modal-cobro .pos-modal-footer,
#modal-cliente .pos-modal-footer,
#modal-historial .pos-modal-footer {
  padding: 14px 22px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#modal-cobro .pos-modal-footer .btn,
#modal-cliente .pos-modal-footer .btn,
#modal-historial .pos-modal-footer .btn {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 6px;
}

#modal-historial .btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#modal-historial .btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #ffffff;
}
/* ==========================================================================
   MÓDULO DE REPOSICIÓN INTELIGENTE, PROVEEDORES Y ÓRDENES DE COMPRA (PUNTO 3)
   ========================================================================== */
.btn-reposicion {
  background-color: #3e06d9 !important;
  color: #ffffff !important;
  border: 1px solid #2809b4 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-reposicion:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.metric-card-warning {
  border-left: 4px solid #f59e0b;
}

.metric-card-blue-line {
  border-left: 4px solid #0284c7;
}

.text-amber {
  color: #d97706 !important;
}

.badge-saldo-amber {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Pestañas de navegación del módulo */
.repo-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 16px 0;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.repo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.repo-tab:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.repo-tab.active {
  background-color: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.repo-tab-count {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.repo-tab-count-info {
  background-color: #0284c7;
}

/* Barra de filtros compacta */
.repo-filter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
}

.repo-select {
  height: 34px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
}

.repo-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  height: 34px;
  cursor: pointer;
  white-space: nowrap;
}

.repo-filter-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.repo-filter-btns .btn-sm {
  height: 34px;
  padding: 5px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

/* Barra de emisión de órdenes de compra */
.repo-order-toolbar {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.repo-order-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #431407;
}

.repo-check-all-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
}

.repo-divider {
  color: #fdba74;
}

.repo-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.repo-nota-input {
  height: 34px;
  width: 240px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #fdba74;
  border-radius: 6px;
  box-sizing: border-box;
}

.repo-order-actions .btn-sm {
  height: 34px;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
}

/* Tarjeta de grupo por distribuidor */
.repo-supplier-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  background-color: #ffffff;
}

.repo-supplier-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.repo-supplier-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
}

.repo-supplier-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-supplier-tools .btn-sm {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 5px !important;
}

/* Inputs numéricos de cantidad en tabla y anchos de columnas */
.repo-qty-input {
  width: 68px;
  height: 30px;
  padding: 3px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  box-sizing: border-box;
}

.repo-qty-input:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.repo-table th:last-child,
.repo-table td:last-child {
  width: 70px !important;
  min-width: 70px !important;
}

.repo-prov-table th:last-child,
.repo-prov-table td:last-child,
.repo-ordenes-table th:last-child,
.repo-ordenes-table td:last-child {
  width: auto !important;
  min-width: 245px !important;
}

.col-check-sm {
  width: 46px;
}

.repo-prov-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.repo-prov-topbar .btn-sm {
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
}

.form-inline-archivar,
.form-inline-recibir,
.form-inline-cancelar {
  display: inline-block;
  margin: 0;
}

.repo-empty-card {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

/* Modales de reposicion.php */
.modal-repo .pos-modal-content {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  color: #0f172a;
}

.modal-repo form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  margin: 0;
}

.modal-repo .pos-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.modal-repo .pos-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-repo .pos-modal-close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-repo .pos-modal-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-repo .grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .modal-repo .grid-2-cols {
    grid-template-columns: 1fr;
  }
}

.modal-repo .form-group-pos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.modal-repo .form-group-pos .form-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.modal-repo .input-pos {
  width: 100%;
  height: 36px;
  padding: 6px 11px;
  font-size: 13px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
}

.modal-repo textarea.input-pos {
  height: auto;
  min-height: 68px;
  padding: 8px 11px;
  resize: vertical;
  line-height: 1.45;
}

.modal-repo .pos-modal-footer {
  padding: 14px 22px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.modal-repo .pos-modal-footer .btn {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 6px;
}

@keyframes repo-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.btn-shake {
  animation: repo-shake 0.35s ease;
}

/* ==========================================================================
   PUNTO 4: DASHBOARD DE MÉTRICAS Y RENDIMIENTO COMERCIAL (admin/reportes.php)
   ========================================================================== */

.btn.btn-reportes {
  background-color: #d40a80;
  color: #ffffff;
  border: 1px solid #990c63;
}

.btn-reportes:hover {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.rep-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.rep-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rep-preset-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.rep-preset-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.rep-preset-btn.rep-preset-active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.rep-date-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.rep-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rep-date-field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rep-input-date,
.rep-select-canal {
  height: 34px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
}

.rep-btn-aplicar {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

.rep-periodo-activo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 18px;
  padding: 0 2px;
}

.rep-sep {
  color: #94a3b8;
}

.rep-kpi-grid {
  margin-bottom: 22px;
}

.rep-delta-up {
  color: #15803d;
}

.rep-delta-down {
  color: #b91c1c;
}

.rep-text-amber {
  color: #b45309;
}

.rep-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.rep-section-full {
  margin-bottom: 20px;
}

.rep-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .rep-grid-2 {
    grid-template-columns: 1fr;
  }
}

.rep-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rep-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rep-card-title i {
  color: #dc2626;
}

.rep-card-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.rep-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.rep-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rep-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.rep-swatch-pos {
  background-color: #16a34a;
}

.rep-swatch-taller {
  background-color: #7c3aed;
}

.rep-swatch-web {
  background-color: #0284c7;
}

.rep-canvas-wrap {
  position: relative;
  width: 100%;
}

.rep-canvas-tall {
  height: 270px;
}

.rep-canvas-med {
  height: 220px;
}

.rep-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.rep-chart-readout {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.rep-bars-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rep-bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rep-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.rep-bar-name {
  color: #1e293b;
}

.rep-bar-val {
  color: #0f172a;
  font-size: 12.5px;
  white-space: nowrap;
}

.rep-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  border: none;
  border-radius: 999px;
  background-color: #e2e8f0;
  overflow: hidden;
  display: block;
}

.rep-progress::-webkit-progress-bar {
  background-color: #e2e8f0;
  border-radius: 999px;
}

.rep-progress::-webkit-progress-value {
  border-radius: 999px;
}

.rep-progress::-moz-progress-bar {
  border-radius: 999px;
}

.rep-progress-red::-webkit-progress-value {
  background-color: #dc2626;
}
.rep-progress-red::-moz-progress-bar {
  background-color: #dc2626;
}

.rep-progress-green::-webkit-progress-value {
  background-color: #16a34a;
}
.rep-progress-green::-moz-progress-bar {
  background-color: #16a34a;
}

.rep-progress-purple::-webkit-progress-value {
  background-color: #7c3aed;
}
.rep-progress-purple::-moz-progress-bar {
  background-color: #7c3aed;
}

.rep-progress-blue::-webkit-progress-value {
  background-color: #0284c7;
}
.rep-progress-blue::-moz-progress-bar {
  background-color: #0284c7;
}

.rep-progress-amber::-webkit-progress-value {
  background-color: #d97706;
}
.rep-progress-amber::-moz-progress-bar {
  background-color: #d97706;
}

.rep-mini-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.rep-mini-summary-top {
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
  padding-bottom: 14px;
  border-top: none;
  border-bottom: 1px solid #e2e8f0;
}

.rep-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 9px 11px;
}

.rep-mini-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.rep-mini-num {
  font-size: 14px;
  color: #0f172a;
}

.rep-subtable-wrap {
  margin-top: 16px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.rep-table-compact th,
.rep-table-compact td {
  padding: 9px 11px;
  font-size: 12.5px;
}

.rep-col-bar {
  width: 110px;
}

.rep-prod-name {
  font-weight: 700;
  color: #0f172a;
}

.rep-prod-meta {
  font-size: 11.5px;
  color: #64748b;
}

.rep-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

@media print {
  .no-print {
    display: none !important;
  }
  .admin-body {
    background-color: #ffffff !important;
  }
  .admin-container {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .rep-card,
  .metric-card {
    break-inside: avoid;
    box-shadow: none !important;
  }
  .rep-grid-2 {
    grid-template-columns: 1fr !important;
  }
}
/******************************/
/* COMIENZO DE LOS @MEDIA */
/*****************************/
@media (max-width: 1024px) {
  .btn-primary-home {
    margin-top: 10px;
  }
  .btn-logout {
    font-size: 12px;
    margin-left: 10px;
    padding: 12px 12px;
  }
}

@media (max-width: 860px) {
  .admin-top-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-filter-form {
    width: 100%;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }
}
/* Utilidad de visualización 100% compatible con CSP estricto */
.d-none {
  display: none !important;
}

/* ==========================================================================
   ANULACIONES, CAMBIOS Y NOTAS DE CRÉDITO (admin/anulaciones.php + caja.php)
   ========================================================================== */
.btn.btn-anulaciones {
  background-color: #be123c;
  color: #ffffff;
  margin-top: 10px;
}

.btn-anulaciones:hover {
  background-color: #000000;
  color: #ffffff;
  margin-top: 10px;
}

.admin-header-bar .flex .btn-anulaciones {
  margin-top: 0;
}

.nc-success-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-left: 5px solid #059669;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #064e3b;
}

.nc-success-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nc-success-icon {
  font-size: 28px;
  color: #059669;
}

.nc-success-sub {
  margin: 3px 0 0 0;
  font-size: 13.5px;
  color: #065f46;
}

.nc-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nc-success-actions .btn-pos {
  margin-top: 0;
}

.nc-workspace-card,
.nc-list-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.nc-workspace-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.nc-workspace-title {
  margin: 0 0 6px 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nc-workspace-meta {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.nc-workspace-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nc-pagos-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.nc-chip-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.nc-pago-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  color: #1e293b;
}

.badge-nc-estado {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-nc-activa {
  background-color: #dcfce7;
  color: #166534;
}

.badge-nc-anulada {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-nc-devolucion-parcial {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-nc-serv {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background-color: #ede9fe;
  color: #5b21b6;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-nc-op {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background-color: #e2e8f0;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
}

.nc-previas-box {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.nc-previas-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}

.nc-previas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nc-previa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1e293b;
}

.nc-tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.nc-tipo-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.nc-tipo-card:has(input:checked) {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.nc-tipo-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #dc2626;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nc-tipo-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nc-tipo-body strong {
  font-size: 13.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nc-tipo-body span {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.nc-aviso-modo {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.nc-items-table-wrap {
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.nc-items-table-wrap.is-locked {
  opacity: 0.85;
  background-color: #f8fafc;
}

.nc-item-qty {
  width: 72px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  background-color: #ffffff;
}

.nc-item-qty[readonly] {
  background-color: #f1f5f9;
  color: #64748b;
}

.nc-form-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

@media (max-width: 780px) {
  .nc-form-footer-grid {
    grid-template-columns: 1fr;
  }
}

.nc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nc-field label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nc-field .form-control,
.nc-field .form-select {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13.5px;
  background-color: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  width: 100%;
}

.nc-field-full {
  grid-column: 1 / -1;
}

.nc-field-check {
  justify-content: center;
}

.nc-submit-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.nc-total-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nc-total-preview-wrap span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.nc-total-preview-wrap strong {
  font-size: 22px;
  font-weight: 900;
  color: #dc2626;
}

.nc-lists-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

@media (max-width: 1080px) {
  .nc-lists-grid {
    grid-template-columns: 1fr;
  }
}

.nc-list-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.nc-list-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-list-header h2 i {
  color: #be123c;
}

.nc-row-selected {
  background-color: #fef2f2 !important;
}

.nc-actions-cell {
  display: flex;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.nc-actions-cell .btn-pos {
  margin-top: 0;
}

/* Estados en tabla de ventas de Caja Diaria */
.caja-row-anulada {
  opacity: 0.62;
  background-color: rgba(127, 29, 29, 0.14);
}

.caja-monto-tachado {
  text-decoration: line-through;
}

.caja-acciones-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.btn-action-nc {
  background-color: #be123c;
  color: #ffffff;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action-nc:hover {
  background-color: #9f1239;
  color: #ffffff;
}

.nc-submit-box .btn-lg {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
}

.btn.btn-anulaciones {
  background-color: #968005;
  color: #ffffff;
  margin-top: 10px;
}

.btn-anulaciones:hover {
  background-color: #000000;
  color: #ffffff;
  margin-top: 10px;
}

/* ==========================================================================
   PUNTO 3: REPUESTOS CON DESCUENTO REAL DE STOCK EN TALLER (CSP COMPLIANT)
   ========================================================================== */
.admin-container-lg {
  max-width: 960px;
}

.alert-warning-taller {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
}

.repuestos-taller-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px;
  margin-top: 6px;
}

.repuestos-taller-card.is-locked {
  background-color: #f1f5f9;
  opacity: 0.92;
}

.repuestos-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.repuestos-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.repuestos-card-title i {
  color: #d97706;
}

.repuestos-card-sub {
  margin: 3px 0 0 0;
  font-size: 12.5px;
  color: #475569;
}

.repuestos-picker-bar {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 820px) {
  .repuestos-picker-bar {
    grid-template-columns: 1fr;
  }
}

.repuestos-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.repuestos-search-wrap i {
  position: absolute;
  left: 11px;
  color: #64748b;
  pointer-events: none;
}

.rep-search-input {
  margin: 0 !important;
  padding-left: 32px !important;
  height: 40px;
  font-size: 13px;
}

.rep-select-catalogo {
  margin: 0 !important;
  height: 40px;
  font-size: 13px;
}

.repuestos-qty-add-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rep-cant-add {
  width: 72px !important;
  margin: 0 !important;
  height: 40px;
}

.btn-add-repuesto {
  height: 40px;
  padding: 0 16px !important;
  white-space: nowrap;
}

.repuestos-feedback {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.repuestos-feedback.is-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.repuestos-feedback.is-ok {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.repuestos-table {
  margin-top: 6px !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.repuestos-table th,
.repuestos-table td {
  padding: 9px 10px !important;
  font-size: 13px;
}

.rep-th-cod {
  width: 100px;
}

.rep-th-cant {
  width: 88px;
}

.rep-th-precio {
  width: 135px;
}

.rep-th-sub {
  width: 125px;
}

.rep-th-del {
  width: 60px !important;
  min-width: 60px !important;
}

.repuestos-table th:last-child,
.repuestos-table td:last-child {
  width: 70px !important;
  min-width: 70px !important;
}

.rep-col-codigo {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.rep-item-nombre {
  font-weight: 700;
  color: #0f172a;
}

.rep-item-stock-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.rep-item-cant,
.rep-item-precio {
  margin: 0 !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
}

.rep-item-subtotal {
  color: #047857;
  white-space: nowrap;
}

.btn-quitar-repuesto {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.btn-quitar-repuesto:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.repuestos-empty-td {
  padding: 20px !important;
  color: #64748b;
  font-style: italic;
}

.taller-totales-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 780px) {
  .taller-totales-grid {
    grid-template-columns: 1fr;
  }
}

.taller-totales-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.totales-taller-box {
  background-color: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.totales-taller-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cbd5e1;
}

.totales-taller-line strong {
  color: #ffffff;
  font-size: 14px;
}

.totales-taller-final {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #334155;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.totales-taller-final strong {
  font-size: 20px;
  color: #4ade80;
}

.taller-anular-card {
  margin-top: 26px;
  padding: 14px 18px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.taller-anular-card strong {
  color: #991b1b;
  font-size: 13.5px;
}

.taller-anular-card p {
  margin: 3px 0 0 0;
  font-size: 12.5px;
  color: #7f1d1d;
}

/* Badges de repuestos en taller.php */
.taller-repuestos-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}

.taller-total-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}

/* Tablas de repuestos en taller_imprimir.php */
.talon-repuestos-wrap {
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  background-color: #ffffff;
}

.talon-repuestos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.talon-repuestos-table th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #cbd5e1;
  padding: 4px 6px;
}

.talon-repuestos-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.talon-desglose-costos {
  margin-top: 6px;
  font-size: 11.5px;
  color: #334155;
}

.talon-repuestos-mecanico {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #0f172a;
}

.talon-repuestos-mecanico ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.talon-repuestos-mecanico li {
  margin-bottom: 2px;
}
/* ==========================================================================
   PUNTO 5: HISTORIAL POR BICICLETA (N° DE CUADRO) Y SERVICE PREVENTIVO
   ========================================================================== */
.btn-bicis {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
}

.btn-bicis:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.bici-sync-banner {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bici-sync-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #92400e;
}

.bici-sync-info i {
  font-size: 22px;
  margin-top: 2px;
  color: #d97706;
}

.bici-sync-info p {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: #78350f;
}

.bici-cuadro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bici-sin-cuadro {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.bici-modelo-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 13.5px;
}

.bici-specs-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.bici-visitas-pill {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.bici-row-vencida {
  background-color: #fef2f2;
}

.bici-row-proxima {
  background-color: #fffbeb;
}

.badge-srv {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-srv-vencido {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-srv-proximo {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-srv-ok {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-srv-off {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.bici-srv-meta {
  font-size: 11.5px;
  color: #475569;
  margin-top: 4px;
}

.bici-rec-sent-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
}

.bici-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.modal-bici-card {
  max-width: 640px;
}

.modal-rec-footer {
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-rec-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.bici-detalle-banner {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.bici-notas-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e3a8a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bici-timeline-title {
  margin: 18px 0 10px 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bici-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}

.bici-timeline-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 12px 14px;
}

.bici-tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.bici-tl-fecha {
  font-size: 12px;
  color: #64748b;
  margin-left: 6px;
}

.bici-tl-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bici-tl-estado {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background-color: #f1f5f9;
  color: #334155;
}

.bici-tl-trabajo {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #1e293b;
}

.bici-tl-repuestos {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 8px;
}

.bici-tl-repuestos ul {
  margin: 4px 0 0 18px;
  padding: 0;
}

.bici-tl-notas {
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}

.bici-tl-actions {
  display: flex;
  gap: 8px;
}

.bici-picker-box {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bici-picker-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

@media (max-width: 720px) {
  .bici-picker-head {
    grid-template-columns: 1fr;
  }
}

.bici-registrada-hint {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0369a1;
}

.bici-historial-inline {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bici-historial-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #0f172a;
}

.bici-historial-inline-list {
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 12.5px;
  color: #334155;
}

.bici-historial-inline-list li {
  margin-bottom: 4px;
}

.taller-cuadro-wrap {
  margin-top: 4px;
}

.taller-cuadro-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.taller-cuadro-chip:hover {
  background-color: #bae6fd;
  color: #0c4a6e;
}

.talon-cuadro-tag {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-left: 4px;
}
