:root{--teal:#075d5a;--deep:#064944;--teal-dark:#053e3c;--orange:#f77b16;--orange-dark:#de6509;--ink:#193f3d;--muted:#758887;--border:#e1eae8;--light:#f5f8f7;--white:#fff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--light);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled,select:disabled,input:disabled{opacity:.62;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffc080;outline-offset:2px}h1,h2,h3,p{margin-top:0}a{color:inherit;text-decoration:none}.loading{padding:70px;text-align:center}.overline{font-size:10px;font-weight:850;letter-spacing:2px;color:var(--orange);text-transform:uppercase}.muted{color:var(--muted);font-size:13px;line-height:1.75}.primary,.secondary,.danger-outline{border-radius:10px;display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:12px 17px;border:1px solid transparent;font-size:12px;font-weight:800;min-height:42px;white-space:nowrap;transition:.15s}.primary{background:var(--orange);color:white;box-shadow:0 6px 15px #f77b1626}.primary:hover{background:var(--orange-dark);transform:translateY(-1px)}.secondary{background:white;border-color:#dbe5e1;color:#285550}.secondary:hover{background:#f3f8f6}.danger-outline{background:#fffafa;border-color:#e8c8c8;color:#ad5050}.wide{width:100%;height:50px}.icon-btn{width:35px;height:35px;border:0;background:#f1f5f3;color:#4e6d68;border-radius:9px;display:grid;place-items:center}.icon-btn.light{background:#19716a;color:white}.text-link,.back-link{border:0;background:none;color:#008077;font-weight:800;font-size:12px;display:inline-flex;align-items:center;gap:3px}.back-link{font-size:13px;padding:0}.back-row{margin-bottom:20px}.toast{position:fixed;z-index:200;right:24px;bottom:22px;max-width:min(460px,calc(100vw - 32px));background:#064d49;color:white;padding:15px 20px;font-size:13px;font-weight:650;line-height:1.5;border-radius:12px;box-shadow:0 13px 36px #00383336}.toast.error{background:#963f40}.toast[hidden]{display:none}
/* Login */
.login-page{min-height:100vh;display:grid;grid-template-columns:52% 48%;background:white}.login-hero{position:relative;min-height:680px;background:#075750;overflow:hidden}.login-photo{position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(0,39,39,.2) 12%,rgba(0,42,40,.75) 100%),url('/assets/alkusz-iroda.jpg');background-size:cover;background-position:center center;transform:scale(1.015)}.login-hero:after{content:'';position:absolute;right:-115px;bottom:-170px;width:300px;height:300px;background:var(--orange);transform:rotate(32deg);border-radius:45px;opacity:.8}.hero-content{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;min-height:100vh;padding:48px 56px 66px;color:white}.hero-top,.login-mini{display:flex;gap:12px;align-items:center}.hero-top span{font-size:17px;font-weight:700;letter-spacing:.7px}.hero-top strong{font-weight:900}.hero-line{display:block;width:40px;height:3px;background:var(--orange);margin-bottom:26px}.overline.light{color:#ffd4aa}.hero-bottom h1{font-size:clamp(35px,4.1vw,64px);letter-spacing:-2.5px;font-weight:860;line-height:1.06;margin:14px 0 18px}.hero-bottom h1 em{font-style:normal;color:#ff962f}.hero-bottom p{max-width:470px;color:#e1f0eb;font-size:15px;line-height:1.8}.hero-tag{margin-top:42px;border:1px solid #a9d8d044;border-radius:30px;display:inline-flex;padding:11px 16px;font-weight:700;color:#e5efeb;font-size:11px;letter-spacing:.5px;background:#0d5e5777}.login-right{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 38px;position:relative}.login-inner{width:min(100%,422px);margin:auto}.login-mini{margin-bottom:63px}.login-mini strong{display:block;font-size:17px;letter-spacing:.5px;font-weight:900}.login-mini small{display:block;color:#9daaa5;font-size:12px;margin-top:3px}.login-inner h2{font-size:35px;letter-spacing:-1.3px;margin:12px 0;font-weight:850;color:#144943}.login-sub{font-size:14px;color:#849691;line-height:1.8;max-width:355px;margin-bottom:32px}.form-stack{display:grid;gap:19px}.form-stack label,.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#375d59}.form-stack input,.field input,.field select{background:#fff;border:1px solid #dae4e1;border-radius:10px;padding:14px 15px;min-height:47px;font-size:13px;color:#254d47;width:100%;outline:0}.form-stack input:focus,.field input:focus,.field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ffecdb}.form-stack input::placeholder{color:#aab8b3}.secure-hint{margin:28px 0;color:#9caea6;font-size:11px;display:flex;align-items:center;gap:8px}.login-foot{font-size:11px;color:#a6b1ae;text-align:center;width:100%}
/* App shell */
.layout{display:flex;min-height:100vh}.sidebar{width:250px;flex-shrink:0;position:sticky;top:0;height:100vh;background:linear-gradient(165deg,#006a62 0%,#075450 48%,#023e3d 100%);color:white;display:flex;flex-direction:column;box-shadow:5px 0 24px #063e3d13}.brand{min-height:112px;padding:24px 21px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #ffffff25}.brand img{background:#fff;border-radius:11px;padding:4px;object-fit:contain}.brand strong{display:block;font-size:14px;letter-spacing:.1px;font-weight:900}.brand small{display:block;font-size:9px;color:#bdddd4;letter-spacing:1.4px;margin-top:6px}.nav-group-label{font-size:9px;letter-spacing:1.55px;color:#b1d4ce;font-weight:850;margin:30px 21px 13px}.nav-group-label.second{margin-top:29px}.sidebar nav{display:grid;gap:5px;padding:0 10px}.nav{width:100%;text-align:left;background:transparent;color:#d9ebe7;border:0;padding:13px 15px;display:flex;gap:13px;align-items:center;border-radius:10px;font-size:12px;font-weight:700}.nav.on{background:linear-gradient(100deg,#ff961e,#f47b13);color:white;box-shadow:0 8px 18px #003e3a34}.nav:not(.on):hover{background:#ffffff1a}.sidebar-bottom{margin-top:auto;padding:21px 13px 27px;border-top:1px solid #ffffff21}.side-version{display:block;color:#a8d0ca;font-size:10px;letter-spacing:1px;margin:0 9px 16px}.side-user{display:flex;gap:10px;align-items:center}.avatar-mini,.top-avatar{width:37px;height:37px;border-radius:11px;background:var(--orange);color:white;display:grid;place-items:center;font-size:12px;font-weight:850;flex-shrink:0}.side-user-name{min-width:0;flex:1}.side-user-name strong{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.side-user-name small{display:block;font-size:10px;color:#c5e0dc;margin-top:4px}.main{flex:1;min-width:0}.topbar{height:80px;background:white;border-bottom:1px solid var(--border);padding:0 38px;display:flex;justify-content:space-between;align-items:center}.crumb{font-size:12px;letter-spacing:.3px;font-weight:750;color:#738e87}.crumb span{color:#c3d2cc;margin:0 12px}.crumb b{color:#245b55}.top-actions{display:flex;gap:21px;align-items:center}.test-badge{background:#e8f4ee;color:#08765e;border-radius:40px;border:1px solid #cce8d9;padding:9px 13px;font-size:9px;letter-spacing:.4px;font-weight:850;display:flex;gap:7px;align-items:center}.test-badge i{width:6px;height:6px;background:#29b87c;border-radius:50%}.top-avatar{width:36px;height:36px;background:#e7f2ed;color:#167162}.content{max-width:1500px;margin:auto;padding:35px 38px 70px}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.heading h1{font-size:28px;letter-spacing:-.9px;margin:11px 0 7px;font-weight:850}.heading p{font-size:13px;color:#80918e;margin:0;line-height:1.65}.heading-actions{display:flex;gap:10px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat,.panel,.profile-section{background:white;border:1px solid var(--border);border-radius:15px;box-shadow:0 6px 28px #164c4310}.stat{padding:23px;min-height:160px}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7a918b;font-size:11px;font-weight:700}.stat-icon{display:grid;place-items:center;background:#eaf6f0;width:38px;height:38px;border-radius:11px;color:#0c8b7c}.stat.accent .stat-icon{background:#fff0e1;color:#f7820b}.stat strong{font-size:30px;display:block;letter-spacing:-.6px;margin:12px 0 5px;color:#154b46;font-weight:850}.stat small{font-size:10px;color:#9aaba4}.panel-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.panel{padding:23px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}.panel-title h2{font-size:16px;letter-spacing:-.2px;margin:0 0 7px}.panel-title p{color:#93a49c;font-size:11px;margin:0;line-height:1.5}.title-icon{background:#eaf7f0;color:#0c8a77;padding:10px;border-radius:11px}.person-mini{width:100%;display:flex;gap:11px;align-items:center;border:0;background:transparent;text-align:left;padding:13px 7px;border-bottom:1px solid #edf2ef;color:#316058}.person-mini:last-child{border-bottom:0}.person-mini:hover{background:#f5f9f7}.person-mini.inactive{background:#eff1f1}.person-circle{--person:#08766B;width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--person) 13%,white);color:var(--person);font-size:12px;font-weight:850;flex-shrink:0}.person-circle.small{width:35px;height:35px}.person-mini-name{flex:1;min-width:0}.person-mini-name strong{display:block;font-size:12px;color:#24504b}.person-mini-name small{display:block;font-size:10px;color:#96a49f;margin-top:4px}.pill{padding:6px 9px;border-radius:30px;font-size:9px;display:inline-flex;font-weight:850;white-space:nowrap}.pill.green{background:#e4f6ed;color:#12836b}.pill.gray{background:#e0e5e5;color:#768181}.event{display:flex;gap:13px;align-items:center;padding:14px 0;border-bottom:1px solid #edf2ef}.event>div:nth-child(2){min-width:0;flex:1}.event b{font-size:11px;display:block}.event small{display:block;font-size:10px;color:#97a59f;margin-top:5px}.date-square{width:46px;height:48px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff0e2;border-radius:10px;color:#e57a15;flex-shrink:0}.date-square strong{font-size:16px}.date-square small{color:#c38d51;margin:0}.days{white-space:nowrap;color:#088879;font-size:10px;font-weight:800}.info-note{background:#eff8f5;border:1px solid #d6eae4;border-radius:11px;padding:14px 16px;margin-top:19px;display:flex;align-items:flex-start;gap:10px;color:#548078;font-size:11px;line-height:1.7}.empty{text-align:center;padding:30px;color:#93a39d;font-size:12px;line-height:1.7}
/* Staff list */
.staff-panel{padding:0;overflow:hidden}.filter-row{padding:21px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #edf1ef}.search-box{display:flex;align-items:center;border:1px solid var(--border);padding:0 12px;gap:10px;border-radius:9px;min-width:250px;flex:1;color:#98aaa3}.search-box input{min-width:0;flex:1;border:0;outline:0;padding:12px 0;font-size:12px;color:#204940}.filter-row select,.inline-control select{border:1px solid var(--border);border-radius:9px;background:white;color:#466960;padding:12px 10px;font-size:11px;min-height:43px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{background:#f8faf9;padding:14px 17px;color:#899a94;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #e8efeb}td{padding:13px 17px;border-bottom:1px solid #eef2f0;font-size:12px;color:#546e68}.inactive-row,.inactive-row:hover{background:#eaeeee!important;color:#82918e}.inactive-row td{color:#87938f}.inactive-row .name-cell strong{color:#778481!important}.name-cell{display:flex;align-items:center;gap:10px}.name-cell strong{font-weight:850;font-size:12px;display:block}.name-cell small{display:block;color:#9baaa4;font-size:10px;margin-top:4px}.group-tag{font-size:10px;font-weight:800;color:#147666;background:#e6f4ec;padding:7px 10px;border-radius:7px}.group-tag.vip{background:#fff0e2;color:#be751e}.role-label{font-size:11px}.table-open{border:1px solid #e5eeea;background:white;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;color:#598a7f}.table-footer{padding:14px 21px;color:#95a39d;font-size:11px}
/* Staff detail */
.profile-header{padding:27px 29px;background:white;border:1px solid var(--border);border-radius:16px;display:flex;justify-content:space-between;align-items:center;gap:17px;margin-bottom:20px;box-shadow:0 5px 25px #003b3410}.profile-header.inactive-card{background:#eef1f1;border-color:#d7dfdc}.profile-person{display:flex;align-items:center;gap:21px}.big-avatar{width:72px;height:72px;background:color-mix(in srgb,var(--person) 13%,white);color:var(--person);border-radius:19px;display:grid;place-items:center;font-size:25px;font-weight:900}.profile-header h1{font-size:26px;letter-spacing:-.5px;margin:9px 0 6px}.profile-sub{color:#849890;display:flex;align-items:center;gap:10px;font-size:12px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-section{overflow:hidden}.profile-tabs{display:flex;gap:28px;border-bottom:1px solid #e7efeb;padding:0 26px;overflow:auto;white-space:nowrap}.profile-tabs button{border:0;background:transparent;color:#91a19a;padding:20px 0 17px;font-size:12px;font-weight:800;border-bottom:3px solid transparent}.profile-tabs button.active{border-bottom-color:var(--orange);color:#144d46}.tab-body{padding:29px;min-height:310px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 20px}.field{gap:10px}.field input,.field select{min-width:0}.form-divider{height:1px;background:#e6ede8;margin:23px 0}.form-actions{display:flex;justify-content:flex-end;margin-top:27px}.color-wrap{display:flex;gap:10px;align-items:center;border:1px solid #dae4e1;border-radius:10px;padding:7px 12px;min-height:47px;font-size:12px;color:#8aa098}.color-wrap input{width:40px;height:31px;padding:0;border:0;border-radius:5px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-stat{background:#f7faf8;border:1px solid #e7efeb;border-radius:10px;padding:16px 18px}.detail-stat small{display:block;font-size:10px;color:#95a59c;margin-bottom:9px}.detail-stat strong{font-size:13px;overflow-wrap:anywhere}.access-box{border-top:1px solid #e5ece8;margin-top:25px;padding-top:20px}.access-box h3{font-size:13px;margin:0 0 7px}.access-box p{color:#819891;font-size:11px}.inline-control{display:flex;gap:9px;margin:13px 0}.permissions-intro{font-size:12px;color:#70867f;line-height:1.8;background:#f7faf9;border-radius:10px;padding:15px;margin:0 0 12px}.perm-list{display:grid}.perm-row{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:14px 4px;border-bottom:1px solid #eaf0ed}.perm-row span{min-width:0}.perm-row strong{display:block;font-size:12px}.perm-row small{display:block;font-size:10px;color:#9baa9f;margin-top:5px}.perm-row select{border:1px solid var(--border);background:white;border-radius:8px;color:#45675f;padding:10px;min-width:150px;max-width:160px;font-size:11px}.leave-card{display:flex;gap:26px;align-items:flex-start;max-width:630px;border:1px solid #d7eee3;background:#f6faf8;border-radius:12px;padding:27px}.leave-icon{background:#e5f6ed;padding:13px;color:#138c74;border-radius:13px}.leave-big{font-weight:900;font-size:48px;letter-spacing:-2px;margin:10px 0;color:#116a61}.leave-big span{font-size:18px;color:#7ba092;letter-spacing:0}.leave-card p{color:#7d998e;font-size:12px;line-height:1.8;margin:0}.history-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9f0ed;padding:16px 0;gap:10px}.history-row>div{display:flex;align-items:center;gap:10px;font-size:12px}.history-row small{font-size:11px;color:#8aa096}.tab-body h3{font-size:14px}
/* Milestones, audit, modal */
.milestone-item{display:flex;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid #edf2ef}.milestone-symbol,.log-icon{background:#fff3e7;color:#e88a2a;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;flex-shrink:0}.milestone-item>div:nth-child(2){flex:1}.milestone-item strong{display:block;font-size:13px}.milestone-item p{margin:5px 0 0;color:#93a39d;font-size:11px}.days-indicator{color:#0a8c75;font-size:11px;font-weight:800}.audit-entry{display:flex;gap:13px;align-items:center;border-bottom:1px solid #ebf1ee;padding:15px 0}.audit-entry>div:nth-child(2){flex:1}.log-icon{background:#eaf6f1;color:#0d816f}.audit-entry strong{font-size:12px}.audit-entry p{margin:5px 0 0;color:#91a39a;font-size:11px}.audit-entry time{color:#92a49b;font-size:10px}.modal-bg{position:fixed;inset:0;z-index:100;background:#0d3631ae;display:flex;align-items:flex-start;justify-content:center;padding:5vh 16px;overflow:auto}.modal{width:min(100%,680px);background:white;border-radius:19px;padding:31px;box-shadow:0 24px 70px #00372c4f}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-head h2{font-size:24px;letter-spacing:-.7px;margin:8px 0 0}.modal-note{color:#789187;background:#f0f8f4;border-radius:10px;padding:13px;font-size:11px;line-height:1.6;margin:19px 0 0}.modal .form-stack{max-width:none}.modal .form-stack .form-actions{margin-top:8px}
@media(max-width:1150px){.sidebar{width:218px}.content{padding:29px 25px}.topbar{padding:0 25px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-grid{grid-template-columns:1fr}.profile-header{align-items:flex-start;flex-direction:column}.login-hero{min-height:620px}.hero-content{padding:34px}.login-right{padding:25px}}
@media(max-width:750px){.login-page{grid-template-columns:1fr}.login-hero{min-height:230px;height:230px}.hero-content{min-height:230px;padding:16px 22px}.hero-top{gap:8px}.hero-top img{width:33px;height:33px}.hero-top span{font-size:13px}.hero-line{margin-bottom:10px}.hero-bottom h1{font-size:29px;letter-spacing:-1px;margin:5px 0}.hero-bottom p,.hero-tag{display:none}.login-right{padding:32px 24px 22px;min-height:calc(100vh - 230px)}.login-inner{margin:0 auto 25px}.login-mini{margin-bottom:32px}.login-inner h2{font-size:28px}.sidebar{position:relative;width:65px;min-height:100vh;height:auto;flex-shrink:0}.brand{padding:14px 10px;justify-content:center;min-height:74px}.brand img{width:39px;height:39px}.brand>div,.nav-group-label,.nav span,.sidebar-bottom .side-version,.side-user-name,.sidebar-bottom .icon-btn{display:none}.sidebar nav{padding:12px 7px}.nav{padding:12px;justify-content:center}.sidebar-bottom{padding:10px 7px;justify-content:center}.side-user{justify-content:center}.topbar{height:62px;padding:0 14px}.crumb{font-size:10px}.crumb span{margin:0 6px}.top-actions{gap:7px}.test-badge{font-size:8px;padding:7px}.top-avatar{display:none}.content{padding:25px 14px 60px}.heading{flex-direction:column;align-items:flex-start}.heading h1{font-size:23px}.stat-grid{gap:9px}.stat{padding:15px;min-height:140px}.stat strong{font-size:24px}.stat-top{align-items:flex-start;font-size:10px}.stat-icon{width:29px;height:29px}.panel{padding:16px}.filter-row{padding:12px}.search-box{min-width:100%}.filter-row select{flex:1;min-width:100px}.profile-header{padding:16px}.profile-person{gap:12px}.big-avatar{width:49px;height:49px;border-radius:12px;font-size:18px}.profile-header h1{font-size:21px}.profile-actions{width:100%}.profile-actions button{flex:1}.profile-tabs{gap:17px;padding:0 17px}.profile-tabs button{font-size:11px}.tab-body{padding:17px}.form-grid,.detail-grid{grid-template-columns:1fr}.modal{padding:19px}.perm-row{align-items:stretch;flex-direction:column}.perm-row select{max-width:100%}.leave-card{gap:10px;padding:15px}.audit-entry time{max-width:100px;text-align:right}.hero-bottom .overline{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Inaktív munkatárs korábban naplózott műveleteinek megőrzött, szürkített megjelenítése */
.audit-entry.inactive-event{background:#edf0ef;border-radius:8px;padding:15px 11px}.audit-entry.inactive-event strong,.audit-entry.inactive-event p,.audit-entry.inactive-event time{color:#87938e}.audit-entry.inactive-event .log-icon{background:#e2e7e5;color:#8b9691}

/* 1.2 – Bejelentkezés, nézetváltás és személyenkénti sötét mód */
.theme-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 11px;border:1px solid var(--border);border-radius:11px;background:var(--white);color:var(--ink);font-size:11px;font-weight:800;white-space:nowrap}
.theme-action:hover{border-color:var(--orange)}
.login-theme{position:absolute;top:24px;right:30px}
.login-help-row{display:flex;justify-content:flex-end;margin-top:-3px;margin-bottom:0}
.login-help-row .text-link{padding:0;font-size:12px}
.password-wrap{position:relative;display:block;width:100%}
.password-wrap input{padding-right:53px!important}
.password-reveal{position:absolute;right:7px;top:50%;transform:translateY(-50%);height:34px;width:37px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.password-reveal:hover{background:#e8f3ef;color:var(--teal)}
.login-back{margin-top:22px}
.mail-notice{background:#fff5e9;border:1px solid #f5d2a4;padding:13px;border-radius:11px;color:#865616;font-size:12px;line-height:1.75}
.profile-popup-wrap{position:relative}
.profile-trigger{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 5px;border:1px solid var(--border);border-radius:12px;background:var(--white);color:var(--ink);min-height:46px}
.profile-trigger-text{display:flex;flex-direction:column;align-items:flex-start;font-size:12px;font-weight:850;gap:3px;white-space:nowrap}
.profile-trigger-text small{color:var(--muted);font-size:10px;font-weight:650}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:260px;max-width:calc(100vw - 24px);z-index:60;border:1px solid var(--border);background:var(--white);box-shadow:0 12px 35px #0e363322;border-radius:15px;padding:9px;display:grid;gap:3px}
.profile-dropdown.staff-dropdown{top:68px;right:16px}
.profile-dropdown-title{font-size:10px;letter-spacing:1.2px;font-weight:850;color:var(--muted);padding:11px 9px 5px}
.view-option{display:flex;gap:11px;align-items:center;width:100%;text-align:left;background:transparent;border:0;border-radius:9px;padding:12px 10px;color:var(--ink);font-size:12px;font-weight:750}
.view-option svg:last-child:not(:first-child){margin-left:auto}
.view-option:hover{background:var(--light)}
.view-option.selected{background:#e6f4ee;color:#066c5e}
.dropdown-rule{height:1px;background:var(--border);margin:7px 3px}
.employee-welcome{border:1px solid var(--border);background:linear-gradient(115deg,#065852,#0d7970);color:#fff;border-radius:17px;padding:26px;display:flex;align-items:center;gap:20px;margin-bottom:23px}
.employee-welcome .overline{color:#ffd2a3}
.employee-welcome h2{color:#fff;font-size:23px;margin:6px 0}
.employee-welcome p{color:#d8f0ea;font-size:12px;margin:0}
.employee-welcome button{margin-left:auto}
.employee-avatar{display:grid;place-items:center;width:71px;height:71px;background:#ffffff26;color:#fff;border:1px solid #ffffff45;border-radius:16px;font-size:23px;font-weight:850;flex-shrink:0}
.employee-profile{max-width:900px}
.employee-profile .profile-person{margin-bottom:20px}
.employee-profile .info-note{margin-top:25px}
.employee-profile .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Teljes alkalmazásra kiterjedő sötét színrendszer; helyben, felhasználónként tárolt választás. */
:root[data-theme="dark"]{color-scheme:dark;--teal:#31b7a3;--deep:#10282b;--teal-dark:#0d2225;--orange:#ff8c35;--orange-dark:#ea7722;--ink:#e7f2ef;--muted:#a9bfba;--border:#2e494b;--light:#0e2024;--white:#182c30;background:var(--light);color:var(--ink)}
[data-theme="dark"] body,[data-theme="dark"] .main,[data-theme="dark"] .content{background:#0e2024;color:var(--ink)}
[data-theme="dark"] .login-page,[data-theme="dark"] .login-right,[data-theme="dark"] .topbar,[data-theme="dark"] .stat,[data-theme="dark"] .panel,[data-theme="dark"] .profile-section,[data-theme="dark"] .modal{background:#182c30;color:#e7f2ef}
[data-theme="dark"] .topbar{border-color:var(--border)}
[data-theme="dark"] .login-inner h2,[data-theme="dark"] .login-mini strong,[data-theme="dark"] .heading h1,[data-theme="dark"] .panel-title h2,[data-theme="dark"] .stat strong,[data-theme="dark"] .profile-header h1,[data-theme="dark"] .crumb b,[data-theme="dark"] .profile-tabs button.active{color:#eaf7f2}
[data-theme="dark"] .login-mini small,[data-theme="dark"] .login-sub,[data-theme="dark"] .login-foot,[data-theme="dark"] .secure-hint,[data-theme="dark"] .heading p,[data-theme="dark"] .stat-top,[data-theme="dark"] .stat small,[data-theme="dark"] .panel-title p,[data-theme="dark"] .person-mini-name small,[data-theme="dark"] .profile-sub,[data-theme="dark"] .crumb,[data-theme="dark"] .audit-entry p,[data-theme="dark"] .audit-entry time{color:#a7beb6}
[data-theme="dark"] .form-stack label,[data-theme="dark"] .field{color:#d2e8e1}
[data-theme="dark"] .form-stack input,[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .filter-row select,[data-theme="dark"] .inline-control select,[data-theme="dark"] .perm-row select,[data-theme="dark"] .search-box input{background:#102326;border-color:#375559;color:#e5f6ee}
[data-theme="dark"] .form-stack input::placeholder,[data-theme="dark"] .search-box input::placeholder{color:#86a49e}
[data-theme="dark"] .secondary,[data-theme="dark"] .table-open,[data-theme="dark"] .icon-btn{background:#244045;border-color:#365558;color:#d9ece6}
[data-theme="dark"] .secondary:hover,[data-theme="dark"] .person-mini:hover,[data-theme="dark"] .password-reveal:hover{background:#2b4a4b;color:#eaf7f3}
[data-theme="dark"] .person-mini,[data-theme="dark"] .person-mini-name strong,[data-theme="dark"] .filter-row select,[data-theme="dark"] td{color:#dbeee7}
[data-theme="dark"] th,[data-theme="dark"] .detail-stat,[data-theme="dark"] .permissions-intro,[data-theme="dark"] .leave-card,[data-theme="dark"] .info-note,[data-theme="dark"] .modal-note{background:#20373b;color:#d4e6df}
[data-theme="dark"] .stat-icon,[data-theme="dark"] .title-icon,[data-theme="dark"] .log-icon,[data-theme="dark"] .leave-icon{background:#27504d;color:#75dec3}
[data-theme="dark"] .date-square,[data-theme="dark"] .milestone-symbol{background:#493629;color:#ffae64}
[data-theme="dark"] .person-circle,[data-theme="dark"] .big-avatar{background:#2a4443;color:#bcefe3}
[data-theme="dark"] .pill.green,[data-theme="dark"] .group-tag{background:#245046;color:#9ce3ce}
[data-theme="dark"] .pill.gray,[data-theme="dark"] .inactive-row,[data-theme="dark"] .inactive-card,[data-theme="dark"] .person-mini.inactive,[data-theme="dark"] .audit-entry.inactive-event{background:#2d3539!important;color:#9ea9aa}
[data-theme="dark"] .group-tag.vip,[data-theme="dark"] .stat.accent .stat-icon{background:#513b27;color:#ffbb77}
[data-theme="dark"] .view-option.selected{background:#204b47;color:#bbf6e5}
[data-theme="dark"] .mail-notice{background:#453426;border-color:#6b4c32;color:#ffce90}
[data-theme="dark"] .profile-tabs,[data-theme="dark"] .perm-row,[data-theme="dark"] .milestone-item,[data-theme="dark"] .audit-entry,[data-theme="dark"] .history-row,[data-theme="dark"] .event,[data-theme="dark"] td,[data-theme="dark"] th{border-color:#315052}
[data-theme="dark"] .employee-welcome{border-color:#2b625d}
[data-theme="dark"] .test-badge{background:#21453c;color:#b3efcd}
[data-theme="dark"] .top-avatar{background:#244a45;color:#d2f3e7}

@media(max-width:1000px){.topbar .theme-action span,.profile-trigger-text{display:none}}
@media(max-width:750px){.login-theme{top:17px;right:18px}.login-theme .theme-action{background:#ffffffec;color:#115349}.login-theme .theme-action span{display:inline}.profile-popup-wrap .profile-dropdown{right:0}.topbar .theme-action{padding:8px}.profile-trigger{padding:3px}.profile-trigger svg:last-child{display:none}.employee-welcome{flex-wrap:wrap;gap:12px;padding:17px}.employee-welcome button{width:100%;margin-left:0}.employee-profile .detail-grid{grid-template-columns:1fr}}

.top-actions{position:relative}

.view-choice{min-height:100dvh;display:grid;place-items:center;padding:20px}
.view-choice-panel{width:min(100%,480px);padding:30px;display:grid;gap:16px}
.view-choice-panel h1{margin:0;font-size:clamp(24px,6vw,32px)}
.view-choice-options{display:flex;gap:10px;flex-wrap:wrap}
.view-choice-options a,.profile-dropdown a,.sidebar a.nav{text-decoration:none}
.layout .sidebar{overflow-y:auto}

dialog.view-choice-panel{
 width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;overflow:auto;
 padding:clamp(20px,5vw,34px);border:1px solid #dce7e4;border-radius:23px;
 background:#fff;color:#18383a;box-shadow:0 26px 90px #04181c55;
}
dialog.view-choice-panel[open]{display:grid;gap:13px;animation:view-choice-enter .22s ease-out both}
dialog.view-choice-panel::backdrop{background:#0a202ab8;backdrop-filter:blur(5px)}
@keyframes view-choice-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
.view-choice-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#edf5f1}
.view-choice-panel h1{overflow-wrap:anywhere}
.view-choice-panel p{margin:0;color:#526768}
.view-choice-panel .view-choice-options{display:grid;gap:9px;margin:7px 0 3px}
.view-choice-card{
 display:grid;grid-template-columns:44px minmax(0,1fr) 17px;align-items:center;gap:12px;
 padding:12px;border:1px solid #d8e5df;border-radius:14px;color:#18383a;background:#f7faf8;
 transition:background .16s,border-color .16s;
}
.view-choice-card:hover{background:#eef6f1;border-color:#6b9e91}
.view-choice-card:focus-visible{outline:2px solid #c96822;outline-offset:2px}
.view-choice-card strong,.view-choice-card small{display:block;overflow-wrap:anywhere}
.view-choice-card small{color:#526768;margin-top:3px}
.view-choice-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e1efe9;color:#155f52}
.view-choice-card:nth-child(2) .view-choice-icon{background:#f8ecdf;color:#944515}
.view-choice-signout{justify-self:start}
html[data-theme="dark"] dialog.view-choice-panel{background:#193034;color:#f0f8f5;border-color:#3d585b;color-scheme:dark}
html[data-theme="dark"] .view-choice-card{background:#243e41;border-color:#456063;color:#f0f8f5}
html[data-theme="dark"] .view-choice-card:hover{background:#2e4b4c;border-color:#8eb6a9}
html[data-theme="dark"] .view-choice-panel p,html[data-theme="dark"] .view-choice-card small{color:#b4cac6}
html[data-theme="dark"] .view-choice-mark,html[data-theme="dark"] .view-choice-icon{background:#31504b;color:#a4e2cc}
html[data-theme="dark"] .view-choice-card:nth-child(2) .view-choice-icon{background:#513b30;color:#ffc293}
@media(prefers-reduced-motion:reduce){dialog.view-choice-panel[open]{animation:none}.view-choice-card{transition:none}}
