:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-bg: #eff6ff;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --purple: #7c3aed;
    --purple-bg: #ede9fe;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); }

h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 16px; color: var(--text); }
h2 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 12px; color: var(--text); }

/* ===== Layout con sidebar (desktop) + bottom nav (mobile) ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: 230px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.sidebar-brand img {
    max-width: 175px;
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-nav { 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
    flex: 1; 
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6.5px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1.35;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--text); }
.sidebar-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-left-color: var(--primary);
    font-weight: 700;
}

/* ===== Iconos Monocromáticos Inline (SVG) ===== */
.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    line-height: 1;
}
.sidebar-nav a .inline-icon {
    width: 18px;
    height: 18px;
}
.bottom-nav .inline-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}
.btn .inline-icon, .btn-small .inline-icon {
    margin-right: 6px;
    vertical-align: -0.18em;
}
.btn-icon .inline-icon {
    margin: 0;
}
.badge .inline-icon {
    margin-right: 4px;
    vertical-align: -0.12em;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--surface);
}
.sidebar-footer .user-name { font-weight: 700; display: block; margin-bottom: 4px; color: var(--text); }

.main-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 24px 20px 100px; 
}

/* Topbar móvil (sticky) */
.mobile-topbar {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    font-weight: 800;
    color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 99999;
    backdrop-filter: blur(8px);
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 99999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}
.bottom-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    padding: 6px 2px;
    border-radius: 8px;
    transition: color 0.15s, transform 0.1s;
}
.bottom-nav a.active { color: var(--primary); font-weight: 800; }
.bottom-nav a:active { transform: scale(0.95); }
.bottom-nav .icon { font-size: 1.25rem; line-height: 1; }

.bottom-nav-btn {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    padding: 6px 2px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, transform 0.1s;
    touch-action: manipulation;
}
.bottom-nav-btn.active {
    color: var(--primary);
    font-weight: 800;
}
.bottom-nav-btn:active {
    transform: scale(0.95);
}

.bottom-nav-dropdown-wrap {
    position: relative;
    display: flex;
    flex: 1;
}

.mobile-mas-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 4px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 100000;
    overflow: hidden;
    padding: 6px 0;
    animation: fadeInDropdown 0.18s ease-out;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-mas-dropdown a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    font-size: 0.88rem !important;
    text-align: left !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid var(--border);
}
.mobile-mas-dropdown a:last-child {
    border-bottom: none !important;
}
.mobile-mas-dropdown a:hover {
    background: var(--bg) !important;
}
.mobile-mas-dropdown a.active {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    border-left-color: var(--primary) !important;
}

@media (max-width: 780px) {
    .sidebar { display: none !important; }
    .mobile-topbar { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
    .bottom-nav { display: flex !important; }
    .container { padding: 16px 14px 100px; }
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1rem; margin: 20px 0 10px; }
}

/* ===== Login ===== */
.login-body {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}

.login-box {
    background: var(--surface);
    padding: 36px 28px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    box-sizing: border-box;
}

.login-box h1 { text-align: center; color: var(--primary); margin-bottom: 4px; }
.login-box .subtitle { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 22px; }
.login-box form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ===== Formularios Mobile-First ===== */
.form { display: flex; flex-direction: column; max-width: 520px; width: 100%; }
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 680px; }
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; gap: 10px; }
}

.form label, 
.login-box label, 
.form-grid label,
.form-group label {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.form input, .form select, .form textarea,
.login-box input, .form-grid input, .form-grid select, .form-grid textarea,
.form-group input, .form-group select, .form-group textarea {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px; /* Evita zoom automático en iOS */
    background: var(--surface);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px; /* Tamaño táctil mínimo */
}
.form input:focus, .form select:focus, .form textarea:focus,
.login-box input:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px 16px;
    margin: 16px 0 8px;
}
legend { font-weight: 700; padding: 0 6px; font-size: 0.88rem; color: var(--text); }

.btn, button[type="submit"] {
    margin-top: 16px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-height: 42px;
    transition: background 0.15s, transform 0.05s;
    touch-action: manipulation;
    box-sizing: border-box;
}
.btn:hover, button[type="submit"]:hover { background: var(--primary-dark); }
.btn:active, button[type="submit"]:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger,
.btn-outline-danger { 
    background: var(--surface) !important; 
    color: var(--danger) !important; 
    border: 1px solid var(--danger) !important; 
}
.btn-danger:hover,
.btn-outline-danger:hover { 
    background: #fef2f2 !important; 
    border-color: #b91c1c !important; 
    color: #b91c1c !important; 
}
.btn-small { padding: 6px 12px; font-size: 0.82rem; border-radius: 6px; margin-top: 0; min-height: 32px; }
.btn-block, 
button[type="submit"].btn-block, 
button.btn-block, 
.btn.btn-block { 
    width: 100% !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}
.btn-icon:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.btn-icon-danger {
    color: var(--danger);
    border-color: #fca5a5;
}
.btn-icon-danger:hover {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-icon-success {
    color: var(--success);
    border-color: #86efac;
}
.btn-icon-success:hover {
    background: #ecfdf5;
    border-color: var(--success);
    color: var(--success);
}

.inline-form { display: inline; }

/* ===== Header con acción ===== */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 640px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-row > div:last-child {
        width: 100%;
    }
    .header-row > div:last-child > .btn:only-child {
        width: 100%;
    }
    .header-row > div:last-child.header-actions-row,
    .header-actions-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    .header-row > div:last-child.header-actions-row .btn,
    .header-actions-row .btn {
        flex: 1 1 0% !important;
        width: 50% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.82rem !important;
        padding: 10px 6px !important;
        white-space: nowrap !important;
    }
}

/* ===== Acciones de Clientes con Buscador Móvil Integrado ===== */
.header-clientes-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-clientes-actions .btn,
.header-clientes-actions .btn-nuevo-cliente,
.btn-nuevo-cliente {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.mobile-search-wrap {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
}

.mobile-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 2 !important;
}

.mobile-search-input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    padding: 0 32px 0 36px !important;
    font-size: 0.88rem !important;
    line-height: 42px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    display: block !important;
}

.mobile-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.mobile-search-clear {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    display: none;
    padding: 4px 6px !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    z-index: 2 !important;
}

.mobile-search-clear:hover {
    color: var(--text) !important;
}

@media (max-width: 640px) {
    .header-clientes-actions {
        width: 100% !important;
        margin-top: 8px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

/* ===== Tabs de filtro (estados) ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    touch-action: manipulation;
}
.tabs a.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Tablas Mobile-First y Responsivas ===== */
.tabla-wrap { 
    background: var(--surface); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.tabla { 
    width: 100% !important; 
    border-collapse: collapse; 
    table-layout: auto;
}

.tabla th, .tabla td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
    vertical-align: middle;
    box-sizing: border-box;
}

.tabla th,
.tabla thead th,
table.dataTable thead th,
table.dataTable thead td {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
}

table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    clear: both;
    border-collapse: collapse;
}

.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

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

.tabla tr:last-child td { border-bottom: none; }
.tabla td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Custom scrollbar para tablas en móvil/desktop */
.tabla-wrap::-webkit-scrollbar {
    height: 6px;
}
.tabla-wrap::-webkit-scrollbar-track {
    background: var(--bg);
}
.tabla-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ===== Cards de stats ===== */
.cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 12px; 
    margin-bottom: 16px; 
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 360px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-number { font-size: 1.45rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.card-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.card.accent .card-number { color: var(--primary); }
.card.accent-green .card-number { color: var(--success); }
.card.accent-purple .card-number { color: var(--purple); }

/* ===== Badges de estado ===== */
.badge { 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.74rem; 
    font-weight: 700; 
    display: inline-block; 
    white-space: nowrap;
}
.badge-pendiente { background: var(--warning-bg); color: var(--warning); }
.badge-tomado { background: #dbeafe; color: #1d4ed8; }
.badge-en_curso { background: #dbeafe; color: #1d4ed8; }
.badge-entregado { background: var(--success-bg); color: var(--success); }
.badge-cancelado { background: var(--danger-bg); color: var(--danger); }
.badge-no_entregado, .badge-fallido { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-en_deposito { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-programado { background: var(--purple-bg); color: var(--purple); }

/* ===== Alertas ===== */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.88rem; }
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.hint { color: var(--text-muted); font-size: 0.82rem; }

/* ===== Envío card (mobile-friendly, usado en listas de repartidor/cliente) ===== */
.envio-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.envio-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.envio-card-id { font-weight: 700; color: var(--text-muted); font-size: 0.82rem; }
.envio-card-ganancia { font-size: 1.15rem; font-weight: 800; color: var(--success); }
.envio-card-direccion { font-size: 0.88rem; margin: 4px 0; display: flex; gap: 8px; }
.envio-card-direccion .tag { font-weight: 700; font-size: 0.72rem; color: var(--text-muted); min-width: 60px; }
.envio-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.envio-card-actions .btn { flex: 1; min-width: 120px; }

/* Fila organizada de destinatario y WhatsApp */
.envio-card-destinatario-wrap {
    margin: 4px 0 8px;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
}
.envio-destinatario-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.envio-destinatario-nombre {
    font-weight: 700;
    color: var(--text);
}
.envio-destinatario-sep {
    color: var(--text-muted);
}
.envio-destinatario-tel {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-whatsapp-repartidor {
    background: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 10px;
    font-size: 0.76rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #1eb754;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.15s ease;
}
.btn-whatsapp-repartidor:hover {
    background: #20ba59;
    color: #ffffff !important;
}

/* Fila horizontal de acciones de repartidor */
.envio-card-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: stretch;
    width: 100%;
}
.btn-action-rep {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-align: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.btn-action-iniciar {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}
.btn-action-iniciar:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}
.btn-action-entregado {
    background: #16a34a;
    border: 1px solid #15803d;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.2);
}
.btn-action-entregado:hover {
    background: #15803d;
    color: #ffffff !important;
}
.btn-action-recoger {
    background: #0284c7;
    border: 1px solid #0369a1;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2);
}
.btn-action-recoger:hover {
    background: #0369a1;
    color: #ffffff !important;
}
.btn-action-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626 !important;
}
.btn-action-error:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c !important;
}

/* Botón moderno y llamativo "Tomar pedido" */
.btn-tomar-pedido-modern {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-tomar-pedido-modern:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.btn-tomar-pedido-modern:active {
    transform: translateY(0);
}

/* Punto de color para recogida/entrega */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-recogida { background: var(--warning); }
.dot-entrega { background: var(--success); }

/* ===== Personalización DataTables Mobile-First ===== */
.dataTables_wrapper {
    padding: 12px 14px 16px;
    font-size: 0.88rem;
    color: var(--text);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.88rem;
    cursor: pointer;
    margin: 0 4px;
    min-height: 38px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.88rem;
    margin-left: 8px;
    min-width: 180px;
    min-height: 38px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin: 0 2px !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.45 !important;
    cursor: default !important;
    background: var(--surface) !important;
    color: var(--text-muted) !important;
}

/* ===== Utilidades Responsivas y Tarjetas Móviles ===== */
@media (min-width: 781px) {
    .hide-desktop,
    .mobile-only,
    .mobile-cards-list,
    div.hide-desktop,
    section.hide-desktop {
        display: none !important;
    }

    .hide-mobile,
    .desktop-only,
    div.hide-mobile,
    section.hide-mobile,
    p.hide-mobile,
    a.hide-mobile,
    button.hide-mobile,
    span.hide-mobile,
    tr.hide-mobile,
    th.hide-mobile,
    td.hide-mobile,
    .tabla-wrap.hide-mobile {
        display: block !important;
    }

    .tabla th, .tabla td {
        padding: 9px 8px;
    }
}

.mobile-cards-list,
.mobile-cards,
#contenedor-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.envio-card,
.envio-card-mobile,
.mobile-row-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 7px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.envio-card:last-child,
.envio-card-mobile:last-child,
.mobile-row-card:last-child {
    margin-bottom: 0;
}

.envio-card:hover,
.envio-card-mobile:hover,
.mobile-row-card:hover {
    box-shadow: var(--shadow-md);
}

.mobile-row-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg);
}

.mobile-row-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.mobile-row-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
}

.mobile-row-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mobile-row-card-item.stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-row-card-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-row-card-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.mobile-row-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.mobile-row-card-actions .btn,
.mobile-row-card-actions .btn-small {
    flex: 1;
    min-width: 100px;
    text-align: center;
    justify-content: center;
    margin: 0;
}

.mobile-row-card-actions .btn-icon {
    width: 38px;
    height: 38px;
}
.mobile-filter-bar {
    display: none;
}

@media (max-width: 780px) {
    .hide-mobile,
    .desktop-only,
    div.hide-mobile,
    section.hide-mobile,
    p.hide-mobile,
    a.hide-mobile,
    button.hide-mobile,
    span.hide-mobile,
    tr.hide-mobile,
    th.hide-mobile,
    td.hide-mobile,
    .tabla-wrap.hide-mobile {
        display: none !important;
    }

    .hide-desktop,
    .mobile-only,
    div.hide-desktop,
    section.hide-desktop {
        display: block !important;
    }

    .mobile-filter-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 14px !important;
    }

    .mobile-cards-list.hide-desktop,
    .mobile-cards-list.mobile-only,
    .mobile-cards-list,
    .mobile-cards.hide-desktop,
    .mobile-cards.mobile-only,
    .mobile-cards,
    #contenedor-cards-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
    }
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .dataTables_wrapper .dataTables_info {
        float: none !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
}

/* ===== Modal de Confirmación Global ===== */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    padding: 16px;
    box-sizing: border-box;
}

@keyframes fadeInModalBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-dialog {
    background: var(--surface);
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 26px 24px 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    animation: popModalDialog 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popModalDialog {
    from { transform: scale(0.92) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.custom-modal-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 14px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    flex-shrink: 0;
}

.custom-modal-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.custom-modal-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
    word-break: break-word;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.custom-modal-actions .btn {
    flex: 1;
    min-height: 42px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0;
}

.btn-success-solid {
    background: var(--success) !important;
    color: white !important;
    border: none !important;
}
.btn-success-solid:hover {
    background: #15803d !important;
}

.btn-danger-solid {
    background: var(--danger) !important;
    color: white !important;
    border: none !important;
}
.btn-danger-solid:hover {
    background: #dc2626 !important;
}

.btn-warning-solid {
    background: #d97706 !important;
    color: white !important;
    border: none !important;
}
.btn-warning-solid:hover {
    background: #b45309 !important;
}

.btn-geo-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .perfil-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .btn-geo-text {
        display: none !important;
    }
    .btn-geo-action {
        padding: 0 10px !important;
        min-width: 38px !important;
        height: 38px !important;
        gap: 0 !important;
    }
}

/* =========================================================
   Sistema de Notificaciones Momentáneas (EFESE)
   ========================================================= */

/* Contenedor flotante de Toasts */
.toast-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 370px;
    width: calc(100vw - 32px);
}

@media (max-width: 768px) {
    .toast-notifications-container {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* Tarjeta de notificación momentánea (no invasiva) */
.toast-alert-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.14), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.25s ease, box-shadow 0.2s ease;
    animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.toast-alert-card.type-entregado {
    border-left-color: #16a34a;
}

.toast-alert-card.type-recogido {
    border-left-color: #7c3aed;
}

.toast-alert-card.type-fallido {
    border-left-color: #dc2626;
}

.toast-alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.18);
}

.toast-alert-card.toast-fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: #f1f5f9;
}

.toast-alert-card.type-entregado .toast-card-icon {
    background: #f0fdf4;
}

.toast-alert-card.type-recogido .toast-card-icon {
    background: #faf5ff;
}

.toast-card-body {
    flex: 1;
    min-width: 0;
}

.toast-card-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.toast-card-msg {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
    word-break: break-word;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.toast-close-btn:hover {
    color: #334155;
}

/* Banner sutil para solicitar permiso móvil (discreto) */
.mobile-push-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999998;
    max-width: 460px;
    width: calc(100vw - 28px);
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 768px) {
    .mobile-push-prompt {
        bottom: 74px; /* Encima de la barra inferior de navegación */
    }
}

.push-prompt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.push-prompt-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.push-prompt-info strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
}

.push-prompt-info span {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.25;
}

.push-prompt-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-push-enable {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-push-enable:hover {
    background: #1d4ed8;
}

.btn-push-dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.btn-push-dismiss:hover {
    color: #f1f5f9;
}

/* Iconos de Mapa y Badges Numéricos de Alto Contraste */
.custom-map-icon {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}
.custom-map-icon-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 5.5px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.35);
    line-height: 1.2;
    z-index: 999 !important;
    min-width: 14px;
    text-align: center;
    pointer-events: none;
}



/* Estilos de submenú desplegable en Sidebar y Dropdown Móvil */
.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6.5px 18px;
    border-radius: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
}
.sidebar-dropdown-toggle:hover {
    color: var(--text);
    background: var(--surface-hover, #f1f5f9);
}
.sidebar-dropdown-toggle.active {
    color: var(--primary);
    background: var(--primary-bg, #eff6ff);
    font-weight: 600;
}
.mobile-mas-dropdown.show {
    display: block !important;
}

/* ==========================================================================
   APP PAGINATION - ESTILOS MINIMALISTAS Y COMPACTOS
   ========================================================================== */
.app-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 2px;
    margin-top: 8px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.app-pagination-info {
    font-size: 0.78rem;
    color: var(--muted, #64748b);
    font-weight: 500;
}

.app-pagination-info strong {
    color: var(--text, #1e293b);
    font-weight: 700;
}

.app-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.app-pagination-pages {
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text, #334155);
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    line-height: 1;
    text-decoration: none !important;
}

.app-page-btn:hover:not(:disabled):not(.active):not(.dots) {
    background: #f1f5f9;
    color: var(--primary, #2563eb);
    border-color: #cbd5e1;
}

.app-page-btn.active {
    background: var(--primary, #2563eb);
    color: #ffffff !important;
    border-color: var(--primary, #2563eb);
    font-weight: 700;
    cursor: default;
}

.app-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.app-page-btn.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--muted, #94a3b8);
    min-width: 16px;
    padding: 0;
}

.app-page-prev,
.app-page-next {
    font-weight: 600;
    padding: 0 8px;
    font-size: 0.74rem;
}

.app-pagination-size-wrap {
    display: flex;
    align-items: center;
}

.app-page-size-select {
    height: 28px;
    padding: 2px 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text, #334155);
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.app-page-size-select:focus {
    border-color: var(--primary, #2563eb);
}

/* Responsivo Móvil - Minimalista en una sola línea */
@media (max-width: 768px) {
    .app-pagination-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 2px;
        margin-top: 6px;
        gap: 4px;
    }

    .app-pagination-info {
        font-size: 0.74rem;
    }

    .app-pagination-controls {
        gap: 4px;
    }

    .app-pagination-pages {
        gap: 2px;
    }

    .app-page-btn {
        min-width: 26px;
        height: 26px;
        padding: 0 4px;
        font-size: 0.72rem;
    }

    .app-page-prev,
    .app-page-next {
        padding: 0 5px;
    }

    .app-page-size-select {
        height: 26px;
        font-size: 0.72rem;
        padding: 1px 4px;
    }
}
/* ===== Mobile M�s Dropdown Fixes ===== */
.bottom-nav .mobile-mas-dropdown-panel {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    right: 4px;
    width: 250px;
    max-width: calc(100vw - 20px);
    max-height: 72vh;
    overflow-y: auto;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
    padding: 8px !important;
    z-index: 999999 !important;
    -webkit-overflow-scrolling: touch;
}
.bottom-nav .mobile-mas-dropdown-panel.show {
    display: block !important;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    color: #334155 !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    margin-bottom: 2px !important;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-item:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-item.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}
.bottom-nav .mobile-mas-dropdown-panel .mobile-mas-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 4px;
}
.bottom-nav .mobile-mas-dropdown-panel .mobile-ajustes-submenu {
    padding: 4px 0 4px 8px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 4px 0 6px 0;
    border-left: 2px solid #cbd5e1;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-subitem {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    font-size: 0.84rem !important;
    padding: 7px 12px !important;
    border-radius: 6px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-subitem:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}
.bottom-nav .mobile-mas-dropdown-panel a.mobile-mas-subitem.active {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}