/* The owner's dashboard on a phone (owner, 2026-10-17: «صفحتي كأدمن على الموبايل» → «ابدأ»). desk.js runs its phone
   layout (body.desk-on.desk-ph) on the page's own «phone» (its app shell): the laptop's home, figures and menu, placed
   for one hand — a navy top bar; the menu as a drawer over the same sky; a navy hero with the three towers lit and the
   day's shortcuts (instead of the old floating bar); the figures two by two; the buildings side by side to swipe.
   The windows keep the phone's own full-screen look. Nothing here touches the laptop. */
#deskHero,#deskShort,.desk-menu-btn,.desk-scrim,.desk-side-foot{display:none}

@media (max-width:760px),(max-height:500px) and (max-width:1000px){
body.desk-on.desk-ph{
  --ph-bar:#2B3484;--ph-hero:linear-gradient(180deg,#2B3484 0%,#28317e 55%,#1f2766 100%);
  --tile:linear-gradient(145deg,#4b59cf,#2B3484 60%,#1a2166);--tile-sh:0 8px 18px -8px rgba(43,52,132,.7),inset 0 1px 0 rgba(255,255,255,.25);
}
html.desk-dark body.desk-on.desk-ph{--ph-bar:#131843;--ph-hero:linear-gradient(180deg,#131843 0%,#11163e 60%,#0e1235 100%);--tile:linear-gradient(145deg,#5664dd,#3340a8 60%,#212a7a)}
body.desk-on.desk-ph #appContent{background:var(--bg);font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif}

/* ---- the top bar: menu · page · bell · the person ---- */
body.desk-ph .desk-top{position:relative;top:auto;flex:0 0 auto;z-index:45;margin:0;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;min-height:0;gap:10px;background:var(--ph-bar);border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk-ph .desk-title{flex:1 1 auto;min-width:0}
body.desk-ph .desk-title small{color:rgba(255,255,255,.6);font-size:10px;font-weight:500;letter-spacing:1.4px}
body.desk-ph .desk-title b{color:#fff;font-size:17px}
body.desk-ph .desk-search,body.desk-ph .pc-only{display:none!important}
body.desk-ph .desk-acts{flex:0 0 auto;min-width:0;gap:8px}
body.desk-ph .desk-menu-btn{all:unset;box-sizing:border-box;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;cursor:pointer;flex:none}
body.desk-ph .desk-menu-btn .aic{width:22px;height:22px}
body.desk-ph .desk-ib{width:42px;height:42px;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff;box-shadow:none}
body.desk-ph .desk-ib .aic{width:20px;height:20px}
body.desk-ph .desk-ib .n{box-shadow:0 0 0 2px var(--ph-bar)}
body.desk-ph .desk-who{height:42px;padding:2px;border-radius:50%;background:transparent;border:0;box-shadow:none}
body.desk-ph .desk-who::after,body.desk-ph .desk-who-t{display:none}
body.desk-ph .desk-av{width:36px;height:36px}
body.desk-ph .desk-av::after{border-color:var(--ph-bar)}

/* ---- the menu: a drawer over the laptop's sky ---- */
body.desk-ph .desk-side{width:min(86vw,320px);z-index:1700;transform:translateX(105%);visibility:hidden;box-shadow:none;transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s linear .32s}
[dir="ltr"] body.desk-ph .desk-side{transform:translateX(-105%)}
body.desk-ph.desk-menu-open .desk-side{transform:none;visibility:visible;box-shadow:0 0 50px rgba(0,0,0,.35);transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s}
body.desk-ph .desk-side-in{padding:calc(env(safe-area-inset-top) + 18px) 14px calc(env(safe-area-inset-bottom) + 14px)}
body.desk-ph .desk-nav{padding:11px 12px;font-size:15px;border-radius:12px}
body.desk-ph .desk-nav .aic{width:20px;height:20px}
body.desk-ph .desk-grp-h{padding:9px 10px;font-size:15.5px}
body.desk-ph .desk-nav.on::before{inset-inline-start:-14px}
body.desk-ph .desk-grp .desk-nav.on::before{inset-inline-start:-10.5px}
body.desk-ph .desk-side .bec-sky.bare .scene{display:none}
body.desk-ph .desk-scrim{display:block;position:fixed;inset:0;z-index:1650;background:rgba(8,12,34,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .25s}
body.desk-ph.desk-menu-open .desk-scrim{opacity:1;pointer-events:auto}
body.desk-ph .desk-side-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
body.desk-ph .desk-side-foot button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;border-radius:12px;background:rgba(19,24,67,.62);border:1px solid rgba(255,255,255,.14);color:#e3e6ff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.desk-ph .desk-side-foot .aic{width:17px;height:17px;flex:none}
body.desk-ph .desk-side-foot .out{color:#ffb4b4}

/* ---- the hero: the brand's navy, the three towers lit (like the staff app's sign-in), the day in words ---- */
body.desk-ph #deskHero{display:block;position:relative;overflow:hidden;isolation:isolate;margin:-14px -12px 0;padding:10px 20px 166px;min-height:250px;box-sizing:border-box;background:var(--ph-hero);color:#fff}
body.desk-ph #deskHero .bec-sky{bottom:42px;--sc:.52} /* the street and the garage stand just above the shortcuts card */
body.desk-ph #deskHero .bec-sky svg>rect,body.desk-ph #deskHero .bec-sky svg>ellipse,body.desk-ph #deskHero .bec-sky .scene>.orb,body.desk-ph #deskHero .bec-sky .scene>.fade,
body.desk-ph #deskHero .bec-sky .scene>rect,body.desk-ph #deskHero .bec-sky .meteor{display:none}
body.desk-ph #deskHero .bec-sky svg>g.fade{opacity:.5}
/* the towers stand at the far side, away from the words */
body.desk-ph #deskHero .bec-sky .scene{transform-origin:0 900px}
[dir="ltr"] body.desk-ph #deskHero .bec-sky .scene{transform-origin:264px 900px}
body.desk-ph #deskHero .bec-sky .scene>.city{filter:drop-shadow(0 -6px 18px rgba(8,12,40,.35))}
/* the three buildings (01 · 10 · 07) and one low neighbour; the two at the far end would stand under the words */
body.desk-ph #deskHero .bec-sky .scene>.city>g:nth-child(2),body.desk-ph #deskHero .bec-sky .scene>.city>g:nth-child(6){display:none}
body.desk-ph .dhp-in{position:relative;z-index:1}
body.desk-ph .dhp-in small{display:block;font-size:12.5px;font-weight:500;color:rgba(255,255,255,.75)}
body.desk-ph .dhp-in h1{margin:2px 0 12px;font-size:23px;font-weight:700;line-height:1.35;color:#fff;max-width:72%;text-shadow:0 2px 12px rgba(5,8,30,.35)}
body.desk-ph .dhp-sum{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:7px;max-width:72%;padding:7px 14px;border-radius:99px;background:rgba(10,14,48,.38);border:1px solid rgba(255,255,255,.2);font-size:13px;font-weight:600;color:#fff;cursor:pointer;font-family:inherit;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.desk-ph .dhp-sum b{font-size:15px}
body.desk-ph .dhp-sum .aic{width:16px;height:16px;flex:none}
body.desk-ph .dhp-sum.w .aic{color:#ffd25e}

/* ---- the shortcuts: one card standing on the hero (the old floating bar's buttons and the day's busiest) ---- */
body.desk-ph #deskShort{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 4px;position:relative;z-index:2;margin:-48px 0 14px;padding:16px 6px 12px;background:var(--card-bg);border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 30px -16px rgba(15,20,60,.4)}
body.desk-ph #deskShort button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:7px;padding:2px;min-width:0;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}
body.desk-ph #deskShort .t{position:relative;width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:var(--tile);color:#fff;box-shadow:var(--tile-sh);transition:transform .12s}
body.desk-ph #deskShort button:active .t{transform:scale(.92)}
body.desk-ph #deskShort .t .aic{width:22px;height:22px}
body.desk-ph #deskShort .t i{position:absolute;top:-6px;inset-inline-end:-8px;min-width:20px;height:20px;box-sizing:border-box;border-radius:10px;background:#e5484d;color:#fff;font-style:normal;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px;box-shadow:0 0 0 2px var(--card-bg)}
body.desk-ph #deskShort .l{font-size:11.5px;font-weight:600;color:var(--text);text-align:center;line-height:1.3;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* a section's tools page (the menu's «كل أدوات …») stands alone, like on the laptop */
body.desk-ph.desk-tools #deskHero,body.desk-ph.desk-tools #deskShort{display:none!important}
body.desk-ph.desk-tools #deskToolsHead{margin-top:4px}

/* ---- the home: the laptop's parts, one under the other ---- */
body.desk-ph #deskHome .dh-hello{display:none}
body.desk-ph .dh-kpis{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
body.desk-ph .dh-kpi{padding:12px 12px 11px;border-radius:16px;gap:7px}
body.desk-ph .dh-kpi:hover{transform:none}
body.desk-ph .dh-kpi .h{font-size:12px;font-weight:500;white-space:normal;line-height:1.35;align-items:flex-start}
body.desk-ph .dh-kpi .row{min-height:28px}
body.desk-ph .dh-kpi .v{font-size:26px}
body.desk-ph .dh-kpi .spark{width:56px;height:26px}
body.desk-ph .dh-kpi .f{white-space:normal;font-size:11.5px;font-weight:500;line-height:1.45;align-items:flex-start}
body.desk-ph .dh-kpi .f .dh-dot{margin-top:6px}
body.desk-ph .dh-grid{gap:12px;margin-bottom:12px}
body.desk-ph .dh-g1,body.desk-ph .dh-g3{grid-template-columns:minmax(0,1fr)}
body.desk-ph .dh-g1>.dh-card:last-child{order:-1} /* «يحتاج إجراء» before the chart */
body.desk-ph .dh-g2{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:0 -12px 12px;padding:2px 12px 6px;scrollbar-width:none}
body.desk-ph .dh-g2::-webkit-scrollbar{display:none}
body.desk-ph .dh-g2>.dh-card{flex:0 0 84%;scroll-snap-align:center}
body.desk-ph .dh-ch{padding:14px 14px 0;flex-wrap:wrap;row-gap:8px}
body.desk-ph .dh-g1 .dh-ch .end{margin-inline-start:0;width:100%;justify-content:space-between}
body.desk-ph .dh-cb{padding:12px 14px 14px}
body.desk-ph .dh-al{max-height:none;padding:4px 4px 6px}
body.desk-ph .dh-al li{padding:10px;gap:10px}
body.desk-ph .dh-al small{max-width:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.desk-ph .dh-al .go{padding:8px 12px}
body.desk-ph .dh-b-h{padding:14px 14px 0}
body.desk-ph .dh-b-body{padding:12px 14px 14px}
body.desk-ph .dh-mini b{font-size:16px}
body.desk-ph .dh-mini span{font-size:11px;font-weight:500}
body.desk-ph .dh-t th,body.desk-ph .dh-t td{padding:8px 4px}
body.desk-ph .dh-t th:first-child,body.desk-ph .dh-t td:first-child{padding-inline-start:14px;max-width:118px}
body.desk-ph .dh-t th:last-child,body.desk-ph .dh-t td:last-child{padding-inline-end:12px}
body.desk-ph .dh-donut{gap:14px}
body.desk-ph .dh-donut>div:first-child{width:112px!important;height:112px!important}
body.desk-ph .dh-s3 div{padding:9px 8px}
body.desk-ph .dh-feed{padding:6px 14px 12px}
body.desk-ph .desk-more{margin:16px 2px 10px;flex-wrap:wrap;gap:2px 10px}
body.desk-ph #v40Dashboard>.v40-panel{margin:0 0 10px!important}

/* the bottom bar keeps the page's own navy glass bar */
}
