/* Shared Business mobile presentation. No authorization or commerce rules here. */
@font-face{font-family:BayaTajawal;src:url('/assets/Tajawal-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:BayaTajawal;src:url('/assets/Tajawal-Bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
body,button,input,select,textarea{font-family:BayaTajawal,Tajawal,Arial,sans-serif}
textarea{font-size:16px;max-width:100%}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #b08968;outline-offset:3px}
.business-trial-banner{display:flex;align-items:center;gap:12px;padding:10px 24px;background:#f0e5e8;color:#64162e;font-size:12px;line-height:1.55;border-bottom:1px solid #e5d4db}
.business-trial-banner>.business-trial-copy{flex:1;min-width:0}.business-trial-banner a{white-space:nowrap;color:inherit!important}
#business-language{position:static!important;flex:none;min-height:40px;font-size:13px;padding:8px 12px;z-index:auto!important;white-space:nowrap}
#workspace-dock,#workspace-shortcuts{display:none}
#body,.panel,.task,.product,.form-grid>*{min-width:0}#body p,#body h2,#body h3,.panel{overflow-wrap:anywhere}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}
@media(max-width:700px){
 body{font-size:15px;line-height:1.6}
 .business-trial-banner{padding:10px 16px;font-size:11px;gap:10px;text-align:start}
 .login{padding:28px 20px;min-height:auto}
 .welcome{margin-bottom:20px}.welcome .brand{font-size:38px;margin-bottom:16px}.welcome h1{font-size:30px;line-height:1.3;margin-bottom:0}.welcome h1 br{display:none}
 .login .panel{padding:24px 20px;border-radius:22px;box-shadow:0 8px 30px #30242a06}.login h2{font-size:24px}.login form label{font-size:14px;margin-top:18px}
 .login input{min-height:48px}.login form button{min-height:48px;margin:20px 0 16px}.login form>p:last-child{font-size:12px;margin-bottom:0}
 body[data-role="admin"] main,main{padding:0 16px 100px;margin:0}
 #content>header{position:sticky;top:0;z-index:25;background:#faf7f2f5;backdrop-filter:blur(14px);display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:16px 0 12px;border-bottom:1px solid var(--border);margin-bottom:12px}
 body[data-role="admin"] #content>header>div{grid-column:1;grid-row:1;min-width:0;padding-inline-end:8px}
 #content>header h1{font-size:23px;line-height:1.35;margin:0 0 3px;font-weight:700}
 #today{font-size:11px;margin:0 0 4px}#identity{font-size:11px;direction:ltr;text-align:start;unicode-bidi:plaintext;margin:0;overflow-wrap:anywhere}
 body[data-role="admin"] #admin-menu-toggle{grid-column:2;grid-row:1;display:flex;gap:7px;align-items:center;min-height:44px;border-radius:14px;font-size:13px;padding:9px 12px}
 #admin-menu-toggle::before{content:'';display:block;width:16px;height:12px;border-block:1.6px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1.6px no-repeat}
 #refresh{grid-column:1/-1;justify-self:end;border:0;background:transparent;font-size:11px;min-height:36px;padding:6px 0;color:var(--muted)}
 .connection{font-size:10px;margin:0 0 16px;line-height:1.5}.role-hero{padding:20px;border-radius:20px;gap:12px;margin-bottom:16px;background:linear-gradient(120deg,var(--wine),#41202e)}
 .role-hero h2{font-size:23px;line-height:1.4;margin:5px 0 8px}.role-hero p{font-size:12px;margin:0}.role-hero .eyebrow{font-size:11px}.hero-number{min-width:64px}.hero-number strong{font-size:40px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat{padding:16px 14px;border-radius:18px;box-shadow:0 3px 16px #30242a03}.stat span{font-size:12px;display:block;line-height:1.5}.stat strong{font-size:22px;line-height:1.5;margin:7px 0 2px;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stat small{font-size:10px;line-height:1.5}
 #workspace-shortcuts{display:block;margin:22px 0}.workspace-shortcuts-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}.workspace-shortcuts-heading h2{font-size:19px;margin:0}
 .workspace-all{display:flex;align-items:center;background:transparent;color:var(--wine);font-size:12px;gap:6px;padding:8px 0;min-height:44px}.workspace-all svg{width:16px;height:16px}
 .workspace-shortcuts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.workspace-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px 8px;min-height:110px;background:white;color:var(--wine);border:1px solid var(--border);border-radius:18px;font-size:12px;line-height:1.5}.workspace-shortcut svg{width:26px;height:26px}.workspace-shortcut span{max-width:100%}
 #workspace-dock{position:fixed;display:flex;inset-inline:0;bottom:0;top:auto;z-index:26;gap:4px;align-items:stretch;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fff;box-shadow:0 -4px 24px #30242a08}
 #workspace-dock .workspace-dock-item{background:transparent;color:var(--muted);display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 4px;font-size:11px;line-height:1.3;border-radius:14px;min-height:52px}
 #workspace-dock .workspace-dock-item[aria-current=page]{background:#f5e9ed;color:var(--wine)}.workspace-dock-item svg{width:22px;height:22px}
 body[data-role="admin"] aside{width:min(320px,88vw);padding:20px 16px;box-shadow:0 0 40px #30242a10}
 body[data-role="admin"] aside .brand{font-size:32px;margin:0}body[data-role="admin"] aside .brand small{font-size:9px}
 body[data-role="admin"] aside nav button{padding:12px 14px;min-height:46px;border-radius:12px;font-size:14px;line-height:1.5}
 body[data-role="admin"] aside>.eyebrow{margin:4px 0}body[data-role="admin"] aside .aside-bottom{font-size:12px;line-height:1.5}body[data-role="admin"] aside .aside-bottom button{min-height:44px;font-size:13px}
 #admin-menu-close{font-size:12px;min-height:40px;padding:8px 12px}.panel,.task{padding:18px;border-radius:18px}.panel h2{font-size:20px}.panel h3,.task h3{font-size:17px}
 .panel p{margin-bottom:12px}.panel .notice{font-size:12px;padding:12px 14px;line-height:1.6}.panel input,.panel select,.panel textarea{font-size:16px;min-height:44px}
 input[type=checkbox],input[type=radio]{width:20px!important;min-height:20px!important;flex:none;accent-color:var(--wine)}
 .section-head{gap:10px;margin:24px 0 14px}.section-head h2{font-size:19px}.section-head button{font-size:12px;padding:9px 12px;min-height:44px}.task-grid,.products{gap:12px}
 .panel .form-grid{gap:0 12px}.task-top{flex-wrap:wrap}.status{font-size:11px;max-width:100%;white-space:normal}.actions button,.panel button{min-height:44px}
 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-card{padding:16px;gap:6px}.quick-card strong{font-size:25px}
 .empty{padding:30px 18px}.empty h3{font-size:17px}.empty p{font-size:13px}.editor-footer{gap:8px;flex-wrap:wrap}dialog{max-width:calc(100vw - 24px)}
 #toast{z-index:50;bottom:88px;inset-inline:16px;font-size:13px;max-width:none}
 body[data-role="merchant"] aside,body[data-role="driver"] aside{padding:16px;background:transparent;border-bottom:1px solid var(--border)}
 body:not([data-role="admin"]) #navigation{overflow-x:auto;justify-content:flex-start;gap:4px}body:not([data-role="admin"]) #navigation button{flex:0 0 auto;min-width:76px;min-height:48px;font-size:12px;border-radius:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Drawer rows have fixed content height; the list itself owns scrolling. */
@media(max-width:700px){
 body[data-role="admin"] #admin-sidebar{box-sizing:border-box;max-height:100dvh;overflow:hidden;gap:8px}
 body[data-role="admin"] #admin-sidebar>#navigation{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-height:0;flex:1;overflow:auto;max-height:none}
 body[data-role="admin"] #admin-sidebar>#navigation>button{flex:0 0 auto;min-height:44px;max-height:none;padding:10px 12px;margin:0;line-height:1.4}
 body[data-role="admin"] #admin-sidebar>.aside-bottom{flex:none;padding-top:10px;border-top:1px solid var(--border)}
 body[data-role="merchant"] #admin-sidebar,body[data-role="driver"] #admin-sidebar,body[data-role="operations"] #admin-sidebar{display:none}
 body:not([data-role="admin"]) #navigation{display:none}
 body:not([data-role="admin"]) #workspace-dock{display:flex}
 #content>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
 #content>header>div:first-child{flex:1;min-width:0}
 #identity{display:none}#refresh{flex-basis:100%;text-align:end}
}
.business-tools{display:flex;gap:8px;align-items:center}.business-tool{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid var(--border);background:white;color:var(--wine);border-radius:14px}.business-tool svg{width:22px;height:22px;flex:none}.business-tool:focus-visible{outline:2px solid var(--wine)}
.business-dialog{border:1px solid var(--border);border-radius:22px;padding:22px;width:min(620px,calc(100vw - 24px));max-height:85dvh;overflow:auto;background:var(--paper);color:var(--ink)}.business-dialog::backdrop{background:#30242a70}.business-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.business-dialog-heading h2{font-size:22px;margin:0}.business-dialog button{min-height:44px}.business-dialog p{overflow-wrap:anywhere}.business-dialog dl{display:grid;gap:12px}.business-dialog dl>div{padding:12px;background:#fff;border:1px solid var(--border);border-radius:12px}.business-dialog dt{font-size:12px;color:var(--muted)}.business-dialog dd{margin:4px 0 0;overflow-wrap:anywhere}.support-thread{background:#fff;border:1px solid var(--border);padding:16px;border-radius:16px;margin-block:12px}.support-message{padding:12px;background:#f6edf1;border-radius:12px;margin-block:8px;white-space:pre-wrap;overflow-wrap:anywhere}.support-message.is-team{background:#edf3f2}.support-message small{display:block;color:var(--muted);font-size:11px}.support-thread summary{overflow-wrap:anywhere}.support-thread textarea{min-height:90px}.support-thread button{margin-top:10px}.business-dialog label{display:block;margin-top:14px}.business-dialog input,.business-dialog textarea{width:100%;font:inherit;box-sizing:border-box}.business-dialog .error:empty{display:none}
