/* ============================================================
   القواس ماركت — لوحة التحكم
   هوية موحّدة مستخرجة من design/dashboard.html + foundations.html
   بني #8B5E2B · أصفر #FFDD00 · كريمي #FAF6ED · Cairo
   ============================================================ */

:root {
    --brown-950: #291B0C;
    --brown-900: #3E2A12;
    --brown-800: #4E3413;
    --brown-700: #6B481F;
    --brown-600: #8B5E2B;
    --brown-500: #A6763C;
    --brown-100: #F1E7D4;
    --brown-50: #F8F3E9;
    --yellow-500: #FFDD00;
    --yellow-100: #FFF7C2;
    --cream: #FAF6ED;
    --ink: #2D2014;
    --ink2: #7A6A54;
    --line: #ECE3D2;
    --ok: #2E9E5B;
    --ok-bg: #E7F5EC;
    --warn: #D97C0B;
    --warn-bg: #FBF0DC;
    --bad: #D64550;
    --bad-bg: #FBE9EA;
    --info: #2F669F;
    --info-bg: #E7F0FA;
    --teal: #1E7D74;
    --teal-bg: #E1F3F0;
    --shadow-warm: rgba(61, 42, 18, .18);
}

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

html { direction: rtl; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--cream);
    color: var(--ink);
    direction: rtl;
    min-height: 100vh;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--yellow-500); color: var(--brown-900); }

/* ============ الهيكل العام ============ */

.adm-shell { display: flex; min-height: 100vh; }

.adm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adm-body {
    padding: 24px 28px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ============ السايدبار ============ */

.side {
    width: 252px;
    background: linear-gradient(180deg, #33220E 0%, #291B0C 100%);
    color: #D8C9AE;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.side .brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.side .mark {
    width: 50px;
    height: 50px;
    background: var(--brown-600);
    border-radius: 15px;
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
}

.side .mark svg { width: 25px; height: 25px; }

.side .mark b {
    position: absolute;
    bottom: -8px;
    right: -6px;
    font-size: 16px;
    font-weight: 900;
    color: var(--brown-600);
    background: var(--yellow-500);
    border-radius: 50%;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 2px solid #33220E;
}

.side .brand b.n { font-size: 17px; font-weight: 900; color: #fff; display: block; line-height: 1.3; }
.side .brand span.s { font-size: 10.5px; font-weight: 700; color: var(--yellow-500); }

.side nav { padding: 14px 6px; display: flex; flex-direction: column; gap: 3px; flex: 1; }

.side nav .lbl {
    font-size: 10px;
    font-weight: 800;
    color: #8A7A5F;
    padding: 12px 12px 6px;
    letter-spacing: .5px;
}

.side nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10.5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #C9B99C;
    position: relative;
    transition: background .15s;
}

.side nav a:hover { background: rgba(255, 255, 255, .05); }

.side nav a.on {
    background: linear-gradient(270deg, rgba(255, 221, 0, .13), transparent);
    color: var(--yellow-500);
}

.side nav a.on::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 8px;
    bottom: 8px;
    width: 3.5px;
    border-radius: 99px;
    background: var(--yellow-500);
}

.side nav a i { font-style: normal; width: 21px; display: grid; place-items: center; flex-shrink: 0; }
.side nav a i svg { width: 16px; height: 16px; }

.side .foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.side .foot .av {
    width: 38px;
    height: 38px;
    border-radius: 99px;
    background: var(--brown-600);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.side .foot b { font-size: 12px; font-weight: 800; color: #fff; display: block; }
.side .foot span { font-size: 10px; color: #8A7A5F; font-weight: 600; }

.side .foot .out {
    margin-right: auto;
    color: #8A7A5F;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    transition: .15s;
}

.side .foot .out:hover { color: var(--bad); background: rgba(214, 69, 80, .12); }

/* ============ التوب بار ============ */

.adm-top {
    min-height: 72px;
    background: #fff;
    border-bottom: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 28px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.adm-top .t h2 { font-size: 19px; font-weight: 900; color: var(--brown-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-top .t span { font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.adm-top .acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.store-tgl {
    display: flex;
    gap: 9px;
    align-items: center;
    background: var(--ok-bg);
    border-radius: 99px;
    padding: 7px 14px;
}

.store-tgl.closed { background: var(--bad-bg); }

.store-tgl span { font-size: 11.5px; font-weight: 800; color: #1F7A46; }
.store-tgl.closed span { color: #C43B45; }

.tb-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--cream);
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    position: relative;
    color: var(--brown-700);
}

.tb-icon b {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--bad);
    color: #fff;
    font-size: 9px;
    border-radius: 99px;
    padding: 1px 5px;
    font-weight: 800;
}

.av2 {
    width: 42px;
    height: 42px;
    border-radius: 99px;
    background: var(--brown-600);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* ============ الأزرار ============ */

.btn {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    border-radius: 13px;
    padding: 10.5px 20px;
    font-weight: 800;
    font-size: 13px;
    background: var(--brown-600);
    color: #fff;
    transition: .15s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.btn.acc { background: var(--yellow-500); color: var(--brown-900); }
.btn.out { background: #fff; color: var(--brown-700); box-shadow: inset 0 0 0 1.6px #DCCBAA; }
.btn.gho { background: transparent; color: var(--brown-700); }
.btn.dgr { background: var(--bad-bg); color: #C43B45; }
.btn.okg { background: var(--ok-bg); color: #1F7A46; }
.btn.sm { padding: 7px 14px; font-size: 12px; border-radius: 11px; }

.btn.acc:hover { background: #FFE733; }

/* ============ الشرائح chips ============ */

.chip {
    border-radius: 99px;
    padding: 3.5px 11px;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    vertical-align: middle;
}

.st-pending { background: var(--warn-bg); color: #B26A05; }
.st-confirmed { background: var(--teal-bg); color: var(--teal); }
.st-preparing { background: var(--brown-100); color: var(--brown-700); }
.st-out { background: var(--info-bg); color: var(--info); }
.st-delivered { background: var(--ok-bg); color: #1F7A46; }
.st-cancelled { background: var(--bad-bg); color: #C43B45; }

.pay-paid { background: var(--ok-bg); color: #1F7A46; }
.pay-unpaid { background: var(--brown-100); color: var(--brown-700); }
.pay-refunded { background: var(--bad-bg); color: #C43B45; }

.chip-guest { background: var(--brown-100); color: var(--brown-700); font-size: 9px; }
.chip-muted { background: #F2EBDC; color: #9A8A70; }

/* ============ الكروت ============ */

.card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}

.card-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--brown-900);
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1.5px solid var(--line);
    flex-wrap: wrap;
}

/* ============ الجداول ============ */

.tbl-wrap {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    overflow: auto;
}

table.tb { width: 100%; border-collapse: collapse; background: #fff; }

.tb th {
    background: #F4EDDD;
    font-size: 11px;
    color: #7A6A54;
    font-weight: 800;
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1.5px solid var(--line);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.tb td {
    padding: 11.5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 1px solid #F2EBDC;
    color: #33261A;
    white-space: nowrap;
    vertical-align: middle;
}

.tb tr:last-child td { border-bottom: none; }
.tb tbody tr:hover td { background: #FCFAF3; }
.tb tr.row-pending td { background: #FFFDF0; }
.tb tr.row-pending:hover td { background: #FFF9E0; }
.tb tr.row-off td { opacity: .55; }
.tb td .num { direction: ltr; unicode-bidi: embed; }

.empty {
    text-align: center;
    color: #9A8A70;
    font-weight: 700;
    font-size: 13px;
    padding: 46px 20px;
}

/* ============ التييلز والأفاتار ============ */

.tile {
    display: inline-grid;
    place-items: center;
    width: 1.9em;
    height: 1.9em;
    border-radius: .45em;
    font-weight: 800;
    color: #6E5B41;
}

.t1 { background: #EFE5D0; }
.t2 { background: #E2EAD8; }
.t3 { background: #F0E0D6; }
.t4 { background: #E4E7E0; }
.t5 { background: #F2E8D8; }
.t6 { background: #E0E8EA; }

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 99px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
}

.pmini {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F6EFDF;
    color: #6E5B41;
}

.pmini img { width: 100%; height: 100%; object-fit: cover; }

.av-a { background: #EFE5D0; color: #8A6D2F; }
.av-b { background: #E2EAD8; color: #4A6B3A; }
.av-c { background: #F0E0D6; color: #9A5B3C; }
.av-d { background: #E4E7E0; color: #5B6470; }
.av-e { background: #F2E8D8; color: #8A6D2F; }
.av-f { background: #E0E8EA; color: #3E6B74; }

.av-seq { list-style: none; display: contents; }

/* ============ الإحصائيات ============ */

.stats-row { display: flex; gap: 16px; flex-wrap: wrap; }

.stat {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 170px;
}

.stat .ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.stat .ic svg { width: 22px; height: 22px; }

.stat h4 { font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.stat b { font-size: 25px; font-weight: 900; color: var(--ink); line-height: 1; }
.stat .delta { font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }

/* ============ التبويبات ============ */

.tabs {
    display: flex;
    background: #F0E9D8;
    border-radius: 14px;
    padding: 4px;
    gap: 3px;
    flex-wrap: wrap;
    width: fit-content;
}

.tabs a {
    font-size: 12px;
    font-weight: 800;
    color: #8A7A5F;
    padding: 8px 16px;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tabs a.on {
    background: #fff;
    color: var(--brown-800);
    box-shadow: 0 3px 8px -3px var(--shadow-warm);
}

/* ============ البحث ============ */

.srch {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    max-width: 420px;
    min-width: 220px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    padding: 9px 15px;
    font-size: 12.5px;
    color: #9A8A70;
    font-weight: 600;
}

.srch input {
    border: none;
    outline: none;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    width: 100%;
    background: transparent;
}

.srch input::placeholder { color: #B3A288; font-weight: 600; }
.srch:focus-within { border-color: var(--brown-500); }

/* ============ الحقول ============ */

.field { display: flex; flex-direction: column; gap: 7px; }

.field > label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #52380F;
}

.inp input,
.inp select,
.inp textarea {
    width: 100%;
    background: #fff;
    border: 1.6px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.inp textarea { resize: vertical; min-height: 76px; line-height: 1.8; }

.inp input:focus,
.inp select:focus,
.inp textarea:focus {
    border-color: var(--brown-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 94, 43, .13);
}

.inp input::placeholder, .inp textarea::placeholder { color: #B3A288; font-weight: 600; }

.inp .hint { font-size: 10.5px; color: #9A8A70; font-weight: 600; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }

/* بطاقات اختيار (راديو بستايل mockup) */
.pick { display: flex; gap: 12px; flex-wrap: wrap; }
.pick label {
    flex: 1;
    min-width: 150px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    position: relative;
    transition: .15s;
    display: block;
}
.pick label .tick {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 19px;
    height: 19px;
    border-radius: 99px;
    background: #EFE6D3;
    display: grid;
    place-items: center;
    color: transparent;
    transition: .15s;
}
.pick label b { font-size: 13px; font-weight: 800; display: block; margin-top: 4px; }
.pick label span.d { font-size: 10.5px; color: #9A8A70; font-weight: 600; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick input:checked + label,
.pick label:has(input:checked) {
    border: 2px solid var(--brown-600);
    background: #FDF9EF;
}
.pick label:has(input:checked) .tick { background: var(--brown-600); color: var(--yellow-500); }

/* ============ السويتش ============ */

.sw {
    width: 42px;
    height: 23px;
    border-radius: 99px;
    background: var(--ok);
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    border: none;
    cursor: pointer;
    transition: background .18s;
}

.sw i {
    position: absolute;
    top: 2.5px;
    right: 22px;
    width: 18px;
    height: 18px;
    border-radius: 99px;
    background: #fff;
    display: block;
    transition: right .18s;
}

.sw.off { background: #C9BFA9; }
.sw.off i { right: 2.5px; }

.sw.sm-sw { width: 38px; height: 21px; }
.sw.sm-sw i { right: 19px; width: 17px; height: 17px; }
.sw.sm-sw.off i { right: 2.5px; }

/* سويتش لربط input checkbox حقيقي */
.sw-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.sw-check input { position: absolute; opacity: 0; pointer-events: none; }
.sw-check .sw { background: #C9BFA9; }
.sw-check .sw i { right: 2.5px; }
.sw-check input:checked ~ .sw { background: var(--ok); }
.sw-check input:checked ~ .sw i { right: 22px; }

/* ============ صفوف التبديل tglrow ============ */

.tglrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 13px 16px;
}

.tglrow b.t { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tglrow span.d { font-size: 10.5px; color: #9A8A70; font-weight: 600; display: block; margin-top: 2px; }

/* ============ حقول الأسعار السريعة ============ */

.price-in {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #FFFBEA;
    border: 1.8px solid var(--yellow-500);
    border-radius: 11px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    color: var(--brown-800);
    width: 140px;
}

.price-in input {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 900;
    color: var(--brown-800);
    width: 100%;
    outline: none;
    direction: ltr;
    text-align: right;
}

.price-in input::-webkit-outer-spin-button,
.price-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-in input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.price-in i { font-style: normal; font-size: 10px; color: #9A8A70; font-weight: 700; white-space: nowrap; }
.price-in.old { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.price-in.old input { color: var(--ink); font-weight: 800; }

/* ============ شريط الحفظ العائم ============ */

.savebar {
    position: fixed;
    bottom: 24px;
    right: 28px;
    left: 28px;
    background: var(--brown-900);
    border-radius: 17px;
    padding: 14px 22px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 46px -12px rgba(41, 27, 12, .6);
    z-index: 50;
    flex-wrap: wrap;
}

.savebar.show { display: flex; }

.savebar .cnt {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #fff;
}

.savebar .cnt .n {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--yellow-500);
    color: var(--brown-900);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 900;
}

.savebar .cnt b { font-size: 13px; font-weight: 800; display: block; }
.savebar .cnt span { font-size: 10.5px; color: #B3A288; font-weight: 600; }
.savebar .acts { display: flex; gap: 9px; }
.savebar .btn.ghostw { background: rgba(255, 255, 255, .14); color: #fff; }

/* ============ التايم لاين ============ */

.timeline { display: flex; flex-direction: column; }

.timeline .step { display: flex; gap: 11px; }

.timeline .rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

.timeline .dot {
    width: 24px;
    height: 24px;
    border-radius: 99px;
    background: var(--brown-600);
    color: var(--yellow-500);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.timeline .dot svg { width: 12px; height: 12px; }

.timeline .dot.off { background: #EFE6D3; color: #B3A288; }
.timeline .dot.bad { background: var(--bad); color: #fff; }

.timeline .cord { width: 2.4px; height: 30px; background: #E4D8C0; display: block; flex: 1; min-height: 26px; }

.timeline .step-body { padding-bottom: 14px; min-width: 0; }
.timeline .step-body b { font-size: 12px; font-weight: 800; display: block; }
.timeline .step-body span { font-size: 10.5px; color: #9A8A70; font-weight: 600; }
.timeline .step.off .step-body b { color: #B3A288; }
.timeline .step.off .step-body span { color: #C2B294; }

/* ============ التنبيهات ============ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.8;
}

.alert.ok { background: var(--ok-bg); color: #1F7A46; border: 1.5px solid #BBD9C6; }
.alert.bad { background: var(--bad-bg); color: #C43B45; border: 1.5px solid #F0C6CA; }
.alert.info { background: var(--info-bg); color: var(--info); border: 1.5px solid #C4D8EC; }
.alert ul { list-style: none; }

/* ============ الباجينيشن ============ */

.pg { display: flex; gap: 5px; align-items: center; justify-content: center; flex-wrap: wrap; }

.pg > * {
    min-width: 33px;
    height: 33px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #7A6A54;
    background: #fff;
    border: 1.5px solid var(--line);
    padding: 0 6px;
}

.pg a:hover { border-color: var(--brown-500); color: var(--brown-700); }
.pg .on { background: var(--brown-600); color: #fff; border-color: var(--brown-600); }
.pg .dots { border: none; background: transparent; }
.pg .is-off { opacity: .45; pointer-events: none; }

.pg-meta { font-size: 11.5px; color: #9A8A70; font-weight: 600; }

/* ============ أشكال مساعدة ============ */

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 16px; }
.spacer { flex: 1; }
.muted { color: #9A8A70; }
.mono { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }
.price { font-variant-numeric: tabular-nums; font-weight: 800; }
.flex-1 { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* كارت الحالة البني (حالة المتجر) */
.store-card {
    background: var(--brown-600);
    border: none;
    color: #fff;
}

.store-card .pulse {
    width: 16px;
    height: 16px;
    border-radius: 99px;
    background: var(--ok);
    display: block;
    box-shadow: 0 0 0 4px rgba(46, 158, 91, .2);
    flex-shrink: 0;
}

.store-card .pulse.off { background: var(--bad); box-shadow: 0 0 0 4px rgba(214, 69, 80, .25); }

/* كارت الإجراء السريع */
.quick-card {
    background: linear-gradient(160deg, #fff, #FFFBEB);
    border-color: #EFDFA8;
}

/* ============ الأيقونات ============ */

.ic {
    width: 1.05em;
    height: 1.05em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.16em;
    flex-shrink: 0;
}

.cd { width: 6px; height: 6px; border-radius: 99px; background: currentColor; display: inline-block; flex-shrink: 0; }

/* ============ الشاشات الصغيرة ============ */

@media (max-width: 1024px) {
    .side { width: 76px; padding: 20px 10px 16px; }
    .side .brand b.n, .side .brand span.s, .side nav .lbl, .side nav a span.txt, .side .foot .who { display: none; }
    .side nav a { justify-content: center; padding: 12px; }
    .side .brand { justify-content: center; padding-inline: 0; }
    .side .foot { flex-direction: column; gap: 8px; }
    .adm-body { padding: 18px 16px 34px; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .adm-top { padding: 12px 16px; }
    .stats-row .stat { min-width: 140px; }
}

/* ============ الطباعة ============ */

@media print {
    .side, .adm-top, .no-print, .savebar { display: none !important; }
    .adm-body { padding: 0; }
    body { background: #fff; }
}
