.admin-body{min-height:100vh;background:linear-gradient(135deg,#f7f1e7,#fffaf2);color:#17211e}.admin-login-card{width:min(430px,calc(100vw - 32px));margin:8vh auto;background:#fffaf2;border:1px solid rgba(185,151,92,.25);border-radius:34px;padding:38px;box-shadow:0 28px 80px rgba(13,33,29,.14)}.admin-login-card img{height:76px;width:auto;display:block;margin-bottom:18px}.admin-login-card h1,.admin-hero-card h1,.admin-card h2{font-family:"Cormorant Garamond",Georgia,serif;line-height:1;margin:0 0 12px;font-weight:600}.admin-login-card h1{font-size:52px}.admin-login-card p{color:#726b61}.admin-login-card label,.admin-form label{display:grid;gap:7px;font-weight:700;font-size:13px;color:#17342d}.admin-login-card input,.admin-form input,.admin-form textarea{width:100%;border:1px solid rgba(23,47,41,.16);border-radius:18px;background:#fff;padding:14px 16px;font:inherit;color:#17211e}.admin-login-card button,.admin-form button{border:0;border-radius:999px;background:linear-gradient(135deg,#e0c487,#b9975c);color:#17211e;font-weight:700;padding:14px 24px;margin-top:18px;cursor:pointer}.admin-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px clamp(18px,5vw,64px);background:#17342d;color:#fff}.admin-topbar span{margin-left:10px;color:#e0c487;font-size:12px}.admin-topbar nav{display:flex;gap:16px}.admin-topbar a{color:#fff;text-decoration:none;font-weight:700;font-size:13px}.admin-shell{width:min(1120px,calc(100vw - 32px));margin:36px auto 80px;display:grid;gap:20px}.admin-hero-card,.admin-card{background:#fffaf2;border:1px solid rgba(185,151,92,.22);border-radius:36px;padding:32px;box-shadow:0 24px 70px rgba(13,33,29,.09)}.admin-hero-card h1{font-size:64px}.admin-hero-card p,.admin-card p{color:#726b61;max-width:720px}.admin-alert{border-radius:20px;padding:15px 18px;font-weight:700}.admin-alert.success{background:#eaf3e7;color:#17342d}.admin-alert.error{background:#fff0ed;color:#8c2d20}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-grid .wide{grid-column:1/-1}.muted-card{background:rgba(255,250,242,.62)}.admin-module-list{display:flex;flex-wrap:wrap;gap:10px}.admin-module-list span{border:1px solid rgba(23,47,41,.13);border-radius:999px;padding:10px 14px;font-weight:700;color:#17342d;background:#fff}@media(max-width:720px){.admin-topbar{align-items:flex-start;flex-direction:column}.admin-grid{grid-template-columns:1fr}.admin-login-card{padding:26px}.admin-hero-card h1{font-size:46px}.admin-card,.admin-hero-card{padding:24px}}
.admin-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
.admin-tabs a{background:#fffaf2;border:1px solid rgba(23,52,45,.14);border-radius:999px;padding:11px 16px;text-decoration:none;font-weight:700;color:#17342d;text-transform:uppercase;font-size:11px;letter-spacing:.1em}
.admin-tabs a.active{background:#17342d;color:#fff}
.checkline{display:flex!important;align-items:center;gap:10px;font-weight:700;color:#17342d}
.checkline input{width:auto!important}
.gallery-admin-list{display:grid;gap:16px;margin-bottom:18px}
.gallery-admin-item{display:grid;grid-template-columns:160px 1fr;gap:16px;align-items:start;background:#fffaf2;border:1px solid rgba(23,52,45,.12);border-radius:24px;padding:14px}
.gallery-admin-item img{width:160px;height:110px;object-fit:cover;border-radius:18px}
.gallery-admin-fields{display:grid;grid-template-columns:1fr 1fr 120px;gap:10px;align-items:center}
.delete-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
button.danger{background:#8a2f28!important;color:#fff!important;box-shadow:none!important;padding:10px 13px!important;font-size:11px!important}
@media(max-width:760px){.gallery-admin-item{grid-template-columns:1fr}.gallery-admin-item img{width:100%;height:180px}.gallery-admin-fields{grid-template-columns:1fr}}
.admin-help{margin-top:-6px;margin-bottom:22px;color:#726b61}
.admin-form h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:30px;line-height:1;margin:30px 0 14px;color:#17342d;border-top:1px solid rgba(23,52,45,.10);padding-top:22px}
.admin-form h3:first-of-type{border-top:0;padding-top:0;margin-top:10px}
.admin-form select{width:100%;border:1px solid rgba(23,47,41,.16);border-radius:18px;background:#fff;padding:14px 16px;font:inherit;color:#17211e}
.employee-admin-list{display:grid;gap:18px}.employee-admin-item{background:#fff;border:1px solid rgba(23,52,45,.12);border-radius:26px;padding:18px;display:grid;gap:10px}.employee-admin-item .danger{justify-self:start}
.shift-admin-list{display:grid;gap:18px}.shift-admin-item{background:#fff;border:1px solid rgba(23,52,45,.12);border-radius:26px;padding:18px;display:grid;gap:10px}.shift-admin-item .danger{justify-self:start}

/* v1.8 admin table/edit pattern */
.admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.admin-card-head h2{margin-bottom:4px}.admin-card-head .admin-help{margin:0}.admin-link-button,.row-action{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(23,52,45,.18);border-radius:999px;padding:11px 16px;text-decoration:none;font-weight:700;color:#17342d;background:#fff;white-space:nowrap}.admin-link-button.primary{background:linear-gradient(135deg,#e0c487,#b9975c);border-color:transparent;color:#17211e}.row-action{padding:9px 14px;background:#17342d;color:#fff;border-color:#17342d;font-size:12px;text-transform:uppercase;letter-spacing:.07em}.admin-table-wrap{overflow:auto;border:1px solid rgba(23,52,45,.11);border-radius:24px;background:#fff}.admin-table{width:100%;border-collapse:collapse;min-width:720px}.admin-table th,.admin-table td{text-align:left;padding:15px 16px;border-bottom:1px solid rgba(23,52,45,.10);vertical-align:middle}.admin-table th{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#726b61;background:#fffaf2}.admin-table tr:last-child td{border-bottom:0}.admin-table tr:hover td{background:#fffdf8}.table-thumb{width:82px;height:58px;object-fit:cover;border-radius:14px;display:block}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.status-pill.ok{background:#eaf3e7;color:#17342d}.status-pill.muted{background:#efe8dc;color:#726b61}.edit-preview{margin:0 0 18px}.edit-preview img{width:min(420px,100%);height:260px;object-fit:cover;border-radius:28px;display:block}.admin-actions{display:flex;gap:12px;align-items:center;margin-top:4px}.admin-delete-form{margin-top:18px;padding-top:18px;border-top:1px solid rgba(23,52,45,.10)}.admin-delete-form button.danger{margin-top:0!important;border-radius:999px!important;padding:12px 18px!important;font-size:12px!important}
@media(max-width:760px){.admin-card-head{flex-direction:column}.admin-link-button{width:100%}.admin-table{min-width:620px}.edit-preview img{height:210px}}

/* v1.9 maandagenda roosterplanner */
.calendar-card{overflow:hidden}.calendar-head{margin-bottom:12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 22px}.calendar-toolbar strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:34px;color:#17342d}.month-calendar{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid rgba(23,52,45,.12);border-radius:30px;overflow:hidden;background:#fff}.calendar-weekday{background:#fff7ec;color:#726b61;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:12px 14px;border-right:1px solid rgba(23,52,45,.09)}.calendar-weekday:nth-child(7){border-right:0}.calendar-day{min-height:138px;padding:10px;border-right:1px solid rgba(23,52,45,.09);border-top:1px solid rgba(23,52,45,.09);background:#fffdf8;transition:.18s ease}.calendar-day:nth-child(7n){border-right:0}.calendar-day.muted{background:#f5efe5}.calendar-day.drag-over{background:#eef5ee;box-shadow:inset 0 0 0 2px #c8aa6a}.day-number{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;text-decoration:none;color:#17342d;font-weight:700}.day-number:hover{background:#17342d;color:#fff}.day-shifts{display:grid;gap:6px;margin-top:8px}.calendar-shift{display:block;text-decoration:none;background:linear-gradient(135deg,#17342d,#244940);color:#fff;border-radius:14px;padding:8px 9px;box-shadow:0 8px 18px rgba(23,52,45,.12);cursor:grab;transition:.16s ease;overflow:hidden}.calendar-shift:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(23,52,45,.18)}.calendar-shift.dragging{opacity:.55}.calendar-shift strong{display:block;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-shift small{display:block;margin-top:3px;color:rgba(255,255,255,.78);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.repeat-box{margin:20px 0;padding:18px;border:1px solid rgba(23,52,45,.12);border-radius:24px;background:#fffaf2;display:grid;gap:12px}.repeat-box label:not(.checkline){max-width:260px}.repeat-box .admin-help{margin:0}
@media(max-width:900px){.month-calendar{display:block;border-radius:24px}.calendar-weekday{display:none}.calendar-day{min-height:auto;border-right:0;padding:14px}.calendar-day.muted{display:none}.calendar-day:before{content:attr(data-date);display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#726b61;margin-bottom:6px}.calendar-toolbar{align-items:stretch}.calendar-toolbar strong{text-align:center;font-size:28px}.calendar-toolbar .admin-link-button{width:auto}.calendar-shift strong,.calendar-shift small{white-space:normal}}

/* v2.0 SaaS Admin Refresh */
.admin-saas-body{background:#f4f7fb;color:#0f172a;font-family:"Source Sans 3",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.admin-app-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr);}
.admin-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#10211d,#162b27 55%,#0f1b18);color:#dbe7e2;padding:24px 18px;display:flex;flex-direction:column;gap:22px;box-shadow:20px 0 50px rgba(15,23,42,.12);z-index:20;}
.admin-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff;padding:8px 10px 18px;border-bottom:1px solid rgba(255,255,255,.08);}
.admin-brand img{width:108px;max-height:54px;object-fit:contain;filter:brightness(1.1);}
.admin-brand span{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#c8aa6a;}
.admin-side-nav{display:grid;gap:6px;overflow:auto;padding-right:4px;}
.admin-side-nav p{margin:18px 10px 7px;color:#8da39b;font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;}
.admin-side-nav a{display:flex;align-items:center;gap:11px;color:#cddbd5;text-decoration:none;font-weight:700;font-size:14px;border-radius:14px;padding:12px 13px;transition:.16s ease;}
.admin-side-nav a span{width:23px;height:23px;border-radius:9px;background:rgba(255,255,255,.07);display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:#c8aa6a;}
.admin-side-nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px);}
.admin-side-nav a.active{background:#fff;color:#10211d;box-shadow:0 14px 34px rgba(0,0,0,.18);}
.admin-side-nav a.active span{background:#eaf7f1;color:#0f7a5d;}
.admin-sidebar-foot{margin-top:auto;display:grid;gap:8px;border-top:1px solid rgba(255,255,255,.08);padding-top:18px;}
.admin-sidebar-foot a{color:#dbe7e2;text-decoration:none;font-weight:700;border-radius:12px;padding:11px 12px;background:rgba(255,255,255,.06);}
.admin-sidebar-foot a:hover{background:rgba(255,255,255,.1);color:#fff;}
.admin-main{min-width:0;display:grid;grid-template-rows:auto 1fr;}
.admin-page-topbar{position:sticky;top:0;z-index:10;background:rgba(244,247,251,.88);backdrop-filter:blur(18px);border-bottom:1px solid #e5eaf0;padding:22px clamp(22px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:24px;}
.admin-page-topbar h1{font-family:"Source Sans 3",system-ui,sans-serif;font-size:34px;line-height:1.05;margin:6px 0 6px;color:#0f172a;font-weight:700;letter-spacing:-.04em;}
.admin-page-topbar p{margin:0;color:#64748b;font-weight:600;}
.admin-version{display:inline-flex;align-items:center;border-radius:999px;background:#e8f4ef;color:#0f7a5d;padding:6px 10px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
.admin-top-actions{display:flex;gap:10px;align-items:center;}
.admin-content-shell{width:min(1240px,calc(100vw - 340px));margin:28px auto 80px;display:grid;gap:22px;}
.admin-topbar,.admin-tabs,.admin-hero-card{display:none!important;}
.admin-card{background:#fff;border:1px solid #e6ebf1;border-radius:24px;padding:26px;box-shadow:0 16px 45px rgba(15,23,42,.06);}
.admin-card h2,.admin-form h3{font-family:"Source Sans 3",system-ui,sans-serif;color:#0f172a;font-weight:700;letter-spacing:-.025em;}
.admin-card h2{font-size:24px;}
.admin-card p,.admin-help{color:#64748b;}
.admin-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.admin-stat-card{background:#fff;border:1px solid #e6ebf1;border-radius:24px;padding:22px;box-shadow:0 16px 45px rgba(15,23,42,.06);position:relative;overflow:hidden;}
.admin-stat-card:after{content:"";position:absolute;right:-22px;top:-22px;width:90px;height:90px;border-radius:50%;background:linear-gradient(135deg,rgba(16,185,129,.18),rgba(200,170,106,.16));}
.admin-stat-card span{display:block;color:#64748b;font-weight:700;font-size:13px;margin-bottom:12px;}
.admin-stat-card strong{display:block;font-size:40px;line-height:1;color:#0f172a;font-weight:700;letter-spacing:-.05em;}
.admin-stat-card small{display:block;margin-top:9px;color:#94a3b8;font-weight:700;}
.admin-quick-actions{display:flex;flex-wrap:wrap;gap:10px;}
.admin-link-button,.row-action{border-color:#d7dee8;background:#fff;color:#0f172a;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.admin-link-button.primary,.admin-form button,.admin-login-card button{background:linear-gradient(135deg,#10b981,#0f7a5d);color:#fff;border-color:transparent;box-shadow:0 14px 30px rgba(16,185,129,.22);}
.row-action{background:#10211d;color:#fff;border-color:#10211d;}
.admin-table-wrap{border-color:#e6ebf1;border-radius:20px;box-shadow:0 8px 24px rgba(15,23,42,.035);}
.admin-table th{background:#f8fafc;color:#64748b;}
.admin-table td{border-color:#edf2f7;}
.admin-table tr:hover td{background:#f8fafc;}
.status-pill.ok{background:#dcfce7;color:#166534;}.status-pill.muted{background:#f1f5f9;color:#64748b;}
.admin-form input,.admin-form textarea,.admin-form select,.admin-login-card input{border-color:#dbe3ec;border-radius:14px;background:#fff;color:#0f172a;box-shadow:0 1px 0 rgba(15,23,42,.02);}
.admin-form label,.admin-login-card label{color:#334155;font-weight:700;}
.admin-alert.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.admin-alert.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.month-calendar{border-color:#e6ebf1;border-radius:24px;}.calendar-weekday{background:#f8fafc;color:#64748b}.calendar-day{background:#fff}.calendar-day.muted{background:#f8fafc}.calendar-shift{background:linear-gradient(135deg,#0f7a5d,#10b981);}
.admin-login-card{background:#fff;border-color:#e6ebf1;box-shadow:0 25px 70px rgba(15,23,42,.12);}
.admin-login-card h1{font-family:"Source Sans 3",system-ui,sans-serif;font-weight:700;letter-spacing:-.05em;color:#0f172a;}
button.danger{background:#dc2626!important;color:#fff!important;}
@media(max-width:1050px){.admin-app-shell{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;border-radius:0 0 24px 24px}.admin-side-nav{display:flex;overflow-x:auto;padding-bottom:4px}.admin-side-nav p{display:none}.admin-side-nav a{white-space:nowrap}.admin-sidebar-foot{display:flex}.admin-content-shell{width:min(100% - 32px,960px)}.admin-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page-topbar{position:relative;align-items:flex-start;flex-direction:column}.admin-top-actions{width:100%;flex-wrap:wrap}.admin-top-actions .admin-link-button{width:auto}}
@media(max-width:650px){.admin-sidebar{padding:18px 14px}.admin-brand img{width:96px}.admin-content-shell{width:calc(100% - 24px);margin-top:18px}.admin-dashboard-grid{grid-template-columns:1fr}.admin-card{padding:20px;border-radius:20px}.admin-page-topbar{padding:20px 16px}.admin-page-topbar h1{font-size:28px}.admin-top-actions .admin-link-button{width:100%}.admin-sidebar-foot{display:grid}.admin-side-nav a{padding:10px 11px}.admin-table{min-width:680px}}

/* v2.1 admin polish: lighter SaaS tone */
.admin-saas-body{background:#f7f9fc;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
.admin-sidebar{background:linear-gradient(180deg,#eef6f3,#f7faf9 58%,#ffffff);color:#334155;border-right:1px solid #dfe8e5;box-shadow:12px 0 34px rgba(15,23,42,.055);}
.admin-brand{color:#10211d;border-bottom-color:#dfe8e5;}
.admin-brand span{color:#0f7a5d;font-weight:600;}
.admin-side-nav p{color:#94a3b8;font-weight:600;}
.admin-side-nav a{color:#475569;font-weight:600;}
.admin-side-nav a span{background:#e6f3ee;color:#0f7a5d;}
.admin-side-nav a:hover{background:#ffffff;color:#0f172a;transform:none;box-shadow:0 8px 20px rgba(15,23,42,.045);}
.admin-side-nav a.active{background:#17342d;color:#ffffff;box-shadow:0 12px 28px rgba(23,52,45,.16);}
.admin-side-nav a.active span{background:rgba(255,255,255,.15);color:#d7c18a;}
.admin-sidebar-foot{border-top-color:#dfe8e5;}
.admin-sidebar-foot a{background:#ffffff;color:#475569;border:1px solid #dfe8e5;font-weight:600;}
.admin-sidebar-foot a:hover{background:#f1f5f9;color:#0f172a;}
.admin-page-topbar h1{font-weight:600;letter-spacing:-.035em;}
.admin-page-topbar p,.admin-card p,.admin-help{font-weight:430;}
.admin-card h2,.admin-form h3{font-weight:600;}
.admin-stat-card strong{font-weight:600;}
.admin-stat-card span,.admin-form label,.admin-login-card label{font-weight:600;}
.admin-link-button,.row-action{font-weight:600;}
.admin-table th{font-weight:700;}
.admin-table td{font-weight:430;}
.admin-login-card{width:min(440px,calc(100vw - 32px));margin:9vh auto;background:#fff;border:1px solid #e6ebf1;border-radius:28px;padding:34px;box-shadow:0 24px 70px rgba(15,23,42,.12);}
.admin-login-card img{height:58px;margin:0 auto 24px;}
.admin-login-card h1{font-size:36px;font-weight:600;letter-spacing:-.035em;text-align:center;}
.admin-login-card p{text-align:center;color:#64748b;}
.admin-login-card button{width:100%;font-weight:720;}
.month-calendar{box-shadow:0 10px 28px rgba(15,23,42,.04);}
.calendar-toolbar strong{font-family:"Source Sans 3",system-ui,sans-serif;font-weight:600;letter-spacing:-.03em;}
.calendar-day{background:#fff;cursor:pointer;}
.calendar-day:hover{background:#fbfdfc;}
.calendar-shift{background:linear-gradient(135deg,#18775f,#22a078);font-weight:500;}
.calendar-shift strong{font-weight:700;}
@media(max-width:1050px){.admin-sidebar{background:#f7faf9}.admin-sidebar-foot a{background:#fff}}

/* v2.2 planning polish */
.admin-inline-form{display:flex;gap:14px;align-items:end;margin:14px 0 20px;flex-wrap:wrap}
.admin-inline-form label{min-width:260px;color:#52606d;font-weight:600;font-size:13px}
.admin-inline-form select{margin-top:6px;width:100%}
.checkline.compact{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.inline-status-form{display:grid;grid-template-columns:minmax(130px,160px) minmax(180px,1fr) auto;gap:8px;align-items:center}
.inline-status-form select,.inline-status-form input{height:38px;border-radius:12px;border:1px solid #d8e1ea;padding:0 10px;background:#fff}
.inline-status-form button,.copy-week-bar button{height:38px;border:0;border-radius:12px;background:#2f7d64;color:#fff;font-weight:600;padding:0 14px;cursor:pointer}
.status-pill.danger{background:#fee2e2;color:#991b1b}
.copy-week-bar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px solid #e8eef4;border-radius:18px;background:#fbfcfd}
.copy-week-bar label{font-size:13px;color:#52606d;font-weight:600;display:flex;gap:8px;align-items:center}
.copy-week-bar input{height:38px;border-radius:12px;border:1px solid #d8e1ea;padding:0 10px;background:#fff}
.calendar-shift.employee-color-0{border-left:4px solid #2f7d64}.calendar-shift.employee-color-1{border-left:4px solid #64748b}.calendar-shift.employee-color-2{border-left:4px solid #b7791f}.calendar-shift.employee-color-3{border-left:4px solid #7c3aed}.calendar-shift.employee-color-4{border-left:4px solid #0369a1}.calendar-shift.employee-color-5{border-left:4px solid #be123c}.calendar-shift.employee-color-6{border-left:4px solid #15803d}.calendar-shift.employee-color-7{border-left:4px solid #9333ea}
@media(max-width:800px){.inline-status-form{grid-template-columns:1fr}.copy-week-bar label{width:100%;display:block}.copy-week-bar input{width:100%;margin-top:6px}}

/* v2.4 rooster UX plus */
.admin-alert.warning{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.admin-alert code{background:rgba(255,255,255,.7);border:1px solid rgba(154,52,18,.15);border-radius:8px;padding:2px 6px}
.calendar-title-stack{display:flex;flex-direction:column;align-items:center;gap:4px}.today-link{font-size:12px;font-weight:600;color:#0f7a5d;text-decoration:none;border:1px solid #d7dee8;border-radius:999px;padding:5px 10px;background:#fff}.today-link:hover{background:#ecfdf5}
.calendar-day.today{background:#f0fdf4;box-shadow:inset 0 0 0 2px rgba(16,185,129,.18)}.calendar-day.today .day-number{background:#10b981;color:#fff}
.calendar-day-meta{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 2px}.calendar-chip{display:inline-flex;max-width:100%;align-items:center;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f1f5f9;color:#475569}.calendar-chip.leave{background:#fff7ed;color:#9a3412}.calendar-chip.leave.approved{background:#dcfce7;color:#166534}.calendar-chip.leave.pending{background:#ffedd5;color:#9a3412}.calendar-chip.available{background:#ecfdf5;color:#047857}.calendar-chip.unavailable{background:#fee2e2;color:#991b1b}
.calendar-shift{position:relative}.shift-popover{position:absolute;left:8px;right:8px;bottom:calc(100% + 8px);z-index:15;display:none;background:#0f172a;color:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 18px 42px rgba(15,23,42,.26);font-size:12px;line-height:1.45;pointer-events:none}.shift-popover:after{content:"";position:absolute;left:18px;top:100%;border:7px solid transparent;border-top-color:#0f172a}.calendar-shift:hover .shift-popover{display:block}.shift-popover em{font-style:normal;color:#cbd5e1}
@media(max-width:900px){.calendar-title-stack{order:2}.calendar-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.calendar-toolbar .calendar-title-stack{grid-column:1/-1}.calendar-day-meta{margin-bottom:8px}.shift-popover{display:none!important}.calendar-chip{font-size:11px}}

/* v2.7 Rooster Professional */
.view-switch{display:inline-flex;gap:6px;margin:-4px 0 16px;padding:5px;border:1px solid #e4ebf2;border-radius:999px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.035)}
.view-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:92px;border-radius:999px;padding:9px 14px;text-decoration:none;font-size:13px;font-weight:700;color:#52606d}
.view-switch a.active{background:#17342d;color:#fff;box-shadow:0 8px 16px rgba(23,52,45,.15)}
.week-calendar .calendar-day{min-height:380px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.week-calendar .calendar-shift{padding:11px 12px;border-radius:16px}
.calendar-day-total{display:inline-flex;margin:4px 0 2px;border-radius:999px;background:#eff6ff;color:#1d4ed8;padding:4px 8px;font-size:10px;font-weight:700;letter-spacing:.03em}
.calendar-shift{position:relative;border-left-width:5px!important;background:linear-gradient(135deg,#17342d,#2f7d64)!important}
.calendar-shift small{line-height:1.25}.shift-popover{min-width:210px}.calendar-chip{box-shadow:0 1px 0 rgba(15,23,42,.04)}
.shift-edit-actions{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:end;margin-top:18px;padding-top:18px;border-top:1px solid #e8eef4}
.copy-shift-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.copy-shift-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#17342d}.copy-shift-form input{height:42px;border-radius:14px;border:1px solid #d8e1ea;padding:0 12px;background:#fff}.copy-shift-form button{height:42px;border:0;border-radius:999px;background:#17342d;color:#fff;font-weight:700;padding:0 16px;cursor:pointer}
.shift-edit-actions .admin-delete-form{margin:0;padding:0;border:0}.shift-edit-actions .admin-delete-form button{height:42px}
.employee-color-0{--emp:#2f7d64}.employee-color-1{--emp:#64748b}.employee-color-2{--emp:#b7791f}.employee-color-3{--emp:#7c3aed}.employee-color-4{--emp:#0369a1}.employee-color-5{--emp:#be123c}.employee-color-6{--emp:#15803d}.employee-color-7{--emp:#9333ea}.calendar-shift[class*="employee-color-"]{border-left-color:var(--emp)!important}
@media(max-width:900px){.view-switch{display:grid;grid-template-columns:1fr 1fr}.view-switch a{min-width:0}.week-calendar .calendar-day{min-height:auto}.shift-edit-actions{grid-template-columns:1fr}.copy-shift-form{display:grid}.copy-shift-form button{width:100%}}

/* v2.8 medewerkerkleuren en urenregistratie */
.employee-color-dot{display:inline-flex;width:22px;height:22px;border-radius:999px;background:var(--emp-color,#0f766e);box-shadow:inset 0 0 0 3px rgba(255,255,255,.72),0 4px 12px rgba(15,23,42,.16);vertical-align:middle}.color-preview{display:inline-flex;align-items:center;gap:8px;margin-top:8px;color:#52606d;font-size:12px;font-weight:600}.color-preview:before{content:"";display:inline-block;width:20px;height:20px;border-radius:999px;background:var(--emp-color,#0f766e);box-shadow:inset 0 0 0 3px rgba(255,255,255,.74),0 4px 12px rgba(15,23,42,.16)}.calendar-shift{border-left:6px solid var(--emp-color,#0f766e)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--emp-color,#0f766e) 72%,#111827),var(--emp-color,#0f766e))!important}.hours-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 20px}.hours-summary-grid article{border:1px solid #dfe8e5;border-radius:22px;background:#fff;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.04)}.hours-summary-grid span{display:block;color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.hours-summary-grid strong{display:block;margin-top:6px;font-size:24px;color:#0f172a}@media(max-width:760px){.hours-summary-grid{grid-template-columns:1fr}.color-preview{margin-bottom:6px}}

/* v2.9 Uren & export */
.export-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.export-grid article{border:1px solid #dfe8e5;border-radius:22px;background:#fff;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.04)}
.export-grid h3{margin:0 0 6px;color:#0f172a;font-size:17px}.export-grid p{min-height:38px;margin:0 0 14px;color:#64748b;font-size:13px;word-break:break-word}
@media(max-width:1050px){.export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.export-grid{grid-template-columns:1fr}}

/* v2.9b urenbeheer professional */
.admin-filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0;padding:14px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px}
.admin-filter-bar label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em;min-width:160px}
.admin-filter-bar input,.admin-filter-bar select{min-height:42px;border:1px solid #dbe3ef;border-radius:12px;padding:8px 10px;background:#fff;color:#0f172a;font-size:14px;text-transform:none;letter-spacing:0;font-weight:600}
.admin-filter-bar button{min-height:42px;border:0;border-radius:12px;padding:0 16px;background:#111827;color:#fff;font-weight:700;cursor:pointer}
.export-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.admin-link-button.disabled{opacity:.45;pointer-events:none;filter:grayscale(1)}
.status-pill.warn{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.admin-grid label.wide{grid-column:1/-1}
.admin-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:12px;font-family:inherit;resize:vertical;background:#fff}
.admin-form small,.admin-filter-bar small{font-size:12px;color:#64748b;text-transform:none;letter-spacing:0;font-weight:500}
.hours-summary-grid article:first-child{background:#f8fafc}
@media(max-width:760px){.admin-filter-bar{display:block}.admin-filter-bar label,.admin-filter-bar button,.admin-filter-bar .admin-link-button{width:100%;margin-bottom:10px}.inline-status-form{display:grid!important;grid-template-columns:1fr;gap:8px}.export-actions .admin-link-button{width:100%;text-align:center}}

/* v2.10 Urenbeheer UX & instellingen */
.admin-form-section{border:1px solid #e4ebf2;border-radius:22px;padding:20px;margin:0 0 18px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.admin-form-section h3{margin:0 0 16px;color:#0f172a;font-size:18px}
.employee-edit-card .admin-grid{align-items:start}
.hours-overview-card .admin-card-head{align-items:flex-start;gap:18px}
.hours-month-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin:18px 0 18px;padding:16px;border:1px solid #e4ebf2;border-radius:22px;background:#fff}
.hours-month-nav>a:first-child{justify-self:start}.hours-month-nav>a:last-child{justify-self:end}.hours-month-nav>div{text-align:center}.hours-month-nav strong{display:block;font-size:28px;color:#0f172a}.hours-month-nav small{display:block;margin-top:6px;color:#64748b;font-size:13px}
.hours-filter-bar{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr)) auto auto;gap:12px;align-items:end;background:#fbfcfd;border-radius:22px;padding:16px}
.hours-filter-bar label{min-width:0;margin:0}.hours-filter-bar button,.hours-filter-bar .admin-link-button{height:42px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.hours-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.hours-kpi-grid article{min-height:112px}.hours-kpi-grid small{display:block;margin-top:8px;color:#64748b;font-size:13px;text-transform:none;letter-spacing:0;font-weight:600}.hours-kpi-grid strong{font-size:26px}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 12px}.table-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.table-toolbar strong{color:#334155;font-size:14px}.hours-table th,.hours-table td{white-space:nowrap}.hours-table td:nth-child(2){white-space:normal;min-width:190px}.empty-state{display:grid;place-items:center;gap:6px;min-height:150px;color:#64748b}.empty-state strong{color:#0f172a;font-size:18px}.admin-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-sidebar-foot a[href="logout"],.admin-top-actions a[href="logout"]{border-color:#fecaca;color:#dc2626;background:#fff5f5}.admin-sidebar-foot a[href="logout"]:hover,.admin-top-actions a[href="logout"]:hover{background:#fee2e2}
@media(max-width:1200px){.hours-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.hours-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.hours-month-nav{grid-template-columns:1fr}.hours-month-nav>a,.hours-month-nav>a:first-child,.hours-month-nav>a:last-child{justify-self:stretch}.hours-month-nav strong{font-size:22px}.hours-filter-bar{display:grid;grid-template-columns:1fr}.hours-kpi-grid{grid-template-columns:1fr}.table-toolbar{display:grid}.table-toolbar>div{display:grid}.hours-overview-card .admin-card-head{display:grid}.admin-top-actions{display:grid;width:100%}.admin-top-actions .admin-link-button{justify-content:center}}

/* v2.10b gerichte hotfix: logout, uren-overflow en ureninstellingen-uitlijning */
html,body{max-width:100%;overflow-x:hidden;}
.admin-app-shell,.admin-main,.admin-content-shell,.admin-card{min-width:0;}
.hours-overview-card{overflow:hidden;}
.hours-overview-card .admin-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.hours-overview-card .admin-table{min-width:1040px;}
.hours-filter-bar{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));max-width:100%;}
.hours-filter-bar label,.hours-filter-bar input,.hours-filter-bar select{min-width:0;}
.hours-filter-bar button,.hours-filter-bar .admin-link-button{width:100%;}
.hours-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
.admin-form-section .admin-grid{align-items:end;}
.admin-form-section input[type="number"]{height:48px;line-height:48px;}
.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;padding-top:18px;border-top:1px solid #e4ebf2;}
.settings-actions .admin-link-button,.settings-actions button{height:46px;margin-top:0;min-width:190px;}
.settings-actions button{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;}
.admin-sidebar-foot a[href="?action=logout"],.admin-top-actions a[href="?action=logout"]{border-color:#fecaca;color:#dc2626;background:#fff5f5}.admin-sidebar-foot a[href="?action=logout"]:hover,.admin-top-actions a[href="?action=logout"]:hover{background:#fee2e2}
@media(max-width:760px){.settings-actions{display:grid;grid-template-columns:1fr}.settings-actions .admin-link-button,.settings-actions button{width:100%;min-width:0}.hours-overview-card .admin-table{min-width:980px}}

/* v2.10c secuur: logout/login, pauzevelden en urenlijst zonder horizontale scroll */
.admin-login-card{max-width:430px;margin:8vh auto;padding:34px;border:1px solid #dfe8e5;border-radius:28px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.10)}
.admin-login-card img{max-width:160px;margin:0 0 18px}.admin-login-card h1{margin:0 0 8px}.admin-login-card p{color:#64748b}.admin-login-card form{display:grid;gap:10px;margin-top:18px}.admin-login-card input{height:48px;border:1px solid #dbe3ef;border-radius:14px;padding:0 14px}.admin-login-card button{height:48px;border:0;border-radius:999px;background:#0f9f75;color:#fff;font-weight:700;cursor:pointer}
.admin-sidebar-foot a[href="logout"],.admin-top-actions a[href="logout"]{border-color:#fecaca!important;color:#dc2626!important;background:#fff5f5!important}.admin-sidebar-foot a[href="logout"]:hover,.admin-top-actions a[href="logout"]:hover{background:#fee2e2!important}

/* Ureninstellingen: labels/velden exact gelijk uitlijnen */
.admin-form-section .admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;}
.admin-form-section .admin-grid label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0;}
.admin-form-section .admin-grid input,.admin-form-section .admin-grid select{width:100%;height:48px;min-height:48px;box-sizing:border-box;}
.admin-form-section .admin-grid textarea{width:100%;box-sizing:border-box;}
.admin-form-section .admin-grid small{min-height:18px;line-height:18px;margin:0;}
.admin-form-section .admin-grid label:not(:has(small))::after{content:"";display:block;min-height:18px;}
@media(max-width:760px){.admin-form-section .admin-grid{grid-template-columns:1fr}.admin-form-section .admin-grid label:not(:has(small))::after{display:none}}

/* Urenoverzicht: tabel past in het blok, geen horizontale scroll nodig op desktop */
.hours-overview-card .admin-table-wrap{overflow-x:visible!important;max-width:100%;}
.hours-overview-card .admin-table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:separate;border-spacing:0;}
.hours-table th,.hours-table td{white-space:normal!important;word-break:normal;overflow-wrap:anywhere;vertical-align:middle;padding:13px 10px;font-size:13px;}
.hours-table th{font-size:11px;letter-spacing:.07em;}
.hours-table th:nth-child(1),.hours-table td:nth-child(1){width:54px;text-align:center;}
.hours-table th:nth-child(2),.hours-table td:nth-child(2){width:17%;min-width:0!important;}
.hours-table td:nth-child(2) small{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;}
.hours-table th:nth-child(3),.hours-table td:nth-child(3){width:7%;}
.hours-table th:nth-child(4),.hours-table td:nth-child(4){width:7%;}
.hours-table th:nth-child(5),.hours-table td:nth-child(5){width:7%;}
.hours-table th:nth-child(6),.hours-table td:nth-child(6),.hours-table th:nth-child(7),.hours-table td:nth-child(7),.hours-table th:nth-child(8),.hours-table td:nth-child(8),.hours-table th:nth-child(9),.hours-table td:nth-child(9){width:7%;}
.hours-table th:nth-child(10),.hours-table td:nth-child(10){width:10%;}
.hours-table th:nth-child(11),.hours-table td:nth-child(11){width:9%;}
.hours-table th:nth-child(12),.hours-table td:nth-child(12){width:13%;}
.inline-status-form{display:flex!important;align-items:center;gap:6px;max-width:100%;}
.inline-status-form select{width:calc(100% - 44px);min-width:0;height:38px;border-radius:12px;padding:0 8px;font-size:12px;}
.inline-status-form button{width:38px;min-width:38px;height:38px;padding:0;border-radius:12px;font-size:12px;}
.status-pill{white-space:normal;text-align:center;line-height:1.2;}
@media(max-width:980px){.hours-overview-card .admin-table-wrap{overflow-x:auto!important}.hours-overview-card .admin-table{min-width:900px!important}.hours-table th,.hours-table td{white-space:nowrap!important}.hours-table td:nth-child(2) small{white-space:normal}}

/* v2.10d: urenlijst zonder losse kleurkolom + contracttype velden */
.employee-name-with-color{display:flex;align-items:center;gap:10px;min-width:0;}
.employee-name-with-color .employee-color-dot{flex:0 0 18px;}
.employee-name-with-color>span:last-child{min-width:0;}
.contract-field{transition:opacity .15s ease;}
.hours-overview-card .admin-table{table-layout:fixed;}
.hours-table th,.hours-table td{padding:13px 8px;}
.hours-table th:nth-child(1),.hours-table td:nth-child(1){width:20%;text-align:left;}
.hours-table th:nth-child(2),.hours-table td:nth-child(2){width:7%;}
.hours-table th:nth-child(3),.hours-table td:nth-child(3){width:9%;}
.hours-table th:nth-child(4),.hours-table td:nth-child(4){width:6%;text-align:center;}
.hours-table th:nth-child(5),.hours-table td:nth-child(5),
.hours-table th:nth-child(6),.hours-table td:nth-child(6),
.hours-table th:nth-child(7),.hours-table td:nth-child(7),
.hours-table th:nth-child(8),.hours-table td:nth-child(8),
.hours-table th:nth-child(9),.hours-table td:nth-child(9){width:6.5%;text-align:left;}
.hours-table th:nth-child(10),.hours-table td:nth-child(10){width:9%;}
.hours-table th:nth-child(11),.hours-table td:nth-child(11){width:8%;}
.hours-table th:nth-child(12),.hours-table td:nth-child(12){width:14%;}
@media(max-width:980px){.hours-overview-card .admin-table{min-width:980px!important}.hours-table th,.hours-table td{white-space:nowrap!important}.employee-name-with-color>span:last-child small{white-space:normal;}}
.admin-sidebar-foot a[href="logout/"],.admin-top-actions a[href="logout/"]{border-color:#fecaca!important;color:#dc2626!important;background:#fff5f5!important}.admin-sidebar-foot a[href="logout/"]:hover,.admin-top-actions a[href="logout/"]:hover{background:#fee2e2!important}

/* v2.10e logout link via query action */
.admin-sidebar-foot a[href="?action=logout"],.admin-top-actions a[href="?action=logout"]{border-color:#fecaca!important;color:#dc2626!important;background:#fff5f5!important}.admin-sidebar-foot a[href="?action=logout"]:hover,.admin-top-actions a[href="?action=logout"]:hover{background:#fee2e2!important}


/* v2.10f: medewerkerformulier logischer contractblok */
.employee-contract-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
.employee-contract-grid .employee-field-type{grid-column:1;grid-row:1;}
.employee-contract-grid .employee-field-contract-fixed{grid-column:1;grid-row:2;}
.employee-contract-grid .employee-field-min-hours{grid-column:1;grid-row:2;}
.employee-contract-grid .employee-field-max-hours{grid-column:1;grid-row:3;}
.employee-contract-grid .employee-field-recipient{grid-column:2;grid-row:1;}
.employee-contract-grid .employee-field-color{grid-column:2;grid-row:2 / span 2;}
.employee-contract-grid .employee-field-color .color-preview{margin-top:10px;}
@media(max-width:760px){.employee-contract-grid .employee-field-type,.employee-contract-grid .employee-field-contract-fixed,.employee-contract-grid .employee-field-min-hours,.employee-contract-grid .employee-field-max-hours,.employee-contract-grid .employee-field-recipient,.employee-contract-grid .employee-field-color{grid-column:1;grid-row:auto;}}

/* v2.11a: uitvouwbaar admin-menu */
.admin-accordion-nav{display:grid;gap:8px;align-content:start;}
.admin-accordion-nav>p{display:none;}
.admin-nav-group{border-radius:16px;overflow:hidden;}
.admin-nav-group summary{list-style:none;display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:16px;padding:12px 13px;background:transparent;color:#475569;font-weight:600;font-size:14px;cursor:pointer;transition:.16s ease;}
.admin-nav-group summary::-webkit-details-marker{display:none;}
.admin-nav-group summary span{width:23px;height:23px;border-radius:9px;background:#e6f3ee;color:#0f7a5d;display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex:0 0 23px;}
.admin-nav-group summary strong{font:inherit;flex:1;}
.admin-nav-group summary em{font-style:normal;color:#94a3b8;transition:transform .16s ease;}
.admin-nav-group summary:hover{background:#fff;color:#0f172a;box-shadow:0 8px 20px rgba(15,23,42,.045);}
.admin-nav-group[open] summary{background:#eef8f4;color:#0f513f;}
.admin-nav-group[open] summary em{transform:rotate(90deg);}
.admin-nav-subitems{display:grid;gap:4px;margin:6px 0 4px 20px;padding-left:12px;border-left:1px solid #dfe8e5;}
.admin-nav-subitems a{padding:10px 12px!important;border-radius:13px;font-size:13px;}
.admin-nav-subitems a span{width:20px;height:20px;border-radius:8px;font-size:11px;}
.admin-side-nav>a.active{background:#17342d;color:#fff;}
.admin-sidebar-foot{display:none!important;}
@media(max-width:1050px){.admin-accordion-nav{display:flex;gap:8px;overflow-x:auto;align-items:flex-start}.admin-nav-group{overflow:visible;flex:0 0 auto}.admin-nav-group summary{white-space:nowrap;background:#fff;border:1px solid #dfe8e5}.admin-nav-group[open] .admin-nav-subitems{position:absolute;z-index:40;margin:6px 0 0 0;padding:8px;border:1px solid #dfe8e5;border-radius:16px;background:#fff;box-shadow:0 18px 38px rgba(15,23,42,.14)}.admin-nav-subitems a{white-space:nowrap}.admin-sidebar-foot{display:none!important}}

/* v2.12 Planning & Verzoeken */
.planning-requests-table th:nth-child(1){width:140px}
.planning-requests-table th:nth-child(4){width:130px}
.planning-requests-table th:nth-child(5){width:150px}
.planning-requests-table .inline-status-form{min-width:280px}

/* v3.0 Virevo Design System */
:root{
  --virevo-primary:#2563EB;
  --virevo-secondary:#6366F1;
  --virevo-accent:#10B981;
  --virevo-light:#EFF6FF;
  --virevo-dark:#0F172A;
  --virevo-muted:#64748B;
  --virevo-line:#DCE6F5;
  --virevo-surface:#FFFFFF;
  --virevo-bg:#F6F8FF;
  --virevo-gradient:linear-gradient(135deg,#2563EB 0%,#6366F1 52%,#10B981 100%);
  --virevo-radius:24px;
  --virevo-shadow:0 18px 48px rgba(15,23,42,.08);
}
.admin-saas-body,.admin-body{background:radial-gradient(circle at top left,rgba(37,99,235,.10),transparent 28%),linear-gradient(180deg,#f8fbff 0%,#f3f6ff 100%)!important;color:var(--virevo-dark)!important;font-family:"Source Sans 3",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;}
.admin-sidebar{background:rgba(255,255,255,.92)!important;color:#334155!important;border-right:1px solid var(--virevo-line)!important;box-shadow:18px 0 44px rgba(37,99,235,.06)!important;backdrop-filter:blur(18px);}
.admin-brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 6px!important;gap:10px!important;}
.admin-brand img{width:170px!important;max-height:54px!important;height:auto!important;object-fit:contain!important;filter:none!important;}
.admin-brand span{color:var(--virevo-muted)!important;font-size:12px!important;letter-spacing:.14em!important;text-transform:uppercase!important;font-weight:700!important;}
.admin-nav-group{border-radius:18px!important;}
.admin-nav-group summary,.admin-side-nav a{color:#334155!important;border-radius:16px!important;transition:background .16s ease,color .16s ease,box-shadow .16s ease!important;}
.admin-nav-group summary:hover,.admin-side-nav a:hover{background:var(--virevo-light)!important;color:var(--virevo-primary)!important;}
.admin-nav-group[open] summary,.admin-nav-subitems a.active,.admin-side-nav a.active{background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(99,102,241,.10))!important;color:var(--virevo-primary)!important;box-shadow:inset 3px 0 0 var(--virevo-primary)!important;}
.admin-nav-subitems a{color:#475569!important;border-radius:14px!important;}
.admin-nav-subitems a:hover{background:#f8fbff!important;color:var(--virevo-secondary)!important;}
.admin-page-topbar,.admin-card,.admin-hero-card,.admin-login-card{background:rgba(255,255,255,.94)!important;border:1px solid var(--virevo-line)!important;border-radius:28px!important;box-shadow:var(--virevo-shadow)!important;}
.admin-page-topbar h1,.admin-card h2,.admin-hero-card h1,.admin-login-card h1{font-family:"Source Sans 3",system-ui,sans-serif!important;color:var(--virevo-dark)!important;font-weight:700!important;letter-spacing:-.04em!important;}
.admin-version,.eyebrow{color:var(--virevo-primary)!important;letter-spacing:.16em!important;text-transform:uppercase!important;font-weight:700!important;}
.admin-card p,.admin-help,.admin-page-topbar p{color:var(--virevo-muted)!important;}
.admin-login-card img{width:210px!important;height:auto!important;margin:0 auto 20px!important;}
.admin-login-card{text-align:left!important;}
.admin-login-card h1{text-align:center!important;font-size:38px!important;}
.admin-login-card p{text-align:center!important;}
.admin-login-card button,.admin-form button,.admin-link-button.primary,.row-action,.portal-form button{background:var(--virevo-gradient)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 16px 34px rgba(37,99,235,.22)!important;}
.admin-link-button,.admin-form input,.admin-form select,.admin-form textarea,.admin-login-card input{border-color:var(--virevo-line)!important;background:#fff!important;color:var(--virevo-dark)!important;border-radius:16px!important;}
.admin-link-button{color:var(--virevo-dark)!important;}
.admin-link-button:hover{border-color:rgba(37,99,235,.35)!important;color:var(--virevo-primary)!important;background:#f8fbff!important;}
.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus,.admin-login-card input:focus{outline:none!important;border-color:var(--virevo-primary)!important;box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;}
.admin-table-wrap{border-color:var(--virevo-line)!important;background:#fff!important;border-radius:24px!important;box-shadow:0 14px 34px rgba(15,23,42,.04)!important;}
.admin-table th{background:#f8fbff!important;color:#475569!important;border-bottom-color:var(--virevo-line)!important;}
.admin-table td{border-bottom-color:#edf2fb!important;}
.status-pill.ok{background:#d1fae5!important;color:#047857!important}.status-pill.warn{background:#fef3c7!important;color:#92400e!important}.status-pill.muted{background:#eef2ff!important;color:#4338ca!important}.status-pill.danger{background:#fee2e2!important;color:#991b1b!important}
.calendar-shift{background:linear-gradient(135deg,color-mix(in srgb,var(--emp-color,#2563EB) 70%,#0F172A),var(--emp-color,#2563EB))!important;}
.admin-alert.success{background:#ecfdf5!important;color:#047857!important;border:1px solid #bbf7d0!important}.admin-alert.error{background:#fef2f2!important;color:#b91c1c!important;border:1px solid #fecaca!important;}
.admin-top-actions a[href="?action=logout"]{border-color:#fecaca!important;color:#dc2626!important;background:#fff5f5!important;box-shadow:none!important}.admin-top-actions a[href="?action=logout"]:hover{background:#fee2e2!important;}
@media(max-width:1050px){.admin-sidebar{background:#fff!important}.admin-brand img{width:145px!important}.admin-nav-group[open] .admin-nav-subitems{border-color:var(--virevo-line)!important;}}


/* v3.1 Virevo Premium SaaS Shell - dark sidebar, white workspace */
:root{
  --virevo-primary:#2563EB;
  --virevo-secondary:#6366F1;
  --virevo-accent:#10B981;
  --virevo-dark:#0F172A;
  --virevo-navy:#020B20;
  --virevo-navy-2:#071833;
  --virevo-bg:#F7FAFF;
  --virevo-card:#FFFFFF;
  --virevo-line:#E3EAF6;
  --virevo-text:#0F172A;
  --virevo-muted:#667085;
  --virevo-gradient:linear-gradient(135deg,#2563EB 0%,#6366F1 58%,#10B981 100%);
  --virevo-shadow:0 18px 48px rgba(15,23,42,.08);
  --virevo-shadow-soft:0 10px 28px rgba(15,23,42,.055);
}
.admin-saas-body,.admin-body{
  background:var(--virevo-bg)!important;
  color:var(--virevo-text)!important;
}
.admin-app-shell{
  grid-template-columns:280px minmax(0,1fr)!important;
  background:var(--virevo-bg)!important;
}
.admin-sidebar{
  background:radial-gradient(circle at 30% 0%,rgba(99,102,241,.22),transparent 30%),linear-gradient(180deg,var(--virevo-navy) 0%,#06142d 56%,#020817 100%)!important;
  color:#EAF1FF!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:18px 0 48px rgba(2,8,23,.18)!important;
  padding:24px 18px!important;
}
.admin-brand{
  min-height:62px!important;
  display:flex!important;
  align-items:center!important;
  padding:4px 4px 20px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  margin-bottom:4px!important;
}
.admin-brand img{
  width:174px!important;
  max-height:56px!important;
  object-fit:contain!important;
  filter:none!important;
}
.admin-brand span{display:none!important;}
.admin-accordion-nav{gap:7px!important;}
.admin-side-nav>a,
.admin-nav-group summary{
  color:#D8E4F8!important;
  border-radius:15px!important;
  padding:13px 13px!important;
  font-weight:600!important;
  background:transparent!important;
  box-shadow:none!important;
}
.admin-side-nav>a span,
.admin-nav-group summary span{
  background:rgba(255,255,255,.08)!important;
  color:#EAF1FF!important;
  width:26px!important;
  height:26px!important;
  border-radius:10px!important;
}
.admin-side-nav>a:hover,
.admin-nav-group summary:hover{
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
}
.admin-side-nav>a.active,
.admin-nav-group[open] summary{
  background:linear-gradient(135deg,#2563EB 0%,#6366F1 100%)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(37,99,235,.28)!important;
}
.admin-side-nav>a.active span,
.admin-nav-group[open] summary span{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.admin-nav-group summary em{color:rgba(255,255,255,.54)!important;}
.admin-nav-subitems{
  border-left:1px solid rgba(255,255,255,.13)!important;
  margin:8px 0 8px 24px!important;
  padding-left:10px!important;
  gap:4px!important;
}
.admin-nav-subitems a{
  color:#AFC0D9!important;
  background:transparent!important;
  padding:10px 12px!important;
  border-radius:13px!important;
}
.admin-nav-subitems a span{background:rgba(255,255,255,.07)!important;color:#CFE0FF!important;}
.admin-nav-subitems a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;}
.admin-nav-subitems a.active{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #6366F1!important;
}
.admin-main{min-width:0!important;background:var(--virevo-bg)!important;}
.admin-page-topbar{
  position:sticky!important;
  top:0!important;
  z-index:10!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin:0!important;
  padding:24px clamp(20px,3vw,38px)!important;
  border:0!important;
  border-bottom:1px solid var(--virevo-line)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.86)!important;
  backdrop-filter:blur(18px)!important;
  box-shadow:none!important;
}
.admin-page-topbar h1{
  font-size:30px!important;
  line-height:1.1!important;
  margin:2px 0 4px!important;
  letter-spacing:-.045em!important;
}
.admin-page-topbar p{font-size:14px!important;color:var(--virevo-muted)!important;margin:0!important;}
.admin-version{font-size:11px!important;color:var(--virevo-primary)!important;letter-spacing:.11em!important;}
.admin-content-shell{
  width:min(100% - 48px,1320px)!important;
  margin:26px auto 80px!important;
  display:grid!important;
  gap:22px!important;
}
.admin-card,.admin-hero-card,.admin-stat-card,.admin-login-card{
  background:#fff!important;
  border:1px solid var(--virevo-line)!important;
  border-radius:22px!important;
  box-shadow:var(--virevo-shadow-soft)!important;
}
.admin-card{padding:28px!important;}
.admin-stat-card{
  padding:22px!important;
  min-height:128px!important;
  position:relative!important;
  overflow:hidden!important;
}
.admin-stat-card:before{
  content:"";position:absolute;left:20px;top:20px;width:48px;height:48px;border-radius:18px;background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(99,102,241,.12));
}
.admin-stat-card span,.admin-stat-card strong,.admin-stat-card small{position:relative;display:block;margin-left:64px!important;}
.admin-stat-card span{font-size:13px!important;color:#52637A!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;}
.admin-stat-card strong{font-size:31px!important;letter-spacing:-.045em!important;color:var(--virevo-text)!important;margin-top:6px!important;}
.admin-stat-card small{color:#10B981!important;font-weight:600!important;margin-top:5px!important;}
.admin-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.admin-link-button,.row-action,.admin-form button,.admin-login-card button{
  min-height:44px!important;
  border-radius:12px!important;
  padding:11px 16px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.admin-link-button.primary,.row-action,.admin-form button,.admin-login-card button{
  background:linear-gradient(135deg,#2563EB,#6366F1)!important;
  color:#fff!important;
  box-shadow:0 14px 28px rgba(37,99,235,.22)!important;
}
.admin-link-button{background:#fff!important;border-color:var(--virevo-line)!important;color:var(--virevo-text)!important;box-shadow:0 6px 18px rgba(15,23,42,.04)!important;}
.admin-top-actions{display:flex!important;align-items:center!important;gap:12px!important;}
.admin-form label{font-size:13px!important;color:#27364A!important;font-weight:700!important;}
.admin-form input,.admin-form select,.admin-form textarea,.admin-login-card input{
  min-height:48px!important;
  border-radius:14px!important;
  border-color:#D7E1F0!important;
  background:#fff!important;
  padding:13px 15px!important;
}
.admin-grid{gap:18px!important;}
.admin-table-wrap{border-radius:20px!important;box-shadow:0 12px 30px rgba(15,23,42,.045)!important;overflow:auto!important;}
.admin-table{min-width:0!important;}
.admin-table th{
  background:#F8FAFF!important;
  color:#50627A!important;
  font-size:11px!important;
  letter-spacing:.075em!important;
  padding:14px 16px!important;
}
.admin-table td{padding:15px 16px!important;}
.status-pill{border-radius:999px!important;padding:7px 11px!important;font-size:11px!important;letter-spacing:.045em!important;}
.admin-alert{border-radius:16px!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;}
.calendar-toolbar strong{font-family:"Source Sans 3",system-ui,sans-serif!important;font-size:28px!important;color:var(--virevo-text)!important;}
.calendar-shift{border-radius:12px!important;background:linear-gradient(135deg,#2563EB,#6366F1)!important;}
.month-calendar{border-color:var(--virevo-line)!important;border-radius:22px!important;background:#fff!important;}
.calendar-weekday{background:#F8FAFF!important;color:#667085!important;}
.calendar-day{background:#fff!important;}
.calendar-day.muted{background:#F7FAFF!important;}
@media(max-width:1050px){
  .admin-app-shell{grid-template-columns:1fr!important;}
  .admin-sidebar{position:relative!important;height:auto!important;border-radius:0 0 22px 22px!important;}
  .admin-page-topbar{position:relative!important;align-items:flex-start!important;flex-direction:column!important;}
  .admin-content-shell{width:calc(100% - 28px)!important;}
  .admin-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .admin-nav-group[open] .admin-nav-subitems{background:#071833!important;border-color:rgba(255,255,255,.12)!important;}
}
@media(max-width:650px){
  .admin-dashboard-grid{grid-template-columns:1fr!important;}
  .admin-content-shell{width:calc(100% - 18px)!important;margin-top:16px!important;}
  .admin-card{padding:18px!important;border-radius:18px!important;}
  .admin-page-topbar{padding:18px 14px!important;}
  .admin-page-topbar h1{font-size:26px!important;}
  .admin-top-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important;}
}


/* v3.1a - sidebar full-height background fix */
.admin-saas-body{position:relative!important;}
.admin-saas-body:before{
  content:"";
  position:fixed;
  left:0;top:0;bottom:0;
  width:280px;
  background:radial-gradient(circle at 30% 0%,rgba(99,102,241,.22),transparent 30%),linear-gradient(180deg,var(--virevo-navy) 0%,#06142d 56%,#020817 100%);
  z-index:0;
  pointer-events:none;
}
.admin-app-shell{position:relative!important;z-index:1!important;min-height:100vh!important;}
.admin-sidebar{position:sticky!important;top:0!important;align-self:start!important;height:100vh!important;min-height:100vh!important;}
@media(max-width:1050px){
  .admin-saas-body:before{display:none!important;}
  .admin-sidebar{position:relative!important;height:auto!important;min-height:0!important;}
}

/* v3.1b - sidebar must visually continue over full scroll height */
.admin-saas-body,
.admin-body{
  min-height:100vh!important;
  background:
    linear-gradient(90deg,
      var(--virevo-navy) 0,
      var(--virevo-navy) 280px,
      var(--virevo-bg) 280px,
      var(--virevo-bg) 100%)!important;
}
.admin-app-shell{
  min-height:100vh!important;
  align-items:stretch!important;
  background:
    linear-gradient(90deg,
      transparent 0,
      transparent 280px,
      var(--virevo-bg) 280px,
      var(--virevo-bg) 100%)!important;
}
.admin-sidebar{
  min-height:100vh!important;
  height:auto!important;
  align-self:stretch!important;
}
@media(min-width:1051px){
  .admin-sidebar{
    position:sticky!important;
    top:0!important;
    height:100vh!important;
    align-self:start!important;
  }
  .admin-app-shell:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:280px;
    background:radial-gradient(circle at 30% 0%,rgba(99,102,241,.22),transparent 30%),linear-gradient(180deg,var(--virevo-navy) 0%,#06142d 56%,#020817 100%);
    z-index:-1;
    pointer-events:none;
  }
}
@media(max-width:1050px){
  .admin-saas-body,.admin-body{background:var(--virevo-bg)!important;}
  .admin-app-shell{background:var(--virevo-bg)!important;}
  .admin-app-shell:before{display:none!important;}
}

/* v3.1c - KapperPLUS-style stable fixed sidebar (no repeating background, no flicker) */
@media (min-width:1051px){
  .admin-saas-body,
  .admin-body{
    min-height:100vh!important;
    background:var(--virevo-bg)!important;
    overflow-x:hidden!important;
  }
  .admin-saas-body:before,
  .admin-app-shell:before{
    display:none!important;
    content:none!important;
  }
  .admin-app-shell{
    display:block!important;
    min-height:100vh!important;
    background:var(--virevo-bg)!important;
  }
  .admin-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:280px!important;
    height:100vh!important;
    min-height:100vh!important;
    max-height:100vh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    align-self:auto!important;
    z-index:100!important;
    background:#020B20!important;
    background-image:radial-gradient(circle at 30% 0%,rgba(99,102,241,.22),transparent 30%),linear-gradient(180deg,var(--virevo-navy) 0%,#06142d 56%,#020817 100%)!important;
    background-repeat:no-repeat!important;
    background-size:100% 100%!important;
    background-attachment:scroll!important;
    transform:translateZ(0);
    will-change:auto!important;
    backface-visibility:hidden;
    contain:layout paint;
  }
  .admin-main{
    margin-left:280px!important;
    width:calc(100% - 280px)!important;
    min-width:0!important;
    background:var(--virevo-bg)!important;
  }
  .admin-page-topbar{
    left:280px!important;
    width:auto!important;
  }
}
@media (max-width:1050px){
  .admin-sidebar{
    position:relative!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    transform:none!important;
    contain:none!important;
  }
  .admin-main{
    margin-left:0!important;
    width:auto!important;
  }
}

/* v3.1d - sidebar merkfooter en Virevo Workforce header */
.admin-brand{
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:7px!important;
  padding:4px 6px 24px!important;
  margin-bottom:12px!important;
}
.admin-brand span{
  display:block!important;
  color:rgba(234,241,255,.72)!important;
  font-size:13px!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
  padding-left:2px!important;
}
.admin-sidebar{
  display:flex!important;
  flex-direction:column!important;
}
.admin-accordion-nav{
  flex:1 1 auto!important;
}
.admin-sidebar-footer-brand{
  margin-top:auto;
  padding:18px 6px 4px;
  color:rgba(234,241,255,.66);
  display:grid;
  gap:7px;
  align-items:start;
}
.admin-sidebar-divider{
  height:1px;
  background:rgba(255,255,255,.11);
  margin-bottom:10px;
}
.admin-sidebar-footer-brand img{
  width:118px;
  max-width:100%;
  height:auto;
  display:block;
  opacity:.92;
  filter:brightness(1.08);
}
.admin-sidebar-footer-brand p{
  margin:4px 0 0;
  font-size:11px;
  line-height:1.2;
  color:rgba(234,241,255,.48);
}
.admin-sidebar-footer-brand strong{
  font-size:12px;
  line-height:1.2;
  font-weight:600;
  color:rgba(255,255,255,.78);
}
.admin-sidebar-footer-brand small{
  display:block;
  margin-top:4px;
  font-size:10px;
  line-height:1.45;
  color:rgba(234,241,255,.42);
}
@media(max-width:1050px){
  .admin-brand{flex-direction:row!important;align-items:center!important;padding-bottom:14px!important;margin-bottom:8px!important;}
  .admin-sidebar-footer-brand{display:none!important;}
}


/* v3.1e - sidebar label polish + accordion rust */
.admin-brand span{
  padding-left:28px!important;
  text-transform:none!important;
  letter-spacing:.06em!important;
  font-size:14px!important;
}
.admin-version-hidden{display:none!important;}
.admin-page-topbar h1{margin-top:0!important;}
.admin-nav-group[open] summary em{transform:rotate(90deg);}
.admin-nav-group summary em{transition:transform .16s ease;}
@media(max-width:1050px){.admin-brand span{padding-left:0!important;}}


/* v3.1f - login branding polish + rooster medewerkerkleuren */
.virevo-login-body,
.admin-body:has(.virevo-login-card){
  min-height:100vh!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 16% 12%,rgba(37,99,235,.28),transparent 30%),
    radial-gradient(circle at 88% 18%,rgba(99,102,241,.24),transparent 28%),
    radial-gradient(circle at 70% 88%,rgba(16,185,129,.18),transparent 30%),
    linear-gradient(135deg,#0F172A 0%,#081631 54%,#111827 100%)!important;
}
.virevo-login-body:before,
.admin-body:has(.virevo-login-card):before{
  content:"";
  position:fixed;
  inset:-35%;
  background:conic-gradient(from 180deg,rgba(37,99,235,.22),rgba(99,102,241,.18),rgba(16,185,129,.14),rgba(37,99,235,.22));
  filter:blur(54px);
  opacity:.55;
  animation:virevoGlow 14s ease-in-out infinite alternate;
  pointer-events:none;
}
@keyframes virevoGlow{from{transform:translate3d(-2%,1%,0) rotate(0deg)}to{transform:translate3d(2%,-1%,0) rotate(18deg)}}
.virevo-login-card{
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  margin:0!important;
  width:min(92vw,460px)!important;
  padding:38px!important;
  text-align:left!important;
  border:1px solid rgba(255,255,255,.42)!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(22px)!important;
  box-shadow:0 30px 90px rgba(2,8,23,.34)!important;
}
.virevo-login-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,#2563EB,#6366F1,#10B981);
}
.virevo-login-orb{
  position:absolute;
  right:-54px;
  top:-54px;
  width:156px;
  height:156px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(37,99,235,.24),rgba(99,102,241,.20),rgba(16,185,129,.16));
  filter:blur(.2px);
  z-index:-1;
  animation:virevoFloat 7s ease-in-out infinite;
}
@keyframes virevoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(12px)}}
.virevo-login-logo{width:210px!important;max-width:100%!important;height:auto!important;margin:0 0 10px!important;display:block!important;}
.virevo-login-product{margin:0 0 24px 34px!important;color:#6366F1!important;font-size:13px!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:none!important;}
.virevo-login-card h1{text-align:left!important;font-size:34px!important;margin:0 0 8px!important;}
.virevo-login-card p:not(.virevo-login-product){text-align:left!important;}
.virevo-login-footer{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid #E3EAF6;
  display:grid;
  gap:6px;
  justify-items:start;
  color:#64748B;
}
.virevo-login-footer img{width:118px!important;height:auto!important;opacity:.9!important;margin:0!important;}
.virevo-login-footer span{font-size:12px;font-weight:600;color:#475569;}
.virevo-login-footer small{font-size:11px;color:#94A3B8;}
.calendar-shift{
  background:linear-gradient(135deg,color-mix(in srgb,var(--emp-color,#2563EB) 72%,#0F172A),var(--emp-color,#2563EB))!important;
  border-left:5px solid var(--emp-color,#2563EB)!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--emp-color,#2563EB) 24%, transparent)!important;
}
.availability-chip,.available,.portal-chip.available{background:#EEF2FF!important;color:#4338CA!important;}


/* v3.1g - Virevo login branding polish */
.virevo-login-body,
.admin-body:has(.virevo-login-card),
.portal-body:has(.virevo-login-card){
  min-height:100vh!important;
  overflow-x:hidden!important;
  background:
    radial-gradient(circle at 18% 18%, rgba(37,99,235,.28), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(99,102,241,.24), transparent 34%),
    radial-gradient(circle at 75% 86%, rgba(16,185,129,.12), transparent 30%),
    linear-gradient(135deg,#EFF6FF 0%,#F8FAFC 44%,#EEF2FF 100%)!important;
  position:relative!important;
}
.virevo-login-body:after,
.admin-body:has(.virevo-login-card):after,
.portal-body:has(.virevo-login-card):after{
  content:"";
  position:fixed;
  inset:-35%;
  pointer-events:none;
  z-index:0;
  background:linear-gradient(115deg,transparent 0 35%,rgba(255,255,255,.42) 47%,transparent 60% 100%);
  transform:translateX(-18%);
  animation:virevoLoginSweep 13s ease-in-out infinite alternate;
}
@keyframes virevoLoginSweep{from{transform:translateX(-20%) rotate(0deg)}to{transform:translateX(16%) rotate(3deg)}}
.virevo-login-card{position:relative!important;z-index:2!important;backdrop-filter:blur(16px)!important;background:rgba(255,255,255,.86)!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 30px 90px rgba(15,23,42,.16)!important;}
.virevo-login-logo{width:260px!important;max-width:100%!important;height:auto!important;margin:0 0 12px!important;display:block!important;}
.virevo-login-product{margin-left:42px!important;}
.virevo-login-footer{display:none!important;}
.virevo-login-brandmark{position:fixed;left:28px;bottom:24px;z-index:3;display:grid;gap:4px;justify-items:start;align-items:end;opacity:.78;color:#475569;font-family:"Source Sans 3",system-ui,sans-serif;animation:virevoBrandFade .8s ease-out both;}
.virevo-login-brandmark img{width:92px;height:auto;display:block;margin:0 0 4px 0;filter:drop-shadow(0 8px 22px rgba(15,23,42,.12));}
.virevo-login-brandmark span{font-size:11px;color:#64748B;line-height:1.2;}
.virevo-login-brandmark strong{font-size:13px;color:#334155;line-height:1.2;font-weight:600;}
.virevo-login-brandmark small{font-size:11px;color:#94A3B8;margin-top:4px;}
@keyframes virevoBrandFade{from{opacity:0;transform:translateY(8px)}to{opacity:.78;transform:translateY(0)}}
@media(max-width:760px){
  .virevo-login-card{margin:28px auto 18px!important;}
  .virevo-login-logo{width:210px!important;}
  .virevo-login-brandmark{position:relative;left:auto;bottom:auto;margin:10px auto 24px;width:min(320px,calc(100% - 40px));justify-items:center;text-align:center;opacity:.72;}
  .virevo-login-brandmark img{width:78px;margin-bottom:2px;}
}
@media(prefers-reduced-motion:reduce){.virevo-login-body:after,.admin-body:has(.virevo-login-card):after,.portal-body:has(.virevo-login-card):after,.virevo-login-orb,.virevo-login-brandmark{animation:none!important}}

/* v3.5a - logo links to Virevo */
.logo-link{display:inline-flex;align-items:center;text-decoration:none;color:inherit}.logo-link img{display:block}.logo-link:hover{opacity:.92}

/* v3.6 - Uren goedkeuren */
.hour-entries-table strong{font-weight:700;color:#0F172A;}
.hour-entries-table small{color:#64748B;line-height:1.4;}
@media(max-width:860px){
  .hour-entries-table tr{display:grid;gap:8px;border-bottom:1px solid rgba(148,163,184,.22);padding:12px 0;}
  .hour-entries-table thead{display:none;}
  .hour-entries-table td{display:block;border:0!important;padding:2px 0!important;}
  .hour-entries-table td:before{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#94A3B8;font-weight:700;margin-bottom:2px;}
  .hour-entries-table td:nth-child(1):before{content:'Medewerker';}
  .hour-entries-table td:nth-child(2):before{content:'Datum';}
  .hour-entries-table td:nth-child(3):before{content:'Tijden';}
  .hour-entries-table td:nth-child(4):before{content:'Netto';}
  .hour-entries-table td:nth-child(5):before{content:'Status';}
  .hour-entries-table td:nth-child(6):before{content:'Opmerking';}
  .hour-entries-table td:nth-child(7):before{content:'Beoordelen';}
}


/* v3.6a - kleine SaaS make-over admin menu */
.admin-sidebar{
  background:
    radial-gradient(circle at 18% -8%,rgba(16,185,129,.22),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(99,102,241,.28),transparent 30%),
    linear-gradient(180deg,#020B20 0%,#071833 54%,#020817 100%)!important;
}
.admin-brand{
  border-radius:22px!important;
  padding:10px 10px 18px!important;
  margin-bottom:10px!important;
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
.admin-accordion-nav{
  gap:9px!important;
  padding-top:4px!important;
}
.admin-side-nav>a,
.admin-nav-group summary{
  min-height:48px!important;
  border:1px solid transparent!important;
  letter-spacing:.005em!important;
}
.admin-side-nav>a:hover,
.admin-nav-group summary:hover{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.10)!important;
  transform:translateX(2px)!important;
}
.admin-side-nav>a.active,
.admin-nav-group[open] summary{
  border-color:rgba(255,255,255,.16)!important;
  box-shadow:0 14px 30px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.18)!important;
}
.admin-nav-subitems{
  margin-top:7px!important;
  margin-bottom:9px!important;
}
.admin-nav-subitems a.active{
  border:1px solid rgba(255,255,255,.10)!important;
}
@media(max-width:1050px){
  .admin-sidebar{box-shadow:0 18px 38px rgba(2,8,23,.18)!important;}
  .admin-brand{background:rgba(255,255,255,.04)!important;}
}

/* v3.6b - admin sidebar polish + automatisering parkeren */
.admin-app-shell{grid-template-columns:306px minmax(0,1fr)!important;}
.admin-sidebar{
  background:
    radial-gradient(circle at 18% -8%,rgba(16,185,129,.15),transparent 30%),
    radial-gradient(circle at 92% 10%,rgba(99,102,241,.20),transparent 32%),
    linear-gradient(180deg,#071833 0%,#0B1D3D 52%,#061225 100%)!important;
  padding-left:20px!important;
  padding-right:20px!important;
}
.admin-brand img{width:158px!important;max-height:48px!important;}
.admin-brand span{padding-left:20px!important;font-size:13px!important;}
.admin-sidebar-footer-brand img{width:92px!important;opacity:.86!important;}
.admin-nav-group summary,.admin-side-nav>a{padding-left:14px!important;padding-right:14px!important;}
.admin-nav-subitems{margin-left:28px!important;padding-left:12px!important;}
.parking-admin-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;align-items:start;}
.parking-hero-card{background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(16,185,129,.08)),#fff!important;}
.parking-plate-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid #E3EAF6;}
.parking-plate-list span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#EFF6FF;color:#1D4ED8;font-weight:700;font-size:13px;border:1px solid #DBEAFE;letter-spacing:.03em;}
@media(max-width:1050px){.admin-app-shell{grid-template-columns:1fr!important}.parking-admin-grid{grid-template-columns:1fr}.admin-brand img{width:142px!important}.admin-brand span{padding-left:0!important}}

/* v3.6c - admin sidebar uitklappen + parkeerautomatisering */
.admin-app-shell{grid-template-columns:318px minmax(0,1fr)!important;}
.admin-sidebar{
  background:
    radial-gradient(circle at 18% -8%,rgba(16,185,129,.11),transparent 32%),
    radial-gradient(circle at 92% 10%,rgba(99,102,241,.16),transparent 34%),
    linear-gradient(180deg,#0B1D3D 0%,#10264A 52%,#071833 100%)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
}
.admin-sidebar::-webkit-scrollbar{width:7px;}
.admin-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.20);border-radius:999px;}
.admin-brand img{width:146px!important;max-height:42px!important;object-fit:contain!important;}
.admin-brand{padding-bottom:14px!important;margin-bottom:8px!important;}
.admin-accordion-nav{flex:0 0 auto!important;overflow:visible!important;padding-bottom:14px!important;}
.admin-nav-group{overflow:visible!important;}
.admin-nav-subitems{overflow:visible!important;max-height:none!important;display:grid!important;}
.admin-nav-subitems a{min-height:40px!important;}
.admin-sidebar-footer-brand{margin-top:10px!important;padding-top:12px!important;}
.parking-automation-grid{margin-top:18px;}
.parking-automation-list{display:grid;gap:12px;}
.parking-automation-card{display:grid;gap:10px;border:1px solid #E3EAF6;border-radius:20px;padding:15px;background:linear-gradient(180deg,#fff,#F8FAFC);box-shadow:0 10px 24px rgba(15,23,42,.04);}
.parking-automation-card>div:first-child{display:grid;gap:3px;}
.parking-automation-card strong{color:#0F172A;font-weight:700;}
.parking-automation-card small{color:#64748B;font-weight:600;}
.parking-automation-card p{margin:0;color:#475569;font-size:13px;line-height:1.45;background:#F8FAFC;border:1px solid #E3EAF6;border-radius:14px;padding:10px;}
.parking-automation-card .admin-actions{display:flex;gap:8px;align-items:center;}
.parking-automation-card form{margin:0;}
.parking-automation-card button.danger{min-height:40px;padding:0 14px;border-radius:12px;border:0;background:#FEF2F2;color:#DC2626;font-weight:700;cursor:pointer;}
.parking-automation-card button.danger:hover{background:#FEE2E2;}
@media(max-width:1050px){.admin-app-shell{grid-template-columns:1fr!important}.admin-sidebar{overflow:visible!important}.admin-brand img{width:136px!important}.admin-accordion-nav{overflow-x:auto!important}.parking-automation-grid{grid-template-columns:1fr!important}}

/* v3.6h - demo-safe sidebar footer fix: keep v3.6c navigation intact */
@media (min-width:1051px){
  .admin-app-shell{grid-template-columns:318px minmax(0,1fr)!important;}
  .admin-sidebar{
    height:100vh!important;
    min-height:100vh!important;
    max-height:100vh!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .admin-brand{
    flex:0 0 auto!important;
  }
  .admin-accordion-nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:4px!important;
    padding-bottom:16px!important;
  }
  .admin-accordion-nav::-webkit-scrollbar{width:6px;}
  .admin-accordion-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px;}
  .admin-sidebar-footer-brand{
    flex:0 0 auto!important;
    margin-top:12px!important;
    padding-top:12px!important;
    background:linear-gradient(180deg,rgba(11,29,61,0),rgba(11,29,61,.34) 18%,rgba(11,29,61,.52))!important;
  }
  .admin-sidebar-footer-brand img{
    width:94px!important;
    max-height:42px!important;
    object-fit:contain!important;
    opacity:.9!important;
  }
  .admin-nav-group,
  .admin-nav-subitems{
    overflow:visible!important;
    max-height:none!important;
  }
  .admin-nav-subitems{
    display:grid!important;
  }
}


/* v3.6i - tiny sidebar brand + portal social demo login */
@media (min-width:1051px){
  .admin-sidebar-footer-brand img{width:94px!important;max-height:42px!important;}
}

/* v3.6j - demo polish: footer logo left + slightly larger */
@media (min-width:1051px){
  .admin-sidebar-footer-brand{
    text-align:left!important;
    align-items:start!important;
    justify-items:start!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .admin-sidebar-footer-brand .logo-link{
    display:block!important;
    margin-left:0!important;
    align-self:start!important;
    justify-self:start!important;
  }
  .admin-sidebar-footer-brand img{
    width:112px!important;
    max-height:50px!important;
    object-fit:contain!important;
    object-position:left center!important;
    margin-left:0!important;
    transform:none!important;
  }
}


/* v3.6k demo smooth-load: prevents visible reflow/flicker while critical CSS/fonts settle */
html.virevo-booting body {
  opacity: 0;
}
html.virevo-ready body {
  opacity: 1;
  transition: opacity .18s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  html.virevo-ready body { transition: none; }
}

/* v3.8a - Virevo Design System v1: consistent admin forms, buttons, cards and badges */
:root{
  --vw-primary:#2563EB;
  --vw-secondary:#6366F1;
  --vw-accent:#10B981;
  --vw-dark:#0F172A;
  --vw-surface:#FFFFFF;
  --vw-line:#DDE7F3;
  --vw-line-strong:#C7D5EA;
  --vw-muted:#64748B;
  --vw-radius-sm:12px;
  --vw-radius-md:16px;
  --vw-radius-lg:22px;
  --vw-shadow-card:0 12px 30px rgba(15,23,42,.055);
  --vw-focus:0 0 0 4px rgba(37,99,235,.13);
}
.admin-card,
.parking-automation-card,
.parking-hero-card{
  border:1px solid var(--vw-line)!important;
  border-radius:var(--vw-radius-lg)!important;
  background:var(--vw-surface)!important;
  box-shadow:var(--vw-shadow-card)!important;
}
.admin-form label,
.inline-status-form label{
  color:var(--vw-dark)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form select,
.admin-form textarea,
.inline-status-form input,
.inline-status-form select,
.admin-table input:not([type="checkbox"]):not([type="radio"]),
.admin-table select,
.parking-automation-card input,
.parking-automation-card select{
  min-height:46px!important;
  height:46px!important;
  box-sizing:border-box!important;
  border:1px solid var(--vw-line-strong)!important;
  border-radius:var(--vw-radius-sm)!important;
  background:#fff!important;
  color:var(--vw-dark)!important;
  padding:0 14px!important;
  font:inherit!important;
  font-size:14px!important;
  font-weight:600!important;
  outline:none!important;
  box-shadow:none!important;
  transition:border-color .16s ease, box-shadow .16s ease!important;
}
.admin-form textarea{height:auto!important;min-height:94px!important;padding:13px 14px!important;resize:vertical!important;}
.admin-form input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-form select:focus,
.admin-form textarea:focus,
.inline-status-form input:focus,
.inline-status-form select:focus,
.admin-table input:focus,
.admin-table select:focus{
  border-color:var(--vw-primary)!important;
  box-shadow:var(--vw-focus)!important;
}
.admin-form .checkline,
.checkline,
label.checkline{
  min-height:46px!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding:0 14px!important;
  border:1px solid var(--vw-line-strong)!important;
  border-radius:var(--vw-radius-sm)!important;
  background:#fff!important;
  color:var(--vw-dark)!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
.checkline.compact{min-height:36px!important;padding:0 10px!important;font-size:13px!important;}
.admin-form input[type="checkbox"],
.admin-form input[type="radio"],
.checkline input[type="checkbox"],
.checkline input[type="radio"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
  margin:0!important;
  display:inline-grid!important;
  place-content:center!important;
  border:1.7px solid #B7C5DA!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
  flex:0 0 20px!important;
}
.admin-form input[type="radio"],.checkline input[type="radio"]{border-radius:999px!important;}
.admin-form input[type="checkbox"]:before,.checkline input[type="checkbox"]:before{
  content:""!important;
  width:10px!important;
  height:6px!important;
  border-left:2px solid #fff!important;
  border-bottom:2px solid #fff!important;
  transform:rotate(-45deg) scale(0)!important;
  transition:transform .12s ease!important;
}
.admin-form input[type="radio"]:before,.checkline input[type="radio"]:before{
  content:""!important;
  width:8px!important;
  height:8px!important;
  border-radius:999px!important;
  background:#fff!important;
  transform:scale(0)!important;
  transition:transform .12s ease!important;
}
.admin-form input[type="checkbox"]:checked,
.admin-form input[type="radio"]:checked,
.checkline input[type="checkbox"]:checked,
.checkline input[type="radio"]:checked{
  border-color:var(--vw-primary)!important;
  background:linear-gradient(135deg,var(--vw-primary),var(--vw-secondary))!important;
}
.admin-form input[type="checkbox"]:checked:before,.checkline input[type="checkbox"]:checked:before{transform:rotate(-45deg) scale(1)!important;}
.admin-form input[type="radio"]:checked:before,.checkline input[type="radio"]:checked:before{transform:scale(1)!important;}
.admin-form button,
.inline-status-form button,
.admin-actions button:not(.danger),
.admin-link-button.primary{
  min-height:46px!important;
  border:0!important;
  border-radius:var(--vw-radius-sm)!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font:inherit!important;
  font-size:14px!important;
  font-weight:700!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--vw-primary),var(--vw-secondary))!important;
  box-shadow:0 14px 26px rgba(37,99,235,.18)!important;
  cursor:pointer!important;
}
.status-pill,
.admin-table .status-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  height:30px!important;
  padding:0 11px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  font-size:10.5px!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  line-height:1!important;
  border:1px solid transparent!important;
}
.status-pill.wait-colleague{background:#FFF7ED!important;color:#C2410C!important;border-color:#FED7AA!important;}
.status-pill.wait-manager{background:#FEFCE8!important;color:#A16207!important;border-color:#FDE68A!important;}
.status-pill.approved{background:#ECFDF5!important;color:#047857!important;border-color:#A7F3D0!important;}
.status-pill.declined{background:#FEF2F2!important;color:#B91C1C!important;border-color:#FECACA!important;}
.status-pill.completed,.status-pill.done{background:#EFF6FF!important;color:#1D4ED8!important;border-color:#BFDBFE!important;}
.inline-status-form{display:grid!important;grid-template-columns:1fr;gap:8px!important;align-items:stretch!important;}
.inline-status-form input,.inline-status-form select,.inline-status-form button{width:100%!important;}
@media(max-width:760px){
  .admin-card{border-radius:20px!important;}
  .admin-form .checkline,.checkline,label.checkline{width:100%!important;box-sizing:border-box!important;}
}

/* v3.8b - UI compact hotfix: smaller controls and checkboxes */
.admin-main input:not([type="checkbox"]):not([type="radio"]),
.admin-main select,
.admin-main textarea,
.admin-main .form-control{
  min-height:42px!important;
  height:42px!important;
  border-radius:11px!important;
  padding:0 13px!important;
  font-size:14px!important;
}
.admin-main textarea{height:auto!important;min-height:84px!important;padding:11px 13px!important;}
.admin-main button,
.admin-main .btn,
.admin-main input[type="submit"]{
  min-height:42px!important;
  height:42px!important;
  border-radius:11px!important;
  padding:0 15px!important;
  font-size:13.5px!important;
}
.admin-main input[type="checkbox"],
.admin-main input[type="radio"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  vertical-align:middle!important;
}

/* v3.9 - Virevo Design System Polish
   Eén compact component-systeem voor admin: buttons, inputs, checkboxes, badges, cards en spacing. */
:root{
  --vw-bg:#F4F7FB;
  --vw-surface:#FFFFFF;
  --vw-surface-soft:#F8FAFC;
  --vw-text:#0F172A;
  --vw-muted:#64748B;
  --vw-line:#E2E8F0;
  --vw-line-strong:#CBD5E1;
  --vw-primary:#17342D;
  --vw-primary-2:#2563EB;
  --vw-gold:#B9975C;
  --vw-danger:#B91C1C;
  --vw-radius-xs:8px;
  --vw-radius-sm:11px;
  --vw-radius-md:16px;
  --vw-radius-lg:22px;
  --vw-shadow-card:0 14px 40px rgba(15,23,42,.07);
  --vw-shadow-soft:0 8px 22px rgba(15,23,42,.06);
  --vw-control-h:40px;
  --vw-control-pad:12px;
}
.admin-saas-body,.admin-main{background:var(--vw-bg)!important;color:var(--vw-text)!important;}
.admin-main{font-size:14px!important;line-height:1.5!important;}
.admin-main *{box-sizing:border-box;}
.admin-content,.admin-main{min-width:0!important;}
.admin-card,.admin-hero-card,.admin-stat-card,.admin-quick-card,.parking-automation-card,.employee-admin-item,.shift-admin-item,.gallery-admin-item,.calendar-card,.repeat-box,.portal-like-card{
  background:var(--vw-surface)!important;
  border:1px solid var(--vw-line)!important;
  border-radius:var(--vw-radius-lg)!important;
  box-shadow:var(--vw-shadow-card)!important;
}
.admin-card,.admin-hero-card{padding:22px!important;}
.admin-stat-card{padding:18px!important;}
.admin-card + .admin-card,.admin-grid + .admin-actions,.admin-form-section + .admin-form-section{margin-top:18px!important;}
.admin-card-head{align-items:flex-start!important;margin-bottom:16px!important;gap:14px!important;}
.admin-card-head h2,.admin-card h2,.admin-hero-card h1{margin:0 0 6px!important;letter-spacing:-.025em!important;color:var(--vw-text)!important;}
.admin-card p,.admin-help,.admin-card small,.admin-table small{color:var(--vw-muted)!important;}
.admin-form,.admin-grid{gap:14px!important;}
.admin-grid{align-items:start!important;}
.admin-form label{gap:6px!important;font-size:12px!important;font-weight:700!important;color:#334155!important;line-height:1.25!important;}
.admin-main input:not([type="checkbox"]):not([type="radio"]),
.admin-main select,
.admin-main textarea,
.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form select,
.admin-form textarea,
.inline-status-form input,
.inline-status-form select{
  width:100%!important;
  min-height:var(--vw-control-h)!important;
  height:var(--vw-control-h)!important;
  padding:0 var(--vw-control-pad)!important;
  border:1px solid var(--vw-line-strong)!important;
  border-radius:var(--vw-radius-sm)!important;
  background:#fff!important;
  color:var(--vw-text)!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:600!important;
  outline:none!important;
  transition:border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}
.admin-main textarea,.admin-form textarea{height:auto!important;min-height:82px!important;padding:10px 12px!important;resize:vertical!important;}
.admin-main input::placeholder,.admin-form input::placeholder,.admin-main textarea::placeholder,.admin-form textarea::placeholder{color:#94A3B8!important;font-weight:550!important;}
.admin-main input:focus,.admin-main select:focus,.admin-main textarea:focus,.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{
  border-color:#2563EB!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;
}
.admin-main select,.admin-form select{appearance:auto!important;}
.checkline,.admin-form .checkline,label.checkline{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  min-height:var(--vw-control-h)!important;
  height:auto!important;
  padding:9px 11px!important;
  border:1px solid var(--vw-line)!important;
  border-radius:var(--vw-radius-sm)!important;
  background:var(--vw-surface-soft)!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.admin-main input[type="checkbox"],.admin-main input[type="radio"],.admin-form input[type="checkbox"],.admin-form input[type="radio"],.checkline input[type="checkbox"],.checkline input[type="radio"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;
  flex:0 0 15px!important;margin:0!important;padding:0!important;
  border:1.5px solid #94A3B8!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;display:inline-grid!important;place-content:center!important;cursor:pointer!important;
}
.admin-main input[type="radio"],.admin-form input[type="radio"],.checkline input[type="radio"]{border-radius:999px!important;}
.admin-main input[type="checkbox"]::before,.admin-form input[type="checkbox"]::before,.checkline input[type="checkbox"]::before{content:""!important;width:7px!important;height:4px!important;border-left:1.7px solid #fff!important;border-bottom:1.7px solid #fff!important;transform:rotate(-45deg) scale(0)!important;transition:transform .12s ease!important;}
.admin-main input[type="radio"]::before,.admin-form input[type="radio"]::before,.checkline input[type="radio"]::before{content:""!important;width:5px!important;height:5px!important;border-radius:999px!important;background:#fff!important;transform:scale(0)!important;transition:transform .12s ease!important;}
.admin-main input[type="checkbox"]:checked,.admin-main input[type="radio"]:checked,.admin-form input[type="checkbox"]:checked,.admin-form input[type="radio"]:checked,.checkline input:checked{border-color:#2563EB!important;background:#2563EB!important;}
.admin-main input[type="checkbox"]:checked::before,.admin-form input[type="checkbox"]:checked::before,.checkline input[type="checkbox"]:checked::before{transform:rotate(-45deg) scale(1)!important;}
.admin-main input[type="radio"]:checked::before,.admin-form input[type="radio"]:checked::before,.checkline input[type="radio"]:checked::before{transform:scale(1)!important;}
.admin-link-button,.row-action,.admin-main button,.admin-form button,.inline-status-form button,.admin-actions button,.admin-main .btn{
  min-height:var(--vw-control-h)!important;height:var(--vw-control-h)!important;padding:0 14px!important;border-radius:var(--vw-radius-sm)!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  border:1px solid var(--vw-line-strong)!important;background:#fff!important;color:#17342D!important;text-decoration:none!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:0!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap!important;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease!important;
}
.admin-link-button:hover,.row-action:hover,.admin-main button:hover,.admin-form button:hover{transform:translateY(-1px)!important;box-shadow:var(--vw-shadow-soft)!important;}
.admin-link-button.primary,.admin-form button[type="submit"],.admin-main button[type="submit"],.inline-status-form button,.row-action.primary{
  border-color:transparent!important;background:linear-gradient(135deg,#17342D,#2563EB)!important;color:#fff!important;
}
.admin-link-button.secondary,.admin-main button.secondary,.admin-form button.secondary{background:#fff!important;color:#17342D!important;border-color:var(--vw-line-strong)!important;}
.admin-main .danger,button.danger,.admin-delete-form button.danger,.admin-actions button.danger{
  border-color:transparent!important;background:#B91C1C!important;color:#fff!important;min-height:var(--vw-control-h)!important;height:var(--vw-control-h)!important;padding:0 14px!important;border-radius:var(--vw-radius-sm)!important;font-size:13px!important;
}
.admin-actions,.settings-actions,.admin-top-actions,.admin-quick-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
.admin-table-wrap{border-color:var(--vw-line)!important;border-radius:var(--vw-radius-md)!important;background:#fff!important;box-shadow:none!important;}
.admin-table th,.admin-table td{padding:12px 14px!important;border-bottom:1px solid var(--vw-line)!important;vertical-align:middle!important;}
.admin-table th{background:#F8FAFC!important;color:#64748B!important;font-size:10.5px!important;letter-spacing:.1em!important;}
.status-pill,.leave-status,.request-status,.admin-table .status-pill{
  min-height:28px!important;height:28px!important;padding:0 10px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:10px!important;font-weight:700!important;letter-spacing:.075em!important;text-transform:uppercase!important;line-height:1!important;white-space:nowrap!important;border:1px solid transparent!important;box-shadow:none!important;
}
.status-pill.ok,.status-pill.approved,.leave-status.approved{background:#ECFDF5!important;color:#047857!important;border-color:#A7F3D0!important;}
.status-pill.muted{background:#F1F5F9!important;color:#64748B!important;border-color:#E2E8F0!important;}
.status-pill.pending,.status-pill.wait-manager{background:#FEFCE8!important;color:#A16207!important;border-color:#FDE68A!important;}
.status-pill.wait-colleague{background:#FFF7ED!important;color:#C2410C!important;border-color:#FED7AA!important;}
.status-pill.declined,.status-pill.rejected{background:#FEF2F2!important;color:#B91C1C!important;border-color:#FECACA!important;}
.status-pill.completed,.status-pill.done{background:#EFF6FF!important;color:#1D4ED8!important;border-color:#BFDBFE!important;}
.admin-alert{border-radius:var(--vw-radius-md)!important;padding:12px 14px!important;font-size:13.5px!important;}
.admin-tabs{gap:8px!important;margin:18px 0!important;}
.admin-tabs a{min-height:36px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;border-radius:999px!important;background:#fff!important;border-color:var(--vw-line)!important;color:#334155!important;font-size:10.5px!important;}
.admin-tabs a.active{background:#17342D!important;border-color:#17342D!important;color:#fff!important;}
.calendar-toolbar{gap:10px!important;margin-bottom:16px!important;}
.calendar-day{min-height:126px!important;padding:9px!important;}
.calendar-shift{border-radius:11px!important;padding:7px 8px!important;box-shadow:none!important;}
@media(max-width:900px){.admin-app-shell{grid-template-columns:1fr!important}.admin-card,.admin-hero-card{padding:18px!important;border-radius:20px!important}.admin-card-head{display:grid!important;grid-template-columns:1fr!important}.admin-top-actions,.admin-actions,.admin-quick-actions{display:grid!important;grid-template-columns:1fr!important}.admin-link-button,.admin-main button,.admin-form button{width:100%!important}.admin-grid{grid-template-columns:1fr!important}.calendar-day{min-height:auto!important}.admin-table{min-width:640px!important;}}

/* v3.9a UI alignment + softer primary blue */
:root{
  --vw-primary:#3B82F6;
  --vw-primary-soft:#60A5FA;
  --vw-primary-hover:#2563EB;
  --vw-primary-ring:rgba(59,130,246,.14);
}
.admin-main input:focus,.admin-main select:focus,.admin-main textarea:focus,.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{
  border-color:var(--vw-primary)!important;
  box-shadow:0 0 0 3px var(--vw-primary-ring)!important;
}
.admin-link-button.primary,.admin-form button[type="submit"],.admin-main button[type="submit"],.inline-status-form button,.row-action.primary{
  background:linear-gradient(135deg,var(--vw-primary-soft),var(--vw-primary))!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 10px 22px rgba(59,130,246,.18)!important;
}
.admin-link-button.primary:hover,.admin-form button[type="submit"]:hover,.admin-main button[type="submit"]:hover,.inline-status-form button:hover,.row-action.primary:hover{
  background:linear-gradient(135deg,#7DB7FF,var(--vw-primary-hover))!important;
  box-shadow:0 12px 26px rgba(59,130,246,.22)!important;
}
.admin-main input[type="checkbox"]:checked,.admin-main input[type="radio"]:checked,.admin-form input[type="checkbox"]:checked,.admin-form input[type="radio"]:checked,.checkline input:checked{
  border-color:var(--vw-primary)!important;
  background:var(--vw-primary)!important;
}
.checkline,.admin-form .checkline,label.checkline{
  min-height:var(--vw-control-h)!important;
  padding:0 11px!important;
  align-items:center!important;
  line-height:1!important;
}
.admin-grid > .checkline,.admin-grid > label.checkline,.admin-form .admin-grid > .checkline,.admin-form .admin-grid > label.checkline{
  align-self:end!important;
  margin-top:0!important;
}
.admin-main input[type="checkbox"],.admin-main input[type="radio"],.admin-form input[type="checkbox"],.admin-form input[type="radio"],.checkline input[type="checkbox"],.checkline input[type="radio"]{
  transform:translateY(0)!important;
  vertical-align:middle!important;
}
.admin-link-button,.row-action,.admin-main button,.admin-form button,.inline-status-form button,.admin-actions button,.admin-main .btn{
  font-size:12.5px!important;
  min-height:38px!important;
  height:38px!important;
  padding:0 13px!important;
}

/* v3.9b - Button intent + checkbox alignment correction
   Herstelt danger-knoppen naar zachte rode stijl en centreert checkboxen zonder verticale offset. */
:root{
  --vw-control-h:36px;
  --vw-primary:#3B82F6;
  --vw-primary-bg:rgba(59,130,246,.12);
  --vw-primary-bg-hover:rgba(59,130,246,.18);
  --vw-primary-bg-active:rgba(59,130,246,.24);
  --vw-danger:#DC2626;
  --vw-danger-bg:rgba(220,38,38,.09);
  --vw-danger-bg-hover:rgba(220,38,38,.14);
  --vw-danger-bg-active:rgba(220,38,38,.20);
  --vw-danger-border:rgba(220,38,38,.22);
}
.admin-link-button,
.row-action,
.admin-main button,
.admin-form button,
.inline-status-form button,
.admin-actions button,
.admin-main .btn{
  min-height:36px!important;
  height:36px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  font-size:12.5px!important;
  line-height:1!important;
}
.admin-link-button.primary,
.admin-form button[type="submit"]:not(.danger),
.admin-main button[type="submit"]:not(.danger),
.inline-status-form button:not(.danger),
.row-action.primary{
  background:var(--vw-primary-bg)!important;
  color:#1D4ED8!important;
  border-color:rgba(59,130,246,.22)!important;
  box-shadow:none!important;
}
.admin-link-button.primary:hover,
.admin-form button[type="submit"]:not(.danger):hover,
.admin-main button[type="submit"]:not(.danger):hover,
.inline-status-form button:not(.danger):hover,
.row-action.primary:hover{
  background:var(--vw-primary-bg-hover)!important;
  color:#1E40AF!important;
  border-color:rgba(59,130,246,.30)!important;
  box-shadow:0 8px 18px rgba(59,130,246,.10)!important;
}
.admin-link-button.primary:active,
.admin-form button[type="submit"]:not(.danger):active,
.admin-main button[type="submit"]:not(.danger):active,
.inline-status-form button:not(.danger):active,
.row-action.primary:active{
  background:var(--vw-primary-bg-active)!important;
}
.admin-main .danger,
button.danger,
.admin-form button.danger,
.admin-main button.danger,
.admin-delete-form button.danger,
.admin-actions button.danger,
.row-action.danger,
.admin-link-button.danger{
  background:var(--vw-danger-bg)!important;
  color:var(--vw-danger)!important;
  border:1px solid var(--vw-danger-border)!important;
  box-shadow:none!important;
  min-height:36px!important;
  height:36px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  font-size:12.5px!important;
  font-weight:700!important;
}
.admin-main .danger:hover,
button.danger:hover,
.admin-form button.danger:hover,
.admin-main button.danger:hover,
.admin-delete-form button.danger:hover,
.admin-actions button.danger:hover,
.row-action.danger:hover,
.admin-link-button.danger:hover{
  background:var(--vw-danger-bg-hover)!important;
  border-color:rgba(220,38,38,.32)!important;
  color:#B91C1C!important;
  box-shadow:0 8px 18px rgba(220,38,38,.08)!important;
}
.admin-main .danger:active,
button.danger:active,
.admin-form button.danger:active,
.admin-main button.danger:active,
.admin-delete-form button.danger:active,
.admin-actions button.danger:active,
.row-action.danger:active,
.admin-link-button.danger:active{
  background:var(--vw-danger-bg-active)!important;
}
.checkline,
.admin-form .checkline,
label.checkline{
  min-height:40px!important;
  height:40px!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  line-height:1!important;
}
.admin-grid > .checkline,
.admin-grid > label.checkline,
.admin-form .admin-grid > .checkline,
.admin-form .admin-grid > label.checkline{
  align-self:end!important;
}
.admin-main input[type="checkbox"],
.admin-main input[type="radio"],
.admin-form input[type="checkbox"],
.admin-form input[type="radio"],
.checkline input[type="checkbox"],
.checkline input[type="radio"]{
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin:0!important;
  position:relative!important;
  top:0!important;
  transform:none!important;
  vertical-align:middle!important;
}

/* v3.9c - checkbox vertical micro-adjustment
   Brengt checkboxregels in formulieren exact terug naar de optische middenlijn van het invoerveld. */
.admin-form-section .admin-grid > label.checkline,
.admin-form .admin-grid > label.checkline,
.admin-grid > label.checkline{
  align-self:end!important;
  transform:translateY(-3px)!important;
}
.admin-form-section .admin-grid > label.checkline input[type="checkbox"],
.admin-form .admin-grid > label.checkline input[type="checkbox"],
.admin-grid > label.checkline input[type="checkbox"]{
  position:relative!important;
  top:0!important;
  transform:none!important;
}

/* v3.9d - Exact checkbox row alignment
   Grid-checkboxes staan niet meer op de onderkant van de rij, maar starten exact op input-hoogte.
   Dit voorkomt dat de checkbox visueel te laag hangt naast velden met een label erboven. */
.admin-form-section .admin-grid > label.checkline,
.admin-form .admin-grid > label.checkline,
.admin-grid > label.checkline{
  align-self:start!important;
  margin-top:22px!important;
  min-height:36px!important;
  height:36px!important;
  padding:0 10px!important;
  transform:none!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  line-height:1!important;
}
.admin-form-section .admin-grid > label.checkline::after,
.admin-form .admin-grid > label.checkline::after,
.admin-grid > label.checkline::after{
  content:none!important;
  display:none!important;
  min-height:0!important;
}
.admin-form-section .admin-grid > label.checkline input[type="checkbox"],
.admin-form .admin-grid > label.checkline input[type="checkbox"],
.admin-grid > label.checkline input[type="checkbox"]{
  align-self:center!important;
  position:relative!important;
  top:0!important;
  transform:none!important;
  margin:0!important;
}

/* v3.9e - Sidebar height + lighter SaaS menu polish
   Doel: geen lelijke volledige menu-scroll op lagere schermen en een lichtere, modernere sidebar. */
.admin-sidebar{
  background:linear-gradient(180deg,#f8fbff 0%,#f2f7fb 55%,#eef5f8 100%)!important;
  color:#334155!important;
  border-right:1px solid #dce6ee!important;
  box-shadow:10px 0 30px rgba(15,23,42,.045)!important;
  padding:18px 14px!important;
  gap:12px!important;
  overflow:hidden!important;
}
.admin-brand{
  padding:6px 9px 12px!important;
  border-bottom-color:#dce6ee!important;
}
.admin-brand img{
  width:102px!important;
  max-height:46px!important;
}
.admin-brand span{
  color:#3b82f6!important;
  font-size:11px!important;
  letter-spacing:.13em!important;
}
.admin-side-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  align-content:start!important;
  gap:4px!important;
  overflow:hidden!important;
  padding-right:0!important;
}
.admin-side-nav p{
  margin:9px 9px 4px!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
  color:#94a3b8!important;
}
.admin-side-nav a{
  min-height:34px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  gap:9px!important;
  font-size:13px!important;
  line-height:1.15!important;
  color:#475569!important;
}
.admin-side-nav a span{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border-radius:7px!important;
  font-size:11px!important;
  background:#e9f2fb!important;
  color:#3b82f6!important;
}
.admin-side-nav a:hover{
  background:rgba(255,255,255,.9)!important;
  color:#0f172a!important;
  box-shadow:0 7px 18px rgba(15,23,42,.04)!important;
}
.admin-side-nav a.active{
  background:#ffffff!important;
  color:#1d4ed8!important;
  box-shadow:0 10px 24px rgba(37,99,235,.10), inset 3px 0 0 rgba(59,130,246,.75)!important;
}
.admin-side-nav a.active span{
  background:rgba(59,130,246,.12)!important;
  color:#2563eb!important;
}
.admin-sidebar-foot{
  flex:0 0 auto!important;
  margin-top:8px!important;
  padding-top:12px!important;
  gap:6px!important;
  border-top-color:#dce6ee!important;
}
.admin-sidebar-foot a{
  min-height:32px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  font-size:13px!important;
  background:rgba(255,255,255,.72)!important;
  border-color:#dce6ee!important;
  color:#475569!important;
}
.admin-sidebar-foot a:hover{
  background:#ffffff!important;
  color:#0f172a!important;
}
@media(max-height:820px) and (min-width:1051px){
  .admin-sidebar{padding:14px 12px!important;gap:8px!important;}
  .admin-brand{padding:4px 8px 8px!important;}
  .admin-brand img{width:92px!important;max-height:38px!important;}
  .admin-brand span{font-size:10px!important;letter-spacing:.1em!important;}
  .admin-side-nav{gap:2px!important;}
  .admin-side-nav p{margin:5px 8px 2px!important;font-size:9px!important;}
  .admin-side-nav a{min-height:30px!important;padding:6px 9px!important;border-radius:10px!important;font-size:12.5px!important;gap:8px!important;}
  .admin-side-nav a span{width:18px!important;height:18px!important;min-width:18px!important;font-size:10px!important;}
  .admin-sidebar-foot{margin-top:5px!important;padding-top:8px!important;gap:5px!important;}
  .admin-sidebar-foot a{min-height:29px!important;padding:6px 9px!important;font-size:12.5px!important;}
}
@media(max-height:720px) and (min-width:1051px){
  .admin-side-nav p{display:none!important;}
  .admin-side-nav{gap:2px!important;}
  .admin-side-nav a{min-height:29px!important;padding-top:5px!important;padding-bottom:5px!important;}
  .admin-sidebar-foot a{min-height:28px!important;}
}
@media(max-width:1050px){
  .admin-sidebar{background:#f6fafe!important;overflow:visible!important;}
  .admin-side-nav{overflow-x:auto!important;display:flex!important;}
}

/* v3.9f - Sidebar contrast repair + compact footer
   Herstel van v3.9e: lichte sidebar met voldoende contrast, geen donkere footer-blok,
   en menu-items/samenvattingen consequent leesbaar op lagere schermen. */
@media (min-width:1051px){
  .admin-app-shell{grid-template-columns:318px minmax(0,1fr)!important;}
  .admin-sidebar{
    background:linear-gradient(180deg,#eef6ff 0%,#f5f9fd 48%,#ffffff 100%)!important;
    color:#1e293b!important;
    border-right:1px solid #d8e5f0!important;
    box-shadow:12px 0 34px rgba(15,23,42,.055)!important;
    padding:18px 16px!important;
    gap:12px!important;
    display:flex!important;
    flex-direction:column!important;
    height:100vh!important;
    min-height:100vh!important;
    max-height:100vh!important;
    overflow:hidden!important;
  }

  .admin-brand{
    flex:0 0 auto!important;
    border-radius:18px!important;
    padding:10px 12px!important;
    margin:0 0 4px!important;
    background:rgba(255,255,255,.72)!important;
    border:1px solid #d8e5f0!important;
    box-shadow:0 8px 20px rgba(15,23,42,.035)!important;
  }
  .admin-brand img{width:128px!important;max-height:44px!important;filter:none!important;}
  .admin-brand span{display:block!important;color:#3b82f6!important;font-size:11px!important;font-weight:700!important;letter-spacing:.13em!important;padding-left:0!important;}

  .admin-accordion-nav,
  .admin-side-nav{
    flex:1 1 auto!important;
    min-height:0!important;
    display:grid!important;
    align-content:start!important;
    gap:5px!important;
    overflow:hidden!important;
    padding:4px 0 6px!important;
  }

  .admin-side-nav>a,
  .admin-nav-group summary{
    min-height:38px!important;
    padding:8px 11px!important;
    border-radius:13px!important;
    border:1px solid transparent!important;
    background:transparent!important;
    color:#334155!important;
    font-size:13.5px!important;
    font-weight:600!important;
    line-height:1.15!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .admin-side-nav>a span,
  .admin-nav-group summary span{
    width:21px!important;
    height:21px!important;
    min-width:21px!important;
    border-radius:8px!important;
    background:rgba(59,130,246,.10)!important;
    color:#2563eb!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:11px!important;
    flex:0 0 21px!important;
  }
  .admin-nav-group summary strong{color:inherit!important;font:inherit!important;flex:1!important;}
  .admin-nav-group summary em{color:#94a3b8!important;font-style:normal!important;transition:transform .16s ease!important;}

  .admin-side-nav>a:hover,
  .admin-nav-group summary:hover{
    background:rgba(255,255,255,.86)!important;
    color:#0f172a!important;
    border-color:#dbeafe!important;
    box-shadow:0 7px 18px rgba(15,23,42,.04)!important;
    transform:none!important;
  }
  .admin-side-nav>a.active,
  .admin-nav-group[open] summary{
    background:#ffffff!important;
    color:#1d4ed8!important;
    border-color:#bfdbfe!important;
    box-shadow:inset 3px 0 0 rgba(59,130,246,.88),0 8px 20px rgba(37,99,235,.08)!important;
  }
  .admin-side-nav>a.active span,
  .admin-nav-group[open] summary span{
    background:rgba(59,130,246,.16)!important;
    color:#2563eb!important;
  }

  .admin-nav-group{overflow:hidden!important;border-radius:14px!important;}
  .admin-nav-subitems{
    display:grid!important;
    gap:4px!important;
    margin:5px 0 7px 31px!important;
    padding-left:9px!important;
    border-left:1px solid #dbeafe!important;
    overflow:visible!important;
    max-height:none!important;
  }
  .admin-nav-subitems a{
    min-height:31px!important;
    padding:6px 9px!important;
    border-radius:10px!important;
    color:#475569!important;
    font-size:12.5px!important;
    font-weight:700!important;
    background:transparent!important;
    border:1px solid transparent!important;
    box-shadow:none!important;
  }
  .admin-nav-subitems a:hover,
  .admin-nav-subitems a.active{
    background:#ffffff!important;
    color:#1d4ed8!important;
    border-color:#dbeafe!important;
    box-shadow:0 6px 14px rgba(37,99,235,.06)!important;
  }
  .admin-nav-subitems a span{display:none!important;}

  .admin-sidebar-footer-brand{
    flex:0 0 auto!important;
    margin-top:8px!important;
    padding:11px 12px!important;
    border-radius:16px!important;
    border:1px solid #d8e5f0!important;
    background:rgba(255,255,255,.78)!important;
    box-shadow:0 -4px 18px rgba(15,23,42,.035)!important;
    text-align:left!important;
    display:grid!important;
    gap:4px!important;
    color:#475569!important;
  }
  .admin-sidebar-divider{display:none!important;}
  .admin-sidebar-footer-brand .logo-link{display:block!important;margin:0!important;}
  .admin-sidebar-footer-brand img{
    width:58px!important;
    max-height:30px!important;
    object-fit:contain!important;
    object-position:left center!important;
    margin:0 0 2px!important;
    opacity:.9!important;
    filter:none!important;
  }
  .admin-sidebar-footer-brand p{margin:0!important;color:#94a3b8!important;font-size:10.5px!important;line-height:1.15!important;}
  .admin-sidebar-footer-brand strong{color:#334155!important;font-size:12px!important;line-height:1.15!important;font-weight:700!important;}
  .admin-sidebar-footer-brand small{color:#64748b!important;font-size:10.5px!important;line-height:1.35!important;}
}

@media (max-height:820px) and (min-width:1051px){
  .admin-sidebar{padding:14px 14px!important;gap:8px!important;}
  .admin-brand{padding:8px 10px!important;border-radius:16px!important;}
  .admin-brand img{width:112px!important;max-height:38px!important;}
  .admin-brand span{font-size:10px!important;letter-spacing:.1em!important;}
  .admin-accordion-nav,.admin-side-nav{gap:3px!important;padding-top:2px!important;padding-bottom:3px!important;}
  .admin-side-nav>a,.admin-nav-group summary{min-height:34px!important;padding:7px 10px!important;font-size:13px!important;border-radius:12px!important;}
  .admin-side-nav>a span,.admin-nav-group summary span{width:19px!important;height:19px!important;min-width:19px!important;font-size:10px!important;}
  .admin-nav-subitems{gap:3px!important;margin-top:4px!important;margin-bottom:5px!important;}
  .admin-nav-subitems a{min-height:28px!important;padding:5px 8px!important;font-size:12px!important;}
  .admin-sidebar-footer-brand{padding:8px 10px!important;gap:2px!important;margin-top:5px!important;border-radius:14px!important;}
  .admin-sidebar-footer-brand img{width:46px!important;max-height:25px!important;}
  .admin-sidebar-footer-brand p{display:none!important;}
  .admin-sidebar-footer-brand strong{font-size:11.5px!important;}
  .admin-sidebar-footer-brand small{font-size:10px!important;line-height:1.25!important;}
}

@media (max-height:700px) and (min-width:1051px){
  .admin-sidebar-footer-brand small{display:none!important;}
  .admin-sidebar-footer-brand img{width:40px!important;max-height:22px!important;}
  .admin-side-nav>a,.admin-nav-group summary{min-height:31px!important;padding-top:5px!important;padding-bottom:5px!important;}
}


/* v3.9g - Sidebar load stability + footer logo readability
   Geen body fade meer bij laden: voorkomt flikkeren/layout flash.
   Nijland footer-logo iets groter en beter leesbaar zonder de footer zwaarder te maken. */
html.virevo-booting body,
html.virevo-ready body{
  opacity:1!important;
  transition:none!important;
}

@media (min-width:1051px){
  .admin-sidebar{
    transform:none!important;
    animation:none!important;
  }
  .admin-brand,
  .admin-accordion-nav,
  .admin-side-nav,
  .admin-sidebar-footer-brand{
    animation:none!important;
  }
  .admin-sidebar-footer-brand img{
    width:66px!important;
    max-height:36px!important;
    opacity:.96!important;
  }
}

@media (max-height:820px) and (min-width:1051px){
  .admin-sidebar-footer-brand img{
    width:52px!important;
    max-height:29px!important;
  }
}

@media (max-height:700px) and (min-width:1051px){
  .admin-sidebar-footer-brand img{
    width:46px!important;
    max-height:26px!important;
  }
}

/* v3.9h - final sidebar logo stability
   Reserveer vaste logo-ruimte zodat de sidebar niet springt tijdens image-load.
   Geen fade/animatie op shell of logo's; Nijland-logo duidelijk groter en leesbaar. */
html.virevo-booting body,
html.virevo-ready body,
body.admin-body{
  opacity:1!important;
  transition:none!important;
}
@media (min-width:1051px){
  .admin-app-shell,
  .admin-sidebar,
  .admin-main,
  .admin-brand,
  .admin-brand img,
  .admin-sidebar-footer-brand,
  .admin-sidebar-footer-brand img{
    animation:none!important;
    transition:none!important;
  }
  .admin-brand{
    min-height:72px!important;
    display:flex!important;
    align-items:center!important;
  }
  .admin-brand img{
    display:block!important;
    width:130px!important;
    height:40px!important;
    max-width:130px!important;
    max-height:40px!important;
    aspect-ratio:650 / 200!important;
    object-fit:contain!important;
    object-position:left center!important;
    flex:0 0 130px!important;
    filter:none!important;
  }
  .admin-sidebar-footer-brand{
    min-height:166px!important;
    align-content:start!important;
  }
  .admin-sidebar-footer-brand .logo-link{
    width:78px!important;
    min-height:110px!important;
    display:block!important;
  }
  .admin-sidebar-footer-brand img{
    display:block!important;
    width:78px!important;
    height:auto!important;
    max-width:78px!important;
    max-height:none!important;
    aspect-ratio:250 / 354!important;
    object-fit:contain!important;
    object-position:left top!important;
    opacity:1!important;
    margin:0 0 2px!important;
    filter:none!important;
  }
}
@media (max-height:820px) and (min-width:1051px){
  .admin-brand{min-height:60px!important;}
  .admin-brand img{width:118px!important;height:36px!important;max-width:118px!important;max-height:36px!important;flex-basis:118px!important;}
  .admin-sidebar-footer-brand{min-height:138px!important;padding-top:7px!important;padding-bottom:7px!important;}
  .admin-sidebar-footer-brand .logo-link{width:64px!important;min-height:91px!important;}
  .admin-sidebar-footer-brand img{width:64px!important;max-width:64px!important;max-height:none!important;}
}
@media (max-height:700px) and (min-width:1051px){
  .admin-sidebar-footer-brand{min-height:104px!important;}
  .admin-sidebar-footer-brand .logo-link{width:52px!important;min-height:74px!important;}
  .admin-sidebar-footer-brand img{width:52px!important;max-width:52px!important;max-height:none!important;}
}


/* v3.10 - admin login premium polish
   Alleen /admin login: rustige premium Virevo-stijl, stabiele logo-ruimte en compacte componenten. */
body.virevo-login-body{
  min-height:100vh!important;
  display:grid!important;
  place-items:center!important;
  padding:32px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background:
    radial-gradient(circle at 20% 16%, rgba(96,165,250,.20), transparent 31%),
    radial-gradient(circle at 84% 22%, rgba(99,102,241,.14), transparent 32%),
    linear-gradient(135deg,#f6f8fb 0%,#eef4fb 48%,#f8fafc 100%)!important;
  color:#0f172a!important;
}
body.virevo-login-body:before,
body.virevo-login-body:after{
  animation:none!important;
  transform:none!important;
}
body.virevo-login-body:before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  background:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px)!important;
  background-size:44px 44px!important;
  opacity:.42!important;
  filter:none!important;
  pointer-events:none!important;
}
body.virevo-login-body:after{
  content:""!important;
  position:fixed!important;
  inset:auto -12% -42% auto!important;
  width:56vw!important;
  height:56vw!important;
  border-radius:999px!important;
  background:radial-gradient(circle, rgba(37,99,235,.12), transparent 68%)!important;
  pointer-events:none!important;
  z-index:0!important;
}
body.virevo-login-body .virevo-login-card{
  width:min(420px, calc(100vw - 40px))!important;
  margin:0!important;
  padding:30px!important;
  border-radius:30px!important;
  border:1px solid rgba(203,213,225,.82)!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.13)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  position:relative!important;
  z-index:2!important;
  overflow:hidden!important;
  text-align:left!important;
}
body.virevo-login-body .virevo-login-card:before{
  height:3px!important;
  background:linear-gradient(90deg,#60a5fa,#818cf8,#34d399)!important;
  opacity:.9!important;
}
body.virevo-login-body .virevo-login-orb{
  width:146px!important;
  height:146px!important;
  right:-58px!important;
  top:-58px!important;
  background:linear-gradient(135deg,rgba(96,165,250,.22),rgba(129,140,248,.15),rgba(52,211,153,.12))!important;
  animation:none!important;
  filter:none!important;
}
body.virevo-login-body .virevo-login-header{
  min-height:86px!important;
  margin-bottom:8px!important;
}
body.virevo-login-body .virevo-login-logo{
  display:block!important;
  width:220px!important;
  height:68px!important;
  max-width:220px!important;
  max-height:68px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0 0 0 -2px!important;
  animation:none!important;
  transition:none!important;
}
body.virevo-login-body .virevo-login-product{
  margin:0 0 0 36px!important;
  color:#4f8fec!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:.105em!important;
  line-height:1!important;
  text-align:left!important;
}
body.virevo-login-body .virevo-login-card h1{
  margin:18px 0 8px!important;
  color:#0f172a!important;
  font-family:"Source Sans 3",system-ui,sans-serif!important;
  font-size:32px!important;
  line-height:1.05!important;
  font-weight:700!important;
  letter-spacing:-.045em!important;
  text-align:left!important;
}
body.virevo-login-body .virevo-login-intro,
body.virevo-login-body .virevo-login-card p:not(.virevo-login-product){
  margin:0!important;
  color:#64748b!important;
  font-size:14px!important;
  line-height:1.55!important;
  text-align:left!important;
}
body.virevo-login-body .virevo-login-form{
  display:grid!important;
  gap:9px!important;
  margin-top:22px!important;
}
body.virevo-login-body .virevo-login-form label{
  color:#334155!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:-.01em!important;
}
body.virevo-login-body .virevo-login-form input{
  height:42px!important;
  width:100%!important;
  border:1px solid #dbe4ef!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:14px!important;
  padding:0 13px!important;
  box-shadow:0 1px 0 rgba(15,23,42,.02)!important;
}
body.virevo-login-body .virevo-login-form input::placeholder{
  color:#94a3b8!important;
}
body.virevo-login-body .virevo-login-form input:focus{
  outline:none!important;
  border-color:#7db3f4!important;
  box-shadow:0 0 0 4px rgba(96,165,250,.16)!important;
}
body.virevo-login-body .virevo-login-form button{
  height:40px!important;
  width:100%!important;
  margin-top:8px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(96,165,250,.96),rgba(59,130,246,.92))!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:600!important;
  letter-spacing:-.01em!important;
  box-shadow:0 12px 24px rgba(37,99,235,.20)!important;
  cursor:pointer!important;
}
body.virevo-login-body .virevo-login-form button:hover{
  background:linear-gradient(135deg,rgba(96,165,250,1),rgba(37,99,235,.96))!important;
  box-shadow:0 14px 28px rgba(37,99,235,.24)!important;
}
body.virevo-login-body .admin-alert.error{
  margin:18px 0 0!important;
  border:1px solid rgba(220,38,38,.16)!important;
  background:rgba(254,242,242,.86)!important;
  color:#991b1b!important;
  border-radius:14px!important;
  padding:11px 13px!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.virevo-login-body .virevo-login-brandmark{
  position:fixed!important;
  left:30px!important;
  bottom:26px!important;
  z-index:3!important;
  display:grid!important;
  gap:4px!important;
  opacity:.78!important;
  color:#64748b!important;
  animation:none!important;
}
body.virevo-login-body .virevo-login-brandmark img{
  width:112px!important;
  height:auto!important;
  margin:0 0 4px!important;
  filter:none!important;
  opacity:.95!important;
}
body.virevo-login-body .virevo-login-brandmark span{font-size:11px!important;color:#94a3b8!important;}
body.virevo-login-body .virevo-login-brandmark strong{font-size:12px!important;color:#475569!important;font-weight:720!important;}
body.virevo-login-body .virevo-login-brandmark small{font-size:11px!important;color:#94a3b8!important;}
@media(max-width:760px){
  body.virevo-login-body{padding:24px 18px!important;align-content:center!important;}
  body.virevo-login-body .virevo-login-card{width:100%!important;padding:26px!important;border-radius:26px!important;}
  body.virevo-login-body .virevo-login-logo{width:198px!important;height:61px!important;max-width:198px!important;max-height:61px!important;}
  body.virevo-login-body .virevo-login-card h1{font-size:29px!important;}
  body.virevo-login-body .virevo-login-brandmark{position:relative!important;left:auto!important;bottom:auto!important;margin:18px auto 0!important;width:100%!important;justify-items:center!important;text-align:center!important;}
  body.virevo-login-body .virevo-login-brandmark img{width:86px!important;}
}
@media(max-height:640px) and (min-width:761px){
  body.virevo-login-body{padding:22px!important;}
  body.virevo-login-body .virevo-login-card{padding:26px!important;}
  body.virevo-login-body .virevo-login-header{min-height:76px!important;}
  body.virevo-login-body .virevo-login-logo{width:198px!important;height:61px!important;}
  body.virevo-login-body .virevo-login-card h1{font-size:29px!important;margin-top:12px!important;}
}


/* v3.15 - Virevo Mail navigation */
.admin-side-nav .admin-mail-link{
  border:1px solid rgba(37,99,235,.14)!important;
  background:rgba(37,99,235,.08)!important;
  color:#1d4ed8!important;
  font-weight:720!important;
}
.admin-side-nav .admin-mail-link:hover{
  background:rgba(37,99,235,.13)!important;
  color:#1e40af!important;
}

/* v3.16 - Virevo Mail mailboxbeheer */
.mailboxes-hero-card{background:linear-gradient(135deg,#ffffff 0%,#f6f9ff 100%)!important;}
.mail-provider-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;}
.mail-provider-strip span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:rgba(79,127,232,.10);border:1px solid rgba(79,127,232,.16);color:#2f63cf;font-size:12px;font-weight:700;}
.mailbox-cell{display:flex;align-items:center;gap:11px;min-width:0;}
.mailbox-cell strong{display:block;color:#0f172a;line-height:1.25;}
.mailbox-cell small{display:block;color:#64748b;margin-top:2px;}
.mailbox-color{width:12px;height:12px;border-radius:999px;box-shadow:0 0 0 4px rgba(15,23,42,.05);flex:0 0 auto;}
.mailboxes-table td:last-child{white-space:nowrap;}
.mailbox-wizard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.mailbox-step{border:1px solid var(--vw-line,#e5eaf1);border-radius:20px;background:#fff;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.035);}
.mailbox-step>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:rgba(79,127,232,.12);color:#2f63cf;font-size:12px;font-weight:700;margin-bottom:10px;}
.mailbox-step h3{margin:0 0 14px;font-size:16px;letter-spacing:-.01em;color:#0f172a;}
.mailbox-step .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.mailbox-step .admin-grid .wide{grid-column:1/-1;}
.mailbox-step .check-row{min-height:36px;align-items:center;justify-content:flex-start;gap:9px;}
@media(max-width:980px){.mailbox-wizard-grid{grid-template-columns:1fr}.mailboxes-table{min-width:980px!important;}}
@media(max-width:640px){.mailbox-step{padding:15px;border-radius:18px}.mailbox-step .admin-grid{grid-template-columns:1fr}.mail-provider-strip{display:grid}.mail-provider-strip span{justify-content:center}}

/* v3.24 - Workflow Inbox & Acties */
.inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
  align-items: center;
}
.inline-form input,
.inline-form select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(30,41,59,.14);
  border-radius: 12px;
  padding: 7px 10px;
  font: inherit;
  background: #fff;
}
.inline-form button {
  min-height: 34px;
  border-radius: 12px;
  padding: 7px 12px;
}
@media (max-width: 900px) {
  .inline-form { grid-template-columns: 1fr; }
}

/* v3.27 - Virevo Mail Multi Mailbox Manager */
.mailbox-dashboard-grid .admin-stat-card strong{font-size:1.45rem;line-height:1.15;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mailbox-manager-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
.mailbox-tree-card,.mailbox-list-card{min-height:100%}
.mailbox-tree-preview{display:flex;flex-direction:column;gap:10px;padding:6px 0 0}
.mail-tree-root{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,rgba(37,99,235,.1),rgba(99,102,241,.08));border:1px solid rgba(37,99,235,.14);color:#0f172a}
.mail-tree-root em,.mail-tree-account-head em{margin-left:auto;font-size:.72rem;font-style:normal;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:3px 8px}
.mail-tree-account{border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.04)}
.mail-tree-account-head{display:flex;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid #eef2f7}
.mail-tree-folders{display:grid;gap:3px;padding:8px 10px 10px 31px}
.mail-tree-folders span{font-size:.86rem;color:#475569;padding:6px 8px;border-radius:10px}
.mail-tree-folders span:hover{background:#f8fafc;color:#0f172a}
.mailboxes-table td{vertical-align:middle}
.mailboxes-table .admin-actions{display:flex;gap:7px;align-items:center;flex-wrap:nowrap}
.mailboxes-table .admin-actions form{margin:0}
.mailboxes-table .admin-actions button.secondary{height:32px;padding:0 12px;border:1px solid #dbe3ef;background:#fff;color:#334155;border-radius:10px;font-weight:700;cursor:pointer}
.mailboxes-table .admin-actions button.secondary:hover{background:#f8fafc;border-color:#cbd5e1}
.mailbox-cell{display:flex;align-items:center;gap:10px;min-width:190px}
.mailbox-cell small{display:block;color:#64748b;font-size:.78rem;margin-top:2px}
.mailbox-color{display:inline-flex;width:12px;height:12px;border-radius:999px;box-shadow:0 0 0 3px rgba(15,23,42,.06);flex:0 0 auto}
.mailbox-wizard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mailbox-step{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:16px;box-shadow:0 16px 36px rgba(15,23,42,.045);position:relative}
.mailbox-step>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:#2563eb;color:#fff;font-weight:700;font-size:.78rem;margin-bottom:8px}
.mailbox-step h3{margin:0 0 12px;font-size:1rem;color:#0f172a}
.mailbox-step .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mailbox-step .check-row{min-height:38px;display:flex;align-items:center;gap:9px;border:1px solid #e5e7eb;border-radius:12px;padding:0 11px;background:#f8fafc;font-weight:700;color:#334155}
.mailbox-step .check-row input{width:16px;height:16px;accent-color:#2563eb;margin:0}
.mailbox-identity-form{margin-top:18px;padding-top:16px;border-top:1px solid #edf2f7}
.mail-provider-strip{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.mail-provider-strip span{font-size:.78rem;font-weight:700;color:#1e3a8a;background:#eff6ff;border:1px solid #dbeafe;border-radius:999px;padding:6px 10px}
@media (max-width:1100px){.mailbox-manager-layout,.mailbox-wizard-grid{grid-template-columns:1fr}.mailbox-step .admin-grid{grid-template-columns:1fr}}

/* v3.28 - Provider Wizard & OAuth Preparation */
.provider-step{background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);border-color:#dbeafe!important;}
.oauth-step{background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);}
.oauth-step>span{width:auto!important;padding:0 10px;border-radius:999px!important;background:#0f172a!important;color:#fff!important;}
.mailboxes-table td:nth-child(2){min-width:145px;}
.mail-provider-strip span:nth-child(2),.mail-provider-strip span:nth-child(3),.mail-provider-strip span:nth-child(4){background:#f8fafc;border-color:#e2e8f0;color:#334155;}
.mailbox-step textarea{width:100%;min-height:74px;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px;font:inherit;background:#fff;color:#0f172a;resize:vertical;}
.mailbox-step input[readonly]{background:#f8fafc;color:#475569;}
@media(max-width:760px){.mailboxes-table td:nth-child(2){min-width:0}.oauth-step>span{height:26px!important}}

/* v3.29 - Mailbox settings restructure + sidebar polish */
.mailbox-settings-shell{padding:22px!important;margin-bottom:18px!important;}
.mailbox-settings-head{align-items:flex-start!important;gap:18px!important;}
.mail-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;padding:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;}
.mail-settings-tabs a{min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border-radius:12px;text-decoration:none;color:#475569;font-size:13px;font-weight:700;border:1px solid transparent;}
.mail-settings-tabs a:hover{background:#fff;color:#1d4ed8;border-color:#dbeafe;}
.mail-settings-tabs a.active{background:#fff;color:#1d4ed8;border-color:#bfdbfe;box-shadow:0 8px 18px rgba(37,99,235,.08), inset 0 -2px 0 rgba(37,99,235,.70);}
.mailbox-manager-layout-clean{align-items:start;}
.mailbox-wizard-page .mailbox-wizard-grid-clean{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;}
.mailbox-wizard-page .mailbox-step{padding:18px!important;border-radius:18px!important;}
.mailbox-wizard-page .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
.sync-settings-grid,.provider-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;}
.sync-settings-card,.provider-settings-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.045);display:grid;gap:9px;}
.sync-settings-card strong,.provider-settings-card strong{font-size:15px;color:#0f172a;}
.sync-settings-card span,.provider-settings-card span,.provider-settings-card small{color:#64748b;font-size:12px;line-height:1.45;}
.sync-settings-card dl{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin:4px 0 8px;}
.sync-settings-card dt{color:#94a3b8;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;}
.sync-settings-card dd{margin:0;color:#334155;font-size:13px;font-weight:600;}
.admin-nav-subitems a[href*="tab=mailboxes"],.admin-nav-subitems a[href*="tab=mailboxes"].active{background:transparent!important;color:#475569!important;border-color:transparent!important;box-shadow:none!important;}
.admin-nav-subitems a[href*="tab=mailboxes"]:hover{background:#fff!important;color:#1d4ed8!important;border-color:#dbeafe!important;box-shadow:0 6px 14px rgba(37,99,235,.06)!important;}
.admin-nav-subitems a[href*="tab=mailboxes"].active{background:#fff!important;color:#1d4ed8!important;border:1px solid #dbeafe!important;box-shadow:0 6px 14px rgba(37,99,235,.06)!important;}
.admin-nav-group[open] summary{background:#fff!important;color:#1d4ed8!important;border-color:#bfdbfe!important;box-shadow:inset 3px 0 0 rgba(59,130,246,.88),0 8px 20px rgba(37,99,235,.08)!important;}
@media(max-width:1050px){.sync-settings-grid,.provider-settings-grid{grid-template-columns:1fr}.mailbox-wizard-page .admin-grid{grid-template-columns:1fr!important}.mailbox-settings-head{display:grid!important}.mail-settings-tabs{overflow-x:auto;flex-wrap:nowrap}.mail-settings-tabs a{white-space:nowrap}}

/* v3.30 - Mail Folders & Sync Foundation */
.folder-settings-grid{align-items:start;}
.folder-settings-card{display:grid;gap:12px;}
.folder-admin-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.folder-admin-create input,.folder-admin-row input{min-height:36px;border:1px solid var(--border,#dbe3ef);border-radius:11px;padding:0 11px;font-size:13px;background:#fff;}
.folder-admin-create button,.folder-admin-sync button,.folder-admin-row button{min-height:36px;border-radius:11px;border:1px solid transparent;padding:0 12px;font-weight:700;cursor:pointer;background:#2563eb;color:#fff;}
.folder-admin-sync button.secondary{background:#fff;color:#334155;border-color:var(--border,#dbe3ef);}
.folder-admin-list{display:grid;gap:8px;margin-top:4px;}
.folder-admin-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;border:1px solid var(--border,#dbe3ef);border-radius:13px;background:#f8fafc;}
.folder-admin-row.pending{border-color:rgba(245,158,11,.30);background:rgba(245,158,11,.08);}
.folder-admin-row span{display:grid;gap:2px;}
.folder-admin-row small{color:#64748b;font-size:12px;}
.folder-admin-row form{display:flex;gap:7px;align-items:center;margin:0;}
.folder-admin-row form input{flex:1;}
.folder-admin-row button.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca;}
@media (min-width:980px){.folder-admin-row{grid-template-columns:minmax(0,1fr) minmax(220px,1fr) auto;align-items:center;}.folder-admin-row span{min-width:0;}}

/* v3.34 Mail Sync Queue Foundation */
.mail-queue-shell .admin-card-head{align-items:flex-start}
.mail-queue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 18px}
.mail-queue-grid article{border:1px solid rgba(148,163,184,.22);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.mail-queue-grid span{display:block;color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.mail-queue-grid strong{display:block;color:#0f172a;font-size:24px;line-height:1.1;margin-bottom:4px}
.mail-queue-grid small{display:block;color:#64748b;font-size:12px}
@media(max-width:900px){.mail-queue-grid{grid-template-columns:1fr}}

/* v4.1 - Virevo Mail Settings & Outlook polish */
.admin-nav-subitems-mail a{padding-left:18px!important;min-height:32px!important;}
.mail-settings-tabs-outlook{gap:6px!important;padding:6px!important;background:#f8fafc!important;border-radius:18px!important;}
.mail-settings-tabs-outlook a{gap:7px!important;min-height:36px!important;padding:0 12px!important;border-radius:13px!important;}
.mail-settings-tabs-outlook a span{font-size:13px;opacity:.85;}
.mail-settings-tabs-outlook a.active{box-shadow:0 10px 20px rgba(37,99,235,.09), inset 0 -2px 0 rgba(37,99,235,.82)!important;}
.mailbox-settings-shell{border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 18px 45px rgba(15,23,42,.055)!important;}
.mailbox-tree-preview-outlook{gap:12px!important;}
.mail-tree-section{display:grid;gap:3px;padding:12px;border:1px solid #e5eaf1;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f8fafc);}
.mail-tree-section strong{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.07em;margin-bottom:4px;}
.mail-tree-section span{padding:7px 9px;border-radius:10px;color:#334155;font-size:13px;font-weight:600;}
.mail-tree-section span:first-of-type{background:#eff6ff;color:#1d4ed8;}
.mail-tree-separator{height:1px;background:#e5eaf1;margin:0 4px;}
.mail-tree-account{box-shadow:none!important;border-color:#e5eaf1!important;}
.mail-tree-account-head{min-height:42px;background:#fff;}
.mail-tree-account-head strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mail-tree-folders{padding:7px 10px 10px 34px!important;}
.mail-tree-folders span{display:flex;align-items:center;min-height:28px;font-size:13px!important;font-weight:700;}
.mailboxes-table th{font-size:11px!important;letter-spacing:.06em;text-transform:uppercase;color:#64748b;}
.mailboxes-table td{height:58px!important;}
.mailboxes-table tr:hover td{background:#f8fbff!important;}
.mailbox-shared-card .empty-state{margin:8px 0;}
.mailbox-wizard-page .mailbox-step{box-shadow:none!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;}
.mailbox-wizard-page .mailbox-step>span{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #dbeafe!important;}
.sync-settings-card,.provider-settings-card{box-shadow:none!important;border-color:#e5eaf1!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;}
.folder-admin-row{border-radius:14px!important;}
@media(max-width:760px){.admin-nav-subitems-mail{display:grid!important}.mail-settings-tabs-outlook{overflow-x:auto!important;flex-wrap:nowrap!important}.mail-settings-tabs-outlook a{white-space:nowrap!important}}

/* v4.14a - Remove demo data + real mailbox wizard */
.real-mailbox-wizard{overflow:hidden;}
.mailbox-wizard-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:18px 0;padding:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;}
.mailbox-wizard-steps button{border:1px solid transparent;background:transparent;color:#64748b;border-radius:13px;min-height:46px;padding:6px 8px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:12px;cursor:pointer;transition:.16s ease;}
.mailbox-wizard-steps button span{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#e2e8f0;color:#475569;font-size:11px;}
.mailbox-wizard-steps button:hover{background:#fff;color:#1d4ed8;border-color:#dbeafe;}
.mailbox-wizard-steps button.active{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 12px 25px rgba(15,23,42,.12);}
.mailbox-wizard-steps button.active span{background:#2563eb;color:#fff;}
.mailbox-wizard-panels{position:relative;}
.real-mailbox-wizard .mailbox-step{display:none!important;margin:0!important;border:1px solid #e2e8f0!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;box-shadow:none!important;border-radius:22px!important;padding:22px!important;}
.real-mailbox-wizard .mailbox-step.active{display:block!important;}
.real-mailbox-wizard .mailbox-step>span{width:30px!important;height:30px!important;border-radius:999px!important;margin-bottom:10px!important;}
.real-mailbox-wizard .mailbox-step h3{font-size:1.12rem!important;margin-bottom:5px!important;}
.real-mailbox-wizard .mailbox-step .admin-help{margin:0 0 16px!important;}
.real-mailbox-wizard .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.mailbox-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.mailbox-choice{border:1px solid #dbe3ef;border-radius:18px;padding:15px;background:#fff;display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;align-items:start;cursor:pointer;transition:.16s ease;min-height:110px;}
.mailbox-choice input{grid-row:1 / span 2;margin-top:3px;accent-color:#2563eb;}
.mailbox-choice strong{color:#0f172a;font-size:14px;}
.mailbox-choice small{color:#64748b;font-size:12px;line-height:1.45;}
.mailbox-choice:has(input:checked){border-color:#93c5fd;background:#eff6ff;box-shadow:inset 3px 0 0 #2563eb;}
.mailbox-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.mailbox-summary-grid>div{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:14px;display:grid;gap:4px;min-height:94px;}
.mailbox-summary-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;font-weight:700;}
.mailbox-summary-grid strong{font-size:15px;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mailbox-summary-grid small{font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mailbox-wizard-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0;}
.mailbox-wizard-footer button,.mailbox-wizard-footer .admin-link-button{min-height:38px;border-radius:12px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;}
.mailbox-wizard-footer #mailWizardSave{background:#2563eb;color:#fff;border:1px solid #2563eb;font-weight:700;}
.mailbox-wizard-footer .secondary,#applyMailProviderPreset{background:#fff;color:#334155;border:1px solid #dbe3ef;font-weight:700;}
@media(max-width:1100px){.mailbox-wizard-steps{grid-template-columns:repeat(4,minmax(0,1fr));}.mailbox-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.mailbox-choice-grid{grid-template-columns:1fr}.real-mailbox-wizard .admin-grid{grid-template-columns:1fr!important;}}
@media(max-width:700px){.mailbox-wizard-steps{grid-template-columns:repeat(2,minmax(0,1fr));}.mailbox-summary-grid{grid-template-columns:1fr}.mailbox-wizard-footer{justify-content:stretch;flex-wrap:wrap}.mailbox-wizard-footer button,.mailbox-wizard-footer .admin-link-button{flex:1 1 140px;}}

/* v4.14j — Source Sans 3 readability pass */
.admin-saas-body,.admin-body{
  font-family:"Source Sans 3","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-weight:400!important;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.admin-saas-body h1,.admin-saas-body h2,.admin-saas-body h3,.admin-saas-body h4,
.admin-body h1,.admin-body h2,.admin-body h3,.admin-body h4,
.admin-page-topbar h1,.admin-card h2,.admin-form h3,.admin-hero-card h1,.admin-login-card h1,
.calendar-toolbar strong{
  font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif!important;
  font-weight:600!important;
  letter-spacing:-.012em!important;
}
.admin-saas-body button,.admin-saas-body .btn,.admin-saas-body input,.admin-saas-body select,.admin-saas-body textarea,
.admin-body button,.admin-body .btn,.admin-body input,.admin-body select,.admin-body textarea{
  font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif!important;
}
.admin-saas-body button,.admin-saas-body .btn,.admin-body button,.admin-body .btn,
.admin-sidebar a,.admin-topbar a,.mail-settings-tabs a,.mailbox-wizard-steps button{
  font-weight:600!important;
  letter-spacing:0!important;
}
.admin-saas-body label,.admin-body label,.admin-saas-body th,.admin-body th,
.admin-saas-body .badge,.admin-body .badge,.admin-saas-body .pill,.admin-body .pill{
  font-weight:500!important;
  letter-spacing:0!important;
}
.admin-saas-body strong,.admin-body strong{font-weight:600;}
.admin-saas-body .kpi strong,.admin-saas-body .stat strong,.admin-saas-body .metric strong,
.admin-body .kpi strong,.admin-body .stat strong,.admin-body .metric strong{font-weight:700!important;}

/* v5.0a Virevo Calm Shell */
body{font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif!important;background:#F5F7FA!important;color:#172033!important}.admin-sidebar{background:#0F172A!important}.admin-card{border-color:#E5EAF1!important;box-shadow:0 8px 24px rgba(15,23,42,.035)!important;border-radius:16px!important}.admin-card h1,.admin-card h2,.admin-card h3{font-weight:600!important}.admin-subnav-link{display:block;padding:8px 12px;color:#CBD5E1;text-decoration:none;font-size:13px}

/* =====================================================================
   Virevo v5.0b - final Admin Calm Shell overrides
   Keep this block last: the legacy stylesheet contains older sidebar rules.
   ===================================================================== */
:root{
  --v5-nav:#0f172a;
  --v5-nav-soft:#172033;
  --v5-nav-hover:rgba(255,255,255,.075);
  --v5-nav-text:#d7deea;
  --v5-nav-muted:#94a3b8;
  --v5-page:#f5f7fa;
  --v5-panel:#fff;
  --v5-line:#e3e8ef;
  --v5-text:#182033;
  --v5-muted:#64748b;
  --v5-blue:#2563eb;
}
html,body.admin-body{min-height:100%;background:var(--v5-page)!important;color:var(--v5-text)!important;font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif!important;font-weight:400!important}
body.admin-sidebar-open{overflow:hidden}
.admin-app-shell{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;min-height:100vh!important;background:var(--v5-page)!important}
.admin-sidebar{
  position:sticky!important;top:0!important;left:auto!important;transform:none!important;
  width:280px!important;min-width:280px!important;height:100vh!important;max-height:100vh!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  display:flex!important;flex-direction:column!important;gap:0!important;padding:16px 13px 13px!important;
  background:var(--v5-nav)!important;color:var(--v5-nav-text)!important;border:0!important;
  box-shadow:none!important;z-index:60!important;scrollbar-width:thin;scrollbar-color:#334155 transparent
}
.admin-sidebar::-webkit-scrollbar{width:6px}.admin-sidebar::-webkit-scrollbar-thumb{background:#334155;border-radius:20px}
.admin-sidebar *{box-sizing:border-box}
.admin-sidebar-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:52px!important;padding:2px 7px 13px!important;border:0!important;background:transparent!important}
.admin-brand{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;color:#fff!important;text-decoration:none!important}
.admin-brand img{display:block!important;width:126px!important;max-width:126px!important;height:auto!important;filter:brightness(0) invert(1)!important;opacity:1!important}
.admin-brand span{display:inline!important;color:var(--v5-nav-muted)!important;font-size:12px!important;line-height:1!important;font-weight:500!important;letter-spacing:.01em!important}
.admin-sidebar-close{display:none!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;font-size:24px!important;line-height:1!important;cursor:pointer!important}
.admin-tenant-context{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 13px!important;padding:11px!important;border:1px solid rgba(255,255,255,.045)!important;border-radius:13px!important;background:var(--v5-nav-soft)!important;box-shadow:none!important;color:#fff!important}
.admin-tenant-context>span{flex:0 0 36px!important;width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:var(--v5-blue)!important;color:#fff!important;font-size:13px!important;font-weight:600!important}
.admin-tenant-context>div{display:grid!important;min-width:0!important;gap:1px!important}.admin-tenant-context strong{overflow:hidden!important;color:#fff!important;font-size:14px!important;font-weight:600!important;line-height:1.25!important;text-overflow:ellipsis!important;white-space:nowrap!important}.admin-tenant-context small{color:var(--v5-nav-muted)!important;font-size:11.5px!important;font-weight:400!important}
.admin-side-nav.admin-calm-nav{display:grid!important;align-content:start!important;gap:3px!important;min-height:0!important;margin:0!important;padding:0 0 12px!important;background:transparent!important;border:0!important}
.admin-calm-nav>a,.admin-calm-nav details>summary{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:42px!important;margin:0!important;padding:9px 10px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--v5-nav-text)!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;list-style:none!important;font-size:14px!important;line-height:1.2!important;font-weight:500!important}
.admin-calm-nav>a>span,.admin-calm-nav details>summary>span{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;color:#aebbd0!important;font-size:14px!important;font-weight:500!important}
.admin-calm-nav>a>strong,.admin-calm-nav details>summary>strong{min-width:0!important;color:inherit!important;font:inherit!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.admin-calm-nav>a>em,.admin-calm-nav details>summary>em{color:#718096!important;font-style:normal!important;font-size:16px!important;transition:transform .16s ease!important}
.admin-calm-nav details[open]>summary>em{transform:rotate(90deg)!important}
.admin-calm-nav details>summary::-webkit-details-marker{display:none!important}.admin-calm-nav details>summary::marker{content:""!important}
.admin-calm-nav>a:hover,.admin-calm-nav details>summary:hover{background:var(--v5-nav-hover)!important;color:#fff!important}
.admin-calm-nav>a.active,.admin-calm-nav details:has(.active)>summary{background:rgba(37,99,235,.17)!important;color:#fff!important}
.admin-calm-nav>a.active>span,.admin-calm-nav details:has(.active)>summary>span{color:#93c5fd!important}
.admin-calm-nav details{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:10px!important;overflow:visible!important}
.admin-nav-subitems{display:grid!important;gap:2px!important;margin:2px 0 5px 32px!important;padding:2px 0 2px 10px!important;border-left:1px solid rgba(148,163,184,.22)!important;background:transparent!important}
.admin-nav-subitems a{display:block!important;min-height:34px!important;margin:0!important;padding:7px 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#aebbd0!important;text-decoration:none!important;font-size:13.5px!important;line-height:1.35!important;font-weight:400!important;white-space:normal!important}
.admin-nav-subitems a:hover{background:var(--v5-nav-hover)!important;color:#fff!important}.admin-nav-subitems a.active{background:#fff!important;color:#172033!important;font-weight:600!important}
.admin-nav-divider{height:1px!important;margin:10px 7px!important;background:rgba(255,255,255,.1)!important;border:0!important}
.admin-settings-link{margin-bottom:2px!important}.admin-settings-link>em{justify-self:end!important}
.admin-sidebar-bottom{display:grid!important;gap:11px!important;margin-top:auto!important;padding:14px 7px 3px!important;border-top:1px solid rgba(255,255,255,.1)!important;background:transparent!important;color:var(--v5-nav-text)!important}
.admin-sidebar-bottom>div{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important}.admin-sidebar-bottom>div>span{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:#25334a!important;color:#fff!important;font-size:12px!important;font-weight:600!important}.admin-sidebar-bottom p{display:grid!important;min-width:0!important;margin:0!important}.admin-sidebar-bottom strong{overflow:hidden!important;color:#fff!important;font-size:13px!important;font-weight:600!important;text-overflow:ellipsis!important;white-space:nowrap!important}.admin-sidebar-bottom small{color:var(--v5-nav-muted)!important;font-size:11px!important;font-weight:400!important}.admin-sidebar-bottom>a{padding:7px 0!important;color:#9fb0c7!important;text-decoration:none!important;font-size:12.5px!important;font-weight:500!important}.admin-sidebar-bottom>a:hover{color:#fff!important}
.admin-main{display:block!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;background:var(--v5-page)!important}
.admin-page-topbar{position:sticky!important;top:0!important;z-index:45!important;display:flex!important;align-items:center!important;gap:14px!important;min-height:72px!important;margin:0!important;padding:10px clamp(18px,3vw,34px)!important;border:0!important;border-bottom:1px solid var(--v5-line)!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px)!important;box-shadow:none!important;color:var(--v5-text)!important}
.admin-page-title{display:grid!important;gap:1px!important;min-width:0!important}.admin-page-title h1{margin:0!important;color:var(--v5-text)!important;font-size:clamp(20px,2vw,25px)!important;line-height:1.2!important;font-weight:600!important;letter-spacing:-.015em!important}.admin-page-title p{margin:0!important;color:var(--v5-muted)!important;font-size:13px!important;line-height:1.35!important;font-weight:400!important}.admin-version-hidden{display:none!important}
.admin-sidebar-toggle{display:none!important;flex:0 0 40px!important;width:40px!important;height:40px!important;padding:0!important;border:1px solid var(--v5-line)!important;border-radius:11px!important;background:#fff!important;color:#243047!important;font-size:20px!important;line-height:1!important;cursor:pointer!important}
.admin-top-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;flex-wrap:wrap!important}.admin-top-actions .admin-link-button{min-height:38px!important}
.admin-impersonation-bar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:16px clamp(18px,3vw,34px) 0!important;padding:12px 14px!important;border:1px solid #f4d58d!important;border-radius:13px!important;background:#fff8e6!important;color:#704f08!important}.admin-impersonation-bar>div{display:grid!important;gap:1px!important}.admin-impersonation-bar strong{font-weight:600!important}.admin-impersonation-bar span{font-size:12.5px!important}.admin-impersonation-bar a{flex:0 0 auto!important;color:#704f08!important;font-weight:600!important;text-decoration:none!important}
.admin-content-shell{width:100%!important;max-width:1600px!important;margin:0 auto!important;padding:clamp(18px,3vw,32px)!important}
.admin-content-shell,.admin-content-shell *{font-family:inherit}
.admin-card,.admin-stat-card{border-color:var(--v5-line)!important;box-shadow:0 8px 28px rgba(15,23,42,.035)!important}
.admin-alert{border-radius:12px!important}

@media(max-width:1180px){
  .admin-app-shell{grid-template-columns:248px minmax(0,1fr)!important}
  .admin-sidebar{width:248px!important;min-width:248px!important;padding-left:11px!important;padding-right:11px!important}
  .admin-brand img{width:115px!important}
}
@media(max-width:1024px){
  .admin-app-shell{display:block!important}
  .admin-sidebar{position:fixed!important;inset:0 auto 0 0!important;top:0!important;width:min(304px,88vw)!important;min-width:0!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;box-shadow:20px 0 55px rgba(15,23,42,.3)!important;visibility:hidden!important}
  body.admin-sidebar-open .admin-sidebar{transform:translateX(0)!important;visibility:visible!important}
  body.admin-sidebar-open::after{content:""!important;position:fixed!important;inset:0!important;z-index:55!important;background:rgba(15,23,42,.45)!important;backdrop-filter:blur(1px)!important}
  .admin-sidebar-close,.admin-sidebar-toggle{display:grid!important;place-items:center!important}
  .admin-page-topbar{min-height:68px!important;padding-left:16px!important;padding-right:16px!important}
  .admin-content-shell{padding:20px 16px!important}
  .admin-impersonation-bar{margin-left:16px!important;margin-right:16px!important}
}
@media(max-width:680px){
  .admin-page-topbar{align-items:flex-start!important;min-height:64px!important;padding-top:11px!important;padding-bottom:11px!important}
  .admin-page-title p{display:none!important}.admin-page-title h1{font-size:20px!important}
  .admin-top-actions{gap:5px!important}.admin-top-actions .admin-link-button:not(.primary){display:none!important}.admin-top-actions .admin-link-button{padding:7px 10px!important;font-size:12px!important}
  .admin-content-shell{padding:14px 12px!important}.admin-impersonation-bar{align-items:flex-start!important;flex-direction:column!important;margin:12px!important}.admin-impersonation-bar a{width:100%!important;text-align:center!important}
}
@media(max-width:420px){.admin-sidebar{width:92vw!important}.admin-page-topbar{gap:9px!important}.admin-sidebar-toggle{width:38px!important;height:38px!important;flex-basis:38px!important}}

/* =====================================================================
   Virevo v5.0c - shell branding, full-height navigation and automation
   ===================================================================== */
.admin-app-shell{
  min-height:100dvh!important;
  align-items:stretch!important;
  background:linear-gradient(90deg,var(--v5-nav) 0,var(--v5-nav) 280px,var(--v5-page) 280px,var(--v5-page) 100%)!important;
}
.admin-sidebar{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
.admin-side-nav.admin-calm-nav{flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;padding-right:4px!important;scrollbar-width:thin;scrollbar-color:#334155 transparent}
.admin-side-nav.admin-calm-nav::-webkit-scrollbar{width:5px}.admin-side-nav.admin-calm-nav::-webkit-scrollbar-thumb{background:#334155;border-radius:20px}
.admin-powered-by{flex:0 0 auto;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;margin:7px 6px 0!important;padding:10px 8px!important;border-top:1px solid rgba(255,255,255,.1)!important;color:#fff!important}
.admin-powered-by img{display:block!important;width:28px!important;height:38px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important;opacity:.82!important}
.admin-powered-by>div{display:grid!important;min-width:0!important;line-height:1.2!important}.admin-powered-by span{color:#8292aa!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.06em!important}.admin-powered-by strong{overflow:hidden!important;color:#fff!important;font-size:12px!important;font-weight:600!important;text-overflow:ellipsis!important;white-space:nowrap!important}.admin-powered-by small{color:#8292aa!important;font-size:9.5px!important;font-weight:400!important}
.admin-sidebar-bottom{margin-top:0!important}
.admin-topbar-logo{flex:0 0 auto;display:flex;align-items:center;justify-content:center;margin-left:4px;padding-left:15px;border-left:1px solid var(--v5-line);text-decoration:none}
.admin-topbar-logo img{display:block;width:116px;height:auto;max-height:36px;object-fit:contain}

.automation-overview-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.automation-overview-strip article{display:grid;gap:2px;padding:17px 18px;border:1px solid var(--v5-line);border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.automation-overview-strip span{color:#64748b;font-size:13px;font-weight:500}.automation-overview-strip strong{color:#172033;font-size:27px;font-weight:600;line-height:1.1}.automation-overview-strip small{color:#94a3b8;font-size:12px}
.automation-tabs{display:flex;gap:5px;margin-bottom:17px;padding:5px;border:1px solid #e3e8ef;border-radius:13px;background:#e9eef5;overflow-x:auto}
.automation-tabs a{flex:0 0 auto;padding:8px 13px;border-radius:9px;color:#526174;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}.automation-tabs a.active{background:#fff;color:#172033;box-shadow:0 4px 12px rgba(15,23,42,.07)}
.automation-editor-card{max-width:1120px}.automation-form{display:grid;gap:18px}.automation-form-section{padding-top:2px}.automation-form-section+ .automation-form-section{padding-top:18px;border-top:1px solid #edf1f6}.automation-form-section h3{margin:0 0 13px;color:#253047;font-size:15px;font-weight:600}
.automation-form code{padding:2px 5px;border-radius:5px;background:#eef2f7;color:#475569;font-size:11px}.automation-form textarea[name=body_html]{min-height:230px;font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif;font-weight:400;line-height:1.55}
.automation-submit-bar{position:sticky;bottom:12px;z-index:15;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:2px;padding:12px 13px;border:1px solid #dce3ec;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 14px 34px rgba(15,23,42,.12);backdrop-filter:blur(10px)}
.automation-submit-bar>div{display:flex;align-items:flex-end;gap:8px}.automation-submit-bar label{display:grid;gap:4px;min-width:230px;color:#64748b;font-size:12px;font-weight:500}.automation-submit-bar label input{min-height:39px}.automation-submit-bar button{min-height:40px}
.automation-list{display:grid;gap:12px}.automation-card{position:relative;display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(280px,.9fr);gap:15px;padding:16px;border:1px solid #e3e8ef;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcfe)}.automation-card.highlight{border-color:#93b4f7;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
.automation-card-main{display:grid;align-content:start;gap:4px}.automation-card-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.automation-card h3{margin:0;color:#172033;font-size:17px;font-weight:600}.automation-card p,.automation-card small{margin:0;color:#64748b}.automation-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.automation-card dl>div{display:grid;align-content:start;gap:2px;padding:10px;border-radius:11px;background:#f3f6fa}.automation-card dt{color:#7b889b;font-size:11px}.automation-card dd{margin:0;color:#253047;font-size:13px;font-weight:600}
.automation-error{grid-column:1/-1;display:grid;gap:2px;padding:9px 11px;border:1px solid #fecaca;border-radius:10px;background:#fff6f6;color:#b42318;font-size:12px}.automation-error strong{font-weight:600}.automation-actions{grid-column:1/-1;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:11px;border-top:1px solid #edf1f6}.automation-actions form{margin:0}.automation-actions button.admin-link-button{cursor:pointer;background:#fff}.automation-more{position:relative}.automation-more summary{list-style:none;min-height:39px;display:flex;align-items:center;padding:7px 12px;border:1px solid #dbe2eb;border-radius:11px;background:#fff;color:#334155;cursor:pointer;font-size:13px;font-weight:600}.automation-more summary::-webkit-details-marker{display:none}.automation-more>div{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:145px;padding:6px;border:1px solid #dbe2eb;border-radius:12px;background:#fff;box-shadow:0 16px 35px rgba(15,23,42,.16)}.automation-more>div form,.automation-more>div button{width:100%}.automation-more>div button{padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#334155;text-align:left;cursor:pointer;font-size:13px;font-weight:500}.automation-more>div button:hover{background:#f3f6fa}.automation-more>div button.danger{color:#dc2626}.run-error{display:block;max-width:330px;margin-top:4px;color:#b42318!important;white-space:normal}

@media(max-width:1180px){.admin-app-shell{background:linear-gradient(90deg,var(--v5-nav) 0,var(--v5-nav) 248px,var(--v5-page) 248px,var(--v5-page) 100%)!important}.automation-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.admin-app-shell{background:var(--v5-page)!important}.admin-sidebar{height:100dvh!important;max-height:100dvh!important}.admin-topbar-logo{margin-left:auto}.automation-card{grid-template-columns:1fr}.automation-submit-bar{position:static;align-items:stretch;flex-direction:column}.automation-submit-bar>div{width:100%;flex-wrap:wrap}.automation-submit-bar>div:last-child{justify-content:flex-end}}
@media(max-width:700px){.admin-top-actions{display:none!important}.admin-topbar-logo{padding-left:10px}.admin-topbar-logo img{width:100px;max-height:31px}.automation-overview-strip{grid-template-columns:1fr 1fr}.automation-card dl{grid-template-columns:1fr}.automation-submit-bar>div,.automation-submit-bar>div:last-child{align-items:stretch;flex-direction:column}.automation-submit-bar label{min-width:0;width:100%}.automation-submit-bar .admin-link-button,.automation-submit-bar button{width:100%}.automation-actions{align-items:stretch}.automation-actions>a,.automation-actions>form,.automation-actions>form button,.automation-actions>.automation-more,.automation-more summary{flex:1 1 145px;justify-content:center;text-align:center}.automation-more>div{left:0;right:auto}}
@media(max-width:460px){.automation-overview-strip{grid-template-columns:1fr}.admin-topbar-logo img{width:88px}.admin-powered-by small{display:none}.admin-page-title p{display:none!important}}


/* =====================================================================
   Virevo v5.0d - consistent left branding, full document shell
   ===================================================================== */
.admin-app-shell{position:relative!important;min-height:100dvh!important;background:linear-gradient(90deg,var(--v5-nav) 0,var(--v5-nav) 280px,var(--v5-page) 280px,var(--v5-page) 100%)!important}.admin-sidebar{align-self:stretch!important;min-height:100dvh!important}.admin-brand{width:100%!important;max-width:158px!important;min-height:50px!important;padding:7px 10px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 10px 24px rgba(0,0,0,.16)!important}.admin-brand img{width:136px!important;max-width:100%!important;height:auto!important;max-height:38px!important;object-fit:contain!important;object-position:left center!important;filter:none!important}.admin-brand span{display:none!important}.admin-topbar-logo{display:none!important}.admin-powered-by{grid-template-columns:52px minmax(0,1fr)!important;gap:12px!important;padding:13px 8px!important}.admin-powered-by img{width:48px!important;height:66px!important;filter:brightness(0) invert(1)!important;opacity:1!important}.admin-powered-by span{font-size:10.5px!important}.admin-powered-by strong{font-size:14px!important}.admin-powered-by small{font-size:10.5px!important;white-space:normal!important}.automation-load-error{display:block}.mailbox-wizard-page,.mailbox-list-card,.mailbox-folders-card{max-width:1180px}.mailbox-wizard-steps{position:sticky;top:84px;z-index:10;background:#fff;padding:8px;border:1px solid var(--v5-line);border-radius:13px}.mailbox-step{border-radius:14px!important}.folder-settings-card{overflow:hidden}.folder-admin-row{grid-template-columns:minmax(0,1fr) auto auto!important}.folder-admin-row small{white-space:normal!important}.mailbox-settings-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.mailbox-settings-intro .admin-actions{margin:0}@media(max-width:980px){.admin-app-shell{background:var(--v5-page)!important}.admin-brand{max-width:150px!important}.mailbox-wizard-steps{top:76px}.folder-admin-row{grid-template-columns:1fr!important}.folder-admin-row form{width:100%!important}}


/* v5.0d final shell alignment and Mail settings clarity */
.admin-brand{max-width:142px!important;min-height:42px!important;margin:0 4px 12px!important;padding:4px 6px!important;border-radius:12px!important}.admin-brand img{width:124px!important;max-width:124px!important;height:34px!important;max-height:34px!important;object-fit:contain!important;object-position:left center!important}
.admin-powered-by{grid-template-columns:74px minmax(0,1fr)!important;gap:12px!important;margin:8px 4px 0!important;padding:13px 9px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important}.admin-powered-by img{width:70px!important;height:88px!important;padding:5px!important;border-radius:10px!important;background:#fff!important;filter:none!important;opacity:1!important}.admin-powered-by span{font-size:10.5px!important}.admin-powered-by strong{font-size:14px!important}.admin-powered-by small{font-size:10.5px!important;line-height:1.3!important;white-space:normal!important}
.admin-app-shell:before{content:'';position:absolute;z-index:0;left:0;top:0;bottom:0;width:280px;background:var(--v5-nav)}.admin-sidebar,.admin-main{position:relative;z-index:1}.mail-settings-tabs-outlook{display:flex!important;gap:5px!important;overflow-x:auto!important;scrollbar-width:thin!important}.mail-settings-tabs-outlook a{flex:0 0 auto!important;white-space:nowrap!important}.mailbox-overview-card{max-width:1180px}.mailbox-onboarding{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 18px;padding:16px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff}.mailbox-onboarding>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#2563eb;color:#fff;font-size:18px;font-weight:600}.mailbox-onboarding p{margin:3px 0 0;color:#526174}.mailbox-row-error{display:block;color:#b42318;margin-top:3px}.mail-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mail-advanced-grid a{display:grid;gap:4px;padding:16px;border:1px solid #e3e8ef;border-radius:14px;background:#fbfcfe;color:#172033;text-decoration:none}.mail-advanced-grid a:hover{border-color:#bfdbfe;background:#eff6ff}.mail-advanced-grid strong{font-size:15px}.mail-advanced-grid span{color:#64748b;font-size:13px}.folder-admin-create{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}.folder-admin-sync{margin-top:8px!important}.mailbox-wizard-steps{grid-template-columns:repeat(8,minmax(88px,1fr))!important;overflow-x:auto!important}.mailbox-wizard-steps button{white-space:nowrap!important}.mailbox-form input,.mailbox-form select{min-height:43px!important}.mailbox-summary-step .mailbox-summary-grid{margin-top:8px}
@media(max-width:1180px){.admin-app-shell:before{width:248px}.mailbox-wizard-steps{grid-template-columns:repeat(8,minmax(104px,1fr))!important}}@media(max-width:980px){.admin-app-shell:before{display:none}.mail-advanced-grid{grid-template-columns:1fr}.mailbox-onboarding{grid-template-columns:42px minmax(0,1fr)}.mailbox-onboarding>a{grid-column:1/-1}}@media(max-width:560px){.admin-powered-by{grid-template-columns:60px minmax(0,1fr)!important}.admin-powered-by img{width:58px!important;height:74px!important}.folder-admin-create{grid-template-columns:1fr!important}.mailbox-settings-intro{grid-template-columns:1fr!important}.mailbox-settings-intro .admin-actions{align-items:stretch!important;flex-direction:column!important}}

/* v5.0f inbound subject automation */
.automation-form [hidden]{display:none!important}
.automation-check-label{display:flex!important;align-items:center;gap:9px;align-self:end;min-height:44px;padding:10px 12px;border:1px solid #dce3ec;border-radius:11px;background:#f8fafc;color:#334155!important}
.automation-check-label input{width:17px!important;height:17px!important;min-height:0!important;margin:0!important}
.automation-simulator{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:13px;border:1px solid #dbe5f1;border-radius:13px;background:#f8fbff}
.automation-simulator label{margin:0}.automation-simulator button{min-height:42px}.simulation-result{grid-column:1/-1;min-height:20px;font-size:13px;font-weight:600}.simulation-result.success{color:#08754f}.simulation-result.warning{color:#9a5b00}.simulation-result.muted{color:#64748b}
@media(max-width:700px){.automation-simulator{grid-template-columns:1fr}.automation-simulator button{width:100%}}

/* v5.6 - planning publicatie, verlofbeheer en conceptstatus */
.planning-publication-bar{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(340px,1.2fr);gap:18px;align-items:end;margin:0 0 16px;padding:16px 18px;border:1px solid #dbe5f2;border-radius:16px;background:#f8fafc}
.planning-publication-bar.is-published{background:#effcf7;border-color:#b6ead4}
.planning-publication-bar>div{display:flex;flex-direction:column;gap:3px}.planning-publication-bar>div>span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.planning-publication-bar>div>strong{font-size:18px;color:#0f172a}.planning-publication-bar>div>small{color:#64748b}
.planning-publish-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}.planning-publish-form label{display:grid;gap:5px;font-size:12px;font-weight:600;color:#475569}.planning-publish-form input{height:40px;border:1px solid #d8e1ea;border-radius:12px;padding:0 12px;background:#fff}.planning-publish-form button{height:40px;border:0;border-radius:12px;padding:0 16px;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}
.calendar-shift.is-concept{filter:saturate(.68);opacity:.82;border-style:dashed!important}.shift-concept-label{display:inline-flex;margin-left:6px;padding:1px 5px;border-radius:999px;background:rgba(255,255,255,.18);font-size:9px;font-style:normal;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.text-danger{color:#b91c1c!important}
.admin-table td small{display:block;margin-top:4px;color:#64748b;font-size:11px}
@media(max-width:860px){.planning-publication-bar{grid-template-columns:1fr}.planning-publish-form{grid-template-columns:1fr}.planning-publish-form button{width:100%}}

/* v5.7 - alle productmodules gebruiken dezelfde uitklapbare zijbalk */
.admin-calm-nav .admin-nav-group{width:100%!important}
.admin-calm-nav .admin-nav-group summary{user-select:none!important}
.admin-calm-nav .admin-nav-subitems a{position:relative!important}
.admin-calm-nav .admin-nav-subitems a.active:before{content:"";position:absolute;left:-11px;top:10px;width:5px;height:14px;border-radius:4px;background:#60a5fa}
@media(max-width:1024px){.admin-calm-nav .admin-nav-group{width:100%!important}.admin-calm-nav .admin-nav-subitems{position:static!important;margin-left:32px!important;border:0!important;box-shadow:none!important}}


/* v5.7.1 - customer menu hotfix: robust accessible accordion */
.admin-calm-nav .admin-nav-group{
  display:block!important;width:100%!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:10px!important;background:transparent!important;overflow:visible!important
}
.admin-calm-nav .admin-nav-group-toggle{
  appearance:none!important;-webkit-appearance:none!important;display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;
  width:100%!important;min-height:42px!important;margin:0!important;padding:9px 10px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;color:var(--v5-nav-text)!important;
  box-shadow:none!important;cursor:pointer!important;text-align:left!important;font:500 14px/1.2 "Source Sans 3","Segoe UI",system-ui,sans-serif!important
}
.admin-calm-nav .admin-nav-group-toggle>span{
  display:grid!important;place-items:center!important;width:24px!important;height:24px!important;
  color:#aebbd0!important;font-size:14px!important;font-weight:500!important
}
.admin-calm-nav .admin-nav-group-toggle>strong{
  min-width:0!important;overflow:hidden!important;color:inherit!important;font:inherit!important;
  text-overflow:ellipsis!important;white-space:nowrap!important
}
.admin-calm-nav .admin-nav-group-toggle>em{
  color:#718096!important;font-style:normal!important;font-size:16px!important;transition:transform .16s ease!important
}
.admin-calm-nav .admin-nav-group-toggle:hover{background:var(--v5-nav-hover)!important;color:#fff!important}
.admin-calm-nav .admin-nav-group.is-open>.admin-nav-group-toggle{background:rgba(37,99,235,.17)!important;color:#fff!important}
.admin-calm-nav .admin-nav-group.is-open>.admin-nav-group-toggle>span{color:#93c5fd!important}
.admin-calm-nav .admin-nav-group.is-open>.admin-nav-group-toggle>em{transform:rotate(90deg)!important}
.admin-calm-nav .admin-nav-group:not(.is-open)>.admin-nav-subitems{display:none!important}
.admin-calm-nav .admin-nav-group.is-open>.admin-nav-subitems{display:grid!important}
.admin-calm-nav .admin-nav-group-toggle:focus-visible{outline:2px solid #93c5fd!important;outline-offset:2px!important}
@media(max-width:1024px){
  .admin-calm-nav .admin-nav-group{width:100%!important}
  .admin-calm-nav .admin-nav-subitems{position:static!important;margin-left:32px!important;border-right:0!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important}
}


/* v7.2.5 explicit employee/account linking */
.employee-account-link-card{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:16px;background:#f8fafc}.employee-account-link-card>div{min-width:0}.employee-account-link-card span,.employee-account-link-card strong,.employee-account-link-card small,.employee-account-link-card em{display:block}.employee-account-link-card span{color:#64748b;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.employee-account-link-card strong{margin-top:3px;font-size:17px}.employee-account-link-card small{margin-top:3px;color:#64748b}.employee-account-link-card em{margin-top:7px;color:#8a5a00;font-size:12px;font-style:normal}.employee-account-link-card.is-linked{border-color:#b7decf;background:#f3fbf7}.employee-account-link-card.is-linked strong{color:#176649}@media(max-width:760px){.employee-account-link-card{align-items:flex-start;flex-direction:column}.employee-account-link-card .admin-link-button{width:100%;justify-content:center}}


/* v7.4 dashboard search */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.admin-dashboard-search-card{padding:20px 24px!important}
.admin-dashboard-search-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(360px,1.2fr);align-items:center;gap:26px}
.admin-dashboard-search-copy h2{margin:3px 0}.admin-dashboard-search-copy .admin-help{margin:0}
.admin-dashboard-search{display:flex!important;align-items:stretch!important;gap:10px!important;margin:0!important;min-width:0}
.admin-dashboard-search input{flex:1 1 auto!important;width:auto!important;min-width:0!important;min-height:46px!important;margin:0!important;border-radius:13px!important}
.admin-dashboard-search button{flex:0 0 auto!important;width:auto!important;min-width:108px!important;min-height:46px!important;margin:0!important;justify-content:center!important}
.admin-dashboard-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.admin-dashboard-action{min-height:82px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:12px;border:1px solid #dfe6ef;border-radius:15px;background:#fff;color:#162033;text-decoration:none;transition:.15s ease}
.admin-dashboard-action:hover{border-color:#a9c1f5;background:#f7faff;transform:translateY(-1px)}
.admin-dashboard-action>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eaf1ff;color:#245bd7;font-weight:700}
.admin-dashboard-action strong,.admin-dashboard-action small{display:block}.admin-dashboard-action strong{font-size:15px;font-weight:650}.admin-dashboard-action small{margin-top:3px;color:#64748b;font-size:12px;line-height:1.3}
.admin-dashboard-secondary-actions{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px;padding-top:14px;border-top:1px solid #e7ecf3}
.admin-dashboard-secondary-actions a{color:#3f5875;font-size:13px;font-weight:600;text-decoration:none}.admin-dashboard-secondary-actions a:hover{color:#1d4ed8}
@media(max-width:1050px){.admin-dashboard-search-layout{grid-template-columns:1fr;gap:16px}.admin-dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.admin-dashboard-search-card{padding:18px!important}.admin-dashboard-search{display:grid!important;grid-template-columns:1fr!important}.admin-dashboard-search button{width:100%!important}.admin-dashboard-action-grid{grid-template-columns:1fr}.admin-dashboard-secondary-actions{display:grid;grid-template-columns:1fr 1fr}.admin-dashboard-secondary-actions a{padding:8px 0}}

/* v7.3 CRM completion */
.crm-fieldset{border:1px solid #dbe5f1;border-radius:14px;padding:14px 16px;margin:0;min-width:0}.crm-fieldset legend{padding:0 6px;font-weight:600;color:#23344d}.crm-tag-options{display:flex;flex-wrap:wrap;gap:8px 14px}.crm-tag-options .module-checkbox{margin:0}.crm-timeline article{position:relative}.crm-timeline article>a{display:inline-flex;margin-top:7px;font-weight:600;color:#1f5fd7;text-decoration:none}.crm-timeline article>a:hover{text-decoration:underline}

/* v8.0.1 Hotfix 2 - compact, semantic application messages */
.admin-content-shell>.admin-alert,
.admin-main>.admin-alert,
.admin-alert{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0 0 16px!important;
  padding:11px 14px!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  border-radius:12px!important;
  line-height:1.45!important;
}
.admin-alert strong{flex:0 0 auto;margin:0!important}
.admin-alert span{display:block;min-width:0;margin:0!important}
.admin-alert.warning{border:1px solid #f2c875!important;background:#fff8e8!important;color:#7a4b00!important}
.admin-alert.warning strong{color:#8a5100!important}
.admin-alert.success{border:1px solid #a9ddc6!important;background:#effbf5!important;color:#176649!important}
.admin-alert.error{border:1px solid #f0b8b5!important;background:#fff3f2!important;color:#9f2921!important}

/* v8.0.2 · duidelijke roosterpublicatie en reeksbeheer */
.series-scope{border:1px solid #cbd9e8;background:#f8fbff}.series-scope legend{padding:0 8px;font-weight:700;color:#18354b}.series-scope .checkline{display:flex;align-items:flex-start;gap:10px}.series-scope .checkline small{margin-left:auto;color:#64748b;font-weight:400}.planning-publication-main{display:flex;flex-direction:column;gap:5px}.planning-change-counts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.planning-change-counts span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff;border:1px solid #d9e4ef;color:#334155;font-size:12px;font-weight:650}.planning-change-details{margin-top:8px;padding-top:8px;border-top:1px solid #dbe5ef}.planning-change-details summary{cursor:pointer;font-weight:650;color:#1d4ed8}.planning-change-details h4{margin:10px 0 4px;font-size:13px}.planning-change-details ul{margin:0;padding-left:20px}.planning-change-details li{margin:4px 0;color:#475569}.planning-change-details li small{display:block}.planning-migration-note{margin-top:6px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.planning-publish-form label em{font-style:normal;font-weight:400;color:#64748b}
@media(max-width:720px){.series-scope .checkline{display:grid;grid-template-columns:auto 1fr}.series-scope .checkline small{grid-column:2;margin-left:0}.shift-edit-actions .admin-delete-form label{width:100%}}

/* v8.0.2 Hotfix 1 · professionele meldingen en consistente actie-uitlijning */
.admin-content-shell{
  align-content:start!important;
  grid-auto-rows:max-content!important;
}
.admin-content-shell>.admin-alert{
  align-self:start!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  box-sizing:border-box!important;
}
.row-actions{
  --row-action-width:150px;
  display:grid!important;
  grid-template-columns:var(--row-action-width)!important;
  gap:6px!important;
  align-items:start!important;
  justify-content:start!important;
}
.row-actions form{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.row-actions .row-action,
.employee-actions-cell>.row-action{
  width:var(--row-action-width,150px)!important;
  min-width:var(--row-action-width,150px)!important;
  max-width:var(--row-action-width,150px)!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0 10px!important;
  box-sizing:border-box!important;
}
.employee-actions-cell>.row-action{margin-top:6px!important}

.shift-edit-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  margin-top:18px!important;
  padding-top:18px!important;
  border-top:1px solid #e4eaf2!important;
}
.shift-action-group{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:12px;
  min-width:0;
  padding:16px;
  border:1px solid #dfe6ef;
  border-radius:14px;
  background:#f8fafc;
}
.shift-action-group.is-danger{border-color:#f2d2d2;background:#fffafa}
.shift-action-heading{display:grid;gap:2px}.shift-action-heading strong{font-size:15px;color:#172033}.shift-action-heading span{font-size:12px;color:#64748b}
.shift-action-group form{
  display:grid!important;
  grid-template-columns:minmax(190px,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.shift-action-group label{display:grid!important;gap:5px!important;min-width:0!important;font-size:12px!important;font-weight:600!important;color:#475569!important}
.shift-action-group label>span{display:block}
.shift-action-group input,.shift-action-group select{
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 10px!important;
  border:1px solid #d6dfeb!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#172033!important;
  font:inherit!important;
  text-overflow:ellipsis!important;
}
.shift-action-group button{min-width:108px!important;height:38px!important;min-height:38px!important;margin:0!important}
.shift-action-single{display:flex;align-items:center;min-height:38px;padding:0 10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;font-size:13px}

.planning-publication-bar{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  align-items:stretch!important;
  margin:0 0 16px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #dbe5f2!important;
  border-radius:15px!important;
  background:#fff!important;
}
.planning-publication-bar.is-published{border-color:#b7e3d1!important;background:#f7fcf9!important}
.planning-publication-summary{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:16px 18px!important;
}
.planning-publication-main{display:grid!important;gap:3px!important;min-width:0!important}
.planning-publication-main>span{font-size:10.5px!important;font-weight:700!important;letter-spacing:.09em!important;text-transform:uppercase!important;color:#64748b!important}
.planning-publication-main>strong{font-size:18px!important;line-height:1.25!important;color:#0f172a!important}
.planning-publication-main>p{margin:1px 0 0!important;max-width:none!important;color:#64748b!important;font-size:13px!important;line-height:1.4!important}
.planning-change-counts{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:7px!important;margin:0!important;flex:0 0 auto!important}
.planning-change-counts span{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:30px!important;padding:0 9px!important;border:1px solid #dbe5ef!important;border-radius:9px!important;background:#f8fafc!important;color:#334155!important;font-size:12px!important;font-weight:600!important}
.planning-change-counts span b{font-size:13px!important}.planning-change-counts .is-added{border-color:#b9e5d1!important;background:#f2fbf6!important;color:#176649!important}.planning-change-counts .is-changed{border-color:#bfd6f7!important;background:#f3f7ff!important;color:#2452a5!important}.planning-change-counts .is-deleted{border-color:#f0cccc!important;background:#fff7f7!important;color:#b42318!important}
.planning-change-details{margin:0!important;padding:0 18px 14px!important;border-top:1px solid #e6ebf2!important}
.planning-change-details summary{padding:12px 0 0!important;cursor:pointer!important;color:#245bd7!important;font-size:13px!important;font-weight:600!important;list-style:none!important}.planning-change-details summary::-webkit-details-marker{display:none}.planning-change-details summary:before{content:"›";display:inline-block;margin-right:7px;transition:transform .15s ease}.planning-change-details[open] summary:before{transform:rotate(90deg)}
.planning-change-detail-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-top:12px!important}.planning-change-detail-grid section{padding:12px;border:1px solid #e4eaf2;border-radius:11px;background:#f8fafc}.planning-change-detail-grid h4{margin:0 0 8px!important;font-size:12px!important;color:#334155!important}.planning-change-detail-grid ul{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;list-style:none!important}.planning-change-detail-grid li{display:grid!important;gap:1px!important;margin:0!important;color:#334155!important;font-size:12px!important}.planning-change-detail-grid li span,.planning-change-detail-grid li small{color:#64748b!important}
.planning-migration-note{margin:0 18px 14px!important;padding:8px 10px!important;border:1px solid #e2e8f0!important;border-radius:9px!important;background:#f8fafc!important;color:#64748b!important;font-size:12px!important}
.planning-publish-form{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto!important;
  gap:12px!important;
  align-items:end!important;
  padding:14px 18px 16px!important;
  border-top:1px solid #e6ebf2!important;
  background:#fbfcfe!important;
}
.planning-publish-form label{display:grid!important;gap:5px!important;color:#475569!important;font-size:12px!important;font-weight:600!important}.planning-publish-form label>span small{font-weight:400!important;color:#64748b!important}.planning-publish-form input{width:100%!important;height:38px!important;min-height:38px!important;border:1px solid #d8e1ea!important;border-radius:10px!important;padding:0 11px!important;background:#fff!important}.planning-publish-form button{height:38px!important;min-height:38px!important;margin:0!important;padding:0 14px!important}

@media(max-width:900px){
  .shift-edit-actions{grid-template-columns:1fr!important}
  .planning-publication-summary{display:grid!important;gap:12px!important}
  .planning-change-counts{justify-content:flex-start!important}
  .planning-change-detail-grid{grid-template-columns:1fr!important}
}
@media(max-width:640px){
  .shift-action-group form,.planning-publish-form{grid-template-columns:1fr!important}
  .shift-action-group button,.planning-publish-form button{width:100%!important}
  .row-actions{--row-action-width:138px}
}
.field-has-error>input,
.field-has-error>select,
.field-has-error input,
.field-has-error select{
  border-color:#ef9a9a!important;
  box-shadow:0 0 0 3px rgba(220,38,38,.08)!important;
}
.field-error{
  display:block!important;
  margin-top:4px!important;
  color:#b42318!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.35!important;
}
.field-error a{color:#1d4ed8!important;font-weight:600!important;text-decoration:none!important}.field-error a:hover{text-decoration:underline!important}
.inline-field{display:grid;gap:3px;min-width:0}.inline-field input{width:100%!important}
