/* RUTImart Back-office 1.0 – a calm light workspace under an Obsidian header */
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Bold.ttf') format('truetype'); font-weight: 700; }
* { box-sizing: border-box; margin: 0; }
body.mart { font-family: 'Cairo', system-ui, sans-serif; background: #F1F5F9; color: #0B0F19; min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; }
.mh { display: flex; align-items: center; gap: 22px; padding: 10px 22px; background: #0B0F19; color: #E2E8F0; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.mh__logo img { height: 40px; display: block; }
.mh__nav { display: flex; gap: 4px; flex-wrap: wrap; } .mh__nav a { color: #CBD5E1; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.mh__nav a:hover { background: #1E293B; } .mh__nav a.is-on { background: #C44A27; color: #fff; }
.mh__right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.mh__right select, .mh__lang { background: #1E293B; color: #fff; border: 1px solid #334155; border-radius: 8px; padding: 6px 10px; font: inherit; text-decoration: none; }
.mh__out { color: #FCA5A5; text-decoration: none; font-weight: 700; } .mh__branch { font-weight: 700; color: #fff; }
.mm { flex: 1; padding: 22px; max-width: 1400px; width: 100%; margin: 0 auto; }
.mf { text-align: center; font-size: 11.5px; color: #64748B; padding: 14px; }
.mh1 { font-size: 24px; font-weight: 700; margin-bottom: 14px; } .mhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mmuted { color: #64748B; font-size: 13px; } .mwarn { color: #B45309; font-weight: 700; } .mneg { color: #B91C1C; font-weight: 700; } .mpos { color: #047857; font-weight: 700; }
.mflash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-weight: 700; } .mflash--success { background: #DCFCE7; color: #065F46; } .mflash--error { background: #FEE2E2; color: #991B1B; } .mflash--info { background: #E0F2FE; color: #075985; }
.mcard { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 16px; margin-bottom: 16px; } .mcard h2 { font-size: 17px; margin-bottom: 10px; }
.mkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mkpi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 16px; display: grid; gap: 4px; color: inherit; text-decoration: none; }
.mkpi span { font-size: 13px; color: #64748B; font-weight: 700; } .mkpi b { font-size: 28px; } .mkpi small { color: #64748B; font-size: 12px; }
.mkpi.is-hot { border-color: #C44A27; box-shadow: 0 0 0 3px rgba(196, 74, 39, .12); } .mkpi.is-warn b { color: #B45309; }
.mgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .mgrid2--wide { grid-template-columns: 2fr 1fr; }
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid #CBD5E1; background: #fff; color: #0B0F19; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.mbtn--primary { background: #C44A27; border-color: #C44A27; color: #fff; } .mbtn--primary:hover { background: #A63D20; } .mbtn--ghost { background: transparent; }
.mbtn--xl { height: 60px; font-size: 20px; width: 100%; } .mbtn small { opacity: .7; font-size: 12px; } .mbtn:disabled { opacity: .5; }
.mquick { display: flex; gap: 10px; flex-wrap: wrap; } .mlink { background: none; border: 0; color: #1288BE; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; padding: 2px 4px; }
.mtable { width: 100%; border-collapse: collapse; } .mtable th { text-align: start; font-size: 12px; color: #64748B; padding: 8px; border-bottom: 1px solid #E2E8F0; }
.mtable td { padding: 9px 8px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; } .mtable td small { display: block; color: #94A3B8; font-size: 11.5px; }
.mtable tr.is-off { opacity: .45; } .mtable--sm td { padding: 5px 6px; font-size: 13px; } .mact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mform { display: grid; gap: 10px; } .mform label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #334155; }
.mform input, .mform select, .msearch input { height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; color: #0B0F19; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .msearch input { min-width: 280px; }
.mpop { position: relative; } .mpop > summary { list-style: none; cursor: pointer; color: #1288BE; font-weight: 700; } .mpop > summary::-webkit-details-marker { display: none; }
.mpop[open] > form { position: absolute; inset-inline-end: 0; top: 100%; z-index: 5; width: 260px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.mlogin { max-width: 400px; margin: 40px auto; background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 28px; display: grid; gap: 12px; }
.mlogin__logo { width: 100%; max-width: 300px; justify-self: center; } .mlogin h1 { font-size: 22px; }
/* live orders */
.mlive { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #047857; } .mlive i { width: 10px; height: 10px; border-radius: 50%; background: #10B981; animation: mpulse 1.4s infinite; }
@keyframes mpulse { 50% { opacity: .3; } }
.mboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.mcol { background: #E2E8F0; border-radius: 16px; padding: 12px; min-height: 60vh; } .mcol h2 { font-size: 16px; display: flex; justify-content: space-between; margin-bottom: 10px; }
.mcount { background: #0B0F19; color: #fff; border-radius: 99px; padding: 0 10px; font-size: 13px; } .mcol__list { display: grid; gap: 10px; }
.mord { background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 6px; border: 1px solid #E2E8F0; } .mord header { display: flex; justify-content: space-between; }
.mord.is-new { animation: mnew 2.4s ease-out; border-color: #C44A27; } @keyframes mnew { 0% { box-shadow: 0 0 0 6px rgba(196, 74, 39, .4); } 100% { box-shadow: 0 0 0 0 rgba(196, 74, 39, 0); } }
.mtag { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; } .mtag--delivery { background: #E0F2FE; color: #075985; } .mtag--pickup { background: #FEF3C7; color: #92400E; }
.maddr, .mcust { font-size: 13px; color: #334155; } .mord ul { padding-inline-start: 1.2em; font-size: 13px; } .mord__act { display: flex; gap: 6px; } .mord__act .mbtn { flex: 1; }
/* POS */
.mpos { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.mpos__scan { width: 100%; height: 54px; font-size: 18px; border: 2px solid #C44A27; border-radius: 14px; padding: 0 16px; font-family: inherit; }
.mpos__results { display: grid; gap: 6px; margin: 8px 0; } .mpos__results button { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; text-align: start; padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; font: inherit; cursor: pointer; }
.mpos__results button:hover { border-color: #C44A27; } .mpos__results small { color: #64748B; }
.mpos__cart { background: #fff; border-radius: 14px; } .mqty { display: flex; gap: 4px; align-items: center; } .mqty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff; font-size: 18px; cursor: pointer; }
.mqty input { width: 60px; height: 32px; text-align: center; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; } .mx { border: 0; background: none; color: #B91C1C; font-size: 16px; cursor: pointer; }
.mpos__pay { background: #fff; border: 1px solid #E2E8F0; border-radius: 18px; padding: 16px; display: grid; gap: 12px; position: sticky; top: 80px; }
.mpos__sum { display: flex; justify-content: space-between; font-size: 16px; } .mpos__sum--big { font-size: 26px; font-weight: 700; color: #C44A27; }
.mpos__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; } .mpos__row input { width: 140px; height: 42px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 17px; text-align: end; }
.mseg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .mseg input { position: absolute; opacity: 0; } .mseg label > span { display: block; text-align: center; padding: 12px; border: 2px solid #E2E8F0; border-radius: 12px; font-weight: 700; cursor: pointer; }
.mseg label:has(input:checked) > span { border-color: #C44A27; background: #FEF2F2; color: #C44A27; } .mpos__branch { text-align: center; }
@media (max-width: 1000px) { .mkpis { grid-template-columns: 1fr 1fr; } .mgrid2, .mgrid2--wide, .mpos, .mboard { grid-template-columns: 1fr; } .mpos__pay { position: static; } }

/* 1.33.1 – the RUTI wordmark wherever the name is written */
.ruti-wm { display: inline-block; height: .74em; vertical-align: baseline; margin: 0 .08em; line-height: 0; white-space: nowrap; }
.ruti-wm svg { height: 100%; width: auto; display: block; overflow: visible; }
.ruti-wm--mono path, .ruti-caption path { fill: currentColor; }
.ruti-wm__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* under the RUTI logo: the same width as the logo, smaller, one colour */
.logo-lockup { display: inline-grid; justify-items: stretch; gap: 6px; }
.logo-lockup img { display: block; } .ruti-caption { display: block; line-height: 0; color: var(--text-2, #475569); opacity: .9; } .ruti-caption svg { width: 100%; height: auto; display: block; }
.logo-lockup--brief { justify-self: center; } .logo-lockup--doc { width: 64px; } .logo-lockup--ins { width: 110px; } .logo-lockup--ins img { width: 100%; height: auto; }

/* 1.33.2 – the caption is exactly as wide as the logo above it (R under its left edge, I under its right) */
.logo-lockup { display: inline-flex !important; flex-direction: column; align-items: stretch; width: min-content !important; max-width: 100%; gap: 6px; }
.logo-lockup > img { max-width: none; }
.ruti-caption { width: 100%; }
.logo-lockup--brief { margin-inline: auto; } .logo-lockup--brief .ruti-caption { margin-bottom: 4px; }

/* phase 2 – ERP */
.mkpis--5 { grid-template-columns: repeat(5, 1fr); } .mcard--warn { border-color: #F59E0B; }
.mpill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #E2E8F0; } .mpill--sent { background: #E0F2FE; color: #075985; }
.mpill--received { background: #DCFCE7; color: #065F46; } .mpill--draft { background: #F1F5F9; color: #475569; } .mpill--cancelled { background: #FEE2E2; color: #991B1B; }
.mchart { width: 100%; height: 170px; display: block; background: linear-gradient(transparent 24%, #F1F5F9 25%, transparent 26%, transparent 49%, #F1F5F9 50%, transparent 51%, transparent 74%, #F1F5F9 75%, transparent 76%); }
.maxis { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748B; margin-top: 4px; direction: ltr; }
.mbar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.mbar i { height: 10px; background: #F1F5F9; border-radius: 6px; overflow: hidden; } .mbar b { display: block; height: 100%; background: #C44A27; border-radius: 6px; } .mbar em { font-style: normal; text-align: end; color: #475569; }
.mseg--inline { display: flex; gap: 6px; align-items: center; } .mseg--inline a { padding: 7px 14px; border-radius: 10px; border: 1px solid #CBD5E1; text-decoration: none; color: #0B0F19; font-weight: 700; background: #fff; }
.mseg--inline a.is-on { background: #0B0F19; color: #fff; border-color: #0B0F19; }
@media (max-width: 1000px) { .mkpis--5 { grid-template-columns: 1fr 1fr; } }
@media print { .mh, .mf, .mseg--inline, .mbtn { display: none !important; } body.mart { background: #fff; } .mcard, .mkpi { break-inside: avoid; border-color: #ccc; } @page { size: A4; margin: 12mm; } }

/* 1.35.0 – the phone as POS and scanner */
.mhead__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mpos__scanrow { display: flex; gap: 8px; } .mpos__scanrow .mpos__scan { flex: 1; } .mpos__cam { height: 54px; white-space: nowrap; }
.mprice { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: #FEF2F2; border: 1px dashed #C44A27; }
.mprice span { font-size: 12px; font-weight: 700; color: #64748B; } .mprice b { font-size: 22px; color: #C44A27; } .mprice small { font-size: 11.5px; color: #64748B; }
.mprod-img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #F8FAFC; justify-self: center; margin-bottom: 8px; }
.mkpis--6 { grid-template-columns: repeat(6, 1fr); }
.mscan { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; color: #fff; }
.mscan__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
.mscan__x { background: #C44A27; color: #fff; border: 0; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 700; }
.mscan__view { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; background: #000; } .mscan__video { width: 100%; height: 100%; object-fit: cover; }
#mscan-lib { width: 100%; max-width: 640px; }
.mscan__frame { position: absolute; left: 10%; right: 10%; top: 38%; height: 24%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.mscan__hint { text-align: center; padding: 10px; font-size: 14px; } .mscan__last { text-align: center; padding: 0 10px 18px; font-weight: 700; color: #FBBF24; min-height: 22px; direction: ltr; }
@media (max-width: 1000px) { .mkpis--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
    body.mart { font-size: 15px; } .mm { padding: 12px; }
    .mh { gap: 10px; padding: 8px 12px; } .mh__logo img { height: 34px; }
    .mh__nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .mh__nav a { white-space: nowrap; padding: 8px 12px; }
    .mh__who { display: none; } .msearch input { min-width: 0; width: 100%; } .mhead { flex-direction: column; align-items: stretch; }
    .mpos__cam span { display: none; } .mpos__cam { width: 64px; font-size: 24px; }
    .mpos__pay { position: sticky; bottom: 0; top: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .4); gap: 8px; padding: 12px; z-index: 5; }
    .mpos__sum--big { font-size: 22px; } .mbtn--xl { height: 54px; }
    .mpos__cart th:nth-child(3), .mpos__cart td:nth-child(3) { display: none; }
    .mtable { font-size: 13.5px; } .mtable td, .mtable th { padding: 7px 5px; }
    .mboard { grid-template-columns: 1fr; } .mcol { min-height: 0; }
}

/* 1.35.1 – scan results on the camera screen */
.mscan__panel { background: #0B0F19; padding: 12px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.mscan__result { margin: 0; padding: 10px 12px; border-radius: 12px; background: #1E293B; font-weight: 700; font-size: 15px; text-align: center; min-height: 44px; }
.mscan__result.is-ok { background: #065F46; } .mscan__result.is-bad { background: #7F1D1D; }
.mscan__act { display: inline-block; margin-top: 6px; background: #fff; color: #0B0F19; border-radius: 10px; padding: 6px 12px; text-decoration: none; }
.mscan__type { display: flex; gap: 6px; } .mscan__type input { flex: 1; height: 44px; border-radius: 10px; border: 0; padding: 0 12px; font: inherit; font-size: 17px; }
.mscan__type button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #C44A27; color: #fff; font: inherit; font-weight: 700; }
.mscan__engine { margin: 0; font-size: 11px; color: #64748B; text-align: center; }
#mscan-lib video { max-width: 100%; } #mscan-lib img { display: none; }

/* 1.36.0 – buyer details and the sale-complete sheet */
.mbuyer { border: 1px solid #E2E8F0; border-radius: 12px; padding: 8px 12px; } .mbuyer summary { cursor: pointer; font-weight: 700; color: #1288BE; }
.mbuyer label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; margin-top: 8px; } .mbuyer input { height: 42px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; }
.mdone { position: fixed; inset: 0; z-index: 90; background: rgba(11, 15, 25, .6); display: grid; place-items: end center; }
.mdone__card { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 18px; padding-bottom: max(22px, env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.mdone__card h2 { color: #047857; font-size: 22px; } .mdone__sum { color: #334155; font-weight: 700; }
.mbtn--wa { background: #25D366; border-color: #25D366; color: #fff; } .mbtn--wa:hover { background: #1DA851; }
@media (min-width: 701px) { .mdone { place-items: center; } .mdone__card { border-radius: 22px; } }

/* 1.36.1 – anything marked hidden stays hidden (a display rule must never override it) */
[hidden] { display: none !important; }

/* 1.37.0 – members at the till */
.mseg--3 { grid-template-columns: repeat(3, 1fr); } .mseg--3 label[hidden] { display: none !important; } .mseg--3:has(label[hidden]) { grid-template-columns: 1fr 1fr; }
.mmember { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #DCFCE7; color: #065F46; font-weight: 700; font-size: 14px; }
.mconsent { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 8px; font-weight: 600 !important; font-size: 13px; margin-top: 8px; } .mconsent input { width: 20px; height: 20px; margin-top: 2px; }
.mwait-count { font-size: 34px; font-weight: 700; text-align: center; color: #0B0F19; margin: 0; direction: ltr; }

/* 1.38.0 – registration, password, setup tour, pricing v2 */
.mreg { max-width: 760px; margin: 10px auto; background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 24px; } .mreg h2 { font-size: 16px; margin: 14px 0 4px; color: #C44A27; }
.mrow--loc { grid-template-columns: 1fr auto; } .mrow--loc input { height: 44px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; }
.mpw-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #64748B; } .mpw-rules li::before { content: '○ '; } .mpw-rules li.is-ok { color: #047857; } .mpw-rules li.is-ok::before { content: '✓ '; }
.mprog { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; } .mprog b { font-size: 20px; }
.mprog__bar { flex: 1; height: 12px; border-radius: 8px; background: #E2E8F0; overflow: hidden; display: block; } .mprog__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #C44A27, #6E9A0F, #CE9A0E, #1288BE); transition: width .6s; }
.msteps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.msteps li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 14px; } .msteps li > div { flex: 1; display: grid; gap: 2px; } .msteps small { color: #64748B; }
.msteps__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #F1F5F9; font-weight: 700; flex: none; } .msteps li.is-done { opacity: .7; } .msteps li.is-done .msteps__n { background: #047857; color: #fff; }
.msetup-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: #FFF7ED; border: 1px solid #FDBA74; color: #0B0F19; text-decoration: none; } .msetup-banner em { font-style: normal; font-weight: 700; }
.mmore { border: 1px dashed #CBD5E1; border-radius: 12px; padding: 8px 12px; } .mmore summary { cursor: pointer; font-weight: 700; color: #1288BE; } .mmore[open] { display: grid; gap: 10px; }
@media (max-width: 700px) { .mrow { grid-template-columns: 1fr; } .msetup-banner { flex-wrap: wrap; } }

/* 1.38.1 – a sliding side menu (☰) instead of the crowded top navigation */
.mh { flex-wrap: nowrap; gap: 12px; } .mh__nav, .mh__right, .mh__who, .mh__out { display: none !important; }
.mh__burger { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #334155; background: #1E293B; display: grid; place-content: center; gap: 5px; cursor: pointer; flex: none; }
.mh__burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.mh__logo { flex: none; } .mh__branch--top { margin-inline-start: auto; color: #CBD5E1; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh__lang { margin-inline-start: auto; } .mh__branch--top + .mh__lang { margin-inline-start: 0; }
.mh__lang { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: #1E293B; border: 1px solid #334155; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mdrawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(11, 15, 25, .55); }
.mdrawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 61; width: min(300px, 86vw); background: #0B0F19; color: #E2E8F0; display: flex; flex-direction: column; gap: 10px;
    padding: 18px 14px; padding-top: max(18px, env(safe-area-inset-top)); transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
[dir=rtl] .mdrawer { transform: translateX(105%); } .mdrawer.is-open { transform: none; }
.mdrawer__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #1E293B; }
.mdrawer__head b { display: block; font-size: 16px; } .mdrawer__head small { color: #94A3B8; font-size: 12.5px; }
.mdrawer__x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #334155; background: #1E293B; color: #fff; font-size: 16px; cursor: pointer; }
.mdrawer__branch { font-size: 13px; color: #94A3B8; } .mdrawer__branch label { display: grid; gap: 4px; } .mdrawer__branch select { height: 42px; border-radius: 10px; background: #1E293B; color: #fff; border: 1px solid #334155; padding: 0 10px; font: inherit; }
.mdrawer__branch b { color: #fff; } .mdrawer__nav { display: grid; gap: 4px; }
.mdrawer__nav a { display: block; padding: 12px 14px; border-radius: 12px; color: #E2E8F0; text-decoration: none; font-weight: 700; font-size: 16px; } .mdrawer__nav a:hover { background: #1E293B; }
.mdrawer__nav a.is-on { background: #C44A27; color: #fff; } .mdrawer__out { margin-top: auto; padding: 12px 14px; color: #FCA5A5; text-decoration: none; font-weight: 700; border-top: 1px solid #1E293B; }
body.mdrawer-lock { overflow: hidden; }
@media (max-width: 420px) { .mh__branch--top { display: none; } }

/* 1.38.2 – phones: scan first; a slim checkout bar; the payment panel opens as a bottom sheet */
.mpos__bar, .mpos__sheet-head { display: none; }
@media (max-width: 700px) {
    .mpos { display: block; padding-bottom: 84px; }
    .mpos__bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #0B0F19; color: #fff;
        padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, .5); }
    .mpos__bar-n { min-width: 34px; height: 34px; border-radius: 99px; background: #1E293B; display: grid; place-items: center; font-weight: 700; font-size: 14px; padding: 0 8px; }
    .mpos__bar-t { flex: 1; font-size: 22px; } .mpos__bar .mbtn { height: 48px; padding: 0 22px; font-size: 17px; }
    .mpos__pay { display: none !important; }
    body.pay-open .mpos__pay { display: grid !important; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 92vh; overflow-y: auto;
        border-radius: 22px 22px 0 0; padding: 14px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(11, 15, 25, .45); }
    body.pay-open::after { content: ''; position: fixed; inset: 0; z-index: 35; background: rgba(11, 15, 25, .5); }
    body.pay-open { overflow: hidden; }
    .mpos__sheet-head { display: flex; justify-content: space-between; align-items: center; } .mpos__sheet-head b { font-size: 18px; }
    .mpos__sheet-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #CBD5E1; background: #fff; font-size: 16px; cursor: pointer; }
    .mpos__scanrow { position: sticky; top: 0; z-index: 5; background: #F1F5F9; padding: 6px 0; }
}

/* 1.38.3 – discount tucked away, quick cash amounts */
.mdisc { border: 1px dashed #CBD5E1; border-radius: 12px; padding: 6px 12px; } .mdisc summary { cursor: pointer; font-weight: 700; color: #1288BE; font-size: 14px; } .mdisc[open] { display: grid; gap: 6px; }
.mquick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .mquick button { flex: 1; min-width: 64px; height: 42px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mquick button:first-child { background: #ECFDF5; border-color: #6E9A0F; color: #065F46; } #change.mneg { font-size: 15px; }

/* 1.39.0 – statements, credit book, quick orders, pack capture; line icons */
.uic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; color: currentColor; flex: none; stroke-width: 1.6; }
.mmonth { height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 10px; font: inherit; }
.mkpi.is-good b { color: #15803D; }
.mcredit { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #FEF3C7; color: #92400E; font-weight: 700; font-size: .9rem; }
.mqo textarea { width: 100%; min-height: 130px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px; font: inherit; font-size: 1.05rem; line-height: 1.7; resize: vertical; }
.mqo__bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.mmic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #CBD5E1; background: #fff; display: grid; place-items: center; cursor: pointer; }
.mmic.is-on { background: #C44A27; color: #fff; border-color: #C44A27; animation: mpulse 1.2s infinite; }
@keyframes mpulse { 50% { box-shadow: 0 0 0 8px rgba(196, 74, 39, .15); } }
.mqo-row.is-miss td { background: #FEF2F2; } .mqo-row select, .mqo-row input { height: 38px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 0 8px; font: inherit; max-width: 100%; }
.mqo-row input[type=number] { width: 80px; }
.mcap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px dashed #94A3B8; border-radius: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { .mqo-table td:nth-child(3) { display: none; } }

/* 1.40.0 – substitutions on the live orders board */
.msub { font-style: normal; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; margin-inline-start: 6px; }
.msub.is-wait { background: #FEF3C7; color: #92400E; } .msub.is-ok { background: #DCFCE7; color: #166534; } .msub.is-off { background: #F1F5F9; color: #64748B; }
.mord li.is-off { text-decoration: line-through; opacity: .6; }
.msubs { display: grid; gap: 6px; margin: 6px 0 8px; padding: 8px; border: 1px dashed #94A3B8; border-radius: 10px; } .msubs .mbtn { justify-content: space-between; text-align: start; }
.mpref { font-size: .8rem; color: #475569; margin: 4px 0; } .mwaitmsg { font-size: .85rem; color: #92400E; font-weight: 700; margin: 6px 0; }
.mbtn[disabled] { opacity: .5; cursor: not-allowed; }

/* 1.41.0 – offline till, supplier invoices */
.moff { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; background: #E0F2FE; color: #075985; }
.moff.is-off { background: #FEF3C7; color: #92400E; } .moff.is-wait { background: #E0F2FE; color: #075985; } .moff.is-bad { background: #FEE2E2; color: #991B1B; }
.moff-failed { margin: 6px 0; padding: 8px 12px; border: 1px solid #FCA5A5; border-radius: 10px; font-size: .85rem; } .moff-failed ul { margin: 6px 0; padding-inline-start: 18px; }
.mcap--big { flex-direction: column; align-items: stretch; text-align: center; padding: 24px; } .mcap__busy { display: none; } .mcap.is-busy .mcap__busy { display: block; font-weight: 700; }
.minv__table td { vertical-align: top; } .minv__table small { display: block; color: #475569; max-width: 280px; } .minv__table select { max-width: 260px; }
.minv__row.is-miss td { background: #FEF2F2; } .inv-other { margin-top: 6px; width: 100%; max-width: 260px; }
.minv__sum { margin-top: 10px; }
@media (max-width: 640px) { .minv__table thead { display: none; } .minv__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid #E2E8F0; } .minv__table td:nth-child(1), .minv__table td:nth-child(2) { grid-column: 1 / -1; } }

/* 1.42.0 – promotions */
.mpromo { display: block; font-style: normal; font-size: .75rem; font-weight: 700; color: #15803D; }
.mpos__cart s { color: #94A3B8; font-size: .85em; } .mpromo-row b { color: #15803D; } .mpromo-row small { color: #475569; }
.mdays { display: flex; flex-wrap: wrap; gap: 6px 12px; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 12px; } .mdays legend { font-size: .85rem; color: #475569; padding: 0 4px; }
.mdays label { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }

/* 1.54.0 – ratings and reviews */
.rv-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; vertical-align: middle; white-space: nowrap; }
.rv-badge .uic { width: 15px; height: 15px; fill: #F5B301; stroke: #F5B301; } .rv-badge small { opacity: .7; font-size: 11.5px; }
.rv-badge--new { font-size: 11.5px; opacity: .7; } .rv-badge-link { text-decoration: none; color: inherit; }
.rv-stars { display: inline-flex; gap: 1px; vertical-align: middle; } .rv-stars .uic { width: 15px; height: 15px; stroke: #F5B301; fill: none; opacity: .55; }
.rv-stars .uic.is-on { fill: #F5B301; opacity: 1; } .rv-stars .uic.is-half { fill: rgba(245,179,1,.45); opacity: 1; }
.rvb { padding: 12px 0; border-bottom: 1px solid #EEF2F7; } .rvb header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rvb__reply { margin: 8px 0; padding: 8px 12px; border-inline-start: 3px solid currentColor; background: rgba(15,181,166,.06); border-radius: 8px; }

/* 1.54.0 – an emoji with no line icon yet shows as a quiet dot, never as a picture */
.uic--fallback { width: .5em !important; height: .5em !important; opacity: .55; vertical-align: middle; }

/* 1.48.0 – the RUTI wordmark keeps its size wherever it sits (no card or list style may stretch it) */
span.ruti-wm[data-ruti-wm] { display: inline-block !important; height: .74em !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important;
    box-shadow: none !important; vertical-align: baseline !important; line-height: 0 !important; position: static !important; gap: 0 !important; min-width: 0 !important; }
span.ruti-wm[data-ruti-wm] > svg { height: 100% !important; width: auto !important; display: block !important; max-width: none !important; }
span.ruti-caption[data-ruti-wm] { display: inline-block !important; padding: 0 !important; border: 0 !important; background: none !important; }
span.ruti-wm__t { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; padding: 0 !important; border: 0 !important; display: block !important; }
/* 1.56.0 – "Install the app" (back offices) */
.bo-install { display: grid; gap: 8px; }
.bo-install__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(148, 163, 184, .45); background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.bo-install__btn:hover { border-color: #94A3B8; background: rgba(148, 163, 184, .1); }
.bo-install__btn[hidden], .bo-install__hint[hidden], .bo-install__hint [hidden] { display: none; }
.bo-install__hint { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, .12); font-size: 13.5px; line-height: 1.6; }
.bo-install--drawer { margin: 10px 14px 0; } .bo-install--login { margin-top: 14px; }

/* 1.56.0 – public page card + Settings form, shared with RUTI Health (same rules as in health.css) */
.hdoc-warn { color: #B45309; font-weight: 800; }
.hpub-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 10px; word-break: break-all; }
.hpub-pics { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.hpub-pic { position: relative; display: grid; gap: 4px; justify-items: start; border: 1.5px dashed #CBD5E1; border-radius: 14px; padding: 10px; cursor: pointer; }
.hpub-pic img { width: 100%; border-radius: 10px; object-fit: cover; } .hpub-pic--banner img { aspect-ratio: 16 / 5; } .hpub-pic--logo img { aspect-ratio: 1; max-width: 120px; }
.hpub-pic > span { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 5; background: #F1F5F9; border-radius: 10px; color: #94A3B8; } .hpub-pic--logo > span { aspect-ratio: 1; max-width: 120px; }
.hpub-pic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hpub-socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .hpub-pics { grid-template-columns: 1fr; } }
.hpub-strip { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid #A7F3D0; background: #F0FDFA; margin-bottom: 16px; }
.hpub-strip h2 { margin: 0 0 4px; } .hpub-strip__text { flex: 1 1 420px; min-width: 0; display: grid; gap: 6px; } .hpub-strip__text p { margin: 0; }
.hpub-strip__act { display: flex; gap: 8px; flex-wrap: wrap; }
.hpub-pic { text-decoration: none; color: inherit; }
body.mart:not(.hf) .hpub-strip { border-color: #FCD34D; background: #FFFBEB; }
.mform textarea { font: inherit; line-height: 1.6; }
/* 1.56.1 – "this back office installs as an app" banner */
.bo-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: #0B1220; color: #E2E8F0; box-shadow: 0 10px 24px -16px rgba(11, 18, 32, .6); }
.bo-banner[hidden] { display: none; }
.bo-banner img { border-radius: 11px; flex: none; }
.bo-banner__text { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; } .bo-banner__text b { font-size: 15.5px; } .bo-banner__text span { font-size: 13.5px; color: #94A3B8; }
.bo-banner .bo-install__hint { margin-top: 6px; background: rgba(148, 163, 184, .16); color: #E2E8F0; }
.bo-banner__act { display: flex; gap: 8px; align-items: center; }
.bo-banner__go { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #FFFFFF; color: #0B1220; font: inherit; font-weight: 800; cursor: pointer; }
.bo-banner__later { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #94A3B8; font: inherit; font-weight: 700; cursor: pointer; }
.bo-banner__later:hover { color: #E2E8F0; }

/* 1.69.0: in Arabic, a left-to-right cell (numbers, codes, «<20») keeps its column's alignment – it used to drift to the
   left, away from its heading, so figures looked like they sat under the wrong column */
html[dir="rtl"] td[dir="ltr"], html[dir="rtl"] th[dir="ltr"] { text-align: right; }
html[dir="rtl"] td[dir="ltr"].is-center, html[dir="rtl"] th[dir="ltr"].is-center { text-align: center; }

/* 1.71.1: the back-office menu in groups (RUTI Gov, RUTI Mart, RUTI Health) – like the RUTI App menu */
.mdrawer { overflow-y: auto; }
.mdrawer__nav--groups { display: grid; gap: 12px; }
.mdrawer__group { background: #111A2E; border: 1px solid #1E293B; border-radius: 18px; padding: 8px; display: grid; gap: 2px; }
.mdrawer__group.is-here { border-color: #334155; }
.mdrawer__group h3 { margin: 4px 10px 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #94A3B8; }
.mdrawer__nav--groups a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.mdrawer__nav--groups a svg { width: 20px; height: 20px; flex: none; color: #94A3B8; }
.mdrawer__nav--groups a.is-on svg { color: #fff; }
.mdrawer__nav--groups a span { flex: 1; min-width: 0; }
