/* MAHWOR: responsive presentation layer. Original accounting styles and APIs remain loaded. */
:root{--mahwor-navy:#0a2353;--mahwor-blue:#1769e8;--mahwor-gold:#ffb914;--mahwor-ink:#111d42;--mahwor-muted:#7b8aa5;--mahwor-line:#e5ecf8;color:var(--mahwor-ink);background:#fafdff}
*{box-sizing:border-box}
html{min-height:100%;overscroll-behavior-y:none}body{width:100%;min-width:0;max-width:100%;overflow-x:hidden;background:#fafdff;color:var(--mahwor-ink)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--mahwor-blue)!important;outline-offset:2px}
.app-shell{max-width:960px;width:100%;height:100vh;height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#e7f4ff 0px,#fff 340px,#fafdff 100%)}
.app-header{position:relative;z-index:2;flex:0 0 auto;padding:calc(5px + env(safe-area-inset-top,0px)) 14px 2px;background:transparent!important;border:0!important;box-shadow:none!important}
.status-strip{direction:ltr;min-height:28px;display:flex;gap:6px;align-items:center;justify-content:space-between;flex-direction:row;padding:0 3px}
.clock{font-size:14px;color:#10182e;font-weight:900;line-height:1.4}
.status-pills{direction:rtl;display:flex;gap:5px;align-items:center;min-width:0}
.status-pill{font-size:8px;padding:4px 5px;border-radius:14px;max-width:137px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-color:#dce9f7;background:#ffffffd9;color:#50648c}
.status-pill .pulse{flex:0 0 6px}
.head-brand{display:grid;grid-template-columns:minmax(76px,1fr) minmax(119px,1.56fr) minmax(82px,1fr);direction:ltr;align-items:center;gap:5px;padding:6px 0 9px;min-height:87px}
.mahwor-head-actions{display:flex;flex-wrap:nowrap;gap:7px;justify-content:flex-start;align-items:flex-start}
.mahwor-head-actions button{width:40px;height:42px;border-radius:14px;background:#fff;border:1px solid #ecf1f9;display:grid;place-items:center;box-shadow:0 7px 20px #0c45800b;color:#09193b;padding:9px}
.mahwor-head-actions button svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.mahwor-brand{min-width:0;display:flex;align-items:center;justify-content:center}
.mahwor-brand img{display:block;width:100%;max-width:166px;max-height:78px;height:auto;object-fit:contain;mix-blend-mode:normal}
.mahwor-profile{min-width:0;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;text-align:center;padding:2px 0;gap:4px;color:#111e42;direction:rtl}
.mahwor-profile-photo{width:45px;height:45px;border-radius:50%;background:#dbeafe;display:grid;place-items:center;overflow:hidden}
.mahwor-profile-photo img{width:40px;height:40px;object-fit:contain;border:0!important;background:transparent!important;padding:2px!important;border-radius:50%!important;box-shadow:none!important}
.mahwor-profile .hi{color:#6b7790!important;font-size:10px;line-height:1.35}
.mahwor-profile #store-name{display:block;max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900;font-size:10px;color:#18274a}
.mahwor-profile #store-subtitle{display:none}
.main-content{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding:0 12px calc(96px + env(safe-area-inset-bottom,0px));scrollbar-width:thin;scrollbar-color:#d4e2f4 transparent}
.page{min-width:0;overflow:visible}
.mahwor-hero{position:relative;direction:ltr;display:grid;grid-template-columns:42% 58%;align-items:center;border-radius:28px;overflow:hidden;min-height:172px;isolation:isolate;background:radial-gradient(ellipse at 75% 92%,#e4efff 0,#ffffff6e 55%,transparent 70%),linear-gradient(128deg,#eef7ff,#fff 62%);margin:0 0 12px;box-shadow:0 10px 25px #cfe2f91a}
.mahwor-hero:before{content:"";position:absolute;inset:auto -15% -36px 0;height:63px;background:#e6f0ff94;transform:rotate(-5deg);z-index:-1;border-radius:50%}
.mahwor-hero-copy{position:relative;z-index:1;min-width:0;padding:15px 3px 14px 8px;text-align:left;direction:rtl}
.mahwor-hero-copy span,.mahwor-hero-copy strong{display:block;text-align:left;font-size:clamp(18px,5.6vw,28px);line-height:1.35;white-space:normal;color:#0a2353}
.mahwor-hero-copy strong{font-size:clamp(21px,6.5vw,34px);font-weight:950}
.mahwor-hero-copy i{display:block;width:37px;height:4px;border-radius:4px;background:var(--mahwor-gold);margin:10px auto 9px 0}
.mahwor-hero-copy p{color:#8b9aba;font-size:clamp(10px,2.7vw,13px);line-height:1.8;margin:0;text-align:left}
.mahwor-hero-art{display:block;width:116%;height:100%;max-height:237px;object-fit:contain;object-position:center right;margin-inline-start:-6%;mix-blend-mode:multiply}
.mahwor-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;direction:rtl;margin-bottom:12px}
.mahwor-kpi{min-width:0;min-height:85px;background:linear-gradient(145deg,#ffffff 10%,#eef5fd);border:3px solid #fff;border-radius:17px;padding:10px 4px 8px;text-align:center;box-shadow:0 6px 18px #cddff529;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.mahwor-kpi .mahwor-kpi-icon{width:23px;height:23px;color:#0875cb;display:grid;place-items:center}
.mahwor-kpi.mint .mahwor-kpi-icon{color:#0aa67a}.mahwor-kpi.violet .mahwor-kpi-icon{color:#7156df}
.mahwor-kpi .mahwor-kpi-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mahwor-kpi small{font-size:clamp(8.2px,2.4vw,11px);font-weight:850;color:#26385b;line-height:1.35;white-space:normal}
.mahwor-kpi b{font-size:clamp(11px,3.2vw,17px);font-weight:900;color:#0c1941;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mahwor-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));direction:rtl;gap:9px;margin-bottom:14px}
.mahwor-tile{position:relative;isolation:isolate;min-width:0;min-height:152px;padding:12px 10px 10px;border-radius:21px;border:3px solid #fff;box-shadow:0 7px 19px #ccdcf52a;text-align:right;display:flex;flex-direction:column;align-items:flex-start;color:#14234c;overflow:hidden}
.mahwor-tile:before{content:none!important;display:none!important}
.mahwor-tile.blue,.mahwor-tool.blue{background:linear-gradient(145deg,#d8eaff,#f5faff)}
.mahwor-tile.gold,.mahwor-tool.gold{background:linear-gradient(145deg,#fff2cf,#fffdf7)}
.mahwor-tile.mint,.mahwor-tool.mint{background:linear-gradient(145deg,#d9f8ed,#f5fffb)}
.mahwor-tile.rose,.mahwor-tool.rose{background:linear-gradient(145deg,#ffe1e5,#fff8f9)}
.mahwor-tile.violet,.mahwor-tool.violet{background:linear-gradient(145deg,#ebe1ff,#fcfaff)}
.mahwor-tile.sky,.mahwor-tool.sky{background:linear-gradient(145deg,#dcecff,#f7fbff)}
.mahwor-tile-icon{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:17px;margin-bottom:7px;color:#0b55ae;background:#aacfff}
.mahwor-tile.gold .mahwor-tile-icon{color:#9a5a00;background:#ffe3a1}.mahwor-tile.mint .mahwor-tile-icon{color:#087b62;background:#b1f0de}.mahwor-tile.rose .mahwor-tile-icon{color:#bc263c;background:#ffc3cc}.mahwor-tile.violet .mahwor-tile-icon{color:#4a289a;background:#d7bdff}.mahwor-tile.sky .mahwor-tile-icon{color:#0a4baa;background:#b5d7ff}
.mahwor-tile-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.mahwor-tile strong{font-size:clamp(10px,2.8vw,15px);font-weight:950;line-height:1.5;min-height:30px;overflow-wrap:anywhere}
.mahwor-tile small{font-size:clamp(8px,2.2vw,11px);font-weight:650;line-height:1.5;color:#8191a9;overflow-wrap:anywhere}
.mahwor-tile-arrow{margin-top:auto;align-self:flex-end;display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;color:#fff;background:#2b8df8;border-radius:50%;font-size:27px;line-height:1;transform:rotate(180deg);box-shadow:0 3px 8px #287bde29}
.mahwor-tile.gold .mahwor-tile-arrow{background:#ffad0e}.mahwor-tile.mint .mahwor-tile-arrow{background:#16b58e}.mahwor-tile.rose .mahwor-tile-arrow{background:#f45a6c}.mahwor-tile.violet .mahwor-tile-arrow{background:#b17bee}
.mahwor-heading{display:flex;align-items:center;gap:9px;margin:10px 5px 10px}.mahwor-heading h2{font-size:15px;font-weight:900;color:#111f47;margin:0}.mahwor-heading-line{height:15px;width:4px;border-radius:7px;background:#1f75e8}
.mahwor-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));direction:rtl;gap:7px}
.mahwor-tool{border:1px solid white;border-radius:15px;padding:9px 3px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;justify-content:center;min-height:67px;color:#152958;font-size:clamp(8px,2.25vw,12px);font-weight:800}
.mahwor-tool svg{width:24px;height:24px;stroke:#0c60cd;fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.mahwor-tool.gold svg{stroke:#e2a800}.mahwor-tool.mint svg{stroke:#00a57d}.mahwor-tool.violet svg{stroke:#6654cf}
.mahwor-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:2px 0 16px;direction:rtl}
.mahwor-service{display:flex;align-items:center;gap:8px;min-width:0;min-height:72px;padding:10px 9px;text-align:right;background:linear-gradient(140deg,#e8f3ff,#fff);color:#183569;border:2px solid #fff;border-radius:17px;box-shadow:0 6px 15px #bcd0ee20;font-family:inherit}
.mahwor-service:nth-child(4n+2){background:linear-gradient(135deg,#e1f9f1,#fafffd)}
.mahwor-service:nth-child(4n+3){background:linear-gradient(135deg,#fff1d7,#fffdf6)}
.mahwor-service:nth-child(4n+4){background:linear-gradient(135deg,#f0e8ff,#fefcff)}
.mahwor-service-icon{flex:0 0 37px;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#cbe1ff;color:#1763b7}
.mahwor-service:nth-child(4n+2) .mahwor-service-icon{background:#b9f0e0;color:#087b66}
.mahwor-service:nth-child(4n+3) .mahwor-service-icon{background:#ffe1a4;color:#a76b08}
.mahwor-service:nth-child(4n+4) .mahwor-service-icon{background:#ddc9ff;color:#663ca5}
.mahwor-service-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mahwor-service-label{font-size:clamp(10px,2.75vw,13px);font-weight:850;line-height:1.5;overflow-wrap:anywhere;min-width:0;flex:1}
.mahwor-service-arrow{font-size:15px;flex:0 0 auto;opacity:.7}
.contact-picker-btn{width:100%;min-height:44px;display:flex;justify-content:center;align-items:center;gap:7px;margin:6px 0 4px;padding:10px 12px;background:#eaf4ff;color:#1357aa;border:1px solid #c5def7;border-radius:13px;font-size:12px;font-family:inherit;font-weight:850}
.contact-picker-btn:disabled{opacity:.65;cursor:wait}
.contact-picker-hint{display:block;font-size:10px;color:#69839c;line-height:1.8;margin:-1px 0 7px}
.contact-picker-btn:focus-visible,.mahwor-service:focus-visible{outline:3px solid #ffb914;outline-offset:2px}
@media(max-width:350px){.mahwor-service{padding:8px 6px;gap:5px}.mahwor-service-icon{flex-basis:32px;width:32px;height:32px}.mahwor-service-label{font-size:10px}}
.mahwor-recent-heading{justify-content:space-between}.mahwor-recent-heading button{background:transparent;border:0;color:#2463b8;font-size:11px;font-weight:800}
.mahwor-recent{background:#fff;border:1px solid #ebf1fa;border-radius:17px;margin-bottom:8px;overflow:hidden}
.mahwor-recent-row{display:flex;gap:9px;align-items:center;padding:12px 9px;border-bottom:1px solid #eff4fa;min-width:0}
.mahwor-recent-row:last-child{border-bottom:0}.mahwor-recent-icon{width:34px;height:34px;flex-shrink:0;color:#216ddd;background:#eff6ff;border-radius:10px;display:grid;place-items:center}
.mahwor-recent-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.mahwor-recent-row>div{min-width:0;flex:1}.mahwor-recent-row b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mahwor-recent-row small{color:#8395b2;font-size:9px}.mahwor-recent-row>strong{font-size:10px;white-space:nowrap}.mahwor-empty{padding:20px;text-align:center;font-size:11px;color:#8a9ab6;margin:0}
.bottom-nav{position:fixed!important;z-index:12;left:max(0px,calc((100vw - 960px)/2));right:max(0px,calc((100vw - 960px)/2));bottom:0!important;min-height:calc(67px + env(safe-area-inset-bottom,0px));height:auto;padding:7px 7px calc(8px + env(safe-area-inset-bottom,0px));background:#fff!important;border-top:1px solid #e9f0f9;box-shadow:0 -5px 20px #15397410;border-radius:23px 23px 0 0;display:flex;direction:rtl;align-items:stretch;gap:2px}
.bottom-nav button{max-width:none;min-width:0;min-height:48px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 1px;color:#888e9b!important;font-size:clamp(8px,2.5vw,11px);line-height:1.2;background:none!important;border-radius:16px}
.bottom-nav button.active{color:#152346!important;font-weight:900}
.bottom-nav button.active span{background:linear-gradient(135deg,#ffcf63,#ffb400);border-radius:50%;color:white!important;box-shadow:0 7px 17px #ffb9145e;transform:translateY(-9px);width:50px;height:50px}
.bottom-nav button svg{width:22px;height:22px;stroke:currentColor}.bottom-nav button.active svg{width:28px;height:28px;stroke:#fff}
.bottom-nav span{width:24px;height:24px;display:grid;place-items:center;transition:transform .16s}
.btn-primary,.fab{background:linear-gradient(115deg,#0e57c0,#1e7deb)!important;color:#fff!important;border-color:#1769e8!important;box-shadow:0 6px 17px #1e69db23}
.btn-light,.action-link{color:#1354b3;background:#eaf3ff}input:focus,select:focus,textarea:focus{border-color:#2672db;box-shadow:0 0 0 3px #dfefff}.login-screen{min-height:100vh;min-height:100dvh;padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#e3f3ff,#fff 66%)}.login-card{border:1px solid #dbe9ff}.login-card h1{color:#0d285a}.login-logo{width:min(240px,100%);height:auto;max-height:195px;object-fit:contain}
.sheet-backdrop{padding-top:env(safe-area-inset-top,0px)}.sheet{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);min-height:0}.sheet-head{flex-shrink:0}.sheet-body{min-height:0;padding-bottom:calc(25px + env(safe-area-inset-bottom,0px));overflow-y:auto}
.mahwor-search-result{display:flex;align-items:center;justify-content:space-between;border:1px solid #e9eef8;border-radius:12px;background:#f9fbff;padding:12px 10px;margin:6px 0;font-size:12px;color:#183a75;font-weight:800;width:100%}
@media(max-width:370px){.app-header{padding-inline:9px}.main-content{padding-inline:9px}.head-brand{grid-template-columns:74px minmax(105px,1fr) 75px;gap:3px}.mahwor-head-actions{gap:3px}.mahwor-head-actions button{width:34px;height:36px;padding:7px}.mahwor-profile-photo{width:39px;height:39px}.mahwor-kpis{gap:3px}.mahwor-tile{padding:9px 6px;min-height:150px;border-radius:17px}.mahwor-tile-icon{width:43px;height:43px;flex-basis:43px}.mahwor-tile-icon svg{width:26px;height:26px}.mahwor-tiles{gap:6px}.mahwor-tool{padding-inline:1px}}
@media(min-width:650px){.mahwor-hero{min-height:230px;max-height:290px}.mahwor-hero-copy{padding-left:24px}.mahwor-hero-art{max-height:290px}.mahwor-tiles{gap:13px}.mahwor-tile{min-height:176px;padding:19px 17px}.mahwor-kpi{min-height:106px}.main-content{padding-inline:22px}.mahwor-head-actions button{width:47px;height:47px}.mahwor-profile-photo{width:59px;height:59px}}
@media print{.bottom-nav,.app-header,.mahwor-services{display:none!important}.app-shell{height:auto;overflow:visible}.main-content{overflow:visible;padding:0}}
/* Defensive viewport normalization for WebView, iOS safe areas and desktop preview. */
html,body{margin:0!important;padding:0}
.bottom-nav button{border:0!important;box-shadow:none!important;font-family:inherit}
.mahwor-hero-art{-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 19%);mask-image:linear-gradient(to right,transparent 0%,#000 19%)}


/* Secure subscription setup on login: compact RTL layout and safe viewport scrolling. */
.login-screen{height:auto!important;min-height:100dvh!important;overflow-y:auto;align-items:center}
.login-card{max-width:min(100%,460px);margin-inline:auto;overflow:hidden}
.login-card .kicker{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;padding:6px 12px;white-space:normal;text-align:center;line-height:1.6}
.login-card .stacked label{line-height:1.6}
.license-setup{margin-top:19px;text-align:right;border-top:1px solid #e7eef9;padding:14px 2px 0}
.license-setup summary{font-size:12px;font-weight:850;color:#1356a1;cursor:pointer;line-height:2}
.license-setup p{font-size:11px;color:#6f7c90;line-height:1.85;margin:8px 0 12px}
.license-setup label{font-size:11px;font-weight:700}
.license-setup input{direction:ltr;text-align:left;letter-spacing:0;min-height:46px}
.license-setup button{min-height:43px}
@media(max-height:660px){.login-screen{place-items:start center}.login-card{margin-block:12px}}

/* Clear title image, tall-sheet safe area and unobstructed mobile navigation. */
.login-logo{object-fit:contain;max-width:100%;}
.mahwor-tile::before{display:none!important;content:none!important;box-shadow:none!important;}
.sheet-body{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));}
@media(max-width:370px){.mahwor-brand img{max-width:147px;max-height:72px;}.head-brand{min-height:80px;}}
