/* Ms. Huda's phone (principal). Everything is scoped under .device-ui and the .hu-/.phn.hu prefix. */

/* tab bar: five tabs */
.device-ui .hu-tabs .tab span { font-size: 10.5px; white-space: nowrap; }

/* Today: hero, the school overview */
.device-ui .hu-hero h2 { margin: 16px 0 2px; }
.device-ui .hu-hero p { position: relative; margin: 0; color: rgba(255, 255, 255, .9); font-size: 13.5px; }
.device-ui .hu-hero .hu-job { font-weight: 600; }
.device-ui .hu-hero .hu-mods { color: rgba(255, 255, 255, .82); margin-top: 2px; line-height: 1.5; }
.device-ui .hu-hero .bell svg { width: 22px; height: 22px; }
.device-ui .hu-st { margin-top: 16px; }
.device-ui .hu-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.device-ui .hu-tile { flex: 1 1 45%; min-width: 0; background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.device-ui .hu-th { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.device-ui .hu-th svg { width: 16px; height: 16px; }
.device-ui .hu-th small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-tile > b { font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.device-ui .hu-tile > b.ok { color: var(--ok); } .device-ui .hu-tile > b.warn { color: var(--warn); } .device-ui .hu-tile > b.bad { color: var(--bad); }
.device-ui .hu-td { font-size: 11px; color: var(--faint); }
.device-ui .hu-attn { margin-top: 12px; }
.device-ui .hu-ah { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.device-ui .hu-cnt, .device-ui .hu-rc { background: var(--warnS); color: var(--warn); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.device-ui .hu-rc { min-width: 28px; text-align: center; padding: 1px 6px; }
.device-ui .hu-ar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13.5px; }
.device-ui .hu-ar:first-of-type { border-top: 0; }
.device-ui .hu-ar > span:nth-child(2) { flex: 1; }
.device-ui .hu-ar > svg { width: 16px; height: 16px; color: var(--faint); }
.device-ui .hu-ar[data-go] { cursor: pointer; }
.device-ui .hu-clear { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 13.5px; padding: 0 16px 16px; }
.device-ui .hu-clear svg { width: 18px; height: 18px; }
.device-ui .hu-trh { display: flex; align-items: center; margin-bottom: 12px; } .device-ui .hu-trh b { flex: 1; } .device-ui .hu-trh small { color: var(--muted); }
.device-ui .hu-bars { display: flex; align-items: flex-end; height: 64px; gap: 4px; direction: rtl; }
.device-ui .hu-bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.device-ui .hu-bars i { display: block; width: 100%; border-radius: 4px; background: var(--brand); }

/* Receipts tab */
.device-ui .hu-qh { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px 10px; }
.device-ui .hu-qh b { font-size: 26px; }
.device-ui .hu-rr { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; }
.device-ui .hu-rr > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .device-ui .hu-rr small { font-size: 12px; } .device-ui .hu-rr .faint { font-size: 11px; }
.device-ui .hu-rth { width: 52px; height: 52px; border-radius: 12px; background: var(--sunk); color: var(--faint); display: grid; place-items: center; flex: none; }
.device-ui .hu-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .device-ui .hu-amt b { font-size: 15px; white-space: nowrap; } .device-ui .hu-amt svg { width: 16px; height: 16px; color: var(--faint); }

/* Messages tab */
.device-ui .hu-search { margin: 0 0 10px; }
.device-ui .hu-seg4 button { font-size: 12px; padding: 8px 2px; }
.device-ui .hu-ms { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; margin: 4px 4px 8px; }
.device-ui .hu-entry, .device-ui .hu-conv { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 12px 14px; margin-bottom: 8px; text-align: right; }
.device-ui .hu-entry > div { flex: 1; min-width: 0; } .device-ui .hu-entry b { display: block; } .device-ui .hu-entry small { color: var(--muted); }
.device-ui .hu-entry small.hl { color: var(--warn); font-weight: 700; }
.device-ui .hu-entry > svg { width: 18px; height: 18px; color: var(--faint); }
.device-ui .hu-eic, .device-ui .hu-cav { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex: none; }
.device-ui .hu-eic svg, .device-ui .hu-cav svg { width: 24px; height: 24px; }
.device-ui .hu-eic.vio { background: linear-gradient(135deg, #8E6CF5, #5E3FD1); } .device-ui .hu-eic.sky { background: linear-gradient(135deg, #3FA7D6, #1E6FA8); }
.device-ui .hu-cav { border-radius: 50%; } .device-ui .hu-cav.coral { background: #FF7A59; } .device-ui .hu-cav.sky { background: var(--sky); }
.device-ui .hu-cav.sm { width: 40px; height: 40px; } .device-ui .hu-cav.sm svg { width: 18px; height: 18px; }
.device-ui .hu-conv > .ini { width: 52px; height: 52px; min-width: 52px; font-size: 18px; }
.device-ui .hu-conv > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.device-ui .hu-conv[data-go] { cursor: pointer; }
.device-ui .hu-cl { display: flex; align-items: center; gap: 8px; } .device-ui .hu-cl > b { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-cl > small { color: var(--faint); font-size: 12px; } .device-ui .hu-cl > small.brandt { color: var(--brand); font-weight: 700; }
.device-ui .hu-conv > div > small.faint { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-prev { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-prev.un { color: var(--text); font-weight: 500; }
.device-ui .hu-needs { flex: none; background: var(--warnS); color: var(--warn); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.device-ui .hu-un { flex: none; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

/* chat screens (announcements channel, inbox thread) */
.device-ui .phn.hu-chatbg { background: #EFEAE0; }
.device-ui .phn.hu-chatbg > .sb { background: #fff; }
.device-ui .hu-chh { flex: none; display: flex; align-items: center; gap: 8px; padding: 2px 8px 8px; background: #fff; box-shadow: 0 1px 3px rgba(14, 28, 26, .08); position: relative; z-index: 2; }
.device-ui .hu-chh > div { flex: 1; min-width: 0; } .device-ui .hu-chh b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-chh small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-ui .hu-chh .hb { width: 40px; height: 40px; } .device-ui .hu-chh .hb svg { width: 24px; height: 24px; }
.device-ui .hu-chh .ini { width: 40px; height: 40px; min-width: 40px; }
.device-ui .hu-chat { display: flex; flex-direction: column; padding: 8px 10px; }
.device-ui .hu-chat > :first-child { margin-top: auto; }
.device-ui .hu-day { text-align: center; margin: 8px 0; } .device-ui .hu-day span { background: rgba(255, 255, 255, .85); color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 99px; }
.device-ui .hu-b { display: flex; margin: 3px 0; } .device-ui .hu-b.mine { justify-content: flex-end; }
.device-ui .hu-bb { max-width: 84%; background: #fff; border-radius: 18px; padding: 8px 12px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.device-ui .hu-b.mine .hu-bb { background: #DCF4EA; }
.device-ui .hu-bb p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.device-ui .hu-snd { display: block; font-size: 12px; font-weight: 700; color: #7A4FD8; }
.device-ui .hu-meta { display: flex; justify-content: flex-start; align-items: center; gap: 3px; font-size: 11px; color: var(--faint); margin-top: 2px; direction: ltr; }
.device-ui .hu-meta svg { width: 14px; height: 14px; color: var(--sky); }
.device-ui .hu-ab { display: inline-flex; align-items: center; gap: 3px; background: var(--mint); color: var(--deep); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px; }
.device-ui .hu-ab svg { width: 11px; height: 11px; }
.device-ui .hu-acks { display: flex; align-items: center; gap: 5px; width: 100%; color: var(--brand); font-size: 12px; font-weight: 700; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.device-ui .hu-acks svg { width: 16px; height: 16px; }
.device-ui .hu-annbar { flex: none; padding: 8px 12px 24px; }
.device-ui .hu-comp { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 24px; }
.device-ui .hu-att { width: 40px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.device-ui .hu-in { flex: 1; min-height: 44px; background: #fff; border-radius: 22px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; cursor: text; }
.device-ui .hu-in .ph { color: var(--faint); }
.device-ui .hu-send { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.device-ui .hu-send svg { width: 20px; height: 20px; transform: scaleX(-1); } .device-ui .hu-send.off svg { transform: none; }

/* read confirmations sheet */
.device-ui .hu-acksh { max-height: 78%; display: flex; flex-direction: column; }
.device-ui .hu-al { flex: 1; max-height: 380px; padding: 0 2px; margin: 6px -2px 4px; }
.device-ui .hu-g { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 6px 4px; }
.device-ui .hu-ap { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.device-ui .hu-ap .ini { width: 34px; height: 34px; min-width: 34px; font-size: 13px; }
.device-ui .hu-ap > div { flex: 1; min-width: 0; } .device-ui .hu-ap b { display: block; font-weight: 600; font-size: 14px; } .device-ui .hu-ap small { font-size: 11px; color: var(--muted); }
.device-ui .hu-ap.pend { opacity: .75; } .device-ui .hu-ap.pend b { font-weight: 400; }
.device-ui .hu-ap > svg { width: 18px; height: 18px; color: var(--ok); }
.device-ui .hu-div { display: block; height: 1px; background: var(--border); margin: 8px 0; }
.device-ui .hu-remind:disabled { opacity: 1; }

/* compose (إعلان جديد) */
.device-ui .hu-types { flex-wrap: wrap; }
.device-ui .chip.hu-ic { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; font-size: 13.5px; }
.device-ui .chip.hu-ic svg { width: 15px; height: 15px; }
.device-ui .hu-fl { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 4px 6px; color: var(--text); }
.device-ui .hu-body { font-size: 14.5px; }
.device-ui .hu-audr { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 12px; text-align: right; }
.device-ui .hu-audr b { flex: 1; font-weight: 600; } .device-ui .hu-audr > svg { width: 18px; height: 18px; color: var(--muted); }
.device-ui .hu-aic { width: 40px; height: 40px; border-radius: 13px; background: var(--mint); color: var(--deep); display: grid; place-items: center; flex: none; }
.device-ui .hu-tgs { margin-top: 12px; }
.device-ui .hu-tg { cursor: pointer; } .device-ui .hu-tg small { display: block; font-size: 12px; }
.device-ui .hu-aud .hu-sl { display: block; font-size: 15px; margin: 12px 0 6px; }
.device-ui .hu-aud .seg3 { margin-bottom: 6px; }
.device-ui .hu-gr { flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; } .device-ui .hu-gr .chip { padding: 6px 12px; font-size: 13.5px; }
.device-ui .hu-hs { overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 2px; } .device-ui .hu-hs .chip { flex: none; white-space: nowrap; }

/* inbox */
.device-ui .hu-brand { color: var(--brand); }
.device-ui .hu-cf { flex: none; overflow-x: auto; padding: 4px 16px 12px; } .device-ui .hu-cf .chip { flex: none; white-space: nowrap; font-size: 13.5px; padding: 6px 14px; }
.device-ui .hu-opt svg { width: 22px; height: 22px; color: var(--deep); }
.device-ui .hu-opt span { text-align: right; }
.device-ui .hu-dt { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; } .device-ui .hu-dt b { display: block; }
.device-ui .sheet p { margin: 2px 4px 6px; }

/* School tools tab */
.device-ui .hu-mg .arow { cursor: default; } .device-ui .hu-mg .arow[data-go] { cursor: pointer; }
.device-ui .hu-mg .sq { width: 36px; height: 36px; border-radius: 12px; } .device-ui .hu-mg .sq svg { width: 19px; height: 19px; }
.device-ui .hu-mg .arow { padding: 11px 16px; }

/* attendance pages */
.device-ui .hu-db { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.device-ui .hu-dbb { width: 36px; height: 36px; display: grid; place-items: center; } .device-ui .hu-dbb.off { opacity: .3; }
.device-ui .hu-df { flex: 1; margin: 0; } .device-ui .hu-df svg { width: 18px; height: 18px; color: var(--muted); }
.device-ui .hu-wd { display: block; color: var(--muted); font-weight: 600; font-size: 13.5px; margin: 4px 4px 10px; }
.device-ui .hu-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.device-ui .hu-stats > div { flex: 1; min-width: 60px; background: #fff; border-radius: 20px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.device-ui .hu-stats b { font-size: 17px; font-variant-numeric: tabular-nums; } .device-ui .hu-stats small { font-size: 11px; font-weight: 600; line-height: 1.3; }
.device-ui .hu-stats .ok { background: var(--okS); color: var(--ok); } .device-ui .hu-stats .bad { background: var(--badS); color: var(--bad); } .device-ui .hu-stats .warn { background: var(--warnS); color: var(--warn); }
.device-ui .hu-ra { margin-bottom: 10px; height: 40px; }
.device-ui .hu-cls { max-height: none; }
.device-ui .hu-cr { padding: 10px 16px; } .device-ui .hu-cr small { font-size: 12px; }
.device-ui .hu-ci { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ok); flex: none; } .device-ui .hu-ci svg { width: 24px; height: 24px; }
.device-ui .hu-ci i { width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid var(--faint); }
.device-ui .hu-rm { color: var(--brand); font-size: 13px; }
.device-ui .hu-mng { cursor: pointer; }
.device-ui .hu-ol { display: flex; flex-direction: column; gap: 3px; } .device-ui .hu-ol small { color: var(--muted); }
.device-ui .hu-cov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.device-ui .hu-np { margin: 0 4px 8px; font-size: 13.5px; }
.device-ui .hu-desc { font-size: 13.5px; margin: 0 4px 10px; }
.device-ui .hu-sd { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.device-ui .hu-sdh { display: flex; align-items: center; gap: 12px; } .device-ui .hu-sdh > div { flex: 1; min-width: 0; }
.device-ui .hu-sdh b { display: block; font-weight: 600; } .device-ui .hu-sdh small { color: var(--muted); font-size: 12px; }
.device-ui .hu-sdm { display: flex; align-items: center; gap: 8px; } .device-ui .hu-sdm b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.device-ui .hu-big { display: block; font-size: 17px; }
.device-ui .hu-wrap { flex-wrap: wrap; gap: 8px; }
.device-ui .hu-times { margin-top: 4px; } .device-ui .hu-times > div { flex: 1; } .device-ui .hu-times .field { justify-content: flex-start; }

/* leave */
.device-ui .hu-lt { flex: none; padding: 4px 16px 6px; display: flex; flex-direction: column; gap: 6px; }
.device-ui .hu-lt .seg3 { margin: 0; }
.device-ui .hu-flt { margin-top: 0; } .device-ui .hu-flt .field { margin-bottom: 8px; font-size: 13.5px; } .device-ui .hu-flt .field svg { width: 16px; height: 16px; color: var(--muted); }
.device-ui .hu-lc { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; cursor: pointer; }
.device-ui .hu-lc .two { margin-top: 4px; }
.device-ui .hu-lr { font-size: 13.5px; }
.device-ui .hu-lcard { display: flex; flex-direction: column; gap: 2px; }
.device-ui .hu-il { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 13.5px; }
.device-ui .hu-il > span { color: var(--muted); flex: none; } .device-ui .hu-il > b { font-weight: 600; text-align: left; }
.device-ui .hu-rn { margin: 4px 0 0; font-size: 13.5px; }
.device-ui .hu-affected .pill { font-size: 12px; }
.device-ui .hu-lact { margin-top: 16px; }
.device-ui .btn.hu-danger { background: var(--bad); color: #fff; }
.device-ui .hu-note { cursor: text; }

/* a simple system alert (RN Alert) */
.device-ui .hu-albg { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, .3); }
.device-ui .hu-alert { position: absolute; z-index: 8; left: 40px; right: 40px; top: 42%; background: #fff; border-radius: 20px; padding: 20px 18px 8px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.device-ui .hu-alert b { display: block; font-size: 16px; margin-bottom: 12px; }
.device-ui .hu-alert button { width: 100%; padding: 12px; color: var(--brand); font-weight: 700; border-top: 1px solid var(--border); text-align: center; }
