/* ===========================
   Flex Logistics – Estilo BancoEstado + Botones Azules
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9fb;
  color: var(--text-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Botones principales */
  --btn-primary: #007bff;
  --btn-primary-hover: #0062cc;

  /* Menú lateral tipo BancoEstado */
  --menu-hover-bg: #fff4e5;
  --menu-active-bg: rgba(14, 165, 233, 0.25);
  --menu-active-text: #0284c7;

  /* Base */
  --sidebar-bg: #ffffff;
  --text-default: #222;
  --text-muted: #777;
  --border-color: #e6e8ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.logo {
  /* Centramos el logo sobre el menú */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;            /* espacio visual para centrarlo mejor */
  margin-bottom: 24px;     /* un poco menos de separación */
}

.logo img {
  max-width: 100%;
  height: 68px;        /* un poco más grande */
  object-fit: contain; /* evita deformaciones */
}

.nav {
  flex: 1;
  overflow-y: auto;
}

.nav ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-default);
  border-radius: var(--radius);
  background: #f6f6f6;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.nav li:hover {
  background: var(--menu-hover-bg);
  box-shadow: var(--shadow);
  color: #d66b00;
}

.nav li.active {
  background: var(--menu-active-bg);
  color: var(--menu-active-text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav li.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  height: 24px;
  width: 4px;
  background-color: var(--menu-active-bg);
  border-radius: 4px;
}

.logout {
  padding: 10px;
  margin-top: 20px;
  border: none;
  border-radius: var(--radius);
  background: #f0f0f0;
  color: #444;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.logout:hover {
  background: #e6e6e6;
}

.dashboard {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: #f9f9fb;
}

/* Botones superiores */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
}

.btn-neutral {
  background: #e9ecef;
  color: var(--text-default);
}

.btn-neutral:hover {
  filter: brightness(0.95);
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}

.text-center { text-align: center; }
.text-small { font-size: 12px; }
.w-100 { width: 100%; }

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    z-index: 1000;
    height: 100vh;
    left: -240px;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .dashboard {
    padding-top: 100px;
  }
}
/* ─── Estilo tabla pedidos ─── */

.orders-table {
  margin-top: 24px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead {
  background-color: #f5f5f5;
  font-weight: 600;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
  background-color: #fdf7f1;
}

/* Estilo para celdas de acciones */
.table td:last-child {
  text-align: center;
}

/* Pequeño detalle para responsive si es necesario */
@media (max-width: 768px) {
  .table th, .table td {
    padding: 10px;
    font-size: 12px;
  }
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-align: center;
}

.badge-preparacion {
  background-color: #f0ad4e; /* naranja */
}

.badge-entregado {
  background-color: #5cb85c; /* verde */
}

.badge-listo-envio {
  background-color: #0275d8; /* azul */
}
/* Esconde el checkbox original */
.check-pedido {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  background: #ccc;
  border-radius: 34px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

/* El círculo interior del switch */
.check-pedido::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Cuando está activo */
.check-pedido:checked {
  background: #00c4cc;
}

.check-pedido:checked::before {
  transform: translateX(18px);
}
input[type="checkbox"].check-pedido {
  appearance: none;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="checkbox"].check-pedido:checked {
  background-color: #FFD600; /* amarillo Flex */
}

input[type="checkbox"].check-pedido::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  top: 1px;
  left: 1px;
  transition: transform 0.3s ease;
}

input[type="checkbox"].check-pedido:checked::before {
  transform: translateX(20px);
}
thead tr {
  background-color: #f8d751; /* un amarillo claro como el de tu logo */
}

thead th {
  color: #333;
  font-weight: 600;
  padding: 12px;
  text-align: left;
}
thead tr:hover {
  background-color: #f8d751 !important; /* o el amarillo que estés usando */
}
.dropdown-filtro {
  position: absolute;
  right: 0;
  top: 40px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.dropdown-filtro.activo {
  max-height: 200px;
  opacity: 1;

}
.boton-filtro {
  background-color: #FFD700; /* Amarillo estilo Flex */
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.boton-filtro:hover {
  background-color: #FFC300; /* Un tono más oscuro al pasar el mouse */
}

.boton-filtro {
  background-color: #FFD700; /* Amarillo tipo logo */
  color: #000;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.boton-filtro:hover {
  background-color: #FFC300;
}

#busquedaOrden {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: box-shadow 0.2s ease;
}

#busquedaOrden:focus {
  box-shadow: 0 0 5px rgba(255, 204, 0, 0.8); /* tono amarillo suave */
  border-color: #ffcc00;
}

.dropdown-filtro.activo {
  max-height: 200px; /* ajusta según contenido */
  opacity: 1;
}
.dropdown-filtro label {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre checkbox y texto */
  white-space: nowrap; /* evita saltos de línea */
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  margin-bottom: 6px;
}

.dropdown-filtro {
  min-width: 160px; /* más ancho mínimo */
  width: max-content; /* se adapta al contenido más largo */
}
.boton-filtro i {
  transition: transform 0.4s ease;
}

.boton-filtro:active i {
  transform: rotate(360deg);
}
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.barra-estados {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px 0;
  padding-left: 0;
}

.estado-btn {
  background-color: #e0e0e0;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.estado-btn:hover {
  background-color: #d4d4d4;
}
.barra-estados {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px 0;
}

.estado-btn {
  background-color: #f1f5f9;          /* fondo más legible */
  color: #0f172a;                      /* texto oscuro */
  border: 1px solid #cbd5e1;           /* borde sutil */
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;                    /* mejor contraste */
  font-size: 0.8rem;                   /* un poco más grande */
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.estado-btn:hover {
  background-color: #e2e8f0;          /* hover más oscuro */
  border-color: #b6c2cf;
}

.estado-btn i { color: inherit; opacity: 0.9; }
.dropdown-item {
  background: none;
  border: none;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  border-radius: 5px;
}
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader i::before {
  content: none !important;
}
.switch-container {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.3s;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-container input:checked + .switch-slider {
  background-color: #ffcc00;
}

.switch-container input:checked + .switch-slider::before {
  transform: translateX(18px);
}
.switch-container {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
  background-color: #ffcc00;
}

.switch-container input:checked + .switch-slider::before {
  transform: translateX(18px);
}
.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .menu-text {
  display: none;
}

.sidebar.collapsed .logo img {
  height: 42px; /* Logo más pequeño opcional */
}

.toggle-sidebar-btn {
  margin-bottom: 10px;
  cursor: pointer;
  color: #888;
  display: flex;
  justify-content: flex-end;
}
.toggle-sidebar-btn i {
  font-size: 16px;
  padding: 4px;
  transition: transform 0.3s ease;
}
.nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sidebar.collapsed .nav li {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .nav li i {
  margin: 0;
}

.sidebar .nav li i {
  min-width: 20px;
  text-align: center;
}
.sidebar.collapsed .logout-text {
  display: none;
}
.sidebar {
  width: 220px;
  transition: width 0.3s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar .nav li,
.sidebar .logout {
  white-space: nowrap;
  transition: padding 0.3s ease, opacity 0.3s ease;
}

.sidebar .nav li span,
.sidebar .logout span {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.collapsed .nav li span,
.sidebar.collapsed .logout span {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  width: 90%;
}

.modal-logo {
  height: 50px;
  margin-bottom: 15px;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

#confirmLogout {
  background-color: #004aad;
  color: white;
}

#cancelLogout {
  background-color: #ccc;
  color: black;
}
.logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 12px; /* 👈 Este valor debe coincidir con .nav li */
  font-weight: 500;
  color: var(--text-default);
  background: #f6f6f6;
  transition: all 0.2s ease;
  cursor: pointer;
}

.logout:hover {
  background: var(--menu-hover-bg);
  color: #d66b00;
  box-shadow: var(--shadow);
}
.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  font-family: 'Roboto', sans-serif;
}

.modal-logo {
  height: 80px; /* 🔼 Aumentado de 50px */
  margin-bottom: 20px;
}

.modal-content p {
  font-size: 15px; /* 🔽 Un poco más sutil */
  font-weight: 400;
  color: #444;
  margin-top: -10px;
}
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #f0a500; /* color amarillo como tu branding */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
body {
  background-color: transparent !important;
}
.table td:last-child {
  display: flex;
  justify-content: center;
  align-items: center;  /* 👈 Esto centra verticalmente */
  height: 100%;
}
.table td:last-child {
  vertical-align: middle !important;
  text-align: center;
  height: 100%;
  padding-top: 18px; /* Ajusta este valor para bajar visualmente */
}
.table td:last-child .boton-filtro {
  transform: translateY(2px); /* baja el botón ligeramente */
}
.table td:last-child button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 4px; /* Ajusta este valor si es necesario */
}
.table td:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px; /* asegúrate de que esto se acerque a la altura real de tu fila */
}
.accion-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.boton-filtro {
  background-color: #ffd500;
  border: none;
  padding: 6px 14px;
  font-weight: bold;
  color: black;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}
td:last-child {
  padding-top: 0;
  padding-bottom: 0;
}

.accion-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.boton-filtro {
  background-color: #ffd500;
  border: none;
  padding: 6px 14px;
  font-weight: bold;
  color: black;
  border-radius: 8px;
  box-shadow: 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.table tr {
  height: 60px; /* o ajústalo al tamaño que tenías antes */
}

.table td {
  vertical-align: middle; /* centra verticalmente el contenido */
  padding-top: 0;
  padding-bottom: 0;
}
.pastilla-envio {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #f9f9f9;
  color: #333;
}
.codigo-orden {
  font-weight: 700;               /* Negrita */
  color: #004085;                 /* Azul oscuro */
  font-size: 1rem;
  text-decoration: none;          /* Sin subrayado */
  display: inline-block;
}

.codigo-orden:hover {
  text-decoration: underline;     /* Subrayado al pasar el mouse */
}
.total-badge {
  display: inline-flex;
  align-items: center;
  background-color: #ffc107; /* amarillo */
  color: #000;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.total-badge i {
  margin-right: 5px;
}
.total-badge {
  background-color: var(--color-boton);
  /* el resto de propiedades... */
}
.dropdown-opciones {
  position: relative;
  display: inline-block;
}

.menu-opciones {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  z-index: 100;
  min-width: 90px;
  font-size: 0.65rem; /* 👈 Tamaño más pequeño */
}


.opcion-item {
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.opcion-item:hover {
  background-color: #f0f0f0;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 1100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.contenedor-detalle {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bloque {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.detalle-doble-columna {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.columna-venta, .columna-cliente {
  flex: 1 1 45%;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-producto {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.columna-venta h2,
.columna-cliente h2 {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .detalle-doble-columna {
    flex-direction: column;
  }

  .columna-venta, .columna-cliente {
    flex: 1 1 100%;
  }
}
.detalle-doble-columna {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.columna-venta, .columna-cliente {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 25px;
  width: 320px;
  font-size: 15px;
  color: #333;
}

.columna-venta h2, .columna-cliente h2 {
  font-size: 17px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.columna-venta p, .columna-cliente p {
  margin: 5px 0;
  line-height: 1.5;
}

button.estado-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}

button.estado-btn:hover {
  background-color: #e0e0e0;
}
.contenedor-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.columna-venta,
.columna-cliente,
.columna-tracking {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.detalle-triple-columna {
  margin-top: 10px;
  display: flex;
  justify-content: center;       /* Centrado horizontal */
  align-items: center;           /* Centrado vertical */
  gap: 20px;
  flex-wrap: nowrap;
  height: auto;
  width: 100%;                   /* Que use todo el ancho disponible */
  box-sizing: border-box;
  padding-left: 80px;            /* Ajusta esto según el ancho de tu menú lateral */
}



.columna-venta,
.columna-cliente,
.columna-tracking {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 350px;
  min-height: 350px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#mapa-envio {
  margin-left: 120px; /* Puedes ajustar este valor */
  width: calc(100% - 80px); /* Para compensar el espacio y evitar desbordes */
  transition: margin-left 0.3s ease; /* Opcional, para una transición suave */
}


.tarjeta-mapa {
  margin-bottom: 0px !important; /* ← aquí estaba el problema */
  padding: 10px 15px !important;
}
#map {
  width: 100%;
  height: 300px; /* puedes cambiarlo a 400px si quieres más grande */
}


.contenedor-principal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.contenedor-superior {
  display: flex;
  gap: 20px;
}

#mapa-envio {
  flex: 3;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-left: 165px; /* aquí controlas el "poquitititito" */
}

.tarjeta-tracking {
  flex: 1;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 100%;
}

.tarjeta-tracking ul {
  padding-left: 20px;
  margin: 0;
  list-style-type: none;
}

.tarjeta-tracking li {
  margin-bottom: 10px;
  font-weight: 500;
}

.contenedor-inferior {
  display: flex;
  gap: 20px;
}

.tarjeta {
  flex: 1;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.contenedor-principal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto;
}

#mapa-envio {
  flex: 2;
  height: 300px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

#tarjeta-tracking {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 300px;
}

#tarjeta-tracking ul {
  padding-left: 20px;
  margin: 0;
}

#tarjeta-tracking li {
  margin-bottom: 8px;
  font-size: 14px;
}

.detalle-triple-columna {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-left: 80px; /* o el valor que quieras */
  
}

.columna-venta,
.columna-cliente {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
}

.columna-tracking {
  width: 300px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
}
.titulo-mapa {
  margin: 10px 0 10px 140px; /* mueve el título a la derecha */
  font-size: 18px;
}
.titulo-seccion {
  display: inline-block;
  background-color: #FFD700; /* mismo amarillo que usas */
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}
.pulsando {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #000000; /* verde */
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.7);
  animation: pulso 1.5s infinite;
  vertical-align: middle;
}

@keyframes pulso {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}
.columna-venta {
  max-height: 300px; /* o la altura que desees */
  overflow-y: auto;
  padding-right: 10px; /* opcional para evitar corte del contenido */
}

  .ra-card{
    background:#fff; border-radius:14px; padding:16px 18px; width:360px;
    box-shadow:0 12px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
    border:1px solid #eef0f3;
  }
  .ra-title{ margin:0 0 10px; font-size:18px; color:#0f172a; display:flex; gap:8px; align-items:center;}
  .ra-label{ display:block; margin:10px 0 6px; font-weight:600; font-size:13px; color:#334155;}
  .ra-input,.ra-select{
    width:100%; padding:10px 12px; border:1px solid #dbe1e8; border-radius:10px; outline:none;
    font-size:14px; background:#fff;
  }
  .ra-input:focus,.ra-select:focus{ border-color:#60a5fa; box-shadow:0 0 0 3px rgba(96,165,250,.25);}
  .ra-multiselect{ position:relative; }
  .ra-ms-btn{
    width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:10px 12px; border:1px solid #dbe1e8; border-radius:10px; background:#fff; cursor:pointer;
  }
  .ra-ms-count{ background:#e5f0ff; color:#1d4ed8; border-radius:999px; padding:2px 8px; font-size:12px;}
  .ra-ms-menu{
    position:absolute; top:44px; left:0; width:100%; max-height:220px; overflow:auto;
    background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.12);
    padding:10px; display:none; z-index:210;
  }
  .ra-ms-menu label{ display:flex; gap:10px; align-items:center; padding:6px 4px; font-size:14px; cursor:pointer; }
  .ra-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:14px;}
  .ra-btn{ padding:10px 12px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
  .ra-primary{ background:#1d4ed8; color:#fff; border:none; }
  .ra-ghost{ background:#fff; color:#0f172a; }
/* Mantener tamaño fijo del popover y permitir scroll interno elegante */
#registro-auto-card { width: 360px; }
.ra-card{
  max-height: 78vh;          /* alto fijo relativo a la pantalla */
  overflow-y: auto;          /* scroll interno si se llena */
  scrollbar-width: thin;
}
.ra-ms-menu{ max-height: 240px; } /* menú de servicios con scroll si se extiende */

.ra-fulltoggle-text {
  font-size: 0.85rem;   /* más pequeño */
  color: #444;          /* tono más suave */
  margin-left: 6px;     /* espacio del switch */
  cursor: pointer;      /* que sea clickeable */
  user-select: none;    /* evita seleccionar el texto al hacer click */
}
.ra-fulltoggle {
  display: flex;
  align-items: center;   /* centra verticalmente */
  gap: 8px;              /* espacio entre switch y texto */
  padding: 4px 0;
}

.ra-fulltoggle .switch-container {
  flex-shrink: 0;        /* el switch mantiene su tamaño */
}

.ra-fulltoggle-text {
  font-size: 0.85rem;
  color: #444;
  cursor: pointer;
  user-select: none;
}
/* Botón Ver Presupuesto */
.btn-presupuesto{
  background:#f59e0b;
  color:#fff;
  padding:6px 10px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:0.85rem;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.btn-presupuesto i{ font-size:0.95rem; }
.btn-presupuesto:hover{ filter:brightness(0.95); }

/* Botón Contactar Cliente más pequeño */
.btn-cliente {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;        /* menos padding → botón más compacto */
  border-radius: 6px;      /* un poco más redondeado */
  font-size: 0.7rem;       /* letra más pequeña */
  line-height: 1;
  height: 15px;            /* altura menor que el default */
  border: 1px solid #16a34a;
  background: #22c55e;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cliente i {
  font-size: 0.8rem;       /* icono más pequeño */
}

.btn-cliente:hover {
  filter: brightness(0.95);
}
/* Encabezado de la tabla de pedidos */
.orders-table .table thead tr {
  background-color: #7c0202;   /* tu color */
}
.orders-table .table thead th {
  color: #ffffff;               /* color del texto */
}

/* Evita que el hover lo cambie */
.orders-table .table thead tr:hover {
  background-color: #004aad !important;
}

/* ===============================
   Dropdowns pulidos – Registro de Auto
   Aplica estilos suaves a selects/inputs del card de registro
   =============================== */
#registro-auto-card select,
#registro-auto-card input[type="text"],
#registro-auto-card input[type="tel"],
#registro-auto-card input[type="number"],
#registro-auto-card input[type="email"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 40px;
  padding: 10px 42px 10px 12px; /* espacio para icono */
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#registro-auto-card select:hover,
#registro-auto-card input[type="text"]:hover,
#registro-auto-card input[type="tel"]:hover,
#registro-auto-card input[type="number"]:hover,
#registro-auto-card input[type="email"]:hover {
  border-color: #cbd5e1;
}

#registro-auto-card select:focus,
#registro-auto-card input[type="text"]:focus,
#registro-auto-card input[type="tel"]:focus,
#registro-auto-card input[type="number"]:focus,
#registro-auto-card input[type="email"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,.25);
  outline: none;
}

/* Flecha personalizada para <select> (sin tocar el HTML) */
#registro-auto-card select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M5 7l5 6 5-6" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* Esconde la flecha nativa en IE/Edge antiguos */
#registro-auto-card select::-ms-expand { display: none; }

/* Mensajes/labels del registro con apariencia uniforme */
#registro-auto-card .ra-label { color: #334155; font-weight: 600; }

/* Estado deshabilitado */
#registro-auto-card select:disabled,
#registro-auto-card input:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* === Botones/íconos compactos y neutros (pago $ y similares) === */
.btn-neutral {
  background: #e9ecef;
  color: #111;                         /* texto más oscuro */
  border: 1px solid #cbd5e1;           /* define borde para contraste */
}

.btn-icon, .btn-dollar {
  width: 28px; height: 28px;           /* botón circular compacto */
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; color: #0f172a;
  border: 1px solid #cbd5e1; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.btn-icon:hover, .btn-dollar:hover { background: #f1f5f9; }

/* ===== Barra Tasa del Día (BCV) ===== */
.tasa-bar{
  position: sticky; top: 0; z-index: 2500;
  width: 100%; text-align: center;
  background: #fef3c7;            /* ámbar claro */
  color: #92400e;                  /* texto ámbar oscuro */
  border-bottom: 1px solid #f3e0b5;
  padding: 8px 12px; font-size: 0.95rem; font-weight: 600;
}
.tasa-bar .tasa-label{ margin-right: 6px; }

/* Dark mode */
body.dark-mode .tasa-bar{
  background:#3a2f17; color:#f8e6b1; border-color:#5a4b1f;
}