/* BEGIN static/v58_hotfix4.css */
/* HOTFIX4: compact quota/deadline UI and corrected stacking */
.admin-global-search-wrap{position:relative!important;z-index:2500!important;isolation:auto!important;overflow:visible!important}
.admin-global-search{position:relative!important;overflow:visible!important;z-index:2501!important}
.v56-search,.admin-global-search .v56-search{position:relative!important;z-index:2502!important;overflow:visible!important}
.v56-search-results{z-index:99999!important;position:absolute!important;isolation:isolate!important;box-shadow:0 16px 38px #000b!important}
.work-tabs,.v56-unified,.admin-nav{z-index:5!important}
/* Quotas: narrower content, smaller button tabs, equal-sized compact cards */
body:has(.v56-quota-body) main.container{max-width:990px!important}
.v56-quota-body .v56-scope-tabs{display:flex!important;gap:7px!important;max-width:370px!important;width:100%!important;padding:4px!important;margin:0 0 16px!important}
.v56-quota-body .v56-scope-tabs a{flex:1 1 0!important;min-width:0!important;min-height:35px!important;font-size:12px!important;padding:7px 10px!important;border-radius:9px!important}
.v56-quota-body .v55-quotas-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
.v56-quota-body .v55-quota-department{padding:13px!important;min-width:0!important;max-width:none!important;height:auto!important}
.v56-quota-body .v56-no-dept{grid-column:3!important;max-width:none!important}
.v56-quota-body .v56-quota-form{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;margin-top:8px!important}
.v56-quota-body .v56-quota-form label{width:100%!important;max-width:100%!important;min-width:0!important}
.v56-quota-body .v56-quota-form input{width:100%!important;max-width:100%!important;min-width:0!important;min-height:36px!important;height:36px!important;font-size:14px!important;padding:6px 10px!important}
.v56-quota-body .v56-quota-form button{width:auto!important;max-width:160px!important;min-width:0!important;min-height:34px!important;padding:7px 13px!important;font-size:12px!important}
.v56-quota-body .v56-shift-section>h2{margin:18px 0 10px!important;font-size:20px!important}
.v56-quota-body .v56-scope-explanation{max-width:760px;font-size:12px!important;line-height:1.55}
/* Deadlines: not full-width controls */
body:has(.v58-deadlines) main.container{max-width:990px!important}
.v58-deadlines .permanent-deadline-grid,.v58-deadlines .admin-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.v58-deadlines .permanent-deadline-card{padding:16px!important}
.v58-deadlines .permanent-deadline-card label{display:flex!important;flex-direction:column!important;gap:6px!important;margin:9px 0!important;font-size:12px!important}
.v58-deadlines .permanent-deadline-card .v57-deadline-switch{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;max-width:330px!important}
.v58-deadlines input[type=number],.v58-deadlines input[type=time]{max-width:230px!important;min-height:38px!important;box-sizing:border-box!important;width:100%!important}
.v58-deadlines .permanent-deadline-card button,.v58-deadlines form[action='/admin/deadline'] button{width:auto!important;min-width:110px!important;min-height:36px!important;padding:8px 14px!important;font-size:12px!important}
.v58-deadlines .date-tab{font-size:12px!important;padding:7px 9px!important}
.v58-deadlines .permanent-deadline-card h2{font-size:20px!important}
/* Common admin subsection navigation, same row on all 4 pages */
.v57-management-tabs{position:relative!important;max-width:1140px!important;width:calc(100% - 36px)!important;margin:16px auto!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important;grid-column:1/-1!important}
.v57-management-tabs a{font-size:12px!important;padding:8px 12px!important;min-height:35px!important}
.v58-admin-mainnav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:1140px;margin:0 auto;padding:10px 16px;border-bottom:1px solid #393342;font:600 12px/1.4 Arial,sans-serif}
.v58-admin-mainnav a{padding:8px 11px;color:#eae4f3;text-decoration:none;border-radius:9px}
.v58-admin-mainnav a.active{background:#42245e;border:1px solid #76529b}
html[data-theme='light'] .v58-admin-mainnav a{color:#251d33}
@media(max-width:800px){.v56-quota-body .v55-quotas-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v56-quota-body .v56-no-dept{grid-column:auto!important}}
@media(max-width:550px){.v56-quota-body .v55-quotas-grid,.v58-deadlines .permanent-deadline-grid,.v58-deadlines .admin-cards{grid-template-columns:1fr!important}.v56-quota-body .v56-scope-tabs{max-width:100%!important}.v57-management-tabs{width:calc(100% - 22px)!important;gap:5px!important}.v57-management-tabs a{font-size:11px!important;padding:7px 9px!important}}

/* Search dropdown is now mounted directly in document.body, so subsection
   cards and menu backgrounds cannot cover or clip the suggestions. */
body > .v56-search-results{position:fixed!important;z-index:2147483000!important;right:auto!important;left:auto;top:auto;max-height:min(340px,60vh)!important;overflow-y:auto!important;background:#1c1e29!important;color:#f8f4ff!important;border:1px solid #a56af0!important;border-radius:12px!important;box-shadow:0 22px 55px #000c!important}
body > .v56-search-results[hidden]{display:none!important}
body > .v56-search-results a{display:block!important;padding:12px 14px!important;color:inherit!important}
body > .v56-search-results a:hover,body > .v56-search-results a:focus-visible{background:#5b287e!important}
html[data-theme='light'] body > .v56-search-results{background:#fff!important;color:#23202d!important}
@media(max-width:500px){body > .v56-search-results{max-height:45vh!important}}

/* END static/v58_hotfix4.css */
/* BEGIN static/v56_hotfix.css */

/* Smena24 V5.5 hotfix — compact, consistent, accessible */
.topbar{display:flex!important;align-items:center!important;gap:10px!important}
.topbar .v56-header-logout{margin-left:auto!important;order:100}
.topbar .top-actions{display:contents}
.v56-stable-tabs,.v56-unified{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.v56-stable-tabs a,.v56-unified a{font-size:12px!important;padding:7px 11px!important;border-radius:999px!important;white-space:nowrap!important}
.v56-search{position:relative!important;min-width:0;flex:1}
.v56-search input{width:100%!important;padding:10px 14px!important;box-sizing:border-box!important}
.v56-search-results{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:1000;background:#1c1e29;border:1px solid #8a51be;border-radius:12px;padding:5px;box-shadow:0 12px 25px #0009;max-height:320px;overflow-y:auto;color:#eee}
.v56-search-results[hidden]{display:none!important}
.v56-search-results a{display:block;padding:10px 12px;text-decoration:none;color:#eee;border-radius:8px;font-size:13px}
.v56-search-results a:hover,.v56-search-results a:focus{background:#64318e;outline:0}
.v56-scope-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;background:#222332;border:1px solid #525060;border-radius:12px;padding:5px;margin-bottom:13px}
.v56-scope-tabs a{color:inherit;text-decoration:none;text-align:center;padding:11px 10px;border-radius:9px;font-weight:700}
.v56-scope-tabs a.active{color:white;background:linear-gradient(105deg,#7834e3,#b12dd0)}
.v56-quota-body .v55-quota-department{border-radius:14px;background:#20222e;padding:15px}
.v56-quota-body .v55-quota-department strong{font-size:14px}
.v56-quota-form{display:grid;gap:10px;margin-top:14px}
.v56-quota-form label{display:grid;gap:5px;font-size:12px;color:inherit}
.v56-quota-form input{max-width:100%;width:100%;box-sizing:border-box;border-radius:9px}
.v56-quota-form button,.permanent-deadline-card button,.panel form[action*="deadline"] button{border-radius:10px!important;padding:10px 14px!important;min-height:39px!important;font-size:13px!important;font-weight:700;background:linear-gradient(110deg,#8434d9,#ab30d0)!important;color:white!important;border:1px solid #ab5fe3!important}
.v56-quota-body .v56-no-dept{grid-column:1/-1;background:#242431}
.v56-management .v56-management-tabs{margin-bottom:15px;display:flex;flex-wrap:wrap;gap:8px}
.v56-tool{display:flex;flex-direction:column;gap:8px;padding:17px;border:1px solid #545065;border-radius:14px;text-decoration:none;color:inherit;background:#232631;max-width:520px}
.v56-tool small{opacity:.7}.v56-tool span{font-size:13px;color:#c7a0eb}
.permanent-deadline-card{border-radius:15px!important;overflow:hidden}.permanent-deadline-card label{font-weight:600}.date-tab{font-size:12px!important;padding:7px 10px!important;border-radius:9px!important}
@media(max-width:560px){.v55-quotas-grid{grid-template-columns:1fr!important}.v56-scope-tabs a{font-size:13px}.topbar .brand strong{font-size:13px}.v56-stable-tabs a{font-size:11px!important;padding:6px 9px!important}}
html[data-theme="light"] .v56-search-results{background:#fff;color:#20212b;border-color:#b9a3cf;box-shadow:0 12px 26px #1e153026}
html[data-theme="light"] .v56-search-results a{color:#20212b}
html[data-theme="light"] .v56-search-results a:hover,html[data-theme="light"] .v56-search-results a:focus{background:#efe1fa}
html[data-theme="light"] .v56-scope-tabs{background:#f3eef9;border-color:#ddd0e8}
html[data-theme="light"] .v56-quota-body .v55-quota-department,html[data-theme="light"] .v56-tool{background:#fff;color:#1d1925;border-color:#d7cde1}
html[data-theme="light"] .v56-quota-body .v56-no-dept{background:#f5f0fa}

/* V5.5 HOTFIX2: interactive tabs and polished compact controls */
.v56-quota-body .v56-scope-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;padding:5px!important;margin:0 0 15px!important;border-radius:13px!important;isolation:isolate}
.v56-quota-body .v56-scope-tabs a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;box-sizing:border-box!important;padding:9px 14px!important;border:1px solid transparent!important;border-radius:9px!important;font-size:13px!important;font-weight:700!important;line-height:1.3!important;text-decoration:none!important;position:relative!important;z-index:2!important;cursor:pointer!important;pointer-events:auto!important;user-select:none!important;touch-action:manipulation!important}
.v56-quota-body .v56-scope-tabs a.active{background:linear-gradient(105deg,#7d2de7,#af39dc)!important;color:#fff!important;border-color:#bd82ff!important}
.v56-quota-body .v56-scope-tabs a:not(.active){color:#ddd5e9!important;background:#292837!important;border-color:#4a415c!important}
.v56-quota-body .v56-scope-tabs a:hover,.v56-quota-body .v56-scope-tabs a:focus-visible{outline:2px solid #af72e9!important;outline-offset:2px!important}
.v56-day-picker[hidden],.v56-quota-form label[hidden]{display:none!important}
.v56-quota-form button{justify-self:start!important;width:auto!important;min-width:124px!important;font-size:12px!important;padding:9px 16px!important;cursor:pointer!important}
.v56-quota-body .v55-quota-department{min-width:0}
.v56-stable-tabs a,.v56-unified a{font-size:12px!important;padding:7px 10px!important;min-height:32px!important;display:inline-flex!important;align-items:center!important}
.permanent-deadline-card h2,.admin-cards article.panel h2{font-size:22px!important;margin:0 0 15px!important}
.v57-deadline-switch{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:15px!important;min-height:38px!important;margin:12px 0!important;cursor:pointer!important}
.v57-switch-control{display:inline-flex!important;position:relative!important;align-items:center!important;flex:0 0 45px!important;width:45px!important;height:25px!important}
.v57-switch-control input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;z-index:3!important;cursor:pointer!important;margin:0!important}
.v57-switch-control i{position:absolute!important;inset:0!important;background:#565461!important;border-radius:999px!important;transition:background .15s ease!important;pointer-events:none!important}
.v57-switch-control i:after{content:'';position:absolute;left:3px;top:3px;width:19px;height:19px;background:white;border-radius:50%;transition:transform .15s ease;box-shadow:0 1px 3px #0005}
.v57-switch-control input:checked+i{background:#923ae4!important}
.v57-switch-control input:checked+i:after{transform:translateX(20px)}
.v57-switch-control input:focus-visible+i{outline:2px solid #c388ff;outline-offset:3px}
.permanent-deadline-card button,.admin-cards form[action="/admin/deadline"] button{width:auto!important;min-width:135px!important;font-size:12px!important;padding:9px 16px!important}
.admin-global-search button[type="submit"]{display:none!important}
html[data-theme="light"] .v56-quota-body .v56-scope-tabs a:not(.active){background:#fff!important;color:#2e2838!important}
@media(max-width:600px){.v56-quota-body .v56-scope-tabs a{min-height:44px!important;font-size:12px!important}.v56-quota-form button{min-width:108px!important}}

/* HOTFIX3: compact quota cards; no-department quota stays last and sized like others */
.v56-quota-body .v56-no-dept{grid-column:3!important;max-width:none!important}
.v56-quota-body .v56-quota-form input{max-width:100%!important;min-width:0!important}
.v56-quota-body .v56-quota-form button{min-width:108px!important;padding:8px 12px!important}
@media(max-width:860px){.v56-quota-body .v56-no-dept{grid-column:auto!important}}

/* END static/v56_hotfix.css */
/* BEGIN static/v55_admin.css */
/* Smena24 V5.5 navigation/filters: compact, responsive, no overflow */
html,body{max-width:100%;overflow-x:clip}
.topbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.topbar form[action="/admin-logout"]{margin-left:auto}
.admin-nav{max-width:100%;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
.admin-nav a{flex-shrink:0}
.employee-health-grid.v55-employee-health>a{color:inherit;min-width:0;display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid #49475a;border-radius:13px;background:#232432;text-decoration:none}
.v55-employee-health>a:hover,.v55-employee-health>a.v55-active{border-color:#b464eb;background:#402552}
.v55-employee-health>a span{font-size:12px}.v55-employee-health>a strong{font-size:25px}
.v55-filter-line{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:15px 0}
.v55-filter-line>strong{min-width:104px;font-size:12px;letter-spacing:.04em}
.v55-filter-pill{display:inline-flex;padding:8px 12px;border:1px solid #72518a;border-radius:999px;color:inherit;text-decoration:none;font-size:13px;white-space:nowrap}
.v55-filter-pill.active{background:#7433ba;border-color:#c57aff;color:white}
.v55-archive-actions{display:flex;justify-content:flex-end;margin-top:12px}
.v55-archive-actions button{padding:10px 17px!important;font-size:14px;background:linear-gradient(120deg,#44235b,#272233);border:1px solid #a45bd6;color:#f4ecfa;border-radius:12px}
.v55-archive-search input{width:100%;box-sizing:border-box}
.v55-pages{display:flex;align-items:center;gap:16px;justify-content:center;padding-top:20px;flex-wrap:wrap}
.v55-pages a{padding:8px 12px;border:1px solid #544965;border-radius:9px;color:inherit;text-decoration:none}
.v55-pages a[aria-disabled=true]{opacity:.35;pointer-events:none}
.v55-quotas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:13px}
.v55-quota-department{padding:15px;background:#222533;border:1px solid #4d4a5a;border-radius:13px}
.v55-quota-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:9px}
.v55-quota-two input{width:100%;max-width:100%}.v55-quota-two button{width:100%;margin-top:6px}
.v55-management-frame{width:100%;height:70vh;min-height:520px;border:1px solid #564660;border-radius:13px;background:transparent;margin-top:13px}
form[action*="training-test/require"] button{display:inline-flex!important;align-items:center;max-width:100%;margin:14px 0 0;padding:10px 17px;border-radius:12px!important;line-height:1.35;white-space:normal;position:static!important}
@media(max-width:640px){.topbar{padding:9px 12px!important}.topbar .brand{font-size:13px;max-width:calc(100% - 190px)}.topbar .brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .lang-switch,.topbar .theme-toggle{flex-shrink:0}.v55-filter-line>strong{width:100%}.v55-quota-two{grid-template-columns:1fr 1fr}.v55-employee-health{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

@media(max-width:600px){a[href^="/admin/attendance/bulk"]{white-space:normal!important;overflow-wrap:anywhere;max-width:100%;text-align:center;line-height:1.35;padding:12px!important;display:inline-flex!important;justify-content:center}}

/* END static/v55_admin.css */
/* BEGIN static/s24_header_v10.css */
/* Smena24 FOLLOWUP10: single server-rendered header. No JS moves elements. */
header.topbar.s24-server-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:62px!important;flex-wrap:nowrap!important}
header.topbar.s24-server-header>.brand{margin-right:auto!important;display:inline-flex!important;align-items:center!important;min-width:0!important;flex:0 1 auto!important}
header.topbar.s24-server-header>#s24-right-tools{position:static!important;inset:auto!important;transform:none!important;margin:0 0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;height:auto!important;max-width:none!important;visibility:visible!important;opacity:1!important;padding:0!important}
header.topbar.s24-server-header #s24-own-theme,header.topbar.s24-server-header #s24-own-lang,header.topbar.s24-server-header .s24-server-exit-button{box-sizing:border-box!important;position:static!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;height:38px!important;min-width:38px!important;max-width:none!important;width:auto!important;padding:0 10px!important;margin:0!important;flex:0 0 auto!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;border-radius:10px!important;border:1px solid #414b60!important;background:#262c3a!important;color:#fff!important;font:600 13px/1.2 system-ui,sans-serif!important;cursor:pointer!important}
header.topbar.s24-server-header .s24-server-exit{display:flex!important;position:static!important;flex:0 0 auto!important;margin:0!important;padding:0!important;min-width:0!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important}
header.topbar.s24-server-header .s24-server-exit-button{padding:0 13px!important}
header.topbar.s24-server-header .s24-server-exit-button:hover{background:#353d52!important}
/* Old ui.js also creates theme/language controls; keep its translations, hide ONLY its duplicate widgets. */
header.topbar.s24-server-header .topbar-ui-controls,header.topbar.s24-server-header .smena-theme-toggle,header.topbar.s24-server-header .smena-lang-switcher{display:none!important}
@media(max-width:480px){header.topbar.s24-server-header{gap:5px!important}header.topbar.s24-server-header>.brand strong{font-size:12px!important}header.topbar.s24-server-header>#s24-right-tools{gap:4px!important}header.topbar.s24-server-header #s24-own-theme,header.topbar.s24-server-header #s24-own-lang{min-width:32px!important;padding:0 6px!important;height:36px!important}header.topbar.s24-server-header .s24-server-exit-button{padding:0 8px!important;height:36px!important;font-size:12px!important}}

/* END static/s24_header_v10.css */
/* FOLLOWUP13: single owner of the visible admin header and navigation */
header.topbar.s24-server-header { display:flex!important; align-items:center!important; flex-wrap:nowrap!important; justify-content:space-between!important; min-height:70px!important; width:100%!important; box-sizing:border-box!important; gap:10px!important; }
header.topbar.s24-server-header > a.brand { display:inline-flex!important; align-items:center!important; min-width:0!important; margin-right:auto!important; flex:0 1 auto!important; }
header.topbar.s24-server-header > #s24-right-tools { display:flex!important; align-items:center!important; justify-content:flex-end!important; flex:0 0 auto!important; position:static!important; margin:0 0 0 auto!important; padding:0!important; gap:7px!important; width:auto!important; height:auto!important; transform:none!important; visibility:visible!important; opacity:1!important; }
header.topbar.s24-server-header > #s24-right-tools > button, header.topbar.s24-server-header .s24-server-exit-button { display:inline-flex!important; position:static!important; align-items:center!important; justify-content:center!important; min-height:38px!important; width:auto!important; height:38px!important; margin:0!important; padding:0 11px!important; border-radius:10px!important; white-space:nowrap!important; visibility:visible!important; opacity:1!important; transform:none!important; }
header.topbar.s24-server-header #s24-right-tools > form.s24-server-exit { display:flex!important; position:static!important; margin:0!important; width:auto!important; height:auto!important; visibility:visible!important; opacity:1!important; }
header.topbar.s24-server-header .topbar-ui-controls { display:none!important; }
html body nav.admin-nav { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; min-height:54px; padding:10px max(20px,calc((100% - 1180px)/2)); white-space:nowrap; overflow-x:auto; box-sizing:border-box; }
html body nav.admin-nav > a { display:inline-flex; align-items:center; flex:0 0 auto; text-decoration:none; }
html body main.container { max-width:1180px; width:100%; margin:0 auto; padding:36px 20px; box-sizing:border-box; }
@media(max-width:760px){ header.topbar.s24-server-header{padding:8px 12px!important}html body nav.admin-nav{padding:9px 12px}html body main.container{padding:22px 12px} }

/* S24_PREPAINT_GEOMETRY_20261116: final geometry before JS adds classes.
   Match the v56-hotfix layout from the first paint; do not suppress JS. */
form.admin-global-search,form.admin-global-search.v56-search{position:relative!important;min-width:0!important;flex:1!important}
form.admin-global-search input[name="q"],form.admin-global-search.v56-search input[name="q"]{width:100%!important;padding:10px 14px!important;box-sizing:border-box!important}
nav.work-tabs,nav.work-tabs.v56-stable-tabs{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
nav.work-tabs a,nav.work-tabs.v56-stable-tabs a{font-size:12px!important;padding:7px 10px!important;border-radius:999px!important;white-space:nowrap!important;min-height:32px!important;display:inline-flex!important;align-items:center!important}
@media(max-width:560px){nav.work-tabs a,nav.work-tabs.v56-stable-tabs a{font-size:11px!important;padding:6px 9px!important}}
