/* =====================================================================
   Reshan — exact port of the Claude Design canvases:
   - Employee:  "واجهة الموظف" Main.dc.html (desktop) + CatsAlt2.dc.html (mobile, chosen)
   - Admin:     "لوحة إدارة ريشان" Design ١ — Main.dc.html (desktop) + A-Mobile.dc.html
   Every size/color/radius below is copied from those files. Do not
   "tidy" values without checking the design first.
   ===================================================================== */

:root {
  --bg: #F3F6FB;
  --text: #14213D;
  --muted: #5B6B85;
  --blue: #0A3D91;
  --blue-ink: #0A2A63;
  --blue-hover: #072B66;
  --blue-soft: #E4EDFB;
  --yellow: #F6C21C;
  --yellow-soft: #FFF4CC;
  --yellow-ink: #6B4F00;
  --line: #DCE3EF;
  --line-input: #C9D5EA;
  --line-row: #EDF1F7;
  --track: #E1E8F3;
  --green: #17663A;
  --green-soft: #E3F4EA;
  --red: #A3261A;
  --red-soft: #FDE7E4;
  --shadow: 0 1px 3px rgba(15, 27, 51, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 27, 51, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  direction: rtl;
}
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font-family: 'Cairo', sans-serif; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
h1, h2, p { margin: 0; }
.hidden { display: none !important; }
input[type='search'] { -webkit-appearance: none; appearance: none; }
input[type='search']::-webkit-search-decoration { -webkit-appearance: none; }
.feat-list { display: flex; flex-direction: column; gap: 14px; }
.feat-list:empty { display: none; }
#review-box:empty, #status-box:empty { display: none; }
.lbl-m { display: none; }
.seg button, .utabs button { white-space: nowrap; }
.adet-btns { display: flex; flex-direction: column; gap: 14px; }
/* Product photos are shown whole (never cropped) on white, so staff can
   always see the entire product when checking a picture. */
.thumb img, .photo-btn img { object-fit: contain; background: #FFFFFF; }

/* ---------- shared atoms ---------- */

.back-link {
  align-self: flex-start;
  border: 0; background: none; padding: 0;
  color: var(--blue);
  font: 700 15px Cairo, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.muted { color: var(--muted); }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font: 700 12px Cairo, sans-serif;
  white-space: nowrap;
}
.tone-add    { background: #E4EDFB; color: #0A3D91; }
.tone-edit   { background: #EEF0F4; color: #3B475C; }
.tone-del    { background: #FDE7E4; color: #A3261A; }
.tone-done   { background: #E3F4EA; color: #17663A; }
.tone-assign { background: #FEF3CC; color: #6B4F00; }

.thumb {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.none { border: 2px dashed #E3A39B; color: var(--red); background: transparent; }

.track { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.track > div, .track > span { display: block; height: 100%; }
.fill-blue { background: var(--blue); }
.fill-yellow { background: var(--yellow); }

#toast {
  position: fixed; bottom: 20px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; z-index: 100;
}
#toast .msg {
  background: var(--blue-ink); color: #FFFFFF;
  padding: 10px 18px; border-radius: 10px;
  font: 600 14px Cairo, sans-serif;
  box-shadow: 0 4px 16px rgba(10, 20, 40, 0.2);
}
#toast .msg.error { background: var(--red); }

/* ---------- login (employee canvas, isLogin) ---------- */

.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  font-size: 16px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: var(--shadow);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-brand .t { font-size: 36px; font-weight: 800; color: var(--blue); }
.login-brand .s { color: var(--muted); }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.login-card input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line-input); border-radius: 10px;
  font: 500 16px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}
.login-card button {
  min-height: 52px; border: 0; background: var(--blue); color: #FFFFFF;
  border-radius: 12px; font: 700 17px Cairo, sans-serif; cursor: pointer;
}
.login-error { margin: 0; color: var(--red); font-weight: 700; font-size: 14px; text-align: center; }

@media (max-width: 720px) {
  .login-wrap { padding: 24px; }
  .login-card { padding: 32px 24px; gap: 20px; box-shadow: none; }
  .login-brand .t { font-size: 32px; }
}

/* =====================================================================
   EMPLOYEE
   ===================================================================== */

.emp { min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }

.emp-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.emp-header-in {
  max-width: 960px; margin: 0 auto; padding: 0 32px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.emp-brand { font: 800 24px Cairo, sans-serif; color: var(--blue); text-decoration: none; }
.emp-user { display: flex; align-items: center; gap: 12px; }
.emp-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: var(--blue-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.emp-name { font-weight: 700; }
.emp-logout {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--muted);
  border-radius: 8px; font: 600 14px Cairo, sans-serif; cursor: pointer;
}
.emp-main {
  max-width: 960px; width: 100%; margin: 0 auto;
  padding: 32px; display: flex; flex-direction: column; gap: 24px;
}

/* home */
.emp-greet { display: flex; flex-direction: column; gap: 10px; }
.emp-greet .s { color: var(--muted); font-size: 15px; }
.emp h1 { font-size: 26px; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice-card {
  background: #FFFFFF; border: 0; border-radius: 20px; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: Cairo, sans-serif; cursor: pointer; box-shadow: var(--shadow);
  text-decoration: none;
}
.choice-icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.choice-icon svg { width: 40px; height: 40px; }
.choice-icon.blue { background: var(--blue-soft); color: var(--blue); }
.choice-icon.yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.choice-title { font-size: 22px; font-weight: 800; color: var(--text); }
.choice-sub { color: var(--muted); font-size: 15px; text-align: center; }

/* أقسامي */
.emp-stack-20 { display: flex; flex-direction: column; gap: 20px; }
.emp-stack-18 { display: flex; flex-direction: column; gap: 18px; }
.mycat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mycat-card {
  background: #FFFFFF; border: 0; border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; text-align: right;
  font-family: Cairo, sans-serif; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow); text-decoration: none;
}
.mycat-card .n { font-size: 20px; font-weight: 800; }
.mycat-row { display: flex; align-items: center; gap: 10px; }
.mycat-row .track { flex-grow: 1; height: 10px; }
.mycat-row .l { font-weight: 700; font-size: 14px; white-space: nowrap; }
.empty-card {
  margin: 0; padding: 40px; text-align: center; color: var(--muted);
  background: #FFFFFF; border-radius: 16px;
}

/* products */
.prod-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.btn-add {
  min-height: 48px; padding: 0 20px; border: 0; background: var(--blue); color: #FFFFFF;
  border-radius: 10px; font: 700 15px Cairo, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-add .ico { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-input); background: #FFFFFF; color: var(--blue);
  font: 600 14px Cairo, sans-serif; cursor: pointer; white-space: nowrap;
}
.chip.on { border-color: var(--blue); background: var(--blue); color: #FFFFFF; font-weight: 700; }
.cat-picker-btn {
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  background: #FFFFFF; border: 1px solid var(--line-input); border-radius: 12px;
  padding: 0 16px; min-height: 50px; font: 700 15px Cairo, sans-serif;
  color: var(--blue); cursor: pointer; width: 100%;
}
.emp-search {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1px solid var(--line-input); border-radius: 12px;
  padding: 0 16px; min-height: 52px; color: var(--muted);
}
.emp-search input {
  border: 0; outline: none; flex-grow: 1; min-width: 0;
  font: 500 16px Cairo, sans-serif; color: var(--text); background: transparent;
}
.seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  background: var(--track); padding: 5px; border-radius: 12px;
}
.seg button {
  min-height: 44px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: 600 15px Cairo, sans-serif; cursor: pointer;
}
.seg button.on {
  background: #FFFFFF; color: var(--blue-ink); font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.12);
}
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pcard {
  display: flex; align-items: center; gap: 14px;
  background: #FFFFFF; border: 0; border-radius: 16px; padding: 14px;
  text-align: right; font-family: Cairo, sans-serif; color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-sm); text-decoration: none;
}
.pcard .thumb { width: 60px; height: 60px; border-radius: 12px; }
.pcard .thumb svg { width: 26px; height: 26px; }
.pcard .thumb.none svg { width: 24px; height: 24px; }
.pinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.pinfo strong { font-size: 16px; }
.pinfo .meta { color: var(--muted); font-size: 13px; }
.pinfo .st { font-weight: 700; font-size: 13px; }
.st-miss { color: var(--red); }
.st-done { color: var(--green); }
.st-review { color: var(--yellow-ink); }
.st-ready { color: var(--muted); }

/* bottom sheet (CatsAlt2 category picker) + modals */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 40, 0.5); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: #FFFFFF; width: 100%; max-width: 480px; max-height: 72vh;
  border-radius: 20px 20px 0 0; padding: 18px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head strong { font-size: 17px; }
.sheet-close {
  width: 36px; height: 36px; border: 0; background: #EEF1F6; border-radius: 50%;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sheet-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 0; border-bottom: 1px solid #EEF1F6; background: #FFFFFF; color: var(--text);
  font: 600 15px Cairo, sans-serif; cursor: pointer; border-radius: 10px; text-align: right;
}
.sheet-row.on { background: #F0F5FF; color: var(--blue); font-weight: 800; }

/* detail */
.emp-detail { display: flex; flex-direction: column; gap: 20px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill { padding: 4px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.pill-done { background: var(--green-soft); color: var(--green); }
.pill-need { background: var(--red-soft); color: var(--red); }
.pill-review { background: #FEF3CC; color: var(--yellow-ink); }

.box-miss {
  background: #FFF7F6; border: 1px solid #F2C4BE; border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px; color: #7E1D14;
}
.box-miss strong { font-size: 16px; }
.box-miss span { font-weight: 700; }
.box-ok {
  background: #EFF9F3; border: 1px solid #B9E2C8; border-radius: 16px; padding: 18px 20px;
  color: var(--green); font-weight: 700;
}
.box-review {
  background: #FFFBEA; border: 1px solid #F1D98A; border-radius: 16px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--yellow-ink);
}
.box-review strong { font-size: 16px; }
.btn-review {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--yellow-ink); background: #FFFFFF;
  color: var(--yellow-ink); border-radius: 10px; font: 700 15px Cairo, sans-serif; cursor: pointer;
}

.emp-fields {
  background: #FFFFFF; border-radius: 18px; padding: 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.emp-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.emp-fields input, .emp-fields select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line-input); border-radius: 10px;
  font: 500 16px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}
.emp-fields select { font-weight: 600; }

.sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.emp .sec-head h2 { font-size: 19px; font-weight: 800; }
.sec-head h2 small { color: var(--muted); font-weight: 600; font-size: 14px; }
.btn-dashed {
  min-height: 42px; padding: 0 16px; border: 1px dashed var(--blue); background: transparent;
  color: var(--blue); border-radius: 10px; font: 700 14px Cairo, sans-serif; cursor: pointer;
}
.btn-dashed.sm { min-height: 38px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.btn-dashed .m { display: none; }

.emp-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.emp-size {
  background: #FFFFFF; border-radius: 16px; padding: 16px; display: flex; gap: 16px;
}
.photo-btn {
  position: relative; flex-shrink: 0; overflow: hidden;
  border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; font: 600 12px Cairo, sans-serif; padding: 0;
}
.photo-btn.none {
  border: 2px dashed #E3A39B; background: #FFF7F6; color: var(--red); font-weight: 700;
}
.photo-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-btn .ov {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0;
  background: rgba(10, 61, 145, 0.85); color: #FFFFFF; font: 600 12px Cairo, sans-serif; text-align: center;
}
.photo-btn.busy::after {
  content: 'جارٍ الرفع…'; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.85); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font: 700 13px Cairo, sans-serif;
}
.emp-size .photo-btn { width: 110px; height: 110px; }
.emp-size .photo-btn svg { width: 32px; height: 32px; }
.emp-size .photo-btn.none svg { width: 30px; height: 30px; }
.photo-btn .t-m { display: none; }

.size-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex-grow: 1; }
.size-fields label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: 13px; }
.size-fields .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sinp {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line-input); border-radius: 8px;
  font: 500 14px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}
.sinp.bad { border: 2px solid #D9574A; background: #FFF7F6; }
.dup-warn { color: var(--yellow-ink); font-size: 12px; font-weight: 700; }
.size-remove {
  align-self: flex-start; border: 0; background: none; padding: 0;
  color: var(--red); font: 700 12px Cairo, sans-serif; cursor: pointer;
}

.emp-feats {
  background: #FFFFFF; border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.feat-empty { color: var(--muted); font-size: 14px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 10px; align-items: center; }
.feat-row .fv { display: contents; }
.feat-row input {
  width: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line-input); border-radius: 8px;
  font: 500 14px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}
.feat-rm {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; background: var(--red-soft); color: var(--red);
  border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.emp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.emp-actions .spacer { flex-grow: 1; }
.btn-save {
  min-height: 50px; padding: 0 28px; border: 0; background: var(--blue); color: #FFFFFF;
  border-radius: 12px; font: 700 16px Cairo, sans-serif; cursor: pointer;
}
.btn-done {
  min-height: 50px; padding: 0 28px; border: 0; background: var(--green); color: #FFFFFF;
  border-radius: 12px; font: 700 16px Cairo, sans-serif; cursor: pointer;
}
.btn-done.off {
  border: 1px solid var(--line); background: #EEF1F6; color: #8A96AB; cursor: not-allowed;
}
.btn-del-text {
  min-height: 50px; border: 0; background: none; color: var(--red);
  font: 700 14px Cairo, sans-serif; cursor: pointer;
}
.btn-save:disabled, .btn-done:disabled { opacity: 1; }

@media (max-width: 720px) {
  .emp-header { position: sticky; top: 0; z-index: 2; }
  .emp-header-in { padding: 12px 16px; min-height: 0; }
  .emp-brand { font-size: 21px; }
  .emp-user { gap: 8px; }
  .emp-avatar { width: 32px; height: 32px; font-size: 14px; }
  .emp-name { display: none; }
  .emp-logout { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .emp-main { padding: 16px; gap: 18px; }

  .emp-greet { gap: 2px; }
  .emp-greet .s { font-size: 14px; }
  .emp h1 { font-size: 22px; }
  .emp-home { display: flex; flex-direction: column; gap: 16px; }
  .choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .choice-card { padding: 36px 20px; gap: 14px; }
  .choice-icon { width: 72px; height: 72px; }
  .choice-icon svg { width: 34px; height: 34px; }
  .choice-title { font-size: 20px; }
  .choice-sub { font-size: 14px; }

  .emp-stack-20 { gap: 14px; }
  .emp-stack-18 { gap: 14px; }
  .mycat-grid { grid-template-columns: 1fr; gap: 14px; }
  .mycat-card { padding: 20px; gap: 10px; }
  .mycat-card .n { font-size: 19px; }

  .prod-head { flex-wrap: nowrap; gap: 10px; }
  .prod-head h1 { font-size: 21px; }
  .btn-add { width: 46px; height: 46px; min-height: 0; padding: 0; flex-shrink: 0; }
  .btn-add .txt { display: none; }
  .btn-add .ico { display: block; }
  .emp .chips { display: none; }
  .cat-picker-btn { display: flex; }
  .emp-search { padding: 0 14px; min-height: 50px; }
  .emp-search svg { width: 18px; height: 18px; }
  .seg button { min-height: 42px; border-radius: 8px; font-size: 14px; }
  .seg .lbl-d { display: none; }
  .seg .lbl-m { display: inline; }
  .empty-card { padding: 32px; }
  .pgrid { grid-template-columns: 1fr; gap: 14px; }
  .pcard { padding: 12px; gap: 12px; }
  .pcard .thumb { width: 56px; height: 56px; }
  .pcard .thumb svg { width: 24px; height: 24px; }
  .pcard .thumb.none svg { width: 22px; height: 22px; }
  .pinfo { gap: 2px; }
  .pinfo strong { font-size: 15px; }
  .pinfo .meta, .pinfo .st { font-size: 12px; }

  .emp-detail { gap: 16px; }
  .emp-detail .title-row { gap: 10px; }
  .emp-detail .title-row h1 { font-size: 21px; flex-grow: 1; min-width: 0; }
  .emp-detail .pill { padding: 3px 12px; font-size: 13px; }
  .box-miss, .box-ok, .box-review { border-radius: 14px; padding: 14px 16px; }
  .box-miss { gap: 4px; }
  .box-miss strong, .box-review strong { font-size: 15px; }
  .box-miss span { font-size: 14px; }
  .box-ok { font-size: 15px; }
  .emp-fields { background: transparent; padding: 0; grid-template-columns: 1fr; border-radius: 0; }
  .emp .sec-head h2 { font-size: 17px; }
  .sec-head h2 small { font-size: 13px; }
  .btn-dashed { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .btn-dashed.sm { padding: 0 12px; }
  .btn-dashed .d { display: none; }
  .btn-dashed .m { display: inline; }
  .emp-sizes { grid-template-columns: 1fr; gap: 16px; }
  .emp-size { flex-direction: column; padding: 14px; gap: 12px; }
  .emp-size .photo-btn { width: auto; height: 140px; gap: 6px; font-size: 13px; }
  .emp-size .photo-btn.none { font-size: 14px; }
  .emp-size .photo-btn svg { width: 36px; height: 36px; }
  .emp-size .photo-btn.none svg { width: 34px; height: 34px; }
  .photo-btn .t-d { display: none; }
  .photo-btn .t-m { display: inline; }
  .emp-size .size-fields label { gap: 4px; }
  .emp-size .sinp { min-height: 46px; padding: 0 12px; font-size: 15px; }
  .emp .sec { gap: 16px; }
  .emp-feats { background: transparent; padding: 0; border-radius: 0; gap: 16px; }
  .emp-feats .feat-list { gap: 16px; }
  .emp-feats .feat-row {
    display: flex; flex-direction: column; gap: 8px; align-items: stretch;
    background: #FFFFFF; border-radius: 12px; padding: 10px;
  }
  .emp-feats .feat-row .fv { display: flex; gap: 8px; }
  .emp-feats .feat-row .fv input { flex-grow: 1; min-width: 0; }
  .emp-feats .feat-row input { min-height: 44px; }
  .emp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .emp-actions .spacer { display: none; }
  .emp-actions .btn-save, .emp-actions .btn-done { padding: 0; }
  .emp-actions .btn-done { font-size: 15px; }
  .emp-actions .btn-del-text { grid-column: 1 / -1; min-height: 44px; }
}

/* =====================================================================
   ADMIN — Design ١ "واضح"
   ===================================================================== */

.adm {
  min-height: 100vh; display: flex; flex-wrap: wrap;
  background: var(--bg); color: var(--text); font-size: 15px;
}
.adm-aside {
  flex: 1 1 240px; max-width: 264px;
  background: var(--blue); color: #FFFFFF; padding: 28px 16px;
  display: flex; flex-direction: column; gap: 28px;
}
.adm-brand { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.adm-brand .t { font-size: 30px; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.adm-brand .s { font-size: 13px; color: #C9D7F0; }
.adm-nav { display: flex; flex-direction: column; gap: 6px; }
.adm-nav a {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px;
  border-radius: 10px; background: transparent; color: #DCE6F7;
  font: 600 16px Cairo, sans-serif; text-decoration: none; text-align: right;
}
.adm-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.adm-nav a.on { background: var(--yellow); color: var(--blue-ink); font-weight: 700; }
.adm-nav a:hover:not(.on) { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.adm-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; border-top: 1px solid #2B5BB0;
}
.adm-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--yellow); color: var(--blue-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.adm-user .who { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.adm-user .who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user .who span { font-size: 12px; color: #C9D7F0; }
.adm-logout {
  border: 1px solid #4A74C0; background: transparent; color: #FFFFFF;
  border-radius: 8px; padding: 6px 12px; font: 600 13px Cairo, sans-serif; cursor: pointer;
}
.adm-main {
  flex: 999 1 560px; min-width: 0; padding: 32px 40px 48px;
  display: flex; flex-direction: column; gap: 24px;
}
.adm-mhead { display: none; }

.adm h1 { font-size: 30px; font-weight: 800; }
.adm h2 { font-size: 19px; font-weight: 800; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.ahead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ahead .tt { display: flex; flex-direction: column; gap: 4px; }
.ahead .date { color: var(--muted); font-size: 14px; }
.ahead .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

.btn-outline, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 700 15px Cairo, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-outline { border: 1px solid var(--blue); background: #FFFFFF; color: var(--blue); }
.btn-primary { border: 0; background: var(--blue); color: #FFFFFF; }
.btn-outline:hover { color: var(--blue-hover); }
.btn-primary:hover { color: #FFFFFF; background: var(--blue-hover); }
.btn-outline svg, .btn-primary svg { width: 18px; height: 18px; }
.btn-sm {
  min-height: 38px; padding: 0 16px; border: 1px solid var(--line-input); background: #FFFFFF;
  color: var(--blue); border-radius: 8px; font: 700 14px Cairo, sans-serif; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.btn-xs {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--line-input); background: #FFFFFF;
  color: var(--blue); border-radius: 8px; font: 700 13px Cairo, sans-serif; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-xs.danger { color: var(--red); }
.link-btn {
  border: 0; background: none; padding: 0; color: var(--blue);
  font: 700 14px Cairo, sans-serif; cursor: pointer; text-decoration: none;
}

.acard { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; }
.acard.pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.acard.scroll { overflow-x: auto; }
.acard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi .l { color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 38px; font-weight: 800; line-height: 1.1; }
.kpi .s { color: var(--muted); font-size: 13px; }
.kpi.green .l, .kpi.green .v { color: var(--green); }
.kpi.red .l, .kpi.red .v { color: var(--red); }
.kpi.green .l, .kpi.red .l { font-weight: 700; }

.overall { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.overall .row { display: flex; justify-content: space-between; font-weight: 700; }
.overall .track { height: 12px; }
.overall .track > div { border-radius: 999px; }

.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col .g2 { flex: 2 1 520px; min-width: 0; }
.two-col .g1 { flex: 1 1 300px; min-width: 0; }
.acard.g1 { gap: 16px; }

table.at { width: 100%; border-collapse: collapse; font-size: 15px; }
table.at th { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; padding: 8px; }
table.at td { padding: 12px 8px; }
table.at tbody tr { border-top: 1px solid var(--line-row); }
table.at.wide th { padding: 14px 8px; }
table.at.wide td { padding: 14px 8px; }
table.at .first { padding-right: 20px; }
table.at .last { padding-left: 20px; }
table.at.list th { padding: 12px 8px; }
table.at.list th.first, table.at.list td.first { padding-right: 16px; }
table.at.list th.last, table.at.list td.last { padding-left: 16px; }
table.at.acc th { padding: 12px 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; }

.cat-link {
  border: 0; background: none; padding: 0; color: var(--blue);
  font: 700 15px Cairo, sans-serif; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.c-green { color: var(--green); font-weight: 700; }
.c-red { color: var(--red); font-weight: 700; }
.mbar { display: flex; align-items: center; gap: 10px; }
.mbar .track { flex-grow: 1; }
.mbar .pct { font-weight: 700; font-size: 13px; min-width: 36px; }

.emp-prog { display: flex; flex-direction: column; gap: 6px; }
.emp-prog .r { display: flex; justify-content: space-between; align-items: baseline; }
.emp-prog .r b { font-weight: 700; }
.emp-prog .r span { color: var(--muted); font-size: 14px; }
.emp-prog .c { color: var(--muted); font-size: 12px; }

.recent-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line-row);
}
.recent-row .tm { color: var(--muted); font-size: 13px; min-width: 84px; }
.recent-row .u { font-weight: 700; }
.recent-row .p { flex: 1 1 200px; min-width: 0; }
.recent-row .c { color: var(--muted); font-size: 14px; }

/* products list (admin) */
.achips { display: flex; flex-wrap: wrap; gap: 8px; }
.list-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.list-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 0; border-bottom: 1px solid var(--line-row);
}
.utabs { display: flex; gap: 4px; }
.utabs button {
  min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent;
  background: none; color: var(--muted); font: 600 15px Cairo, sans-serif; cursor: pointer;
}
.utabs button.on { border-bottom-color: var(--yellow); color: var(--blue-ink); font-weight: 800; }
.asearch {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-input); border-radius: 10px;
  padding: 0 12px; min-height: 42px; margin-bottom: 12px; flex: 0 1 320px; color: var(--muted); background: #FFFFFF;
}
.asearch input {
  border: 0; outline: none; flex-grow: 1; min-width: 0;
  font: 500 15px Cairo, sans-serif; color: var(--text); background: transparent;
}
.list-empty { margin: 0; padding: 40px; text-align: center; color: var(--muted); }
.pcell { display: flex; align-items: center; gap: 12px; }
.pcell .thumb { width: 52px; height: 52px; border-radius: 10px; }
.pcell .thumb svg { width: 24px; height: 24px; }
.pcell .thumb.none svg { width: 22px; height: 22px; }
.pcell .nm { display: flex; flex-direction: column; min-width: 0; }
.pcell .nm b { font-weight: 700; }
.pcell .nm span { color: var(--muted); font-size: 13px; }
.status-done {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px;
}
.status-review {
  display: inline-flex; padding: 3px 12px; border-radius: 999px;
  background: #FEF3CC; color: var(--yellow-ink); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.status-miss { color: var(--red); font-weight: 700; font-size: 13px; }
.status-ready { color: var(--muted); font-weight: 700; font-size: 13px; }
.only-mob { display: none !important; }

/* admin detail */
.adet-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.adet-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adet-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.adet-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.adet-title h1 { font-size: 28px; }
.afields {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.afields label, .alabel { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.ainp, .afields input, .afields select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-input); border-radius: 8px;
  font: 500 15px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}
.adm .sec-head h2 { font-size: 18px; font-weight: 800; }
.adm .btn-dashed { min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.adm .btn-dashed.sm { min-height: 38px; font-size: 13px; }
.afeats {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.asizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.asize {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.asize .photo-btn { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; gap: 6px; font-size: 13px; }
.asize .photo-btn.none { font-size: 14px; }
.asize .photo-btn svg { width: 40px; height: 40px; }
.asize .photo-btn.none svg { width: 36px; height: 36px; }
.asize .size-fields { gap: 10px; }
.asize .size-fields label { gap: 4px; }
.asize .sinp { padding: 8px 10px; }
.adet-aside .box-miss { border-radius: 14px; padding: 16px; gap: 8px; }
.adet-aside .box-miss .sub { font-size: 14px; font-weight: 400; }
.adet-aside .box-ok { border-radius: 14px; padding: 16px; }
.adet-aside .box-review { border-radius: 14px; padding: 16px; flex-direction: column; align-items: stretch; }
.adet-aside .btn-save { min-height: 48px; border-radius: 10px; padding: 0; }
.adet-aside .btn-done { min-height: 48px; border-radius: 10px; padding: 0; }
.adet-aside .btn-del-text { min-height: 44px; }
.adet-aside .edited { color: var(--muted); font-size: 13px; text-align: center; }

/* categories / employees / log / forms */
.assign-btn {
  min-height: 42px; min-width: 170px; padding: 0 12px; border: 1px solid var(--line-input); border-radius: 8px;
  background: #FFFFFF; font: 600 15px Cairo, sans-serif; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-align: right;
}
.assign-btn svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.cat-name-cell { font-weight: 800; font-size: 16px; }
.emp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.emp-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.emp-card .h { display: flex; align-items: center; gap: 10px; }
.emp-card .av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.emp-card .h b { font-weight: 800; font-size: 17px; }
.emp-card .big { display: flex; align-items: baseline; gap: 6px; }
.emp-card .big b { font-size: 28px; font-weight: 800; }
.emp-card .big span { color: var(--muted); font-size: 13px; }
.emp-card .today { font-size: 14px; }
.emp-card .cats { color: var(--muted); font-size: 13px; }
.acc-title { padding: 18px 20px 4px; font-size: 18px !important; }
.uname { color: var(--muted); direction: ltr; text-align: right; }
.online { color: var(--green); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aselect {
  min-height: 42px; min-width: 170px; padding: 0 12px; border: 1px solid var(--line-input); border-radius: 8px;
  background: #FFFFFF; font: 600 15px Cairo, sans-serif; color: var(--text);
}
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.filters input[type='date'] {
  min-height: 42px; padding: 0 10px; border: 1px solid var(--line-input); border-radius: 8px;
  font: 600 14px Cairo, sans-serif; color: var(--text); background: #FFFFFF;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 40, 0.5); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: #FFFFFF; width: 100%; max-width: 440px; max-height: 86vh; overflow-y: auto;
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
  font-size: 15px; color: var(--text);
}
.modal h2 { font-size: 19px; font-weight: 800; }
.modal .foot { display: flex; gap: 10px; flex-wrap: wrap; }
.modal .foot .btn-primary, .modal .foot .btn-outline { flex: 1 1 140px; }
.check-row {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line-row); border-radius: 10px; font-weight: 600; cursor: pointer;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.modal-error { color: var(--red); font-weight: 700; font-size: 14px; }

.file-row { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.file-pick {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px;
  border: 1px dashed var(--line-input); border-radius: 8px; background: #FFFFFF; cursor: pointer;
}
.file-pick .btn-xs { pointer-events: none; }
.file-pick .fname {
  color: var(--muted); font-weight: 500; font-size: 13px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1200px) {
  .emp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .adm { flex-direction: column; flex-wrap: nowrap; }
  .adm-aside { display: none; }
  .adm-mhead { display: flex; flex-direction: column; position: sticky; top: 0; z-index: 20; }
  .adm-mbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--blue); color: #FFFFFF;
  }
  .adm-mbar .b { display: flex; align-items: baseline; gap: 8px; }
  .adm-mbar .b .t { font-size: 24px; font-weight: 800; color: var(--yellow); }
  .adm-mbar .b .s { font-size: 12px; color: #C9D7F0; }
  .adm-acct { position: relative; }
  .adm-acct summary {
    list-style: none; width: 36px; height: 36px; border-radius: 50%;
    background: var(--yellow); color: var(--blue-ink);
    display: flex; align-items: center; justify-content: center; font: 800 15px Cairo, sans-serif; cursor: pointer;
  }
  .adm-acct summary::-webkit-details-marker { display: none; }
  .adm-acct .menu {
    position: absolute; left: 0; top: 44px; background: #FFFFFF; color: var(--text);
    border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 180px;
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.18); display: flex; flex-direction: column; gap: 8px;
  }
  .adm-acct .menu b { font-weight: 700; }
  .adm-acct .menu span { color: var(--muted); font-size: 12px; }
  .adm-acct .menu button {
    min-height: 40px; border: 1px solid var(--line); background: #FFFFFF; color: var(--muted);
    border-radius: 8px; font: 600 14px Cairo, sans-serif; cursor: pointer;
  }
  .adm-mnav {
    display: flex; gap: 6px; padding: 8px 12px; background: #FFFFFF;
    border-bottom: 1px solid var(--line); overflow-x: auto;
  }
  .adm-mnav a {
    flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: #EEF2F8; color: var(--blue); font: 600 14px Cairo, sans-serif;
    display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap;
  }
  .adm-mnav a.on { background: var(--blue); color: #FFFFFF; font-weight: 700; }
  .adm-main { flex: 1 1 auto; padding: 16px; gap: 16px; }

  .adm h1 { font-size: 22px; }
  .adm .home-title h1 { font-size: 24px; }
  .ahead .date { font-size: 13px; }
  .ahead .tt { gap: 2px; }
  .adm h2 { font-size: 18px; }
  .stack-24, .stack-20 { gap: 12px; }
  .stack-24.home { gap: 16px; }
  .only-desk { display: none !important; }
  .only-mob { display: flex !important; }
  .only-mob.block { display: block !important; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { border-radius: 12px; padding: 14px; gap: 0; }
  .kpi .l { font-size: 13px; }
  .kpi .v { font-size: 28px; line-height: 1.5; }
  .kpi .s { display: none; }
  .overall { border-radius: 12px; padding: 14px; gap: 8px; }
  .overall .track { height: 10px; }

  .mcard {
    display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: right;
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
    font: 500 15px Cairo, sans-serif; color: var(--text); cursor: pointer; text-decoration: none;
  }
  .mcard .r1 { display: flex; justify-content: space-between; width: 100%; gap: 8px; align-items: baseline; }
  .mcard .r1 strong { font-size: 16px; }
  .mcard .r1 span { color: var(--muted); font-size: 13px; }
  .mcard .r2 { display: flex; align-items: center; gap: 8px; width: 100%; }
  .mcard .r2 .track { flex-grow: 1; }
  .mcard .r2 b { font-weight: 700; font-size: 13px; }
  .mlist { display: flex; flex-direction: column; gap: 12px; }
  .mbox {
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .mbox .emp-prog { gap: 4px; }
  .mbox .emp-prog .r span { font-size: 13px; }
  .mbox .emp-prog .track { height: 6px; }
  .mrecent { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; display: flex; flex-direction: column; }
  .mrecent .it { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line-row); }
  .mrecent .it:last-child { border-bottom: 0; }
  .mrecent .top { display: flex; align-items: center; gap: 8px; }
  .mrecent .top strong { font-size: 14px; }
  .mrecent .top .tm { margin-right: auto; color: var(--muted); font-size: 12px; }
  .mrecent .p { font-size: 14px; }
  .mrecent .c { color: var(--muted); font-size: 13px; }
  .mhead-row { display: flex; justify-content: space-between; align-items: center; }
  .mhead-row h2 { margin-top: 4px; }
  .btn-wide {
    min-height: 48px; border: 1px solid var(--blue); background: #FFFFFF; color: var(--blue);
    border-radius: 10px; font: 700 15px Cairo, sans-serif; cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
  }

  /* admin products mobile */
  .ahead.prod { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .ahead.prod .sub, .ahead.prod .btn-outline { display: none; }
  .ahead.prod .btn-primary { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .ahead.prod .btn-primary svg { display: none; }
  .ahead.prod .btn-primary .lbl::before { content: '+ '; }
  .only-desk-text { display: none; }
  .achips { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .achips .chip { flex-shrink: 0; min-height: 38px; padding: 0 14px; font-size: 13px; }
  .list-card { background: transparent; border: 0; border-radius: 0; gap: 12px; }
  .list-bar { flex-direction: column; align-items: stretch; padding: 0; border: 0; gap: 12px; }
  .asearch { order: -1; flex: 1 1 auto; margin: 0; min-height: 46px; }
  .utabs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px;
  }
  .utabs button { padding: 0 4px; font-size: 14px; }
  .list-empty { padding: 32px; }
  .mprod {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: right;
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    font: 500 15px Cairo, sans-serif; color: var(--text); cursor: pointer; text-decoration: none;
  }
  .mprod .thumb { width: 56px; height: 56px; border-radius: 10px; }
  .mprod .pinfo { gap: 2px; }
  .mprod .pinfo strong { font-size: 15px; }
  .mprod .pinfo .meta, .mprod .pinfo .st { font-size: 13px; }

  /* admin detail mobile */
  .adet-title h1 { font-size: 22px; }
  .adet-wrap, .adet-main { gap: 14px; }
  .adet-aside { gap: 10px; }
  .afields { background: transparent; border: 0; padding: 0; grid-template-columns: 1fr; gap: 10px; }
  .afields input, .afields select { min-height: 46px; padding: 0 12px; }
  .afeats { border-radius: 12px; padding: 14px; }
  .asizes { grid-template-columns: 1fr; gap: 12px; }
  .asize { flex-direction: row; border-radius: 12px; padding: 12px; gap: 12px; }
  .asize .photo-btn { width: 104px; height: 104px; aspect-ratio: auto; flex-shrink: 0; font-size: 12px; gap: 4px; }
  .asize .photo-btn svg { width: 30px; height: 30px; }
  .asize .photo-btn.none svg { width: 28px; height: 28px; }
  .asize .size-fields { gap: 6px; }
  .asize .size-fields label { gap: 2px; font-size: 12px; }
  .asize .sinp { padding: 6px 8px; }
  .adet-aside .box-miss, .adet-aside .box-ok, .adet-aside .box-review { border-radius: 12px; padding: 12px 14px; }
  /* A-Mobile order: status box right under the title, then the form,
     then Save + Complete side by side, then delete. */
  .adet-wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .adet-aside { display: contents; }
  .adet-aside #review-box, .adet-aside #status-box { order: -1; }
  .adet-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .emp-cards { grid-template-columns: 1fr; gap: 12px; }
  .emp-card { border-radius: 12px; padding: 14px; gap: 8px; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 80vh; padding: 18px; }
}
