/* === app.css === */
/*
 * Rozon — admin/auth stylesheet.
 * Visual system aligned to the approved reference (Rozon visual reference):
 * same navy/copper palette, IBM Plex Sans Arabic + Righteous, spacing rhythm,
 * radii, shadows and component treatments. Storefront features are NOT included.
 */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --table-row-hover: #fafbfc;
  --text: #1c2733;
  --muted: #5c6b78;
  --border: #dce3ea;
  --primary: #1e3a5c;
  --primary-dark: #142943;
  --primary-soft: #e7edf4;
  --accent: #c96f47;
  --accent-dark: #a85832;
  --accent-soft: #f7e9e0;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(20, 41, 67, .1);
  --shadow-lg: 0 24px 60px rgba(20, 41, 67, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.brand-font { font-family: "Righteous", sans-serif; letter-spacing: .3px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* small accent label above headings (reference "kicker") */
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .4px; margin-bottom: 6px; }

/* ---- header / nav ---- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; padding: 14px 0; min-height: 74px; }
.logo { display: flex; align-items: center; flex: none; }
/* Official logo — height set, width auto so aspect ratio is never distorted. */
.logo img.brand-logo { height: 54px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; margin-inline-start: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-color: var(--accent); }
.nav-user { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav-user .who { font-size: 13px; color: var(--muted); }
.nav-user .who strong { color: var(--primary-dark); font-weight: 600; }

/* ---- buttons (reference values) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--primary-dark); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #b0413a; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- page shell / cards ---- */
main.page { padding: 34px 0 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; color: var(--primary-dark); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.muted { color: var(--muted); font-size: 13.5px; }

/* ---- forms ---- */
.form-box { max-width: 480px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--primary-dark); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- tables ---- */
table.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: right; font-size: 13.5px; }
table.data-table th { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr { transition: background .12s; }
table.data-table tbody tr:hover { background: var(--table-row-hover); }

/* ---- sortable column headers (shared admin.partials.sort-th) ---- */
table.data-table th a.th-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; white-space: nowrap; }
table.data-table th a.th-sort:hover { text-decoration: underline; }
table.data-table th a.th-sort.active { color: var(--primary, #142943); font-weight: 700; }
table.data-table th a.th-sort .th-sort-ind { font-size: 10px; opacity: .85; }

/* ---- status badges (reference original/compatible tag colors) ---- */
.status-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-pill.on { background: #e7f3ec; color: #23643d; }
.status-pill.off { background: #fdf1ea; color: #8a4a26; }

/* ---- alerts ---- */
.msg { padding: 13px 15px; border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; }
.msg.ok { background: #e7f3ec; color: #23643d; border: 1px solid #bfe3cd; }
.msg.err { background: #fbf3f1; border: 1px solid #edd8d2; color: #8a3d2b; }
.msg ul { margin: 0; padding-inline-start: 18px; }

/* ---- dashboard ---- */
.dash { max-width: 680px; }
.dash-hi { display: flex; align-items: center; gap: 15px; }
.dash-avatar { width: 56px; height: 56px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; flex: none; }
.dash-name { font-size: 18px; font-weight: 600; color: var(--primary-dark); }
.dash-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.meta-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.meta-item .l { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.meta-item .v { font-size: 14px; color: var(--primary-dark); font-weight: 600; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---- auth pages (reference hero treatment: gradient + copper dot texture) ---- */
.auth-screen { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 78%); }
.auth-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px);
  background-size: 22px 22px; opacity: .16;
  -webkit-mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 62%);
}
.auth-card { position: relative; z-index: 1; width: min(430px, 100%); background: var(--card); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg); }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { height: 86px; width: auto; margin: 0 auto 12px; }
.auth-brand .ar { font-size: 12.5px; color: var(--muted); }
.auth-card h1 { font-size: 20px; margin: 6px 0 20px; text-align: center; color: var(--primary-dark); }
.hp { display: none; } /* honeypot: display:none so browser autofill never fills it */

/* ---- accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ============================================================
   Storefront components — same tokens/design system as admin
   (ported from the approved Rozon visual reference visual language)
   ============================================================ */
.store-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
/* ---------- storefront footer (professional, multi-column) ---------- */
.store-footer { position: relative; overflow: hidden; background: var(--primary-dark); color: #b9c6d4; padding: 52px 0 22px; margin-top: 48px; }
.store-footer .footer-dots { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px); background-size: 22px 22px; opacity: .10;
  -webkit-mask-image: radial-gradient(circle at 88% 14%, #000 0%, transparent 60%); mask-image: radial-gradient(circle at 88% 14%, #000 0%, transparent 60%); }
.store-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand .footer-logo-chip { display: inline-flex; background: #fff; padding: 9px 13px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.footer-brand .footer-logo-chip img { height: 42px; width: auto; display: block; }
.footer-about { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: #a9bacb; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 13.5px; font-weight: 700; margin: 0 0 14px; position: relative; padding-bottom: 8px; }
.footer-col h5::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: 13px; color: #a9bacb; line-height: 1.7; }
.footer-links a { color: #a9bacb; text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.store-footer .foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid rgba(255,255,255,.10); margin-top: 22px; padding-top: 16px; font-size: 12px; color: #8798a9; }
.store-footer .foot-bottom .brand-font { color: #fff; }
.store-footer .foot-bottom .foot-tag { color: var(--accent); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .store-footer .foot-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.hero { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 78%); color: #fff; }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px); background-size: 22px 22px; opacity: .16; -webkit-mask-image: radial-gradient(circle at 78% 40%, #000 0%, transparent 62%); mask-image: radial-gradient(circle at 78% 40%, #000 0%, transparent 62%); }
.hero-inner { position: relative; padding: 56px 0 48px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.3; margin: 0 0 14px; }
.hero h1 span { color: var(--accent); }
.hero p.lede { color: #d7e0ea; max-width: 52ch; margin: 0 auto 22px; font-size: 15.5px; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.section-head h2 { font-size: 26px; margin: 6px 0 10px; color: var(--primary-dark); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-card h5 { margin: 0; font-size: 13.5px; color: var(--primary-dark); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { height: 120px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; position: relative; color: var(--primary); }
.product-tag { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.product-tag.original { background: #e7f3ec; color: #23643d; }
.product-tag.compatible { background: #fdf1ea; color: #8a4a26; }
.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; color: var(--muted); }
.product-body h4 { margin: 0; font-size: 14px; line-height: 1.4; }
.product-body h4 a { color: var(--text); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.price small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.stock-note { font-size: 11.5px; }
.stock-note.ok { color: #23643d; }
.stock-note.out { color: #b0413a; }

.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.pd-media { height: 300px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-title { font-size: 24px; margin: 6px 0 8px; color: var(--primary-dark); }
.compat-list { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
@media (max-width: 760px) {
  table.data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .nav { flex-wrap: wrap; gap: 12px; min-height: 0; }
  .nav-links { margin: 0; order: 3; width: 100%; overflow-x: auto; }
  .nav-user { margin-inline-start: auto; }
  .logo img.brand-logo { height: 46px; }
  .page-head h1 { font-size: 22px; }
  .dash-meta { grid-template-columns: 1fr; }
}

/* === polish.css === */
/* =====================================================================================
   Rozon — C3 visual system (approved "نظام Rozon البصري — النهائي").
   Loads AFTER app.css and layers on top (no app.css edits). Navy/White structure,
   restrained Copper accent, editorial composition, image-led merchandising, RTL.
   Motion: hover / selection / one-time entry only, gated behind reduced-motion.
   ===================================================================================== */
:root{
  --c3-navy:#0f2740; --c3-navy-2:#1d3f63;
  --c3-copper:var(--rz-gold);
  --c3-ondark:#eaf0f7; --c3-ondark-mut:#9db1c6; --c3-hair:#e0e5ec; --c3-surf2:#f4f7fa; --c3-ok:#3d9a68;
}

/* ---- branded product-image fallback (used when a product has no stored image) ---- */
.pw-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  background:linear-gradient(150deg,var(--rz-navy),var(--rz-navy-900));color:#fff;
  font-family:"Righteous",sans-serif;font-size:26px;letter-spacing:1px}
.pw-fallback::after{content:"PW"}

/* ---- storefront product cards: image-led + refined hover ---- */
@media (prefers-reduced-motion:no-preference){
  .product-card{transition:transform .18s ease, box-shadow .18s ease}
  .product-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,39,64,.16)}
  .product-media img{transition:transform .35s ease}
  .product-card:hover .product-media img{transform:scale(1.06)}
  .cat-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
  .cat-card:hover{transform:translateY(-3px)}
}

/* ---- editorial storefront home ---- */
.c3-store{display:grid;grid-template-columns:220px 1fr;gap:0}
.c3-sfnav{padding:22px 16px;border-inline-start:1px solid var(--c3-hair)}
.c3-sfnav .lbl{color:var(--c3-copper);font-size:11px;font-weight:700;letter-spacing:1.5px;margin-bottom:10px}
.c3-sfnav a{display:block;padding:9px 12px;border-radius:9px;font-size:15px;color:var(--muted,#6a7889);font-weight:500}
.c3-sfnav a.active{background:var(--c3-navy-2);color:#fff}
.c3-sfnav a:not(.active):hover{background:var(--c3-surf2);color:var(--c3-navy-2)}
.c3-sfnav .div{height:1px;background:var(--c3-hair);margin:12px 4px}
.c3-ed{display:grid;grid-template-columns:1.1fr .9fr;gap:10px;align-items:center;padding:40px 30px 28px;border-bottom:1px solid var(--c3-hair)}
.c3-ed .k{color:var(--c3-copper);font-size:11px;font-weight:700;letter-spacing:2.5px}
.c3-ed h1{font-size:40px;line-height:1.14;margin:12px 0 14px;font-weight:700;letter-spacing:-.5px;color:var(--c3-navy);text-wrap:balance}
.c3-ed h1 b{color:var(--c3-copper)}
.c3-ed p{color:var(--muted,#6a7889);font-size:18px;font-weight:300;max-width:36ch;margin:0 0 18px}
.c3-ed .cta{display:inline-flex;gap:8px;font-weight:600;color:var(--c3-navy-2);border-bottom:2px solid var(--c3-copper);padding-bottom:4px}
.c3-edart{display:flex;align-items:center;justify-content:center}
.c3-edart .circ{width:230px;height:230px;border-radius:50%;background:radial-gradient(circle at 62% 38%,var(--rz-navy),var(--rz-navy-900));display:flex;align-items:center;justify-content:center}
.c3-edart .circ svg{width:150px;color:#fff}
.c3-band{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--c3-hair)}
.c3-bcell{padding:16px 18px;border-inline-start:1px solid var(--c3-hair);display:flex;align-items:center;gap:12px}
.c3-bcell:first-child{border:none}
.c3-bcell .ico{width:26px;height:26px;color:var(--c3-copper);flex:0 0 auto}
.cat-ico{display:inline-flex;width:28px;height:28px;color:var(--c3-copper);flex:0 0 auto}
.cat-ico svg{width:100%;height:100%}
.c3-bcell .t{font-size:13px;font-weight:600}.c3-bcell .s{color:var(--muted,#6a7889);font-size:11px}
.c3-sech{display:flex;align-items:baseline;justify-content:space-between;padding:20px 30px 0}
.c3-sech .k{color:var(--c3-copper);font-size:11px;font-weight:700;letter-spacing:2px}
.c3-sech .h{font-size:18px;color:var(--c3-navy-2);font-weight:600}
@media(max-width:820px){.c3-store,.c3-ed{grid-template-columns:1fr}.c3-band{grid-template-columns:1fr 1fr}}

/* ---- POS: products are the hero + strong navy cart ---- */
.pos-hero .card{border:none}
.c3-cart{background:var(--c3-navy)!important;color:var(--c3-ondark)!important;border:none!important;border-radius:14px}
.c3-cart h3{color:var(--c3-ondark-mut)!important}
.c3-cart label{color:var(--c3-ondark-mut)!important}
.c3-cart input, .c3-cart select{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff}
.c3-cart input::placeholder{color:var(--c3-ondark-mut)}
.c3-cart details summary{color:#fff!important}
.c3-cart .muted, .c3-cart small{color:var(--c3-ondark-mut)!important}
.c3-cart .c3-total{display:flex;align-items:baseline;justify-content:space-between;margin:6px 0 2px;padding-top:12px;border-top:1px solid rgba(255,255,255,.18)}
.c3-cart .c3-total .l{font-size:15px}.c3-cart .c3-total .v{font-size:30px;font-weight:700}
.c3-cart .btn-primary{background:var(--c3-copper);border-color:var(--c3-copper);font-weight:700;letter-spacing:.3px}
.c3-cart .btn-primary:hover{filter:brightness(1.06)}
/* POS product results as image-led tiles */
#pos-results .pos-hit{align-items:center}
.c3-tile-im{width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--c3-surf2)}
.c3-tile-im img{width:100%;height:100%;object-fit:contain}

/* ---- dashboard navy hero + big operational numbers ---- */
.c3-dashhero{background:radial-gradient(circle at 85% 12%,var(--rz-navy),var(--rz-navy-900) 62%);color:var(--c3-ondark);border-radius:14px;padding:26px 28px;margin-bottom:14px;position:relative;overflow:hidden}
.c3-dashhero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.06) 1.1px,transparent 1.2px);background-size:22px 22px}
.c3-dashhero>*{position:relative;z-index:1}
.c3-dashhero .hi{font-size:24px;font-weight:700}
.c3-dashhero .metlbl{color:#fff;font-size:11px;font-weight:700;letter-spacing:2px;margin:18px 0 8px}
.c3-mets{display:grid;grid-template-columns:repeat(4,1fr)}
.c3-met{padding-inline-start:18px;border-inline-start:1px solid rgba(255,255,255,.14)}
.c3-met:first-child{border:none;padding-inline-start:0}
.c3-met .v{font-size:38px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.c3-met.urgent .v{color:var(--rz-gold)}
.c3-met .l{color:var(--c3-ondark-mut);font-size:13px;margin-top:6px}
.c3-met a{color:inherit}
.c3-alert{margin-top:18px}.c3-alert .k{color:#fff;font-size:11px;font-weight:700;letter-spacing:2px}
.c3-alert .a{font-size:16px;font-weight:600;margin-top:2px}
@media(max-width:820px){.c3-mets{grid-template-columns:1fr 1fr;gap:12px}}

/* ---- branded empty / no-results component ---- */
.pw-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:34px 16px;color:var(--muted,#6a7889)}
.pw-empty .art{width:200px;max-width:70%;height:auto}
.pw-empty .t{font-weight:700;color:var(--c3-navy-2);font-size:16px}
.pw-empty .btn{margin-top:6px}
@media (prefers-reduced-motion:no-preference){
  .pw-empty .art{animation:pw-pop .6s ease .05s both}
  @keyframes pw-pop{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}
  .c3-in{opacity:0;transform:translateY(10px);animation:pw-pop .5s ease forwards}
}

/* =====================================================================================
   C4 — POST-C3 UX & operational corrections (visual layer only; no business logic).
   ===================================================================================== */

/* ---- single shared flash toast (F.3) ---- */
.pw-toast{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;
  border-radius:10px;padding:11px 14px;margin-bottom:14px;font-size:14px;border:1px solid transparent}
.pw-toast.ok{background:#eaf6ef;border-color:#bfe3cd;color:#1c6b40}
.pw-toast.err{background:#fdecec;border-color:#f3c2c2;color:#a32020}
.pw-toast .pw-toast-msg{flex:1}
.pw-toast-x{background:none;border:none;font-size:20px;line-height:1;cursor:pointer;color:inherit;opacity:.6;padding:0 2px}
.pw-toast-x:hover{opacity:1}

/* ---- header account menu (B) ---- */
.pw-acct{position:relative}
.pw-acct-btn{display:inline-flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;font:inherit;color:inherit;padding:4px 6px;border-radius:10px}
.pw-acct-btn:hover{background:rgba(0,0,0,.06)}
.pw-acct-avatar{width:30px;height:30px;border-radius:50%;background:var(--c3-navy-2);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.pw-acct-id{display:flex;flex-direction:column;line-height:1.15;text-align:start}
.pw-acct-id .pw-acct-name{font-weight:600;font-size:13px}
.pw-acct-id .pw-acct-role{font-size:11px;color:var(--muted,#6a7889)}
.pw-acct-menu{position:absolute;inset-inline-end:0;top:calc(100% + 8px);min-width:220px;background:#fff;border:1px solid var(--border,#e2e6ea);border-radius:12px;box-shadow:0 14px 38px rgba(20,41,67,.20);padding:8px;z-index:3000;display:none}
.pw-acct.open .pw-acct-menu{display:block}
.pw-acct-head{padding:8px 12px 10px;border-bottom:1px solid var(--c3-hair)}
.pw-acct-head .pw-acct-name{font-weight:700}
.pw-acct-head .pw-acct-sub{font-size:12px;color:var(--muted,#6a7889)}
.pw-acct-menu a,.pw-acct-logout{display:block;width:100%;text-align:start;padding:9px 12px;border-radius:8px;color:var(--c3-navy);text-decoration:none;background:none;border:none;font:inherit;cursor:pointer}
.pw-acct-menu a:hover,.pw-acct-logout:hover{background:var(--c3-surf2)}
.pw-acct-logout{color:#a32020}

/* ---- page assistant "مساعد الصفحة" (B) ---- */
.pw-assist{background:var(--c3-surf2);border:1px solid var(--c3-hair);border-radius:14px;padding:4px 14px}
.pw-assist summary{cursor:pointer;font-weight:700;color:var(--c3-navy-2);padding:12px 0;list-style:none;display:flex;align-items:center;gap:8px}
.pw-assist summary::-webkit-details-marker{display:none}
.pw-assist-ic{width:20px;height:20px;border-radius:50%;background:var(--c3-copper);color:#fff;font-style:italic;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.pw-assist-body{padding:0 0 12px}
.pw-assist-intro{color:var(--muted,#6a7889);font-size:13px;margin:0 0 8px}
.pw-assist-list{margin:0;padding-inline-start:18px;font-size:13px;line-height:1.9;color:var(--c3-navy)}
.pw-assist-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pw-assist-links a{font-size:12.5px;font-weight:600;color:var(--c3-navy-2);border:1px solid var(--c3-hair);background:#fff;border-radius:8px;padding:6px 10px;text-decoration:none}
.pw-assist-links a:hover{border-color:var(--c3-copper);color:var(--c3-copper)}

/* ---- dashboard layout (B) ---- */
.c3-dash-grid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
.c3-setup-cta{display:flex;align-items:center;gap:14px;text-decoration:none;background:linear-gradient(120deg,#fff7ec,#fdeede);border:1px solid #e8b877;border-radius:14px;padding:16px 18px;margin-bottom:14px}
.c3-setup-cta .ic{width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:var(--c3-copper);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}
.c3-setup-cta .tx{display:flex;flex-direction:column;gap:2px}
.c3-setup-cta .tx strong{color:#8a4b1f}
.c3-setup-cta .tx span{color:#9a6a3a;font-size:13px}
.c3-setup-cta .go{margin-inline-start:auto;color:var(--c3-copper);font-weight:700;white-space:nowrap}
.c3-qa{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
.c3-qa-group{background:var(--c3-surf2);border:1px solid var(--c3-hair);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column}
.c3-qa-title{color:var(--c3-copper);font-size:11px;font-weight:700;letter-spacing:1px;margin-bottom:8px}
.c3-qa-links{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.c3-qa-link{display:block;padding:10px 12px;border:1px solid var(--c3-hair);border-radius:10px;background:#fff;color:var(--c3-navy);text-decoration:none;font-size:13.5px;font-weight:500;transition:border-color .15s,background .15s}
.c3-qa-link:hover{border-color:var(--c3-copper);background:#fff}
@media(max-width:900px){.c3-dash-grid{grid-template-columns:1fr}}
@media(max-width:640px){.c3-qa{grid-template-columns:1fr}.c3-qa-links{grid-template-columns:1fr}}

/* ---- POS group browsing (E) ---- */
.c3-pos-browse{margin-top:10px;border-top:1px dashed var(--border,#e2e6ea);padding-top:10px}
.c3-pos-browse-lbl{color:var(--muted,#6a7889);font-size:12px;margin-bottom:8px}
.c3-pos-chips{display:flex;gap:6px;flex-wrap:wrap}
.c3-pos-subs{margin-top:6px}
.c3-pos-chip{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;font-size:13px;font-weight:600;padding:7px 12px;border-radius:20px;border:1px solid var(--c3-hair);background:#fff;color:var(--c3-navy-2);transition:border-color .15s,color .15s,background .15s}
.c3-pos-chip:hover{border-color:var(--c3-copper);color:var(--c3-copper)}
.c3-pos-chip.active{background:var(--c3-navy-2);border-color:var(--c3-navy-2);color:#fff}
.c3-pos-chip .cat-ico{width:18px;height:18px}
/* §17/G — dedicated POS session-opening state (shown when no session is open). */
.c3-pos-open{border-inline-start:4px solid var(--c3-copper)}
.c3-pos-open .form-row label{font-size:13px}
/* §17/I — session screens with a left-side help box (main content + help sidebar).
   In RTL the first grid column is inline-start (right) and the second is inline-end (left),
   so the help sits on the LEFT on wide screens and stacks below on narrow ones. */
.c3-help-cols{display:grid;grid-template-columns:1fr minmax(240px,300px);gap:16px;align-items:start}
.c3-help-cols .c3-help-main{min-width:0}
.c3-help-cols .pw-assist{position:sticky;top:16px}
@media(max-width:900px){.c3-help-cols{grid-template-columns:1fr}.c3-help-cols .pw-assist{position:static}}
.c3-pos-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-top:12px;max-height:340px;overflow:auto}

/* ---- role capability explainer (M) ---- */
.c3-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.c3-role{border:1px solid var(--c3-hair);border-radius:10px;padding:6px 12px}
.c3-role summary{cursor:pointer;font-weight:600;color:var(--c3-navy-2);padding:8px 0}
.c3-role ul{margin:4px 0 10px;padding-inline-start:18px;font-size:13px;line-height:1.8;color:var(--c3-navy)}

/* ---- audit technical details (L) ---- */
.pw-tech{margin-top:4px}
.pw-tech summary{cursor:pointer;color:var(--c3-navy-2);font-weight:600}
.pw-tech pre{background:var(--c3-surf2);border:1px solid var(--c3-hair);border-radius:8px;padding:8px 10px;margin:6px 0 0;font-size:11px;overflow:auto;max-width:420px}

/* ---- storefront hero enrichment (A) ---- */
.c3-ed-cta{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.c3-ed .cta-2{font-weight:600;color:var(--c3-navy-2)}
.c3-ed .cta-2:hover{color:var(--c3-copper)}
.c3-ed-trust{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px;color:var(--muted,#6a7889);font-size:13px;font-weight:500}
.c3-ed-trust span{white-space:nowrap}
.c3-catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:14px 30px}
.c3-catcard{display:flex;flex-direction:column;gap:8px;padding:18px 16px;border:1px solid var(--c3-hair);border-radius:14px;text-decoration:none;background:linear-gradient(160deg,#fff,var(--c3-surf2));transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.c3-catcard .cat-ico{width:34px;height:34px;color:var(--c3-copper)}
.c3-catcard .t{font-weight:700;color:var(--c3-navy);font-size:15px}
.c3-catcard .s{color:var(--c3-copper);font-size:12px;font-weight:600}
@media (prefers-reduced-motion:no-preference){
  .c3-catcard:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(15,39,64,.12);border-color:var(--c3-copper)}
}
@media(max-width:820px){.c3-catgrid{grid-template-columns:1fr 1fr}}

/* =====================================================================================
   QA2 — Business/Visual QA correction cycle (visual layer only; no business logic).
   POS sequential workflow + pre-issue review modal · Reports Center (RTL right-nav) ·
   Session detail operational sections + LEFT secondary guide.
   ===================================================================================== */

/* ---- POS: sequential step headers ---- */
.pos-step-h{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:16px;color:var(--c3-navy)}
.pos-step-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--c3-copper);color:#fff;font-size:13px;font-weight:700;flex:0 0 auto}
.c3-cart .pos-step-h{color:var(--c3-ondark)!important}
.pos-panel .pos-step-h{color:var(--c3-navy)}
.pos-search-box:focus-visible{outline:3px solid var(--rz-gold);outline-offset:1px;border-color:var(--rz-gold)!important;box-shadow:none}

/* ---- POS: category groups (clearer hierarchy, unmistakable selection) ---- */
.c3-pos-browse-lbl{color:var(--c3-copper);font-size:11px;font-weight:700;letter-spacing:1.5px;margin-bottom:10px}
.c3-pos-chips{display:flex;gap:8px;flex-wrap:wrap}
.c3-pos-chip{padding:8px 14px;border-radius:12px;border:1.5px solid var(--c3-hair);box-shadow:0 1px 2px rgba(15,39,64,.04)}
.c3-pos-chip .cat-ico{color:var(--c3-copper)}
.c3-pos-chip:hover{border-color:var(--c3-copper);color:var(--c3-copper)}
.c3-pos-chip.active{background:var(--c3-navy);border-color:var(--c3-navy);color:#fff;box-shadow:0 4px 12px rgba(15,39,64,.22)}
.c3-pos-chip.active .cat-ico{color:var(--rz-gold)}
.c3-pos-subs .c3-pos-chip{font-size:12.5px;padding:6px 12px;border-radius:20px}
@media (prefers-reduced-motion:no-preference){.c3-pos-chip:hover{transform:translateY(-1px)}}

/* ---- POS: pre-issue review modal ---- */
.pos-modal{position:fixed;inset:0;z-index:4000;background:rgba(15,39,64,.55);display:flex;align-items:flex-start;justify-content:center;padding:5vh 16px;overflow:auto}
.pos-modal-card{background:#fff;color:var(--c3-navy);border-radius:14px;padding:22px 22px 18px;max-width:560px;width:100%;box-shadow:0 24px 60px rgba(15,39,64,.35)}
.pos-modal-card .data-table{color:var(--c3-navy)}
.pos-modal .muted{color:var(--muted,#6a7889)!important}
.pos-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.pos-review-cust{font-size:14px;color:var(--c3-navy-2)}
@media(prefers-reduced-motion:no-preference){.pos-modal-card{animation:pw-pop .22s ease both}}

/* ---- Reports Center (RTL: category nav on the RIGHT = grid column 1) ---- */
.rc-shell{display:grid;grid-template-columns:minmax(210px,250px) 1fr;gap:16px;align-items:start}
.rc-nav{grid-column:1;position:sticky;top:16px;background:var(--c3-surf2);border:1px solid var(--c3-hair);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:6px}
.rc-main{grid-column:2;min-width:0}
.rc-nav-group{display:flex;flex-direction:column}
.rc-nav-head{display:block;padding:10px 12px;border-radius:9px;font-weight:700;font-size:13.5px;color:var(--c3-navy-2);text-decoration:none}
.rc-nav-head:hover{background:#eef3f8}
.rc-nav-head.active{background:var(--c3-navy);color:#fff}
.rc-nav-items{display:flex;flex-direction:column;gap:2px;margin:2px 6px 6px}
.rc-nav-item{display:block;padding:8px 12px;border-radius:8px;font-size:13px;color:var(--c3-navy);text-decoration:none}
.rc-nav-item:hover{background:#eef3f8;color:var(--c3-copper)}
.rc-nav-item.active{background:#fff;border:1px solid var(--c3-copper);color:var(--c3-copper);font-weight:600}
.rc-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.rc-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px;background:var(--c3-surf2);border:1px solid var(--c3-hair);border-radius:12px;margin-bottom:14px}
.rc-filters .form-row{margin:0}
.rc-filters .form-row label{font-size:12px;color:var(--muted,#6a7889)}
.rc-table th{white-space:nowrap}
.rc-totals td{font-weight:700;border-top:2px solid var(--c3-navy-2);background:var(--c3-surf2)}
.rc-report-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:10px}
.rc-report-tile{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--c3-hair);border-radius:12px;background:#fff;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
.rc-report-tile:hover{border-color:var(--c3-copper);transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,39,64,.10)}
.rc-report-tile-t{font-weight:700;color:var(--c3-navy-2)}
.rc-report-tile-m{font-size:12px}
@media(max-width:900px){.rc-shell{grid-template-columns:1fr}.rc-nav{grid-column:1;flex-direction:row;flex-wrap:wrap;position:static}.rc-main{grid-column:1}}

/* ---- Session detail: operational sections + LEFT secondary guide ---- */
.sess-layout{display:grid;grid-template-columns:1fr minmax(230px,290px);gap:16px;align-items:start}
.sess-main{grid-column:1;min-width:0;display:flex;flex-direction:column;gap:14px}
.sess-guide{grid-column:2}
.sess-guide .pw-assist{position:sticky;top:16px;font-size:12.5px;opacity:.94}
.sess-h{margin:0 0 12px;color:var(--c3-navy-2);font-size:16px}
.sess-sec-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border,#e2e6ea)}
.sess-close{border-inline-start:4px solid var(--c3-copper)}
@media(max-width:900px){.sess-layout{grid-template-columns:1fr}.sess-main,.sess-guide{grid-column:1}.sess-guide .pw-assist{position:static}}

/* ---- print (reports) ---- */
.print-only{display:none}
@media print{
  .no-print{display:none!important}
  .print-only{display:block}
  .rc-shell{grid-template-columns:1fr}
  .rc-main,.rc-nav{grid-column:1}
  body{background:#fff}
}

/* =====================================================================================
   POS FINAL — fast cashier workspace (two work areas). Products RIGHT (grid col 1 in RTL),
   current-sale/cart LEFT. Visual layer only; server remains authoritative for money/stock.
   ===================================================================================== */
.pos2-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pos2-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.pos2{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;align-items:stretch;margin-top:6px}
@media(max-width:1000px){.pos2{grid-template-columns:1fr}}

/* RIGHT — products */
.pos2-products{grid-column:1;min-width:0;background:#fff;border:1px solid var(--c3-hair);border-radius:14px;padding:14px;display:flex;flex-direction:column}
.pos2-products .pos-search-box{width:100%;border:1.5px solid var(--c3-hair);border-radius:10px;padding:12px 14px;font-size:15px;margin-bottom:8px}
.pos2-results{max-height:200px;overflow:auto}
.pos2-msg{min-height:18px;font-size:13px;margin:2px 0}
.pos2-tiles,.c3-pos-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px;margin-top:12px;max-height:calc(100vh - 320px);min-height:180px;overflow:auto}
.pos2-tile{border:1px solid var(--c3-hair);border-radius:12px;padding:8px;text-align:center;font-size:12px;background:#fff;transition:border-color .15s,transform .15s,box-shadow .15s}
.pos2-tile:hover{border-color:var(--c3-copper);transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,39,64,.10)}
.pos2-tile img{width:100%;height:70px;object-fit:contain;margin-bottom:4px}
.pos2-tile .pw-fallback{height:70px;border-radius:8px;margin-bottom:4px;font-size:18px}
.pos2-tile-n{font-weight:600;color:var(--c3-navy-2)}
.pos2-tile-m{font-size:11px}

/* LEFT — cart (navy via .c3-cart) */
.pos2-cart{grid-column:2;min-width:0;display:flex;flex-direction:column;border-radius:14px;padding:14px}
.pos2-cust{margin-bottom:10px;border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:6px 10px}
.pos2-cust>summary{cursor:pointer;list-style:none;font-weight:600;color:#fff!important;display:flex;align-items:center;gap:6px}
.pos2-cust>summary::-webkit-details-marker{display:none}
.pos2-cust-ico{opacity:.85}
.pos2-items{max-height:calc(100vh - 470px);min-height:120px;overflow:auto;border:1px solid rgba(255,255,255,.14);border-radius:10px}
.pos2-items table{margin:0}
.pos2-qty{display:inline-flex;align-items:center;gap:4px}
.pos2-qbtn{width:26px;height:26px;border-radius:6px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.pos2-qbtn:hover{background:rgba(255,255,255,.18)}
.pos2-qty input{width:48px;text-align:center}
.pos2-adj{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.pos2-adj .form-row:last-child{grid-column:1/-1}
.pos2-totals{border-top:1px solid rgba(255,255,255,.2);padding-top:10px;margin-top:4px}
.pos2-total-row{display:flex;justify-content:space-between;font-size:14px;padding:3px 0;color:var(--c3-ondark-mut)}
.pos2-grand{display:flex;justify-content:space-between;align-items:baseline;margin-top:6px;padding-top:8px;border-top:1px solid rgba(255,255,255,.22);font-weight:800}
.pos2-grand>span:last-child{font-size:30px;color:#fff;font-variant-numeric:tabular-nums}
.pos2-grand>span:first-child{font-size:15px}

/* action bar */
.pos2-actionbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.pos2-act{position:relative;border:none;border-radius:12px;padding:14px 12px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;transition:filter .15s,transform .05s}
.pos2-act:hover{filter:brightness(1.07)}
.pos2-act:active{transform:translateY(1px)}
.pos2-act:disabled{opacity:.45;cursor:not-allowed;filter:none}
.pos2-act kbd{font-size:11px;font-weight:700;background:rgba(0,0,0,.22);border-radius:5px;padding:1px 6px}
.pos2-act-cash{background:#2f9e5f}
.pos2-act-card{background:var(--rz-navy)}
.pos2-act-multi{background:var(--c3-copper)}
.pos2-act-hold{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28)}
#pos-review-open{color:var(--c3-ondark-mut)!important;border:1px solid rgba(255,255,255,.28)}

/* held drawer rows */
.pos2-held-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--c3-hair);border-radius:10px;margin-bottom:8px;color:var(--c3-navy)}

/* === pw-corrections.css === */
/* ============================================================================
   Consolidated UX correction layer (A–G) for the admin screens.
   Additive, prefixed (.pw-*) so it never overrides existing global styles. RTL-first.
   Reuses the existing design tokens (--c3-*, --primary-dark, --border) with safe fallbacks.
   ============================================================================ */

/* ---- shared form controls (D): consistent height, radius, focus + selected ---- */
.pw-input, .pw-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  color: var(--c3-navy-2, #1d3f63);
  background: #fff;
  border: 1.5px solid var(--c3-hair, #e0e5ec);
  border-radius: 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
  box-sizing: border-box;
}
.pw-select {
  /* readable native select with an RTL-safe custom caret */
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-inline-start: 34px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d3f63' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px;
}
.pw-input:focus-visible, .pw-select:focus-visible {
  outline: 3px solid var(--rz-gold); outline-offset: 1px;
  border-color: var(--rz-gold);
  box-shadow: none;
}
.pw-label { display: block; font-size: 13px; font-weight: 600; color: var(--c3-navy-2, #1d3f63); margin-bottom: 5px; }
.pw-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c3-navy-2, #1d3f63); }
.pw-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--c3-navy, #0f2740); }

/* a status pill (active / inactive) — replaces ad-hoc coloured spans */
.pw-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pw-pill.on  { background: rgba(61, 154, 104, .14); color: #1e7a3d; }
.pw-pill.off { background: rgba(29, 63, 99, .10);  color: #64748b; }

/* ---- balanced form composition (E/F): responsive grid + attached action footer ---- */
.pw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; align-items: start; }
.pw-form .pw-col-full { grid-column: 1 / -1; }
.pw-fieldset { border: 1px solid var(--c3-hair, #e0e5ec); border-radius: 12px; padding: 14px 16px; margin: 0 0 4px; }
.pw-fieldset > legend { font-size: 12px; font-weight: 700; color: var(--rz-gold-700); padding: 0 6px; }
.pw-form-footer {
  grid-column: 1 / -1;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--c3-hair, #e0e5ec);
}
.pw-form-footer .pw-spacer { margin-inline-start: auto; }

/* ---- structured admin table + inline edit (A: payment types/methods) ---- */
.pw-admin-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.pw-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- POS split payment rows (C): each component an independent card ----
   Type -> Method -> Amount -> Remove, wraps/stacks when width is insufficient,
   uses the same visual language as the single-mode chooser. */
.pw-split-list { display: flex; flex-direction: column; gap: 10px; }
.pw-split-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(140px, 1.4fr) minmax(96px, 120px) auto;
  gap: 10px; align-items: end;
  border: 1.5px solid var(--c3-hair, #e0e5ec);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.pw-split-row .pw-label { margin-bottom: 4px; font-size: 12px; }
.pw-split-remove {
  align-self: end; height: 40px; width: 40px; border-radius: 10px;
  border: 1.5px solid var(--c3-hair, #e0e5ec); background: #fff; color: #b00;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.pw-split-remove:hover { border-color: #b00; }
.pw-split-summary {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c3-hair, #e0e5ec);
  font-size: 14px;
}
.pw-split-summary .paid { color: var(--c3-navy-2, #1d3f63); font-weight: 600; }
.pw-split-summary .rem strong { font-size: 16px; }
@media (max-width: 560px) {
  .pw-split-row { grid-template-columns: 1fr 1fr; }
  .pw-split-row .pw-split-remove { grid-column: 2; justify-self: end; }
}

/* === rozon-identity.css === */
/* =====================================================================================
   Rozon identity (RZ-UI-01) and the RZ-UI-04 back-office shell — 053-UI1.
   Loaded LAST (after app.css, polish.css, pw-corrections.css). It re-points the shared
   design tokens to the approved palette and adds rz-* components; it edits no other file.
   Palette: navy #1c3a60 (dark #132a47), gold #b2834f (dark #94693a).
   Font: Bahij TheSansArabic, approved in the identity of 2026-10-07 and used by decision of the owner (2026-10-22, confirmed 2026-10-23: at the responsibility of the owner and the end user
   - see public/fonts/bahij/README.md). Three weights ship in public/fonts/bahij/;
   IBM Plex Sans Arabic stays as the fallback after it.
   ===================================================================================== */
@font-face{font-family:"Bahij TheSansArabic";src:url("../fonts/bahij/BAHIJ_THESANSARABIC-SEMILIGHT.TTF") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Bahij TheSansArabic";src:url("../fonts/bahij/BAHIJ_THESANSARABIC-SEMIBOLD.TTF") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Bahij TheSansArabic";src:url("../fonts/bahij/BAHIJ_THESANSARABIC-BOLD_1.TTF") format("truetype");font-weight:700;font-style:normal;font-display:swap}
html,body,button,input,select,textarea{font-family:"Bahij TheSansArabic","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif}
:root{
  --primary:#1c3a60; --primary-dark:#132a47; --primary-soft:#eef2f7;
  --accent:#b2834f; --accent-dark:#94693a; --accent-soft:#f7f0e7;
  --c3-navy:#132a47; --c3-navy-2:#1c3a60;
  --c3-copper:#b2834f;
  --rz-navy:#1c3a60; --rz-navy-900:#132a47; --rz-gold:#b2834f; --rz-gold-700:#94693a; --rz-gold-50:#f7f0e7;
  --rz-ok:#2e7d55; --rz-bad:#b3261e; --rz-sidebar:252px;
  /* UI-FIRST 2026-10-22 (UI-G-01/02/03/06, UI-G-04): the derived colours are the ones of the identity approved 2026-10-07 (light navy #eef2f7, success #2e7d55; before: #e8edf4 and #2f8a5b),
     and ONE size for every text field, list and button (the root alone owns these values). */
  --rz-control-h:40px; --rz-control-pad:8px 12px; --rz-control-radius:10px; --rz-control-font:14px; --rz-control-border:1.5px;
  /* J14 visual review 2: load sentinel read by the inline check in layouts/partials/head.blade.php. */
  --rz-identity:"1";
}

/* ---- R mark: replaces the former initials on items without an image and beside the name ---- */
.pw-fallback{background:linear-gradient(150deg,var(--rz-navy),var(--rz-navy-900));color:var(--rz-gold);font-family:inherit;font-weight:800;letter-spacing:0}
.pw-fallback::after{content:"R"}
.rz-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:9px;
  background:var(--rz-navy);color:var(--rz-gold);font-weight:800;font-size:20px;line-height:1}
header.site .logo{gap:8px}
.auth-brand .rz-mark{display:flex;width:56px;height:56px;margin:0 auto 10px;border-radius:14px;font-size:32px}

/* ---- top bar (cashier screen and narrow screens): labels stay on one line ---- */
header.site .nav-links{gap:18px}
header.site .nav-links > li > a,
header.site .nav-links .nav-group > .nav-more{white-space:nowrap}
/* Narrow screens: items wrap to a second row instead of running off-screen (the dropdowns need
   overflow:visible, so a horizontal scroller would clip them). This also corrects the 573 bar,
   which already overflowed at phone width. */
@media (max-width:1099px){
  header.site .nav-links{flex-wrap:wrap;gap:4px 14px}
}

/* ---- JOURNEY-03: narrow screens use a side DRAWER, not a top menu (Mohammed: «المنيو الجانبي
        وابتعد عن علوي»). The slim bar keeps only the logo, «القائمة» and the account; the menu
        slides in from the side with the same static groups as the wide side menu. The cashier
        screen (no rz-shell) is unchanged. ---- */
.rz-menu-toggle{display:none;align-items:center;gap:6px;padding:7px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);color:#fff;font:inherit;font-weight:600;cursor:pointer}
body.rz-shell header.site .nav-links a:focus-visible,
body.rz-shell header.site .nav-links .nav-more:focus-visible {
  outline:2px solid var(--rz-gold);
  outline-offset:-2px;
}
.rz-nav-backdrop{display:none}
@media (max-width:1099px){
  body.rz-shell .rz-menu-toggle{display:inline-flex}
  body.rz-shell header.site .wrap.nav{flex-wrap:nowrap}
  body.rz-shell header.site .nav-links{display:none}
  body.rz-shell.rz-nav-open{overflow:hidden}
  body.rz-shell.rz-nav-open header.site{z-index:86}
  body.rz-shell.rz-nav-open .rz-nav-backdrop{display:block;position:fixed;inset:0;z-index:85;background:rgba(11,20,40,.45)}
  body.rz-shell.rz-nav-open header.site .nav-links{display:flex;position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:90;
    width:min(86vw,300px);margin:0;padding:16px 12px;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;
    overflow-y:auto;background:var(--rz-navy-900);box-shadow:0 0 40px rgba(0,0,0,.35)}
  body.rz-shell.rz-nav-open header.site .nav-links > li > a,
  body.rz-shell.rz-nav-open header.site .nav-links .nav-group > .nav-more{display:flex;width:100%;align-items:center;justify-content:flex-start;
    gap:0;padding:11px 12px;border:0;border-radius:10px;font-size:15px;color:rgba(255,255,255,.88);text-align:start;white-space:normal}
  body.rz-shell.rz-nav-open header.site .nav-links .pw-badge{margin-inline-start:auto!important}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-group > .nav-more::after{margin-inline-start:8px}
  body.rz-shell.rz-nav-open header.site .nav-links > li > a.active,
  body.rz-shell.rz-nav-open header.site .nav-links .nav-group.rz-current > .nav-more{background:rgba(255,255,255,.10);color:#fff;box-shadow:inset -4px 0 0 var(--rz-gold)}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-menu{position:static;display:none;min-width:0;margin:0;padding:2px 0 6px;background:transparent;border:0;box-shadow:none}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-menu::before{display:none}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-group.open > .nav-menu,
  body.rz-shell.rz-nav-open header.site .nav-links .nav-group.rz-current > .nav-menu{display:block}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-menu li a{display:block;padding:10px 12px;padding-inline-start:26px;border-radius:8px;font-size:14px;white-space:normal;color:rgba(255,255,255,.76)}
  body.rz-shell.rz-nav-open header.site .nav-links .nav-menu li a.active{background:rgba(255,255,255,.12);color:#fff}
}

/* ---- RZ-UI-04 shell: the shared header becomes a navy side menu on wide screens.
        Same markup (nav-links / nav-group / nav-more / nav-menu / pw-acct); the cashier
        screen has no rz-shell class and keeps its top bar. Narrow screens keep the top bar. ---- */
@media (min-width:1100px){
  body.rz-shell{padding-inline-start:var(--rz-sidebar)}
  body.rz-shell header.site{position:fixed;top:0;bottom:0;inset-inline-start:0;width:var(--rz-sidebar);z-index:60;
    overflow-x:hidden;overflow-y:auto;border-bottom:0;border-inline-end:1px solid rgba(255,255,255,.08)}
  body.rz-shell header.site .wrap.nav{width:100%;min-height:100%;margin:0;padding:18px 14px;flex-direction:column;align-items:stretch;gap:6px}
  body.rz-shell header.site .logo{justify-content:center;margin:0 0 10px;padding:10px}
  body.rz-shell header.site .nav-links{flex-direction:column;align-items:stretch;gap:2px;margin:0;width:100%;overflow:visible}
  body.rz-shell header.site .nav-links > li > a,
  body.rz-shell header.site .nav-links .nav-group > .nav-more{display:flex;width:100%;align-items:center;justify-content:space-between;
    padding:9px 12px;border:0;border-radius:10px;font-size:14.5px;color:rgba(255,255,255,.86);text-align:start}
  /* count badge sits at the end of the row, next to the arrow — not floating mid-row */
  body.rz-shell header.site .nav-links .nav-group > .nav-more{justify-content:flex-start;gap:0}
  body.rz-shell header.site .nav-links .pw-badge{margin-inline-start:auto!important}
  body.rz-shell header.site .nav-links .nav-group > .nav-more::after{margin-inline-start:8px}
  body.rz-shell header.site .nav-links .nav-group > .nav-more:not(:has(.pw-badge))::after{margin-inline-start:auto}
  body.rz-shell header.site .nav-links > li > a:hover,
  body.rz-shell header.site .nav-links .nav-group > .nav-more:hover{background:rgba(255,255,255,.08);color:#fff}
  body.rz-shell header.site .nav-links > li > a.active,
  body.rz-shell header.site .nav-links .nav-group.rz-current > .nav-more{background:rgba(255,255,255,.10);color:#fff;box-shadow:inset -4px 0 0 var(--rz-gold)}
  body.rz-shell header.site .nav-links .nav-menu{position:static;display:none;min-width:0;margin:0;padding:2px 0 6px;background:transparent;border:0;box-shadow:none}
  body.rz-shell header.site .nav-links .nav-menu::before{display:none}
  /* R3 batch 3 (decision 3): the state of a group is its .open class (the script opens the group of the current page at load and keeps the last state), so a group can be closed */
  body.rz-shell header.site .nav-links .nav-group.open > .nav-menu{display:block}
  body.rz-shell header.site .nav-links .nav-group.open > .nav-more::after{transform:rotate(180deg)}
  body.rz-shell header.site .nav-links .nav-menu li a{padding:7px 12px;padding-inline-start:24px;border:0;border-radius:8px;font-size:13.5px;white-space:normal;color:rgba(255,255,255,.74)}
  body.rz-shell header.site .nav-links .nav-menu li a:hover{background:rgba(255,255,255,.08);color:#fff}
  body.rz-shell header.site .nav-links .nav-menu li a.active{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset -3px 0 0 var(--rz-gold)}
  body.rz-shell header.site .nav-user{margin:auto 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.10)}
  body.rz-shell header.site .pw-acct-btn{width:100%;padding:8px;border-radius:12px;background:rgba(255,255,255,.06)}
  body.rz-shell header.site .pw-acct-menu{top:auto;bottom:calc(100% + 8px);inset-inline-start:0;inset-inline-end:auto;width:100%}
}
@media print{body.rz-shell{padding:0}}

/* ---- RZ-UI-04 dashboard ---- */
.rz-dash-head .rz-dash-sub{margin-top:2px;font-size:13.5px;color:var(--muted)}
.rz-tasks{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 14px}
.rz-task{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid var(--border);border-radius:14px;
  color:var(--primary-dark);text-decoration:none;box-shadow:0 1px 2px rgba(19,42,71,.05);transition:border-color .15s,box-shadow .15s}
.rz-task:hover{border-color:var(--rz-gold);box-shadow:0 6px 18px rgba(19,42,71,.08)}
.rz-task.main{background:var(--rz-navy);border-color:var(--rz-navy);color:#fff}
.rz-task-ic{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:11px;
  background:var(--primary-soft);color:var(--rz-navy);font-size:20px;font-weight:700;line-height:1}
.rz-task.main .rz-task-ic{background:var(--rz-gold);color:#fff}
.rz-task[data-rz-task="sale"] .rz-task-ic::after{content:"+"}
.rz-task[data-rz-task="price"] .rz-task-ic::after{content:"⌕"}
.rz-task[data-rz-task="return"] .rz-task-ic::after{content:"↩"}
.rz-task[data-rz-task="receive"] .rz-task-ic::after{content:"⇣"}
.rz-task[data-rz-task="close"] .rz-task-ic{background:var(--rz-gold-50);color:var(--rz-gold-700)}
.rz-task[data-rz-task="close"] .rz-task-ic::after{content:"▣"}
.rz-task-tx{display:flex;flex-direction:column;line-height:1.35}
.rz-task-tx b{font-size:15.5px}
.rz-task-tx small{font-size:12.5px;color:var(--muted)}
.rz-task.main .rz-task-tx small{color:#c9d3e0}

.rz-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:14px}
.rz-kpi{padding:14px 16px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 1px 2px rgba(19,42,71,.05)}
.rz-kpi.hero{background:var(--rz-navy);border-color:var(--rz-navy);color:#fff}
.rz-kpi-l{font-size:13px;color:var(--muted)}
.rz-kpi-v{margin-top:4px;font-size:28px;font-weight:700;line-height:1.25;color:var(--primary-dark);font-variant-numeric:tabular-nums}
.rz-kpi-v small{font-size:15px;font-weight:600;opacity:.75}
.rz-kpi-v.rz-na{font-size:17px;font-weight:600;color:var(--muted)}
.rz-kpi-v.rz-alert{color:var(--rz-bad)}
.rz-kpi-s{margin-top:4px;font-size:12.5px;color:var(--muted)}
.rz-kpi-s a{color:var(--rz-gold-700);font-weight:600}
.rz-kpi-n{margin-top:2px;font-size:11.5px;color:var(--muted)}
.rz-kpi.hero .rz-kpi-l,.rz-kpi.hero .rz-kpi-s,.rz-kpi.hero .rz-kpi-n,.rz-kpi.hero .rz-kpi-v.rz-na{color:#c9d3e0}
.rz-kpi.hero .rz-kpi-v{color:#fff}
.rz-up{color:var(--rz-ok);font-weight:700}
.rz-down{color:var(--rz-bad);font-weight:700}
.rz-kpi.hero .rz-up{color:#86dcae}
.rz-kpi.hero .rz-down{color:#f19a90}

.rz-dash-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:start;margin-bottom:14px}
.rz-dash-grid > .rz-attn:only-child{grid-column:1 / -1}
.rz-chart h3{margin:0 0 12px;font-size:16px;color:var(--primary-dark)}
.rz-na{color:var(--muted)}
.rz-bars{display:flex;align-items:flex-end;gap:8px;height:200px;padding-top:8px;border-bottom:1px solid var(--border)}
.rz-bars > .rz-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:14px;height:100%}
.rz-bars > .rz-bar span{display:block;width:100%;max-width:38px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--rz-navy),var(--rz-navy-900))}
.rz-bars > .rz-bar.now span{background:linear-gradient(180deg,var(--rz-gold),var(--rz-gold-700))}
.rz-bars > .rz-bar i{margin-top:6px;font-size:11.5px;font-style:normal;color:var(--muted)}
.rz-attn .c3-dashhero{padding:18px 20px}
.rz-attn .c3-mets{grid-template-columns:1fr 1fr;gap:14px 0}
.rz-attn .c3-met:nth-child(odd){border:none;padding-inline-start:0}
.rz-attn .c3-met .v{font-size:30px}
.rz-note{padding:10px 14px;background:var(--rz-gold-50);border:1px solid #ead9c2;border-radius:12px;font-size:13px;color:#6b4e2c}
@media (max-width:900px){.rz-dash-grid{grid-template-columns:1fr}}

/* ---- J14 visual review 2 ------------------------------------------------------------------------------
   1) Side-menu section labels (non-link group captions such as «نقاط البيع» inside «المبيعات»).
   2) A compact, consistent form system for settings and users: fields sized by their content, grouped in
      titled boxes, no wide empty inputs for a 2-letter code.
   3) Theme hooks over the APPROVED base (html[data-theme]). Only "base" is approved; night / sand / clear
      are the 2026-10-07 proposal models, prepared for the owner's choice and NOT applied unless a stored
      setting selects them (no storage exists in this build — patch request to its owner).
   ------------------------------------------------------------------------------------------------------ */
/* UI-FIRST 2026-10-22 (L4 note: the section captions were small and pale): 12.5px and a clearly readable tone on the navy side menu (white at .72, was .5) and on the light drop-down. */
.nav-links .nav-menu li.rz-nav-caption{padding:10px 14px 3px;font-size:12.5px;font-weight:700;color:#4a5b6d;letter-spacing:0;cursor:default}
body.rz-shell header.site .nav-links .nav-menu li.rz-nav-caption{padding:10px 12px 3px;padding-inline-start:24px;color:rgba(255,255,255,.72)}
body.rz-shell.rz-nav-open header.site .nav-links .nav-menu li.rz-nav-caption{color:rgba(255,255,255,.72)}

/* UI-FIRST 2026-10-22 (UI-G-01/02/03/06): two families of fields were in use (.form-row: 1px border, 8px corners, about 48px high; .pw-input: 1.5px, 10px, 40px). Both are now the one size of the root tokens. */
.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]),.form-row select{min-height:var(--rz-control-h);padding:var(--rz-control-pad);border-width:var(--rz-control-border);border-radius:var(--rz-control-radius);font-size:var(--rz-control-font);line-height:1.5}
.rz-release{margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.auth-card .rz-release{margin:16px 0 0;padding-top:10px;border-top:1px solid var(--border);text-align:center}
.rz-dash-head .rz-release{margin:2px 0 4px}
.form-row textarea{padding:var(--rz-control-pad);border-width:var(--rz-control-border);border-radius:var(--rz-control-radius);font-size:var(--rz-control-font);line-height:1.6}
.pw-input,.pw-select{min-height:var(--rz-control-h);padding-block:8px;border-radius:var(--rz-control-radius);font-size:var(--rz-control-font);line-height:1.5}
.btn{min-height:var(--rz-control-h);padding-block:4px;border-radius:var(--rz-control-radius)}
.btn-sm{min-height:32px;padding-inline:14px}
/* UI-FIRST R3 (L4 unified-size impact, H5/H4): a button whose text wraps keeps a little room above and below it (it was 0), and the very small button of the picture card has its own size instead of an inline padding. */
.btn-xs{min-height:26px;padding:2px 9px;font-size:12.5px}
/* H1: the button that follows a filter field is as tall as the field (40px) and sits on the same baseline; before, a 32px button stood beside a 40px field. Only in a GET form (the filters): a button after a field in any other form - the cashier screen and the vertical forms - is not moved (L4 verdict 2026-10-22). */
form[method="GET"] > .form-row ~ .btn,form[method="GET"] > .form-row ~ button.btn{min-height:var(--rz-control-h);align-self:flex-end}
/* H2 + H3: raw fields that are not in a .form-row - in the cells of an items table, and in the one-line forms beside a button (a reason, a quantity) - had the browser's own height. They take the size of the small button they stand beside (32px), by context; nothing outside a table cell or such a form is touched, and the search select, the cashier and the .pw-* fields keep their own size. */
td > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.pw-input):not(.rz-ss-input),td > select,.rz-lines input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.pw-input):not(.rz-ss-input),.rz-lines select,.rz-inline-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.pw-input):not(.rz-ss-input),.rz-inline-form select,form:has(> .btn-sm) > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.pw-input):not(.rz-ss-input),form:has(> .btn-sm) > select,td form:has(.btn-sm) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.pw-input):not(.rz-ss-input),td form:has(.btn-sm) select{min-height:32px;padding:4px 10px;border-width:1.5px;border-radius:var(--rz-control-radius);font-size:13px;line-height:1.5}

.rz-form-box{border:1px solid var(--border);border-radius:12px;padding:14px 16px 4px;margin:0 0 14px;background:var(--card,#fff);min-width:0}
.rz-form-box > legend,.rz-form-box > .rz-form-box-t{padding:0 6px;margin:0 0 8px;font-size:14px;font-weight:700;color:var(--primary-dark)}
.rz-form-box > .rz-form-box-help{margin:-4px 0 10px;font-size:12.5px;color:var(--muted);line-height:1.7}
.rz-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px 14px}
.rz-fields > .form-row{grid-column:span 6;margin-bottom:12px}
.rz-fields > .form-row.rz-w-xs{grid-column:span 2}
.rz-fields > .form-row.rz-w-sm{grid-column:span 3}
.rz-fields > .form-row.rz-w-md{grid-column:span 4}
.rz-fields > .form-row.rz-w-lg{grid-column:span 8}
.rz-fields > .form-row.rz-w-full{grid-column:1 / -1}
.rz-fields > .form-row input,.rz-fields > .form-row select,.rz-fields > .form-row textarea{width:100%;max-width:100%}
/* UI-FIRST 2026-10-22: without :not([hidden]) this rule beat the hidden attribute, so a note meant to appear only on failure («الصورة غير متوفرة») was always shown. */
.rz-fields > .form-row small.muted:not([hidden]){display:block;margin-top:4px;font-size:12px;line-height:1.6}
@media (max-width:900px){
  .rz-fields > .form-row,.rz-fields > .form-row.rz-w-lg{grid-column:span 6}
  .rz-fields > .form-row.rz-w-xs,.rz-fields > .form-row.rz-w-sm,.rz-fields > .form-row.rz-w-md{grid-column:span 3}
}
@media (max-width:600px){
  .rz-fields > .form-row,.rz-fields > .form-row.rz-w-xs,.rz-fields > .form-row.rz-w-sm,.rz-fields > .form-row.rz-w-md,.rz-fields > .form-row.rz-w-lg{grid-column:1 / -1}
}

/* phone (VR2-001 at 375): one-line drawer button, avatar-only account, two-column tasks and figures with the
   main task and the sales hero across the full width — no card or number is cut. */
@media (max-width:600px){
  body.rz-shell .rz-menu-toggle{white-space:nowrap;padding:7px 10px}
  body.rz-shell header.site .pw-acct-id{display:none}
  /* U01 (audit b4610d79, 397 against 390 on every drawer page; the cashier screen, whose bar wraps, measured 390): the bar is one non-wrapping row
     (logo with flex:none + drawer button + account + two 12px gaps) about 7px wider than the 362px content. A tighter gap and a logo that may
     shrink (the shop name is cut with an ellipsis only when it must) keep the page as wide as the screen. */
  body.rz-shell header.site .wrap.nav{gap:8px}
  body.rz-shell header.site .logo{flex:0 1 auto;min-width:0}
  body.rz-shell header.site .logo .brand-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rz-tasks{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rz-task{padding:12px;gap:10px}
  .rz-task.main{grid-column:1 / -1}
  .rz-task-ic{width:34px;height:34px;font-size:17px}
  .rz-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rz-kpi{padding:12px}
  .rz-kpi.hero{grid-column:1 / -1}
  .rz-kpi-v{font-size:22px}
  .rz-kpi-v.rz-na{font-size:15px}
}

/* page tabs shared by settings and users (same look; behaviour stays in each page) */
.rz-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.rz-tabs > button,.rz-tabs > a{cursor:pointer;border:1px solid var(--border);background:var(--card,#fff);border-radius:9px;padding:8px 14px;font:inherit;font-size:14px;color:var(--primary-dark);text-decoration:none}
.rz-tabs > button.active,.rz-tabs > a.active{background:var(--rz-navy);border-color:var(--rz-navy);color:#fff}

/* theme picker preview (settings) — swatches only, no stored choice */
.rz-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.rz-theme-card{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--card,#fff)}
.rz-theme-card.is-base{border-color:var(--rz-gold);box-shadow:inset 0 0 0 1px var(--rz-gold)}
.rz-theme-sw{display:flex;gap:6px;margin:8px 0}
.rz-theme-sw i{display:block;width:28px;height:28px;border-radius:8px;border:1px solid rgba(0,0,0,.08)}
.rz-theme-card b{display:block;font-size:14px;color:var(--primary-dark)}
.rz-theme-card small{display:block;font-size:12px;color:var(--muted);line-height:1.6}

/* theme token sets (proposal models; only applied when html[data-theme] selects them) */
html[data-theme="night"]{--bg:#0b1220;--card:#131c2e;--table-row-hover:#1a263d;--text:#e4eaf2;--muted:#93a2b5;--border:#2a3b50;--primary:#1e293b;--primary-dark:#e2e8f0;--primary-soft:#1f2e42;--accent:#d4a359;--accent-dark:#b2834f;--accent-soft:#33281b;--rz-navy:#0f172a;--rz-navy-900:#070c17;--rz-gold:#d4a359;--rz-gold-700:#b2834f;--rz-gold-50:#33281b}
html[data-theme="night"] body{background:var(--bg);color:var(--text)}
html[data-theme="night"] main h1,html[data-theme="night"] main h2,html[data-theme="night"] main h3,html[data-theme="night"] .rz-kpi:not(.hero) .rz-kpi-v,html[data-theme="night"] .rz-task:not(.main),html[data-theme="night"] .form-row label{color:var(--text)}
html[data-theme="night"] .rz-task,html[data-theme="night"] .rz-kpi:not(.hero),html[data-theme="night"] .card,html[data-theme="night"] .rz-form-box,html[data-theme="night"] .rz-theme-card,html[data-theme="night"] .rz-font-card{background:var(--card);border-color:var(--border)}
html[data-theme="night"] .rz-tabs > button:not(.active),html[data-theme="night"] .rz-tabs > a:not(.active){background:var(--card);color:var(--text);border-color:var(--border)}
html[data-theme="night"] input,html[data-theme="night"] select,html[data-theme="night"] textarea{background:#1c2a3c;color:var(--text);border-color:var(--border)}
html[data-theme="sand"]{--bg:#f4efe6;--card:#fffdf8;--table-row-hover:#f9f4eb;--border:#dfd2bd;--primary:#7a5a33;--primary-dark:#5c4122;--primary-soft:#efe5d5;--accent:#b5653b;--accent-dark:#8c4b29;--accent-soft:#f5e4d7;--rz-navy:#6b4c2a;--rz-navy-900:#4a3319;--rz-gold:#c28e4c;--rz-gold-700:#9e6d32;--rz-gold-50:#f3e6d2;--muted:#7a6f60}
html[data-theme="sand"] body{background:var(--bg)}
html[data-theme="sand"] .rz-task.main,html[data-theme="sand"] .rz-kpi.hero{background:#6b4c2a;border-color:#6b4c2a}
html[data-theme="clear"]{--bg:#f8fafc;--card:#ffffff;--table-row-hover:#f1f5f9;--text:#000000;--muted:#1e293b;--border:#64748b;--primary:#0f172a;--primary-dark:#000000;--primary-soft:#e2e8f0;--accent:#2563eb;--accent-dark:#1d4ed8;--accent-soft:#dbeafe;--rz-navy:#090d16;--rz-navy-900:#000000;--rz-gold:#2563eb;--rz-gold-700:#1d4ed8;--rz-gold-50:#eff6ff}
html[data-theme="clear"] body{background:var(--bg);color:#000}
html[data-theme="emerald"]{--bg:#f0fdf4;--card:#ffffff;--table-row-hover:#f0fdf4;--text:#064e3b;--muted:#3f6254;--border:#bbf7d0;--primary:#065f46;--primary-dark:#064e3b;--primary-soft:#dcfce7;--accent:#10b981;--accent-dark:#059669;--accent-soft:#d1fae5;--rz-navy:#065f46;--rz-navy-900:#022c22;--rz-gold:#10b981;--rz-gold-700:#047857;--rz-gold-50:#ecfdf5}
html[data-theme="emerald"] body{background:var(--bg);color:var(--text)}
html[data-theme="sunset"]{--bg:#fff7ed;--card:#ffffff;--table-row-hover:#fff7ed;--text:#431407;--muted:#7c4a3a;--border:#fed7aa;--primary:#991b1b;--primary-dark:#7f1d1d;--primary-soft:#fee2e2;--accent:#ea580c;--accent-dark:#c2410c;--accent-soft:#ffedd5;--rz-navy:#991b1b;--rz-navy-900:#450a0a;--rz-gold:#f97316;--rz-gold-700:#c2410c;--rz-gold-50:#fff7ed}
html[data-theme="sunset"] body{background:var(--bg);color:var(--text)}

.rz-font-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.rz-font-section-title{margin:0 0 4px;font-size:15px;font-weight:800;color:var(--primary-dark)}
.rz-font-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:12px}
.rz-font-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--card,#fff);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.rz-font-card:hover{border-color:var(--primary)}
.rz-font-card.is-base{border-color:var(--rz-gold);box-shadow:inset 0 0 0 1px var(--rz-gold)}
.rz-font-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.rz-font-meta b{font-size:14px;color:var(--primary-dark)}
.rz-font-sample{font-size:15px;color:var(--text);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 188 SHARED CLASSES (C5 #53; L1 owns shared CSS; used by L2/L3 pages) - additive only, no existing rule is changed */
:root{--rz-fs-xs:12px}
.status-pill{font-size:var(--rz-fs-xs)}
.table-scroll{overflow-x:auto;border-radius:inherit}
.card-title{margin-top:0;font-size:16px;color:var(--primary-dark)}
.card--narrow{max-width:820px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.stack{display:grid;gap:16px}
.cluster{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rz-savebar{position:sticky;bottom:0;background:var(--card);border-top:1px solid var(--border);padding:12px 0;display:flex;gap:8px;z-index:5}
/* Arabic file button: a label wraps the real input, which is stretched invisibly over it (the browser's own English text never shows) */
.rz-file{position:relative;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.rz-file input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.rz-file-name{color:var(--muted);font-size:var(--rz-fs-xs)}
/* line-item tables (167 sizes the fields; this keeps them usable inside a scrolling table) */
.rz-lines input,.rz-lines select{min-height:32px;min-width:90px}
.page-head .rz-help-link{margin-inline-start:auto;white-space:nowrap}
@media (max-width:900px){
  body.rz-shell header.site .pw-acct-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* ---- R3 X2: the page scroll bar is on the LEFT of the Arabic screens. The window's own bar follows the browser's UI direction (always right); an element's bar follows the element's direction
        (rtl = left). So on the wide back-office layout the body is the scroller, and the window itself does not scroll. overflow-x:auto (not hidden): a table wider than the screen is never clipped, it gets a horizontal bar. Narrow screens (top bar, overlay scroll bars) and the cashier screen are unchanged. ---- */
@media (min-width:1100px){
  html:has(body.rz-shell){height:100%;overflow:hidden}
  body.rz-shell{height:100vh;height:100dvh;overflow-x:auto;overflow-y:auto;scrollbar-gutter:stable}
  body.rz-shell:focus{outline:0}
}
@media print{html:has(body.rz-shell){height:auto;overflow:visible}body.rz-shell{height:auto;overflow:visible}}

/* Mohammed's logo decision: the logo fills a fixed frame, enlarged or fitted, never cropped or distorted (object-fit: contain scales up as well as down) */
header.site .logo img.brand-logo{width:190px;height:56px;max-width:100%;object-fit:contain;object-position:center}
body.rz-shell header.site .logo img.brand-logo{width:100%;height:84px}
@media (max-width:600px){header.site .logo img.brand-logo{width:150px;height:46px}}

/* ---- V5-02 (PM15 visual review round 5): one header, one set of page buttons, row actions beside the row, small page-link arrows.
        Tokens first (change a size here, every page follows); the header look is the Reports Center hero's: navy band, gold kicker, one quiet description line. ---- */
:root{
  --rz-ph-pad:14px 20px; --rz-ph-radius:14px; --rz-ph-title:21px; --rz-ph-sub:12.5px; --rz-ph-gap:12px; --rz-ph-mb:18px;
  --rz-row-gap:6px; --rz-pager-h:34px;
}
.rz-ph{align-items:center;gap:var(--rz-ph-gap);margin-bottom:var(--rz-ph-mb);padding:var(--rz-ph-pad);border-radius:var(--rz-ph-radius);background:var(--rz-navy);color:#fff}
.rz-ph-title{min-width:0}
.rz-ph .kicker{color:var(--rz-gold);margin-bottom:2px}
.rz-ph h1{margin:0;font-size:var(--rz-ph-title);line-height:1.3;color:#fff;overflow-wrap:anywhere}
.rz-ph-sub{margin:2px 0 0;font-size:var(--rz-ph-sub);color:rgba(255,255,255,.72);max-width:70ch}
.rz-ph-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rz-ph .btn-ghost{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.28);color:#fff}
.rz-ph .btn-ghost:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.5);color:#fff}
.rz-ph .btn:focus-visible{outline:3px solid var(--rz-gold);outline-offset:2px}
@media (max-width:700px){.rz-ph{padding:12px 14px}.rz-ph h1{font-size:18px}.rz-ph-actions{flex:1 1 100%}.rz-ph-actions .btn{flex:1 1 auto}}
@media print{.rz-ph{background:#fff;color:#000;border:1px solid #ccc}.rz-ph h1,.rz-ph-sub,.rz-ph .kicker{color:#000}.rz-ph-actions{display:none}}
/* pages not yet moved to x-page-header keep the light header, with the same title size and spacing */
.page-head:not(.rz-ph):not(.rz-bar) h1{font-size:var(--rz-ph-title)}
.page-head:not(.rz-ph):not(.rz-bar){margin-bottom:var(--rz-ph-mb);align-items:center}

/* row actions: the buttons of a table row sit in ONE line beside the row's item, never stacked under it or spread over the page */
.rz-row-actions{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:var(--rz-row-gap);white-space:nowrap}
.rz-row-actions form{display:inline;margin:0}
td.rz-row-actions-cell{width:1%;white-space:nowrap}

/* page links (replaces Laravel's default view, resources/views/vendor/pagination/tailwind.blade.php) */
.rz-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
.rz-pager-count{font-size:13px;color:var(--muted,#5b6678)}
.rz-pager-list{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.rz-pager-item{display:inline-flex;align-items:center;justify-content:center;min-width:var(--rz-pager-h);height:var(--rz-pager-h);padding:0 12px;border:1px solid var(--border,#d6dbe3);border-radius:9px;background:#fff;color:var(--rz-navy);font-size:13px;font-weight:600;text-decoration:none}
a.rz-pager-item:hover{border-color:var(--rz-gold);color:var(--rz-gold-700)}
.rz-pager-item.is-current{background:var(--rz-navy);border-color:var(--rz-navy);color:#fff}
.rz-pager-item.is-off{opacity:.5;cursor:default}
/* safety net: any other framework navigation that still draws an svg arrow can never grow past an icon */
nav[role="navigation"] svg{display:inline-block;width:18px;height:18px}
@media print{.rz-pager{display:none}}

/* H49 (16 V8): the required mark of an approved form: a red star after the label (a visual mark only; the server judges the value) */
.rz-req{color:var(--rz-bad,#b3261e);font-weight:700;margin-inline-start:2px}

/* V5-04 V2: a field the toast named is marked on the field itself; an input instruction is a hover tip / placeholder, not a paragraph */
input.is-invalid,select.is-invalid,textarea.is-invalid{border-color:var(--rz-bad)!important;box-shadow:0 0 0 2px rgba(179,38,30,.18)}
.rz-tip{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-inline-start:6px;border-radius:50%;border:1px solid var(--rz-gold-700);color:var(--rz-gold-700);font-size:11px;font-weight:700;cursor:help;vertical-align:middle}
.rz-ph h1 .rz-tip,.rz-bar .rz-tip,.rz-actionbar .rz-tip,.rz-close-head h3 .rz-tip,.rz-close-head .rz-tip,.sess-main .rz-close-head .rz-tip,.rz-dialog-head .rz-tip,.rz-return-dialog h2 .rt-help,.rz-return-dialog h2 .rz-tip{border-color:var(--rz-gold);color:var(--rz-gold-50,#f7f0e7)}

/* V5-04 V3: floating messages. The stack is fixed to a corner above everything and takes no place in the page (no push-down); only the messages catch clicks. */
.pw-toasts{position:fixed;bottom:18px;inset-inline-start:18px;z-index:300;display:flex;flex-direction:column-reverse;gap:10px;width:min(440px,calc(100vw - 36px));pointer-events:none}
/* V5-04 V4 (Mohammed: the message must follow the identity): a white card with the identity border, radius and shadow like the page header, a coloured edge and a round icon for the kind
   (error = identity red, success = identity green, warning = identity gold); navy text. It sits at the bottom corner so it never covers the page title. */
.pw-toasts .pw-toast{position:relative;margin:0;pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:12px 14px;padding-inline-start:52px;background:#fff;border:1px solid var(--border);border-inline-start:5px solid var(--rz-bad);border-radius:var(--rz-ph-radius,14px);color:var(--rz-navy);font-size:14px;box-shadow:0 10px 28px rgba(19,42,71,.22)}
.pw-toasts .pw-toast::before{content:"!";position:absolute;inset-inline-start:12px;top:12px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--rz-bad);color:#fff;font-weight:800;font-size:16px;line-height:1}
.pw-toasts .pw-toast.ok{border-inline-start-color:var(--rz-ok)}
.pw-toasts .pw-toast.ok::before{content:"✓";background:var(--rz-ok)}
.pw-toasts .pw-toast[data-finance]{border-inline-start-color:var(--rz-gold)}
.pw-toasts .pw-toast[data-finance]::before{background:var(--rz-gold)}
.pw-toasts .pw-toast strong{color:var(--rz-navy);font-weight:800}
.pw-toasts .pw-toast .pw-toast-x{color:var(--rz-navy)}
@media print{.pw-toasts{display:none}}
/* a hover tip sits beside its field's label */
label .rz-tip,h3 .rz-tip{margin-inline-start:6px}

/* V5-02 V2: the buttons of a document head (x-doc.page headActions) sit in one wrapping row */
.rz-doc-head-actions{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}

/* V5 sort: a header the client sort made clickable (layouts/partials/table_sort) */
th[data-client-sort]{cursor:pointer;user-select:none}
th[data-client-sort]:hover{color:var(--rz-gold-700)}
th[data-client-sort]:focus-visible{outline:2px solid var(--rz-gold);outline-offset:-2px}

/* VR5-051: the read-only product page, a label / value list */
.rz-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 18px;margin:0}
.rz-dl > div{min-width:0}
.rz-dl dt{font-size:12.5px;color:var(--muted);margin:0 0 2px}
.rz-dl dd{margin:0;font-weight:600;color:var(--rz-navy);overflow-wrap:anywhere}

/* V5 row actions / modal / bulk bar (x-row-actions, x-modal, x-bulk-bar) */
.rz-rowmenu{display:inline-block;position:relative}
.rz-rowmenu > summary{list-style:none;cursor:pointer}
.rz-rowmenu > summary::-webkit-details-marker{display:none}
.rz-rowmenu > summary::after{content:" ▾";font-size:11px}
.rz-rowmenu-list{position:absolute;inset-inline-end:0;top:100%;z-index:60;min-width:190px;margin-top:4px;padding:4px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 28px rgba(19,42,71,.22)}
.rz-rowmenu-form{margin:0}
.nav-links .nav-menu li.rz-nav-sub a{font-size:13px;opacity:.85}
.rz-rowmenu-item{display:block;width:100%;padding:9px 12px;border:0;border-radius:8px;background:none;color:var(--rz-navy);font:inherit;text-align:start;text-decoration:none;white-space:nowrap;cursor:pointer}
.rz-rowmenu-item:hover,.rz-rowmenu-item:focus-visible{background:var(--rz-gold-50);outline:none}
.rz-rowmenu-item.is-danger{color:var(--rz-bad)}
dialog.rz-modal{padding:0;border:0;border-radius:var(--rz-ph-radius,14px);background:#fff;color:var(--rz-navy);box-shadow:0 24px 60px rgba(19,42,71,.35);width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 40px);overflow:auto}
dialog.rz-modal-sm{width:min(420px,calc(100vw - 28px))}
dialog.rz-modal-lg{width:min(820px,calc(100vw - 28px))}
dialog.rz-modal::backdrop{background:rgba(19,42,71,.5)}
.rz-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--rz-navy);color:#fff}
.rz-modal-head h3{margin:0;font-size:17px;color:#fff}
.rz-modal-x{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.rz-modal-body{padding:18px}
.rz-modal-foot{display:flex;gap:8px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid var(--border);background:#fafbfd}
.rz-bulkbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;background:#fff;border:1px solid var(--border);border-inline-start:5px solid var(--rz-gold);border-radius:var(--rz-ph-radius,14px)}
.rz-bulkbar[hidden]{display:none}
@media print{.rz-rowmenu,.rz-bulkbar{display:none}}

/* V5-07 product form (approved by Mohammed): tabs, columns by content size, a «+» beside a field, the internal-use switch */
#product-form .card[data-ptab],.card[data-ptab]{padding:18px 20px}
#product-form .card[data-ptab]:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;align-content:start}
.card[data-ptab][hidden]{display:none!important}
#product-form .card[data-ptab] > *{grid-column:1/-1}
#product-form .card[data-ptab] > .grid-2{display:contents}
#product-form .card[data-ptab] .form-row{grid-column:auto;min-width:0}
#product-form .card[data-ptab] .form-row.w2{grid-column:span 2}
#product-form .card[data-ptab] .form-row.wide,#product-form .card[data-ptab] .form-row:has(> table),#product-form .card[data-ptab] .form-row:has(textarea){grid-column:1/-1}
.pf-tabs{margin-bottom:12px}
.rz-tab-err{display:inline-block;min-width:18px;height:18px;line-height:18px;margin-inline-start:6px;border-radius:9px;background:var(--rz-bad);color:#fff;font-size:11px;text-align:center;font-weight:700}
.rz-tabs > button.has-error{border-color:var(--rz-bad)}
.rz-has-add{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}
.rz-has-add > label,.rz-has-add > small,.rz-has-add > .muted{grid-column:1/-1}
.rz-add-btn{min-width:38px;font-weight:800}
.rz-switch{display:flex;align-items:center;gap:12px;cursor:pointer;margin:0}
.rz-switch input{position:absolute;opacity:0;width:1px;height:1px}
.rz-switch-track{position:relative;flex:0 0 auto;width:46px;height:26px;border-radius:13px;background:#c9d1dc;transition:background .15s}
.rz-switch-track::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}
.rz-switch input:checked + .rz-switch-track{background:var(--rz-gold)}
.rz-switch input:checked + .rz-switch-track::after{inset-inline-start:23px}
.rz-switch input:focus-visible + .rz-switch-track{outline:3px solid var(--rz-gold);outline-offset:2px}
.rz-internal{padding:12px 14px;border:1px solid var(--border);border-inline-start:5px solid var(--rz-gold);border-radius:var(--rz-ph-radius,14px);margin-top:6px}
@media (max-width:760px){#product-form .card[data-ptab]:not([hidden]){grid-template-columns:1fr}#product-form .card[data-ptab] .form-row.w2{grid-column:auto}}
/* V5-07: smaller fields (Mohammed: the fields are big) and the messages at the TOP CENTRE of the window, visible while scrolling */
:root{--rz-control-h:36px;--rz-control-pad:6px 10px;--rz-control-font:13.5px}
.pw-toasts{top:14px;bottom:auto;inset-inline-start:auto;left:50%;right:auto;transform:translateX(-50%);flex-direction:column;width:min(520px,calc(100vw - 28px))}

/* V5: the document actions of a page head (x-doc.actions) */
.rz-docact{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.rz-docact-form{display:inline;margin:0}
.rz-ph .rz-rowmenu > summary{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.28);color:#fff}
.rz-ph .rz-rowmenu-list{color:var(--rz-navy)}

/* V5 batch B: the internal-use switch sits at the top left corner of the first tab (the end of the line in RTL) */
#product-form .card[data-ptab="basic"] > .rz-internal{grid-column:1/-1;justify-self:end;order:-1;margin:0 0 12px;padding:8px 12px}
#product-form .card[data-ptab="basic"] > .card-title{order:-2}
#product-form .card[data-ptab="basic"]{align-content:start}
.form-row .rz-switch{display:flex;margin:0;font-weight:500}
.rz-switch-track{display:block}
/* V5 batch C (Mohammed: the row actions as icons and symbols): an inline row of icon buttons, each with its tooltip */
.rz-iconrow{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}
.rz-icoform{margin:0;display:inline-flex}
.rz-ico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--rz-navy);cursor:pointer;text-decoration:none}
.rz-ico:hover,.rz-ico:focus-visible{background:var(--rz-gold-50);border-color:var(--rz-gold);outline:none}
.rz-ico.is-danger{color:var(--rz-bad)}
.rz-ico.is-danger:hover,.rz-ico.is-danger:focus-visible{background:#fdecec;border-color:var(--rz-bad)}
@media print{.rz-iconrow{display:none}}
/* V5 batch C (C5 message 7): the Arabic image uploader, the gallery with its order arrows, the fixed base row of the units */
.rz-upl-drop{display:flex;align-items:center;gap:12px;padding:18px 16px;border:2px dashed #cdbfa8;border-radius:12px;background:#fcfaf6;color:var(--rz-navy);cursor:pointer}
.rz-upl-drop:hover,.rz-upl-drop:focus-visible,.rz-upl-drop.is-over{border-color:var(--rz-gold);background:var(--rz-gold-50);outline:none}
.rz-upl-list{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:10px}
.rz-upl-item{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--border);border-radius:12px;background:#fff}
.rz-upl-item img{width:64px;height:64px;object-fit:contain;border-radius:8px;background:var(--bg)}
.rz-upl-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.rz-upl-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.rz-upl-badge{align-self:flex-start;padding:1px 10px;border-radius:999px;background:var(--rz-gold-50);color:var(--rz-gold-700);font-size:12px;font-weight:700;border:1px solid var(--rz-gold)}
.rz-upl-tools{display:flex;gap:4px;flex-wrap:wrap}.rz-upl-tools .rz-ico[disabled]{opacity:.35;cursor:default}
.rz-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:6px}
.rz-gimg{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--border);border-radius:12px;background:#fff}.rz-gimg.is-primary{border-color:var(--rz-gold);box-shadow:0 0 0 2px rgba(178,131,79,.18)}
.rz-gimg img{width:100%;height:110px;object-fit:contain;border-radius:8px;background:var(--bg)}.rz-gmissing{height:110px;line-height:110px;text-align:center;font-size:12px;color:var(--muted);border-radius:8px;background:var(--bg)}
.rz-base-row input[disabled]{background:#f3f5f8;color:#5a6775}

/* V5 batch C (Mohammed: «الخانات كبيرة زيادة عن اللزوم، تحفظي فقط على حجم الحقول»): ONE shared rule — a field's width follows its CONTENT, not the column.
   Variables:  --rz-fw-xs (≈10 chars: SKU, quantity, percent, factor)  --rz-fw-sm (≈18: barcode, date, mobile, tax no., amount, short lists)  --rz-fw-lg (≈46: a name, a customer / supplier search)  --rz-fw-text (≈70: a description, notes)
   Classes:    .rz-fgrid (a wrapping row of fields; put it on the container)  and on each .form-row:  .rz-fw-xs  .rz-fw-sm (the default)  .rz-fw-lg  .rz-fw-text  .rz-fw-full (the whole line). A wide field never exceeds its line (max-width:100%). */
:root{--rz-fw-xs:calc(10ch + 34px);--rz-fw-sm:calc(18ch + 34px);--rz-fw-lg:calc(46ch + 34px);--rz-fw-text:calc(70ch + 34px)}
.rz-fgrid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 16px}
.rz-fgrid > .form-row{flex:0 0 auto;width:var(--rz-fw-sm);max-width:100%;min-width:0}
.rz-fgrid > .form-row.rz-fw-xs{width:var(--rz-fw-xs)}
.rz-fgrid > .form-row.rz-fw-sm{width:var(--rz-fw-sm)}
.rz-fgrid > .form-row.rz-fw-lg{width:var(--rz-fw-lg)}
.rz-fgrid > .form-row.rz-fw-text{width:var(--rz-fw-text);margin-inline-end:100%}   /* a description / notes field takes its own line */
.rz-fgrid > .form-row.rz-fw-full,.rz-fgrid > .form-row.wide:not([class*="rz-fw-"]),.rz-fgrid > .form-row:has(> table){width:100%}
.rz-fgrid > .form-row.rz-has-add{width:calc(var(--rz-fw-sm) + 46px)}
.rz-fgrid > .form-row input:not([type="radio"]):not([type="checkbox"]),.rz-fgrid > .form-row select,.rz-fgrid > .form-row textarea{width:100%}
.rz-fgrid > .card-title,.rz-fgrid > h3,.rz-fgrid > p,.rz-fgrid > .msg,.rz-fgrid > div:not(.form-row):not(.grid-2){width:100%}
.rz-fgrid > .grid-2{display:contents}
/* the product form cards use it (replacing the 3-column grid of V5-07) */
#product-form .card.rz-fgrid[data-ptab]:not([hidden]){display:flex}
#product-form .card.rz-fgrid > .rz-internal{width:100%;border:0;padding:0;margin:0 0 12px;display:flex;justify-content:flex-start;order:0}
#product-form .card.rz-fgrid > .rz-internal > .rz-switch{border:1px solid var(--border);border-inline-start:5px solid var(--rz-gold);border-radius:var(--rz-ph-radius,14px);padding:8px 12px}
#product-form .card.rz-fgrid[data-ptab="basic"] > .rz-internal[data-product-field="is_sellable"]{justify-content:flex-end;order:-1}

/* V5 batch C (PM15 ruling): the field-bound validation message stays beside its field, and the tab that holds an offending field stays marked, until the value is corrected (the toast alone is temporary) */
.rz-field-err{display:block;margin-top:4px;font-size:12.5px;line-height:1.5;color:var(--rz-bad);font-weight:600}
.rz-tabs > a.has-error{border-color:var(--rz-bad)}
.rz-tabs > button.has-error::after,.rz-tabs > a.has-error::after{content:"";display:inline-block;width:8px;height:8px;margin-inline-start:6px;border-radius:50%;background:var(--rz-bad);vertical-align:middle}
/* V5 batch C (F5, C5 message 7): the settings, users, employees and setup forms (.rz-fields) follow the SAME content-width rule as the product form (--rz-fw-*; see .rz-fgrid): the old size classes map onto it —
   rz-w-xs ⇒ xs · rz-w-sm / rz-w-md / rz-w-half / no class ⇒ sm · rz-w-lg ⇒ lg · rz-w-full ⇒ the whole line, and a description / notes (textarea) ⇒ text (its own line, never the whole page width). */
.rz-fields{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 16px}
.rz-fields > .form-row{flex:0 0 auto;grid-column:auto;width:var(--rz-fw-sm);max-width:100%;min-width:0}
.rz-fields > .form-row.rz-w-xs{width:var(--rz-fw-xs)}
.rz-fields > .form-row.rz-w-sm,.rz-fields > .form-row.rz-w-md,.rz-fields > .form-row.rz-w-half{width:var(--rz-fw-sm)}
.rz-fields > .form-row.rz-w-lg{width:var(--rz-fw-lg)}
.rz-fields > .form-row.rz-w-full{width:100%}
.rz-fields > .form-row:has(textarea){width:var(--rz-fw-text);margin-inline-end:100%}
.rz-fields > :not(.form-row){width:100%}

/* V5 batch C (C5 message 8, «مساحة مهملة»): a ROW of fields (.rz-frow) always fills the line so every row ends on the same edges: its fields share the width equally; .rz-fw-xs / .rz-fw-sm keep their content width and
   the field marked .rz-fill (or any unmarked one) takes what is left; .rz-grow2 takes double. A card title line (.rz-card-head) carries the small switch at its end. A description (.rz-fw-full) spans the row above it. */
.rz-fgrid > .card-title,.rz-card-head{margin:0 0 10px}
.rz-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.rz-card-head .card-title{margin:0}
.rz-card-head .rz-internal{border:0;padding:0;margin:0;width:auto;display:block;order:0}
.rz-card-head .rz-switch{gap:8px;font-size:13px;font-weight:600}
.rz-card-head .rz-switch-track{width:38px;height:22px}
.rz-card-head .rz-switch-track::after{width:16px;height:16px;top:3px}
.rz-card-head .rz-switch input:checked + .rz-switch-track::after{inset-inline-start:19px}
.rz-frow{display:flex;gap:0 16px;width:100%;align-items:flex-start}
.rz-frow > .form-row{flex:1 1 0;min-width:0;width:auto;max-width:none}
.rz-frow > .form-row.rz-fw-xs{flex:0 0 var(--rz-fw-xs)}
.rz-frow > .form-row.rz-fw-sm{flex:0 0 var(--rz-fw-sm)}
.rz-frow > .form-row.rz-grow2{flex:2 1 0}
.rz-fgrid > .form-row.rz-fw-full{width:100%;margin-inline-end:0}
@media (max-width:760px){.rz-frow{flex-wrap:wrap}.rz-frow > .form-row,.rz-frow > .form-row.rz-fw-xs,.rz-frow > .form-row.rz-fw-sm{flex:1 1 100%}}
/* V5-H4 (shared, optional for forms): the search lens on a search-select and the active row with the gold start edge. Opt in with the class; nothing changes for a page that does not use them. */
.rz-ss.rz-ss-lens > .rz-ss-input{padding-inline-end:40px;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23946a3b' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat left 12px center}
.rz-row-active{background:#fff8ea;box-shadow:inset 4px 0 0 var(--rz-gold)}
/* V5-H8: one focus mark for every field: a 3px gold ring, 1px off the edge, on the field that holds the focus (also a field inside a table cell). The active row above carries no ring on its fields; only the focused field is ringed. A field the toast marked keeps its red ring. */
input:focus-visible,select:focus-visible,textarea:focus-visible,
.form-row input:focus-visible,.form-row select:focus-visible,.form-row textarea:focus-visible,
td input:focus-visible,td select:focus-visible,td textarea:focus-visible,
.rz-ss > .rz-ss-input:focus-visible{outline:3px solid var(--rz-gold);outline-offset:1px;border-color:var(--rz-gold);box-shadow:none}
input.is-invalid,select.is-invalid,textarea.is-invalid{box-shadow:0 0 0 2px var(--rz-bad)}
input.is-invalid:focus-visible,select.is-invalid:focus-visible,textarea.is-invalid:focus-visible,
.form-row input.is-invalid:focus-visible,.form-row select.is-invalid:focus-visible,.form-row textarea.is-invalid:focus-visible,
td input.is-invalid:focus-visible,td select.is-invalid:focus-visible,td textarea.is-invalid:focus-visible{outline-color:var(--rz-bad);border-color:var(--rz-bad);box-shadow:0 0 0 2px var(--rz-bad)}
/* V5-H15: the server-rendered field-err lines are repeated by the temporary message and by the note beside the field (alerts.blade marks them); hidden visually, the text stays in the HTML. */
.field-err[data-in-toast]{display:none!important}

/* === rozon-status.css === */
/* STATUS_LABELS (Mohammed 2026-10-15 via C5) — the five tones of App\Domain\Presentation\StatusLabels::pill().
   New classes only; the existing .status-pill / .badge rules are not touched. Text and background keep a readable
   contrast; the colour is never the only sign (the Arabic name is always written). */
.rz-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.rz-status--gray  { background: #eef1f4; color: #4a5866; border-color: #d5dbe1; }  /* draft / not active */
.rz-status--amber { background: #fff4dc; color: #8a5a00; border-color: #f2d494; }  /* waiting / in progress */
.rz-status--green { background: #e3f5ea; color: #1d6b3d; border-color: #b4e0c5; }  /* done / posted / accepted / settled */
.rz-status--red   { background: #fde8e8; color: #a02424; border-color: #f2bcbc; }  /* cancelled / reversed / rejected */
.rz-status--blue  { background: #e4effb; color: #1f4f86; border-color: #b9d3f0; }  /* information / converted */

@media print {
    .rz-status { border-color: #888; background: #fff; color: #000; }
}

/* === rozon-ui-refinements.css === */
/* Keep the sidebar scrollable on short screens without displaying a scrollbar. */
body.rz-shell header.site {
    scrollbar-width: none;
}
body.rz-shell header.site::-webkit-scrollbar {
    display: none;
}

/* PM-3 visual revision: scoped admin geometry; the cashier layout is unchanged. */
body.rz-shell header.site .nav-links,body.rz-shell header.site .nav-links>li{min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
body.rz-shell header.site .nav-links>.nav-group>.nav-more,body.rz-shell header.site .nav-links>li>a{min-height:44px;line-height:1.6}
@media(min-width:1100px){
 body.rz-shell header.site{box-sizing:border-box;inline-size:var(--rz-sidebar);min-inline-size:var(--rz-sidebar);max-inline-size:var(--rz-sidebar)}
 body.rz-shell header.site .nav-links>.nav-group>.nav-more,body.rz-shell header.site .nav-links>li>a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:9px;text-align:start;white-space:normal;padding:10px 12px}
 body.rz-shell header.site .nav-links .pw-badge,body.rz-shell header.site .nav-links>.nav-group>.nav-more::after{margin-inline-start:0!important}
 body.rz-shell header.site .nav-links .nav-menu{box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-inline-size:0}
 body.rz-shell header.site .nav-links .nav-menu li a{display:block;line-height:1.6;padding:9px 12px;padding-inline-start:27px;white-space:normal;overflow-wrap:anywhere}
}
.rz-env-bar{display:flex;justify-content:flex-end;margin:20px 0 6px;padding-top:10px;border-top:1px solid var(--border,#e2e8f0)}
.rz-env-bar .rz-release{margin:0;padding:3px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:600;line-height:1.5}
.auth-card .rz-release{color:#294a65;font-size:14px}
.rb-workspace{max-width:100%;min-width:0}.rb-card{padding:20px;margin-bottom:16px}.rb-card h2{margin:0;font-size:18px;color:var(--primary-dark,#173754)}
.rb-identity{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:18px}.rb-identity input,.rb-identity select{width:100%}
.rb-section-title,.rb-fields-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.rb-section-title .muted,.rb-fields-head .muted{font-size:14px}
.rb-sources{display:flex;flex-wrap:wrap;gap:9px}.rb-source-chip{display:flex;gap:8px;align-items:center;border:1px solid #d6e1eb;border-radius:9px;padding:8px 12px;font-size:15px;cursor:pointer;background:var(--card)}.rb-source-chip:has(input:checked){border-color:#819eb8;background:var(--primary-soft)}.rb-source-invalid{border-color:#b3453e!important}
.rb-selection-warning{color:#9d4135;background:#fff1eb;border-radius:8px;padding:10px 12px;font-size:14px}.rb-fields-head .form-row{margin:0;min-width:230px}.rb-fields-head input{width:100%}.rb-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.rb-field-group{border:1px solid #dce5ed;border-radius:11px;margin-top:10px;overflow:hidden}.rb-field-group summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px 15px;background:var(--primary-soft);font-weight:600;font-size:16px}.rb-field-group summary::after{content:'⌄';margin-inline-start:6px}.rb-group-count{font-size:13px;color:#536f86;margin-inline-start:auto}.rb-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:14px}.rb-field-option{display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:7px;font-size:15px;font-weight:400;line-height:1.5;cursor:pointer}.rb-field-option:has(input:checked){background:var(--primary-soft)}.rb-field-option input{margin-top:4px;accent-color:#1d4368;flex:none}
.rb-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.rb-advanced>summary .muted{font-size:14px}.rb-advanced-body{margin-top:20px}.rb-grouping{border:0;border-bottom:1px solid #dce5ed;padding:0 0 15px;margin:0 0 18px}.rb-grouping legend{font-size:16px;font-weight:600}.rb-option-row{display:grid;grid-template-columns:170px minmax(0,1fr) 150px;gap:12px;align-items:center;margin:13px 0}.rb-option-row select{width:100%}
.rb-output-menu{position:relative}.rb-output-menu summary{list-style:none;cursor:pointer}.rb-output-menu>div{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:20;padding:9px;min-width:170px;border:1px solid var(--border);background:var(--card);box-shadow:0 10px 25px #17375420;border-radius:10px;display:grid;gap:7px}.rz-ph .rb-output-menu>div .btn{color:#173754;background:#f1f5fa;border-color:#d0dce7;text-align:start}
.rb-workspace [hidden]{display:none!important}
@media(max-width:700px){.rb-card{padding:16px}.rb-identity{grid-template-columns:1fr}.rb-section-title,.rb-fields-head{align-items:stretch;flex-direction:column;gap:9px}.rb-field-grid{grid-template-columns:1fr;padding:10px}.rb-option-row{grid-template-columns:1fr}.rb-option-row label{margin-top:8px}.rb-advanced>summary{align-items:flex-start;flex-direction:column}.rz-env-bar .rz-release{font-size:13px}.rb-fields-head .form-row{min-width:0}}
@media print{.rz-env-bar{display:none}.rb-output-menu{display:none}}

@media screen {
 body.rz-shell main.page textarea { max-inline-size: 100%; resize: vertical; }
 body.rz-shell header.site .wrap.nav { box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%; }
}

.rz-desktop-menu-toggle { display: none; }
@media screen and (min-width: 1100px) {
    body.rz-shell {
        --rz-sidebar: clamp(264px, 17vw, 304px);
    }
    body.rz-shell header.site .nav-links > .nav-group > .nav-more,
    body.rz-shell header.site .nav-links > li > a {
        gap: 8px;
        padding-inline: 14px;
        font-size: 15px;
    }
    body.rz-shell header.site .nav-links .nav-menu li a {
        padding-block: 7px;
        padding-inline: 20px 12px;
        font-size: 14px;
    }
    body.rz-shell main.page {
        padding-top: 12px;
    }
    body.rz-shell .rz-desktop-menu-toggle {
        display: inline-flex;
        position: fixed;
        top: 12px;
        inset-inline-start: calc(var(--rz-sidebar) + 14px);
        z-index: 55;
        min-height: 36px;
        padding: 4px 10px;
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
    }
    body.rz-shell .rz-ph {
        padding-inline-start: 56px;
    }
    body.rz-shell.rz-desktop-menu-hidden .rz-desktop-menu-toggle {
        inset-inline-start: 14px;
    }
    body.rz-shell.rz-desktop-menu-hidden {
        padding-inline-start: 0;
    }
    body.rz-shell.rz-desktop-menu-hidden header.site {
        display: none;
    }
    body.rz-shell header.site .nav-links .nav-menu li a.active,
    body.rz-shell header.site .nav-links > li > a.active {
        background: var(--rz-gold);
        color: var(--rz-navy);
        box-shadow: none;
        font-weight: 700;
    }
}

.rz-return-dialog {
    box-sizing: border-box;
    width: min(38rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--primary-dark);
    background: var(--card);
    box-shadow: 0 18px 48px rgba(19, 42, 71, .23);
}
.rz-return-dialog::backdrop { background: rgba(19, 42, 71, .40); }
.rz-return-dialog h2 {
    margin: 0;
    padding: 15px 22px;
    color: #fff;
    background: var(--rz-navy);
    border-block-end: 3px solid var(--rz-gold);
}
.rz-return-dialog form { padding: 18px 22px; }
.rz-return-dialog input { min-height: 40px; }

#cust-company[hidden], #cm-company[hidden], [data-rc-company][hidden] { display: none !important; }

/* === rozon-finance-review.css === */
/* Financial work pages only. Documents and printable output keep their templates. */
.rz-finance-workspace{min-width:0;max-width:100%;font-size:15px;line-height:1.65}
.rz-finance-workspace>.card{margin-bottom:18px;border:1px solid var(--border,#dce5ed);border-radius:14px;box-shadow:0 7px 22px #17375408}
.rz-finance-workspace .card:has(>table){overflow-x:auto}
.rz-finance-workspace .card h2,.rz-finance-workspace .card h3{font-size:18px;line-height:1.5;color:var(--primary-dark,#173754);margin-block:0 16px}
.rz-finance-workspace .data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14.5px;line-height:1.65}
.rz-finance-workspace .data-table th{background:var(--primary-soft);color:var(--primary-dark);font-size:14px;font-weight:700;padding:13px 16px;text-align:start;border-block-end:1px solid #d7e2ed;white-space:normal}
.rz-finance-workspace .data-table td{padding:13px 16px;border-block-end:1px solid #e1e8f0;vertical-align:middle}
.rz-finance-workspace .data-table tbody tr:last-child td{border-block-end:0}
.rz-finance-workspace .data-table tbody tr:hover{background:var(--table-row-hover)}
.rz-finance-workspace .data-table a{color:#1d4d79;text-underline-offset:3px}
.rz-finance-workspace .rz-finance-number{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:125px}
.rz-finance-workspace .rz-vat-summary th:first-child{width:48%}
.rz-finance-workspace .rz-vat-summary td:first-child{line-height:1.85;min-width:210px}
.rz-finance-workspace .rz-vat-summary th:not(:first-child){text-align:end}
.rz-finance-workspace .rz-vat-summary td:last-child .status-pill{display:inline-flex;justify-content:center;min-width:46px;padding:3px 10px}
.rz-finance-workspace .rz-finance-filter{display:flex!important;flex-wrap:wrap;gap:14px!important;align-items:end!important}
.rz-finance-workspace .rz-finance-filter>.form-row{flex:1 1 160px;max-width:290px;min-width:130px;margin:0!important}
.rz-finance-workspace .rz-finance-filter input,.rz-finance-workspace .rz-finance-filter select{width:100%;min-height:39px;font-size:15px;line-height:1.5}
.rz-finance-workspace .form-row label{font-size:14px;line-height:1.5;margin-bottom:6px}
.rz-finance-workspace .rz-finance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px}
.rz-finance-workspace .rz-finance-metrics>p{margin:0;padding:17px;border:1px solid var(--border);background:var(--card);border-radius:11px;font-size:17px;font-variant-numeric:tabular-nums}
.rz-finance-workspace .rz-finance-metrics>p>strong{display:block;color:#5b7187;font-size:13.5px;font-weight:600;margin-bottom:8px}
.rz-finance-workspace .rz-finance-metrics>p>span[data-vat-report],.rz-finance-workspace .rz-finance-metrics>p>span[data-bank-statement],.rz-finance-workspace .rz-finance-metrics>p>span[data-cash-box]{color:#173754;font-size:23px;font-weight:700}
.rz-finance-workspace .rz-finance-metrics>p[data-cash-box="no-balance"],.rz-finance-workspace .rz-finance-metrics>p[data-bank-statement="no-balance"]{font-size:14px}
.rz-finance-workspace [data-vat-report="net"] .rz-finance-metrics>p:last-child{background:#173754;color:white}
.rz-finance-workspace [data-vat-report="net"] .rz-finance-metrics>p:last-child>strong,.rz-finance-workspace [data-vat-report="net"] .rz-finance-metrics>p:last-child>span{color:white}
.rz-finance-workspace .rz-finance-asof{color:#5b7187;font-size:14px;margin-block:0 14px}
.rz-finance-workspace .rz-finance-info{display:inline-flex;margin-block:0 14px;width:26px;height:26px;align-items:center;justify-content:center;border:1px solid #b8c8d7;border-radius:50%;color:#496982;font-size:14px;cursor:help}
.rz-finance-workspace [data-vat-report="outputs"],.rz-finance-workspace [data-vat-records="outputs"],.rz-finance-workspace [data-bank-statement="outputs"],.rz-finance-workspace [data-cash-box="outputs"]{margin:0!important;align-items:center}
.rz-finance-workspace .data-table form{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.rz-finance-workspace .data-table form input,.rz-finance-workspace .data-table form select{min-height:34px;max-width:100%}
.rz-finance-workspace .msg{line-height:1.75}
@media(max-width:700px){.rz-finance-workspace{font-size:15px}.rz-finance-workspace .rz-finance-filter>.form-row{flex:1 1 100%;max-width:none}.rz-finance-workspace .rz-finance-metrics{grid-template-columns:1fr}.rz-finance-workspace .data-table{min-width:600px}.rz-finance-workspace .data-table th,.rz-finance-workspace .data-table td{padding:10px 12px}.rz-finance-workspace .rz-vat-summary{min-width:530px}}
@media print{.rz-finance-workspace .rz-finance-info,.rz-finance-workspace .rz-finance-filter{display:none!important}.rz-finance-workspace>.card{box-shadow:none}.rz-finance-workspace .data-table{font-size:11px}.rz-finance-workspace .data-table th,.rz-finance-workspace .data-table td{padding:7px}}

/* === rozon-catalog-review.css === */
/* Customer and product forms; shared header dimensions remain in the shell stylesheet. */
#customer-form{max-inline-size:none;gap:20px;font-size:16px}
#customer-form .pw-fieldset{margin:0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
#customer-form .pw-fieldset>legend{padding:0 10px;color:#173754;font-size:18px;font-weight:700}
#customer-form .pw-form{gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
#customer-form .pw-label,#customer-form .pw-input,#customer-form .pw-select{font-size:16px;line-height:1.7}
#customer-form input:not([type=radio]),#customer-form select{min-block-size:42px}
#customer-form input[type=radio]{inline-size:auto;min-block-size:0}
#customer-form .field-err{font-size:14px}
.rz-customer-subsection{padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--bg);margin-block:12px}
.rz-customer-subsection h3,.rz-customer-subsection h4{margin:0 0 12px;color:#173754;font-size:16px}
.rz-customer-section{border-block-start:1px solid #dce5ed;margin-block-start:18px;padding-block-start:8px}
.rz-customer-section h4{color:#173754;font-size:17px;margin:10px 0 14px}
#cust-modal .form-row>label,#rs-cust-form .form-row>label{font-size:15px}
#cust-modal .form-row>input,#cust-modal .form-row>select,#rs-cust-form input:not([type=radio]),#rs-cust-form select{font-size:16px;min-block-size:40px}
#product-form #description{inline-size:100%;max-inline-size:100%;block-size:120px;min-block-size:120px;resize:none;overflow:auto;font:inherit;line-height:1.7}
.rz-barcode-editor{min-inline-size:0;max-inline-size:100%;margin-block:8px}
.rz-barcode-editor [hidden]{display:none!important}
.rz-barcode-editor .rz-barcode-entry-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rz-barcode-editor .rz-barcode-entry-row input{inline-size:240px;max-inline-size:100%;min-inline-size:0;flex:1 1 170px;font-size:15px}
.rz-barcode-editor .rz-barcode-entry-row .btn{flex:none;white-space:nowrap}
.rz-barcode-editor .rz-alias-list{margin-block-start:10px;border:1px solid #dce5ed;border-radius:9px;overflow-x:auto}
.rz-barcode-editor .rz-alias-list table{inline-size:100%;margin:0;min-inline-size:240px}
.rz-barcode-editor .rz-alias-list th,.rz-barcode-editor .rz-alias-list td{padding:8px 10px;vertical-align:middle}
.rz-barcode-editor .rz-alias-list th:first-child{inline-size:34px}
.rz-barcode-editor .rz-alias-list th:last-child{inline-size:64px}
.rz-barcode-editor .rz-alias-list input{inline-size:100%;min-inline-size:100px;max-inline-size:none;block-size:36px;font-size:15px}
.rz-barcode-editor .rz-alias-message{font-size:14px;color:#9d4135;margin:6px 0}
.rz-barcode-editor textarea{resize:none;inline-size:100%;max-inline-size:100%;min-block-size:85px}
.rz-units td:has(.rz-barcode-editor){min-inline-size:290px}
@media(max-width:700px){#customer-form .pw-form{grid-template-columns:1fr}#customer-form .pw-fieldset{padding:14px}.rz-barcode-editor .rz-barcode-entry-row input{inline-size:100%;flex-basis:100%}}

/* === rozon-admin-surfaces.css === */
/* Rozon admin surfaces. Screen only; status tones and printable output retain their rules. */
@media screen {
    body.rz-shell {
        --bg: #f5f7fa;
        --card: #ffffff;
        --rz-table-head: #eef2f7;
        background-color: var(--bg);
    }

    body.rz-shell main.page table.data-table {
        background-color: var(--card);
    }

    body.rz-shell main.page table.data-table thead th,
    body.rz-shell .rb-field-group summary {
        background-color: var(--rz-table-head);
    }

    body.rz-shell .rz-customer-subsection,
    body.rz-shell .rz-finance-workspace .rz-finance-metrics > p {
        background-color: var(--card);
    }

    body.rz-shell .rb-source-chip:not(:has(input:checked)) {
        background-color: var(--card);
    }

    body.rz-shell .rb-source-chip:has(input:checked),
    body.rz-shell .rb-field-option:has(input:checked) {
        background-color: var(--rz-table-head);
    }
}

/* === rozon-admin-theme.css === */
/* Rozon screen theme. Load after the admin surface rules. */
@media screen {
    body:where(.rz-shell, .rz-pos, .rz-embed, :has(.auth-screen)) {
        --rz-form-banner: var(--rz-navy);
        --rz-form-banner-text: #fff;
        --rz-form-banner-accent: #ebc58d;
        --rz-form-banner-accent-hover: #f6d8aa;
        --rz-form-banner-secondary: rgba(255, 255, 255, .10);
        --rz-form-banner-border: rgba(255, 255, 255, .30);
        --rz-form-banner-radius: 14px;
    }

    :is(body.rz-shell, body.rz-embed, body.rz-pos) main.page :is(.page-head, .rc-hero),
    .auth-screen .auth-card .page-head {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        min-block-size: 84px;
        padding: 16px 20px;
        border-radius: var(--rz-form-banner-radius);
        background: var(--rz-form-banner);
        color: var(--rz-form-banner-text);
        box-shadow: none;
    }

    .auth-screen .auth-card .page-head {
        min-block-size: auto;
        justify-content: center;
    }

    :is(body.rz-shell, body.rz-embed, body.rz-pos) main.page :is(.page-head, .rc-hero) h1,
    .auth-screen .auth-card .page-head h1 {
        margin: 0;
        font-size: clamp(20px, 3vw, 24px);
        font-weight: 700;
        line-height: 1.4;
        color: var(--rz-form-banner-text);
        overflow-wrap: anywhere;
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero) .kicker {
        margin-block-end: 3px;
        color: var(--rz-form-banner-accent);
        font-size: 13px;
        line-height: 1.5;
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero) .muted,
    .rz-pos :is(.rzp-inv-head, .pos-review-header) .muted {
        color: #e5edf6;
    }

    .rz-shell main.page .page-head :is([data-role="nav-order"], [data-role="pos-sale-link"] a) {
        color: var(--rz-form-banner-accent);
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero) :is(.btn, .rc-tbtn) {
        box-sizing: border-box;
        min-block-size: 40px;
        padding: 8px 13px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        box-shadow: none;
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero)
        :is(.btn-ghost, .rc-tbtn):where(:not(:disabled, [aria-disabled="true"], .rz-output-panel *)) {
        background: var(--rz-form-banner-secondary);
        border-color: var(--rz-form-banner-border);
        color: var(--rz-form-banner-text);
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero)
        :is(.btn-ghost, a.rc-tbtn):where(:not(:disabled, [aria-disabled="true"], .rz-output-panel *)):hover {
        background: rgba(255, 255, 255, .20);
        border-color: rgba(255, 255, 255, .50);
        color: var(--rz-form-banner-text);
    }

    .rz-pos main.page :is(.rzp-inv-head, .rzp-open-head, .pos-review-header) {
        padding: 12px 16px;
        background: var(--rz-form-banner);
        color: var(--rz-form-banner-text);
    }

    .rz-pos main.page .rzp-open-head {
        margin-block-start: 0;
    }

    .rz-pos main.page :is(.rzp-open-head, .pos-review-header) {
        border-radius: var(--rz-form-banner-radius);
    }

    .rz-pos main.page :is(.rzp-inv-head h2, .pos-review-header h3, .pos-review-customer) {
        color: var(--rz-form-banner-text);
    }

    .rz-pos main.page .pos-review-customer strong {
        color: var(--rz-form-banner-accent);
    }

    .rz-form-dialog-title {
        margin-block-start: 0;
        padding: 12px 16px;
        border-radius: var(--rz-form-banner-radius);
        background: var(--rz-form-banner);
        color: var(--rz-form-banner-text);
    }

    dialog.rz-modal .rz-modal-head {
        background: var(--rz-form-banner);
        color: var(--rz-form-banner-text);
    }

    body.rz-shell header.site .nav-links .nav-menu li.rz-nav-caption[data-nav-section] {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 8px 8px 3px;
        padding: 4px 8px;
        border-inline-start: 2px solid currentColor;
        border-radius: 6px;
        background: rgba(255, 255, 255, .07);
        color: var(--rz-nav-section-color);
        font-size: 13px;
        line-height: 1.5;
        font-weight: 700;
    }

    .rz-nav-caption[data-nav-section="products"] { --rz-nav-section-color: #f4cf95; }
    .rz-nav-caption[data-nav-section="inventory"] { --rz-nav-section-color: #a8d7ff; }
    .rz-nav-caption[data-nav-section="operations"] { --rz-nav-section-color: #a9e5c9; }

    body.rz-shell {
        --rz-body-font: 15px;
        --rz-table-font: 14px;
        --rz-card-radius: 12px;
        --rz-space-1: 4px;
        --rz-space-2: 8px;
        --rz-space-3: 12px;
        --rz-space-4: 16px;
        --rz-space-6: 24px;
        --rz-space-8: 32px;
        --rz-ph-title: 24px;
        --text: #172b4d;
        --muted: #526175;
        --border: #dce3ec;
        font-family: "Bahij TheSansArabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
        font-size: var(--rz-body-font);
        line-height: 1.6;
    }

    body.rz-shell main.page,
    body.rz-shell main.page .rz-finance-workspace,
    body.rz-shell main.page #customer-form {
        font-size: var(--rz-body-font);
        line-height: 1.6;
    }

    body.rz-shell main.page {
        --rz-control-font: 14px;
        --rz-control-h: 40px;
        --rz-control-pad: 8px 12px;
        --rz-control-radius: 10px;
        --rz-control-border: 1px;
    }

    body.rz-shell main.page h1 {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    body.rz-shell main.page h2,
    body.rz-shell main.page .rz-finance-workspace .card h2 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.5;
    }

    body.rz-shell main.page h3,
    body.rz-shell main.page .card-title,
    body.rz-shell main.page .rz-finance-workspace .card h3,
    body.rz-shell main.page #customer-form .pw-fieldset > legend {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.5;
    }

    body.rz-shell main.page .card,
    body.rz-shell main.page .form-box,
    body.rz-shell main.page .rz-form-box,
    body.rz-shell main.page #customer-form .pw-fieldset,
    body.rz-shell main.page #product-form .card[data-ptab] {
        padding: var(--rz-space-4);
        margin-block-end: var(--rz-space-4);
        border-radius: var(--rz-card-radius);
        box-shadow: 0 1px 3px rgba(19, 42, 71, .05);
    }

    body.rz-shell main.page :is(.form-grid, .stack, .pw-form) {
        gap: var(--rz-space-4);
    }

    body.rz-shell main.page :is(.cluster, .btn-row, .rz-ph-actions) {
        gap: var(--rz-space-2);
    }

    body.rz-shell main.page :is(.form-row > label, .pw-label),
    body.rz-shell main.page #customer-form .pw-label,
    body.rz-shell main.page #cust-modal .form-row > label,
    body.rz-shell main.page #rs-cust-form .form-row > label {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.6;
        margin-block-end: var(--rz-space-1);
    }

    /* Do not resize radios, checkboxes, hidden/file controls or colour/range UI. */
    body.rz-shell main.page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
    body.rz-shell main.page select,
    body.rz-shell main.page textarea,
    body.rz-shell main.page #customer-form :is(.pw-input, .pw-select):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
    body.rz-shell main.page #cust-modal .form-row > :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]), select),
    body.rz-shell main.page #rs-cust-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]), select) {
        box-sizing: border-box;
        max-inline-size: 100%;
        min-block-size: var(--rz-control-h);
        padding: var(--rz-control-pad);
        border-width: var(--rz-control-border);
        border-radius: var(--rz-control-radius);
        font-family: inherit;
        font-size: var(--rz-control-font);
        line-height: 1.5;
    }

    /* Compact table and icon actions keep their component sizing. */
    body.rz-shell main.page :is(.btn, button[type="submit"], input[type="submit"]):where(:not(.btn-sm, .btn-xs, .rz-ico, .rz-more-item)) {
        min-block-size: var(--rz-control-h);
        padding-block: var(--rz-space-2);
        border-radius: var(--rz-control-radius);
        font-family: inherit;
        font-size: var(--rz-control-font);
        font-weight: 600;
        line-height: 1.5;
    }

    body.rz-shell main.page .data-table,
    body.rz-shell main.page .data-table :is(th, td) {
        font-size: var(--rz-table-font);
        line-height: 1.6;
    }

    body.rz-shell main.page .data-table :is(th, td) {
        padding: var(--rz-space-3) var(--rz-space-4);
    }

    body.rz-shell main.page .data-table thead th {
        font-weight: 600;
    }

    body.rz-shell main.page :is(.table-scroll, .table-responsive) {
        max-inline-size: 100%;
        overflow-x: auto;
    }

    body.rz-shell main.page hr {
        border: 0;
        border-block-start: 1px solid var(--border);
        margin-block: var(--rz-space-4);
    }

    /* Existing textual validation and lock reasons remain visible and intact. */
    body.rz-shell main.page :is(.field-err, .rz-field-err, [data-field-error]) {
        color: var(--rz-bad, #b3261e);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.6;
        margin-block-start: var(--rz-space-1);
    }

    body.rz-shell main.page .rz-req {
        color: var(--rz-bad, #b3261e);
        font-weight: 700;
    }

    body.rz-shell main.page :is(input, textarea)[readonly] {
        background-color: var(--rz-table-head, #eef2f7);
        border-style: dashed;
    }

    body.rz-shell main.page :is(input, select, textarea):disabled {
        cursor: not-allowed;
    }

    body.rz-shell main.page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 3px solid var(--rz-gold-700, #94693a);
        outline-offset: 3px;
    }

    body.rz-shell main.page :is(input, select, textarea):is(.is-invalid, [aria-invalid="true"]) {
        border-color: var(--rz-bad, #b3261e);
        box-shadow: 0 0 0 2px rgba(179, 38, 30, .18);
    }

    body.rz-shell main.page :is(input, select, textarea):is(.is-invalid, [aria-invalid="true"]):focus-visible {
        outline-color: var(--rz-bad, #b3261e);
    }

    /* Auth has no body class; the guide iframe uses its own rz-embed body.
       Restrict this extension to typography and controls, not their layout. */
    .auth-screen .auth-card,
    body.rz-embed main.page {
        --rz-body-font: 15px;
        --rz-control-font: 14px;
        --rz-control-h: 40px;
        --rz-control-pad: 8px 12px;
        --rz-control-radius: 10px;
        --rz-control-border: 1px;
        --text: #172b4d;
        --muted: #526175;
        --border: #dce3ec;
        font-family: "Bahij TheSansArabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
        font-size: var(--rz-body-font);
        line-height: 1.6;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) h1 {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) h2 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.5;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) h3 {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.5;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(.form-row > label, .pw-label) {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.6;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(select, textarea) {
        box-sizing: border-box;
        max-inline-size: 100%;
        min-block-size: var(--rz-control-h);
        padding: var(--rz-control-pad);
        border-width: var(--rz-control-border);
        border-radius: var(--rz-control-radius);
        font-family: inherit;
        font-size: var(--rz-control-font);
        line-height: 1.5;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(.btn, button[type="submit"], input[type="submit"]) {
        min-block-size: var(--rz-control-h);
        padding-block: 8px;
        border-radius: var(--rz-control-radius);
        font-family: inherit;
        font-size: var(--rz-control-font);
        font-weight: 600;
        line-height: 1.5;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(.field-err, .rz-field-err, [data-field-error]) {
        color: var(--rz-bad, #b3261e);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.6;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) .rz-req {
        color: var(--rz-bad, #b3261e);
        font-weight: 700;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(input, textarea)[readonly] {
        background-color: #eef2f7;
        border-style: dashed;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(input, select, textarea):disabled {
        cursor: not-allowed;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 3px solid var(--rz-gold-700, #94693a);
        outline-offset: 3px;
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(input, select, textarea):is(.is-invalid, [aria-invalid="true"]) {
        border-color: var(--rz-bad, #b3261e);
        box-shadow: 0 0 0 2px rgba(179, 38, 30, .18);
    }

    :is(.auth-screen .auth-card, body.rz-embed main.page) :is(input, select, textarea):is(.is-invalid, [aria-invalid="true"]):focus-visible {
        outline-color: var(--rz-bad, #b3261e);
    }

    /* Primary buttons on light surfaces use navy. Header actions use gold
       to separate their outline and label from the navy title band. */
    :where(body.rz-shell main.page, body.rz-pos main.page, .auth-screen .auth-card, body.rz-embed main.page)
        .btn.btn-primary:where(:not(.btn-danger, .btn-success, .btn-warning, .is-danger, :disabled, [aria-disabled="true"])) {
        background-color: var(--rz-navy, #1c3a60);
        border-color: var(--rz-navy, #1c3a60);
        color: #fff;
    }

    :where(body.rz-shell main.page, body.rz-pos main.page, .auth-screen .auth-card, body.rz-embed main.page)
        .btn.btn-primary:where(:not(.btn-danger, .btn-success, .btn-warning, .is-danger, :disabled, [aria-disabled="true"])):hover {
        background-color: var(--rz-navy-900, #132a47);
        border-color: var(--rz-navy-900, #132a47);
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page .page-head
        .btn.btn-primary:where(:not(.btn-danger, .btn-success, .btn-warning, .is-danger, :disabled, [aria-disabled="true"])) {
        background-color: var(--rz-form-banner-accent);
        border-color: var(--rz-form-banner-accent);
        color: #132a47;
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page .page-head
        .btn.btn-primary:where(:not(.btn-danger, .btn-success, .btn-warning, .is-danger, :disabled, [aria-disabled="true"])):hover {
        background-color: var(--rz-form-banner-accent-hover);
        border-color: var(--rz-form-banner-accent-hover);
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page .page-head .btn:is(:disabled, [aria-disabled="true"]) {
        opacity: 1;
        background: rgba(255, 255, 255, .08);
        border: 1px dashed rgba(255, 255, 255, .35);
        color: rgba(255, 255, 255, .65);
        box-shadow: none;
        cursor: not-allowed;
        pointer-events: none;
    }
}

@media screen and (max-width: 700px) {
    :is(body.rz-shell, body.rz-embed, body.rz-pos) main.page :is(.page-head, .rc-hero) {
        min-block-size: 76px;
        padding: 12px 14px;
    }

    :is(.rz-shell, .rz-pos, .rz-embed) main.page :is(.page-head, .rc-hero) :is(.btn, .rc-tbtn) {
        min-block-size: 44px;
    }

    body.rz-shell main.page,
    .auth-screen .auth-card,
    body.rz-embed main.page {
        --rz-control-h: 44px;
    }

    body.rz-shell main.page .card,
    body.rz-shell main.page #customer-form .pw-fieldset,
    body.rz-shell main.page #product-form .card[data-ptab] {
        padding: var(--rz-space-4);
    }

    body.rz-shell main.page .rz-tabs > :is(a, button),
    body.rz-shell main.page .rz-ico {
        min-block-size: 44px;
        min-inline-size: 44px;
    }
}

@media screen {
    .rz-output-menu { position: relative; }
    .rz-output-menu > summary { cursor: pointer; list-style: none; }
    .rz-output-menu > summary::-webkit-details-marker { display: none; }
    .rz-output-menu > summary::after { content: "▾"; margin-inline-start: .5em; }
    .rz-output-menu[open] { z-index: 5; }
    .rz-output-panel {
        position: absolute;
        inset-block-start: calc(100% + 6px);
        inset-inline-end: 0;
        display: grid;
        gap: 4px;
        min-inline-size: max(10rem, 100%);
        padding: 6px;
        background: #fff;
        border: 1px solid #d6e0ec;
        border-radius: 10px;
        box-shadow: 0 8px 18px #132a4726;
    }
    .rz-output-menu .rz-output-panel .btn.btn-ghost {
        background: #fff;
        border-color: #d6e0ec;
        color: #132a47;
        white-space: nowrap;
        justify-content: start;
    }
    .rz-output-menu .rz-output-panel .btn.btn-ghost:hover { background: #edf3fa; color: #132a47; }
    .rs-code:empty { display: none; }
}

@media print {
    .rz-output-menu { display: none; }
}


/* Rozon Design System: enforce selected theme font across all buttons & inputs */
body, input, select, textarea, button, .btn { font-family: var(--rz-font) !important; }

