@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');
:root{--pine:#0d4338;--pine2:#0a382f;--green:#27876c;--lime:#a7ce51;--paper:#f6f8f6;--card:#fff;--line:#e5ece8;--ink:#18392f;--muted:#7b8f87;--orange:#eaa344;--red:#cc6b5a;--blue:#538caf}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Cairo',Tahoma,sans-serif;direction:rtl;font-size:17px;font-weight:400;line-height:1.6}button,input,select,textarea{font-family:inherit;font-size:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a6ce57;outline-offset:2px}.ico{width:20px;height:20px;stroke-width:1.8;display:inline-block;vertical-align:middle;flex:0 0 auto}.app-shell{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,#0b3d32 0%,#09362d 100%);color:#e0f2eb;position:sticky;top:0;align-self:start;height:100vh;padding:19px 13px 24px;display:flex;flex-direction:column;box-shadow:-2px 0 12px #143a3012;z-index:10}.brand-tile{border-radius:17px;background:white;display:flex;align-items:center;justify-content:center;height:112px;padding:12px 22px;margin-bottom:16px}.brand-tile img{max-height:100%;max-width:100%;object-fit:contain}.brand-title{text-align:center;color:#b9d2c8;font-size:13px;border-bottom:1px solid #ffffff19;padding-bottom:15px;margin-bottom:13px}.nav-section{color:#86ab99;font-size:12px;padding:9px 14px 5px;font-weight:700}.nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:11px;min-height:42px;color:#d6e9e2;font-weight:600;border:0;background:transparent;text-align:right;width:100%;transition:.18s}.nav-link .ico{width:19px;height:19px;opacity:.83}.nav-link:hover{background:#ffffff12}.nav-link.active{background:#a9d14d;color:#153e31;font-weight:800}.nav-link.active .ico{opacity:1}.sidebar-footer{margin-top:auto;padding:15px 11px 0;border-top:1px solid #ffffff1e;color:#adc9bd;font-size:12px;line-height:1.8}.sidebar-footer strong{color:white;display:block}.workspace{min-width:0;max-width:1800px;width:100%;margin:auto;padding:21px 28px 18px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.heading h1{font-size:25px;line-height:1.45;margin:0;color:#133c31;letter-spacing:-.4px}.heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;align-items:center;gap:9px}.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;color:#95a49e;padding:10px 12px;min-width:270px}.search-box input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:13px;color:#334a41}.search-box .ico{width:17px;height:17px}.icon-button{background:#fff;border:1px solid var(--line);width:41px;height:41px;border-radius:12px;display:grid;place-items:center;color:#49685d;position:relative}.icon-button .dot{width:7px;height:7px;background:#e18b47;border:2px solid white;border-radius:50%;position:absolute;top:8px;right:8px}.profile{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:12px;padding:5px 10px}.profile .avatar{background:#ebf4e5;color:#368363;border-radius:10px;width:32px;height:32px;display:grid;place-items:center}.profile strong{display:block;font-size:13px}.profile small{display:block;color:var(--muted);font-size:12px}.eyebrow{font-size:13px;color:#b6df7a;font-weight:700}.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#136b4c,#114c40 64%,#0b3d32);border-radius:17px;box-shadow:0 9px 22px #0a48301c;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:white;min-height:168px}.hero::before{content:'';position:absolute;left:-80px;top:-160px;width:430px;height:350px;border:45px solid #ffffff0b;border-radius:50%;z-index:-1}.hero::after{content:'';position:absolute;left:17%;bottom:-110px;width:280px;height:210px;border:1px solid #ffffff26;border-radius:50%;z-index:-1}.hero h2{margin:8px 0 7px;font-size:26px;font-weight:800;letter-spacing:-.25px}.hero p{margin:0;color:#d1e9dc;font-size:14px;max-width:630px;line-height:2}.hero .hero-actions{margin-top:17px;display:flex;flex-wrap:wrap;gap:8px}.btn{border:1px solid transparent;border-radius:10px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-weight:700;font-size:13px;transition:.18s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn .ico{height:17px;width:17px}.btn-orange{background:#eda645;color:#392604}.btn-lime{background:#acd14b;color:#203a1b}.btn-outline{background:#ffffff08;color:white;border-color:#ffffff60}.hero-stamp{border:1px solid #ffffff33;background:#ffffff0c;border-radius:15px;padding:18px 21px;min-width:190px;text-align:center}.hero-stamp .stampicon{width:34px;height:34px;margin-bottom:7px;color:#d4f2c7}.hero-stamp strong{display:block;font-size:17px}.hero-stamp small{display:block;font-size:12px;color:#c1dcd2;margin-top:6px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 11px}.section-title h2{margin:0;font-size:19px;letter-spacing:-.2px}.section-title small{color:var(--muted);font-size:12px}.section-title .rightcap{display:flex;align-items:center;gap:8px}.section-title .dash{width:4px;height:18px;border-radius:3px;background:#8cbd49}.demo-label{display:inline-flex;align-items:center;gap:5px;color:#8b6a30;background:#fff5e5;border:1px solid #f4e4c7;border-radius:24px;padding:5px 10px;font-size:12px;font-weight:700}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:14px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:15px 17px 13px;min-height:114px;box-shadow:0 4px 15px #194b3c06}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#71887d;font-size:12px;font-weight:700;gap:4px}.stat-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:var(--tint);color:var(--tone)}.stat-icon .ico{width:19px;height:19px}.stat-main{font-size:32px;line-height:1.2;font-weight:800;margin:10px 0 4px;color:#1b4538;font-variant-numeric:tabular-nums}.stat small{font-size:12px;color:#80978b}.section-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.88fr);gap:13px;margin-top:17px}.surface{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;box-shadow:0 5px 20px #1b493809;min-width:0}.surface-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:15px}.surface-head h3{margin:0;font-size:17px;color:#143d31}.surface-head p{color:#8c9e95;font-size:12px;margin:4px 0 0}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.selector{border:1px solid #dfe9e3;background:white;color:#466f5f;border-radius:9px;padding:8px 9px;font-size:12px;min-height:34px;max-width:150px}.btn-export{font-size:12px;color:#236f53;background:#e7f4ec;border:1px solid #c9e8d6;padding:8px 10px;border-radius:9px;display:inline-flex;align-items:center;gap:5px}.attendance-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.attendance-table th{font-size:12px;color:#80968b;font-weight:700;text-align:right;padding:9px 7px;white-space:nowrap;border-bottom:1px solid #e9efeb}.attendance-table td{padding:10px 7px;border-bottom:1px solid #f0f3f1;font-size:13px;color:#476758;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-table tbody tr:hover{background:#f9fcf8}.attendance-table tfoot td{background:#f0f7f2;color:#124a35;font-weight:800;border-bottom:0}.branch-name{font-weight:800;color:#234637}.num-present{color:#167a53!important;font-weight:700}.num-absent{color:#c45f4d!important;font-weight:700}.num-leave{color:#b68432!important;font-weight:700}.progress-cell{display:flex;align-items:center;gap:7px;direction:ltr;justify-content:flex-end}.progress-track{height:7px;border-radius:10px;background:#e8eeeb;overflow:hidden;flex:1;min-width:35px;max-width:95px}.progress-fill{height:100%;background:#288a65;border-radius:10px}.progress-fill.warn{background:#efa449}.percent{font-size:12px;font-weight:800;color:#49715d;min-width:34px;text-align:left}.tiny-foot{color:#91a398;font-size:12px;margin-top:11px;display:flex;align-items:center;gap:5px}.overview{display:flex;flex-direction:column}.gauge-row{display:flex;align-items:center;justify-content:center;gap:18px;min-height:190px}.donut{width:152px;height:152px;border-radius:50%;background:conic-gradient(#238c67 0 88%,#e9aa51 88% 94%,#d36d57 94% 100%);display:grid;place-items:center;flex-shrink:0}.donut-inner{background:white;border-radius:50%;width:109px;height:109px;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut-inner strong{font-size:31px;color:#194834;line-height:1.2}.donut-inner span{font-size:12px;color:#8ca095}.legend{display:grid;gap:13px;min-width:103px}.legend-item{display:flex;gap:7px;align-items:center;font-size:12px;color:#678175}.legend-item i{width:9px;height:9px;border-radius:3px;flex-shrink:0}.legend-item strong{color:#244b39}.overview-rows{margin-top:6px;border-top:1px solid #e9efeb}.overview-line{display:flex;align-items:center;justify-content:space-between;padding:11px 1px;border-bottom:1px solid #eef2ef;color:#7f9688;font-size:13px}.overview-line strong{font-size:13px;color:#24634a}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{background:white;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:13px;padding:17px 17px 14px;text-align:right;min-height:161px;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;align-items:start}.module-card:hover{transform:translateY(-3px);box-shadow:0 9px 25px #14493418}.module-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--tint);color:var(--accent);margin-bottom:10px}.module-icon .ico{width:22px;height:22px}.module-card h3{margin:0 0 6px;font-size:16px;color:#143d31}.module-card p{margin:0;color:#8b9c93;font-size:12px;line-height:1.85;min-height:35px}.module-cta{color:var(--accent);font-weight:800;font-size:13px;margin-top:12px;display:flex;gap:5px;align-items:center}.module-cta .ico{width:15px;height:15px}.lower-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr);gap:12px;margin-top:16px}.approval-list{display:grid;gap:2px}.approval-item{display:grid;grid-template-columns:1.5fr 1fr .95fr auto;align-items:center;gap:8px;border-bottom:1px solid #edf2ee;padding:12px 4px;font-size:12px;color:#456558}.approval-item:last-child{border-bottom:0}.approval-item .request{font-weight:700;color:#204637}.tag{border-radius:30px;padding:5px 9px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;width:max-content;font-size:11px;font-weight:800}.tag.amber{color:#995f22;background:#fff1d9}.tag.green{color:#237453;background:#e7f4ed}.tag.red{color:#a84c39;background:#fae5df}.tag.gray{color:#597b6c;background:#eaf1ec}.link-action{border:0;color:#24795b;background:none;font-size:12px;font-weight:800;cursor:pointer}.bus-item{display:flex;align-items:center;justify-content:space-between;padding:12px 1px;border-bottom:1px solid #eff3f0;color:#345f49;font-size:12px}.bus-item:last-child{border:0}.bus-item strong{font-weight:700}.bottom-note{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #e5ece8;color:#8da097;font-size:12px;padding:16px 3px 0;margin-top:18px}.toast{position:fixed;bottom:25px;left:25px;border-radius:12px;background:#133f33;color:#fff;padding:14px 18px;box-shadow:0 9px 26px #153c3040;max-width:370px;z-index:1000;font-size:14px;display:none}.toast.show{display:block}.mobile-top{display:none}
@media(max-width:1240px){.workspace{padding:18px}.app-shell{grid-template-columns:205px minmax(0,1fr)}.section-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr)}.search-box{min-width:220px}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{gap:8px}.stat{padding:13px 11px}.gauge-row{gap:8px}.donut{width:130px;height:130px}.donut-inner{width:94px;height:94px}}
@media(max-width:1000px){.section-grid{grid-template-columns:1fr}.overview{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.overview .surface-head{grid-column:1/-1}.gauge-row{min-height:145px}.search-box{display:none}.hero-stamp{display:none}.lower-grid{grid-template-columns:1fr 1fr}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.workspace{padding:13px}.mobile-top{display:flex;align-items:center;gap:9px;background:#104238;color:white;padding:10px 15px;justify-content:space-between}.mobile-top img{width:78px;height:39px;object-fit:contain;background:white;border-radius:7px;padding:3px}.mobile-top strong{font-size:14px}.mobile-menu-btn{border:1px solid #ffffff55;background:transparent;color:white;padding:7px 11px;border-radius:8px}.sidebar.open{display:flex;position:fixed;right:0;top:0;height:100vh;width:265px;z-index:1100}.heading h1{font-size:20px}.topbar{margin-bottom:12px}.top-actions{gap:6px}.profile{padding:4px}.profile div:last-child{display:none}.hero{padding:19px;min-height:165px}.hero h2{font-size:21px}.hero p{font-size:13px}.section-grid,.lower-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview{display:flex}.surface{padding:13px}.surface-head{align-items:flex-start;flex-wrap:wrap}.attendance-table{font-size:12px}.attendance-table th,.attendance-table td{padding:9px 3px;font-size:11px}.progress-track{min-width:20px}.progress-cell{gap:3px}.percent{min-width:27px}.approval-item{grid-template-columns:1.2fr .8fr .9fr;gap:5px}.approval-item .link-action{display:none}}
@media(max-width:420px){.top-actions .icon-button{width:37px;height:37px}.hero .hero-actions{gap:6px}.btn{padding:9px;font-size:12px}.module-card{padding:13px;min-height:159px}.module-card h3{font-size:14px}.module-card p{font-size:11px}.stat-main{font-size:26px}.attendance-table th,.attendance-table td{font-size:10px}.section-title h2{font-size:17px}}

/* ============================================
   هوية الخط العربي المعتمدة: Cairo
   400 عادي | 600 شبه عريض | 700 عريض | 800 عريض جداً
   في حالة عدم تحميل الخط: Tahoma ثم sans-serif
   ============================================ */
:where(button,input,select,textarea,option){font-family:'Cairo',Tahoma,sans-serif}
h1,h2,h3,h4,h5,h6{font-family:'Cairo',Tahoma,sans-serif}
.attendance-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-color:#9bceaa #eff5f0;scrollbar-width:thin}
.mobile-table-hint{display:none;color:#799187;font-size:12px;margin:9px 2px 3px}
@media(max-width:750px){
 .attendance-scroll .attendance-table{min-width:615px}
 .mobile-table-hint{display:block}
 .attendance-table th,.attendance-table td{font-size:12px;padding:11px 8px}
 .surface-head h3{font-size:16px}
 .nav-link{font-size:15px}
 .workspace{padding:12px}
 .hero h2{line-height:1.5}
 .stat{min-height:124px}
}
@media(max-width:420px){
 .attendance-table th,.attendance-table td{font-size:12px}
 .module-card h3{font-size:15px}
 .module-card p{font-size:12px}
 .stat-main{font-size:27px}
 .btn{font-size:12px}
}

/* تمرير القائمة الجانبية عموديًا مع شريط واضح يمكن التحكم فيه. */
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#94bfa9 #0c3f32}
.sidebar::-webkit-scrollbar{width:9px}.sidebar::-webkit-scrollbar-track{background:#0c3f32}.sidebar::-webkit-scrollbar-thumb{background:#7eb398;border-radius:10px}
.sidebar .nav{flex:0 0 auto}.sidebar-footer{flex:0 0 auto;margin-top:20px}
