/* =========================================================
   لوحة الإدارة — هيكل بقائمة جانبية
   ========================================================= */
:root {
    --ink: #17222D;
    --ink-2: #213141;
    --side: #121B24;
    --surface: #F1F3F5;
    --card: #FFFFFF;
    --line: #DCE1E6;
    --line-soft: #EEF1F4;
    --muted: #5B6B7A;
    --faint: #8593A0;
    --ok: #2E7D5B;   --ok-bg: #E4F2EA;
    --info: #2F6FB0; --info-bg: #E5EEF8;
    --warn: #9A6412; --warn-bg: #FBF0DC;
    --bad: #B23B3B;  --bad-bg: #FBE7E7;
    --teal: #1E8A86; --teal-bg: #E1F2F1;
    --accent: #5A55C9;
    --font: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --side-w: 248px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.adm {
    font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink);
    background: var(--surface); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel, .trend { position: relative; }
bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---------- Sidebar ---------- */
.adm-side {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w);
    background: var(--side); color: #C9D3DC; display: flex; flex-direction: column;
    padding: 20px 14px; z-index: 30;
}
.adm-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.adm-brand__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.adm-brand b { display: block; color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.adm-brand small { color: #7F8E9C; font-size: 12.5px; }
.adm-nav { display: grid; gap: 2px; margin-top: 18px; }
.adm-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: #AEBAC5; }
.adm-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.adm-nav a.is-on { background: rgba(255,255,255,.08); color: #fff; font-weight: 700; box-shadow: inset -3px 0 0 var(--accent); }
.adm-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.adm-me__avatar { width: 36px; height: 36px; border-radius: 50%; background: #2A3947; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.adm-me__who { min-width: 0; flex: 1; }
.adm-me__who b { display: block; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-me__who small { display: block; color: #7F8E9C; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.adm-me__out { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: #AEBAC5; cursor: pointer; display: grid; place-items: center; }
.adm-me__out:hover { background: rgba(255,255,255,.08); color: #fff; }

.adm-main { margin-inline-start: var(--side-w); padding: 28px clamp(18px, 3vw, 40px) 64px; max-width: calc(1240px + var(--side-w)); }

@media (max-width: 980px) {
    .adm-side { position: sticky; top: 0; width: auto; inset: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; }
    .adm-brand { border: 0; padding: 0; }
    .adm-brand span:last-child { display: none; }
    .adm-nav { display: flex; margin: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
    .adm-nav::-webkit-scrollbar { display: none; }
    .adm-nav a { padding: 8px 11px; white-space: nowrap; font-size: 14px; }
    .adm-nav a .ico { display: none; }
    .adm-nav a.is-on { box-shadow: inset 0 -2px 0 var(--accent); }
    .adm-me { margin: 0; padding: 0; border: 0; }
    .adm-me__avatar, .adm-me__who { display: none; }
    .adm-main { margin: 0; padding: 22px 16px 56px; }
}

/* ---------- Buttons ---------- */
.abtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px;
    border-radius: 10px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
    font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.abtn .ico { width: 18px; height: 18px; }
.abtn:hover { background: #000; }
.abtn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.abtn--line:hover { border-color: var(--ink); background: #fff; }
.abtn.is-off { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.adm-head h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.3; }
.adm-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.adm-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.block { margin-bottom: 22px; }
.block__title { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }

/* ---------- Attention ---------- */
.att { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.att__item {
    --tone: var(--muted); --tone-bg: var(--line-soft);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 12px;
    transition: border-color .15s;
}
.att__item:hover { border-color: var(--tone); }
.att__item--warn  { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.att__item--bad   { --tone: var(--bad);  --tone-bg: var(--bad-bg); }
.att__item--info  { --tone: var(--info); --tone-bg: var(--info-bg); }
.att__item--muted { --tone: var(--ink-2); --tone-bg: var(--line-soft); }
.att__item--clear { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.att__count {
    min-width: 50px; height: 50px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center;
    background: var(--tone-bg); color: var(--tone); font-size: 22px; font-weight: 800;
}
.att__text b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.att__text small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.att__item--clear .att__text small { color: var(--ok); }
.att__go { color: var(--faint); width: 18px; height: 18px; }
@media (max-width: 1180px) { .att { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .att { grid-template-columns: 1fr; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-inline-start: 1px solid var(--line-soft); }
.kpi:first-child { border-inline-start: 0; }
.kpi__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi__value { font-size: clamp(28px, 2.8vw, 34px); font-weight: 800; line-height: 1.2; }
.kpi__value small { font-size: 15px; font-weight: 500; color: var(--muted); }
.kpi__foot { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.kpi__bar { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin: 4px 0 2px; }
.kpi__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.delta span { font-size: 9px; }
.delta--up { background: var(--ok-bg); color: var(--ok); }
.delta--down { background: var(--bad-bg); color: var(--bad); }
.delta--flat, .delta--none { background: var(--line-soft); color: var(--muted); font-weight: 500; }
@media (max-width: 1100px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .kpi:nth-child(3) { border-inline-start: 0; }
    .kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
    .kpis { grid-template-columns: 1fr; }
    .kpi { border-inline-start: 0 !important; }
    .kpi + .kpi { border-top: 1px solid var(--line-soft); }
}

/* ---------- Panels ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid--wide { grid-template-columns: 1.55fr 1fr; }
@media (max-width: 1100px) { .grid, .grid--wide { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.panel--flush { padding: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__head h2 { font-size: 17px; font-weight: 700; }
.panel__meta { font-size: 13px; color: var(--muted); }
.panel__link { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); align-self: flex-start; }
.panel__link:hover { text-decoration: underline; }
.empty { color: var(--muted); font-size: 14.5px; padding: 18px 0; }

/* trend chart */
.trend { position: relative; display: grid; grid-template-rows: 200px auto; padding-inline-end: 30px; }
.trend__grid { position: absolute; top: 0; inset-inline: 0 30px; height: 200px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.trend__grid span { position: relative; border-top: 1px dashed var(--line-soft); }
.trend__grid span:last-child { border-top: 1px solid var(--line); }
.trend__grid span::after { content: attr(data-v); position: absolute; inset-inline-end: -28px; top: -9px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.trend__bars { display: flex; align-items: flex-end; gap: 2px; height: 200px; position: relative; }
.trend__col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.trend__col i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 70%, #fff); border-radius: 4px 4px 0 0; transition: background-color .1s; }
.trend__col.is-today i { background: var(--accent); }
.trend__col:hover i, .trend__col:focus-visible i { background: var(--ink); }
.trend__col::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
    padding: 4px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2;
}
.trend__col:hover::after, .trend__col:focus-visible::after { opacity: 1; }
.trend__col:focus-visible { outline: none; }
.trend__x { display: flex; gap: 2px; margin-top: 8px; }
.trend__x span { flex: 1; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: visible; text-align: center; }

/* pipeline */
.pipe { display: flex; gap: 2px; height: 14px; margin-bottom: 18px; }
.pipe i { display: block; min-width: 4px; }
.pipe i:first-child { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.pipe i:last-child { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.legend { list-style: none; display: grid; }
.legend a { display: grid; grid-template-columns: 12px 1fr auto 48px; align-items: center; gap: 10px; padding: 7px 8px; margin-inline: -8px; border-radius: 8px; font-size: 14.5px; }
.legend a:hover, .legend a.is-on { background: var(--surface); }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; }
.legend__pct { color: var(--faint); font-size: 13px; }
.legend__num { text-align: left; font-weight: 700; }

/* ranking */
.rank { list-style: none; display: grid; gap: 12px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) 40%  36px; align-items: center; gap: 12px; font-size: 14.5px; }
.rank__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank__bar { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.rank__bar i { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 70%, #fff); border-radius: 4px; }
.rank__num { text-align: left; font-weight: 700; }

/* mini table */
.mini { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mini th { padding-inline-end: 10px; text-align: start; font-size: 12.5px; font-weight: 600; color: var(--faint); padding: 0 0 8px; border-bottom: 1px solid var(--line-soft); }
.mini td { padding: 10px 0; padding-inline-end: 10px; border-bottom: 1px solid var(--line-soft); }
.mini tr:last-child td { border-bottom: 0; }
.mini th:nth-child(2), .mini td:nth-child(2) { width: 70px; }
.mini th:nth-child(3), .mini td:nth-child(3) { width: 130px; }
.rate { display: flex; align-items: center; gap: 8px; }
.rate__bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.rate__bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.rate bdi { width: 38px; font-size: 13px; color: var(--muted); }

/* ---------- Orders ---------- */
.orders-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px 0; flex-wrap: wrap; }
.orders-head h2 { font-size: 17px; font-weight: 700; }
.search { position: relative; width: min(320px, 100%); }
.search .ico { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search input { width: 100%; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 40px 0 12px; font-size: 14.5px; }
.search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.chips { display: flex; gap: 6px; padding: 14px 22px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chips a bdi { font-size: 12px; color: var(--faint); }
.chips a:hover { color: var(--ink); border-color: #B9C3CC; }
.chips a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.chips a.is-on bdi { color: #B9C4CE; }
.chips a.chip--alert { color: var(--bad); border-color: #EBC3C3; }
.chips a.chip--alert.is-on { background: var(--bad); border-color: var(--bad); color: #fff; }
.chips a.chip--alert.is-on bdi { color: #FBE7E7; }

.panel > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.orders { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 820px; }
.orders th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--faint); padding: 12px 14px; background: #FAFBFC; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.orders th:first-child, .orders td:first-child { padding-inline-start: 22px; }
.orders th:last-child, .orders td:last-child { padding-inline-end: 18px; }
.orders td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.orders tbody tr:last-child td { border-bottom: 0; }
.orders tbody tr:hover { background: #FAFBFC; }
.oid { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.oid:hover { color: var(--accent); }
.part { display: block; font-weight: 700; }
.car { display: block; font-size: 13px; color: var(--muted); }
.owner { display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-type { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 5px; margin-top: 2px; }
.owner-type--ws { background: #F6E9DD; color: #8A4C1C; }
.owner-type--cl { background: var(--teal-bg); color: var(--teal); }
.offers { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--info-bg); color: var(--info); font-weight: 700; font-size: 13.5px; }
.offers--none { background: transparent; color: var(--faint); }
.orders time { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.row-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--faint); }
.row-go:hover { background: var(--surface); color: var(--ink); }
.empty--big { padding: 48px 22px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.empty--big b { color: var(--ink); font-size: 16px; }
.empty--big a { color: var(--accent); font-weight: 700; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pager__btns { display: flex; gap: 6px; }
.pager .abtn { min-height: 36px; }

/* status pills (مطابقة لباقي المنصة) */
.status { display: inline-flex; align-items: center; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-soft); color: var(--ink); }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-processing, .status-searching_for_parts { background: var(--info-bg); color: var(--info); }
.status-in_transit { background: var(--teal-bg); color: var(--teal); }
.status-completed { background: var(--ok-bg); color: var(--ok); }
.status-cancelled, .status-parts_unavailable { background: var(--bad-bg); color: var(--bad); }

/* =========================================================
   مكوّنات صفحات الإدارة الداخلية
   ========================================================= */
.muted { color: var(--muted); }
.inline { display: inline; margin: 0; }
.adm-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.crumb .ico { width: 16px; height: 16px; }
.crumb:hover { color: var(--accent); }

/* flash */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; font-weight: 500; }
.flash .ico { width: 18px; height: 18px; }
.flash--ok { background: var(--ok-bg); color: #1E5A40; }
.flash--bad { background: var(--bad-bg); color: #7E2424; }

/* buttons */
.abtn--bad { background: var(--bad); border-color: var(--bad); }
.abtn--bad:hover { background: #8F2C2C; }
.abtn--danger-text { color: var(--bad); }
.abtn--danger-text:hover { border-color: var(--bad); }
.ibtn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.ibtn .ico { width: 18px; height: 18px; }
.ibtn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.ibtn--bad:hover { background: var(--bad-bg); border-color: #EBC3C3; color: var(--bad); }
.row-actions { display: inline-flex; gap: 2px; align-items: center; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.link-btn .ico { width: 17px; height: 17px; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { opacity: .5; }

/* list header: tabs + tools */
.list-head { display: flex; flex-direction: column; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.list-head--single { flex-direction: row; align-items: center; gap: 14px; }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.clear-link { font-size: 14px; color: var(--accent); font-weight: 700; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: -4px -6px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs a bdi { font-size: 12px; background: var(--line-soft); color: var(--muted); padding: 0 7px; border-radius: 6px; }
.tabs a:hover { color: var(--ink); background: var(--surface); }
.tabs a.is-on { color: var(--ink); font-weight: 700; background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 9px 9px 0 0; }
.tabs a.is-on bdi { background: var(--accent); color: #fff; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.seg a { padding: 5px 13px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23,34,45,.12); }

/* table extras */
.orders tr.is-muted td { color: var(--faint); }
.orders tr.is-muted .avatar { opacity: .5; }
.orders tr.is-win { background: #F3FAF6; }
.orders--compact { min-width: 640px; }
.orders--compact td { padding-block: 10px; }
.who { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.who b { display: block; font-weight: 700; line-height: 1.4; }
.who small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.who__mail { text-align: right; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who--link:hover b { color: var(--accent); }
.who--card { display: flex; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.who--card > .ico { margin-inline-start: auto; color: var(--faint); width: 18px; height: 18px; }
a.who--card:hover { border-color: var(--accent); }
.who-link:hover { color: var(--accent); }
.me-tag { display: inline-block !important; font-size: 11px !important; font-weight: 700; background: var(--line-soft); color: var(--muted) !important; padding: 0 6px; border-radius: 5px; margin-inline-start: 4px; vertical-align: middle; }
.loc { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc__map { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.tag-low { display: inline-block; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 0 6px; border-radius: 5px; margin-inline-start: 4px; }
.oid--lg { font-size: .62em; vertical-align: middle; margin-inline-end: 4px; padding: 2px 8px; background: var(--line-soft); border-radius: 7px; }

/* avatars & role tags */
.avatar {
    --av: var(--ink-2);
    display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px;
    background: var(--av); color: #fff; font-weight: 700; font-size: 15px;
}
.avatar .ico { width: 20px; height: 20px; }
.avatar--lg { width: 56px; height: 56px; border-radius: 14px; }
.avatar--lg .ico { width: 28px; height: 28px; }
.avatar--admin    { --av: #5A55C9; }
.avatar--support  { --av: #2F6FB0; }
.avatar--workshop { --av: #B8682A; }
.avatar--merchant { --av: #2E7D5B; }
.avatar--client   { --av: #1E8A86; }
.role { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.role--admin    { background: #ECEBFA; color: #4741A8; }
.role--support  { background: var(--info-bg); color: var(--info); }
.role--workshop { background: #F6E9DD; color: #8A4C1C; }
.role--merchant { background: var(--ok-bg); color: var(--ok); }
.role--client   { background: var(--teal-bg); color: var(--teal); }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state--on { color: var(--ok); }
.state--off { color: var(--faint); }
.state--warn { color: var(--warn); }
.state--bad { color: var(--bad); }

/* switch */
.switch {
    display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 0;
    font-size: 13px; font-weight: 600; color: var(--faint);
}
.switch__knob { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #C9D1D8; transition: background-color .15s; flex: none; }
.switch__knob::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.switch.is-on { color: var(--ok); }
.switch.is-on .switch__knob { background: var(--ok); }
.switch.is-on .switch__knob::after { inset-inline-start: 18px; }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.form-grid > .panel { gap: 0; }
.form-foot {
    grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px;
    position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--surface) 30%);
}
@media (max-width: 1000px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--faint); font-size: 12.5px; margin-inline-start: 4px; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 10px; border: 1.5px solid var(--line);
    background: #fff; font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C5CCD3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field__err { color: var(--bad); font-size: 13px; margin-top: 5px; }
.field__hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.field__hint a { color: var(--accent); font-weight: 700; }
.field__hint--warn { color: var(--warn); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 16px; } }
.pw { position: relative; }
.pw input { padding-inline-end: 70px; }
.pw__toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.pw__toggle:hover { background: var(--surface); color: var(--ink); }

.choices { border: 0; display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: #B9C3CC; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; font-size: 13px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice { border-color: #EBC3C3; }

/* maps */
.map { height: 300px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map--sm { height: 200px; }

/* detail pages */
.profile__row { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.panel__head--pad { padding: 18px 22px 0; margin-bottom: 12px; }
.panel__foot { padding: 12px 22px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.grid--detail { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 1100px) { .grid--detail { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; min-width: 0; }
.sub-title { font-size: 14px; font-weight: 700; color: var(--muted); margin: 20px 0 10px; }
.facts { display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14.5px; }
.facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.facts dt .ico { width: 16px; height: 16px; color: var(--faint); }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }
.facts--plain > div { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.facts--plain > div:last-child { border-bottom: 0; padding-bottom: 0; }
.note { margin: 12px 22px; padding: 12px 14px; background: var(--surface); border-radius: 10px; font-size: 14.5px; border-inline-start: 3px solid var(--accent); }
.note--flat { margin: 0; }

/* QR panel */
.qr-panel { flex-direction: row; gap: 28px; align-items: center; }
.qr-panel__code { flex: none; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr-panel__code img { display: block; width: 180px; height: 180px; image-rendering: pixelated; }
.qr-panel__none { width: 180px; height: 180px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; background: var(--surface); border-radius: 8px; }
.qr-panel__text h2 { font-size: 17px; font-weight: 700; }
.qr-panel__text p { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 52ch; }
.qr-panel__url { margin-top: 12px; padding: 8px 12px; background: var(--surface); border-radius: 9px; overflow-x: auto; }
.qr-panel__url code { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.qr-panel__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 700px) { .qr-panel { flex-direction: column; align-items: flex-start; } }

/* order track */
.track-panel { margin-bottom: 18px; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.track li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 0 6px; }
.track li::before { content: ""; position: absolute; top: 15px; inset-inline-start: calc(-50% + 18px); inset-inline-end: calc(50% + 18px); height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.is-done::before { background: var(--ok); }
.track__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: #fff; margin-bottom: 6px; }
.track__dot .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.track li.is-done .track__dot { background: var(--ok); border-color: var(--ok); }
.track li.is-now .track__dot { box-shadow: 0 0 0 5px var(--ok-bg); }
.track b { font-size: 14px; font-weight: 700; }
.track small { font-size: 12.5px; color: var(--muted); min-height: 1.5em; }
.track li:not(.is-done) b { color: var(--faint); }
.track.is-stopped li:not(.is-done) .track__dot { border-style: dashed; }
.track__stop { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--bad); font-weight: 700; font-size: 14.5px; }
.track__stop .ico { width: 18px; height: 18px; }
@media (max-width: 640px) {
    .track { grid-template-columns: 1fr; gap: 0; }
    .track li { grid-template-columns: 32px 1fr; justify-items: start; text-align: start; column-gap: 12px; padding: 0 0 14px; }
    .track__dot { grid-row: 1 / span 2; margin: 0; }
    .track li::before { top: auto; bottom: 100%; inset-inline-start: 15px; inset-inline-end: auto; width: 2px; height: 14px; }
    .track li:first-child::before { display: none; }
}

/* chat thread */
.thread { list-style: none; display: grid; gap: 12px; max-height: 620px; overflow-y: auto; padding: 4px; margin: -4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); justify-self: start; }
.msg--support { justify-self: end; background: var(--info-bg); border-color: transparent; }
.msg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; margin-bottom: 4px; }
.msg__meta time { color: var(--muted); font-size: 12px; }
.msg__meta .role { font-size: 11px; padding: 0 7px; }
.msg__body { font-size: 15px; line-height: 1.75; white-space: pre-line; }
.msg__audio { display: block; width: 100%; max-width: 320px; height: 36px; margin-top: 8px; }
.msg__img { display: inline-block; margin-top: 8px; }
.msg__img img { display: block; max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); }
.msg__file { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--accent); font-weight: 600; }
.msg__file .ico { width: 16px; height: 16px; }

/* confirm dialog */
.confirm { margin: auto; border: 0; border-radius: 16px; padding: 22px; width: min(400px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(23,34,45,.45); font-family: var(--font); color: var(--ink); }
.confirm::backdrop { background: rgba(23,34,45,.45); }
.confirm p { font-size: 16px; font-weight: 600; line-height: 1.7; }
.confirm__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* لوحات الأدوار */
.grid--one { grid-template-columns: 1fr; }
.grid--rev > :first-child { order: 0; }
.panel__link--top { margin: 0; padding: 0; }
.part-link:hover .part { color: var(--accent); }
.legend__row { display: grid; grid-template-columns: 12px 1fr auto 48px; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.empty-hero { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 8px; }
.empty-hero b { font-size: 18px; }
.empty-hero p { color: var(--muted); max-width: 44ch; }
.form-grid--narrow { grid-template-columns: minmax(0, 720px); }
.guest-key { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--ink); color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.guest-key h2 { font-size: 17px; font-weight: 700; }
.guest-key p { color: #B9C4CE; font-size: 14.5px; margin-top: 2px; max-width: 60ch; }
.guest-key__code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.guest-key__code code { font-family: var(--mono); font-size: 13.5px; color: var(--manila, #ECD7A6); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 8px 12px; overflow-wrap: anywhere; }
.guest-key .abtn--line { background: #ECD7A6; border-color: #ECD7A6; color: var(--ink); }

/* ===== صفحات الطلب ===== */
.abtn--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.abtn--ok { background: var(--ok); border-color: var(--ok); }
.abtn--ok:hover { background: #24654A; }
.offer-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.orders--plain { min-width: 0; }
.empty-inline { display: flex; align-items: center; gap: 10px; padding: 6px 22px 22px; color: var(--muted); font-size: 14.5px; }
.empty-inline .ico { color: var(--faint); }
.summary__lead { margin: 0 22px 12px; font-size: 14.5px; color: var(--muted); }
.summary--ask { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); box-shadow: 0 0 0 4px var(--warn-bg); }
.summary__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line-soft); }

/* chat */
.chat { padding-bottom: 0; }
.chat__thread { display: flex; flex-direction: column; gap: 6px; max-height: 520px; min-height: 160px; overflow-y: auto; padding: 14px; margin: 0 -22px; background: #F7F8FA; border-block: 1px solid var(--line-soft); }
.chat__day { text-align: center; margin: 8px 0 4px; }
.chat__day span { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line-soft); padding: 2px 10px; border-radius: 999px; }
.chat__empty { margin: auto; display: grid; justify-items: center; gap: 4px; color: var(--muted); text-align: center; padding: 24px; font-size: 14px; }
.chat__empty .ico { width: 28px; height: 28px; color: var(--faint); }
.chat__empty b { color: var(--ink); }
.bubble { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); align-self: flex-start; }
.bubble--mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 11%, #fff); border-color: transparent; border-end-end-radius: 4px; }
.bubble--other { border-end-start-radius: 4px; }
.bubble__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 2px; }
.bubble__who .role { font-size: 10.5px; padding: 0 6px; }
.bubble__text { font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.bubble__img { display: block; margin-top: 6px; }
.bubble__img img { display: block; max-width: 240px; max-height: 200px; border-radius: 10px; }
.bubble__audio { display: block; width: 260px; max-width: 100%; height: 36px; margin-top: 6px; }
.bubble__file { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--accent); font-weight: 600; }
.bubble__time { display: block; text-align: end; font-size: 11px; color: var(--faint); margin-top: 2px; }
.composer { padding: 12px 0 16px; }
.composer textarea { width: 100%; min-height: 46px; max-height: 160px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15.5px; line-height: 1.6; resize: none; }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.composer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.composer__status { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.composer__status audio { height: 34px; max-width: 220px; }
.composer__status .err { color: var(--bad); }
.composer__send { margin-inline-start: auto; }
[data-chat-record].is-rec { background: var(--bad-bg); color: var(--bad); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* parts editor */
.parts-ed__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; padding: 10px 12px; background: var(--surface); border-radius: 12px; }
.parts-ed__quick-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.parts-ed__list { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.parts-ed__row { display: grid; grid-template-columns: 28px minmax(0, 2fr) 90px minmax(0, 2fr) 36px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.parts-ed__row .field { margin: 0; }
.parts-ed__num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 9px; }
.parts-ed__del { margin-bottom: 5px; }
@media (max-width: 760px) {
    .parts-ed__row { grid-template-columns: 28px minmax(0, 1fr) 36px; align-items: center; }
    .parts-ed__row > .field:first-of-type { grid-column: 2; grid-row: 1; }
    .parts-ed__del { grid-column: 3; grid-row: 1; align-self: end; }
    .parts-ed__qty, .parts-ed__notes { grid-column: 2 / 4; }
    .parts-ed__num { grid-row: 1; align-self: end; }
}

/* ===== نماذج الطلب ===== */
.order-form { display: grid; gap: 18px; }
.order-form .panel__head h2 { display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.order-form__ctx { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--muted); }
.order-form__ctx span { display: inline-flex; align-items: center; gap: 6px; }
.order-form__ctx .ico { width: 17px; height: 17px; color: var(--accent); }
.order-form__ctx b { color: var(--ink); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .field-row--3 { grid-template-columns: 1fr; gap: 16px; } }
.review__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ===== عرض التاجر ===== */
.offer-rows { list-style: none; display: grid; gap: 8px; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, background-color .15s; }
.offer-row:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.offer-row.is-off { opacity: .7; }
.offer-row__pick { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.offer-row__pick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.offer-row__pick b { display: block; font-size: 15px; }
.offer-row__pick small { display: block; font-size: 13px; color: var(--muted); }
.offer-row__price { position: relative; }
.offer-row__price input { width: 100%; height: 44px; padding: 0 12px 0 44px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 16px; font-weight: 700; text-align: left; }
.offer-row__price input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.offer-row__price input:disabled { background: var(--surface); }
.offer-row__price span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.offer-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.offer-form__total { font-size: 15px; color: var(--muted); }
.offer-form__total b { color: var(--ink); font-size: 18px; }
@media (max-width: 560px) { .offer-row { grid-template-columns: 1fr; } }
.unavail { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.unavail b { font-size: 15px; }
.unavail p { font-size: 14px; }

/* جداول العروض تتحول لبطاقات على الجوال عشان الأزرار تبان */
@media (max-width: 640px) {
    .orders--cards { min-width: 0 !important; }
    .orders--cards thead { display: none; }
    .orders--cards, .orders--cards tbody { display: block; }
    .orders--cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
    .orders--cards tbody tr:last-child { border-bottom: 0; }
    .orders--cards td { display: block; padding: 0 !important; border: 0 !important; }
    .orders--cards td:nth-child(1) { grid-column: 1; grid-row: 1; }
    .orders--cards td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: end; white-space: nowrap; }
    .orders--cards td:nth-child(3) { grid-column: 1; grid-row: 2; }
    .orders--cards td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: end; }
    .orders--cards td:nth-child(5) { grid-column: 1 / -1; }
    .orders--cards td:nth-child(5):not(:has(*)) { display: none; }
    .orders--cards .offer-acts { display: flex; width: 100%; }
    .orders--cards .offer-acts form { flex: 1; }
    .orders--cards .offer-acts .abtn { width: 100%; min-height: 42px; }
    .orders--cards td:nth-child(4) .abtn { min-height: 38px; }
}
