:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #64748b;
    --bg-main: #f8fafc;
    --bg-sidebar: #1e293b;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0 12px;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: #94a3b8;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: 70px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
}

.top-bar h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-badge {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.notification-badge .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.view-container {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* Generic Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-secondary { background-color: var(--bg-card); color: var(--text-color); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--border-color); }
.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }
.history-filter-btn { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.history-filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.history-filter-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card i {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 2rem;
    opacity: 0.1;
}

/* Tables View - Premium Card Design */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px;
    background: #fdfbf7; /* Light cream background */
    border-radius: 16px;
}

.table-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #fcd34d;
}

.table-card.occupied {
    border-color: #ef4444;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.table-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #f1f5f9;
    color: #64748b;
}

.table-card.free .table-icon-badge {
    background: #dcfce7;
    color: #166534;
}

.table-card.occupied .table-icon-badge {
    background: #ffedd5;
    color: #9a3412;
}

.table-card-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.table-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.free { background-color: #22c55e; }
.status-dot.occupied { background-color: #f97316; }

.table-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.bill-amount {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.time-elapsed {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.prod-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 16px;
    background: var(--bg-card, white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    gap: 8px;
}

.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.prod-emoji {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 4px;
}

.prod-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.3;
}

.prod-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: rgba(79,70,229,0.08);
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 4px;
}

.prod-card.has-portions {
    padding-bottom: 12px;
}

.prod-portions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
    width: 100%;
}

.portion-btn {
    background: var(--bg-card, white);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    color: var(--text-color);
    min-width: 60px;
    flex: 1;
}

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

.portion-btn small {
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.8;
}

.portion-btn:hover small {
    opacity: 1;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

.cat-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card, white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: var(--primary-color);
    background: rgba(79,70,229,0.04);
}

.cat-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(79,70,229,0.25);
}

.cat-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.cat-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.cat-count {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cat-tab.active .cat-count {
    background: rgba(255,255,255,0.2);
}

/* Orders Panel */
.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.order-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-mesa { background: #dbeafe; color: #1e40af; }
.badge-llevar { background: #fef3c7; color: #92400e; }
.badge-domicilio { background: #dcfce7; color: #166534; }

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-pendiente { background: var(--warning); }
.status-preparando { background: var(--primary-color); }
.status-listo { background: var(--success); }
.status-entregado { background: var(--secondary-color); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 92vh;
    background: var(--bg-main);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.modal-header {
    padding: 24px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow: hidden;
}

.order-modal-grid {
    display: grid;
    grid-template-columns: auto 1fr 300px;
    gap: 16px;
    height: 100%;
}

/* Left column - customer info + products */
.order-left-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    min-height: 0;
}

.order-left-section .customer-info {
    flex-shrink: 0;
}

.order-left-section .product-grid {
    flex: 1;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
}

/* Center column - vertical categories */
.order-categories-section {
    width: 180px;
    flex-shrink: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.order-categories-section::-webkit-scrollbar {
    width: 4px;
}

.order-categories-section::-webkit-scrollbar-track {
    background: transparent;
}

.order-categories-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 70px;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cat-btn:hover {
    border-color: var(--primary-color);
    background: rgba(79,70,229,0.04);
}

.cat-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.cat-btn .cat-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.cat-btn .cat-name {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.cat-btn .cat-count {
    display: none;
}

.cat-btn.active .cat-count {
    background: rgba(255,255,255,0.2);
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.info-group input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    transition: background 0.2s;
}

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

.search-item:hover {
    background-color: #f1f5f9;
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: var(--transition);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.order-summary-section {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    min-height: 0;
}

.order-summary-section h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.order-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    min-height: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-details {
    display: flex;
    flex-direction: column;
}

.order-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 600;
}

.order-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.grand-total {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Tables View Specifics */
.table-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

/* Table Mockups */
.table-item {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.table-item:hover {
    transform: scale(1.05);
}

.table-item.free { border-color: var(--success); }
.table-item.occupied { border-color: var(--danger); }
.table-item.reserved { border-color: var(--warning); }

.table-item i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* History Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Routes View Modern Design */
.routes-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.unassigned-pool {
    width: 350px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.routes-right-content {
    flex: 1;
    min-width: 0;
}

.routes-page-header {
    margin-bottom: 24px;
}

.routes-page-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.route-column {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, border-color 0.2s;
}

.route-column.drag-over {
    background-color: #e2e8f0;
    border-color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(79, 70, 229, 0.1);
}

.route-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.route-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
}

.route-title-group i {
    font-size: 1rem;
}

.route-title-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.route-badge {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.route-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.route-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.route-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-id {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-customer {
    font-size: 0.85rem;
    font-weight: 600;
}

.item-address {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-icon-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-icon-remove:hover {
    color: var(--danger);
}

.check-done {
    color: var(--success);
    font-size: 0.9rem;
}

.item-completed {
    background: #f8fafc;
    opacity: 0.7;
    border-left: 3px solid var(--success);
}

.route-column-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.footer-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.footer-total {
    font-size: 1rem;
    color: var(--text-main);
}

/* Pool Section */
.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-main);
    padding-bottom: 12px;
}

.pool-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.pool-count {
    background: var(--warning);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.pool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.pool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pool-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.pool-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pool-item-id {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.pool-item-details {
    display: flex;
    flex-direction: column;
}

.pool-customer {
    font-weight: 600;
    font-size: 0.9rem;
}

.pool-address {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modern-route-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.modern-route-select:focus {
    border-color: var(--primary-color);
}

.empty-route-msg, .empty-pool-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
    font-style: italic;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.detail-row strong {
    color: var(--secondary-color);
}

.status-pill-detail {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e2e8f0;
}

.status-pill-detail.pendiente { background: var(--warning); color: white; }
.status-pill-detail.preparando { background: var(--primary-color); color: white; }
.status-pill-detail.listo { background: var(--success); color: white; }
.status-pill-detail.entregado { background: var(--secondary-color); color: white; }

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

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

.history-table th {
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .sidebar-header span, .sidebar-nav span, .user-info { display: none; }
    .logo { justify-content: center; }
    .logo span { display: none; }
    .nav-item { justify-content: center; padding: 12px; }
    .order-modal-grid { grid-template-columns: 1fr; }
    .order-summary-section { position: sticky; bottom: 0; }
}
