*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:#172338;font:15px Inter,Segoe UI,Arial,sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#14243a;color:#dce6f3;padding:24px 16px;display:flex;flex-direction:column}.logo{display:flex;align-items:center;gap:11px;color:white;text-decoration:none;font-weight:700;font-size:18px;padding:0 10px 30px}.logo b,.brand-mark{display:grid;place-items:center;background:#1e91a7;color:#fff;border-radius:12px;width:40px;height:40px;font-size:22px}.logo small{display:block;color:#83a5c5;font-size:11px;letter-spacing:2px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{color:#c2d1e1;text-decoration:none;padding:13px 12px;border-radius:9px}.sidebar nav a:hover{background:#243b59;color:#fff}.userbox{margin-top:auto;border-top:1px solid #33465d;padding:17px 10px 0;display:grid;gap:8px}.userbox a{color:#75d2dc;text-decoration:none}main{margin-left:245px;padding:38px;max-width:1500px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.top h1{margin:0;font-size:28px}.top p{margin:7px 0 0;color:#718096}.pill,.tag{background:#e5f5f5;color:#167887;border-radius:20px;padding:6px 12px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.stats article,.panel{background:white;border:1px solid #e7edf4;border-radius:15px;padding:22px;box-shadow:0 5px 18px #1b35500a}.stats article{display:grid;gap:9px}.stats span,.stats small{color:#738196}.stats strong{font-size:32px}.panel{margin-bottom:20px}.panel h2{font-size:17px;margin:0 0 18px}.quick{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.quick a{padding:12px 15px;background:#eef8fa;border-radius:9px;color:#167887;text-decoration:none}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.formgrid input,.formgrid select,input{min-width:0;border:1px solid #dce4ed;border-radius:8px;padding:11px 12px;font:inherit;background:white}.primary{border:0;border-radius:8px;background:#167f91;color:white;padding:11px 18px;font-weight:600;cursor:pointer}.primary:hover{background:#116878}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#718096;background:#f8fafc}td,th{padding:13px 12px;border-bottom:1px solid #edf1f5}td small{display:block;color:#8491a3;margin-top:4px}.count{font-size:12px;background:#edf2f7;padding:4px 8px;border-radius:20px}.linkbtn{border:0;background:none;color:#c04444;cursor:pointer}.actions{display:flex;gap:5px}.mini{border:0;border-radius:6px;padding:7px 9px;background:#e4f5ed;color:#23764e;cursor:pointer}.mini.danger{background:#fff0ef;color:#b33d36}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#14243a,#1b7181)}.login-card{width:min(420px,calc(100% - 32px));background:white;border-radius:18px;padding:36px;display:grid;gap:12px;box-shadow:0 20px 70px #0003}.login-card h1{margin:8px 0 0;font-size:25px}.login-card h1 span{color:#178698}.login-card p{margin:0 0 12px;color:#758296}.login-card label{font-size:13px;font-weight:600}.login-card small{text-align:center;color:#7a8797;margin-top:7px}.login-card .primary{margin-top:8px;padding:13px}.alert{background:#fff0ef;color:#b33d36;padding:10px;border-radius:8px}@media(max-width:850px){.sidebar{position:relative;width:auto;height:auto;padding:12px}.logo{padding:0 8px 10px}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{white-space:nowrap;padding:9px}.userbox{display:flex;justify-content:space-between;padding:10px}.userbox{border:0}main{margin:0;padding:20px}.stats{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.formgrid{grid-template-columns:1fr}.top h1{font-size:23px}}
.login-logo{display:block;width:min(100%,310px);height:145px;object-fit:contain;margin:0 auto 18px}
.logo{padding:0 4px 28px;justify-content:center}
.logo img{display:block;width:100%;max-height:105px;object-fit:contain;background:#fff;border-radius:10px;padding:5px}
.page-brand{display:flex;justify-content:flex-end;margin:-12px 0 14px}
.page-brand img{width:190px;max-height:100px;object-fit:contain;background:#fff;border-radius:10px;padding:4px}
@media(max-width:800px){.login-logo{height:115px}.page-brand img{width:145px}}

/* Refined dashboard branding */
.dashboard-brand{display:flex;align-items:center;gap:24px;padding:20px 26px;margin:0 0 26px;background:linear-gradient(115deg,#fff 0%,#f7fbf7 68%,#edf5ed 100%);border:1px solid #e2ebdf;border-radius:18px;box-shadow:0 8px 24px rgba(24,54,35,.06);min-height:150px}
.brand-logo-wrap{flex:0 0 210px;height:112px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #edf1e9;border-radius:13px;padding:8px}
.brand-logo-wrap img{display:block;width:100%;height:100%;object-fit:contain}
.brand-copy{min-width:0;flex:1}
.brand-copy .eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#72936c}
.brand-copy h1{font-size:25px;line-height:1.2;margin:7px 0;color:#1e5635}
.brand-copy p{margin:0;color:#718096;font-size:13px}
.dashboard-brand .pill{white-space:nowrap}
.top h2{font-size:19px;margin:0;color:#243449}
@media(max-width:900px){.dashboard-brand{gap:15px;padding:16px}.brand-logo-wrap{flex-basis:150px;height:90px}.brand-copy h1{font-size:20px}}
@media(max-width:600px){.dashboard-brand{align-items:flex-start;flex-wrap:wrap}.brand-logo-wrap{flex:0 0 125px;height:78px}.brand-copy{flex:1 1 180px}.dashboard-brand .pill{margin-left:auto}}

/* Logo rendering correction: constrain image dimensions to prevent flex overflow */
.dashboard-brand{display:flex;align-items:center;gap:22px;min-width:0;overflow:hidden}
.brand-logo-wrap{width:190px;min-width:190px;max-width:190px;height:118px;flex:0 0 190px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.brand-logo-wrap img{width:100% !important;height:100% !important;max-width:100%;max-height:100%;display:block;object-fit:contain;flex:0 0 auto}
.brand-copy{flex:1 1 auto;min-width:0;overflow:hidden}
.brand-copy h1{overflow-wrap:anywhere}
.sidebar .logo{display:flex;width:100%;height:94px;min-height:94px;overflow:hidden;align-items:center;justify-content:center}
.sidebar .logo img{width:100%;height:100%;max-width:205px;max-height:84px;object-fit:contain;display:block;flex:0 0 auto}
.login-logo{width:100%;max-width:290px;height:125px;object-fit:contain;display:block;flex:none}
@media(max-width:900px){.brand-logo-wrap{width:145px;min-width:145px;max-width:145px;height:92px;flex-basis:145px}}
@media(max-width:600px){.dashboard-brand{flex-wrap:wrap}.brand-logo-wrap{width:130px;min-width:130px;max-width:130px;height:82px;flex-basis:130px}}

/* Split-panel sign-in design */
.auth-page{min-height:100vh;margin:0;padding:34px;background:linear-gradient(135deg,#0878d1 0%,#07518e 58%,#073e70 100%);display:grid;place-items:center;font-family:Inter,Segoe UI,Arial,sans-serif}
.auth-shell{width:min(1120px,100%);min-height:620px;display:grid;grid-template-columns:1.04fr .96fr;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 26px 70px rgba(0,25,60,.28)}
.auth-welcome{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:42px 48px;color:#fff;background:linear-gradient(145deg,#087fdf 0%,#0566b5 58%,#064b8c 100%)}
.welcome-content,.welcome-footer{position:relative;z-index:2}
.auth-company-logo{display:block;width:230px;height:125px;object-fit:contain;object-position:left center;background:#fff;border-radius:10px;padding:7px;margin-bottom:42px}
.welcome-tag{font-size:10px;letter-spacing:2px;font-weight:800;color:#d5ecff;margin-bottom:16px}
.welcome-content h1{font-size:43px;line-height:1.08;letter-spacing:.2px;margin:0 0 18px;font-weight:750}
.welcome-content p{font-size:14px;line-height:1.8;color:#e0f1ff;max-width:350px;margin:0}
.welcome-footer{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#c3e5ff}
.welcome-footer span{padding:0 7px;color:#fff}
.welcome-orb{position:absolute;border-radius:50%;pointer-events:none;background:linear-gradient(145deg,rgba(41,174,255,.42),rgba(0,84,174,.08));border:1px solid rgba(255,255,255,.08)}
.orb-one{width:330px;height:330px;right:-125px;bottom:-135px}
.orb-two{width:175px;height:175px;right:105px;bottom:-88px;background:linear-gradient(145deg,rgba(66,190,255,.55),rgba(0,104,204,.12))}
.auth-form-panel{display:grid;place-items:center;padding:50px 54px;background:#fff}
.auth-form{width:min(390px,100%);display:flex;flex-direction:column}
.form-kicker{font-size:10px;letter-spacing:2px;font-weight:800;color:#1687b9;margin-bottom:11px}
.auth-form h2{font-size:31px;letter-spacing:.2px;color:#17283d;margin:0 0 7px}
.form-subtitle{font-size:13px;color:#8995a5;margin:0 0 30px}
.auth-form label{font-size:12px;font-weight:700;color:#28384d;margin:0 0 8px}
.auth-input{height:48px;display:flex;align-items:center;gap:10px;background:#f2f4f7;border:1px solid transparent;border-radius:9px;padding:0 13px;margin-bottom:21px}
.auth-input:focus-within{background:#fff;border-color:#1685c4;box-shadow:0 0 0 3px rgba(22,133,196,.1)}
.field-icon{font-size:17px;color:#6b7787;flex:0 0 auto}
.auth-input input{width:100%;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;font-size:12px;color:#26364b}
.auth-input input::placeholder{color:#9aa4b1}
.show-password{border:0;background:transparent;color:#075b91;font-size:10px;font-weight:700;cursor:pointer}
.auth-submit{height:48px;border:0;border-radius:8px;background:#064b83;color:#fff;font-size:13px;font-weight:700;letter-spacing:.3px;cursor:pointer;box-shadow:0 5px 12px rgba(6,75,131,.16);margin-top:2px}
.auth-submit:hover{background:#063e70}
.auth-submit span{margin-left:8px;font-size:17px}
.auth-note{font-size:10px;line-height:1.6;color:#8994a2;text-align:center;margin:18px 0 22px}
.auth-alert{background:#fff1ef;border:1px solid #ffd9d4;color:#ad352c;border-radius:8px;padding:10px 12px;font-size:12px;margin:-14px 0 18px}
.auth-bottom{border-top:1px solid #edf0f3;padding-top:16px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8994a2}
.auth-bottom a{color:#0878b5;text-decoration:none;font-weight:700}
.auth-bottom a:hover{text-decoration:underline}
@media(max-width:760px){.auth-page{padding:16px}.auth-shell{grid-template-columns:1fr;min-height:0;max-width:500px}.auth-welcome{min-height:260px;padding:24px 28px}.auth-company-logo{width:165px;height:82px;margin-bottom:22px}.welcome-content h1{font-size:30px}.welcome-content p{font-size:12px;max-width:100%}.welcome-footer{margin-top:24px}.auth-form-panel{padding:36px 28px}.orb-one{width:210px;height:210px}.orb-two{width:120px;height:120px}}

/* Login pages: logo removed */
.auth-company-logo{display:none!important}

/* Kenvado green corporate theme */
:root{--ken-green:#287a20;--ken-deep:#174f1c;--ken-mid:#4c9227;--ken-pale:#edf6e9}
.auth-page{background:linear-gradient(135deg,#174f1c 0%,#287a20 55%,#4c9227 100%)}
.auth-welcome{background:linear-gradient(145deg,#174f1c 0%,#286f20 58%,#579a29 100%)}
.auth-brand{position:relative;z-index:3;display:flex;align-items:center;gap:18px;color:#fff;font-size:13px;font-weight:800;letter-spacing:2px;margin-bottom:36px}
.auth-brand-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#f6f9ef;color:#287a20;font-size:23px;letter-spacing:-1px;font-weight:900;border:5px solid rgba(255,255,255,.28);box-shadow:0 5px 18px rgba(0,0,0,.12)}
.welcome-content h1{font-weight:500}
.welcome-content h1 strong{font-weight:800}
.welcome-tag{color:#dcebd1}
.welcome-orb{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.04)}
.orb-two{background:rgba(255,255,255,.07)}
.form-kicker{color:#398426}
.auth-input:focus-within{border-color:#4b9829;box-shadow:0 0 0 3px rgba(75,152,41,.12)}
.auth-submit{background:linear-gradient(100deg,#287a20,#4b9227);box-shadow:0 6px 16px rgba(40,122,32,.2)}
.auth-submit:hover{background:#205f1b}
.auth-bottom a,.show-password{color:#287a20}
.sidebar{background:linear-gradient(180deg,#174f1c,#236b20);color:#e8f2e3}
.sidebar nav a{color:#d5e8d0}
.sidebar nav a:hover{background:rgba(255,255,255,.13);color:#fff}
.userbox{border-top-color:rgba(255,255,255,.2)}
.userbox a{color:#c2e9a9}
.logo b,.brand-mark{background:#4b9227}
.pill,.tag{background:#e8f3e3;color:#287a20}
.quick a{background:#edf6e9;color:#287a20}
button.primary,.primary{background:#287a20!important;border-color:#287a20!important;color:#fff}
a{--link-green:#287a20}
.dashboard-brand{background:linear-gradient(115deg,#fff 0%,#f7fbf5 68%,#edf6e9 100%);border-color:#dcebd5}
.brand-copy h1{color:#205f25}
@media(max-width:760px){.auth-brand{margin-bottom:22px}.auth-brand-mark{width:54px;height:54px;font-size:18px}}

.side-nav{display:flex;flex-direction:column;gap:3px}
.nav-group{display:flex;flex-direction:column;margin:7px 0 4px}
.nav-group-title{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#a8d09b;padding:10px 15px 5px}
.side-nav>a,.nav-group>a{display:block;text-decoration:none;padding:10px 15px;border-radius:8px;color:inherit}
.side-nav>a:hover,.nav-group>a:hover{background:rgba(255,255,255,.12)}

/* Keep the complete navigation reachable on shorter screens */
.sidebar{height:100vh;overflow:hidden}
.side-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 2px 14px;scrollbar-width:thin;scrollbar-color:rgba(220,240,215,.45) transparent}
.side-nav::-webkit-scrollbar{width:6px}
.side-nav::-webkit-scrollbar-thumb{background:rgba(220,240,215,.45);border-radius:8px}
.nav-group{flex:0 0 auto}
.userbox{flex:0 0 auto;margin-top:8px}
@media(max-width:850px){.sidebar{height:auto;overflow:visible}.side-nav{flex:0 1 auto;min-height:0;max-height:55vh;overflow-y:auto;overflow-x:auto}.userbox{margin-top:8px}}

/* Keep attendance export employee selector within its panel and viewport. */
.attendance-export label{display:block;min-width:0;width:100%;}
.attendance-export label select,.attendance-export label input{display:block;width:100%;max-width:100%;min-width:0;}

/* Kenvado green mobile-first refinement */
:root{--kenvado:#218447;--kenvado-dark:#176536;--kenvado-soft:#eaf6ee}
body{background:#f5f8f5}
.sidebar{background:#174b2e}
.sidebar nav a:hover,.sidebar nav a:focus{background:#286641}
.logo b,.brand-mark{background:#218447}
.primary{background:#218447}
.primary:hover{background:#176536}
.pill,.tag{background:#e8f5ec;color:#176536}
.quick a{background:#eaf6ee;color:#176536}
.login{background:linear-gradient(135deg,#174b2e,#218447)}
.auth-page{background:linear-gradient(135deg,#174b2e 0%,#218447 58%,#123f27 100%)}
.auth-welcome{background:linear-gradient(145deg,#218447 0%,#176536 58%,#123f27 100%)}
.form-kicker{color:#218447}
@media(max-width:700px){
 body{font-size:14px}
 .sidebar{position:sticky;top:0;z-index:20;width:100%;padding:8px 10px;box-shadow:0 3px 12px rgba(20,60,35,.12)}
 .sidebar .logo{height:48px;min-height:48px;padding:0 4px 6px;justify-content:flex-start}
 .sidebar .logo img{max-width:145px;max-height:42px}
 .sidebar nav{display:flex;gap:5px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin}
 .sidebar nav a{flex:0 0 auto;padding:9px 11px;font-size:12px;border-radius:8px}
 .userbox{padding:7px 3px 2px;font-size:12px;gap:10px;flex-wrap:wrap}
 main{margin:0;padding:14px 12px 26px;width:100%}
 .top{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:16px}
 .top h1{font-size:22px}
 .panel,.stats article{padding:15px;border-radius:12px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .stats strong{font-size:25px}
 .formgrid{grid-template-columns:1fr;gap:10px}
 .formgrid input,.formgrid select,input,select,textarea{min-height:44px;font-size:16px}
 .primary,button,.btn{min-height:42px}
 .tablewrap{margin:0 -4px}
 td,th{padding:10px 9px}
 .actions{flex-wrap:wrap}
 .dashboard-brand{gap:10px;padding:12px;margin-bottom:16px}
 .brand-logo-wrap{width:105px;min-width:105px;max-width:105px;height:68px;flex-basis:105px}
 .brand-copy h1{font-size:18px}
 .brand-copy p{font-size:12px}
 .page-brand{justify-content:center}
 .page-brand img{width:130px}
 .auth-page{padding:12px}
 .auth-shell{grid-template-columns:1fr;min-height:0;border-radius:14px}
 .auth-welcome{padding:20px;min-height:150px}
 .auth-company-logo{width:150px;height:75px;margin-bottom:14px}
 .welcome-content h1{font-size:25px}
 .welcome-content p,.welcome-footer{display:none}
 .auth-form-panel{padding:25px 20px}
 .auth-form h2{font-size:25px}
}
@media(max-width:380px){.stats{grid-template-columns:1fr}.sidebar nav a{padding:8px;font-size:11px}}


/* Reliable Kenvado logo rendering */
.auth-company-logo{display:block;width:230px;height:105px;object-fit:contain;background:#fff;border-radius:12px;padding:6px;box-sizing:border-box}.portal-logo{display:block;width:150px;height:62px;object-fit:contain;background:#fff;border-radius:8px;padding:3px;box-sizing:border-box}.sidebar .brand{display:flex;align-items:center;gap:8px}.sidebar .brand .portal-logo + div{min-width:0}@media(max-width:700px){.auth-company-logo{width:180px;height:82px}.portal-logo{width:120px;height:48px}}
