/* ==========================================================================
   PetBaba design system — amber #F9AE32 · coral #E44856 · ink #0F0F13 · cream #F9F5F0
   ========================================================================== */
:root {
    --amber: #F9AE32;
    --amber-600: #E89A14;
    --amber-50: #FFF6E6;
    --coral: #E44856;
    --coral-600: #C9303F;
    --coral-50: #FDECEE;
    --ink: #0F0F13;
    --ink-2: #1B1B22;
    --ink-3: #2A2A33;
    --cream: #F9F5F0;
    --sand: #F1EAE0;
    --line: #ECE4D9;
    --text: #1F1F24;
    --muted: #7A7480;
    --teal: #1E7770;
    --teal-50: #E6F3F1;
    --violet: #6C5CE7;
    --violet-50: #EFEDFD;
    --sky: #1D8FE1;
    --sky-50: #E8F4FD;
    --green: #1F9D63;
    --green-50: #E7F6EE;
    --gold: #B68A12;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 15, 19, .04), 0 8px 24px -12px rgba(15, 15, 19, .12);
    --shadow-lg: 0 20px 50px -20px rgba(15, 15, 19, .35);
    --sidebar: 264px;
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ar: 'Tajawal', 'Poppins', system-ui, sans-serif;
}

html { font-size: 14px; }
body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
html[dir=rtl] body { font-family: var(--font-ar); font-size: 1.05rem; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral); }
::selection { background: var(--amber); color: var(--ink); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-muted, .muted { color: var(--muted) !important; }
.text-coral { color: var(--coral) !important; }
.text-amber { color: var(--amber-600) !important; }
.text-teal { color: var(--teal) !important; }
.text-green { color: var(--green) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.small-caps { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.money::before { content: ""; }

/* ---------------- shell ---------------- */
.pb-sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar); z-index: 1040;
    background: radial-gradient(120% 60% at 0% 0%, #2a1f12 0%, rgba(42,31,18,0) 60%), linear-gradient(180deg, #121217 0%, #0B0B0E 100%);
    color: #CFCBD6; display: flex; flex-direction: column; transition: transform .25s ease;
}
.pb-brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.25rem 1rem; }
.pb-brand img.av { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(249,174,50,.25); }
.pb-brand img.wm { height: 30px; }
.pb-brand .sub { font-size: .66rem; color: #8E8898; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.pb-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: #2a2a33 transparent; }
.pb-nav .grp { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #6F6A78; padding: 1rem .75rem .4rem; font-weight: 600; }
.pb-nav a {
    display: flex; align-items: center; gap: .75rem; padding: .58rem .75rem; border-radius: 12px; color: #C9C5D1;
    font-weight: 500; font-size: .92rem; transition: background .15s, color .15s; position: relative;
}
.pb-nav a i { font-size: 1.1rem; width: 22px; text-align: center; color: #8E8898; transition: color .15s; }
.pb-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.pb-nav a:hover i { color: var(--amber); }
.pb-nav a.active { background: linear-gradient(90deg, rgba(249,174,50,.18), rgba(249,174,50,.04)); color: #fff; }
.pb-nav a.active i { color: var(--amber); }
.pb-nav a.active::before { content: ""; position: absolute; inset-inline-start: -.75rem; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); }
html[dir=rtl] .pb-nav a.active::before { border-radius: 4px 0 0 4px; }
.pb-nav .badge-dot { margin-inline-start: auto; background: var(--coral); color: #fff; font-size: .68rem; border-radius: 20px; padding: .1rem .5rem; font-weight: 600; }
.pb-side-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .72rem; color: #6F6A78; }
.pb-side-foot b { color: var(--amber); font-weight: 600; }

.pb-main { margin-inline-start: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.pb-top {
    position: sticky; top: 0; z-index: 1030; height: 68px; display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem;
    background: rgba(249,245,240,.85); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line);
}
.pb-top .search { flex: 1; max-width: 520px; position: relative; }
.pb-top .search input {
    width: 100%; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding-inline: 2.6rem 1rem;
    font-size: .92rem; transition: box-shadow .15s, border-color .15s;
}
.pb-top .search input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(249,174,50,.18); }
.pb-top .search > i { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pb-top .search kbd { position: absolute; inset-inline-end: .7rem; top: 50%; transform: translateY(-50%); background: var(--sand); color: var(--muted); border: 0; font-size: .7rem; }
.search-results { position: absolute; top: 48px; inset-inline: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; display: none; max-height: 70vh; overflow-y: auto; }
.search-results.show { display: block; }
.search-results a { display: flex; gap: .75rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid #f4efe8; }
.search-results a:hover, .search-results a.hl { background: var(--amber-50); color: var(--text); }
.search-results .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); font-size: 1rem; flex-shrink: 0; }
.search-results .hd { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .6rem 1rem .3rem; font-weight: 600; background: #FCFAF7; }
.pb-top .tools { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--text); position: relative; }
.icon-btn:hover { border-color: var(--amber); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; inset-inline-end: 7px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--coral); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 3px; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .35rem .25rem .25rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.user-chip .av { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--amber), var(--coral)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.user-chip .nm { font-weight: 600; font-size: .85rem; line-height: 1.1; }
.user-chip .rl { font-size: .7rem; color: var(--muted); }
.pb-content { padding: 1.75rem; flex: 1; }
.pb-burger { display: none; }

/* ---------------- page header ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.page-head .crumb { font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.page-head .crumb a:hover { color: var(--coral); }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------- cards ---------------- */
.card-pb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pb > .hd { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem .6rem; }
.card-pb > .hd h3, .card-pb > .hd h2 { font-size: 1rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-pb > .hd h3 i { color: var(--amber-600); }
.card-pb > .hd .sub { font-size: .76rem; color: var(--muted); }
.card-pb > .bd { padding: .75rem 1.25rem 1.25rem; }
.card-pb > .bd.p0 { padding: 0; }
.card-pb.dark { background: linear-gradient(135deg, #17171d, #0F0F13); color: #EDEAF2; border-color: #22222a; }
.card-pb.dark .muted { color: #9993A3 !important; }

/* hero greeting */
.hero {
    border-radius: 24px; padding: 1.6rem 1.8rem; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(90% 140% at 100% 0%, rgba(249,174,50,.55) 0%, rgba(249,174,50,0) 55%),
                radial-gradient(80% 120% at 0% 100%, rgba(228,72,86,.45) 0%, rgba(228,72,86,0) 60%),
                linear-gradient(135deg, #1a1a21, #0F0F13);
    box-shadow: var(--shadow-lg);
}
.hero h2 { font-weight: 700; font-size: 1.55rem; margin: 0 0 .25rem; letter-spacing: -.02em; }
.hero p { color: #D9D4E0; margin: 0; }
.hero .char { position: absolute; inset-inline-end: 1.5rem; bottom: -12px; height: 150px; opacity: .95; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.hero .chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.hero .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 30px; padding: .35rem .8rem; font-size: .8rem; backdrop-filter: blur(6px); }
.hero .chip b { color: var(--amber); }

/* KPI tiles */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); height: 100%; position: relative; overflow: hidden; }
.kpi .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .8rem; }
.kpi .lbl { font-size: .78rem; color: var(--muted); font-weight: 500; }
.kpi .val { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: .8rem; font-weight: 500; color: var(--muted); margin-inline-start: .15rem; }
.kpi .delta { font-size: .74rem; font-weight: 600; margin-top: .35rem; display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .45rem; border-radius: 20px; }
.kpi .delta.up { color: var(--green); background: var(--green-50); }
.kpi .delta.down { color: var(--coral); background: var(--coral-50); }
.kpi .spark { position: absolute; inset-inline-end: 0; bottom: 0; width: 55%; height: 48px; opacity: .9; }
.tone-amber { background: var(--amber-50); color: var(--amber-600); }
.tone-coral { background: var(--coral-50); color: var(--coral); }
.tone-teal { background: var(--teal-50); color: var(--teal); }
.tone-violet { background: var(--violet-50); color: var(--violet); }
.tone-sky { background: var(--sky-50); color: var(--sky); }
.tone-green { background: var(--green-50); color: var(--green); }
.tone-ink { background: #EDEBF0; color: var(--ink); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 30px; font-size: .72rem; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.pill-info { background: var(--sky-50); color: var(--sky); }
.pill-violet { background: var(--violet-50); color: var(--violet); }
.pill-amber { background: var(--amber-50); color: #B7750A; }
.pill-coral { background: var(--coral-50); color: var(--coral); }
.pill-green { background: var(--green-50); color: var(--green); }
.pill-muted { background: #F0EEF2; color: #85808C; }
.pill-ink { background: var(--ink); color: #fff; }
.pill-vip { background: linear-gradient(135deg, #F9D27A, #E8A92A); color: #4A3200; }

/* buttons */
.btn { border-radius: 12px; font-weight: 600; font-size: .88rem; padding: .55rem 1rem; display: inline-flex; align-items: center; gap: .4rem; justify-content: center; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn-brand { background: linear-gradient(135deg, #FFC45E, var(--amber)); color: var(--ink); border: 0; box-shadow: 0 6px 16px -6px rgba(249,174,50,.8); }
.btn-brand:hover, .btn-brand:focus { background: linear-gradient(135deg, #FFBB45, var(--amber-600)); color: var(--ink); }
.btn-coral { background: var(--coral); color: #fff; border: 0; box-shadow: 0 6px 16px -6px rgba(228,72,86,.8); }
.btn-coral:hover { background: var(--coral-600); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-soft { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-soft:hover { border-color: var(--amber); background: var(--amber-50); color: var(--ink); }
.btn-wa { background: #25D366; color: #fff; border: 0; }
.btn-wa:hover { background: #1EB857; color: #fff; }
.btn-ghost { background: transparent; border: 0; color: var(--muted); }
.btn-ghost:hover { color: var(--coral); background: var(--coral-50); }

/* forms */
.form-label { font-size: .78rem; font-weight: 600; color: #5B5561; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .55rem .8rem; font-size: .9rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(249,174,50,.18); }
.form-control-sm, .form-select-sm { border-radius: 10px; padding: .35rem .6rem; font-size: .82rem; }
.input-group-text { border-radius: 12px; border-color: var(--line); background: var(--sand); font-size: .85rem; }
.form-check-input:checked { background-color: var(--amber); border-color: var(--amber); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(249,174,50,.2); border-color: var(--amber); }
.form-section { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--amber-600); margin: 1.25rem 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: inline-flex; background: var(--sand); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg input { display: none; }
.seg label, .seg a { padding: .4rem .85rem; border-radius: 10px; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input:checked + label, .seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* tables */
.table-pb { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.table-pb th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .75rem 1rem; background: #FCFAF7; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: start; }
.table-pb td { padding: .8rem 1rem; border-bottom: 1px solid #F3EEE7; vertical-align: middle; font-size: .88rem; }
.table-pb tbody tr { transition: background .12s; }
.table-pb tbody tr:hover { background: #FFFBF4; }
.table-pb tbody tr:last-child td { border-bottom: 0; }
.table-pb tfoot td { font-weight: 700; background: #FCFAF7; border-top: 2px solid var(--line); padding: .8rem 1rem; }
.table-pb .r, .r { text-align: end; }
.table-pb.compact td { padding: .5rem .85rem; }
.table-pb tr.clickable { cursor: pointer; }
.table-wrap { overflow-x: auto; }

/* avatars */
.av { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; object-fit: cover; }
.av-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
.av-xl { width: 96px; height: 96px; border-radius: 26px; font-size: 2.4rem; }
.av-pet { background: linear-gradient(135deg, var(--amber-50), #FFE7BF); font-size: 1.2rem; }
.av-person { background: linear-gradient(135deg, #2A2A33, #0F0F13); color: var(--amber); }
.who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.who .t { min-width: 0; }
.who .n { font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .s { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* list rows */
.lrow { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow .end { margin-inline-start: auto; text-align: end; }

/* empty state */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .e { font-size: 2.4rem; margin-bottom: .5rem; }

/* filter bar */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.filters .form-control, .filters .form-select { width: auto; min-width: 150px; }
.filters .grow { flex: 1; min-width: 200px; }

/* tabs */
.tabs-pb { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); padding: 0 1.25rem; overflow-x: auto; }
.tabs-pb a, .tabs-pb button { padding: .85rem .9rem; font-weight: 600; font-size: .86rem; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-pb a.active, .tabs-pb button.active { color: var(--ink); border-bottom-color: var(--amber); }
.tabs-pb .cnt { background: var(--sand); border-radius: 10px; padding: 0 .4rem; font-size: .7rem; margin-inline-start: .25rem; }

/* dispatch board */
.board { display: grid; grid-template-columns: 70px repeat(var(--cols, 2), minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.board .colh { padding: .9rem 1rem; background: #FCFAF7; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; }
.board .colh .sw { width: 12px; height: 34px; border-radius: 6px; }
.board .gutter { position: relative; }
.board .gutter .h { height: 64px; font-size: .7rem; color: var(--muted); text-align: end; padding: .15rem .5rem 0 0; border-bottom: 1px dashed #F1ECE4; }
html[dir=rtl] .board .gutter .h { padding: .15rem 0 0 .5rem; }
.board .lane { position: relative; border-inline-start: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 63px, #F4EFE8 63px, #F4EFE8 64px); }
.board .job {
    position: absolute; inset-inline: 6px; border-radius: 12px; padding: .5rem .65rem; font-size: .78rem; overflow: hidden; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--c, var(--amber)); box-shadow: 0 4px 14px -8px rgba(0,0,0,.25);
    transition: transform .12s, box-shadow .12s;
}
.board .job:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); z-index: 3; }
.board .job .t { font-weight: 700; font-size: .72rem; color: var(--muted); }
.board .job .n { font-weight: 600; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .job .p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #555; }
.board .job.st-Completed { background: #F6FBF8; }
.board .job.st-InProgress { background: #FFF7F8; }
.board .job.st-Cancelled, .board .job.st-NoShow { opacity: .5; text-decoration: line-through; }
.board .now-line { position: absolute; inset-inline: 0; height: 2px; background: var(--coral); z-index: 4; }
.board .now-line::before { content: ""; position: absolute; inset-inline-start: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

/* kennel grid */
.kennels { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.kennel { border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 1rem; position: relative; min-height: 150px; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; }
.kennel:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kennel .kn { font-weight: 700; font-size: .82rem; display: flex; justify-content: space-between; align-items: center; }
.kennel .kt { font-size: .7rem; color: var(--muted); }
.kennel.free { background: repeating-linear-gradient(135deg, #FCFAF7, #FCFAF7 10px, #fff 10px, #fff 20px); border-style: dashed; }
.kennel.busy { border-color: #F7D9A0; background: linear-gradient(180deg, #FFF9EE, #fff); }
.kennel.due { border-color: #F4B7BE; background: linear-gradient(180deg, #FFF3F4, #fff); }
.kennel .pet { display: flex; gap: .6rem; align-items: center; margin-top: .75rem; }
.kennel .foot { margin-top: auto; padding-top: .6rem; font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; }
.occ-bar { height: 10px; border-radius: 10px; background: var(--sand); overflow: hidden; }
.occ-bar > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--amber), var(--coral)); }

/* timeline (boarding gantt) */
.gantt { overflow-x: auto; }
.gantt table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.gantt th, .gantt td { border-bottom: 1px solid #F3EEE7; font-size: .74rem; }
.gantt th.day { min-width: 46px; text-align: center; padding: .45rem .2rem; color: var(--muted); font-weight: 600; background: #FCFAF7; }
.gantt th.day.today { color: var(--coral); background: var(--coral-50); }
.gantt th.day.we { background: #F8F4EE; }
.gantt td.k { position: sticky; inset-inline-start: 0; background: #fff; z-index: 2; padding: .5rem .9rem; font-weight: 600; white-space: nowrap; border-inline-end: 1px solid var(--line); }
.gantt td.c { height: 40px; position: relative; padding: 0; border-inline-start: 1px dashed #F3EEE7; }
.gantt .bar { position: absolute; top: 6px; bottom: 6px; border-radius: 9px; color: #fff; font-size: .72rem; font-weight: 600; padding: 0 .5rem; display: flex; align-items: center; gap: .3rem; white-space: nowrap; overflow: hidden; z-index: 1; box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.gantt .bar.Reserved { background: linear-gradient(90deg, #6C5CE7, #8E7FF0); }
.gantt .bar.CheckedIn { background: linear-gradient(90deg, #F9AE32, #F08C2E); color: var(--ink); }
.gantt .bar.CheckedOut { background: linear-gradient(90deg, #9C97A3, #B8B3BE); }

/* groomer mobile */
.jobcard { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1rem; }
.jobcard .top { padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #1a1a21, #0F0F13); color: #fff; }
.jobcard .top .time { font-size: 1.3rem; font-weight: 700; color: var(--amber); }
.jobcard .body { padding: 1rem 1.1rem; }
.jobcard .acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; padding: 0 1.1rem 1.1rem; }
.jobcard .acts .btn { padding: .8rem .5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.photo-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .tag { position: absolute; top: 6px; inset-inline-start: 6px; background: rgba(15,15,19,.75); color: #fff; font-size: .62rem; padding: .1rem .45rem; border-radius: 6px; font-weight: 600; }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.25rem; height: calc(100vh - 68px - 3.5rem); }
.pos .catalog { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pos .cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .75rem; scrollbar-width: none; }
.pos .cats button { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem .9rem; font-weight: 600; font-size: .82rem; color: var(--muted); }
.pos .cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos .grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; align-content: start; padding: 2px; }
.pos .prod { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .8rem; cursor: pointer; transition: transform .1s, border-color .1s, box-shadow .1s; display: flex; flex-direction: column; gap: .35rem; user-select: none; }
.pos .prod:hover { border-color: var(--amber); box-shadow: 0 8px 20px -12px rgba(249,174,50,.9); }
.pos .prod:active { transform: scale(.97); }
.pos .prod .img { height: 70px; border-radius: 12px; background: linear-gradient(135deg, var(--amber-50), #FFF0D6); display: grid; place-items: center; font-size: 1.8rem; color: var(--amber-600); overflow: hidden; }
.pos .prod .img img { width: 100%; height: 100%; object-fit: cover; }
.pos .prod .nm { font-weight: 600; font-size: .8rem; line-height: 1.25; height: 2.5em; overflow: hidden; }
.pos .prod .pr { font-weight: 700; color: var(--coral); }
.pos .prod .st { font-size: .68rem; color: var(--muted); }
.pos .prod.out { opacity: .45; }
.pos .cart { background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow); }
.pos .cart .lines { flex: 1; overflow-y: auto; padding: .5rem 1rem; }
.pos .cline { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.pos .cline .q { display: flex; align-items: center; gap: .25rem; }
.pos .cline .q button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; line-height: 1; }
.pos .cline .q input { width: 44px; text-align: center; border: 1px solid var(--line); border-radius: 8px; height: 26px; font-size: .82rem; }
.pos .totals { padding: 1rem; border-top: 1px solid var(--line); background: #FCFAF7; border-radius: 0 0 20px 20px; }
.pos .totals .row2 { display: flex; justify-content: space-between; font-size: .88rem; padding: .15rem 0; }
.pos .totals .grand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.pay-methods input { display: none; }
.pay-methods label { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .2rem; text-align: center; font-size: .74rem; font-weight: 600; cursor: pointer; background: #fff; }
.pay-methods label i { display: block; font-size: 1.15rem; margin-bottom: .1rem; }
.pay-methods input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }

/* profile header */
.profile { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.profile .meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .6rem; }
.profile .meta div { font-size: .8rem; color: var(--muted); }
.profile .meta b { display: block; color: var(--text); font-size: 1.05rem; }
.pet-card { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: #fff; transition: box-shadow .12s, transform .12s; height: 100%; display: block; }
.pet-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; background: var(--sand); color: #6b6470; border-radius: 8px; padding: .12rem .45rem; margin: .1rem .1rem 0 0; }
.tag-coral { background: var(--coral-50); color: var(--coral); }
.tag-amber { background: var(--amber-50); color: #B7750A; }
.tag-teal { background: var(--teal-50); color: var(--teal); }

/* service picker */
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.svc-pick label { border: 1px solid var(--line); border-radius: 14px; padding: .65rem .8rem; cursor: pointer; display: flex; gap: .6rem; align-items: center; background: #fff; transition: border-color .1s, background .1s; }
.svc-pick input { display: none; }
.svc-pick input:checked + label { border-color: var(--amber); background: var(--amber-50); box-shadow: inset 0 0 0 1px var(--amber); }
.svc-pick .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--amber-600); flex-shrink: 0; }
.svc-pick .nm { font-weight: 600; font-size: .82rem; line-height: 1.2; }
.svc-pick .pr { font-size: .74rem; color: var(--muted); }
.pet-pick { display: flex; gap: .5rem; flex-wrap: wrap; }
.pet-pick input { display: none; }
.pet-pick label { border: 1px solid var(--line); border-radius: 14px; padding: .5rem .8rem; cursor: pointer; display: flex; gap: .5rem; align-items: center; background: #fff; font-weight: 600; font-size: .85rem; }
.pet-pick input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; }
.slot-grid input { display: none; }
.slot-grid label { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: .45rem 0; font-size: .8rem; font-weight: 600; cursor: pointer; background: #fff; }
.slot-grid label.taken { background: #F4F1F5; color: #B8B2BD; text-decoration: line-through; cursor: not-allowed; }
.slot-grid input:checked + label { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; top: 100%; inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1060; max-height: 320px; overflow-y: auto; display: none; margin-top: 4px; }
.ac-list.show { display: block; }
.ac-list a { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid #F4EFE8; cursor: pointer; }
.ac-list a:hover, .ac-list a.hl { background: var(--amber-50); }

/* toasts */
.toast-pb { position: fixed; bottom: 1.5rem; inset-inline-end: 1.5rem; z-index: 2000; background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; font-weight: 500; animation: toastIn .3s ease; max-width: 420px; }
.toast-pb.err { background: var(--coral); }
.toast-pb i { color: var(--amber); font-size: 1.2rem; }
.toast-pb.err i { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* modal */
.modal-content { border-radius: 22px; border: 0; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; }
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-body { padding: 1.25rem 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); padding: .9rem 1.4rem; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 10px; padding: .5rem .75rem; font-size: .88rem; display: flex; gap: .6rem; align-items: center; }
.dropdown-item i { color: var(--amber-600); }
.dropdown-item:active { background: var(--amber); color: var(--ink); }

/* reports hub */
.rep-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .12s, box-shadow .12s; }
.rep-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.rep-tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.rep-tile h4 { font-size: .95rem; font-weight: 600; margin: 0 0 .2rem; }
.rep-tile p { font-size: .78rem; color: var(--muted); margin: 0; }

/* settings hub */
.set-tile { display: flex; align-items: center; gap: .85rem; padding: 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: all .12s; }
.set-tile:hover { border-color: var(--amber); box-shadow: var(--shadow); color: var(--text); }
.set-tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; }
.set-tile .c { margin-inline-start: auto; font-weight: 700; color: var(--muted); }

/* misc */
.divider { height: 1px; background: var(--line); margin: 1rem 0; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .45rem 1rem; font-size: .88rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; }
.bar-mini { height: 8px; border-radius: 6px; background: var(--sand); overflow: hidden; min-width: 60px; }
.bar-mini > span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--coral)); border-radius: 6px; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.chart-box.lg { height: 320px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .35rem; }
.stat-inline { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat-inline div { font-size: .76rem; color: var(--muted); }
.stat-inline b { display: block; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.timeline-pb { position: relative; padding-inline-start: 1.4rem; }
.timeline-pb::before { content: ""; position: absolute; inset-inline-start: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--line); }
.timeline-pb .ev { position: relative; padding-bottom: 1rem; }
.timeline-pb .ev::before { content: ""; position: absolute; inset-inline-start: -1.2rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); }
.timeline-pb .ev .t { font-size: .72rem; color: var(--muted); }
.fc { --fc-border-color: var(--line); --fc-today-bg-color: #FFF8EC; --fc-button-bg-color: #fff; --fc-button-border-color: var(--line); --fc-button-text-color: var(--text); --fc-button-active-bg-color: var(--ink); --fc-button-active-border-color: var(--ink); --fc-button-hover-bg-color: var(--amber-50); --fc-button-hover-border-color: var(--amber); --fc-event-border-color: transparent; font-size: .82rem; }
.fc .fc-button { border-radius: 10px !important; font-weight: 600; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 700; }
.fc .fc-event { border-radius: 8px; padding: 1px 3px; cursor: pointer; }
.fc .fc-col-header-cell-cushion { font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }

/* print */
.print-only { display: none; }
@media print {
    .pb-sidebar, .pb-top, .no-print, .page-head .actions { display: none !important; }
    .pb-main { margin: 0 !important; }
    .pb-content { padding: 0 !important; }
    body { background: #fff; }
    .card-pb { box-shadow: none; border: 0; }
    .print-only { display: block; }
}

/* ---------------- auth ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; color: #fff;
    background: radial-gradient(70% 60% at 80% 20%, rgba(249,174,50,.55), rgba(249,174,50,0) 60%),
                radial-gradient(60% 60% at 10% 90%, rgba(228,72,86,.5), rgba(228,72,86,0) 60%), linear-gradient(135deg, #17171d, #0B0B0E);
}
.auth .art .char { width: min(420px, 70%); align-self: center; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.auth .art h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.auth .art p { color: #D1CCD8; max-width: 460px; }
.auth .art .feat { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.auth .art .feat span { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 30px; padding: .35rem .85rem; font-size: .8rem; }
.auth .form-side { display: grid; place-items: center; padding: 2rem; }
.auth .box { width: 100%; max-width: 400px; }
.auth .box h2 { font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; }

/* ---------------- responsive ---------------- */
@media (max-width: 1199.98px) {
    .pos { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991.98px) {
    .pb-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    html[dir=rtl] .pb-sidebar { transform: translateX(100%); }
    body.nav-open .pb-sidebar { transform: none; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,15,19,.45); z-index: 1035; }
    .pb-main { margin-inline-start: 0; }
    .pb-burger { display: grid; }
    .pb-top { padding: 0 1rem; }
    .pb-content { padding: 1.1rem; }
    .user-chip .nm, .user-chip .rl { display: none; }
    .pos { grid-template-columns: 1fr; height: auto; }
    .pos .cart { min-height: 480px; }
    .auth { grid-template-columns: 1fr; }
    .auth .art { display: none; }
    .hero .char { display: none; }
}
@media (max-width: 575.98px) {
    .pb-top .search kbd { display: none; }
    .page-head h1 { font-size: 1.3rem; }
    .dl { grid-template-columns: 110px 1fr; }
    .kpi .val { font-size: 1.35rem; }
}

/* RTL: directional icons point the reading way */
html[dir=rtl] .bi-chevron-right, html[dir=rtl] .bi-chevron-left, html[dir=rtl] .bi-arrow-right, html[dir=rtl] .bi-arrow-up-right,
html[dir=rtl] .bi-arrow-down-right, html[dir=rtl] .bi-box-arrow-right, html[dir=rtl] .bi-box-arrow-in-right, html[dir=rtl] .bi-sign-turn-right { display: inline-block; transform: scaleX(-1); }
html[dir=rtl] .num, html[dir=rtl] input[type=number], html[dir=rtl] input[type=tel] { direction: ltr; unicode-bidi: plaintext; }
html[dir=rtl] .form-select { background-position: left .75rem center; padding-left: 2.25rem; padding-right: .8rem; }
@media (max-width: 575.98px) {
    .pb-top .search { display: none; }
    .pb-top .tools { gap: .35rem; }
}
