/* SANAD business portal: black and gold. Linked straight from the layout, not
   through an Odoo asset bundle, so this page cannot break the site's bundles. */
:root {
    --biz-bg: #0c0c0d;
    --biz-surface: #161618;
    --biz-raised: #1f1f22;
    --biz-line: #2e2e32;
    --biz-gold: #d4af37;
    --biz-gold-hi: #f0cf65;
    --biz-ink: #f4f1e8;
    --biz-muted: #a8a396;
    --biz-red: #e5736b;
    --biz-green: #6fcf97;
    --biz-radius: 12px;
}

html, body { margin: 0; background: var(--biz-bg); color: var(--biz-ink); }

.biz {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--biz-bg);
    color: var(--biz-ink);
    font-family: "Segoe UI", "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: start;
}
.biz *, .biz *::before, .biz *::after { box-sizing: border-box; }
.biz h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 .35rem; color: var(--biz-ink); }
.biz h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .75rem; color: var(--biz-gold); }
.biz p { margin: 0 0 .75rem; }
.biz a { color: var(--biz-gold); text-decoration: none; }
.biz a:hover { color: var(--biz-gold-hi); }
.biz [hidden] { display: none !important; }

/* Top bar */
.biz-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding: .75rem 1.5rem;
    background: #000;
    border-bottom: 1px solid var(--biz-gold);
}
.biz-brand { display: inline-flex; align-items: baseline; gap: .5rem; }
.biz-brand-ar { font-size: 1.5rem; font-weight: 800; color: var(--biz-gold); }
.biz-brand-en { font-size: .8rem; letter-spacing: .15em; color: var(--biz-muted); }
.biz-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.biz-nav a { color: var(--biz-ink); padding: .25rem 0; border-bottom: 2px solid transparent; }
.biz-nav a.active { color: var(--biz-gold); border-bottom-color: var(--biz-gold); }
.biz-top-end { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.biz-lang { font-size: .9rem; }
.biz-inline { display: inline; margin: 0; }
.biz-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--biz-gold);
    cursor: pointer;
}
.biz-link:hover { color: var(--biz-gold-hi); }

.biz-main { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
.biz-foot { padding: 1rem 1.5rem; text-align: center; color: var(--biz-muted); font-size: .85rem; }

/* Blocks */
.biz-hero { padding: 2.5rem 0 2rem; max-width: 720px; }
.biz-hero h1 { font-size: 2.4rem; line-height: 1.25; }
.biz-eyebrow { color: var(--biz-gold); font-weight: 700; }
.biz-lead { color: var(--biz-muted); font-size: 1.1rem; }
.biz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.biz-card {
    display: flex;
    flex-direction: column;
    background: var(--biz-surface);
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    padding: 1.25rem;
}
.biz-card > p { flex: 1 0 auto; color: var(--biz-muted); }
.biz-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.biz-panel {
    max-width: 440px;
    margin: 1.5rem auto;
    background: var(--biz-surface);
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    padding: 1.75rem;
}
.biz-panel-wide { max-width: 760px; }
.biz-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.biz-head h2 { margin: 0; }
.biz-muted { color: var(--biz-muted); }
.biz-small { display: block; font-size: .82rem; color: var(--biz-muted); }
.biz-hint { font-size: .85rem; color: var(--biz-muted); }
.biz-mt { margin-top: 1.25rem; }
.biz-empty { padding: 2rem 0; text-align: center; color: var(--biz-muted); }
.biz-foot-link { margin: 1rem 0 0; font-size: .92rem; color: var(--biz-muted); }
.biz-print-only { display: none; }

/* Buttons */
.biz-btn {
    display: inline-block;
    padding: .55rem 1.15rem;
    border: 1px solid var(--biz-gold);
    border-radius: 8px;
    background: var(--biz-gold);
    color: #0c0c0d !important;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.biz-btn:hover { background: var(--biz-gold-hi); }
.biz-btn:disabled { opacity: .45; cursor: not-allowed; }
.biz-btn-ghost { background: transparent; color: var(--biz-gold) !important; }
.biz-btn-ghost:hover { background: var(--biz-raised); }
.biz-btn-danger { background: transparent; border-color: var(--biz-red); color: var(--biz-red) !important; }
.biz-btn-danger:hover { background: var(--biz-raised); }
.biz-btn-block { display: block; width: 100%; }
.biz-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--biz-line);
    border-radius: 8px;
    background: var(--biz-raised);
    color: var(--biz-ink);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.biz-icon-btn:hover { border-color: var(--biz-gold); color: var(--biz-gold); }
.biz :focus-visible { outline: 2px solid var(--biz-gold-hi); outline-offset: 2px; }

/* Forms */
.biz-form { margin-top: 1rem; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.biz-span-2 { grid-column: 1 / -1; }
.biz-field { display: block; margin-bottom: .85rem; font-size: .92rem; }
.biz-grid .biz-field { margin-bottom: 0; }
.biz-field > span { display: block; margin-bottom: .25rem; color: var(--biz-muted); }
.biz input:not([type=hidden]), .biz select {
    width: 100%;
    min-height: 42px;
    padding: .5rem .7rem;
    border: 1px solid var(--biz-line);
    border-radius: 8px;
    background: var(--biz-raised);
    color: var(--biz-ink);
    font: inherit;
}
.biz input:focus, .biz select:focus { border-color: var(--biz-gold); outline: none; }
.biz input::placeholder { color: #77736a; }
.biz input.biz-code { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.biz input[type=month] { width: auto; color-scheme: dark; }
.biz-location { display: flex; gap: .5rem; }
.biz-location input { flex: 1 1 auto; min-width: 0; }
.biz-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }

/* Order rows */
.biz-row {
    min-width: 0;
    margin: 0 0 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--biz-surface);
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
}
.biz-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.biz-row-error { color: var(--biz-red); font-size: .9rem; }
.biz-form-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* Alerts and badges */
.biz-alert { padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 8px; border: 1px solid; }
.biz-alert-error { border-color: var(--biz-red); color: var(--biz-red); background: rgba(229, 115, 107, .1); }
.biz-alert-ok { border-color: var(--biz-green); color: var(--biz-green); background: rgba(111, 207, 151, .1); }
.biz-badge {
    display: inline-block;
    padding: .1rem .6rem;
    border: 1px solid var(--biz-gold);
    border-radius: 999px;
    color: var(--biz-gold);
    font-size: .82rem;
    white-space: nowrap;
}
.biz-state-completed, .biz-state-paid, .biz-driver-online { border-color: var(--biz-green); color: var(--biz-green); }
.biz-state-cancelled, .biz-state-no_drivers { border-color: var(--biz-red); color: var(--biz-red); }
.biz-driver-offline { border-color: var(--biz-line); color: var(--biz-muted); }

/* Tables */
.biz-tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--biz-line); }
.biz-tabs a { padding: .4rem 0; color: var(--biz-muted); border-bottom: 2px solid transparent; }
.biz-tabs a.active { color: var(--biz-gold); border-bottom-color: var(--biz-gold); }
.biz-table-wrap { overflow-x: auto; border: 1px solid var(--biz-line); border-radius: var(--biz-radius); }
.biz-table { width: 100%; border-collapse: collapse; background: var(--biz-surface); color: var(--biz-ink); }
.biz-table th, .biz-table td { padding: .6rem .8rem; text-align: start; border-bottom: 1px solid var(--biz-line); vertical-align: top; }
.biz-table th { color: var(--biz-gold); font-size: .85rem; font-weight: 600; white-space: nowrap; background: var(--biz-raised); }
.biz-table tr:last-child td { border-bottom: 0; }
.biz-address { min-width: 170px; max-width: 280px; }
.biz-nowrap { white-space: nowrap; }
.biz-pager { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }

/* Detail */
.biz-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.biz-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.biz-dl dt { color: var(--biz-muted); font-weight: 400; }
.biz-dl dd { margin: 0; overflow-wrap: anywhere; }
.biz-amount { font-size: 1.5rem; font-weight: 700; color: var(--biz-gold); }
.biz-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.biz-photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--biz-line); }

/* Stats */
.biz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.biz-stat { padding: .85rem 1rem; background: var(--biz-surface); border: 1px solid var(--biz-line); border-radius: var(--biz-radius); }
.biz-stat span { display: block; font-size: .85rem; color: var(--biz-muted); }
.biz-stat b { font-size: 1.3rem; color: var(--biz-gold); }

/* Maps */
.biz-map { width: 100%; height: 340px; background: var(--biz-raised); border-radius: 8px; }
.biz-map-small { height: 240px; margin-top: .75rem; }
.biz-map-large { height: 480px; }
.biz-provider { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 1rem; }
.biz-provider > .biz-drivers:only-child { grid-column: 1 / -1; }
.biz-drivers {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 480px;
    overflow-y: auto;
    background: var(--biz-surface);
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
}
.biz-drivers li { border-bottom: 1px solid var(--biz-line); }
.biz-drivers li:last-child { border-bottom: 0; }
.biz-drivers li.active { background: var(--biz-raised); }
.biz-drivers a { display: block; padding: .6rem .8rem; color: var(--biz-ink); }
.biz-drivers .biz-badge { margin-inline-start: .35rem; }

.biz-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .75);
}
.biz-modal-box {
    width: 100%;
    max-width: 640px;
    max-height: 100%;
    overflow-y: auto;
    padding: 1rem;
    background: var(--biz-surface);
    border: 1px solid var(--biz-gold);
    border-radius: var(--biz-radius);
}
.pac-container { z-index: 1100; }

@media (max-width: 700px) {
    .biz-main { padding: 1rem; }
    .biz-top { padding: .6rem 1rem; }
    .biz-hero { padding: 1.25rem 0; }
    .biz-hero h1 { font-size: 1.8rem; }
    .biz-panel { margin: .5rem auto; padding: 1.25rem; }
    .biz-provider { grid-template-columns: 1fr; }
    .biz-map-large { height: 320px; }
    .biz-form-end .biz-btn { flex: 1 1 100%; }
}

@media print {
    html, body { background: #fff; }
    .biz { min-height: 0; background: #fff; color: #000; }
    .biz-top, .biz-no-print { display: none; }
    .biz h1, .biz h2, .biz-stat b, .biz-table th, .biz-muted, .biz-stat span { color: #000; }
    .biz-stat, .biz-table, .biz-table th { background: #fff; }
    .biz-table { color: #000; }
    .biz-table-wrap { overflow: visible; }
    .biz-print-only { display: block; }
}
