:root{--bg: #0f1115;--surface: #171a21;--surface-2: #1f232c;--text: #f2f4f8;--muted: #9aa4b2;--accent: #4f8cff;--ok: #34c77b;--warn: #f0b429;--danger: #f2544b;--radius: 14px;font-family:Segoe UI,Noto Kufi Arabic,Tahoma,system-ui,sans-serif}@media (prefers-color-scheme: light){:root{--bg: #f5f7fb;--surface: #ffffff;--surface-2: #eef1f7;--text: #131722;--muted: #5a6478}}*{box-sizing:border-box}body{margin:0;direction:inherit;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}.app{max-width:720px;margin:0 auto;padding:12px 12px 84px}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.header h1{font-size:1.1rem;margin:0}.badge{font-size:.72rem;padding:3px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.badge.ok{color:var(--ok)}.badge.warn{color:var(--warn)}.badge.danger{color:var(--danger)}.card{background:var(--surface);border-radius:var(--radius);padding:14px;margin-bottom:12px}.card h2{font-size:.95rem;margin:0 0 10px}.row{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid var(--surface-2)}.row:last-child{border-bottom:0}.muted{color:var(--muted);font-size:.82rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.stat{background:var(--surface-2);border-radius:12px;padding:12px;text-align:center}.stat b{display:block;font-size:1.4rem}button,.btn{font:inherit;border:0;border-radius:10px;padding:10px 14px;background:var(--accent);color:#fff;cursor:pointer;width:100%}button.secondary{background:var(--surface-2);color:var(--text)}button.danger{background:var(--danger)}button:disabled{opacity:.55;cursor:not-allowed}input,select,textarea{font:inherit;width:100%;padding:10px;border-radius:10px;border:1px solid var(--surface-2);background:var(--surface-2);color:var(--text);direction:inherit}label{display:block;margin:10px 0 4px;font-size:.85rem;color:var(--muted)}.nav{position:fixed;inset-inline:0;bottom:0;display:flex;justify-content:space-around;background:var(--surface);padding:8px 4px;border-top:1px solid var(--surface-2)}.nav a{color:var(--muted);text-decoration:none;font-size:.72rem;text-align:center}.nav a.active{color:var(--accent)}.alert{padding:10px 12px;border-radius:10px;margin-bottom:10px;font-size:.85rem}.alert.error{background:#f2544b24;color:var(--danger)}.alert.info{background:#4f8cff24;color:var(--accent)}.alert.warn{background:#f0b42924;color:var(--warn)}.checkbox{display:flex;align-items:center;gap:8px;margin:8px 0}.checkbox input{width:auto}.spinner{text-align:center;color:var(--muted);padding:24px}.list-empty{text-align:center;color:var(--muted);padding:20px}progress{width:100%}:root,:root[data-theme=dark]{--bg: #0f1115;--surface: #171a21;--surface-2: #1f232c;--surface-3: #252a34;--line: #252a34;--text: #f2f4f8;--muted: #9aa4b2;--accent: #4f8cff;--accent-ink: #08152b;--accent-soft: rgba(79, 140, 255, .14);--ok: #34c77b;--warn: #f0b429;--danger: #f2544b;--ig: #4f8cff;--tt: #c9812f;--r: 14px;--shadow: 0 1px 2px rgba(0, 0, 0, .35)}:root[data-theme=light]{--bg: #f4f6fa;--surface: #ffffff;--surface-2: #eef1f7;--surface-3: #e4e9f2;--line: #dfe4ee;--text: #131722;--muted: #5a6478;--accent: #2f6fe4;--accent-ink: #ffffff;--accent-soft: rgba(47, 111, 228, .1);--ok: #12946a;--warn: #9c6f08;--danger: #cf3b32;--ig: #2f6fe4;--tt: #a8681f;--shadow: 0 1px 2px rgba(16, 24, 40, .06)}body{margin:0;background:var(--bg);color:var(--text);font-family:Noto Kufi Arabic,Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}.shell{display:flex;min-height:100vh}.shell__nav{width:248px;flex:0 0 248px;background:var(--surface);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;padding:20px 14px;position:sticky;top:0;height:100vh}.shell__brand{display:flex;align-items:center;gap:10px;padding:0 8px 22px}.shell__mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#4f8cff,#7c5cff);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;color:#fff}.shell__wordmark{font-size:16px;font-weight:700;line-height:1.15}.shell__wordmark small{display:block;font-size:9.5px;letter-spacing:.16em;color:var(--muted);font-weight:600}.navlink{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;color:var(--muted);text-decoration:none;font-weight:500}.navlink:hover{background:var(--surface-2);color:var(--text)}.navlink.is-active{background:var(--accent-soft);color:var(--accent);font-weight:600}.navlink svg{flex:0 0 19px}.navlink__count{margin-inline-start:auto;font-size:11px;color:var(--muted)}.shell__spacer{flex-grow:1}.shell__user{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:var(--surface-2)}.shell__avatar{width:30px;height:30px;border-radius:50%;background:var(--surface-3);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--muted)}.shell__user b{font-size:12.5px;font-weight:600;display:block}.shell__user span{font-size:11px;color:var(--muted)}.shell__main{flex-grow:1;min-width:0;display:flex;flex-direction:column}.shell__top{height:64px;flex:0 0 64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;background:var(--bg);z-index:5}.shell__title h1{font-size:16px;font-weight:700;margin:0}.shell__title p{font-size:11.5px;color:var(--muted);margin:2px 0 0}.shell__tools{display:flex;align-items:center;gap:10px}.shell__body{padding:20px 26px 34px;display:flex;flex-direction:column;gap:16px}.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.seg button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;padding:7px 11px;cursor:pointer}.seg button.is-on{background:var(--accent-soft);color:var(--accent)}.chip{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 12px;font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:8px}.btn-primary{background:var(--accent);color:var(--accent-ink);border:0;border-radius:10px;padding:9px 16px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--shadow);min-width:0;display:flex;flex-direction:column}.card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.card__head h2{font-size:13.5px;font-weight:700;margin:0}.card__head p{font-size:11px;color:var(--muted);margin:2px 0 0}.legend{display:flex;align-items:center;gap:14px;font-size:11.5px;color:var(--muted)}.legend i{width:16px;height:3px;border-radius:2px;display:inline-block;margin-inline-end:6px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kpi__label{font-size:11.5px;color:var(--muted);margin-bottom:6px}.kpi__row{display:flex;align-items:baseline;gap:8px}.kpi__value{font-size:27px;font-weight:700;line-height:1;letter-spacing:-.02em}.kpi__note{font-size:11.5px;color:var(--muted)}.kpi__bar{margin-top:11px;height:5px;border-radius:3px;background:var(--surface-2);overflow:hidden}.kpi__bar i{display:block;height:100%;background:var(--accent)}.kpi__legend{margin-top:11px;display:flex;align-items:center;gap:14px;font-size:11.5px;color:var(--muted)}.dot{width:9px;height:9px;border-radius:2px;display:inline-block;margin-inline-end:6px}.grid-main{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:14px}.grid-half{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.queue{display:flex;flex-direction:column;gap:9px}.qrow{display:flex;align-items:center;gap:11px}.qthumb{width:42px;height:56px;border-radius:8px;flex:0 0 42px;overflow:hidden;background:var(--surface-2)}.qthumb img{width:100%;height:100%;object-fit:cover;display:block}.qrow__body{flex-grow:1;min-width:0}.qrow__top{font-size:12.5px;font-weight:600}.qrow__sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.num{font-variant-numeric:tabular-nums}.statusrow{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px}.statusrow .k{display:flex;align-items:center;gap:9px;min-width:0}.statusrow .v{font-size:11.5px;color:var(--muted);white-space:nowrap}.pill{width:8px;height:8px;border-radius:50%;flex:0 0 8px;display:inline-block}.pill--ok{background:var(--ok)}.pill--warn{background:var(--warn)}.pill--off{background:var(--danger)}.foot{border-top:1px solid var(--line);margin-top:auto;padding-top:11px;display:flex;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--muted)}.empty{color:var(--muted);font-size:12px;padding:22px 0;text-align:center}.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.cal__h{font-size:10.5px;color:var(--muted);text-align:center;padding-bottom:2px}.cal__c{border:1px solid var(--line);border-radius:9px;padding:7px 8px;min-height:56px;display:flex;flex-direction:column;gap:5px;background:var(--surface-2)}.cal__c.is-blank{background:transparent;border:0}.cal__c.is-empty{background:transparent;border-style:dashed}.cal__c.is-today{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.cal__d{font-size:11px;color:var(--muted)}.cal__n{font-size:15px;font-weight:700;line-height:1}.cal__dots{display:flex;gap:3px;flex-wrap:wrap;margin-top:auto}.cal__dots i{width:6px;height:6px;border-radius:2px;display:block}.hours{display:flex;flex-direction:column;gap:8px}.hrow{display:grid;grid-template-columns:46px 1fr 30px;align-items:center;gap:10px;font-size:11.5px}.hrow .t{color:var(--muted)}.hrow .n{color:var(--muted);text-align:end}.hbar{height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden;display:flex}.hbar i{display:block;height:100%}.shell__tools>*{flex:0 0 auto}.seg button{white-space:nowrap}.btn-primary,.seg button{width:auto}.shell__wordmark{line-height:1.45}.shell__wordmark small{margin-top:5px;line-height:1.2}.shell__wordmark{line-height:1.2}.shell__wordmark small{margin-top:1px}:root[lang=ar] .shell__wordmark{line-height:1.45}:root[lang=ar] .shell__wordmark small{margin-top:5px}
