:root{--navy:#0b223b;--navy2:#113a63;--blue:#176fb3;--bg:#f2f6fa;--card:#fff;--text:#172738;--muted:#6c7d8f;--border:#dce6ee;--green:#178857;--amber:#cf8a19;--red:#c74040;--shadow:0 12px 30px rgba(11,34,59,.08)}*{box-sizing:border-box}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:radial-gradient(circle at top right,rgba(23,111,179,.09),transparent 28%),var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.hidden{display:none!important}.employee-login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#07192c,#176aa8);padding:18px}.login-box{width:min(430px,94vw);background:#fff;border-radius:24px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.emp-logo{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:#e4b852;color:var(--navy);font-size:28px;font-weight:900}.login-box label{display:block;margin:13px 0}.login-box label span,.form-grid label span{display:block;color:var(--muted);font-size:13px;font-weight:700;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #cdd9e4;border-radius:10px;padding:10px;background:#fff;outline:none}input,select{min-height:44px}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,111,179,.1)}button{border:0;border-radius:10px;padding:10px 15px;background:var(--blue);color:#fff;cursor:pointer}.login-box button{width:100%;margin-top:7px}.error{color:var(--red);margin-top:10px}.employee-shell{min-height:100vh}.emp-header{position:sticky;top:0;z-index:10;background:rgba(11,34,59,.96);backdrop-filter:blur(10px);color:#fff;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 5px 20px rgba(0,0,0,.12)}.emp-user{display:flex;align-items:center;gap:12px}.emp-user h2{margin:2px 0}.emp-user small,.emp-user span{color:#b9cbda}.emp-avatar,.avatar-fallback{width:54px;height:54px;border-radius:16px;object-fit:cover}.avatar-fallback{display:grid;place-items:center;background:#e5b956;color:var(--navy);font-weight:900}.header-actions{display:flex;gap:12px;align-items:center}.ghost{background:transparent;border:1px solid rgba(255,255,255,.35)}main{max-width:1500px;margin:auto;padding:22px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.kpi-grid article,.card{background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}.kpi-grid article{padding:18px}.kpi-grid span{display:block;color:var(--muted);margin-bottom:8px}.kpi-grid strong{font-size:21px}.mini-progress{height:7px;border-radius:99px;background:#e5edf3;margin-top:10px;overflow:hidden}.mini-progress i{height:100%;display:block;background:var(--green);width:0}.portal-grid,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card{padding:18px;margin-top:15px}.card-title,.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.security-note{background:#edf6fd;border-right:4px solid var(--blue);padding:10px;border-radius:9px;color:#52697d}.employee-attendance-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:16px 0}.employee-attendance-buttons button{min-height:58px;font-weight:800}.green{background:var(--green)}.amber{background:var(--amber)}.navy{background:var(--navy2)}.status-box{padding:12px;background:#f1f5f8;border-radius:10px;color:#536779}.hours-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.hours-summary span{background:#eef4f9;padding:7px 10px;border-radius:999px;font-size:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{padding:9px;border-bottom:1px solid #e5edf4;text-align:right;white-space:nowrap}th{background:#eef4f9}.employee-task-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.employee-task{border:1px solid var(--border);border-radius:13px;padding:12px}.task-meta{display:flex;gap:5px;flex-wrap:wrap}.task-meta span{font-size:11px;background:#eef4f9;border-radius:99px;padding:4px 7px}.progress{height:7px;background:#e3eaf0;border-radius:99px;overflow:hidden;margin:8px 0}.progress i{display:block;height:100%;background:var(--blue)}.calendar-controls{display:flex;gap:7px}.weekdays,.employee-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.weekdays{margin:14px 0 7px}.weekdays span{text-align:center;font-weight:800;color:#607286}.cal-day{min-height:115px;background:#fff;border:1px solid var(--border);border-radius:11px;padding:8px}.cal-day.empty{opacity:.25;background:transparent}.cal-day.holiday{background:#fff5f5;border-color:#e9aaaa}.cal-day.today{outline:3px solid rgba(23,111,179,.2)}.day-no{font-weight:900;font-size:17px}.cal-event,.cal-note{display:block;font-size:10px;padding:4px 5px;border-radius:6px;margin-top:4px}.cal-event{background:#ffe8e8;color:#8e3030}.cal-note{background:#eaf4fc;color:#1e5f8c}.cal-note.done{text-decoration:line-through;opacity:.55}.form-grid{display:grid;gap:11px}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto;min-height:auto}.dark{color:var(--navy);border-color:#b7c6d3}.reminder-item{padding:10px;border-bottom:1px solid #e5edf4}.reminder-item:last-child{border-bottom:0}.reminder-item.done{opacity:.55}.reminder-item button{padding:5px 8px;font-size:11px}@media(max-width:980px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.portal-grid,.two-col{grid-template-columns:1fr}.employee-task-grid{grid-template-columns:repeat(2,1fr)}.employee-calendar,.weekdays{min-width:880px}.card:has(.employee-calendar){overflow:auto}}@media(max-width:620px){.emp-header{align-items:flex-start;gap:10px;flex-direction:column}.header-actions{width:100%;justify-content:space-between}.kpi-grid,.employee-task-grid{grid-template-columns:1fr}.employee-attendance-buttons{grid-template-columns:1fr 1fr}.calendar-header{align-items:flex-start;flex-direction:column}.calendar-controls{flex-wrap:wrap}}.task-self-edit{display:grid;grid-template-columns:1fr 85px auto;gap:7px;margin-top:10px}.task-self-edit button{padding:8px 10px}@media(max-width:620px){.task-self-edit{grid-template-columns:1fr}}
/* v5.6 employee premium UI */
.employee-nav{position:sticky;top:83px;z-index:9;display:flex;gap:7px;padding:10px max(20px,calc((100vw - 1500px)/2 + 20px));background:rgba(242,246,250,.9);backdrop-filter:blur(12px);border-bottom:1px solid #dce6ee}
.employee-nav button{background:#fff;color:#29485f;border:1px solid #d7e2ea}.employee-nav button.active{background:linear-gradient(135deg,#0d3152,#176fae);color:#fff;border-color:transparent}
.academy-hero{background:linear-gradient(135deg,#0b2743,#176faa);color:#fff;overflow:hidden}.academy-hero small,.academy-hero p{color:#d7e6f3}
.academy-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.training-filter{background:#fff;color:#345064;border:1px solid #d7e2ea}.training-filter.active{background:#176fae;color:#fff}
.academy-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.academy-card{display:flex;gap:13px;background:#fff;border:1px solid #dce6ee;border-radius:18px;padding:16px;box-shadow:0 12px 28px rgba(11,34,59,.06)}.academy-card.completed{border-color:#9bd5ba;background:#fbfffd}.academy-type{min-width:55px;height:55px;border-radius:15px;display:grid;place-items:center;background:#0d3152;color:#fff;font-weight:900}.academy-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.academy-actions a,.academy-actions button{padding:7px 10px;border-radius:8px;text-decoration:none;background:#e8f2fa;color:#145f91;border:0;font-size:12px}.article-body{padding:13px;background:#f6f9fb;border-radius:10px;line-height:2;margin-top:8px}
.clickable-day{cursor:pointer;transition:.18s transform,.18s box-shadow}.clickable-day:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(11,34,59,.1)}.selected-day{outline:3px solid rgba(23,111,179,.28);background:#f2f9ff}.form-help{background:#eef6fd;padding:9px;border-radius:8px;color:#526a7d}
@media(max-width:850px){.academy-grid{grid-template-columns:1fr}.employee-nav{overflow:auto;top:108px}.employee-nav button{white-space:nowrap}}
.greg-date{display:block;font-size:9px;color:#81909e;font-weight:400;margin-top:2px}.campaign-event{background:#fff0c8!important;color:#7b5900!important}
/* FMITO Employee Portal v5.7 */
:root{--portal-navy:#071b30;--portal-blue:#176fae;--portal-line:#dce6ee}
body{background:linear-gradient(135deg,#f7fafc,#edf4f8);color:#17364c}
.topbar{background:linear-gradient(125deg,#061a2d,#0d3659);box-shadow:0 8px 28px rgba(7,29,49,.18)}
.employee-nav{top:78px;background:rgba(245,249,252,.9);backdrop-filter:blur(18px);padding-top:11px;padding-bottom:11px}
.employee-nav button{border-radius:999px;padding:8px 16px;box-shadow:0 5px 14px rgba(11,34,59,.05)}
.employee-nav button.active{box-shadow:0 8px 20px rgba(23,111,174,.2)}
main{max-width:1500px}
.card{border:1px solid #dce6ee;border-radius:20px;box-shadow:0 13px 34px rgba(11,34,59,.065);background:rgba(255,255,255,.96)}
.kpi{border-radius:18px;border:1px solid #dfe8ee;background:linear-gradient(145deg,#fff,#f8fbfd);box-shadow:0 9px 24px rgba(11,34,59,.055)}
.kpi strong{color:#0b3657}
.portal-grid{gap:15px}
.attendance-panel{background:linear-gradient(145deg,#fff,#f7fbfd)}
.cal-day{border-radius:13px!important;border:1px solid #e0e8ee!important;background:#fff;min-height:108px;transition:.18s transform,.18s box-shadow}
.cal-day:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(11,34,59,.08)}
.cal-day.today{outline:2px solid #2582bd;background:#f4faff}
.academy-card{transition:.2s transform,.2s box-shadow}.academy-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(11,34,59,.09)}
input,select,textarea{border-radius:11px!important;border:1px solid #d7e3eb!important;background:#fbfdfe!important;min-height:42px}
input:focus,select:focus,textarea:focus{outline:none;border-color:#64a8d5!important;box-shadow:0 0 0 4px rgba(23,111,174,.09)}
button{border-radius:10px;font-weight:800}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
html,body,button,input,select,textarea{font-family:"Vazirmatn","Segoe UI",Tahoma,sans-serif!important}
body{background:radial-gradient(circle at 10% 0%,rgba(255,216,77,.15),transparent 20%),radial-gradient(circle at 90% 5%,rgba(255,69,79,.08),transparent 22%),linear-gradient(145deg,#fffdfb,#f6faff)!important}
.brand-logo{overflow:hidden!important;background:#fff!important}.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}
.emp-logo.brand-logo{width:94px!important;height:66px!important;border-radius:18px!important;margin:0 auto 14px!important;box-shadow:0 10px 28px rgba(24,36,58,.16)}
.emp-header,.topbar{background:linear-gradient(125deg,#18243a,#293d5d)!important}
.card{border-radius:24px!important;box-shadow:0 15px 42px rgba(36,47,70,.065)!important}
.kpi:nth-child(4n+1){background:linear-gradient(145deg,#fff,#e8f3ff)!important}.kpi:nth-child(4n+2){background:linear-gradient(145deg,#fff,#e8fbf3)!important}.kpi:nth-child(4n+3){background:linear-gradient(145deg,#fff,#fff8dc)!important}.kpi:nth-child(4n+4){background:linear-gradient(145deg,#fff,#fff0f3)!important}
.employee-nav button.active{background:linear-gradient(135deg,#ff5862,#ef3e49)!important;color:#fff!important}
.employee-attendance-buttons button{border-radius:14px!important;min-height:48px!important}
.cal-day.today{outline:2px solid #ff454f!important;background:#fff7ed!important}

/* FMITO Employee Portal v5.9 — compact actions */
:root{--confirm:#24a77b;--confirm-hover:#1d8d68;--soft-action:#eef2f6;--soft-ink:#435269}
button{min-height:34px!important;padding:6px 11px!important;border-radius:9px!important;font-size:12.5px!important;box-shadow:none!important}
form button[type="submit"],button.primary{background:linear-gradient(135deg,#2eb487,var(--confirm))!important;color:#fff!important;box-shadow:0 5px 12px rgba(36,167,123,.13)!important}
form button[type="submit"]:hover,button.primary:hover{background:var(--confirm-hover)!important}
button.secondary{background:var(--soft-action)!important;color:var(--soft-ink)!important;border:1px solid #dce3ea!important}
button.danger{background:#fff2f3!important;color:#b84b57!important;border:1px solid #f0d0d4!important}
.employee-nav button{min-height:33px!important;padding:5px 12px!important;font-size:12px!important}
.employee-nav button.active{background:#eef0fb!important;color:#495b8d!important;box-shadow:none!important;border:1px solid #dfe3f1!important}

/* =========================================================
   Employee portal v5.10 — FMITO corporate + barcode scanner
   ========================================================= */
:root{--f-red:#ef233c;--f-yellow:#ffd21f;--f-dark:#2b2025}
.emp-header,.topbar{background:linear-gradient(125deg,#ef233c,#d81331)!important;box-shadow:0 8px 28px rgba(239,35,60,.22)!important}
.employee-nav{background:rgba(255,255,255,.95)!important;border-bottom:2px solid #ffd21f!important}
.employee-nav button{color:#b71930!important;border:1px solid #ffc0c8!important;background:#fff!important;box-shadow:0 5px 12px rgba(239,35,60,.06)!important}
.employee-nav button.active{background:linear-gradient(145deg,#ffd92f,#ffc400)!important;color:#2c2023!important;border-color:#ffe66c!important;box-shadow:0 0 15px rgba(255,210,31,.52)!important}
button{min-height:36px!important;padding:7px 12px!important}
.btn-confirm{background:linear-gradient(145deg,#ffd92f,#ffc400)!important;color:#2b2022!important;box-shadow:0 0 14px rgba(255,210,31,.56),0 7px 16px rgba(120,80,0,.16)!important}
.btn-yellow{background:linear-gradient(145deg,#ef233c,#d51631)!important;color:#fff!important;box-shadow:0 0 14px rgba(239,35,60,.48),0 7px 16px rgba(120,8,25,.17)!important}
.btn-neutral{background:#fff!important;color:#4d4247!important;border:1px solid #ded6d9!important;box-shadow:0 5px 12px rgba(40,30,35,.07)!important}
.scanner-hero{
  display:flex;align-items:center;justify-content:space-between;
  background:radial-gradient(circle at 92% 10%,rgba(255,210,31,.55),transparent 25%),linear-gradient(125deg,#f12640,#d91531)!important;
  color:#fff!important;border:0!important;overflow:hidden
}
.scanner-hero small,.scanner-hero p{color:#fff4f5!important}.scanner-hero h2{font-size:25px;margin:5px 0}
.scanner-symbol{font-size:64px;color:#ffd21f;text-shadow:0 0 18px rgba(255,210,31,.82)}
.scanner-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(360px,1.15fr);gap:15px}
.scanner-panel{border-top:4px solid #ffd21f!important}
.scanner-actions{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}
.scanner-hint{background:#fff8d7;border-right:4px solid #ffd21f;border-radius:9px;padding:9px;color:#6b5520;font-size:12px}
.camera-box{position:relative;background:#111;border-radius:16px;overflow:hidden;aspect-ratio:16/10;margin:12px 0;box-shadow:0 0 20px rgba(239,35,60,.18)}
.camera-box video{width:100%;height:100%;object-fit:cover}
.scan-line{position:absolute;left:8%;right:8%;top:50%;height:3px;background:#ffd21f;box-shadow:0 0 13px #ffd21f;animation:scanMove 1.7s ease-in-out infinite}
@keyframes scanMove{0%,100%{transform:translateY(-90px)}50%{transform:translateY(90px)}}
.price-result{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:330px;background:radial-gradient(circle at 50% 10%,#fff9d8,#fff 44%)!important;border:2px solid #ffd21f!important;box-shadow:0 0 22px rgba(255,210,31,.16)!important}
.price-brand{background:#ef233c;color:#fff;padding:5px 12px;border-radius:999px;font-size:11px;font-weight:900;box-shadow:0 0 12px rgba(239,35,60,.35)}
.price-result h2{font-size:24px;margin:12px 0 8px}.product-meta{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.product-meta span{background:#fff1f3;color:#b4172e;padding:5px 8px;border-radius:999px;font-size:11px}
.live-price{font-size:34px;font-weight:950;color:#d91531;margin:16px 0 9px;text-shadow:0 0 14px rgba(239,35,60,.12)}
.old-price{text-decoration:line-through;color:#9a8d91;margin-top:13px}
.stock-badge{padding:6px 11px;border-radius:999px;font-weight:800}.in-stock{background:#e9f8ef;color:#217243}.out-stock{background:#ffe8eb;color:#a81e34}
.empty-price-icon{font-size:55px;color:#ffd21f;text-shadow:0 0 15px rgba(255,210,31,.55)}
.error-result{border-color:#ef233c!important;background:#fff4f5!important}
@media(max-width:850px){.scanner-layout{grid-template-columns:1fr}.price-result{min-height:250px}}

/* =========================================================
   FMITO Employee v5.11 — Dark Executive
   ========================================================= */
:root{--ed-bg:#090b12;--ed-surface:#11141e;--ed-line:#262b3a;--ed-text:#f4f5f8;--ed-muted:#9198a8;--ed-purple:#a98cff}
html,body{background:#090b12!important;color:var(--ed-text)!important}
body{background:radial-gradient(circle at 80% 0%,rgba(125,92,255,.10),transparent 25%),linear-gradient(180deg,#090b12,#0b0e15)!important}
.emp-header,.topbar{background:rgba(13,16,25,.96)!important;border-bottom:1px solid #252a39!important;box-shadow:0 12px 30px rgba(0,0,0,.24)!important}
.employee-nav{background:rgba(10,12,18,.94)!important;border-bottom:1px solid #232838!important}
.employee-nav button{background:#131722!important;color:#9ba3b3!important;border:1px solid #282d3d!important;box-shadow:none!important}
.employee-nav button.active{background:#211d38!important;color:#d8cdff!important;border-color:#514179!important;box-shadow:0 0 18px rgba(169,140,255,.12)!important}
.card,.academy-card,.price-result,.scanner-panel{
  background:linear-gradient(145deg,#11141e,#10131c)!important;border:1px solid #272c3b!important;color:#e8eaf0!important;box-shadow:0 12px 32px rgba(0,0,0,.20)!important
}
.kpi,.kpi:nth-child(n){background:linear-gradient(145deg,#11141e,#151827)!important;border:1px solid #272c3b!important;color:#fff!important}
.kpi strong{color:#fff!important}
input,select,textarea{background:#0d1017!important;color:#e8eaf1!important;border:1px solid #272c3b!important}
input::placeholder{color:#646b7c!important}
.employee-attendance-buttons button{box-shadow:none!important;border:1px solid #2d3344!important}
.green{background:#143226!important;color:#66e3a0!important}.amber{background:#322711!important;color:#ffd565!important}.navy{background:#1b1e2b!important;color:#cbd0dc!important}
.scanner-hero,.academy-hero{background:radial-gradient(circle at 88% 15%,rgba(169,140,255,.18),transparent 22%),linear-gradient(135deg,#11141e,#181827)!important}
.scanner-symbol{color:#bba6ff!important;text-shadow:0 0 18px rgba(169,140,255,.24)!important}
.btn-confirm{background:linear-gradient(135deg,#b49cff,#8a6cff)!important;color:#0b0c11!important;box-shadow:0 0 20px rgba(169,140,255,.16)!important}
.btn-yellow{background:#211d38!important;color:#d4c9ff!important;box-shadow:none!important}
.live-price{color:#cbbcff!important;text-shadow:none!important}
.price-brand{background:#211d38!important;color:#d8cdff!important;box-shadow:none!important}
.product-meta span{background:#181b28!important;color:#aeb5c2!important}
.cal-day{background:#11141e!important;border:1px solid #262b3a!important;color:#dce0e8!important}
.cal-day.today{outline:1px solid #8a70df!important;background:#181529!important}
.cal-event{background:#211d37!important;color:#cabfff!important}
.reminder-item{border-bottom:1px solid #232837!important}
.employee-login{background:radial-gradient(circle at 76% 18%,rgba(125,92,255,.23),transparent 25%),linear-gradient(135deg,#080a10,#0b0e17)!important}
.login-box{background:#10131c!important;color:#fff!important;box-shadow:0 30px 85px rgba(0,0,0,.48)!important;border:1px solid #292e40!important}

/* =========================================================
   FMITO Employee v5.12 — Emerald Executive
   ========================================================= */
:root{--e-green:#0f7a5a;--e-green2:#18a36e;--e-mint:#edf9f2;--e-line:#dbeae2;--e-ink:#173e32;--e-muted:#7b9189}
html,body{background:#f3f8f5!important;color:var(--e-ink)!important}
body{background:radial-gradient(circle at 85% 0%,rgba(31,183,124,.10),transparent 24%),linear-gradient(180deg,#f5faf7,#edf6f1)!important}
.emp-header,.topbar{
  background:linear-gradient(120deg,#0d7757,#17a06b)!important;
  border-bottom:1px solid rgba(255,255,255,.20)!important;
  box-shadow:0 12px 30px rgba(15,122,90,.14)!important
}
.employee-nav{background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--e-line)!important}
.employee-nav button{background:#f5faf7!important;color:#527268!important;border:1px solid var(--e-line)!important;box-shadow:none!important}
.employee-nav button.active{background:#e1f5e9!important;color:#0a6b4e!important;border-color:#bfe3cf!important;box-shadow:0 7px 16px rgba(18,139,94,.08)!important}
.card,.academy-card,.price-result,.scanner-panel{
  background:#fff!important;border:1px solid var(--e-line)!important;color:var(--e-ink)!important;
  box-shadow:0 12px 30px rgba(19,88,65,.06)!important
}
.kpi,.kpi:nth-child(n){background:linear-gradient(145deg,#fff,#f4faf6)!important;border:1px solid var(--e-line)!important;color:var(--e-ink)!important}
.kpi strong{color:#0b6d50!important}
input,select,textarea{background:#fbfefc!important;color:#24483d!important;border:1px solid #d8e8df!important}
input::placeholder{color:#9baaa5!important}
.employee-attendance-buttons button{box-shadow:none!important}
.green{background:#e6f7ed!important;color:#0e7b58!important;border:1px solid #c9e8d7!important}
.amber{background:#fff7db!important;color:#8e7117!important;border:1px solid #efe1a8!important}
.navy{background:#edf6f1!important;color:#496b5f!important;border:1px solid #d8e8df!important}
.scanner-hero,.academy-hero{background:linear-gradient(120deg,#0d7757,#18a36e)!important;color:#fff!important}
.scanner-symbol{color:#d8ff9b!important;text-shadow:0 0 18px rgba(216,255,155,.36)!important}
.btn-confirm{background:linear-gradient(135deg,#18a36e,#0f7a5a)!important;color:#fff!important;box-shadow:0 8px 18px rgba(15,122,90,.15)!important}
.btn-yellow{background:#e3f5eb!important;color:#0a6b4e!important;box-shadow:none!important}
.live-price{color:#0d7958!important}
.price-brand{background:#e2f6ea!important;color:#0b7253!important}
.product-meta span{background:#f0f8f4!important;color:#537469!important}
.cal-day{background:#fff!important;border:1px solid var(--e-line)!important;color:#34574b!important}
.cal-day.today{outline:2px solid #4eb58c!important;background:#f0faf5!important}
.cal-event{background:#e6f7ee!important;color:#0b7152!important}
.employee-login{background:linear-gradient(135deg,#07533e,#0f8a61)!important}
.login-box{background:rgba(255,255,255,.97)!important;color:var(--e-ink)!important;box-shadow:0 30px 85px rgba(5,72,53,.28)!important;border:1px solid rgba(255,255,255,.65)!important}

/* =========================================================
   FMITO Employee v5.14 — Orange Luxury
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

html,body,button,input,select,textarea{
  font-family:"Vazirmatn","IRANSansX","Tahoma","Segoe UI",sans-serif!important;
}
html,body{
  background:#f3efeb!important;color:#2b211c!important
}
body{
  background:radial-gradient(circle at 75% 0%,rgba(255,173,91,.22),transparent 23%),linear-gradient(180deg,#f7f3ef,#eee9e5)!important
}
.emp-header,.topbar{
  background:linear-gradient(120deg,#d33c06,#f36b14 58%,#ff9b44)!important;
  border:0!important;
  box-shadow:0 14px 34px rgba(169,64,8,.17)!important
}
.employee-nav{
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid #eadfd5!important;
  box-shadow:0 9px 26px rgba(88,53,29,.06)!important
}
.employee-nav button{
  background:#fff!important;color:#75655b!important;border:1px solid #eadfd5!important;box-shadow:none!important
}
.employee-nav button.active{
  background:#fff1e4!important;color:#d7570d!important;border-color:#ffc99f!important
}
.card,.academy-card,.price-result,.scanner-panel{
  background:#fff!important;border:1px solid #eee2d8!important;color:#2d241f!important;
  border-radius:20px!important;
  box-shadow:0 14px 34px rgba(101,65,39,.08)!important
}
.kpi,.kpi:nth-child(n){
  background:#fff!important;border:1px solid #eee2d8!important;color:#2d241f!important
}
.kpi strong{color:#d95b12!important}
input,select,textarea{
  background:#fffdfb!important;color:#2e2722!important;border:1px solid #eadfd5!important
}
input:focus,select:focus,textarea:focus{
  border-color:#ff9b56!important;box-shadow:0 0 0 4px rgba(242,106,20,.08)!important
}
.employee-attendance-buttons button{box-shadow:none!important}
.green{background:#ebf8f1!important;color:#24845b!important;border:1px solid #cce8d9!important}
.amber{background:#fff5dd!important;color:#9b6a15!important;border:1px solid #f0ddb0!important}
.navy{background:#fff0e4!important;color:#d35b14!important;border:1px solid #ffd1af!important}
.scanner-hero,.academy-hero{
  background:linear-gradient(135deg,#ef5f0e,#ff9740)!important;color:#fff!important
}
.scanner-symbol{color:#fff!important;text-shadow:none!important}
.btn-confirm{background:linear-gradient(135deg,#ff7b21,#ef5e0c)!important;color:#fff!important;box-shadow:0 9px 18px rgba(216,82,6,.20)!important}
.btn-yellow{background:#fff1e4!important;color:#d6590f!important;box-shadow:none!important}
.live-price{color:#d8570e!important}
.price-brand{background:#fff0e2!important;color:#d45a13!important}
.product-meta span{background:#fff7f0!important;color:#775f50!important}
.cal-day{background:#fff!important;border:1px solid #eee2d8!important;color:#40372f!important}
.cal-day.today{outline:0!important;background:linear-gradient(135deg,#ff7d25,#ef5d0c)!important;color:#fff!important}
.cal-event{background:#fff1e4!important;color:#d55a11!important}
.employee-login{
  background:radial-gradient(circle at 20% 15%,rgba(255,188,116,.32),transparent 22%),linear-gradient(135deg,#b73506,#f36712,#ff9a42)!important
}
.login-box{
  background:rgba(255,255,255,.98)!important;color:#2b211c!important;
  border:1px solid rgba(255,255,255,.80)!important;box-shadow:0 30px 85px rgba(112,42,8,.28)!important
}

/* FAMITO OS v5.77 — employee calendar note sharing */
.employee-note-visibility{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:auto 1fr 1fr;
  gap:9px;
  align-items:stretch;
  padding:11px;
  border:1px solid #dfe7ee;
  border-radius:14px;
  background:#f8fafc;
}
.employee-note-visibility>span{
  display:flex;
  align-items:center;
  font-weight:900;
  color:#273442;
}
.employee-note-visibility label{
  display:grid!important;
  grid-template-columns:auto 1fr;
  gap:3px 7px;
  align-items:center;
  padding:9px 10px!important;
  margin:0!important;
  border:1px solid #e4e9ee;
  border-radius:11px;
  background:#fff;
}
.employee-note-visibility label input{
  grid-row:1/3;
  width:auto!important;
  margin:0!important;
}
.employee-note-visibility label b{font-size:12px}
.employee-note-visibility label small{
  grid-column:2;
  color:#84909a;
  font-size:10px;
}
.cal-note.shared-manager{
  border-right:3px solid #e2ae30;
  background:#fff5cd;
}
@media(max-width:760px){
  .employee-note-visibility{grid-template-columns:1fr}
}

/* v5.78 — manager ↔ employee calendar connection */
.cal-note.from-manager{
  border-right:3px solid #7b61d8!important;
  background:#f2edff!important;
  color:#513d9c!important;
}
.reminder-item.from-manager{
  border-right:4px solid #7b61d8;
  background:#faf8ff;
}
.field-help{display:block;margin-top:4px;color:#88939d;font-size:10px}

/* ===== FAMITO v5.80 Internal Tickets ===== */
.ticket-layout{display:grid;grid-template-columns:minmax(260px,34%) 1fr;gap:14px;min-height:480px}.ticket-list{display:flex;flex-direction:column;gap:8px;max-height:620px;overflow:auto}.ticket-item{width:100%;display:grid;grid-template-columns:1fr auto;gap:6px;text-align:right;padding:12px;border:1px solid #e3e8ee;background:#fff;border-radius:14px;cursor:pointer}.ticket-item.active{border-color:#ef7b45;box-shadow:0 0 0 2px #fff1e9}.ticket-item span{display:grid;gap:4px}.ticket-item small{color:#7c8792}.ticket-item em{font-style:normal;font-size:11px;color:#65717c}.ticket-priority{font-style:normal;font-size:10px;border-radius:20px;padding:4px 8px;background:#eef2f5}.p-فوری{background:#ffe5e5;color:#b42318}.p-مهم{background:#fff1d6;color:#9a6700}.ticket-conversation{border:1px solid #e5e9ed;border-radius:16px;background:#fafbfc;padding:14px;min-width:0}.ticket-empty{display:grid;place-items:center;min-height:180px;color:#9aa3ab}.ticket-thread-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid #e6eaee}.ticket-thread-head div{display:grid;gap:4px}.ticket-thread-head small{color:#87919a}.ticket-messages{display:flex;flex-direction:column;gap:10px;padding:16px 0;max-height:430px;overflow:auto}.ticket-message{max-width:78%;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #e5e9ed;align-self:flex-start}.ticket-message.mine{align-self:flex-end;background:#eef7ff}.ticket-message p{white-space:pre-wrap;margin:6px 0}.ticket-message small{color:#8b959d}.ticket-reply{display:grid;grid-template-columns:1fr auto;gap:8px}.ticket-reply textarea{resize:vertical}.ticket-modal{position:fixed;inset:0;background:#17212b66;z-index:1000;display:grid;place-items:center;padding:20px}.ticket-modal.hidden{display:none}.ticket-compose-card{width:min(620px,96vw);background:#fff;border-radius:18px;padding:18px;display:grid;gap:12px;box-shadow:0 20px 60px #0003}.ticket-compose-card label{display:grid;gap:6px}.ticket-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ticket-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#e53935;color:white;font-size:10px}.ticket-badge.hidden{display:none}@media(max-width:800px){.ticket-layout{grid-template-columns:1fr}.ticket-row{grid-template-columns:1fr}.ticket-message{max-width:92%}}

.ticket-priority{font-style:normal!important;font-weight:900!important;border-radius:999px!important;padding:3px 8px!important}
.ticket-priority.p-normal{background:#edf4ff!important;color:#406fa8!important}
.ticket-priority.p-important{background:#fff4cc!important;color:#9b7411!important}
.ticket-priority.p-urgent{background:#ffe7e7!important;color:#c44040!important}
.ticket-work-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.ticket-checklist-box,.ticket-attachment-box{border:1px solid #e2e7eb;border-radius:12px;padding:10px;background:#fafbfc}
.ticket-tool-head{display:flex;justify-content:space-between;margin-bottom:8px}.ticket-checklist{display:grid;gap:6px}
.ticket-check-item{display:flex!important;align-items:center;gap:8px!important;padding:8px!important;border:1px solid #e4e9ed;border-radius:9px;background:#fff}
.ticket-check-item.done{text-decoration:line-through;opacity:.68;background:#eef8f2}.ticket-check-item input{width:auto!important}
.ticket-inline-form{display:flex;gap:6px;margin-top:8px}.ticket-inline-form input{flex:1;min-width:0}.ticket-attachments{display:grid;gap:5px}.ticket-attachments a{padding:7px 8px;border:1px solid #e4e9ed;border-radius:8px;background:#fff;text-decoration:none}
.ticket-empty-mini{font-size:11px;color:#89949e;padding:7px}
@media(max-width:760px){.ticket-work-tools{grid-template-columns:1fr}}


/* =========================================================
   Employee Products
   ========================================================= */
.employee-products-head{align-items:flex-start!important}
.employee-products-head p{margin:4px 0 0;color:#7d8993;font-size:12px}
.employee-product-count{min-width:90px;text-align:center;padding:9px 12px;border:1px solid #e5eaee;border-radius:12px;background:#fafbfc}
.employee-product-count span{display:block;font-size:10px;color:#8b959e}
.employee-product-count strong{display:block;margin-top:3px;font-size:20px}
.employee-products-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:8px;margin:12px 0}
.employee-products-toolbar input,.employee-products-toolbar select{width:100%;min-height:42px}
.employee-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.employee-product-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border:1px solid #e5eaee;border-radius:13px;background:#fff;position:relative}
.employee-product-main small{font-size:10px;color:#8c97a0}
.employee-product-main h4{margin:4px 0 7px;font-size:14px}
.employee-product-meta{display:flex;gap:5px;flex-wrap:wrap}
.employee-product-meta span{padding:3px 6px;border-radius:999px;background:#f2f5f7;color:#687580;font-size:9px}
.employee-product-price{text-align:left;min-width:125px}
.employee-product-price span{display:block;font-size:9px;color:#89939c}
.employee-product-price strong{display:block;margin-top:4px;font-size:13px;color:#263b4b}
.employee-product-price del{display:block;margin-top:3px;font-size:9px;color:#a2aab1}
.employee-product-stock{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px solid #eff2f4;font-size:10px}
.employee-product-stock.ok b{color:#25815f}.employee-product-stock.low b{color:#a97817}.employee-product-stock.out b{color:#c94747}
.employee-product-empty{grid-column:1/-1;padding:24px;text-align:center;border:1px dashed #dbe2e7;border-radius:12px;color:#84909a;background:#fafbfc}
.employee-product-empty.error{color:#b84242;background:#fff3f3}
@media(max-width:1000px){.employee-products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.employee-products-toolbar{grid-template-columns:1fr}.employee-products-grid{grid-template-columns:1fr}.employee-product-card{grid-template-columns:1fr}.employee-product-price{text-align:right}.employee-product-stock{grid-column:auto}}

.theme-toggle{width:38px;height:38px;border-radius:11px;border:1px solid #dfe6eb;background:#fff;font-size:16px;display:grid;place-items:center}
.employee-checklist-board{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.employee-check-pill{display:inline-flex!important;align-items:center!important;gap:8px!important;width:auto!important;min-width:220px!important;max-width:100%!important;padding:9px 11px!important;border:1px solid #dfe6eb!important;border-radius:12px!important;background:#fff!important;cursor:pointer!important;text-decoration:none!important}
.employee-check-pill input{width:18px!important;height:18px!important;accent-color:#2e9b73}
.employee-check-pill span{display:flex!important;align-items:center!important;gap:7px!important;flex:1!important;font-size:12px!important}
.employee-check-pill span b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eef3f6;color:#53616c;font-size:9px}
.employee-check-pill i{font-size:9px!important;font-style:normal!important;color:#8b959e}
.employee-check-pill.done{background:#edf9f3!important;border-color:#c8e9d8!important;opacity:1!important}
.employee-check-pill.done span{color:#32785f!important;text-decoration:line-through}.employee-check-pill.done i{color:#27815e!important}
[data-theme="dark"] body{background:#0f151a!important;color:#e8edf1!important}
[data-theme="dark"] .card,[data-theme="dark"] .emp-header,[data-theme="dark"] .login-box,[data-theme="dark"] .employee-check-pill{background:#172027!important;color:#e8edf1!important;border-color:#2b3943!important}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#11181e!important;color:#eef2f5!important;border-color:#34444f!important}
[data-theme="dark"] .employee-nav{background:#141c22!important}[data-theme="dark"] .employee-nav button{color:#dbe3e8!important}[data-theme="dark"] .employee-nav button.active{background:#26343e!important;color:#fff!important}
[data-theme="dark"] .theme-toggle{background:#172027;color:#fff;border-color:#34444f}[data-theme="dark"] .employee-check-pill.done{background:#173128!important;border-color:#285943!important}
@media(max-width:900px){.employee-shell{padding:10px!important}.emp-header{flex-wrap:wrap!important}.employee-nav{overflow-x:auto!important;display:flex!important;gap:6px!important;white-space:nowrap!important}.employee-nav button{flex:0 0 auto!important}.portal-grid,.two-col,.ticket-layout{grid-template-columns:1fr!important}.employee-check-pill{min-width:calc(50% - 4px)!important}}
@media(max-width:600px){.employee-check-pill{min-width:100%!important}.header-actions{width:100%;justify-content:space-between!important}.ticket-reply{flex-direction:column!important}.ticket-reply button{width:100%!important}}

.employee-photo-manager-card{margin-top:10px}.photo-manager-main-btn{background:#fff1eb!important;color:#d75e2d!important;border:1px solid #efc5b2!important;border-radius:10px!important;padding:9px 12px!important;font-weight:900!important}.employee-photo-manager-form{margin-top:10px;padding-top:10px;border-top:1px solid #edf0f2}.employee-photo-manager-form form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.employee-photo-manager-form label{display:block}.employee-photo-manager-form label>span{display:block;margin-bottom:5px;font-size:10px;font-weight:900}.employee-photo-manager-form .wide{grid-column:1/-1}.photo-drop-zone{border:1px dashed #cfd9e1;border-radius:12px;padding:10px;background:#fafcfd}.photo-preview-empty{margin-top:8px;min-height:120px;display:grid;place-items:center;border-radius:10px;background:#f2f5f7;color:#84909a;overflow:hidden}.photo-preview-empty img{max-width:100%;max-height:240px;object-fit:contain;border-radius:8px}.employee-photo-actions{display:flex;gap:8px}@media(max-width:650px){.employee-photo-manager-form form{grid-template-columns:1fr}.employee-photo-manager-form .wide{grid-column:auto}.employee-photo-actions{flex-direction:column}.employee-photo-actions button{width:100%}}

/* Per-duty photo proof */
.employee-task-card-proof{border:1px solid #e3e8ec!important;border-radius:14px!important;padding:12px!important;background:#fff!important}
.employee-task-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.employee-task-actions{margin-top:10px}
.task-proof-btn{width:100%!important;background:#fff3ed!important;color:#d65f2f!important;border:1px solid #efc8b7!important;border-radius:10px!important;padding:9px!important;font-weight:900!important}
.task-proof-box{margin-top:9px;padding:10px;border:1px solid #e4e9ed;border-radius:12px;background:#fafcfd}
.task-proof-form{display:grid;gap:8px}.task-proof-form label>span{display:block;font-size:9px;font-weight:900;margin-bottom:5px}
.task-photo-drop{padding:9px;border:1px dashed #ccd7df;border-radius:10px;background:#fff}
.task-proof-preview{min-height:100px;display:grid;place-items:center;background:#f2f5f7;border-radius:9px;overflow:hidden;color:#83909a}
.task-proof-preview img{max-width:100%;max-height:220px;object-fit:contain}.task-proof-preview span{font-size:9px;margin-top:4px}
.task-proof-actions{display:flex;gap:7px}.task-proof-actions button{flex:1}
.task-proof-status{margin-top:7px;font-size:9px;font-weight:900}.task-proof-status.success{color:#258262}.task-proof-status.error{color:#c44747}
[data-theme="dark"] .employee-task-card-proof,[data-theme="dark"] .task-proof-box,[data-theme="dark"] .task-photo-drop{background:#172027!important;border-color:#2b3943!important}
[data-theme="dark"] .task-proof-preview{background:#11181e!important;color:#c6d0d6!important}
@media(max-width:600px){.employee-task-card-head{flex-direction:column}.task-proof-actions{flex-direction:column}}

.task-proof-preview-multi{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:7px!important}
.task-proof-preview-multi figure{margin:0;background:#fff;border:1px solid #e1e7eb;border-radius:8px;overflow:hidden}
.task-proof-preview-multi figure img{width:100%!important;height:105px!important;object-fit:cover!important}
.task-proof-preview-multi figcaption{padding:4px 5px;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.task-proof-preview-multi{grid-template-columns:repeat(2,1fr)!important}}

/* =========================================================
   FMITO Employee UI — Professional responsive redesign
   ========================================================= */
:root{
  --emp-bg:#f4f6f8;
  --emp-surface:#ffffff;
  --emp-surface-soft:#f8fafb;
  --emp-border:#e4e9ed;
  --emp-text:#1f2c36;
  --emp-muted:#7d8993;
  --emp-accent:#f36b35;
  --emp-accent-soft:#fff2eb;
  --emp-success:#2b8a68;
  --emp-shadow:0 12px 34px rgba(26,39,49,.065);
}
body{background:var(--emp-bg)!important;color:var(--emp-text)!important}
.employee-shell{max-width:1560px!important;margin:0 auto!important;padding:18px 22px 30px!important}
.emp-header{
  position:sticky!important;top:10px!important;z-index:70!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-height:72px!important;padding:12px 16px!important;margin-bottom:12px!important;
  border:1px solid var(--emp-border)!important;border-radius:18px!important;
  background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px)!important;
  box-shadow:var(--emp-shadow)!important;overflow:hidden!important
}
.emp-header-accent{position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#ff8b5b,#f35e2b)}
.emp-user{display:flex!important;align-items:center!important;gap:10px!important}
.emp-avatar,.avatar-fallback{width:46px!important;height:46px!important;border-radius:14px!important;object-fit:cover!important;box-shadow:0 4px 12px rgba(30,45,57,.1)}
.avatar-fallback{display:grid!important;place-items:center!important;background:linear-gradient(135deg,#263743,#425463)!important;color:#fff!important;font-weight:900!important}
.emp-user small{display:block!important;font-size:9px!important;color:var(--emp-muted)!important}
.emp-user h2{margin:2px 0!important;font-size:17px!important;line-height:1.2!important}
.emp-user span{font-size:9px!important;color:var(--emp-muted)!important}
.header-actions{display:flex!important;align-items:center!important;gap:8px!important}
.emp-now{font-size:10px!important;color:var(--emp-muted)!important;padding:0 4px!important}
.theme-toggle,.emp-mobile-menu-btn,.emp-mobile-menu-close{
  border:1px solid var(--emp-border)!important;background:var(--emp-surface)!important;color:var(--emp-text)!important;
  box-shadow:none!important;cursor:pointer!important
}
.emp-mobile-menu-btn{display:none!important;width:40px!important;height:40px!important;border-radius:11px!important;font-size:20px!important;padding:0!important}
.emp-mobile-menu-close{display:none!important;width:36px!important;height:36px!important;border-radius:10px!important;font-size:22px!important;padding:0!important}
.emp-logout-btn{min-height:38px!important;border-radius:10px!important;padding:0 12px!important}

.employee-nav{
  display:flex!important;align-items:center!important;gap:6px!important;
  margin:0 0 14px!important;padding:7px!important;border:1px solid var(--emp-border)!important;
  border-radius:15px!important;background:var(--emp-surface)!important;
  box-shadow:0 7px 20px rgba(27,40,51,.04)!important
}
.employee-nav-links{display:flex!important;gap:5px!important;width:100%!important;overflow-x:auto!important;scrollbar-width:none!important}
.employee-nav-links::-webkit-scrollbar{display:none!important}
.employee-nav button[data-emp-section]{
  position:relative!important;flex:0 0 auto!important;min-height:39px!important;
  padding:0 13px!important;border:1px solid transparent!important;border-radius:10px!important;
  background:transparent!important;color:#53616b!important;font-size:10px!important;font-weight:800!important;
  white-space:nowrap!important;transition:.18s ease!important
}
.employee-nav button[data-emp-section]:hover{background:#f7f9fa!important;color:#263743!important}
.employee-nav button[data-emp-section].active{
  background:var(--emp-accent-soft)!important;color:var(--emp-accent)!important;
  border-color:#f3c8b6!important;box-shadow:0 3px 10px rgba(243,107,53,.08)!important
}
.employee-nav button[data-emp-section].active:after{
  content:"";position:absolute;right:12px;left:12px;bottom:-5px;height:2px;border-radius:5px;background:var(--emp-accent)
}
.employee-nav-mobile-head,.employee-nav-mobile-footer{display:none!important}
.emp-nav-overlay{display:none}

.employee-welcome{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  margin-bottom:12px!important;padding:17px 18px!important;border-radius:18px!important;
  border:1px solid #eadfd9!important;background:linear-gradient(120deg,#fff7f2 0%,#fff 55%,#f7fafc 100%)!important;
  box-shadow:0 10px 30px rgba(32,45,56,.045)!important
}
.employee-welcome small{font-size:8px!important;letter-spacing:.12em!important;color:var(--emp-accent)!important;font-weight:900!important}
.employee-welcome h1{margin:4px 0!important;font-size:22px!important}
.employee-welcome p{margin:0!important;font-size:10px!important;color:var(--emp-muted)!important}
.employee-welcome-date{min-width:140px!important;padding:10px 14px!important;border:1px solid rgba(231,197,181,.8)!important;border-radius:13px!important;background:rgba(255,255,255,.75)!important;text-align:center!important}
.employee-welcome-date span{display:block!important;font-size:8px!important;color:var(--emp-muted)!important}
.employee-welcome-date strong{display:block!important;margin-top:4px!important;font-size:12px!important}

.employee-shell main>.card,.employee-shell .card{
  border:1px solid var(--emp-border)!important;border-radius:16px!important;background:var(--emp-surface)!important;
  box-shadow:0 8px 24px rgba(29,43,54,.04)!important
}
.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:12px!important}
.kpi-grid>article{
  min-height:105px!important;padding:14px!important;border:1px solid var(--emp-border)!important;border-radius:15px!important;
  background:linear-gradient(180deg,#fff,#fafcfd)!important;box-shadow:0 7px 20px rgba(30,44,55,.035)!important
}
.kpi-grid>article span{font-size:9px!important;color:var(--emp-muted)!important}
.kpi-grid>article strong{display:block!important;margin-top:10px!important;font-size:20px!important;letter-spacing:-.02em!important}
.portal-grid{gap:12px!important}
.card-title{align-items:flex-start!important;gap:12px!important}.card-title small{font-size:7px!important;color:var(--emp-muted)!important}.card-title h3{font-size:14px!important;margin:3px 0!important}
.card-title p{font-size:9px!important;color:var(--emp-muted)!important;line-height:1.7!important}
.employee-attendance-buttons{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:7px!important}
.employee-attendance-buttons button{min-height:42px!important;border-radius:10px!important;font-size:9px!important}
.table-wrap{border-radius:11px!important;overflow:auto!important}
table{min-width:620px}
input,select,textarea{
  border:1px solid #dde4e9!important;border-radius:10px!important;background:#fbfcfd!important;
  min-height:40px!important;padding:8px 10px!important;color:var(--emp-text)!important
}
button{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
button:active{transform:scale(.985)}

.employee-login{min-height:100vh!important;padding:24px!important;background:
  radial-gradient(circle at 20% 15%,rgba(243,107,53,.10),transparent 30%),
  linear-gradient(135deg,#f7f9fb,#eef2f5)!important}
.employee-login .login-box{
  width:min(430px,100%)!important;padding:28px!important;border-radius:22px!important;
  border:1px solid #e4e9ed!important;background:rgba(255,255,255,.95)!important;
  box-shadow:0 24px 70px rgba(25,40,51,.12)!important
}
.employee-login .emp-logo img{width:78px!important;height:78px!important;border-radius:20px!important;box-shadow:0 10px 24px rgba(30,43,54,.12)!important}
.employee-login h1{font-size:23px!important;margin:14px 0 6px!important}
.employee-login p{font-size:10px!important;color:var(--emp-muted)!important}
.employee-login label{margin-top:11px!important}.employee-login label span{font-size:9px!important;font-weight:900!important}
#empLoginBtn{min-height:46px!important;border-radius:11px!important;font-weight:900!important;margin-top:14px!important}

/* Dark mode */
[data-theme="dark"]{
  --emp-bg:#0f151a;--emp-surface:#172027;--emp-surface-soft:#11181e;
  --emp-border:#2b3943;--emp-text:#edf2f5;--emp-muted:#9ba8b1;--emp-accent-soft:#2e211b
}
[data-theme="dark"] body{background:var(--emp-bg)!important;color:var(--emp-text)!important}
[data-theme="dark"] .emp-header{background:rgba(23,32,39,.94)!important;border-color:var(--emp-border)!important}
[data-theme="dark"] .employee-nav,[data-theme="dark"] .employee-welcome,[data-theme="dark"] .employee-welcome-date,[data-theme="dark"] .kpi-grid>article,[data-theme="dark"] .employee-shell .card{background:#172027!important;border-color:#2b3943!important;color:#edf2f5!important}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#11181e!important;border-color:#34444f!important;color:#eef2f5!important}
[data-theme="dark"] .employee-nav button[data-emp-section]{color:#bac5cc!important}
[data-theme="dark"] .employee-nav button[data-emp-section]:hover{background:#202b33!important}
[data-theme="dark"] .employee-nav button[data-emp-section].active{background:#2e211b!important;color:#ff8a5c!important;border-color:#5f3b2d!important}

/* Tablet */
@media(max-width:1100px){
  .employee-shell{padding:14px!important}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .portal-grid{grid-template-columns:1fr!important}
  .employee-attendance-buttons{grid-template-columns:repeat(2,1fr)!important}
}

/* Mobile hamburger layout */
@media(max-width:860px){
  .employee-shell{padding:9px 9px 22px!important;overflow-x:hidden!important}
  .emp-header{top:5px!important;min-height:64px!important;padding:9px 10px!important;border-radius:15px!important}
  .emp-user{min-width:0!important}.emp-avatar,.avatar-fallback{width:40px!important;height:40px!important;border-radius:12px!important}
  .emp-user>div:last-child{min-width:0!important}.emp-user h2{font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:145px!important}
  .emp-user span,.emp-user small{font-size:7px!important}
  .emp-now{display:none!important}.emp-logout-btn{display:none!important}
  .emp-mobile-menu-btn{display:grid!important;place-items:center!important;order:3!important}
  .theme-toggle{width:40px!important;height:40px!important}

  .emp-nav-overlay{
    position:fixed!important;inset:0!important;z-index:119!important;background:rgba(10,16,20,.48)!important;
    backdrop-filter:blur(2px)!important;opacity:0!important;visibility:hidden!important;transition:.22s ease!important;display:block!important
  }
  .emp-nav-overlay.show{opacity:1!important;visibility:visible!important}
  body.emp-menu-open{overflow:hidden!important}
  .employee-nav{
    position:fixed!important;top:0!important;right:0!important;bottom:0!important;z-index:120!important;
    width:min(82vw,320px)!important;height:100dvh!important;margin:0!important;padding:12px!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    border:0!important;border-left:1px solid var(--emp-border)!important;border-radius:0!important;
    background:var(--emp-surface)!important;box-shadow:-24px 0 55px rgba(12,22,29,.22)!important;
    transform:translateX(105%)!important;transition:transform .24s cubic-bezier(.2,.7,.3,1)!important
  }
  .employee-nav.mobile-open{transform:translateX(0)!important}
  .employee-nav-mobile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:4px 2px 12px!important;border-bottom:1px solid var(--emp-border)!important}
  .employee-nav-brand{display:flex!important;align-items:center!important;gap:9px!important}
  .employee-nav-brand img{width:40px!important;height:40px!important;border-radius:12px!important;object-fit:cover!important}
  .employee-nav-brand b{display:block!important;font-size:12px!important}.employee-nav-brand small{display:block!important;font-size:8px!important;color:var(--emp-muted)!important}
  .emp-mobile-menu-close{display:grid!important;place-items:center!important}
  .employee-nav-links{display:flex!important;flex-direction:column!important;gap:5px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 0!important}
  .employee-nav button[data-emp-section]{
    width:100%!important;min-height:44px!important;text-align:right!important;justify-content:flex-start!important;
    padding:0 12px!important;border-radius:11px!important;font-size:11px!important
  }
  .employee-nav button[data-emp-section].active:after{display:none!important}
  .employee-nav-mobile-footer{display:block!important;margin-top:auto!important;padding:10px 4px 3px!important;border-top:1px solid var(--emp-border)!important;color:var(--emp-muted)!important;font-size:7px!important}

  .employee-welcome{padding:13px!important;border-radius:15px!important;align-items:flex-start!important}
  .employee-welcome h1{font-size:18px!important}.employee-welcome p{font-size:9px!important;max-width:240px!important}
  .employee-welcome-date{min-width:100px!important;padding:8px!important}.employee-welcome-date strong{font-size:10px!important}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .kpi-grid>article{min-height:90px!important;padding:11px!important}.kpi-grid>article strong{font-size:16px!important}
  .employee-shell main>.card,.employee-shell .card{border-radius:14px!important}
  .card{padding:12px!important}
  .card-title{flex-direction:column!important}
  .card-title>button{width:100%!important}
  .employee-attendance-buttons{grid-template-columns:1fr 1fr!important}
  .ticket-layout,.two-col,.portal-grid{grid-template-columns:1fr!important}
}

/* Small phones */
@media(max-width:520px){
  .employee-shell{padding:7px 7px 18px!important}
  .emp-header{border-radius:13px!important}
  .emp-user h2{max-width:118px!important;font-size:13px!important}
  .employee-welcome{flex-direction:column!important}
  .employee-welcome-date{width:100%!important;text-align:right!important}
  .employee-welcome-date span,.employee-welcome-date strong{display:inline!important;margin-left:5px!important}
  .kpi-grid{grid-template-columns:1fr 1fr!important}
  .kpi-grid>article{min-height:84px!important}
  .kpi-grid>article span{font-size:8px!important}.kpi-grid>article strong{font-size:14px!important}
  .employee-attendance-buttons{grid-template-columns:1fr!important}
  .employee-nav{width:min(88vw,310px)!important}
  .task-self-edit{grid-template-columns:1fr!important}
  .employee-products-grid{grid-template-columns:1fr!important}
  .employee-products-toolbar{grid-template-columns:1fr!important}
  .ticket-reply,.employee-photo-actions,.task-proof-actions{flex-direction:column!important}
  .ticket-reply button,.employee-photo-actions button,.task-proof-actions button{width:100%!important}
  table{min-width:560px!important}
}

/* =========================================================
   v5.110.1 — Compact dashboard cards + compact calendar
   ========================================================= */

/* Attendance + monthly hours: content-height instead of stretched cards */
.portal-grid[data-parent="empDashboardSection"]{
  align-items:start!important;
  grid-auto-rows:auto!important;
}
.portal-grid[data-parent="empDashboardSection"]>.card{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  padding:13px!important;
}
.attendance-card{
  min-height:0!important;
  height:auto!important;
}
.attendance-card .security-note{
  margin:7px 0!important;
  padding:7px 9px!important;
  font-size:8px!important;
  line-height:1.7!important;
}
.attendance-card .employee-attendance-buttons{
  margin:9px 0!important;
  gap:6px!important;
}
.attendance-card .employee-attendance-buttons button{
  min-height:38px!important;
  padding:7px!important;
}
.attendance-card .status-box{
  padding:8px 10px!important;
  font-size:9px!important;
}

/* Monthly hours card */
.portal-grid[data-parent="empDashboardSection"]>.card:not(.attendance-card) .card-title{
  min-height:auto!important;
  margin-bottom:6px!important;
}
#empMonth{
  width:120px!important;
  min-height:34px!important;
  padding:5px 8px!important;
}
.hours-summary{
  margin:6px 0!important;
  gap:5px!important;
}
.hours-summary span{
  padding:5px 8px!important;
  font-size:9px!important;
}
#empHoursTable{
  font-size:9px!important;
}
#empHoursTable th,#empHoursTable td{
  padding:6px 7px!important;
}
.portal-grid[data-parent="empDashboardSection"] .table-wrap{
  max-height:235px!important;
  overflow:auto!important;
  border:1px solid #edf0f2!important;
  border-radius:9px!important;
}

/* Calendar: reduce overall visual footprint */
#empCalendarSection{
  max-width:1180px!important;
  margin-inline:auto!important;
  padding:13px!important;
}
#empCalendarSection .calendar-header{
  margin-bottom:6px!important;
}
#empCalendarSection .calendar-header h3{
  margin:2px 0!important;
  font-size:14px!important;
}
#empCalendarSection .calendar-header small{
  font-size:7px!important;
}
#empCalendarSection .calendar-controls{
  gap:5px!important;
}
#empCalendarSection .calendar-controls button,
#empCalendarSection .calendar-controls select{
  min-height:34px!important;
  height:34px!important;
  padding:4px 8px!important;
  font-size:9px!important;
}
#empCalendarSection .weekdays{
  gap:4px!important;
  margin:8px 0 4px!important;
}
#empCalendarSection .weekdays span{
  font-size:9px!important;
}
#empCalendarSection .employee-calendar{
  gap:4px!important;
}
#empCalendarSection .cal-day{
  min-height:76px!important;
  height:auto!important;
  padding:5px!important;
  border-radius:8px!important;
}
#empCalendarSection .day-no{
  font-size:12px!important;
  line-height:1.2!important;
}
#empCalendarSection .greg-date{
  font-size:7px!important;
}
#empCalendarSection .cal-event,
#empCalendarSection .cal-note{
  font-size:7px!important;
  line-height:1.35!important;
  padding:2px 4px!important;
  margin-top:2px!important;
  border-radius:5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Calendar forms under it should not feel excessively tall either */
.two-col[data-parent="empCalendarSection"]{
  align-items:start!important;
  gap:10px!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
.two-col[data-parent="empCalendarSection"]>.card{
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
  padding:13px!important;
}
.two-col[data-parent="empCalendarSection"] .form-grid{
  gap:7px!important;
}
.two-col[data-parent="empCalendarSection"] textarea{
  min-height:72px!important;
}

/* Tablet: keep attendance cards side-by-side a little longer */
@media (min-width:760px) and (max-width:1100px){
  .portal-grid[data-parent="empDashboardSection"]{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Mobile calendar: compact but readable, horizontal scroll only when necessary */
@media(max-width:860px){
  .portal-grid[data-parent="empDashboardSection"]{
    grid-template-columns:1fr!important;
  }
  .portal-grid[data-parent="empDashboardSection"] .table-wrap{
    max-height:210px!important;
  }
  #empCalendarSection{
    padding:10px!important;
    overflow:hidden!important;
  }
  #empCalendarSection .calendar-header{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:7px!important;
  }
  #empCalendarSection .calendar-controls{
    display:grid!important;
    grid-template-columns:auto 1fr 1fr auto!important;
    width:100%!important;
  }
  #empCalendarSection .weekdays,
  #empCalendarSection .employee-calendar{
    min-width:0!important;
    width:100%!important;
  }
  #empCalendarSection .cal-day{
    min-height:64px!important;
    padding:4px!important;
  }
  #empCalendarSection .day-no{
    font-size:11px!important;
  }
  #empCalendarSection .greg-date{
    display:none!important;
  }
  #empCalendarSection .cal-event,
  #empCalendarSection .cal-note{
    font-size:6.5px!important;
    padding:2px 3px!important;
  }
}

/* Very small phones: retain 7 columns without giant horizontal canvas */
@media(max-width:520px){
  #empCalendarSection .calendar-controls{
    grid-template-columns:1fr 1fr!important;
  }
  #empCalendarSection .calendar-controls button,
  #empCalendarSection .calendar-controls select{
    width:100%!important;
  }
  #empCalendarSection .weekdays{
    gap:2px!important;
  }
  #empCalendarSection .weekdays span{
    font-size:7px!important;
  }
  #empCalendarSection .employee-calendar{
    gap:2px!important;
  }
  #empCalendarSection .cal-day{
    min-height:56px!important;
    padding:3px!important;
    border-radius:6px!important;
  }
  #empCalendarSection .day-no{
    font-size:10px!important;
  }
  #empCalendarSection .cal-event,
  #empCalendarSection .cal-note{
    font-size:6px!important;
    padding:1px 2px!important;
  }
}

/* =========================================================
   v5.110.2 — Equal-width mobile containers + refined calendar
   ========================================================= */

/* One shared content width for all Employee sections */
.employee-shell main{
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
.employee-shell main>.emp-section,
.employee-shell main>[data-parent]{
  width:100%!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

/* Dashboard cards must use the same container width and not look stretched */
.portal-grid[data-parent="empDashboardSection"]{
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:10px!important;
}
.employee-dashboard-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  align-self:start!important;
  box-sizing:border-box!important;
}
.employee-dashboard-card-attendance,
.employee-dashboard-card-hours{
  padding:12px!important;
}

/* Keep both cards visually balanced */
.employee-dashboard-card-attendance .card-title,
.employee-dashboard-card-hours .card-title{
  min-height:34px!important;
  align-items:center!important;
}
.employee-dashboard-card-hours .table-wrap{
  max-height:190px!important;
}
.employee-dashboard-card-attendance .security-note{
  margin:6px 0!important;
  min-height:auto!important;
}
.employee-dashboard-card-attendance .employee-attendance-buttons{
  margin:7px 0!important;
}
.employee-dashboard-card-attendance .employee-attendance-buttons button{
  min-height:36px!important;
}
.employee-dashboard-card-attendance .status-box{
  margin-top:5px!important;
}

/* Calendar page: center and reduce the "spread out" look */
#empCalendarSection{
  width:100%!important;
  max-width:980px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:12px!important;
}
#empCalendarSection .calendar-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin-bottom:8px!important;
}
#empCalendarSection .calendar-controls{
  display:grid!important;
  grid-template-columns:auto 92px 82px auto!important;
  gap:5px!important;
  align-items:center!important;
}
#empCalendarSection .calendar-controls button,
#empCalendarSection .calendar-controls select{
  min-height:32px!important;
  height:32px!important;
  padding:3px 7px!important;
  border-radius:8px!important;
  font-size:8px!important;
}

.employee-calendar-shell{
  width:100%!important;
  max-width:860px!important;
  margin:0 auto!important;
  padding:8px!important;
  border:1px solid #e7ebee!important;
  border-radius:13px!important;
  background:#fbfcfd!important;
}
.employee-calendar-shell .weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:4px!important;
  margin:0 0 4px!important;
  padding:0 2px!important;
}
.employee-calendar-shell .weekdays span{
  padding:4px 0!important;
  text-align:center!important;
  font-size:8px!important;
  font-weight:800!important;
  color:#7a8791!important;
}
.employee-calendar-shell .employee-calendar{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
}
.employee-calendar-shell .cal-day{
  position:relative!important;
  min-height:68px!important;
  height:68px!important;
  padding:5px!important;
  border:1px solid #e5e9ec!important;
  border-radius:9px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
.employee-calendar-shell .cal-day:hover{
  transform:none!important;
  border-color:#d7dde2!important;
  box-shadow:0 4px 12px rgba(34,47,57,.045)!important;
}
.employee-calendar-shell .cal-day.today{
  outline:none!important;
  border-color:#f1a17f!important;
  background:#fff8f4!important;
  box-shadow:inset 0 0 0 1px rgba(241,161,127,.22)!important;
}
.employee-calendar-shell .cal-day.holiday{
  background:#fffafa!important;
  border-color:#f0d6d6!important;
}
.employee-calendar-shell .day-no{
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
.employee-calendar-shell .greg-date{
  position:absolute!important;
  left:5px!important;
  top:5px!important;
  font-size:6px!important;
  color:#9aa4ab!important;
}
.employee-calendar-shell .cal-event,
.employee-calendar-shell .cal-note{
  display:block!important;
  width:100%!important;
  margin-top:3px!important;
  padding:2px 4px!important;
  font-size:6.5px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  border-radius:5px!important;
}

/* Notes/reminders below calendar use the exact same width as calendar */
.two-col[data-parent="empCalendarSection"]{
  width:100%!important;
  max-width:980px!important;
  margin-inline:auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.two-col[data-parent="empCalendarSection"]>.card{
  width:100%!important;
  min-width:0!important;
  margin-top:0!important;
}

/* Dark mode */
[data-theme="dark"] .employee-calendar-shell{
  background:#11181e!important;
  border-color:#2b3943!important;
}
[data-theme="dark"] .employee-calendar-shell .cal-day{
  background:#172027!important;
  border-color:#2b3943!important;
}
[data-theme="dark"] .employee-calendar-shell .cal-day.today{
  background:#2a211c!important;
  border-color:#7b4a36!important;
}

/* Tablet */
@media(max-width:900px){
  .portal-grid[data-parent="empDashboardSection"]{
    grid-template-columns:1fr!important;
  }
  .employee-dashboard-card{
    max-width:100%!important;
  }
  #empCalendarSection{
    max-width:100%!important;
  }
  .two-col[data-parent="empCalendarSection"]{
    grid-template-columns:1fr!important;
    max-width:100%!important;
  }
}

/* Mobile: every section shares the same visual width */
@media(max-width:600px){
  .employee-shell main,
  .employee-shell main>.emp-section,
  .employee-shell main>[data-parent],
  .portal-grid[data-parent="empDashboardSection"],
  #empCalendarSection,
  .two-col[data-parent="empCalendarSection"]{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  .employee-dashboard-card,
  #empCalendarSection,
  .two-col[data-parent="empCalendarSection"]>.card{
    border-radius:12px!important;
  }

  /* attendance/hour cards no longer visually wider than surrounding blocks */
  .employee-dashboard-card{
    padding:10px!important;
  }
  .employee-dashboard-card-hours .table-wrap{
    max-height:170px!important;
  }
  .employee-dashboard-card-attendance .employee-attendance-buttons{
    grid-template-columns:1fr 1fr!important;
  }

  /* Better mobile calendar proportions */
  #empCalendarSection{
    padding:9px!important;
  }
  #empCalendarSection .calendar-header{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  #empCalendarSection .calendar-controls{
    grid-template-columns:1fr 1fr!important;
    gap:5px!important;
  }
  #empCalendarSection .calendar-controls button,
  #empCalendarSection .calendar-controls select{
    width:100%!important;
  }
  .employee-calendar-shell{
    max-width:100%!important;
    padding:5px!important;
    border-radius:10px!important;
  }
  .employee-calendar-shell .weekdays{
    gap:2px!important;
  }
  .employee-calendar-shell .weekdays span{
    font-size:6.5px!important;
    padding:3px 0!important;
  }
  .employee-calendar-shell .employee-calendar{
    gap:2px!important;
  }
  .employee-calendar-shell .cal-day{
    min-height:50px!important;
    height:50px!important;
    padding:3px!important;
    border-radius:6px!important;
  }
  .employee-calendar-shell .day-no{
    font-size:9px!important;
  }
  .employee-calendar-shell .greg-date{
    display:none!important;
  }
  .employee-calendar-shell .cal-event,
  .employee-calendar-shell .cal-note{
    margin-top:2px!important;
    padding:1px 2px!important;
    font-size:5.5px!important;
    border-radius:3px!important;
  }
}

/* =========================================================
   v5.110.3 — Mobile container alignment + calendar rebuild
   ========================================================= */

/* ---------- Desktop / tablet ---------- */
.employee-dashboard-ops-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
  align-items:start!important;
}
.employee-dashboard-ops-grid>.employee-dashboard-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  align-self:start!important;
  box-sizing:border-box!important;
}

/* Make the two cards visually equal-height without giant empty space */
.employee-dashboard-card-attendance,
.employee-dashboard-card-hours{
  min-height:250px!important;
  height:250px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.employee-dashboard-card-attendance .status-box{
  margin-top:auto!important;
}
.employee-dashboard-card-hours .table-wrap{
  flex:1 1 auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:auto!important;
}

/* ---------- Calendar visual rebuild ---------- */
#empCalendarSection{
  width:100%!important;
  max-width:980px!important;
  margin-inline:auto!important;
  padding:12px!important;
  overflow:hidden!important;
}
.employee-calendar-shell{
  width:100%!important;
  max-width:900px!important;
  margin:0 auto!important;
  padding:8px!important;
  background:#fafbfc!important;
  border:1px solid #e3e8ec!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.employee-calendar-scroll{
  width:100%!important;
  overflow:auto hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#ccd5db transparent!important;
}
.employee-calendar-scroll::-webkit-scrollbar{height:5px!important}
.employee-calendar-scroll::-webkit-scrollbar-thumb{background:#ccd5db!important;border-radius:99px!important}

.employee-calendar-shell .weekdays,
.employee-calendar-shell .employee-calendar{
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
}
.employee-calendar-shell .weekdays{
  margin:0 0 5px!important;
}
.employee-calendar-shell .weekdays span{
  padding:5px 0!important;
  font-size:8px!important;
  color:#73808a!important;
  font-weight:900!important;
}
.employee-calendar-shell .cal-day{
  min-height:78px!important;
  height:78px!important;
  padding:6px!important;
  border-radius:9px!important;
  border:1px solid #e3e7ea!important;
  background:#fff!important;
  overflow:hidden!important;
}
.employee-calendar-shell .cal-day.today{
  background:#fff5ef!important;
  border-color:#f09d78!important;
  box-shadow:inset 0 0 0 1px rgba(240,157,120,.18)!important;
}
.employee-calendar-shell .day-no{
  font-size:11px!important;
  font-weight:900!important;
}
.employee-calendar-shell .greg-date{
  font-size:6px!important;
  color:#9ba5ac!important;
}
.employee-calendar-shell .cal-event,
.employee-calendar-shell .cal-note{
  max-width:100%!important;
  padding:2px 4px!important;
  margin-top:3px!important;
  border-radius:5px!important;
  font-size:6.5px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* ---------- Mobile ---------- */
@media(max-width:600px){

  /* Every dashboard block uses the same overall content width */
  .employee-shell main{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
  }
  .employee-shell main>.emp-section,
  .employee-shell main>[data-parent]{
    width:100%!important;
    max-width:none!important;
    margin-inline:0!important;
    box-sizing:border-box!important;
  }

  /* KEY FIX: attendance + hours stay as TWO equal columns like KPI cards */
  .employee-dashboard-ops-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
  }
  .employee-dashboard-ops-grid>.employee-dashboard-card{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    border-radius:11px!important;
    padding:8px!important;
  }

  /* Compact attendance card */
  .employee-dashboard-card-attendance,
  .employee-dashboard-card-hours{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
  }
  .employee-dashboard-card-attendance .card-title,
  .employee-dashboard-card-hours .card-title{
    min-height:28px!important;
    gap:3px!important;
    margin-bottom:4px!important;
  }
  .employee-dashboard-card-attendance .card-title h3,
  .employee-dashboard-card-hours .card-title h3{
    font-size:10px!important;
    margin:0!important;
  }
  .employee-dashboard-card-attendance .card-title small,
  .employee-dashboard-card-hours .card-title small,
  .employee-dashboard-card-attendance #empJalaliDate{
    font-size:6px!important;
  }
  .employee-dashboard-card-attendance .security-note{
    padding:5px!important;
    margin:3px 0!important;
    font-size:6px!important;
    line-height:1.45!important;
    border-right-width:2px!important;
  }
  .employee-dashboard-card-attendance .employee-attendance-buttons{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:4px!important;
    margin:4px 0!important;
  }
  .employee-dashboard-card-attendance .employee-attendance-buttons button{
    min-height:29px!important;
    padding:3px!important;
    font-size:6.5px!important;
    border-radius:7px!important;
  }
  .employee-dashboard-card-attendance .status-box{
    padding:5px!important;
    font-size:6.5px!important;
    border-radius:7px!important;
  }

  /* Compact hours card */
  .employee-dashboard-card-hours .card-title{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  #empMonth{
    width:100%!important;
    min-height:28px!important;
    height:28px!important;
    font-size:7px!important;
    padding:2px 5px!important;
  }
  .employee-dashboard-card-hours .hours-summary{
    gap:3px!important;
    margin:3px 0!important;
  }
  .employee-dashboard-card-hours .hours-summary span{
    padding:3px 4px!important;
    font-size:6px!important;
  }
  .employee-dashboard-card-hours .table-wrap{
    min-height:0!important;
    max-height:none!important;
    border-radius:7px!important;
  }
  .employee-dashboard-card-hours table{
    min-width:340px!important;
    font-size:6px!important;
  }
  .employee-dashboard-card-hours th,
  .employee-dashboard-card-hours td{
    padding:4px!important;
    font-size:6px!important;
  }

  /* Calendar card uses the same outside width as other sections */
  #empCalendarSection{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:8px!important;
    border-radius:11px!important;
  }
  #empCalendarSection .calendar-header{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  #empCalendarSection .calendar-header h3{
    font-size:11px!important;
  }
  #empCalendarSection .calendar-header small{
    font-size:6px!important;
  }
  #empCalendarSection .calendar-controls{
    display:grid!important;
    grid-template-columns:1fr 1fr 1fr 1fr!important;
    gap:3px!important;
  }
  #empCalendarSection .calendar-controls button,
  #empCalendarSection .calendar-controls select{
    width:100%!important;
    min-height:28px!important;
    height:28px!important;
    padding:2px!important;
    font-size:6.5px!important;
    border-radius:7px!important;
  }

  /* KEY UX CHANGE: proper calendar proportions via horizontal scroll */
  .employee-calendar-shell{
    width:100%!important;
    max-width:none!important;
    padding:5px!important;
    border-radius:9px!important;
  }
  .employee-calendar-scroll{
    width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .employee-calendar-shell .weekdays,
  .employee-calendar-shell .employee-calendar{
    width:560px!important;
    min-width:560px!important;
    grid-template-columns:repeat(7,76px)!important;
    gap:4px!important;
  }
  .employee-calendar-shell .weekdays span{
    font-size:7px!important;
    padding:4px 0!important;
  }
  .employee-calendar-shell .cal-day{
    width:76px!important;
    min-width:76px!important;
    height:66px!important;
    min-height:66px!important;
    padding:4px!important;
    border-radius:7px!important;
  }
  .employee-calendar-shell .day-no{
    font-size:9px!important;
  }
  .employee-calendar-shell .greg-date{
    display:block!important;
    font-size:5px!important;
  }
  .employee-calendar-shell .cal-event,
  .employee-calendar-shell .cal-note{
    font-size:5.5px!important;
    padding:1px 3px!important;
    margin-top:2px!important;
  }

  /* Calendar related cards below stay same width */
  .two-col[data-parent="empCalendarSection"]{
    width:100%!important;
    max-width:none!important;
    margin:7px 0 0!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .two-col[data-parent="empCalendarSection"]>.card{
    width:100%!important;
    margin:0!important;
    padding:9px!important;
    border-radius:11px!important;
  }
}

/* Tiny phones */
@media(max-width:390px){
  .employee-dashboard-card-attendance,
  .employee-dashboard-card-hours{
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
  }
}

#empLoginForm{display:grid;gap:0}#empLoginForm #empLoginBtn{width:100%}

.emp-test-pin-note{
  margin-top:10px;padding:8px 10px;border:1px solid #f0d1bf;border-radius:9px;
  background:#fff7f1;color:#a6532e;font-size:10px;text-align:center
}
