.mobile-body {
    background: #f4f7fb;
}

.mobile-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f4f7fb;
    padding-bottom: 90px;
}

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8edf5;
    padding: 16px 18px;
}

.mobile-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #172033;
}

.mobile-subtitle {
    font-size: 18px;
    color: #7b8798;
    margin-top: 4px;
    text-align: center;
    font-weight:bold;
}

.mobile-content {
    padding: 16px;
}

.mobile-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    padding: 18px;
    margin-bottom: 14px;
}

.mobile-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 6px;
}

.mobile-card-subtitle {
    font-size: 13px;
    color: #7b8798;
    margin-bottom: 14px;
}

.mobile-stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #172033;
}

.mobile-stat-label {
    font-size: 13px;
    color: #7b8798;
    margin-top: 8px;
}

.mobile-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-action {
    display: block;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px;
    color: #172033;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.mobile-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: #fff;
    background: #246fba;
}

.mobile-action-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mobile-action-text {
    font-size: 12px;
    color: #7b8798;
    line-height: 1.35;
}

.mobile-highlight {
    border-radius: 22px;
    padding: 20px;
    color: #fff;
    background: #0b2538;
    margin-bottom: 16px;
}

.mobile-highlight-label {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 8px;
    font-size:16px; 
    font-weight:bold;
}

.mobile-highlight-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 8px;
}

.mobile-highlight-text {
    font-size: 14px;
    opacity: 0.9;
}

.mobile-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.mobile-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

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

.mobile-badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.mobile-badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.mobile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-title {
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.mobile-list-text {
    font-size: 14px;
    color: #7b8798;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: repeat(var(--items, 5), minmax(0, 1fr));

    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 6px 4px;
    z-index: 9999;
}

.mobile-bottom-link {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;
    padding: 6px 2px;

    font-size: 10px;
    line-height: 1.1;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-bottom-link i {
    font-size: 17px;
    line-height: 1;
}

.mobile-bottom-link.active {
    color: #2563eb;
    font-weight: 800;
}

.mobile-bottom-link:hover {
    color: #2563eb;
}

.mobile-week-strip-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.mobile-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.mobile-week-day {
    border-radius: 16px;
    padding: 10px 4px;
    border: 1px solid #dbe3ef;
    text-align: center;
    min-height: 132px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.mobile-week-day-name {
    font-size: 9px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.mobile-week-day-number {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #172033;
}

.mobile-week-day-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 5px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 8px;
    line-height: 1;
}

.mobile-week-day-value {
    font-size: 12px;
    color: #334155;
    line-height: 1.2;
    min-height: 30px;
    word-break: break-word;
}

/* Colores más vivos pero elegantes */
.mobile-week-turno {
    background: #dbeafe;
    border-color: #93c5fd;
}
.mobile-week-turno .mobile-week-day-badge {
    background: #bfdbfe;
    color: #1d4ed8;
}

.mobile-week-partido {
    background: #fef3c7;
    border-color: #fcd34d;
}
.mobile-week-partido .mobile-week-day-badge {
    background: #fde68a;
    color: #b45309;
}

.mobile-week-libre {
    background: #dcfce7;
    border-color: #86efac;
}
.mobile-week-libre .mobile-week-day-badge {
    background: #bbf7d0;
    color: #15803d;
}

.mobile-week-vacaciones {
    background: #ccfbf1;
    border-color: #5eead4;
}
.mobile-week-vacaciones .mobile-week-day-badge {
    background: #99f6e4;
    color: #0f766e;
}

.mobile-week-baja {
    background: #fee2e2;
    border-color: #fca5a5;
}
.mobile-week-baja .mobile-week-day-badge {
    background: #fecaca;
    color: #b91c1c;
}

.mobile-week-permiso {
    background: #f3e8ff;
    border-color: #d8b4fe;
}
.mobile-week-permiso .mobile-week-day-badge {
    background: #e9d5ff;
    color: #7e22ce;
}

.mobile-week-sindato {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.mobile-week-sindato .mobile-week-day-badge {
    background: #cbd5e1;
    color: #334155;
}

.mobile-week-today {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.mobile-week-today .mobile-week-day-number {
    color: #1d4ed8;
}

.mobile-week-detail {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.mobile-week-detail-title {
    font-size: 14px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 4px;
}

.mobile-week-detail-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.mobile-week-detail-time {
    font-size: 13px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 4px;
}

.mobile-week-detail-note {
    font-size: 12px;
    color: #64748b;
}

.mobile-highlight-title {
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.mobile-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.mobile-month-header {
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    color: #475569;
    padding-bottom: 4px;
    text-transform: uppercase;
}

.mobile-month-day {
    border-radius: 14px;
    padding: 8px 4px;
    border: 1px solid #dbe3ef;
    text-align: center;
    min-height: 120px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.mobile-month-day-empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.mobile-month-day-number {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
    color: #172033;
}

.mobile-month-day-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 4px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 6px;
    line-height: 1;
}

.mobile-month-day-value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    min-height: 28px;
    word-break: break-word;
}

/* Colores más vivos */
.mobile-month-day.mobile-week-turno {
    background: #dbeafe;
    border-color: #93c5fd;
}
.mobile-month-day.mobile-week-turno .mobile-month-day-badge {
    background: #bfdbfe;
    color: #1d4ed8;
}

.mobile-month-day.mobile-week-partido {
    background: #fef3c7;
    border-color: #fcd34d;
}
.mobile-month-day.mobile-week-partido .mobile-month-day-badge {
    background: #fde68a;
    color: #b45309;
}

.mobile-month-day.mobile-week-libre {
    background: #dcfce7;
    border-color: #86efac;
}
.mobile-month-day.mobile-week-libre .mobile-month-day-badge {
    background: #bbf7d0;
    color: #15803d;
}

.mobile-month-day.mobile-week-vacaciones {
    background: #ccfbf1;
    border-color: #5eead4;
}
.mobile-month-day.mobile-week-vacaciones .mobile-month-day-badge {
    background: #99f6e4;
    color: #0f766e;
}

.mobile-month-day.mobile-week-baja {
    background: #fee2e2;
    border-color: #fca5a5;
}
.mobile-month-day.mobile-week-baja .mobile-month-day-badge {
    background: #fecaca;
    color: #b91c1c;
}

.mobile-month-day.mobile-week-permiso {
    background: #f3e8ff;
    border-color: #d8b4fe;
}
.mobile-month-day.mobile-week-permiso .mobile-month-day-badge {
    background: #e9d5ff;
    color: #7e22ce;
}

.mobile-month-day.mobile-week-sindato {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.mobile-month-day.mobile-week-sindato .mobile-month-day-badge {
    background: #cbd5e1;
    color: #334155;
}

.mobile-month-today {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.mobile-today-hero {
    border-radius: 28px;
    padding: 24px 22px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.mobile-today-turno { background: #246fba; }

.mobile-today-partido { background: #c27a20; }

.mobile-today-libre { background: #159b78; }

.mobile-today-vacaciones { background: #247c83; }

.mobile-today-baja { background: #bd554c; }

.mobile-today-permiso { background: #7656a6; }

.mobile-today-sindato { background: #516d7c; }

.mobile-today-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.mobile-today-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 6px;
}

.mobile-today-date {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.92;
}

.mobile-today-state {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.mobile-today-hours {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.mobile-today-hours small {
    display: block;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: normal;
    margin-top: 8px;
}

.mobile-today-subtext {
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.35;
}

.mobile-today-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-today-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.mobile-today-panel-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.mobile-today-panel-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: #172033;
}

.mobile-today-panel-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.mobile-today-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-today-cta-btn {
    display: block;
    text-align: center;
    border-radius: 18px;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #172033;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mobile-today-cta-btn.primary {
    background: #159b78;
    color: #fff;
    border-color: transparent;
}

.mobile-today-note {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 16px;
    margin-top: 16px;
    color: #475569;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.mobile-today-note-title {
    font-size: 13px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 8px;
}

@media (max-width: 767.98px) {
    .mobile-today-hours {
        font-size: 30px;
    }

    .mobile-today-panels,
    .mobile-today-cta {
        grid-template-columns: 1fr;
    }
}

.mobile-week-strip-next {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.mobile-week-day-next {
    border-radius: 14px;
    padding: 7px 3px;
    border: 1px solid #dbe3ef;
    text-align: center;
    min-height: 82px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.mobile-week-day-next .mobile-week-day-name {
    font-size: 8px;
    margin-bottom: 4px;
}

.mobile-week-day-next .mobile-week-day-number {
    font-size: 18px;
    margin-bottom: 5px;
}

.mobile-week-day-next .mobile-week-day-badge {
    font-size: 8px;
    padding: 3px 4px;
    margin-bottom: 4px;
}

.mobile-week-day-next .mobile-week-day-value {
    font-size: 12px;
    min-height: 20px;
    line-height: 1.15;
}

.mobile-separador {
    display: inline-block;
    font-weight: 900;
    font-size: 11px;
    color: #475569;
    line-height: 1;
}

.admin-hoy-compact {
    padding: 10px 12px;
    margin-bottom: 8px;
}

.admin-hoy-compact .mobile-week-detail-title {
    font-size: 13px;
    margin-bottom: 6px;
}

.admin-hoy-tramos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-hoy-tramo {
    background: rgba(255,255,255,0.7);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
    color: #172033;
}

/* BASE tarjetas compactas */
.admin-hoy-compact {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

/* 🔵 TRABAJANDO */
.admin-hoy-trabajo {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* 🟢 LIBRE */
.admin-hoy-libre {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* 🟡 PERMISO */
.admin-hoy-permiso {
    background: #fffbeb;
    border-color: #fde68a;
}

/* 🟣 VACACIONES */
.admin-hoy-vacaciones {
    background: #ecfeff;
    border-color: #a5f3fc;
}

/* 🔴 BAJA */
.admin-hoy-baja {
    background: #fef2f2;
    border-color: #fecaca;
}

/* ⚫ SIN HORARIO */
.admin-hoy-sindato {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.admin-hoy-compact .mobile-week-detail-title {
    font-size: 13px;
    font-weight: 800;
}

.admin-hoy-trabajo {
    border-left: 4px solid #2563eb;
}

.mobile-card .form-control[type="date"] {
    min-height: 44px;
}

.mobile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-mini-stat {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mobile-mini-stat-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: #172033;
}

.mobile-mini-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.1;
}

.mobile-admin-today-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f7;
}

.mobile-admin-today-row:last-child {
    border-bottom: none;
}

.mobile-admin-today-name {
    font-size: 13px;
    font-weight: 800;
    color: #172033;
}

.mobile-admin-today-time {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

.mobile-dimensionamiento-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.mobile-dimensionamiento-group {
    margin-bottom: 14px;
}

.mobile-dimensionamiento-group:last-child {
    margin-bottom: 0;
}

.mobile-dimensionamiento-title {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-dimensionamiento-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 5px;
}

.mobile-dimensionamiento-item {
    text-align: center;
    border-radius: 10px;
    padding: 6px 2px;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.mobile-dimensionamiento-value {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    color: #172033;
}

.mobile-dimensionamiento-hour {
    font-size: 10px;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 3px;
    line-height: 1;
}

.mobile-dimensionamiento-item.alta {
    background: #dcfce7;
    border-color: #86efac;
}

.mobile-dimensionamiento-item.media {
    background: #fef3c7;
    border-color: #fcd34d;
}

.mobile-dimensionamiento-item.baja {
    background: #fee2e2;
    border-color: #fca5a5;
}

.mobile-apertura-cierre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-apertura-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
}

.mobile-apertura-item i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Contenedor del texto */
.mobile-apertura-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* 🔓 APERTURA */
.mobile-apertura-item.apertura {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.mobile-apertura-item.apertura i {
    color: #16a34a;
}

/* 🔒 CIERRE */
.mobile-apertura-item.cierre {
    background: #fef2f2;
    border-color: #fecaca;
}

.mobile-apertura-item.cierre i {
    color: #dc2626;
}

.mobile-apertura-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
}

.mobile-apertura-hora {
    font-size: 18px;
    font-weight: 900;
    color: #172033;
    line-height: 1.1;
}

.mobile-apertura-item div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-apertura-hora {
    font-size: 20px;
    font-weight: 900;
}

.mobile-apertura-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
}

.mobile-apertura-hora {
    font-size: 18px;
    font-weight: 900;
    color: #172033;
    line-height: 1.1;
}

.mobile-admin-empleado-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.mobile-admin-empleado-row:last-child {
    border-bottom: none;
}

.mobile-admin-empleado-info {
    display: flex;
    flex-direction: column;
}

.mobile-admin-empleado-nombre {
    font-size: 14px;
    font-weight: 800;
    color: #172033;
}

.mobile-admin-empleado-turno {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.mobile-admin-empleado-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
    color: #172033;
}

.mobile-admin-empleado-link:last-child {
    border-bottom: none;
}

.mobile-admin-empleado-link:hover {
    color: #172033;
}

.mobile-admin-empleado-nombre {
    font-size: 14px;
    font-weight: 800;
    color: #172033;
}

.mobile-employee-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-employee-metric {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.mobile-employee-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 8px;
}

.mobile-employee-metric-value {
    font-size: 24px;
    font-weight: 900;
    color: #172033;
    line-height: 1;
}

.mobile-employee-metric-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
}

.mobile-info-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.mobile-employee-tramos {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
}

.mobile-employee-tramo-box {
    flex: 1;
    max-width: 130px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 12px 8px;
    text-align: center;
}

.mobile-employee-tramo-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mobile-employee-tramo-hora {
    font-size: 20px;
    font-weight: 900;
    color: #172033;
    line-height: 1.05;
}

.mobile-employee-tramo-sep {
    font-size: 13px;
    font-weight: 900;
    color: #94a3b8;
    line-height: 1;
    margin: 4px 0;
}

.mobile-employee-tramos.solo-uno .mobile-employee-tramo-box {
    max-width: 160px;
}

.mobile-card .mobile-week-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mobile-week-day.compact-14 {
    min-height: 105px;
    padding: 7px 3px;
}

.mobile-week-day.compact-14 .mobile-week-day-number {
    font-size: 15px;
}

.mobile-week-day.compact-14 .mobile-week-day-badge {
    font-size: 8px;
}

.mobile-week-day.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.mobile-date-navigator {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.mobile-date-center {
    text-align: center;
}

.mobile-date-arrow {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-date-arrow:hover {
    color: #fff;
}

.mobile-date-weekday {
    font-size: 15px;
    font-weight: 800;
    opacity: 0.92;
    margin-bottom: 4px;
}

.mobile-select-wrapper {
    position: relative;
}

.mobile-select-wrapper i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.mobile-select-app {
    padding-left: 36px;
    border-radius: 14px;
    font-weight: 700;
}

.mobile-solicitud-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mobile-solicitud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mobile-solicitud-tipo {
    font-size: 14px;
    font-weight: 800;
    color: #172033;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mobile-solicitud-fechas {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.mobile-solicitud-texto {
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-top: 8px;
}

.mobile-solicitud-respuesta {
    display: flex;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 10px;
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.4;
    margin-top: 8px;
}

.mobile-solicitud-revision {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 8px;
}

.mobile-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 14px;

    background: #159b78;
    color: #fff;
    font-size: 15px;
    font-weight: 800;

    border-radius: 18px;
    border: none;

    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-btn-primary i {
    font-size: 18px;
}

.mobile-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
}

.mobile-btn-primary:hover {
    color: #fff;
}

.mobile-btn-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.mobile-form-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

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

.mobile-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.mobile-form-label i {
    color: #2563eb;
    font-size: 15px;
}

.mobile-form-control {
    border-radius: 16px;
    min-height: 46px;
    font-weight: 700;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

.mobile-form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.mobile-form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.mobile-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
}

.mobile-login-shell {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5f6;
}

.mobile-login-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    padding: 28px 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.mobile-login-logo {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: #159b78;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.mobile-login-title {
    font-size: 28px;
    font-weight: 900;
    color: #172033;
    margin-bottom: 6px;
}

.mobile-login-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.mobile-login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
}

.mobile-login-body {
    min-height: 100vh;
    background: #0b2538;
}

.mobile-login-shell {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-login-brand {
    color: #fff;
    margin-bottom: 28px;
}

.mobile-login-logo {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.mobile-login-title {
    font-size: 34px;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.04em;
}

.mobile-login-subtitle {
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.88;
    margin: 8px 0 0;
    max-width: 330px;
}

.mobile-login-panel {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}

.mobile-login-panel-title {
    font-size: 22px;
    font-weight: 900;
    color: #172033;
    margin-bottom: 4px;
}

.mobile-login-panel-subtitle {
    font-size: 13px;
    color: #64748b;
}

.mobile-login-version {
    margin-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    font-weight: 700;
}

.mobile-gantt-fixed {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
}

.mobile-gantt-left {
    flex-shrink: 0;
}

.mobile-gantt-left-header {
    height: 22px;
    margin-bottom: 8px;
}

.mobile-gantt-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-gantt-inner {
    min-width: 720px;
}

.mobile-gantt-header-hours {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 22px;
    margin-bottom: 8px;
}

.mobile-gantt-header-cell {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-align: center;
}

.mobile-gantt-name {
    height: 34px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 900;
    color: #172033;
}

.mobile-gantt-track {
    position: relative;
    height: 34px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.mobile-gantt-bar {
    position: absolute;
    top: 5px;
    height: 22px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.mobile-gantt-bar-1 {
    background: #2563eb;
}

.mobile-gantt-bar-2 {
    background: #14b8a6;
}

.mobile-gantt-empty {
    font-size: 12px;
    color: #64748b;
}

.mobile-dimensionamiento-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;

    gap: 4px;
    width: 100%;

    align-items: stretch;
}

.mobile-dimensionamiento-item {
    min-width: 0;

    border-radius: 10px;
    padding: 5px 2px;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
}

.mobile-dimensionamiento-hour {
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;

    white-space: nowrap;
}

.mobile-dimensionamiento-value {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.mobile-btn-approve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 10px;
    padding: 10px 12px;

    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;

    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.mobile-btn-approve:hover {
    color: #166534;
}

.mobile-legend-card {
    padding: 12px;
}

.mobile-legend-title {
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mobile-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-btn-review {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.mobile-custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.mobile-custom-modal.show {
    display: block;
}

.mobile-custom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.mobile-custom-modal-box {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.36);
}

.mobile-custom-modal-box .modal-header {
    padding: 18px 18px 10px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-custom-modal-box .modal-title {
    font-size: 20px;
    font-weight: 900;
    color: #172033;
}

.mobile-custom-modal-box .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: #f1f5f9;
    opacity: 1;
}

.mobile-custom-modal-box .modal-body {
    padding: 0 18px 18px;
}

.mobile-modal-summary {
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.mobile-modal-summary-title {
    font-size: 15px;
    font-weight: 900;
    color: #172033;
    margin-bottom: 4px;
}

.mobile-modal-summary-text {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.mobile-custom-modal-box .form-label {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mobile-custom-modal-box textarea {
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    min-height: 118px;
    font-size: 14px;
    font-weight: 600;
    resize: none;
}

.mobile-custom-modal-box textarea:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mobile-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.mobile-btn-modal-approve,
.mobile-btn-modal-reject {
    border: none;
    border-radius: 16px;
    padding: 13px 8px;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.mobile-btn-modal-approve {
    background: #dcfce7;
    color: #166534;
}

.mobile-btn-modal-reject {
    background: #fee2e2;
    color: #991b1b;
}

/* Keep the recovered mobile routes edge-to-edge when the desktop shell is loaded. */
@media (max-width: 991.98px) {
    .app-main { margin-left: 0; }
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: translateX(0); }
}

/* Mobile clinical theme: clear actions, calm surfaces and pharmacy status colors. */
body.mobile-body { background:#f3f7f9; color:#122c3d; }
.mobile-shell { background:#f3f7f9; }
.mobile-topbar { background:rgba(255,255,255,.97); border-bottom-color:#dfe8ed; }
.mobile-title { color:#0b2538; font-family:'Plus Jakarta Sans','DM Sans',sans-serif; letter-spacing:-.03em; }
.mobile-subtitle { color:#6e8290; }
.mobile-card, .mobile-action { border-color:#dfe8ed; box-shadow:0 5px 18px rgba(11,37,56,.055); }
.mobile-card-title { color:#122c3d; }
.mobile-card-subtitle, .mobile-action-text, .mobile-list-text { color:#718592; }
.mobile-highlight { background:#0b2538; border:1px solid #16465d; box-shadow:0 12px 25px rgba(11,37,56,.15); }
.mobile-highlight-label, .mobile-highlight-text { color:#b7d0d5; }
.mobile-highlight-title { color:#fff; }
.mobile-date-arrow { background:#1a5368; border-color:#2f7080; color:#fff; }
.mobile-date-arrow:hover { background:#257b83; }
.mobile-date-weekday { color:#94c8c4; }
.mobile-action-icon { background:#e2f4ee; color:#117457; }
.mobile-bottom-nav { background:rgba(255,255,255,.98); border-top-color:#dfe8ed; box-shadow:0 -8px 24px rgba(11,37,56,.07); }
.mobile-bottom-link { color:#78909b; }
.mobile-bottom-link i { color:#78909b; }
.mobile-bottom-link.active, .mobile-bottom-link.active i { color:#159b78; }
.mobile-bottom-link:hover { color:#0f765d; }
.mobile-stats-row { gap:9px; }
.mobile-mini-stat { border-color:#dfe8ed; box-shadow:0 4px 14px rgba(11,37,56,.05); }
.mobile-mini-stat-value { color:#0b2538; }
.mobile-mini-stat-label { color:#748995; }
.mobile-apertura-cierre { background:#fff; }
.mobile-apertura-item.apertura { background:#e2f4ee; color:#117457; }
.mobile-apertura-item.cierre { background:#fff1df; color:#a45f14; }
.mobile-dimensionamiento-item.alta { background:#fbe6e4; border-color:#f0c9c5; color:#bd554c; }
.mobile-dimensionamiento-item.media { background:#fff1df; border-color:#f0d5ae; color:#a45f14; }
.mobile-dimensionamiento-item.baja { background:#e2f4ee; border-color:#c9e9dc; color:#117457; }
.mobile-btn-primary { background:#159b78; box-shadow:0 8px 18px rgba(21,155,120,.18); }
.mobile-btn-primary:hover { background:#0f765d; }
.mobile-btn-secondary { background:#edf4f6; color:#315f73; border-color:#d8e6eb; }
.mobile-solicitud-card { border-color:#dfe8ed; box-shadow:0 5px 18px rgba(11,37,56,.055); }
.mobile-solicitud-tipo { color:#18558f; background:#e9f3fb; }
.mobile-week-today { border-color:#159b78; box-shadow:0 0 0 3px rgba(21,155,120,.13); }
.mobile-gantt-header-cell { background:#e9f3fb; color:#285d78; }
.mobile-gantt-bar-1 { background:#159b78; }
.mobile-gantt-bar-2 { background:#246fba; }
.mobile-login-body { background:#eef5f6; }
.mobile-login-logo { background:#159b78; }
.mobile-login-panel { border-color:#dfe8ed; box-shadow:0 14px 30px rgba(11,37,56,.10); }
.mobile-btn-modal-approve { background:#def3e9; color:#117457; }
.mobile-btn-modal-reject { background:#fbe6e4; color:#bd554c; }
.mobile-today-turno { background:#246fba; }
.mobile-today-partido { background:#c27a20; }
.mobile-today-libre { background:#159b78; }
.mobile-today-vacaciones { background:#247c83; }
.mobile-today-baja { background:#bd554c; }
.mobile-today-permiso { background:#7656a6; }
.mobile-today-sindato { background:#516d7c; }
.mobile-today-cta-btn.primary { background:#159b78; color:#fff; border-color:transparent; }
.mobile-today-cta-btn.primary:hover { background:#0f765d; }
.mobile-login-shell { background:#eef5f6; }
