/* --- Estilo Base y Fondo --- */
body {
  margin: 0;
  padding-top: 100px; /* Dejamos espacio para el header fijo */
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

.app-container {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Fondo de marca de agua (Repetido Vertical) */
.app-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-image: url('../logos/logo-fondo.webp');
  background-size: 50%;
  background-repeat: repeat-y;
  background-position: center top;
  opacity: 0.03;
  z-index: -1;
}

@media (min-width: 600px) {
  .app-container::before {
    background-size: 30%;
  }
}


/* --- Cabecera --- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 10;
}
.header-logo { flex: 1; }
.header-title { flex: 2; text-align: center; }
.header-nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav-icon { font-size: 1.5rem; text-decoration: none; color: #333; }


/* --- Contenido Principal --- */
main.content-wrapper {
  padding: 20px;
}

/* --- Botón 3D "Tecla" --- */
.menu-button-3d {
  display: block;
  width: 100%;
  padding: 25px 20px;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #333;
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  border-bottom: 5px solid #cccccc;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  box-sizing: border-box;
}

.menu-button-3d:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
  background-color: #f5f5f5;
}
/* Estilo para botones deshabilitados */
.menu-button-3d:disabled {
    background-color: #e0e0e0;
    border-bottom-color: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Grid para el Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr; /* Una columna en móvil */
  gap: 15px;
}
@media (min-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr; /* Dos columnas */
  }
}


/* --- Estilos del Login --- */
.login-body { padding-top: 0; }
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 400px;
  margin: 5% auto;
}
.login-logo {
  width: 100%;
  max-width: 250px;
  margin-bottom: 30px;
}
.login-container form { width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
}
/* Selectores específicos */
.almacen-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
.cantidad-input {
    width: 80px; /* Ancho más consistente para cantidad */
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Mensajes de Feedback */
.error-message {
  color: #d32f2f; /* Rojo */
  text-align: center;
  font-weight: bold;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}
.success-message {
  color: #388E3C; /* Verde */
  background-color: #e8f5e9;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  font-weight: bold;
}
.info-message {
  color: #0277bd; /* Azul */
  background-color: #e1f5fe;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}


/* --- Estilos para Barra de Búsqueda y Escáner --- */
.search-bar-container {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    align-items: center; /* Alineación vertical */
}
.search-bar-container form { /* Para Lupa y Enter */
    display: flex;
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}
.search-bar-container input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 12px;
    font-size: 1rem;
}
.search-bar-container input[type="text"]:focus {
    outline: none;
}
.search-btn { /* Lupa */
    border: none;
    background-color: #f0f0f0;
    padding: 0 15px;
    font-size: 1.2rem;
    cursor: pointer;
}
.scan-btn { /* Cámara */
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 1.5rem;
    margin-left: 10px;
    cursor: pointer;
    height: 44px; /* Ajustar altura para alinear con input */
    flex-shrink: 0; /* Evita que se encoja */
}

/* Lista de resultados de búsqueda */
.search-results-list {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    position: relative;
    z-index: 5;
    margin-top: -1px; /* Para que se junte con la barra */
}
.search-results-list .search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: block; /* Para enlaces */
    text-decoration: none;
    color: #333;
}
.search-results-list .search-result-item:hover {
    background: #f0f0f0;
}
.search-results-list .search-result-item span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}
.selected-product-display {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

/* --- Estilos para Comprobar Stock --- */
.stock-result-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 10px;
    background: #fafafa;
}
.stock-result-header {
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    line-height: 1.5;
}
.variant-group {
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.variant-group:last-child {
    border-bottom: none;
}
.variant-header {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.location-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 8px 20px;
}
.location-total {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    font-size: 1.1rem;
    border-top: 1px dashed #ccc;
    margin-top: 5px;
}
.stock-result-total {
    background: #f0f0f0;
    padding: 15px;
    text-align: right;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
}


/* --- Estilos para Formularios (Pedido, Devolución, Alta, Venta) --- */
.pedido-section {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Carrito */
#carrito-container h3, #venta-carrito-container h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px dashed #ddd;
}
.carrito-item span {
    flex-grow: 1;
}
.carrito-item strong {
    margin-right: 15px;
}
.btn-remove {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 30px; /* Centrar icono */
    text-align: center;
}
/* Formulario añadir al carrito */
.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Para móvil */
}
.btn-add {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px; /* Más clickeable */
    border-radius: 5px;
    cursor: pointer;
}


/* --- Estilos para Lista de Pedidos (Entrada Almacén) --- */
.pedidos-pendientes-list .pedido-item-link {
    display: block;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}
.pedidos-pendientes-list .pedido-item-link:hover {
    background-color: #f0f0f0;
}
.pedidos-pendientes-list .pedido-item-link span {
    display: block;
    margin-top: 5px;
    color: #666;
}


/* --- Estilos para Formulario de Entrada Detalle --- */
.entrada-form .entrada-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}
.entrada-form .item-completo {
    background: #f0f9f0;
    border-color: #c8e6c9;
    opacity: 0.7;
}
.entrada-item .item-nombre {
    font-size: 1.2rem;
    display: block;
}
.entrada-item .item-info {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 15px 0;
}
.entrada-item .item-inputs {
    display: flex;
    flex-wrap: wrap; /* Para móviles */
    gap: 15px;
    align-items: center;
}
.entrada-item .form-group {
    margin-bottom: 0;
}
.entrada-item .form-group label {
    margin-right: 5px;
}


/* --- Estilos para Salida de Almacén --- */
.salida-form .salida-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}
.salida-item span {
    display: block;
    margin-top: 5px;
    color: #666;
}
.salida-item p {
    font-style: italic;
    color: #333;
}
.salida-item .form-group {
    margin-top: 10px;
}


/* --- Estilos para Inventario --- */
.inventario-cantidad {
    width: 60px;
    text-align: center;
    margin-right: 10px;
}

.discrepancias-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    overflow-x: auto; /* Scroll horizontal en móvil */
    display: block; /* Necesario para overflow-x */
}
.discrepancias-tabla th,
.discrepancias-tabla td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap; /* Evitar que el texto se parta */
}
.discrepancias-tabla th {
    background-color: #f0f0f0;
}
.discrepancias-tabla tr.sobra {
    background-color: #e8f5e9;
}
.discrepancias-tabla tr.falta {
    background-color: #ffebee;
}
.discrepancias-tabla td.diferencia {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}
.discrepancias-tabla tr.sobra .diferencia {
    color: #388E3C;
}
.discrepancias-tabla tr.falta .diferencia {
    color: #d32f2f;
}
.discrepancias-tabla .almacen-select {
    padding: 5px;
    font-size: 0.9rem;
}


/* --- Estilos para Alta Producto --- */
.alta-producto-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fdfdfd;
}
.alta-producto-form legend {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0 10px;
}
.alta-producto-form .form-group {
    margin-bottom: 15px;
}
.alta-producto-form .form-group label {
    font-weight: normal;
}
.alta-producto-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.validation-message {
    font-size: 0.9rem;
    display: block;
    margin-top: 3px;
    min-height: 1em; /* Evitar saltos de layout */
}
.validation-message.success {
    color: #4CAF50;
}
.validation-message.error {
    color: #d32f2f;
    font-weight: bold;
}
.scan-input-group {
    position: relative;
    padding-right: 50px;
}
.scan-input-group input[type="text"] {
    width: 100%;
}
.scan-btn-small {
    position: absolute;
    right: 0;
    top: 25px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.scan-btn-small:hover {
    background-color: #e0e0e0;
}


/* --- Estilos para Modificar Producto --- */
.alta-producto-form.variante-form {
    margin-top: 15px;
    border-top: 2px dashed #eee;
    padding-top: 15px;
}
.alta-producto-form.variante-form fieldset {
    background: #fff;
}


/* --- Estilos para Lista de Personal --- */
.pedido-item-link { /* Reutilizamos clase de listas */
    position: relative;
}
.pedido-item-link.inactivo {
    opacity: 0.6;
    background: #fafafa;
}
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}
.status-badge.status-activo {
    background-color: #e8f5e9;
    color: #388E3C;
}
.status-badge.status-inactivo {
    background-color: #ffebee;
    color: #d32f2f;
}


/* --- Estilos para Formulario de Personal --- */
.checkbox-group {
    display: flex;
    flex-direction: column;
}
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    cursor: pointer; /* Para el desplegable de tiendas */
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.acciones-peligrosas fieldset {
    border-color: #d32f2f;
}
.acciones-peligrosas legend {
    color: #d32f2f;
}
.acciones-peligrosas form {
    margin-bottom: 10px;
}


/* --- Estilos para Desplegables del Header (Perfil y Tiendas) --- */
.store-dropdown-container, 
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.store-dropdown-content,
.profile-dropdown-content {
    display: none; 
    position: absolute;
    right: 0;
    top: 50px; 
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 20; 
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
    padding: 0;
}

.store-dropdown-content.show,
.profile-dropdown-content.show {
    display: block;
}

.store-dropdown-content .dropdown-title,
.profile-dropdown-content .dropdown-title {
    padding: 10px 16px;
    font-weight: bold;
    color: #555;
    background-color: #f0f0f0;
    font-size: 0.9rem;
}

.store-dropdown-content a,
.profile-dropdown-content a {
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    color: #333;
}
.store-dropdown-content a:hover,
.profile-dropdown-content a:hover {
    background-color: #f1f1f1;
}
.profile-dropdown-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}
.profile-dropdown-content .logout-link {
    font-weight: bold;
    color: #d32f2f;
}
.tienda-activa {
    font-weight: bold;
    margin-right: 15px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 8px;
    border-radius: 5px;
    background: none;
    border: none;
    font-size: 1rem;
}
.tienda-activa:hover {
    color: #007bff;
    background-color: #f0f0f0;
}


/* --- Estilos para la Foto de Perfil en el Header --- */
.profile-photo-btn {
    width: 40px; 
    height: 40px; 
    padding: 0; 
    border-radius: 50%;
    overflow: hidden;
    background: none;
    border: none;
    display: flex; 
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
}

.header-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


/* --- Estilos para Mi Perfil --- */
.perfil-header {
    text-align: center;
}
.perfil-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #f0f0f0;
    object-fit: cover;
    margin-bottom: 10px;
}
.perfil-header h2 {
    margin: 0;
}
.perfil-header span {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    display: block;
}
.perfil-header input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.employee-data-list p {
    margin: 8px 0;
    font-size: 1.1rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}
.employee-data-list p:last-child {
    border-bottom: none;
}
.employee-data-list strong {
    color: #555;
    min-width: 150px;
    display: inline-block;
}


/* --- Estilos para Calendario de Personal y Horarios --- */
.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    flex-wrap: wrap; 
}
.schedule-controls .form-group {
    flex: 1 1 200px;
}
.view-controls {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 5px; 
    flex-wrap: wrap;
}
.view-controls .view-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.view-controls .view-btn.active {
    background-color: #333;
    color: white;
    border-color: #333;
}
.view-controls .nav-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.day-schedule-list {
    list-style: none;
    padding: 0;
}
.shift-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--shift-color, #3498db); 
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}
.shift-time {
    font-weight: bold;
    color: #2980b9;
}
.shift-name {
    color: #333;
}
.shift-notes {
    font-style: italic;
    color: #777;
    flex-basis: 100%;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 10px;
}

.day-cell {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    min-height: 120px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.day-cell h4 {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    text-align: center;
}
.shift-mini {
    background-color: #f0f0f0;
    padding: 4px;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-left: 3px solid var(--shift-color, #3498db);
    position: relative;
}
.shift-mini .time {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
}
.shift-mini .employee {
    color: #333;
}


/* --- Estilos para Gestión de Almacenes --- */
.lista-almacenes ul {
    list-style: none;
    padding: 0;
}
.almacen-item {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}
.almacen-item.protected-item {
    background: #fff9c4;
    border-color: #ffeb3b;
}
.almacen-desc {
    color: #666;
    margin: 5px 0 10px 0;
}
.almacen-actions {
    display: flex;
    gap: 10px;
}
.almacen-actions button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
}
.almacen-actions .btn-edit-almacen {
    color: #007bff;
    border-color: #007bff;
}
.almacen-actions .btn-delete-almacen {
    color: #dc3545;
    border-color: #dc3545;
}
.almacen-actions .btn-delete-almacen:disabled {
    color: #aaa;
    border-color: #ccc;
    cursor: not-allowed;
}
/* Modal */
.modal {
    display:none; position:fixed; z-index:100; left:0; top:0; width:100%; height:100%; overflow:auto; background-color:rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 90%; max-width: 500px;
}
.close-btn {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
.close-btn:hover, .close-btn:focus {
    color: black; text-decoration: none;
}


/* --- Estilos para Informe de Ventas --- */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    display: block; /* Para permitir scroll */
    overflow-x: auto; /* Scroll horizontal en móvil */
}
.report-table th, .report-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap; /* Evitar saltos de línea */
}
.report-table th {
    background-color: #f2f2f2;
}
.report-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}
.report-summary h3 {
    margin-top: 0;
}
.report-summary p {
    margin: 5px 0;
}

/* Desplegable de Filtro de Tiendas */
.store-filter-container {
    position: relative; 
}
.store-filter-dropdown-content {
    display: none; 
    position: absolute;
    background-color: #ffffff;
    min-width: 250px; 
    max-width: 90%; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; 
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-height: 250px; 
    overflow-y: auto;
    margin-top: 5px; 
}
.store-filter-dropdown-content.show {
    display: block; 
}
.store-filter-dropdown-content .checkbox-label {
    display: block; 
    margin-bottom: 8px;
    font-size: 1rem; 
    cursor: pointer; 
}
.store-filter-dropdown-content hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}
#store-filter-btn {
    display: inline-block; 
    width: auto; 
    text-align: left; 
    border: 1px solid #ccc; 
    background-color: #fff; 
    border-bottom-width: 3px; 
}
#store-filter-btn:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
}


/* === ESTILOS RESPONSIVE PARA CALENDARIO MÓVIL === */
@media (max-width: 600px) {
    
    /* === VISTA DÍA === */
    .day-schedule-list .shift-item {
        display: block; /* Turnos en bloque */
        padding-left: 15px;
        border-left: none;
    }
    .day-schedule-list .shift-item::before { 
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background-color: var(--shift-color, #3498db);
        border-radius: 3px 0 0 3px;
    }
    .day-schedule-list .shift-item span {
        display: block; /* Cada info en su línea */
        margin-bottom: 5px; 
    }
    .day-schedule-list .shift-item .shift-time {
        font-size: 1.1em; 
    }

    /* === VISTA SEMANA Y MES (CUADRÍCULA) === */
    .schedule-grid.week-grid,
    .schedule-grid.month-grid {
        grid-template-columns: 1fr; /* Días uno debajo del otro */
        gap: 8px; /* Espacio entre días */
    }
    
    .schedule-grid .day-cell {
        padding: 8px;
        min-height: auto;
    }
    
    .schedule-grid .day-cell h4 {
        font-size: 1rem; /* Título del día claro */
        margin-bottom: 8px;
        padding-bottom: 4px;
    }

    /* Contenedor de los turnos dentro de un día */
    .schedule-grid .shifts-in-day {
         display: block !important; /* Asegura que los hijos se apilen verticalmente */
    }

    /* Estilos para cada turno individual (.shift-mini) en móvil */
    .schedule-grid .shift-mini {
        display: block;      /* Fuerza a ocupar una línea completa */
        width: 100%;         /* Ocupa todo el ancho disponible */
        box-sizing: border-box; /* Incluye padding en el ancho */
        padding: 8px 10px;   /* Padding interno */
        margin-bottom: 6px;  /* Espacio entre turnos */
        white-space: normal; /* Permite que el texto se parta */
        position: relative;
        border-left: none;   /* Quita borde original */
        padding-left: 15px;  /* Espacio para la nueva línea de color */
        font-size: 0.9rem;   /* Tamaño de fuente legible en móvil */
    }
    /* Línea de color a la izquierda */
    .schedule-grid .shift-mini::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px; /* Ancho de la línea */
        background-color: var(--shift-color, #3498db); /* Color del empleado o default */
        border-radius: 2px 0 0 2px;
    }

    .schedule-grid .shift-mini .time {
        display: block;      /* Hora en su propia línea */
        font-weight: bold;
    }
    .schedule-grid .shift-mini .employee {
        display: block;      /* Nombre/Tienda en su línea */
        color: #333;         /* Color oscuro para legibilidad */
        margin-top: 3px;
    }
}