@import url('fonts.css');
:root{--bg:#f5f6f8;--ink:#172229;--muted:#728087;--line:#e4e9e9;--green:#166954;--lime:#d7f095;--soft:#eaf4ee;--nav:#102c27}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Cairo,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}img{max-width:100%}h1,h2,p{margin-top:0}h1{font-size:29px;letter-spacing:-.7px;line-height:1.45;margin-bottom:6px}h2{font-size:18px;margin-bottom:18px}small{font-size:11px}small,.muted{color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{width:232px;background:var(--nav);color:#afc2bc;position:fixed;right:0;top:0;bottom:0;padding:30px 18px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:11px;color:white;margin:0 12px 34px}.brand img{width:43px;height:43px;border-radius:12px}.brand span{font:800 20px Arial;letter-spacing:2px}.brand small{display:block;font:8px Arial;letter-spacing:1.5px;color:#90aaa2;margin-top:7px}.nav-label{font-size:10px;letter-spacing:1px;margin:0 15px 10px;color:#718f85}.nav-item{display:flex;gap:13px;align-items:center;padding:10px 14px;margin:3px 0;border-radius:9px;font-weight:600;font-size:13px}.nav-item>span{width:20px;font-family:Arial;font-size:20px;color:#839f94}.nav-item.active{background:var(--lime);color:#1e3827}.nav-item.active>span{color:#264c34}.nav-item:hover{background:#ffffff12}.nav-item.active:hover{background:var(--lime)}.nav-item b{margin-right:auto;border-radius:10px;font:11px Arial;background:#fff3;padding:3px 7px}.sidebar-footer{margin-top:auto;padding:30px 12px 0;font:12px Arial}.sidebar-footer small{display:block;padding-top:8px;color:#6f9081}.status-dot{display:inline-block;width:6px;height:6px;background:#b6dd71;border-radius:50%;margin-left:6px}.workspace{margin-right:232px;width:calc(100% - 232px);min-width:0}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:14px}.breadcrumb{font-size:12px;color:#596970}.breadcrumb span{color:#c3cdca;margin:0 14px}.account{display:flex;align-items:center;gap:10px}.account strong,.account small{display:block;font-size:11px}.account .avatar{width:36px;height:36px;border-radius:50%;background:#eef3e7;color:#577136;display:grid;place-items:center;font-weight:700}.text-btn{border:0;background:none;color:var(--muted);font-size:11px;padding:8px}.content{max-width:1600px;margin:auto;padding:32px 38px 45px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.eyebrow{font:bold 9px Arial;letter-spacing:2.2px;color:var(--green);margin:0 0 11px}.date-pill{background:white;border:1px solid var(--line);border-radius:7px;padding:8px 12px;font-size:11px;color:#63766e}.intro{color:#75817e;margin-bottom:25px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{background:white;border:1px solid var(--line);padding:21px;border-radius:13px;min-width:0}.stat>span{color:#6b7772;font-size:12px}.stat>strong{display:block;font-size:27px;line-height:1.6;font-weight:800;overflow-wrap:anywhere;margin:8px 0 5px}.stat>small{display:block;font-size:10px}.stat.accent{background:#eef5df;border-color:#dfebc6}.stat.accent>strong{color:#375625}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:22px;min-width:0}.clock-card{background:#173e33;color:white;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:27px 32px;position:relative}.clock-card .eyebrow{color:#bddb9a}.clock-card h2{font-size:23px;margin:10px 0}.clock-card p{font-size:12px;color:#b6cbc0;margin-bottom:0}.clock-card .btn{background:var(--lime);color:#24412a;min-width:170px}.clock-card .clock-link{display:block;text-align:center;color:#c7d8d0;font-size:10px;margin-top:12px}.clock-card .muted:empty{display:none}.two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-heading h2,.section-heading p{margin-bottom:0}.section-heading>span{font-size:11px;color:var(--muted)}.details{display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,1.2fr);gap:12px;font-size:12px;margin:0 0 24px}.details dt{color:var(--muted)}.details dd{margin:0;text-align:left;overflow-wrap:anywhere;font-weight:600}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;text-align:right;font-size:12px;white-space:nowrap}th{font-size:10px;background:#f7f9f8;color:#82908a;font-weight:600;padding:13px 16px}td{border-top:1px solid var(--line);padding:15px 16px;vertical-align:top}td small{display:block;font-size:10px;margin-top:4px}td.wrap{white-space:normal;min-width:160px;max-width:300px;overflow-wrap:anywhere}.badge{display:inline-block;font-size:10px;padding:3px 9px;border-radius:6px;background:#edf1f1;color:#63716e;white-space:nowrap}.tag-approved,.tag-present,.tag-paid,.tag-open,.tag-leave{background:#e9f5eb;color:#438355}.tag-pending,.tag-waiting{background:#fff3d9;color:#ae7e22}.tag-absent,.tag-rejected,.tag-cancelled{background:#fbecec;color:#b15757}.tag-off,.tag-holiday{background:#edf0fa;color:#687ba6}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;background:var(--green);color:white;border:1px solid transparent;border-radius:8px;padding:9px 18px;font-weight:700;font-size:12px;gap:8px;transition:filter .15s}.btn:hover{filter:brightness(.95)}.btn:disabled{opacity:.55;cursor:not-allowed}.secondary{background:white;color:#4b6057;border:1px solid #d9e3de;border-radius:8px}.danger{background:#fff0ef;color:#aa4646;border:1px solid #f2d8d5}.text-link{color:var(--green);font-weight:700;font-size:11px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.footer{padding:0 38px 24px;color:#819088;font:11px Arial}.footer span{float:left;font:10px Cairo}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#5e6b65;margin-bottom:16px}input,select,textarea{width:100%;min-width:0;border:1px solid #dce5e0;border-radius:7px;background:#fff;padding:10px 12px;color:var(--ink);outline:none;min-height:43px;font-size:12px}input:focus,select:focus,textarea:focus{border-color:#67a187;box-shadow:0 0 0 3px #2c765214}input[type=email],input[type=password],input[type=number]{direction:ltr;text-align:right}textarea{min-height:78px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.checkbox{display:flex;flex-direction:row;align-items:center;gap:7px}.checkbox input{min-height:0;width:17px;height:17px;accent-color:var(--green)}.weekdays{display:flex;flex-wrap:wrap;gap:4px 17px;margin:8px 0 20px}.filters{display:flex;align-items:flex-end;gap:12px;margin-bottom:22px}.filters label{margin:0;min-width:170px}.filters label:first-of-type{flex:1}.filters .btn{margin-bottom:1px}.search-field{max-width:400px}.profile-hero{display:flex;align-items:center;gap:20px}.profile-hero h2{margin:0;font-size:23px}.profile-hero p{color:var(--muted);font-size:12px;margin:8px 0 0}.profile-hero>.btn{margin-right:auto}.big-avatar{width:64px;height:64px;border-radius:18px;background:var(--soft);display:grid;place-items:center;color:var(--green);font-size:26px;flex-shrink:0}.highlight{background:#edf4e5;border-color:#dfe9d3}.big-number{display:block;font-size:37px;margin:12px 0;line-height:1.5;color:#315738;overflow-wrap:anywhere}.highlight .details{margin-top:24px}.highlight p{font-size:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.day{padding:15px 8px;background:#f9faf9;min-height:110px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:6px}.day>strong{font:600 21px Arial}.day .badge{font-size:8px;white-space:normal;text-align:center}.day-absent{background:#fdf1ef}.day-present,.day-open{background:#edf8f0}.day-leave{background:#f0f5e6}details{margin-top:16px}summary{cursor:pointer;font-weight:700;color:var(--green);font-size:12px}details form{margin-top:18px}details form+form{margin-top:24px}.decision{margin:0;min-width:170px}.decision textarea{min-height:65px}.decision label{font-size:10px}.decision form{max-width:230px;white-space:normal}.notification{display:block;border-bottom:1px solid var(--line);padding:18px;border-radius:8px}.notification strong,.notification small{display:block}.notification.unread{background:#f0f6ed}.alert{background:#ebf6e8;color:#407a42;border:1px solid #d7e9d2;padding:13px 18px;border-radius:8px;margin-bottom:20px;overflow-wrap:anywhere}.alert.error{background:#fff0ee;border-color:#f4d4cf;color:#ab4c41}.empty{text-align:center;padding:32px;color:#93a099}.narrow{max-width:560px}.menu-btn{display:none;padding:7px 10px}.auth-body{display:grid;place-items:center;min-height:100vh;padding:28px;background:#edf2ed}.auth-card{width:100%;max-width:465px;background:white;padding:38px;border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 60px #193d2610}.auth-logo{height:60px;width:60px;border-radius:12px;margin-bottom:22px}.auth-card h1{font-size:27px}.auth-card .btn{width:100%;margin-top:8px}.auth-card>small{display:block;text-align:center;margin-top:26px}.auth-card .muted{font-size:12px;margin-bottom:24px}.auth-card .eyebrow{margin-bottom:10px}form{margin:0}button:focus-visible,a:focus-visible{outline:3px solid #9cbf67;outline-offset:3px}
@media(min-width:1500px){.content{padding-top:40px}}@media(max-width:1150px){.sidebar{width:205px;padding:25px 12px}.workspace{margin-right:205px;width:calc(100% - 205px)}.content{padding:26px 24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:15px}.stat>strong{font-size:23px}.two-col{grid-template-columns:1fr}.calendar-grid{gap:5px}.day{padding:12px 3px}}@media(max-width:800px){.sidebar{transform:translateX(100%);transition:transform .2s;width:232px;box-shadow:-10px 0 40px #0002}.menu-open .sidebar{transform:translateX(0)}.workspace{width:100%;margin:0}.menu-open .workspace{margin-right:232px}.menu-btn{display:block}.topbar{height:70px;padding:0 18px}.breadcrumb{display:none}.content{padding:24px 18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.page-heading h1{font-size:25px}.date-pill{font-size:9px}.card{padding:20px}.clock-card{padding:24px}.calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.footer{padding:0 18px 24px}.profile-hero{flex-wrap:wrap}.profile-hero>.btn{margin-right:0}}@media(max-width:480px){.content{padding:22px 14px}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.date-pill{font-size:8px;padding:6px;max-width:108px;text-align:center}.eyebrow{font-size:8px}.stat{padding:14px}.stat>strong{font-size:22px}.stat>span{font-size:10px}.stats.three{grid-template-columns:1fr}.stats.three .stat{display:grid;grid-template-columns:1fr auto;gap:6px}.stats.three .stat>strong{margin:0;grid-column:2;grid-row:1/3}.stats.three .stat>small{grid-column:1}.clock-card{display:block}.clock-card h2{font-size:21px}.clock-card>div+div{margin-top:22px}.clock-card .btn{width:100%}.clock-card .clock-link{margin-top:14px}.card{padding:17px}.form-grid{grid-template-columns:1fr}.filters{flex-wrap:wrap}.filters label{min-width:0;flex:1}.filters label:first-of-type{flex-basis:100%}.calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account strong{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-hero h2{font-size:19px}.big-number{font-size:30px}.section-heading{flex-wrap:wrap}.auth-card{padding:27px}.auth-body{padding:16px}.auth-card h1{font-size:23px}.footer span{display:none}.details{font-size:11px}.table-wrap{border-radius:7px}th,td{padding:12px}.menu-open .workspace{margin-right:0}.menu-open .menu-btn{position:fixed;right:242px;top:15px;z-index:30;background:white}.profile-hero{gap:12px}}

.quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
/* Team schedule v1.1: table scroll stays inside the page. */
.schedule-scroll{max-height:65vh;overflow:auto}.team-grid th:first-child{position:sticky;right:0;z-index:2;min-width:160px;max-width:210px;background:#f3f7f1;white-space:normal}.team-grid thead th{position:sticky;top:0;z-index:3}.team-grid thead th:first-child{z-index:4}.team-grid th small{display:block;font-weight:400}.team-grid td{min-width:106px;padding:9px}.schedule-cell label{margin:0;align-items:center;text-align:center;cursor:pointer;font-size:11px}.schedule-cell input{width:18px;height:18px;min-height:0;accent-color:var(--green)}.schedule-cell small{font-size:9px}.schedule-cell.locked{background:#f4f5f4}.schedule-cell.changed{background:#e9f6cc;box-shadow:inset 0 0 0 1px #a4c36a}.schedule-cell:has(input:checked){outline:2px solid #558a6d;outline-offset:-2px}.lock-note{color:#937969;white-space:normal}.schedule-tools .actions{margin-bottom:15px}#schedule-status{color:var(--green);font-weight:700;margin:10px 0 0}
