:root{--bg: #f4f7fb;--card: #fff;--line: #e6ebf2;--text: #2c3340;--muted: #8b95a5;--blue: #2f6bff;--blue-dark: #1d4ed8;--blue-soft: #e8f1ff;--head: #d7ebf8;--green: #1f9d55;--gold: #f5b400;--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);--sidebar: 252px;--header: 64px;font-family:Inter,Segoe UI,sans-serif;color:var(--text);font-size:13px}*{box-sizing:border-box}html,body,#root{margin:0;height:100%;background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.app{min-height:100%;display:flex;flex-direction:column}.topbar{height:var(--header);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 12px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;min-width:240px}.brand svg{width:42px;height:42px}.brand-text{display:flex;flex-direction:column;line-height:1.05}.brand-text .ar{font-family:Noto Naskh Arabic,serif;font-size:15px;font-weight:700;color:#1f2937}.brand-text .en{font-size:12px;letter-spacing:.08em;font-weight:700;color:#3a4250}.top-actions{display:flex;align-items:center;gap:10px}.fav{background:none;border:0;color:#e0a100;font-weight:600;display:flex;gap:6px;align-items:center}.global-search{width:230px;height:34px;border:1px solid #e3e8ef;border-radius:6px;padding:0 10px 0 32px;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") 8px 50% no-repeat}.icon-btn{width:32px;height:32px;border-radius:8px;border:1px solid #e7edf4;background:#fff;display:grid;place-items:center;color:#64748b}.avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(180deg,#f6d7b0,#e7b48a);border:1px solid #f0d2b4}.frame{display:flex;min-height:calc(100vh - var(--header))}.sidebar{width:var(--sidebar);background:#fff;border-right:1px solid var(--line);padding:12px 10px 24px;flex:0 0 var(--sidebar)}.menu-search{width:100%;height:34px;border:1px solid #e5eaf1;border-radius:6px;padding:0 10px 0 32px;margin-bottom:8px;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") 8px 50% no-repeat}.nav-item,.nav-parent{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:6px;color:#4b5568;font-weight:500}.nav-item.active,.nav-parent.open{background:#eef4ff;color:#2563eb}.nav-children{padding:2px 0 6px 22px}.nav-children a{display:block;padding:6px 10px;border-radius:6px;color:#4b5568}.nav-children a.active{background:#e8f1ff;color:#1d4ed8;font-weight:600}.chev{margin-left:auto;color:#98a2b3;font-size:10px}.main{flex:1;padding:16px 18px 28px;min-width:0}.card{background:var(--card);border:1px solid #edf1f6;border-radius:10px;box-shadow:var(--shadow);padding:16px 16px 10px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.page-head h1{font-size:22px;margin:0;font-weight:650;letter-spacing:-.02em}.crumb{color:var(--muted);font-size:12px;margin-bottom:4px}.crumb b{color:#334155;font-weight:600}.filters{display:flex;flex-wrap:wrap;gap:12px 16px;margin-bottom:8px;align-items:end}.field{display:flex;flex-direction:column;gap:4px;min-width:140px}.field.grow{flex:1;min-width:180px}.field label{color:#667085;font-size:12px}.field input,.field select,.field textarea{height:34px;border:1px solid #e4e9f0;border-radius:6px;padding:0 10px;background:#fff;outline:none}.field textarea{height:68px;padding:8px 10px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #2f6bff1f}.btn{height:34px;border-radius:6px;padding:0 12px;border:1px solid transparent;display:inline-flex;align-items:center;gap:6px;font-weight:600}.btn.green{background:#fff;color:var(--green);border-color:#8ddead}.btn.blue{background:var(--blue);color:#fff}.btn.ghost{background:#fff;border-color:#e4e9f0;color:#475569}.btn.red{background:#e11d48;color:#fff}.btn.navy{background:#2563eb;color:#fff}.reset{height:30px}.table-wrap{overflow:auto;margin-top:8px}table.data{width:100%;border-collapse:collapse;min-width:760px}table.data th{background:var(--head);text-align:left;font-weight:650;padding:10px 12px;color:#334155;white-space:nowrap}table.data td{padding:10px 12px;border-bottom:1px solid #f0f3f7;white-space:nowrap}table.data tbody tr:hover{background:#f8fbff}table.data a.name{color:#2563eb;font-weight:600}.gear{width:28px;height:26px;border:0;border-radius:4px;background:#3b82f6;color:#fff;display:grid;place-items:center}.stars{letter-spacing:1px;color:#f5b400;font-size:14px}.stars .off{color:#e5e7eb}.pager{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 6px;color:#64748b}.pages{display:flex;gap:4px}.pages button{min-width:28px;height:28px;border-radius:6px;border:1px solid #e5eaf1;background:#fff}.pages button.on{background:var(--blue);color:#fff;border-color:var(--blue)}.footer-note{text-align:center;color:#94a3b8;font-size:12px;padding:18px 0 6px}.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:650}.badge.green{background:#e8f8ef;color:#15803d}.badge.blue{background:#e8f1ff;color:#1d4ed8}.check{width:16px;height:16px}.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow:auto}.tabs button{background:none;border:0;padding:10px 2px 12px;color:#64748b;white-space:nowrap}.tabs button.on{color:var(--blue);border-bottom:2px solid var(--blue);font-weight:650}.info-grid{display:grid;grid-template-columns:180px 1fr 180px 1fr;gap:14px 18px;padding:8px 8px 18px}.info-grid .k{color:#94a3b8}.info-grid .v{font-weight:600}.info-grid input,.info-grid select,table.data input{height:34px;width:100%;max-width:320px;border:1px solid #e4e9f0;border-radius:6px;padding:0 10px;background:#fff;font-weight:500}.settings-list{display:flex;flex-direction:column;gap:12px;padding:8px}.setting{display:flex;gap:10px;align-items:center}.dot{width:16px;height:16px;border-radius:50%;border:2px solid #cbd5e1;display:inline-grid;place-items:center;background:#fff}.dot.on{border-color:#60a5fa}.dot.on:after{content:"";width:8px;height:8px;border-radius:50%;background:#3b82f6}.detail-head{display:flex;justify-content:space-between;align-items:flex-start}.actions-row{display:flex;gap:8px}.panel{border:1px solid #d9c7f5;border-radius:8px;padding:12px;margin-bottom:12px}.panel h3{margin:0 0 10px;font-size:14px}.panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}.range{display:flex;gap:6px;align-items:center}.range input{width:100%}.checks{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.empty{text-align:center;color:#94a3b8;padding:28px 8px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.kpi{background:#fff;border:1px solid #edf1f6;border-radius:10px;padding:14px 16px;box-shadow:var(--shadow)}.kpi span{color:#64748b;font-size:12px}.kpi strong{display:block;font-size:26px;margin-top:4px}.subtabs{display:flex;gap:18px;margin:8px 0 10px}.subtabs button{background:none;border:0;color:#64748b;padding:6px 0}.subtabs button.on{color:var(--blue);font-weight:700;border-bottom:2px solid var(--blue)}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;display:grid;place-items:center;z-index:40}.modal{width:min(560px,calc(100vw - 32px));background:#fff;border-radius:10px;padding:16px;box-shadow:var(--shadow);max-height:calc(100vh - 48px);overflow:auto}.modal.wide{width:min(1080px,calc(100vw - 32px))}.allot-grid input{width:54px;height:28px;text-align:center;padding:0}.rate-head{display:flex;justify-content:space-between;align-items:end;gap:16px}.rate-head .field{min-width:280px}.rate-box{border:1px solid #e6ebf2;border-radius:10px;padding:14px;margin-top:16px;background:#f8fafc}.rate-box h3{margin:0 0 10px}.copy-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0}.switch{border:0;background:transparent;display:inline-flex;align-items:center;gap:8px;color:#16a34a;font-weight:650}.switch i{width:36px;height:20px;border-radius:99px;background:#e2e8f0;position:relative;display:inline-block}.switch i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff}.switch.on i{background:#22c55e}.switch.on i:after{left:18px}.muted{color:#94a3b8;font-size:10px;font-weight:500}.allot-grid td input+input{margin-top:4px}.modal h2{margin:0 0 12px;font-size:18px}.modal .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toast{position:fixed;right:16px;bottom:16px;background:#0f172a;color:#fff;padding:10px 14px;border-radius:8px;z-index:50}.menu-wrap{position:relative;display:inline-block}.menu{position:absolute;z-index:30;top:30px;left:0;min-width:148px;background:#fff;border:1px solid #e6ebf2;border-radius:8px;box-shadow:0 8px 24px #0f172a1f;padding:4px}.menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 10px;border-radius:6px}.menu button:hover{background:#eef4ff;color:#1d4ed8}.date-field{position:relative}.date-field>button.date-btn{height:34px;width:100%;min-width:132px;text-align:left;border:1px solid #e4e9f0;border-radius:6px;background:#fff;padding:0 10px}.calendar{position:absolute;z-index:40;top:38px;left:0;width:240px;background:#fff;border:1px solid #e6ebf2;border-radius:10px;box-shadow:0 12px 32px #0f172a24;padding:10px}.calendar header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:650}.calendar header button{border:0;background:#f4f7fb;border-radius:6px;width:28px;height:28px}.calendar .grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.calendar .dow{color:#94a3b8;font-size:11px;padding:4px 0}.calendar .day{border:0;background:transparent;border-radius:6px;height:28px}.calendar .day:hover{background:#eef4ff}.calendar .day.on{background:#2f6bff;color:#fff}.calendar .day.muted{color:#cbd5e1}.line-add{margin:8px 0}.source-pill{font-size:11px;color:#64748b;background:#f1f5f9;border-radius:999px;padding:2px 8px}@media(max-width:1100px){.info-grid,.panel-grid,.kpis{grid-template-columns:1fr 1fr}.sidebar{display:none}}
