/* ==========================================================================
   FreshDash theme — overrides the shared design tokens (cyan + coral, quick-commerce look)
   Loaded after fd-base.css on every layout (storefront, auth, admin).
   ========================================================================== */
:root {
    --ink: #151a21;
    --ink-2: #1f2630;
    --ink-3: #3a4452;
    --muted: #6b7686;
    --line: #e8ebf0;
    --bg: #f5f5f7;
    --accent: #ff7a59;
    --accent-600: #ec6140;
    --accent-soft: #ffece6;
    --brand: #0e7490;
    --brand-600: #155e75;
    --brand-700: #164e63;
    --brand-soft: #e0f7fa;
    --blue: #2563eb;
    --bs-link-color: #0e7490;
    --bs-link-hover-color: #164e63;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; }
.text-brand { color: var(--brand) !important; }

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); --bs-btn-disabled-color: #fff;
    --bs-btn-focus-shadow-rgb: 14, 116, 144;
    box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .8);
}
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--ink); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(14, 116, 144, .16); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(14, 116, 144, .16); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); }
.nav-pills-rx .nav-link.active { background: var(--brand); border-color: var(--brand); }
.nav-pills-rx .nav-link .count { background: #eeeef2; }

/* Brand mark */
.brand .logo { background: var(--accent); color: var(--brand); transform: rotate(-6deg); box-shadow: 0 6px 14px -8px rgba(236, 97, 64, .9); }
.brand { color: var(--ink); }
.brand .brand-name b { color: var(--brand); }
.avatar { background: var(--brand); color: #fff; }
.icon-bubble { background: var(--brand-soft); color: var(--brand-700); }
.icon-bubble.dark { background: var(--brand); color: #fff; }
.chip-lime { background: var(--brand-soft); color: var(--brand-700); }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.current .dot { background: var(--accent); border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 5px rgba(255, 122, 89, .35); }

/* ---------- Admin panel skin ---------- */
body.panel { background: #f2f2f5; }
.sidebar { background: linear-gradient(180deg, #080620 0%, #0c092d 100%); }
.sidebar .brand small { background: var(--accent); color: var(--ink); }
.sidebar .brand .logo { background: var(--accent); color: var(--brand); }
.side-group { color: #635f8a; }
.side-link { color: #b8b6cd; }
.side-link:hover { background: rgba(255, 255, 255, .07); }
.side-link.active { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -14px var(--accent); }
.side-user .avatar { background: var(--accent); color: var(--ink); }
.side-user small { color: #7b78a0; }
.side-link .badge-count { background: #ef4444; }
.topbar { background: rgba(255, 255, 255, .92); }
.page-head h2 { letter-spacing: -.03em; }
.card-rx > .card-head h6 i { color: var(--brand); }
.admin-login { background: radial-gradient(900px 500px at 80% -10%, rgba(255, 122, 89, .22), transparent 60%), linear-gradient(160deg, #080620, #0f0b3c); }
.auth-side { background: radial-gradient(800px 400px at 80% 0%, rgba(255, 122, 89, .28), transparent 60%), linear-gradient(160deg, #080620, #0b3f4f); }
.auth-side ul i { color: var(--accent); }
.demo-otp { background: var(--accent-soft); border-color: #ec6140; }
.auth-tabs button.active { color: var(--ink); }

.mini-bars { display: flex; align-items: flex-end; gap: .55rem; height: 150px; padding-top: 1rem; }
.mini-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); }
.mini-bars .bar i { display: block; width: 100%; max-width: 42px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), #0891b2); min-height: 4px; }
.mini-bars .bar b { font-size: .68rem; color: var(--ink); margin-bottom: 3px; font-weight: 700; }
.mini-bars .bar span { margin-top: 5px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; font-size: .88rem; border-bottom: 1px dashed var(--line); }
.status-row:last-child { border-bottom: 0; }
.h-bar { height: 8px; border-radius: 6px; background: #ededf1; overflow: hidden; }
.h-bar > div { height: 100%; background: linear-gradient(90deg, var(--brand), #0891b2); border-radius: 6px; }
.pick-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .9rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.pick-row:last-child { border-bottom: 0; }
.pick-row .thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.9rem; }
.pick-row.is-picked { background: #f7f6fc; }
.pick-row.is-unavailable { background: #fff8f8; }
.pick-row.is-substituted { background: #f7f9ff; }
.var-table td { vertical-align: middle; }
.var-table .form-control { min-width: 84px; }
.kpi-sub { font-size: .72rem; color: var(--muted); }
.report-tile { display: flex; gap: .85rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); height: 100%; transition: all .15s; }
.report-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d1cfe6; }
.report-tile.active { border-color: var(--brand); background: var(--brand-soft); }
.report-tile b { display: block; font-size: .92rem; }
.report-tile small { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; }
.stock-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.stock-pill.in_stock { background: #e1dff9; color: #164e63; }
.stock-pill.low_stock { background: #fef3c7; color: #92400e; }
.stock-pill.out_of_stock, .stock-pill.expired { background: #fee2e2; color: #991b1b; }
