@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Tajawal:wght@400;500;600;700;800&display=swap');

:root{--green:#176b43;--green-strong:#0f5132;--green-soft:#e8f4ed;--green-pale:#f3f8f5;--nav:#102d24;--ink:#14251e;--muted:#68776f;--line:#dfe7e2;--line-strong:#ced9d3;--bg:#f3f6f4;--panel:#fff;--amber:#d89312;--amber-soft:#fff4d9;--danger:#bd3f3a;--danger-soft:#fff0ef;--shadow-sm:0 1px 2px rgba(15,45,35,.04),0 5px 18px rgba(15,45,35,.04);--shadow-md:0 14px 36px rgba(15,45,35,.12);--radius:14px}
html{font-size:15px;scroll-behavior:smooth}body{background:var(--bg);color:var(--ink);font:500 14px/1.55 Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:-.01em}html[dir=rtl] body{font-family:Tajawal,"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:0}button,input,select,textarea{font:inherit}a,button{transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}:focus-visible{outline:3px solid rgba(23,107,67,.2);outline-offset:2px}::selection{background:#cfe8da;color:#102d24;text-shadow:none}

/* Navigation */
.sidebar{width:252px;padding:20px 13px 14px;background:linear-gradient(180deg,var(--nav),#0d271f);border:0;color:#fff;overflow:hidden}.sidebar:before{content:"";position:absolute;inset:-120px -170px auto auto;width:310px;height:310px;border:1px solid rgba(255,255,255,.05);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.014);pointer-events:none}.brand{position:relative;z-index:1;padding:0 9px 18px;gap:11px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#2c9a66,#167248);border:1px solid rgba(255,255,255,.15);box-shadow:0 8px 20px rgba(0,0,0,.2);color:#fff}.brand-mark svg{width:22px;height:22px;display:block}.brand strong{font-size:15px;letter-spacing:.07em;color:#fff}.brand span{margin-top:2px;color:#99b9aa;font-size:8px;letter-spacing:.15em;font-weight:800}.sidebar nav{position:relative;z-index:1;padding:3px 2px 8px;scrollbar-width:thin;scrollbar-color:#36564a transparent}.nav-group{margin:17px 10px 6px;color:#78998b;font-size:8px;font-weight:800;letter-spacing:.16em}.sidebar nav a{min-height:40px;height:auto;margin:2px 0;padding:7px 10px;gap:10px;border-radius:9px;color:#c3d5cd;font-size:12px;font-weight:600;line-height:1.3}.sidebar nav a:hover{background:rgba(255,255,255,.065);color:#fff;transform:translateX(2px)}.sidebar nav a.active{background:linear-gradient(90deg,#257b53,#216c49);color:#fff;box-shadow:0 7px 18px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.08);font-weight:750}.nav-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.065);color:#a8c8b9;font-size:14px;flex:0 0 auto}.sidebar nav a.active .nav-icon{background:rgba(255,255,255,.14);color:#fff}.sidebar nav a em{min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#d9a32e;color:#291e07;font-size:9px}.operations-state{position:relative;z-index:1;margin:8px 3px 0;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.04);display:flex;align-items:center;gap:9px}.operations-state>i{width:8px;height:8px;border-radius:50%;background:#51cf83;box-shadow:0 0 0 4px rgba(81,207,131,.12)}.operations-state b,.operations-state small{display:block}.operations-state b{font-size:10px;color:#edf7f2}.operations-state small{margin-top:1px;font-size:8px;color:#8eb3a2}.profile{position:relative;z-index:1;margin-top:10px;padding:13px 5px 0;border-top:1px solid rgba(255,255,255,.09);color:#fff}.avatar{width:34px;height:34px;background:#dff2e8;color:var(--green-strong);font-size:10px}.profile b{font-size:10px}.profile small{font-size:8px;color:#8eb3a2}.profile>a{color:#a9c8ba}.profile>a:hover{color:#fff}.mobile-close{color:#fff}.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(6,23,17,.54);backdrop-filter:blur(2px);z-index:45}

/* Shell and top bar */
.main{margin-left:252px;min-width:0}.topbar{height:66px;padding:0 24px;background:rgba(255,255,255,.92);border-color:var(--line);backdrop-filter:blur(14px);gap:12px}.menu{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.global-search{width:min(470px,39vw);height:40px;padding:0 12px;border-color:var(--line);border-radius:10px;background:#f7f9f8;color:#7a8981}.global-search:focus-within{background:#fff;border-color:#72a98d;box-shadow:0 0 0 3px rgba(23,107,67,.1)}.global-search input{font-size:12px;color:var(--ink)}.global-search kbd{border-color:var(--line);border-radius:5px;background:#fff;color:#839089;font:600 8px/1 Manrope,sans-serif}.branch-filter{min-width:185px;height:40px;padding:0 9px;display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green)}.branch-filter select{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:11px;font-weight:650}.top-actions{gap:10px}.sound-toggle{width:36px;height:36px;border-color:var(--line);border-radius:10px;background:#fff;font-size:14px}.sound-toggle:hover,.sound-toggle.enabled{background:var(--green-soft);border-color:#bdd9c9}.api-status{padding:7px 9px;border-radius:999px;background:var(--green-soft);color:var(--green-strong);font-size:9px}.api-status i{width:6px;height:6px;margin-right:5px;box-shadow:none}.language-switch{padding:7px 9px;border-color:var(--line);border-radius:9px;color:var(--green);font-size:9px}.language-switch:hover{background:var(--green-soft);border-color:#bdd9c9}.today{font-size:8px}.today b{font-size:10px}.content{max-width:1600px;padding:24px 26px 40px}.page-head{align-items:center;margin-bottom:18px}.eyebrow{margin-bottom:5px!important;color:var(--green)!important;font-size:8px!important;font-weight:800;letter-spacing:.14em}.page-head h1{font-size:25px;line-height:1.2;letter-spacing:-.035em}.page-head p{max-width:740px;margin-top:6px;font-size:11px;line-height:1.55}

/* Shared controls */
.primary,.outline,.danger{min-height:38px;padding:8px 12px;border-radius:9px;font-size:11px;font-weight:750}.primary{background:var(--green);border-color:var(--green);box-shadow:0 5px 13px rgba(23,107,67,.13)}.primary:hover{background:var(--green-strong);border-color:var(--green-strong);box-shadow:0 7px 18px rgba(23,107,67,.2);transform:translateY(-1px)}.outline{background:#fff;border-color:var(--line-strong);color:#3c4e45}.outline:hover{background:var(--green-pale);border-color:#afcbbc;color:var(--green-strong)}.danger{background:var(--danger-soft);border-color:#f0c5c2;color:var(--danger)}.danger:hover{background:#ffe6e4;border-color:#e8aaa6}.message{padding:11px 13px;border:1px solid transparent;border-radius:10px;font-size:11px}.message.success{border-color:#c6e2d1}.message.error{border-color:#f1c7c4}.panel,.kpis article{border-color:var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow-sm)}.panel{padding:17px}.panel-head{margin-bottom:14px;gap:12px}.panel h2{font-size:14px;line-height:1.35}.panel-head p{font-size:9px;line-height:1.5}.panel-head a{color:var(--green);font-size:9px;font-weight:750;text-decoration:none}.panel-head a:hover{text-decoration:underline}.count-badge{padding:4px 8px;background:var(--green-soft);color:var(--green-strong);font-size:9px}

/* Dashboard */
.dashboard-kpis{gap:12px}.dashboard-kpis article{position:relative;min-height:112px;padding:16px;align-items:flex-start;overflow:hidden}.dashboard-kpis article:after{content:"";position:absolute;right:-28px;bottom:-38px;width:100px;height:100px;border-radius:50%;background:var(--green-soft);opacity:.65}.dashboard-kpis article:nth-child(3):after,.dashboard-kpis article:nth-child(4):after{background:var(--amber-soft)}.kpi-icon{position:relative;z-index:1;width:40px;height:40px;border-radius:11px;font-size:16px}.kpi-icon.green{background:var(--green-soft);color:var(--green)}.kpi-icon.gold{background:var(--amber-soft);color:#9b6600}.kpis article>div{position:relative;z-index:1;min-width:0}.kpis small{font-size:10px}.kpis b{margin:2px 0 0;font-size:25px;line-height:1.15;letter-spacing:-.03em}.kpis em{font-size:8px}.dashboard-board{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr) minmax(240px,.7fr);gap:12px;margin-top:12px}.journey-panel{grid-column:1/2}.branch-performance{grid-column:2}.attention-panel{grid-column:3}.dashboard-board>.latest-panel{grid-column:1/3}.dashboard-board>.quick-panel{grid-column:3}.journey{padding:14px 4px 2px}.journey>div{min-width:66px}.journey span{width:40px;height:40px;margin-bottom:7px;background:var(--green-pale);font-size:15px}.journey .done span{background:var(--green);box-shadow:0 7px 16px rgba(23,107,67,.2)}.journey .gold span{border-color:#e5c678;color:#986300}.journey b{font-size:8px}.journey strong{font-family:Manrope,sans-serif;font-size:15px}.journey>i{margin-bottom:29px;background:linear-gradient(90deg,#7cb596,#d8e3dd)}.branch-row{padding:9px 0}.leaf-dot{width:30px;height:30px;background:var(--green-soft);color:var(--green)}.branch-row b,.branch-row strong{font-size:9px}.branch-row small{height:5px;background:#edf1ef}.branch-row small i{background:linear-gradient(90deg,#2d9060,#65b685)}.attention-panel>a,.quick-panel>a{margin:0 -7px;padding:9px 7px;border-radius:9px;border-bottom:0}.attention-panel>a:hover,.quick-panel>a:hover{background:var(--green-pale)}.attention-panel>a>span,.quick-panel>a>span{width:32px;height:32px;border-radius:9px;background:var(--green-soft)}.attention-panel b,.quick-panel b{font-size:9px}.attention-panel small,.quick-panel small{font-size:8px}.attention-panel em{font-size:8px}.mini-empty{padding:28px 12px;color:var(--muted);font-size:9px}

/* Forms and modules */
.module-toolbar{gap:8px;margin-bottom:12px;align-items:center}.module-search{height:40px;border-color:var(--line);background:#fff}.module-search:focus-within{border-color:#72a98d;box-shadow:0 0 0 3px rgba(23,107,67,.09)}.module-search input{font-size:11px}.tabs{gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:auto}.tabs a{padding:8px 11px;border:0;border-radius:7px;white-space:nowrap;font-size:10px}.tabs a:hover{background:var(--green-pale);color:var(--green)}.tabs a.active{background:var(--green-soft);color:var(--green-strong);border:0}.editor-panel{max-width:1120px}.editor-grid{gap:13px}.editor-grid label{gap:6px;color:#33473d;font-size:10px}.editor-grid label small{font-size:8px}.editor-grid input,.editor-grid select,.editor-grid textarea{border-color:var(--line-strong);border-radius:9px;background:#fff;font-size:11px}.editor-grid input,.editor-grid select{height:42px}.editor-grid textarea{min-height:86px}.editor-grid input:hover,.editor-grid select:hover,.editor-grid textarea:hover{border-color:#aabdb3}.editor-grid input:focus,.editor-grid select:focus,.editor-grid textarea:focus{border-color:#5c9b7a;box-shadow:0 0 0 3px rgba(23,107,67,.1)}.editor-grid input[type=file]{padding:8px;background:var(--green-pale)}.editor-grid .check{min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--green-pale)}.form-actions{padding-top:4px}.import-help{border-color:#cad9d1!important;border-radius:10px!important;background:var(--green-pale)!important}.import-help b{font-size:10px}.import-help p{font-size:9px}details summary{font-size:10px}

/* Data tables */
.table-panel{margin-top:12px}.table-wrap{border:1px solid var(--line);border-radius:10px;background:#fff;scrollbar-width:thin;scrollbar-color:#b9c9c0 #f4f7f5}table{min-width:760px;font-size:10px}th,td{padding:10px 11px;border-color:#e8eeea;font-size:10px}th{position:sticky;top:0;z-index:2;background:#f5f8f6;color:#66776e;font-size:8px;font-weight:800;letter-spacing:.055em}tbody tr{transition:background-color .12s}tbody tr:nth-child(even){background:#fbfcfb}tbody tr:hover{background:#f1f7f3}.table-thumb{width:50px;height:50px;border-radius:9px}.status{padding:4px 7px;border-radius:999px;font-size:8px;white-space:nowrap}.status.active{background:#e5f4eb;color:#176b43}.status.warning{background:var(--amber-soft);color:#8b5a00}.status.paused{background:#eff1f0;color:#637168}.row-actions{gap:5px;flex-wrap:wrap}.row-actions .outline,.row-actions .danger{min-height:32px;padding:6px 9px;font-size:9px}

/* Content and workflow cards */
.banner-grid{gap:12px}.banner-card{border-color:var(--line);border-radius:12px;box-shadow:var(--shadow-sm);transition:transform .16s,box-shadow .16s}.banner-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.banner-image{height:180px;background:#edf4f0}.banner-title h3{font-size:12px}.banner-title p{font-size:9px}.banner-meta{font-size:8px}.banner-actions a,.banner-actions button{font-size:9px}.offer-no-image{display:grid;place-items:center;width:50px;height:50px;border-radius:9px;background:var(--green-soft);color:var(--green);font-size:20px}.empty,.planned{min-height:280px}.empty>span,.planned>span{font-size:38px}.empty p,.planned p{font-size:10px}.order-queue{gap:7px}.order-queue>a{grid-template-columns:145px 1fr auto;padding:11px;border-color:var(--line);border-radius:10px;font-size:10px}.order-queue>a:hover{border-color:#8eb7a2;background:var(--green-pale);box-shadow:0 5px 15px rgba(23,107,67,.06)}.order-header h2{font-size:19px}.order-header p{font-size:10px}.status-form select,.pick-actions input{height:38px;border-color:var(--line-strong)}.pick-list{gap:8px}.pick-card{padding:11px;border-color:var(--line);border-radius:12px;grid-template-columns:70px 1fr auto}.pick-card>img{width:70px;height:70px;border-radius:9px}.pick-info h3{font-size:11px}.pick-info p{font-size:9px}.item-note{font-size:8px}.alternative-grid label{font-size:9px}.setting-row label{font-size:9px}

/* Coverage */
.coverage-shell{gap:12px}.coverage-map-panel{padding:0}.coverage-map-head{padding:14px 16px 11px}.zone-legend{font-size:8px}.coverage-map{height:500px;background:#eaf0ec}.coverage-summary{gap:9px;padding:12px}.coverage-summary article{border-color:var(--line);border-radius:9px}.coverage-summary small{font-size:8px}.coverage-summary b{font-family:Manrope,sans-serif;font-size:17px}.branch-cards,.zone-list{gap:8px}.branch-card,.zone-card{border-color:var(--line);border-radius:10px}.branch-card h3{font-size:10px}.branch-card p{font-size:8px}.branch-meta span{font-size:7px}.zone-card b{font-size:9px}.zone-card small{font-size:8px}

/* Authentication */
.auth-page{background:radial-gradient(circle at 15% 10%,#2e7a58 0,transparent 28%),linear-gradient(145deg,#0b2a20,#153d30);padding:24px}.login-shell{width:min(980px,100%);min-height:580px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:#fff;box-shadow:0 38px 90px rgba(0,0,0,.32)}.login-brand{padding:54px;background:linear-gradient(150deg,#0f392b,#176b43)}.login-brand:before{content:"";position:absolute;inset:auto auto -180px -170px;width:420px;height:420px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.018)}.leaf-orbit{width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}.login-brand>p{font-size:9px}.login-brand h1{font-size:32px;line-height:1.18}.login-brand>span{font-size:11px;line-height:1.65}.login-card{padding:52px;gap:15px}.login-card img{width:145px;height:72px;border-radius:11px;background:var(--nav)}.login-card small{font-size:8px}.login-card h2{font-size:27px}.login-card p,.login-card label{font-size:11px}.login-card input{height:44px;border-color:var(--line-strong);font-size:12px}.security-note{font-size:8px!important}.auth-language{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.95);font-size:9px}

/* RTL and responsive */
html[dir=rtl] .sidebar{inset:0 0 0 auto;border:0}html[dir=rtl] .main{margin-left:0;margin-right:252px}html[dir=rtl] .sidebar nav a:hover{transform:translateX(-2px)}html[dir=rtl] .branch-filter{margin-left:0;margin-right:auto}html[dir=rtl] .dashboard-kpis article:after{right:auto;left:-28px}html[dir=rtl] .zone-legend i{margin-right:0;margin-left:4px}html[dir=rtl] .api-status i{margin-right:0;margin-left:5px}
@media(max-width:1180px){.dashboard-board{grid-template-columns:1fr 1fr}.journey-panel,.branch-performance,.attention-panel,.dashboard-board>.latest-panel,.dashboard-board>.quick-panel{grid-column:auto}.attention-panel{grid-column:1/3}.coverage-shell{grid-template-columns:1fr}.coverage-map{height:420px}.api-status{display:none}}
@media(max-width:980px){.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.branch-filter{min-width:145px}.language-switch{display:none}}
@media(max-width:820px){.sidebar{width:min(290px,86vw);transform:translateX(-104%);box-shadow:var(--shadow-md);transition:transform .22s ease}.sidebar.open{transform:translateX(0)}.sidebar.open~.sidebar-backdrop{display:block}.mobile-close,.menu{display:grid;place-items:center}.main,html[dir=rtl] .main{margin-left:0;margin-right:0}.topbar{height:auto;min-height:64px;padding:10px 13px;flex-wrap:wrap}.global-search{order:3;width:100%;max-width:none}.branch-filter{margin-left:auto}.content{padding:18px 13px 34px}.dashboard-board{grid-template-columns:1fr}.journey-panel,.branch-performance,.attention-panel,.dashboard-board>.latest-panel,.dashboard-board>.quick-panel{grid-column:1}.coverage-map{height:350px}html[dir=rtl] .sidebar{transform:translateX(104%)}html[dir=rtl] .sidebar.open{transform:translateX(0)}}
@media(max-width:560px){body{font-size:13px}.top-actions .today{display:none}.top-actions{gap:6px}.page-head{align-items:flex-start;gap:12px}.page-head h1{font-size:22px}.page-head p{font-size:10px}.page-head>.primary{white-space:nowrap}.dashboard-kpis{grid-template-columns:1fr 1fr;gap:8px}.dashboard-kpis article{min-height:104px;padding:12px;gap:8px}.kpi-icon{width:34px;height:34px}.kpis b{font-size:21px}.kpis small{font-size:9px}.journey{justify-content:flex-start;gap:5px;overflow-x:auto}.journey>i{min-width:24px}.panel{padding:14px}.panel h2{font-size:13px}.module-toolbar{flex-wrap:wrap}.module-search{min-width:100%;order:3}.editor-grid{grid-template-columns:1fr}.editor-grid .wide{grid-column:1}.banner-grid{grid-template-columns:1fr}.banner-image{height:150px}.order-queue>a{grid-template-columns:1fr}.order-header,.status-form{display:grid}.pick-card{grid-template-columns:56px 1fr}.pick-card>img{width:56px;height:56px}.pick-actions{grid-column:1/-1;flex-wrap:wrap}.alternative-grid{grid-template-columns:1fr}.setting-row{grid-template-columns:1fr}.coverage-summary{grid-template-columns:1fr 1fr}.login-card{padding:30px 22px}.login-card h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{.sidebar,.topbar,.module-toolbar,.row-actions{display:none!important}.main,html[dir=rtl] .main{margin:0}.content{max-width:none;padding:0}.panel{box-shadow:none;break-inside:avoid}}

/* Dashboard KPI navigation */
.dashboard-kpis .kpi-card{position:relative;min-height:112px;padding:16px;display:flex;gap:11px;align-items:flex-start;overflow:hidden;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow-sm)}
.dashboard-kpis .kpi-card:hover{border-color:#a8cbbb;box-shadow:0 10px 24px rgba(15,45,35,.09);transform:translateY(-2px)}
.dashboard-kpis .kpi-card:after{content:"";position:absolute;right:-28px;bottom:-38px;width:100px;height:100px;border-radius:50%;background:var(--green-soft);opacity:.65}
.dashboard-kpis .kpi-card:nth-child(3):after,.dashboard-kpis .kpi-card:nth-child(4):after{background:var(--amber-soft)}
.kpis .kpi-card>div{position:relative;z-index:1;min-width:0}
html[dir=rtl] .dashboard-kpis .kpi-card:after{right:auto;left:-28px}
@media(max-width:560px){.dashboard-kpis .kpi-card{min-height:104px;padding:12px;gap:8px}}
