/* =====================================================
   Belle Milk Delivery System - Main Stylesheet
   Colors: #1B3D49 | #0797BA | #F9F9F9 | #FE8A73
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --dark:    #1B3D49;
    --brand:   #0797BA;
    --light:   #F9F9F9;
    --coral:   #FE8A73;
    --white:   #ffffff;
    --gray:    #6c7a89;
    --border:  #dee2e6;
    --success: #27ae60;
    --warning: #f39c12;
    --danger:  #e74c3c;
    --shadow:  0 4px 24px rgba(27,61,73,0.12);
    --radius:  12px;
    --sidebar-w: 260px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #eef3f6;
    color: var(--dark);
    font-size: 14px;
    min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ===== LOGIN PAGE ===== */
.login-body {
    background: linear-gradient(135deg, var(--dark) 0%, #0d2b35 50%, var(--brand) 100%);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    position: relative; overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(7,151,186,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(254,138,115,0.2) 0%, transparent 40%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

/* Floating milk drops */
.drops { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.drop {
    position: absolute;
    width: 8px; height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 50% 50% 50% 0 / 60% 60% 40% 40%;
    animation: floatDrop linear infinite;
}
.drop:nth-child(1)  { left:10%; animation-duration:12s; animation-delay:-2s; }
.drop:nth-child(2)  { left:25%; animation-duration:15s; animation-delay:-5s; width:12px; height:16px; }
.drop:nth-child(3)  { left:40%; animation-duration:10s; animation-delay:-8s; }
.drop:nth-child(4)  { left:60%; animation-duration:14s; animation-delay:-1s; width:6px; height:9px; }
.drop:nth-child(5)  { left:75%; animation-duration:11s; animation-delay:-6s; width:10px; height:14px; }
.drop:nth-child(6)  { left:88%; animation-duration:13s; animation-delay:-3s; }

@keyframes floatDrop {
    0%   { bottom: -20px; opacity: 0; transform: translateX(0) rotate(0deg); }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { bottom: 110%; opacity: 0; transform: translateX(20px) rotate(30deg); }
}

.login-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
    position: relative; z-index: 10;
    animation: cardSlideUp 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 100px; object-fit: contain; }
.login-title { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 800; color: var(--dark); text-align: center; margin-bottom: 4px; }
.login-sub   { text-align: center; color: var(--gray); font-size: 13px; margin-bottom: 28px; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--dark);
    height: 100vh;
    position: fixed; top: 0; left: 0;
    display: flex; flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.sidebar-logo img { height: 60px; object-fit: contain; }
.sidebar-tagline { color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-label { color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 12px 6px; }

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius);
    color: rgba(255,255,255,0.65);
    text-decoration: none; font-size: 13.5px; font-weight: 500;
    margin-bottom: 2px; transition: all 0.2s;
    position: relative;
}
.nav-item:hover { background: rgba(7,151,186,0.15); color: var(--white); }
.nav-item.active {
    background: linear-gradient(135deg, var(--brand), #0587a8);
    color: var(--white); font-weight: 600;
    box-shadow: 0 4px 15px rgba(7,151,186,0.4);
}
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%; background: var(--coral); border-radius: 0 3px 3px 0;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.sidebar-user {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 12px;
}
.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--coral));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: white;
    flex-shrink: 0;
}
.user-info .name { color: white; font-size: 13px; font-weight: 600; }
.user-info .role { color: rgba(255,255,255,0.4); font-size: 11px; text-transform: capitalize; }
.btn-logout {
    margin-left: auto;
    color: rgba(255,255,255,0.4); font-size: 16px;
    background: none; border: none; cursor: pointer;
    padding: 4px; transition: color 0.2s;
}
.btn-logout:hover { color: var(--coral); }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
    transition: margin-left 0.3s ease;
}

.topbar {
    background: white; padding: 16px 28px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--dark); }
.topbar-sub { color: var(--gray); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn-toggle-sidebar {
    display: none;
    background: none; border: none; font-size: 20px;
    color: var(--dark); cursor: pointer; padding: 4px;
}

.page-body { padding: 24px 28px; flex: 1; }

/* ===== STAT CARDS ===== */
.stat-card {
    background: white; border-radius: var(--radius);
    padding: 24px; position: relative; overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease both;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(27,61,73,0.18); }

.stat-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(20px, -20px);
}
.stat-card.blue::after  { background: var(--brand); }
.stat-card.coral::after { background: var(--coral); }
.stat-card.green::after { background: var(--success); }
.stat-card.orange::after{ background: var(--warning); }

.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.stat-icon.blue  { background: rgba(7,151,186,0.12); color: var(--brand); }
.stat-icon.coral { background: rgba(254,138,115,0.12); color: var(--coral); }
.stat-icon.green { background: rgba(39,174,96,0.12); color: var(--success); }
.stat-icon.orange{ background: rgba(243,156,18,0.12); color: var(--warning); }

.stat-value { font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 900; color: var(--dark); line-height: 1; }
.stat-label { color: var(--gray); font-size: 12px; margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 12px; margin-top: 8px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== CARDS ===== */
.card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.card-header {
    padding: 18px 24px; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: var(--dark); }
.card-body { padding: 24px; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    background: #f7fafc; color: var(--dark); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 12px 16px; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #f4f4f4; vertical-align: middle; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(7,151,186,0.04); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-active   { background: rgba(39,174,96,0.12);  color: #1a7a40; }
.badge-inactive { background: rgba(231,76,60,0.12);  color: #c0392b; }
.badge-paused   { background: rgba(243,156,18,0.12); color: #d35400; }
.badge-paid     { background: rgba(39,174,96,0.12);  color: #1a7a40; }
.badge-unpaid   { background: rgba(231,76,60,0.12);  color: #c0392b; }
.badge-partial  { background: rgba(243,156,18,0.12); color: #d35400; }
.badge-delivered{ background: rgba(7,151,186,0.12);  color: #0587a8; }
.badge-pending  { background: rgba(243,156,18,0.12); color: #d35400; }
.badge-missed   { background: rgba(231,76,60,0.12);  color: #c0392b; }
.badge-admin    { background: rgba(254,138,115,0.15); color: #d4604a; }
.badge-staff    { background: rgba(7,151,186,0.12);  color: var(--brand); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.2s; white-space: nowrap;
}
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 3px 10px rgba(7,151,186,0.35); }
.btn-primary:hover { background: #0587a8; transform: translateY(-1px); box-shadow: 0 5px 15px rgba(7,151,186,0.45); color: white; }
.btn-coral { background: var(--coral); color: white; box-shadow: 0 3px 10px rgba(254,138,115,0.35); }
.btn-coral:hover { background: #e8765f; transform: translateY(-1px); color: white; }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: #152e38; color: white; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--dark); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #219a52; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d68910; color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1ebe5d; color: white; }
.btn-excel { background: #217346; color: white; }
.btn-excel:hover { background: #195c38; color: white; }
.btn-icon { padding: 7px 9px; }
.btn-search{ padding: 13px 18px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.form-control {
    width: 100%; padding: 10px 14px; border: 2px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: 'Poppins', sans-serif;
    color: var(--dark); background: white;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,151,186,0.15); }
.form-control.is-invalid { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-group { display: flex; gap: 0; }
.input-group .form-control { border-radius: 8px 0 0 8px; flex: 1; }
.input-group .btn { border-radius: 0 8px 8px 0; }

/* ===== DAYS SELECTOR ===== */
.days-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.day-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid var(--border); background: white;
    font-size: 11px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; color: var(--gray);
}
.day-btn.selected { background: var(--brand); border-color: var(--brand); color: white; }
.day-btn:hover:not(.selected) { border-color: var(--brand); color: var(--brand); }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px; border-radius: 8px;
    font-size: 13.5px; margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 10px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
.alert-success { background: rgba(39,174,96,0.1); border-left: 3px solid var(--success); color: #1a7a40; }
.alert-danger   { background: rgba(231,76,60,0.1); border-left: 3px solid var(--danger);  color: #c0392b; }
.alert-warning  { background: rgba(243,156,18,0.1); border-left: 3px solid var(--warning); color: #d35400; }
.alert-info     { background: rgba(7,151,186,0.1); border-left: 3px solid var(--brand);   color: #0587a8; }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(27,61,73,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
    background: white; border-radius: 20px;
    width: 100%; max-width: 580px; max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: white; z-index: 1;
    border-radius: 20px 20px 0 0;
}
.modal-title { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); transition: color 0.2s; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; justify-content: flex-end; }

/* ===== SEARCH & FILTER ===== */
.search-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px; align-items: center;
}
.search-input { min-width: 220px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-link {
    padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 600;
    border: 2px solid var(--border); color: var(--dark); text-decoration: none;
    transition: all 0.2s; background: white;
}
.page-link:hover, .page-link.active { background: var(--brand); border-color: var(--brand); color: white; }
.page-link.disabled { opacity: 0.5; pointer-events: none; }

/* ===== BILL PRINT ===== */
.bill-preview {
    background: white; border-radius: var(--radius);
    padding: 40px; max-width: 680px; margin: 0 auto;
    box-shadow: var(--shadow);
}
.bill-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.bill-brand { display: flex; flex-direction: column; }
.bill-brand img { height: 70px; object-fit: contain; margin-bottom: 8px; }
.bill-info { text-align: right; }
.bill-title { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900; color: var(--dark); }
.bill-number { color: var(--brand); font-weight: 700; }
.bill-divider { height: 3px; background: linear-gradient(90deg, var(--brand), var(--coral)); border-radius: 2px; margin: 20px 0; }
.bill-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.bill-table th { background: var(--dark); color: white; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; }
.bill-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.bill-total { background: rgba(7,151,186,0.08); border-radius: 10px; padding: 16px 20px; margin-top: 20px; }
.bill-qr { text-align: center; margin: 24px 0; }
.bill-qr img { max-width: 160px; border: 2px solid var(--border); border-radius: 10px; padding: 8px; }

/* ===== DELIVERY CALENDAR ===== */
.delivery-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.delivery-day-header { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; padding: 6px; }
.delivery-day {
    min-height: 70px; border: 2px solid var(--border); border-radius: 8px;
    padding: 6px; font-size: 12px; background: white;
    transition: all 0.2s;
}
.delivery-day.has-delivery { border-color: var(--brand); background: rgba(7,151,186,0.05); }
.delivery-day.all-delivered { border-color: var(--success); background: rgba(39,174,96,0.06); }
.delivery-day.today { border-color: var(--coral); }
.delivery-day .day-num { font-weight: 700; color: var(--dark); }
.delivery-day .delivery-count { font-size: 11px; color: var(--brand); font-weight: 600; }

/* ===== QR CODE DISPLAY ===== */
.qr-display {
    text-align: center; padding: 30px;
    background: rgba(7,151,186,0.05); border-radius: var(--radius);
    border: 2px dashed var(--brand);
}
.qr-display img { max-width: 200px; border-radius: 10px; }

/* ===== PROGRESS BARS ===== */
.progress { height: 8px; background: #e8ecef; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.progress-bar.brand  { background: var(--brand); }
.progress-bar.coral  { background: var(--coral); }
.progress-bar.green  { background: var(--success); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Staggered animation delays */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }

/* ===== TOAST NOTIFICATION ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: white; border-radius: 12px; padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 12px; min-width: 280px;
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    border-left: 4px solid var(--brand);
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }

/* ===== UTILITY ===== */
.text-brand  { color: var(--brand) !important; }
.text-coral  { color: var(--coral) !important; }
.text-dark   { color: var(--dark) !important; }
.text-muted  { color: var(--gray) !important; }
.text-success{ color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning{ color: var(--warning) !important; }
.bg-dark-brand { background: var(--dark); color: white; }
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.font-nunito { font-family: 'Nunito', sans-serif; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.gap-2 { gap: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 56px; color: #d0dbe0; margin-bottom: 16px; }
.empty-state h3 { color: var(--dark); font-size: 18px; font-weight: 700; }
.empty-state p { color: var(--gray); font-size: 14px; margin-top: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root { --sidebar-w: 260px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999;
    }
    .sidebar.open ~ .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .btn-toggle-sidebar { display: block; }
    .page-body { padding: 16px; }
    .topbar { padding: 14px 16px; }
    .bill-preview { padding: 24px; }
    .bill-header { flex-direction: column; gap: 16px; }
    .bill-info { text-align: left; }
    .delivery-grid { grid-template-columns: repeat(7, 1fr); }
    .delivery-day { min-height: 50px; }
    .stat-value { font-size: 26px; }
    .modal-box { max-height: 95vh; }
}

@media (max-width: 480px) {
    .days-selector .day-btn { width: 36px; height: 36px; font-size: 10px; }
    .search-bar { flex-direction: column; }
    .search-input { min-width: 100%; }
    .topbar-title { font-size: 16px; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0; }
    .bill-preview { box-shadow: none; max-width: 100%; }
    body { background: white; }
    .page-body { padding: 0; }
}
