/* ═══════════════════════════════════════════════════════════════
   SCHOOL CANTEEN — FULLY RESPONSIVE STYLES
   Cross-browser: Chrome, Firefox, Safari, Edge, Samsung Internet
   Breakpoints: Desktop >1024 | Tablet 641–1024 | Mobile ≤640 | Tiny ≤380
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    color: #333;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; }
a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
input, select, textarea {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
    background: -webkit-linear-gradient(315deg, #2c3e50 0%, #35424a 100%);
    background: linear-gradient(135deg, #2c3e50 0%, #35424a 100%);
    color: #fff;
    padding: 0;
    min-height: 65px;
    border-bottom: 3px solid #e8491d;
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 20px;
    height: 65px;
    -webkit-box-flex: unset;
    -ms-flex: unset;
    flex: unset;
    position: relative;
}
header #branding h1 { font-size: 1.5rem; letter-spacing: 0.5px; white-space: nowrap; }
header #branding h1 .highlight { color: #e8491d; }
header nav { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
header nav ul { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 4px; }
header nav ul li a { color: #ccc; text-decoration: none; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 14px; border-radius: 5px; -webkit-transition: background 0.2s, color 0.2s; transition: background 0.2s, color 0.2s; display: block; white-space: nowrap; }
header nav ul li a:hover { background: rgba(255,255,255,0.12); color: #fff; }
header nav ul li a.current-tab { background: #e8491d; color: #fff !important; font-weight: 700; }

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
    z-index: 1100;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; -webkit-transition: -webkit-transform 0.3s, opacity 0.3s; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { -webkit-transform: translateY(7.5px) rotate(45deg); transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; -webkit-transform: scaleX(0); transform: scaleX(0); }
.hamburger.open span:nth-child(3) { -webkit-transform: translateY(-7.5px) rotate(-45deg); transform: translateY(-7.5px) rotate(-45deg); }

/* ── Nav Avatar (desktop) ──────────────────────────────────── */
.nav-avatar-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: relative; }
.nav-avatar-btn { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: none; border-radius: 24px; padding: 4px 12px 4px 4px; cursor: pointer; color: #fff; font-size: .87rem; font-weight: 600; text-decoration: none; -webkit-transition: background .18s; transition: background .18s; white-space: nowrap; min-height: 40px; }
.nav-avatar-btn:hover { background: rgba(255,255,255,.22); }
.nav-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); -ms-flex-negative: 0; flex-shrink: 0; }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; -webkit-box-shadow: 0 8px 32px rgba(0,0,0,.15); box-shadow: 0 8px 32px rgba(0,0,0,.15); min-width: 180px; z-index: 9999; overflow: hidden; border: 1px solid #f0f0f0; }
.nav-dropdown a { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 12px 16px; color: #333; text-decoration: none; font-size: .88rem; font-weight: 500; -webkit-transition: background .15s; transition: background .15s; min-height: 44px; }
.nav-dropdown a:hover { background: #fff4f1; color: #e8491d; }
.nav-dropdown .dd-divider { height: 1px; background: #f0f0f0; margin: 3px 0; }
.nav-dropdown .dd-logout { color: #dc3545 !important; font-weight: 600 !important; }
.nav-dropdown .dd-logout:hover { background: #fff0f0 !important; }
.nav-avatar-wrap.open .nav-dropdown { display: block; }

/* ── Container ─────────────────────────────────────────────── */
.container { width: 92%; max-width: 1200px; margin: 0 auto; padding: 0 16px; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrap { padding: 24px 0 40px; }

/* ── Section header ─────────────────────────────────────────── */
.section-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.section-header h2, .section-header h3 { color: #2c3e50; }

/* ── Welcome banner ─────────────────────────────────────────── */
.welcome-banner { background: -webkit-linear-gradient(315deg, #2c3e50, #35424a); background: linear-gradient(135deg, #2c3e50, #35424a); color: #fff; border-radius: 14px; padding: 24px 28px; margin-bottom: 24px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 18px; -webkit-box-shadow: 0 4px 20px rgba(0,0,0,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.welcome-banner-inner { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 16px; }
.welcome-banner-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); -ms-flex-negative: 0; flex-shrink: 0; -webkit-transition: border-color .2s; transition: border-color .2s; }
.welcome-banner-avatar:hover { border-color: #e8491d; }
.welcome-banner h2 { font-size: 1.4rem; margin-bottom: 4px; }
.welcome-banner p  { margin: 0; color: #aaa; font-size: 0.9rem; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-cards-row { display: -ms-grid; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: -webkit-linear-gradient(315deg, #2c3e50, #35424a); background: linear-gradient(135deg, #2c3e50, #35424a); color: #fff; border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer; -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.15); box-shadow: 0 4px 15px rgba(0,0,0,0.15); -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s; transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { -webkit-transform: translateY(-3px); transform: translateY(-3px); -webkit-box-shadow: 0 8px 25px rgba(0,0,0,0.2); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.stat-card .stat-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #aaa; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: #e8491d; line-height: 1.1; }

/* ── Action cards ───────────────────────────────────────────── */
.card-container { display: -ms-grid; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card { background: #fff; border-radius: 12px; padding: 22px 18px; text-align: center; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.07); box-shadow: 0 2px 12px rgba(0,0,0,0.07); -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s; transition: transform 0.2s, box-shadow 0.2s; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; }
.card:hover { -webkit-transform: translateY(-3px); transform: translateY(-3px); -webkit-box-shadow: 0 6px 20px rgba(0,0,0,0.12); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card .card-icon { font-size: 2.2rem; }
.card h3 { color: #2c3e50; font-size: 1rem; margin: 4px 0; }
.card p  { color: #777; font-size: 0.87rem; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; margin: 0; }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.card .price { font-weight: 700; color: #e8491d; font-size: 1.1rem; }

/* ── Food menu card ─────────────────────────────────────────── */
.food-card { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.food-card .food-meta { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; gap: 4px; padding-top: 8px; }
.food-card .food-vendor { font-size: 0.78rem; color: #999; }
.food-card .food-name  { font-size: 0.95rem; font-weight: 700; color: #2c3e50; }
.food-card .food-price { font-size: 1.05rem; font-weight: 800; color: #e8491d; }
.food-card .food-stock { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; }
.food-card .food-stock.in-stock { background: #d1e7dd; color: #0a3622; }
.food-card .food-stock.out-stock { background: #f8d7da; color: #842029; }
.food-card .qty-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; margin: 8px 0 4px; }
.food-card .qty-label { font-size: 0.78rem; font-weight: 600; color: #555; white-space: nowrap; }
.qty-stepper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 1.5px solid #ddd; border-radius: 6px; overflow: hidden; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.qty-stepper button { padding: 5px 12px; background: #f5f5f5; border: none; font-size: 1rem; cursor: pointer; font-weight: 700; color: #555; -webkit-transition: background .15s; transition: background .15s; min-height: 36px; min-width: 36px; }
.qty-stepper button:hover { background: #e8e8e8; }
.qty-stepper input { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; padding: 5px 4px; font-size: 0.9rem; background: #fff; outline: none; min-width: 0; border-radius: 0; -webkit-appearance: none; appearance: none; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps-section { background: #fff; border-radius: 12px; padding: 22px 24px; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 24px; }
.steps-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; color: #888; margin-bottom: 16px; font-weight: 700; }
.steps-grid { display: -ms-grid; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.step-item { text-align: center; padding: 14px 10px; background: #f8f9fa; border-radius: 10px; }
.step-item .step-icon { font-size: 1.8rem; margin-bottom: 8px; }
.step-item .step-title { font-weight: 700; color: #2c3e50; font-size: 0.82rem; margin-bottom: 4px; }
.step-item .step-desc  { color: #888; font-size: 0.75rem; line-height: 1.4; }

/* ── Panel ──────────────────────────────────────────────────── */
.panel { background: #fff; border-radius: 12px; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 22px 24px; margin-bottom: 20px; }
.panel-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #888; margin-bottom: 14px; display: block; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 6px;
    background: #e8491d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    -webkit-transition: background 0.2s, -webkit-transform 0.1s, -webkit-box-shadow 0.2s;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    -webkit-box-shadow: 0 2px 6px rgba(232,73,29,0.3);
    box-shadow: 0 2px 6px rgba(232,73,29,0.3);
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
}
.btn:hover { background: #c73a10; -webkit-box-shadow: 0 4px 12px rgba(232,73,29,0.4); box-shadow: 0 4px 12px rgba(232,73,29,0.4); -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.btn:active { -webkit-transform: translateY(0); transform: translateY(0); }
.btn-sm   { padding: 7px 14px; font-size: 0.8rem; min-height: 36px; }
.btn-gray { background: #6c757d; -webkit-box-shadow: 0 2px 6px rgba(108,117,125,0.3); box-shadow: 0 2px 6px rgba(108,117,125,0.3); }
.btn-gray:hover { background: #545b62; }
.btn-dark { background: #2c3e50; -webkit-box-shadow: 0 2px 6px rgba(44,62,80,0.3); box-shadow: 0 2px 6px rgba(44,62,80,0.3); }
.btn-dark:hover { background: #1a252f; }
.btn-full { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-container { background: #fff; padding: 30px 35px; margin: 24px auto; border-radius: 12px; -webkit-box-shadow: 0 4px 20px rgba(0,0,0,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-top: 4px solid #e8491d; max-width: 700px; width: 100%; }
.form-container h2 { color: #2c3e50; font-size: 1.35rem; margin-bottom: 6px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #444; font-size: 0.88rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    color: #333;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    border-radius: 8px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #e8491d; -webkit-box-shadow: 0 0 0 3px rgba(232,73,29,0.1); box-shadow: 0 0 0 3px rgba(232,73,29,0.1); background: #fff; }
.form-grid-2 { display: -ms-grid; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { padding: 13px 18px; margin-bottom: 18px; border: 1px solid transparent; border-radius: 8px; font-size: 0.9rem; font-weight: 500; }
.alert-success { color: #1a6e2e; background: #d4edda; border-color: #b8dfc6; }
.alert-danger  { color: #842029; background: #f8d7da; border-color: #f1aeb5; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
.table-responsive table { border-radius: 0; -webkit-box-shadow: none; box-shadow: none; }
table th { background: -webkit-linear-gradient(315deg, #2c3e50, #35424a); background: linear-gradient(135deg, #2c3e50, #35424a); color: #fff; padding: 13px 15px; text-align: left; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
table td { padding: 12px 15px; border-bottom: 1px solid #f0f0f0; color: #444; font-size: 0.9rem; vertical-align: middle; }
table tbody tr:hover { background: #fafbff; }
table tbody tr:last-child td { border-bottom: none; }

/* ── Status badges ──────────────────────────────────────────── */
.badge { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-ready    { background: #cff4fc; color: #055160; }
.badge-done     { background: #d1e7dd; color: #0a3622; }
.badge-rejected { background: #f8d7da; color: #842029; }
.badge-approved { background: #d1e7dd; color: #0a3622; }

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar { background: #fff; padding: 16px 20px; border-radius: 10px; -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; margin-bottom: 20px; }
.search-bar .form-group { margin: 0; }
.search-bar .search-field { -webkit-box-flex: 2; -ms-flex: 2; flex: 2; min-width: 160px; }
.search-bar .filter-field { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 130px; }
.search-bar .search-btns  { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 8px; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-layout { display: -ms-grid; display: grid; grid-template-columns: 1fr 340px; gap: 20px; -webkit-box-align: start; -ms-flex-align: start; align-items: start; margin-top: 16px; }
.cart-table-wrap { background: #fff; border-radius: 0 0 12px 12px; overflow: hidden; -webkit-box-shadow: none; box-shadow: none; }
.cart-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 7px; -ms-flex-negative: 0; flex-shrink: 0; }
.cart-item-name { font-weight: 600; color: #2c3e50; font-size: 0.9rem; }
.cart-item-vendor { font-size: 0.78rem; color: #aaa; }

/* Vendor group */
.vendor-cart-group { margin-bottom: 16px; border-radius: 12px; overflow: hidden; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.07); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.vendor-cart-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; background: #2c3e50; color: #fff; padding: 10px 16px; font-weight: 700; font-size: 0.92rem; }
.vendor-cart-sub { font-size: 0.85rem; font-weight: 600; background: rgba(232,73,29,0.85); color: #fff; border-radius: 20px; padding: 2px 12px; }
.cart-qty-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 1.5px solid #ddd; border-radius: 6px; overflow: hidden; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; margin: auto; }
.cart-qty-wrap button { padding: 5px 11px; background: #f5f5f5; border: none; font-size: 1rem; cursor: pointer; font-weight: 700; color: #555; min-height: 36px; min-width: 36px; }
.cart-qty-wrap input { width: 44px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; padding: 5px 4px; font-size: 0.9rem; background: #fff; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.cart-aside { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 16px; }

/* Payment options */
.pay-options { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 10px; }
.pay-option { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 12px; padding: 13px 16px; border: 2px solid #ddd; border-radius: 10px; cursor: pointer; -webkit-transition: border-color 0.2s, background 0.2s; transition: border-color 0.2s, background 0.2s; min-height: 60px; }
.pay-option:hover { border-color: #e8491d; background: #fff8f6; }
.pay-option input[type=radio] { width: 18px; height: 18px; accent-color: #e8491d; -ms-flex-negative: 0; flex-shrink: 0; cursor: pointer; -webkit-appearance: auto; appearance: auto; }
.pay-option.selected { border-color: #e8491d; background: #fff5f2; }
.pay-option-title { font-weight: 700; color: #2c3e50; font-size: 0.9rem; }
.pay-option-sub   { font-size: 0.78rem; color: #888; }

/* Order summary */
.order-summary-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 7px 0; font-size: 0.9rem; color: #555; }
.order-summary-row.total { padding-top: 14px; margin-top: 6px; border-top: 2px solid #f0f0f0; font-size: 1.05rem; font-weight: 700; color: #2c3e50; }
.order-summary-row.total .total-val { color: #e8491d; font-size: 1.15rem; }

/* ── Order cards ────────────────────────────────────────────── */
.order-list { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 12px; }
.order-card { background: #fff; border-radius: 12px; overflow: hidden; -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.07); box-shadow: 0 2px 10px rgba(0,0,0,0.07); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; }
.order-card-img { width: 90px; height: 90px; object-fit: cover; -ms-flex-negative: 0; flex-shrink: 0; }
.order-card-body { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; padding: 12px 16px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; gap: 6px; min-width: 0; }
.order-card-title { font-weight: 700; color: #2c3e50; font-size: 0.95rem; }
.order-card-sub   { font-size: 0.8rem; color: #aaa; }
.order-card-meta  { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; }
.order-card-price { font-weight: 700; color: #e8491d; font-size: 0.95rem; }

/* Filter tabs */
.filter-tabs { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 8px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tab { padding: 7px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; text-decoration: none; -webkit-transition: all 0.2s; transition: all 0.2s; background: #fff; color: #555; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.1); display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 6px; min-height: 36px; }
.filter-tab.active { background: #e8491d; color: #fff; -webkit-box-shadow: 0 3px 8px rgba(232,73,29,0.3); box-shadow: 0 3px 8px rgba(232,73,29,0.3); }
.filter-tab .tab-count { background: rgba(0,0,0,0.1); padding: 1px 7px; border-radius: 10px; font-size: 0.75rem; }
.filter-tab.active .tab-count { background: rgba(255,255,255,0.3); }

/* ── Summary bar ────────────────────────────────────────────── */
.summary-bar { background: #fff; padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 0.9rem; color: #555; border-left: 4px solid #e8491d; }
.summary-bar strong { color: #2c3e50; }

/* ── Quick actions ──────────────────────────────────────────── */
.quick-actions { background: #fff; padding: 22px 24px; border-radius: 12px; margin-top: 20px; -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.quick-actions h3 { margin-bottom: 14px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; color: #888; }

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container { position: fixed; top: 80px; right: 24px; z-index: 9999; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 10px; pointer-events: none; max-width: 360px; width: calc(100% - 48px); }
.toast { width: 100%; padding: 14px 20px 14px 18px; border-radius: 10px; color: #fff; font-size: 0.9rem; font-weight: 500; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 12px; -webkit-box-shadow: 0 8px 30px rgba(0,0,0,0.18); box-shadow: 0 8px 30px rgba(0,0,0,0.18); pointer-events: all; -webkit-animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; position: relative; overflow: hidden; }
.toast::after { content:''; position:absolute; bottom:0; left:0; height:3px; background:rgba(255,255,255,0.4); -webkit-animation:toastBar 4s linear forwards; animation:toastBar 4s linear forwards; width:100%; }
.toast.success { background: -webkit-linear-gradient(315deg,#1a7a3c,#28a745); background: linear-gradient(135deg,#1a7a3c,#28a745); }
.toast.error   { background: -webkit-linear-gradient(315deg,#a71d2a,#dc3545); background: linear-gradient(135deg,#a71d2a,#dc3545); }
.toast.info    { background: -webkit-linear-gradient(315deg,#0c5f8a,#17a2b8); background: linear-gradient(135deg,#0c5f8a,#17a2b8); }
.toast-icon { font-size: 1.2rem; -ms-flex-negative: 0; flex-shrink: 0; margin-top: 1px; }
.toast-body { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; line-height: 1.4; }
.toast-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.toast-msg { opacity: 0.92; font-size: 0.84rem; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1rem; padding: 0; -ms-flex-negative: 0; flex-shrink: 0; line-height: 1; margin-top: 2px; min-width: 24px; min-height: 24px; }
.toast-close:hover { color: #fff; }
.toast.hiding { -webkit-animation: toastOut 0.3s ease forwards; animation: toastOut 0.3s ease forwards; }
@-webkit-keyframes toastIn  { from{opacity:0;-webkit-transform:translateX(60px) scale(.95)} to{opacity:1;-webkit-transform:translateX(0) scale(1)} }
@keyframes toastIn  { from{opacity:0;transform:translateX(60px) scale(.95)} to{opacity:1;transform:translateX(0) scale(1)} }
@-webkit-keyframes toastOut { from{opacity:1;-webkit-transform:translateX(0) scale(1)} to{opacity:0;-webkit-transform:translateX(60px) scale(.9)} }
@keyframes toastOut { from{opacity:1;transform:translateX(0) scale(1)} to{opacity:0;transform:translateX(60px) scale(.9)} }
@-webkit-keyframes toastBar { from{width:100%} to{width:0%} }
@keyframes toastBar { from{width:100%} to{width:0%} }

/* ── Delete Modal ───────────────────────────────────────────── */
#delete-modal { display:none; position:fixed; inset:0; z-index:99999; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-pack:center; -ms-flex-pack:center; justify-content:center; padding:16px; }
#delete-modal.show { display:-webkit-box !important; display:-ms-flexbox !important; display:flex !important; }
#modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.modal-box { position:relative; background:#fff; border-radius:16px; padding:36px 32px 28px; max-width:400px; width:100%; -webkit-box-shadow:0 24px 70px rgba(0,0,0,0.3); box-shadow:0 24px 70px rgba(0,0,0,0.3); text-align:center; -webkit-animation:modalIn .28s cubic-bezier(.34,1.56,.64,1) forwards; animation:modalIn .28s cubic-bezier(.34,1.56,.64,1) forwards; border-top:5px solid #dc3545; }
.modal-icon { width:64px; height:64px; border-radius:50%; background:#fff0ee; display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-pack:center; -ms-flex-pack:center; justify-content:center; margin:0 auto 16px; font-size:2rem; }
.modal-title { margin:0 0 10px; color:#2c3e50; font-size:1.2rem; }
.modal-msg { margin:0 0 28px; color:#777; font-size:.9rem; line-height:1.6; }
.modal-btns { display:-webkit-box; display:-ms-flexbox; display:flex; gap:12px; }
.modal-btn-cancel { -webkit-box-flex:1; -ms-flex:1; flex:1; padding:11px 0; border:1.5px solid #ddd; border-radius:8px; background:#fff; color:#555; font-size:.92rem; font-weight:600; cursor:pointer; min-height:44px; }
.modal-btn-cancel:hover { background:#f5f5f5; }
.modal-btn-delete { -webkit-box-flex:1; -ms-flex:1; flex:1; padding:11px 0; border-radius:8px; background:#dc3545; color:#fff; font-size:.92rem; font-weight:700; text-decoration:none; display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-pack:center; -ms-flex-pack:center; justify-content:center; min-height:44px; }
.modal-btn-delete:hover { background:#b02a37; }
@-webkit-keyframes modalIn { from{opacity:0;-webkit-transform:scale(.85) translateY(24px)} to{opacity:1;-webkit-transform:scale(1) translateY(0)} }
@keyframes modalIn { from{opacity:0;transform:scale(.85) translateY(24px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background:-webkit-linear-gradient(315deg,#2c3e50,#35424a); background:linear-gradient(135deg,#2c3e50,#35424a); color:#aaa; text-align:center; padding:18px 20px; font-size:0.85rem; border-top:3px solid #e8491d; -ms-flex-negative:0; flex-shrink:0; width:100%; margin-top:auto; }
footer p { margin:0; }
footer span { color:#e8491d; font-weight:600; }

/* ── Misc ───────────────────────────────────────────────────── */
.dark { padding:15px; background:#35424a; color:#fff; margin:10px 0; border-radius:8px; }
.text-muted  { color: #888; font-size: 0.85rem; }
.text-price  { color: #e8491d; font-weight: 700; }
.text-center { text-align: center; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.empty-state { text-align:center; padding:60px 20px; background:#fff; border-radius:12px; -webkit-box-shadow:0 2px 12px rgba(0,0,0,0.06); box-shadow:0 2px 12px rgba(0,0,0,0.06); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.empty-state h3 { color: #2c3e50; margin-bottom: 8px; }
.empty-state p  { color: #888; margin-bottom: 24px; }

/* ── Order confirmation page ────────────────────────────────── */
.conf-wrap { max-width: 620px; width: 100%; margin: 30px auto 60px; padding: 0 12px; box-sizing: border-box; }
.conf-hero { background: -webkit-linear-gradient(315deg,#1a7a3c,#28a745); background: linear-gradient(135deg,#1a7a3c,#28a745); color:#fff; border-radius:16px; padding:32px; text-align:center; margin-bottom:24px; -webkit-box-shadow:0 6px 24px rgba(40,167,69,0.3); box-shadow:0 6px 24px rgba(40,167,69,0.3); }
.conf-hero .conf-emoji { font-size:3.5rem; margin-bottom:12px; }
.conf-hero h2 { margin:0 0 8px; font-size:1.5rem; }
.conf-hero p  { margin:0; opacity:0.9; }
.conf-card { background:#fff; border-radius:12px; padding:24px 28px; -webkit-box-shadow:0 2px 12px rgba(0,0,0,0.07); box-shadow:0 2px 12px rgba(0,0,0,0.07); margin-bottom:20px; }
.conf-meta { display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-pack:justify; -ms-flex-pack:justify; justify-content:space-between; -ms-flex-wrap:wrap; flex-wrap:wrap; gap:10px; margin-bottom:20px; padding-bottom:16px; border-bottom:2px solid #f0f0f0; }
.conf-meta-label { font-size:0.78rem; color:#888; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:3px; }
.conf-meta-val   { font-size:1.05rem; font-weight:700; color:#2c3e50; }
.conf-item { display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-align:center; -ms-flex-align:center; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.conf-item img { width:56px; height:56px; object-fit:cover; border-radius:8px; -ms-flex-negative:0; flex-shrink:0; }
.conf-item-info { -webkit-box-flex:1; -ms-flex:1; flex:1; min-width:0; }
.conf-item-name   { font-weight:600; color:#2c3e50; }
.conf-item-vendor { font-size:0.82rem; color:#888; }
.conf-item-right { text-align:right; -ms-flex-negative:0; flex-shrink:0; }
.conf-item-qty { color:#888; font-size:0.85rem; }
.conf-item-amt { font-weight:700; color:#e8491d; }
.conf-total { display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-pack:justify; -ms-flex-pack:justify; justify-content:space-between; margin-top:16px; padding-top:14px; border-top:2px solid #f0f0f0; font-size:1.1rem; font-weight:700; }
.conf-next-steps { display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; gap:10px; }
.conf-next-step { display:-webkit-box; display:-ms-flexbox; display:flex; gap:12px; -webkit-box-align:flex-start; -ms-flex-align:flex-start; align-items:flex-start; }
.conf-next-num { border-radius:50%; width:26px; height:26px; display:-webkit-box; display:-ms-flexbox; display:flex; -webkit-box-align:center; -ms-flex-align:center; align-items:center; -webkit-box-pack:center; -ms-flex-pack:center; justify-content:center; font-size:0.8rem; font-weight:700; -ms-flex-negative:0; flex-shrink:0; color:#fff; }
.conf-next-num.orange { background:#e8491d; }
.conf-next-num.green  { background:#28a745; }
.conf-actions { display:-webkit-box; display:-ms-flexbox; display:flex; gap:12px; -ms-flex-wrap:wrap; flex-wrap:wrap; }
.conf-actions .btn { -webkit-box-flex:1; -ms-flex:1; flex:1; min-width:130px; padding:13px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-aside  { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; }
    .cart-aside .panel { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 260px; }
}

/* Mid-tablet */
@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .conf-card { padding: 18px 16px; }
    .conf-actions .btn { min-width: 0; }
}

/* Mobile */
@media (max-width: 640px) {
    /* Header */
    header .container { height: 60px; padding: 0 14px; }
    header #branding h1 { font-size: 1.15rem; }
    .hamburger { display: -webkit-box; display: -ms-flexbox; display: flex; }
    header nav { position: absolute; top: 60px; left: 0; right: 0; background: #2c3e50; border-top: 2px solid #e8491d; -webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-height: 0; overflow: hidden; -webkit-transition: max-height 0.35s ease, padding 0.25s ease; transition: max-height 0.35s ease, padding 0.25s ease; z-index: 999; padding: 0; }
    header nav.nav-open { max-height: 700px; padding: 10px 0 16px; }
    header nav ul { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; gap: 2px; padding: 0 12px; }
    header nav ul li a { font-size: 0.92rem; padding: 11px 14px; border-radius: 8px; color: #ddd; text-transform: none; letter-spacing: 0; }
    .nav-avatar-wrap { display: none; }
    .mob-divider { height: 1px; background: rgba(255,255,255,.12); margin: 4px 0; pointer-events: none; }

    /* Layout */
    .container { width: 100%; padding: 0 12px; }
    .page-wrap  { padding: 16px 0 32px; }

    /* Welcome banner */
    .welcome-banner { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 14px; padding: 18px 16px; }
    .welcome-banner h2 { font-size: 1.15rem; }
    .welcome-banner .btn { width: 100%; }

    /* Stat cards */
    .stat-cards-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 14px 10px; }
    .stat-card .stat-value { font-size: 1.4rem; }
    .stat-card .stat-label { font-size: 0.68rem; }

    /* Action cards */
    .card-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { padding: 14px 12px; }
    .card .card-icon { font-size: 1.8rem; }
    .card h3 { font-size: 0.9rem; }
    .card p  { font-size: 0.78rem; }
    .card img { height: 110px; }

    /* Steps */
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .step-item { padding: 10px 8px; }
    .step-item .step-icon { font-size: 1.4rem; }

    /* Tables */
    .table-responsive { border-radius: 8px; }
    table { min-width: 500px; }
    table th { padding: 10px 10px; font-size: 0.72rem; }
    table td { padding: 9px 10px; font-size: 0.8rem; }

    /* Forms */
    .form-container { padding: 20px 16px; margin: 16px auto; }
    .form-grid-2 { grid-template-columns: 1fr; }

    /* Cart */
    .cart-layout { grid-template-columns: 1fr; gap: 12px; }
    .cart-aside  { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }

    /* Order cards */
    .order-card-img { width: 80px; height: 80px; }
    .order-card-body { padding: 10px 12px; }
    .order-card-title { font-size: 0.88rem; }

    /* Search bar */
    .search-bar { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 10px; padding: 14px 16px; }
    .search-bar .search-field,
    .search-bar .filter-field { min-width: 0; width: 100%; }
    .search-bar .search-btns { width: 100%; }
    .search-bar .search-btns .btn { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }

    /* Filter tabs */
    .filter-tabs { gap: 6px; }
    .filter-tab  { font-size: 0.78rem; padding: 6px 12px; }

    /* Buttons */
    .btn { padding: 9px 16px; font-size: 0.84rem; }

    /* Section header */
    .section-header { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; }

    /* Toast */
    #toast-container { right: 10px; left: 10px; width: auto; max-width: none; }

    /* Panel */
    .panel { padding: 16px; }

    /* Summary bar */
    .summary-bar { font-size: 0.82rem; padding: 12px 14px; }

    /* Confirmation */
    .conf-wrap { margin: 16px auto 40px; }
    .conf-hero { padding: 24px 18px; }
    .conf-hero h2 { font-size: 1.25rem; }
    .conf-card { padding: 16px 14px; }
}

/* Tiny phones */
@media (max-width: 400px) {
    header #branding h1 { font-size: 1rem; }
    .stat-cards-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-container  { grid-template-columns: 1fr; }
    .stat-card .stat-value { font-size: 1.25rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .btn { font-size: 0.8rem; padding: 8px 12px; }
    table { min-width: 420px; }
    .conf-actions { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
    .conf-actions .btn { width: 100%; }
    .order-card { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
    .order-card-img { width: 100%; height: 160px; }
}

/* Print */
@media print {
    header, footer, .hamburger, #toast-container, #delete-modal { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .container { width: 100%; max-width: none; }
    table { -webkit-box-shadow: none; box-shadow: none; border: 1px solid #ccc; min-width: 0; }
    .btn { display: none; }
}

/* ── Pagination ─────────────────────────────────────────────── */
.pager { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.pager-btn {
    display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    padding: 6px 13px; border-radius: 7px; font-size: .82rem; font-weight: 600;
    border: 1.5px solid #ddd; background: #fff; color: #333; text-decoration: none;
    -webkit-transition: background .15s, border-color .15s, color .15s;
    transition: background .15s, border-color .15s, color .15s; min-width: 36px;
    cursor: pointer;
}
.pager-btn:hover { background: #e8491d; color: #fff; border-color: #e8491d; }
.pager-cur { background: #e8491d !important; color: #fff !important; border-color: #e8491d !important; cursor: default; }
.pager-off { background: #f5f5f5 !important; color: #ccc !important; border-color: #eee !important; cursor: not-allowed; }
.pager-off:hover { background: #f5f5f5 !important; color: #ccc !important; border-color: #eee !important; }
.pager-ellipsis { color: #aaa; font-size: .85rem; padding: 0 2px; line-height: 2; }
.pager-info { margin-left: 6px; font-size: .8rem; color: #aaa; }
.conf-vendor-group { margin-bottom: 12px; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; }
.conf-vendor-group:last-of-type { margin-bottom: 0; }
.conf-vendor-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; background: #f8faf9; color: #2c3e50; font-size: 0.84rem; font-weight: 700; border-bottom: 1px solid #eeeeee; }
.conf-vendor-group .conf-item { padding-left: 12px; padding-right: 12px; }
.conf-vendor-group .conf-item:last-child { border-bottom: none; }
@media (max-width: 520px) {
    .conf-vendor-header { align-items: flex-start; flex-direction: column; gap: 2px; }
}
