/* Web-only layout. The Android APK never loads these assets. */
.ghaly-web{--web-sidebar:232px;--web-gutter:28px;--ga-nav-height:0px!important;background:#f3f7fa}
.ghaly-web body{margin:0 var(--web-sidebar) 0 0!important;padding:124px 0 28px!important;font-family:Ghaly,'Segoe UI',sans-serif;background:#f3f7fa;color:#172f3c}
.ghaly-web body>header{position:relative!important;top:auto!important;max-width:1600px;margin-inline:auto;padding:4px var(--web-gutter) 16px!important}
.ghaly-web main{width:100%;max-width:1600px!important;margin-inline:auto;padding:0 var(--web-gutter) 24px!important;box-sizing:border-box}
.ghaly-web main .page{padding:0}
.ghaly-web :is(.card,.panel,.metric,.filter-box){box-sizing:border-box}
.ghaly-web :is(.page.active,.view.active)>*{min-width:0}
.ghaly-web[data-web-role=kids] .ghaly-font-toggle{display:none}
.ghaly-web .ghaly-font-control{position:fixed;top:0;left:0;right:var(--web-sidebar);height:64px!important;z-index:80;display:flex;align-items:center;gap:8px;padding:8px var(--web-gutter)!important;background:white;border-bottom:1px solid #e2eaf0;direction:rtl;--ghaly-font-scale:1}
.ghaly-web .ghaly-font-toggle{position:static;width:40px;height:40px;min-height:40px;border:0;background:transparent;font:700 20px 'Segoe UI',sans-serif;color:#4c6875;cursor:pointer}
.ghaly-web .ghaly-brand-link{margin-inline-start:auto;font-size:14px!important}
.ghaly-web .web-refresh{height:36px;min-height:36px;padding:5px 12px;border:1px solid #e2eaf0;border-radius:9px;color:#526776;background:#f8fafc;font:600 12px Ghaly,sans-serif;cursor:pointer}
.ghaly-web .ga-navigation-toggle{display:none}
.ghaly-web .ghaly-role-switcher{display:none!important}
.ghaly-web .ghaly-font-menu{position:absolute;top:58px;right:var(--web-gutter);width:210px;padding:8px;background:white;border:1px solid #e2eaf0;border-radius:14px;box-shadow:0 14px 40px #16384b18;box-sizing:border-box}
.ghaly-web .ghaly-font-menu[hidden]{display:none!important}
.ghaly-web .ghaly-font-menu strong{display:block;font:700 15px Ghaly,sans-serif;padding:6px}
.ghaly-web .ghaly-font-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 12px;min-height:40px;border:0;background:white;color:#172f3c;font-family:Ghaly,sans-serif;cursor:pointer;border-radius:9px}
.ghaly-web .ghaly-font-menu button[aria-checked=true]{background:#e6f5f3;color:#087f83}
.ghaly-web .ghaly-font-menu button[aria-checked=true]:after{content:'✓'}
.web-sidebar{box-sizing:border-box;position:fixed;inset:0 0 0 auto;width:var(--web-sidebar);padding:24px 14px 16px;background:white;border-left:1px solid #e2eaf0;z-index:90;display:flex;flex-direction:column;gap:16px;font:13px Ghaly,'Segoe UI',sans-serif;--ghaly-font-scale:1}
.web-logo{display:flex;align-items:center;gap:10px;color:#172f3c;text-decoration:none;font:800 14px Ghaly,sans-serif;direction:ltr;margin-bottom:8px}
.web-logo img{border-radius:13px;flex-shrink:0}.web-logo small{display:block;font-size:11px;color:#718591;font-weight:500;text-align:right}
.web-sidebar-close{display:none}.web-role-list{display:grid;gap:4px;overflow:auto;align-content:start;flex:1}
.web-role-link,.web-home{display:flex;align-items:center;gap:10px;min-height:39px;padding:5px 12px;border:1px solid transparent;border-radius:10px;text-decoration:none;color:#526776;box-sizing:border-box;font-weight:600}
.web-role-link>span:first-child{width:23px;text-align:center;font-size:18px}.web-role-link:hover,.web-home:hover{background:#f3f7fa}
.web-role-link[aria-current=page]{background:#e6f5f3;color:#087f83;border-color:#d7efec;font-weight:800}
.web-home{background:#f4f7fa;color:#172f3c}.web-account{padding:12px 8px 0;border-top:1px solid #e2eaf0;display:grid;gap:8px}
.web-account>span{font-size:12px;color:#718591}.web-account button{border:0;background:none;color:#526776;text-align:right;font:600 12px Ghaly,sans-serif;padding:5px 0;cursor:pointer}.web-account button:last-child{color:#bb4051}
.ghaly-web :is(body>nav.tabs,body>nav:has(button.nav)){position:fixed!important;top:64px!important;bottom:auto!important;right:var(--web-sidebar)!important;left:0!important;inset-inline:var(--web-sidebar) 0!important;max-width:none!important;width:auto!important;min-height:46px!important;height:auto;border-radius:0!important;padding:4px var(--web-gutter)!important;justify-content:flex-start;gap:6px!important;box-shadow:none!important;z-index:70!important;border:0!important;border-bottom:1px solid #e2eaf0!important;overflow-x:auto}
.ghaly-web :is(body>nav.tabs,body>nav:has(button.nav))>button{flex:0 0 auto;flex-direction:row;gap:8px;min-height:36px!important;padding:6px 14px!important;font-size:12px!important;white-space:nowrap;border-radius:9px!important}
.ghaly-web .ga-nav-label{white-space:nowrap}.ghaly-web .ga-nav-icon{width:18px;height:18px}
.ghaly-web body:has(>nav.tabs>button:only-child),.ghaly-web.ghaly-hub body{padding-top:84px!important}
.ghaly-web.ghaly-hub main{padding:0 var(--web-gutter) 28px!important;max-width:1600px!important}
.ghaly-web.ghaly-hub .roles{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.ghaly-web.ghaly-hub .role{min-height:108px;padding:16px;border-radius:16px;display:flex;flex-direction:row;align-items:center;gap:14px}
.ghaly-web.ghaly-hub .role .icon{width:44px;height:44px;flex-basis:44px}.ghaly-web.ghaly-hub .role .title{font-size:15px}.ghaly-web.ghaly-hub .role .desc{font-size:12px}
.ghaly-web .ga-discovery{display:flex;align-items:center;gap:16px;margin-bottom:22px}.ghaly-web .ga-search{flex:1;max-width:540px}.ghaly-web .ga-filters{margin:0}
.ghaly-web :is(#metrics.metrics,#metrics.grid,#progressMetrics){grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-bottom:16px}
.ghaly-web :is(.metric,.card,.panel){border-radius:14px!important}
.ghaly-web #recent:has(>[class=card]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ghaly-web #recent:has(>[class=card])>.card{margin-bottom:0}
.ghaly-web #entryForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:980px}
.ghaly-web #entryForm>:is(.seg,.actions),.ghaly-web #entryForm>div:has(textarea){grid-column:1/-1}
.ghaly-web :is(#transactionForm,#capitalForm,#profitForm){max-width:980px}
.ghaly-web .overview-band{display:grid;grid-template-columns:1.1fr 1fr}.ghaly-web .overview-band .flow-grid{border-top:0;border-right:1px solid #ffffff22}.ghaly-web .overview-foot{grid-column:1/-1}
.ghaly-web .ga-settings{inset:0!important}.ghaly-web .toast{left:calc((100% - var(--web-sidebar))/2)!important;right:auto!important;bottom:24px!important;width:auto;max-width:650px;transform:translateX(-50%)}
.ghaly-web .modal{justify-content:center;align-items:center}.ghaly-web .sheet{max-width:760px;width:calc(100% - 48px);max-height:86vh}
.ghaly-web[data-web-role=gamal] #home.active{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ghaly-web[data-web-role=gamal] #home>:is(.filter-box,.summary),.ghaly-web[data-web-role=gamal] #home>.panel:last-of-type{grid-column:1/-1}
.ghaly-web[data-web-role=gamal] #home>.panel:has(#recent),.ghaly-web[data-web-role=gamal] #home>#sync{grid-column:1/-1}
.ghaly-web .accounts-modern{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.ghaly-web[data-web-role=bus] #today.active{display:grid;grid-template-columns:1fr 1.1fr;gap:14px;align-items:start}.ghaly-web[data-web-role=bus] #today>.ga-disclosure{grid-column:1/-1}.ghaly-web[data-web-role=bus] #dayForm{grid-template-columns:1fr 1fr;gap:12px}.ghaly-web[data-web-role=bus] #dayForm>button{width:max-content;min-width:140px}
.ghaly-web[data-web-role=quran] #today.active{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;align-items:start}
.ghaly-web #p-ledger.active{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.ghaly-web #ledgerRows{grid-column:1/-1}
.ghaly-web .segments{flex-wrap:nowrap;overflow:auto}.ghaly-web .segments>.btn{flex:0 0 auto;width:auto;white-space:nowrap}
.web-scrim{position:fixed;inset:0;border:0;background:#172f3c60;z-index:85}.web-scrim[hidden]{display:none!important}
.web-checking body>:not(script):not(style):not(.web-login){visibility:hidden!important}
.web-guest body{margin:0!important;padding:0!important}.web-guest body>:not(.web-login):not(script):not(style){display:none!important}
.web-login{min-height:100dvh;box-sizing:border-box;display:grid;grid-template-columns:1.15fr 1fr;gap:64px;align-items:center;max-width:1180px;margin:auto;padding:64px 40px;direction:rtl;font-family:Ghaly,'Segoe UI',sans-serif}
.web-login[hidden]{display:none!important}.web-eyebrow{font-size:12px;letter-spacing:2px;color:#087f83;font-weight:800}.web-login-copy h1{font-size:40px;line-height:1.6;color:#172f3c;margin:16px 0}.web-login-copy p{font-size:16px;line-height:2;color:#637985;max-width:480px}
.web-login-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.web-login-points span{background:#e6f5f3;color:#087f83;font-size:12px;padding:7px 12px;border-radius:8px}
.web-login-card{background:white;border:1px solid #e2eaf0;border-radius:24px;padding:36px;box-shadow:0 16px 60px #16384b08;max-width:440px;text-align:center}.web-login-card img{border-radius:22px}.web-login-card h2{font-size:24px;margin:18px 0 8px}.web-login-card p{font-size:14px;color:#637985;line-height:1.9}.web-login-card button{width:100%;padding:12px 18px;min-height:46px;background:#087f83;color:white;border:0;border-radius:11px;font:700 14px Ghaly,sans-serif;cursor:pointer}.web-login-card button:disabled{opacity:.65}.web-login-card a{display:block;color:#087f83;margin-top:16px;font-size:13px}.web-login-card a[hidden]{display:none}.web-login-card small{font-size:11px;color:#81929c;line-height:1.8;display:block;margin-top:16px}
.web-settings{box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #e2eaf0;border-radius:20px;padding:24px;font-family:Ghaly,sans-serif;color:#172f3c}.web-settings::backdrop{background:#172f3c70}.web-settings>button{float:left;border:0;border-radius:8px;padding:8px 14px;background:#e6f5f3;color:#087f83;font-family:inherit}.web-settings p{font-size:13px;color:#637985}.web-preference{display:flex;justify-content:space-between;gap:16px;padding:12px;border-top:1px solid #e2eaf0;font-size:14px}.web-preference input{width:20px;height:20px;accent-color:#087f83}
@media(min-width:1600px){.ghaly-web{--web-gutter:40px}.ghaly-web.ghaly-hub .roles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.ghaly-web{--web-sidebar:200px;--web-gutter:18px}.web-logo{font-size:12px}.ghaly-web .ga-discovery{flex-wrap:wrap}.ghaly-web .ga-search{max-width:none;min-width:230px}}
@media(max-width:800px){.ghaly-web{--web-sidebar:0px;--web-gutter:16px}.web-sidebar{width:240px;transform:translateX(100%);transition:transform .2s}.web-sidebar-open .web-sidebar{transform:translateX(0)}.web-sidebar-close{display:block;position:absolute;left:12px;top:12px;background:none;border:0;font-size:23px;color:#637985}.ghaly-web .ga-navigation-toggle{display:grid}.ghaly-web .ghaly-brand-link{font-size:12px!important}.ghaly-web .web-refresh{font-size:0;width:36px;padding:0}.ghaly-web .web-refresh:before{content:'↻';font-size:20px}.ghaly-web .ga-discovery{display:block}.ghaly-web .ga-filters{margin-top:10px}.ghaly-web.ghaly-hub .roles{grid-template-columns:repeat(2,minmax(0,1fr))}.ghaly-web.ghaly-hub .role{flex-direction:column;align-items:start;padding:12px;gap:8px}.ghaly-web.ghaly-hub .role .title{font-size:13px}.ghaly-web.ghaly-hub .role .desc{font-size:11px}.ghaly-web :is(#recent:has(>[class=card]),#entryForm,#p-ledger.active),.ghaly-web[data-web-role=gamal] #home.active,.ghaly-web[data-web-role=bus] #today.active,.ghaly-web[data-web-role=quran] #today.active{grid-template-columns:1fr}.ghaly-web :is(#metrics.metrics,#metrics.grid,#progressMetrics){grid-template-columns:repeat(2,minmax(0,1fr))}.ghaly-web .overview-band{display:block}.web-login{grid-template-columns:1fr;gap:24px;padding:32px 20px;max-width:520px}.web-login-copy h1{font-size:28px;margin:8px 0}.web-login-copy p{font-size:14px}.web-login-points{display:none}.web-login-card{padding:24px}.ghaly-web .ghaly-font-control{padding-inline:12px!important}.ghaly-web[data-web-role=bus] #dayForm{grid-template-columns:1fr}.ghaly-web :is(body>nav.tabs,body>nav:has(button.nav))>button{padding-inline:10px!important;font-size:11px!important}.ghaly-web .sheet{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.web-sidebar{transition:none}}
/* The navigation is a drawer at every screen size; content uses the full width. */
.ghaly-web{--web-sidebar:0px}
.ghaly-web .ga-navigation-toggle{display:grid}
.web-sidebar{width:min(290px,85vw);transform:translateX(100%);visibility:hidden;transition:transform .2s,visibility .2s}
.web-sidebar-open .web-sidebar{transform:translateX(0);visibility:visible}
.web-sidebar-close{display:block;position:absolute;left:12px;top:12px;background:none;border:0;font-size:23px;color:#637985}
.ghaly-web[data-web-role=admin] body{padding-top:84px!important}
.ghaly-web[data-ga-theme=dark] .ga-navigation-toggle{color:#d4e8f2}
@media(prefers-reduced-motion:reduce){.web-sidebar{transition:none}}
