:root{--ink:#17243a;--muted:#758299;--line:#e6eaf0;--bg:#f5f7fa;--accent:#1765d2}*{box-sizing:border-box}body{font-family:Inter,'Segoe UI Variable','Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55;margin:0}h1,h2,h3,strong{color:var(--ink)}h1{font-size:30px;font-weight:650;letter-spacing:-.8px;margin:0 0 6px}h2{font-size:19px;font-weight:650}h3{font-size:16px;font-weight:650}strong{font-weight:600}p{margin:8px 0 14px}.eyebrow{color:var(--muted);letter-spacing:1.5px;font-size:10px;font-weight:650;margin:0 0 8px}.muted,small{color:var(--muted)}header{height:80px;background:white;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;gap:22px;max-width:none;position:relative;z-index:2}.brand{font-size:25px;font-weight:700;color:#db3539;letter-spacing:2px;display:flex;align-items:center;gap:16px;text-decoration:none}.brand span{font-size:10px;color:var(--ink);font-weight:600;letter-spacing:2px;border-left:1px solid var(--line);padding-left:16px}#today{margin-left:auto;color:var(--muted);font-size:12px}#logout{order:4}header button{padding:8px 14px;min-height:38px;font-size:12px}main{max-width:1500px;padding:30px 32px 60px;margin:0 auto}body[data-role=admin] main{margin-left:236px;max-width:none;padding:34px 34px 65px}body[data-role=admin] #nav{position:fixed;left:0;top:80px;bottom:0;width:236px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px;padding:30px 18px;margin:0;z-index:1;overflow-y:auto}#nav button{text-align:left;border:0;background:transparent;display:flex;gap:12px;align-items:center;padding:12px 15px;color:#66748b;border-radius:10px;font-weight:500}#nav button.selected{background:#edf3fc;color:#1765d2;font-weight:600;box-shadow:inset 3px 0 #1765d2}#nav button:hover{background:#f4f7fb}.nav-icon{font-size:20px;line-height:1;width:24px;text-align:center}.nav-caption{font-size:9px;letter-spacing:1.8px;color:#9aa5b5;margin:0 14px 14px}.nav-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:22px 8px 0;font-size:12px;border-top:1px solid var(--line)}.nav-foot small{display:block;font-size:10px}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#edf2f9;color:#416186;min-width:38px;width:38px;height:38px;font-size:12px;font-weight:600}.card{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 20px #24375404;padding:24px;margin-bottom:20px}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.heading h2{margin:0}button,.button-link{background:white;color:var(--ink);border:1px solid #dce2eb;border-radius:9px;min-height:42px;padding:9px 16px;font-size:13px;font-family:inherit;font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}button:hover{background:#f4f7fb;border-color:#c3ccda}button.primary{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 3px 8px #1765d215}button.primary:hover{background:#1156b9}button:disabled{opacity:.45;cursor:not-allowed}button.danger{color:#d03939;background:#fff7f7;border-color:#f3d4d4}input,select,textarea{font-family:inherit;color:var(--ink);border:1px solid #dce2eb;border-radius:9px;background:white;padding:10px 12px;min-height:43px;font-size:13px;box-shadow:none}input:focus,select:focus,textarea:focus{outline:3px solid #1765d219;border-color:#7ca5df}label{font-size:12px;font-weight:500;gap:6px}textarea{width:100%;resize:vertical}.toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:18px 0 24px}.toolbar label{min-width:150px}.table-wrap{padding:0;overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{font-size:11px;color:#718098;font-weight:600;text-align:left;background:#fafbfd;padding:15px 18px;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #eef1f5;vertical-align:middle}tr:last-child td{border-bottom:0}td button{font-size:11px;min-height:32px;padding:6px 10px;margin:3px 2px}td small,th small{display:block;font-weight:400;font-size:10px;margin-top:4px}tbody tr:hover{background:#fcfdff}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:25px 0}.metric{margin:0;padding:22px;border-top:3px solid #d4dce7}.metric.loc-rynek{border-top-color:#1765d2;background:white}.metric.loc-hala{border-top-color:#e48616;background:white}.metric.loc-tsr{border-top-color:#15945a;background:white}.metric.loc-other{border-top-color:#758299;background:white}.metric>strong{display:block;font-size:34px;letter-spacing:-1px;margin-top:12px;font-weight:650}.metric>strong small{font-size:20px;font-weight:400;letter-spacing:0}.metric p{font-size:11px;margin:5px 0}.metric>button{display:block;margin-top:16px;width:100%}.dashboard-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.person-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f2f6}.person-row small{display:block;margin-top:4px;font-size:11px}.task-link{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin:12px 0;background:#fafbfd;border:1px solid #eef1f5;min-height:56px;font-weight:500;font-size:12px}.task-link>strong{font-size:21px;color:#1765d2;min-width:26px}.task-link>span{margin-left:auto}.empty-state{text-align:center;padding:35px 20px;color:var(--muted)}.empty-state>span{font-size:34px;color:#a5b5cd}.empty-state p{font-size:12px}.info-panel{background:#edf3fc;border:1px solid #dee8f6;border-radius:12px;padding:17px 20px;font-size:12px;margin:20px 0}.info-panel p:last-child{margin-bottom:0}.success-text{color:#15945a}.warning-text{color:#aa630b}.coverage-list{max-height:260px;overflow:auto;font-size:12px}.coverage-list p{border-bottom:1px solid var(--line);padding:8px 0}.coverage-details{background:white;border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin:20px 0}.coverage-details summary{font-weight:600;cursor:pointer}.schedule-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#edf3fc;border:1px solid #dbe7fa;border-radius:14px;margin:20px 0}.schedule-banner p{margin:5px 0 0;color:#6b7e9a;font-size:12px}.location-badge{font-size:10px;font-weight:600;border-radius:6px;padding:4px 9px;display:inline-block}.location-badge.loc-rynek{background:#edf4ff;color:#1765d2}.location-badge.loc-hala{background:#fff3e4;color:#bb6c0c}.location-badge.loc-tsr{background:#e8f7ef;color:#15854f}.location-badge.loc-other{background:#eff1f5;color:#758299}.location-legend{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.draft-key{font-size:11px;color:#8554d4;padding:4px 9px}.team-grid{max-height:610px;margin-bottom:12px}.team-grid table{width:max-content;min-width:100%;table-layout:fixed}.team-grid th,.team-grid td{padding:6px;border-right:1px solid #eef1f5;min-width:97px;text-align:center}.team-grid thead th{position:sticky;top:0;z-index:2;height:65px;font-size:13px}.team-grid th:first-child{position:sticky;left:0;min-width:190px;max-width:230px;text-align:left;padding:14px;background:#fff;z-index:1}.team-grid thead th:first-child{z-index:3;background:#fafbfd}.team-grid td{height:106px}.team-shift{border:0;border-radius:8px;display:block;width:100%;min-height:80px;padding:8px 6px;font-size:11px;box-shadow:none!important;background:transparent;font-weight:500}.team-shift strong{font-size:11px;color:inherit;white-space:nowrap}.team-shift small{font-size:9px;color:inherit}.team-shift.loc-rynek{background:#edf4ff;color:#1765d2}.team-shift.loc-hala{background:#fff2df;color:#b56c0c}.team-shift.loc-tsr{background:#eaf6ef;color:#15854f}.team-shift.loc-other{background:#eff1f5;color:#758299}.team-shift.is-draft{outline:1px dashed #a68aca;outline-offset:-1px}.draft-dot{color:#8554d4!important}.add-mark{color:#c4cfdd;font-weight:400;font-size:20px}.holiday-cell{background:#fff6f4!important}.holiday-tag{display:block;color:#c66755;font-size:8px;letter-spacing:.3px}.today-cell{box-shadow:inset 0 2px #1765d2}.check-label{display:flex;align-items:center;gap:9px;font-weight:400;margin:12px 0}.check-label input{width:17px;min-height:17px;height:17px;accent-color:#1765d2}fieldset{border:1px solid var(--line);border-radius:10px;padding:12px 18px}dialog{font-family:inherit;border:1px solid var(--line);border-radius:18px;box-shadow:0 25px 100px #17243a25;padding:28px;max-height:90vh;overflow:auto;max-width:650px;width:calc(100% - 32px)}dialog::backdrop{background:#17243a55;backdrop-filter:blur(3px)}dialog h2{font-size:23px;letter-spacing:-.5px}#editForm>label{margin:16px 0}#editForm input,#editForm select{width:100%}#editForm .check-label input{width:17px}.profile-read{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.profile-read dt{color:var(--muted)}.profile-read dd{margin:0}.unread{border-left:3px solid #1765d2;padding-left:15px}#notificationCount,#requestCount{background:#e9f0fb;color:#1765d2;border-radius:5px;padding:0 5px;font-size:10px}#notificationCount:empty,#requestCount:empty{display:none}#employeeNav{padding:5px;background:white;border:1px solid var(--line);border-radius:12px;gap:6px}#employeeNav button{border:0;color:var(--muted);background:white}#employeeNav button.selected{background:#edf3fc;color:#1765d2}.next-shift{background:#edf3fc!important;border-color:#dbe7fa!important}.calendar-day{border-radius:10px}.login{margin:55px auto;max-width:450px;padding:32px}.login h1{font-size:33px}.login p{font-size:13px}footer{font-size:10px;color:#9aa5b5;border:0;padding:15px 30px}body[data-role=admin] footer{margin-left:236px}#notice{background:#17243a;color:white;border:0;border-radius:12px;box-shadow:0 10px 35px #17243a25;font-size:13px}.password-toggle{min-height:34px}.password-field input{width:100%}.request-status{font-size:10px}.request-card{padding:22px}.employee-details{max-width:760px}.summary{gap:18px}.summary>div{background:white;border:1px solid var(--line);border-radius:14px;padding:20px}.summary strong{color:var(--ink);font-size:28px}.summary span{color:var(--muted);font-size:12px}[hidden]{display:none!important}
@media(min-width:1600px){body[data-role=admin] main{padding-left:45px;padding-right:45px}}@media(max-width:1150px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}body[data-role=admin] main{padding:24px;margin-left:205px}body[data-role=admin] #nav{width:205px}body[data-role=admin] footer{margin-left:205px}.brand span{display:none}}@media(max-width:760px){header{height:64px;padding:0 16px;gap:10px}header #today{display:none}.brand{font-size:22px;margin-right:auto}header button{font-size:10px;padding:6px 9px;min-height:34px}body[data-role=admin] #nav{position:sticky;top:0;width:auto;height:auto;flex-direction:row;overflow-x:auto;padding:9px 12px;border:0;border-bottom:1px solid var(--line);gap:5px;margin:-20px -16px 24px}#nav .nav-caption,#nav .nav-foot{display:none}#nav button{white-space:nowrap;gap:5px;padding:9px 12px;font-size:11px}#nav .nav-icon{font-size:15px;width:17px}body[data-role=admin] main,main{padding:20px 16px 40px;margin:0}body[data-role=admin] footer{margin:0}.heading{align-items:flex-start;margin-bottom:14px}.heading>button{font-size:11px}h1{font-size:25px}h2{font-size:18px}.card{padding:18px;border-radius:13px}.table-wrap{padding:0}.metric-grid{gap:10px}.metric{padding:15px}.metric>strong{font-size:29px}.metric>strong small{font-size:17px}.metric p{font-size:10px}.schedule-banner{padding:15px;display:block}.schedule-banner button{margin-top:13px;width:100%}.toolbar{gap:10px}.toolbar label{min-width:130px;flex:1}.team-grid th:first-child{min-width:130px;max-width:140px;font-size:10px}.team-grid th,.team-grid td{min-width:90px}#employeeNav{overflow:auto;display:flex;flex-wrap:nowrap}#employeeNav button{white-space:nowrap;padding:10px 12px;font-size:11px}.employee-details{display:block}dialog{padding:22px}.login{margin:25px auto}.person-row small{font-size:10px}.calendar-grid{gap:4px}.profile-read{grid-template-columns:1fr}.profile-read dd{margin-bottom:10px}}
@media print{header,#nav,footer,#notice,dialog,.toolbar,.schedule-banner button,.coverage-details,.schedule-details-title,#planRange,#schedule>.table-wrap:not(.team-grid),#schedule>h2,#adminAbsences,#adminHolidays,#lockMonth{display:none!important}body,main,body[data-role=admin] main{margin:0!important;padding:0!important;background:white!important}button{border:0!important;box-shadow:none!important}.card{box-shadow:none!important}.team-grid{overflow:visible;max-height:none}.team-grid table{width:100%;font-size:7px}.team-grid td,.team-grid th{min-width:0;padding:2px}.team-grid th:first-child{min-width:90px;max-width:100px}.team-shift{padding:2px;min-height:55px}.team-shift strong{font-size:7px}.team-shift small{font-size:6px}.team-grid td{height:60px}.team-grid thead th,.team-grid th:first-child{position:static}.team-grid .add-mark{display:none}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:A3 landscape;margin:10mm}}

body[data-role=terminal] .clock-actions button{min-height:72px;font-size:23px}body[data-role=terminal] #result{font-size:21px;font-weight:600}body[data-role=terminal] #location{font-size:34px}.team-grid th{text-transform:none}.schedule-banner strong{font-weight:600}
.weekly-summary>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eef1f5;font-size:11px}.weekly-summary>div:last-child{border:0}.weekly-summary>div>span{text-align:right}.weekly-summary small{display:block;font-size:10px}.weekly-day{display:grid;grid-template-columns:1.4fr 1fr 1fr .75fr;gap:10px;margin:12px 0;padding:10px 12px 14px}.weekly-day legend{font-size:13px;font-weight:600;padding:0 5px}.weekly-day label{min-width:0}.weekly-day select,.weekly-day input{min-width:0;padding:9px 6px}.weekly-day input:disabled{background:#f3f5f8;color:#9aa5b5}.weekly-day label{margin:0!important}@media(max-width:560px){.weekly-day{grid-template-columns:1fr 1fr}.weekly-summary>div{font-size:10px}#locationSettings{grid-template-columns:1fr}}
.month-switch{display:flex;align-items:flex-end;gap:7px}.month-switch button{font-size:21px;min-width:43px;padding:5px 12px}.month-switch label{min-width:165px}.team-grid .sunday-cell,.calendar-day.is-sunday{background:#fff3f5}.team-grid thead .sunday-cell{color:#b33b53;border-top:3px solid #d47386}.team-grid .limited-cell,.calendar-day.is-trade-limited{background:#fffae8}.team-grid thead .limited-cell{border-top:3px solid #dba62d;color:#88610b}.trade-badge{display:block;max-width:112px;white-space:normal;margin:5px auto 0;border-radius:5px;padding:3px 5px;font-size:9px;line-height:1.35;font-weight:600}.trade-closed{color:#a24952;background:#fbe4e8}.trade-trading{color:#267746;background:#e4f3e9}.trade-limited{color:#825900;background:#ffe9a5}.sunday-key,.restriction-key{border-radius:6px;padding:4px 9px;font-size:11px}.sunday-key{background:#fff0f3;color:#b33b53}.restriction-key{background:#fff1c4;color:#825900}.planned-hours{display:block;margin-top:10px;font-size:10px;font-weight:600;color:#426588}.calendar-note{font-size:11px;color:#758299;max-width:1000px;margin:12px 0 22px}.calendar-note a{color:#426588}.team-shift .trade-warning{color:#a52339;background:#fff0f2;border-radius:4px;padding:3px;margin-top:5px;font-weight:600}.calendar-day .trade-badge{margin:5px 0;max-width:none}#teamPeriodTitle{font-size:17px;margin:22px 0 12px}@media print{#schedule>#teamPeriodTitle{display:block!important}.trade-badge{font-size:6px;padding:1px}.calendar-note{font-size:7px}.planned-hours{font-size:7px}}

.personnel-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.personnel-fields label{min-width:0}.contract-summary{display:block;white-space:normal;font-size:11px;margin-top:5px;line-height:1.5}#editor:has(.personnel-fields){width:740px}@media(max-width:560px){.personnel-fields{grid-template-columns:1fr}}

#report td{vertical-align:top}#report td small{display:block;margin-top:4px}#report .period-note{white-space:pre-wrap;min-width:180px;max-width:300px;overflow-wrap:anywhere}.period-clock{min-height:26px}.period-type{display:inline-block;border-radius:6px;padding:3px 7px;background:#edf3fc;color:#285b99;font-size:11px}.period-off{background:#e9f5ef;color:#246646}.period-sunday{background:#fff7f8}.period-holiday{background:#fff6e8}.period-interval{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;border:1px solid var(--line);border-radius:10px;margin:16px 0;padding:16px}.period-interval label:last-child{grid-column:1/-1}#editor:has(.period-interval){width:790px}.period-pagination{justify-content:flex-end}.period-shortcuts{margin-bottom:20px}@media(max-width:600px){.period-interval{grid-template-columns:1fr}}@media print{.period-pagination,.period-shortcuts button{display:none}}

.team-grid .trading-cell,.calendar-day.is-trading-sunday{background:#f1f3f5}.team-grid thead .trading-cell{color:#59616d;border-top:3px solid #a5acb5}.trade-trading,.trading-key{background:#e7eaee;color:#505966}.trading-key{border-radius:6px;padding:4px 9px;font-size:11px}.calendar-day.is-trading-sunday time{color:#59616d}
.team-grid th,.team-grid td{min-width:82px;padding:3px}.team-grid tbody th:first-child{min-width:140px;max-width:155px;padding:7px 10px}.team-grid td{height:64px}.team-grid .team-shift{min-height:54px;margin:0;padding:4px;font-size:10px;position:relative}.team-shift .draft-dot{position:absolute;right:4px;top:0;margin:0}.team-grid .planned-hours{margin-top:4px;font-size:9px}.w5-counter{display:block;font-size:9px;margin-top:2px}.team-shift.is-default{outline:1px dashed #a9b9ce;outline-offset:-1px;opacity:.85}.default-dot{font-size:8px!important;color:#64758b!important}.rule-day{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:8px 0}.rule-day label{min-width:0}.rule-day input[type=checkbox]{width:17px!important}.rule-day input[type=time]{width:100%;padding:7px}.rule-day legend{font-size:12px;font-weight:600}#defaultHoursInfo{margin:12px 0;padding:10px 15px}#defaultHoursInfo p{margin:3px 0;font-size:11px}@media print{#defaultHoursInfo{display:none}.team-grid td{height:40px}.team-grid .team-shift{min-height:35px}.team-grid tbody th:first-child{min-width:75px;max-width:90px;padding:3px}.team-grid th,.team-grid td{min-width:0}.w5-counter{font-size:6px}}
.team-grid th:first-child,.team-grid tbody th:first-child{min-width:66px;width:66px;max-width:90px;padding:4px;text-align:center}.team-grid .worker-initials{display:inline-flex;align-items:center;justify-content:center;min-width:38px;max-width:82px;min-height:36px;padding:5px 6px;border:1px solid #dbe4f0;background:#f0f5fc;color:#294b77;font-weight:700;font-size:12px;letter-spacing:.5px;overflow-wrap:anywhere;white-space:normal}.team-grid .worker-initials:focus-visible{outline:2px solid #1765d2;outline-offset:2px}.team-grid th abbr{text-decoration:none}.team-grid td{height:62px}.worker-tooltip{position:fixed;z-index:1000;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:17px 19px;border:1px solid #dae3ef;border-radius:12px;background:#fff;color:#17243a;box-shadow:0 12px 35px #17243a29;font-size:12px}.worker-tooltip>strong{font-size:15px}.worker-tooltip p{margin:3px 0 12px;color:#758299}.worker-tooltip dl{display:grid;grid-template-columns:1.3fr 1fr;gap:8px 12px;margin:0}.worker-tooltip dt{color:#758299}.worker-tooltip dd{margin:0;text-align:right;font-weight:600}@media print{.worker-tooltip{display:none!important}.team-grid th:first-child,.team-grid tbody th:first-child{width:28px;min-width:28px;max-width:40px}.team-grid .worker-initials{min-width:0;min-height:20px;padding:1px;font-size:8px}.team-grid td{height:40px}}
.order-group{border:1px solid #e1e7ef;border-radius:10px;margin:14px 0;overflow:hidden}.order-location{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:#f5f7fb}.order-group ol{margin:0;padding:4px 14px 7px 36px}.order-group li{padding:6px 0;border-bottom:1px solid #edf0f5;position:relative}.order-group li>span:last-child{float:right}.order-group button{min-height:28px;padding:2px 10px;margin:0 2px;font-size:15px}.order-group li:after{content:'';display:block;clear:both}.team-grid .team-location-row th,.team-grid .team-location-row td{height:23px;min-height:23px;padding:2px 5px;border-top:2px solid #dce4ef;background:#edf1f7;font-size:10px}.team-grid .team-location-row.loc-rynek th,.team-grid .team-location-row.loc-rynek td{background:#edf4ff;border-top-color:#a9c9f5}.team-grid .team-location-row.loc-hala th,.team-grid .team-location-row.loc-hala td{background:#fff2df;border-top-color:#efc586}.team-grid .team-location-row.loc-tsr th,.team-grid .team-location-row.loc-tsr td{background:#eaf6ef;border-top-color:#a6d4b7}#editDisplayOrder{margin:0 0 8px}.team-grid .team-location-row th{z-index:1}@media print{.team-grid .team-location-row th,.team-grid .team-location-row td{height:13px;min-height:13px;padding:1px;font-size:7px}}
.team-shift strong.work-code{display:block;font-size:14px;line-height:1.1;letter-spacing:.3px}.team-shift .work-incomplete{color:#98732c}.team-shift .free-code{color:#9b7880;font-size:12px}.work-code-key{display:inline-block;font-size:10px;color:#64758b;padding:4px 7px}.team-shift .work-code+small{margin-top:3px}@media print{.team-shift strong.work-code{font-size:9px}.work-code-key{font-size:7px}}

.team-grid .team-shift.has-pending-request{box-shadow:inset 0 0 0 2px #c33240}.pending-request-label{color:#a91f2c;font-weight:700}.pending-key{border:2px solid #c33240;border-radius:5px;padding:3px 7px;color:#a91f2c}.pending-request-info{border:2px solid #c33240;border-radius:10px;padding:12px;background:#fff6f6;color:#84212a}

.delegation-label{color:#604098;font-weight:700}
.event-dialog{width:min(820px,94vw);max-height:92vh;overflow:auto}.event-day{padding:10px;border:1px solid #dbe2e9;border-radius:8px;margin:8px 0}.event-day small{display:block;margin:4px 0}.event-w5{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.event-w5[hidden]{display:none}#eventDays{max-height:360px;overflow:auto}#eventHistoryRows{max-height:220px;overflow:auto}
.event-w5 .w5-help{grid-column:1/-1}

.event-sticky-header{position:sticky;top:-1px;background:white;z-index:5;padding:12px 0;flex-wrap:wrap}.event-header-actions{display:flex;gap:8px;align-items:center}.event-sticky-header h2{margin:0;flex:1}#eventTopStatus{flex-basis:100%;margin:0;color:#a91f2c}#eventTopStatus:empty{display:none}.event-source{display:flex;gap:12px;flex-wrap:wrap}.event-source label{display:flex;align-items:center;gap:8px;border:1px solid #ccd7e5;border-radius:8px;padding:10px 18px;cursor:pointer}.event-source label:has(input:checked){background:#eaf2ff;border-color:#1762da}.event-source input{width:18px;height:18px;margin:0}
/* Compact monthly schedule: routine shifts recede; exceptions remain explicit. */
.team-grid{max-height:65vh;isolation:isolate;scrollbar-gutter:stable}.team-grid table{border-collapse:separate;border-spacing:0}.team-grid thead th{position:sticky;top:0;z-index:3;background:#f8fafc;padding:7px 3px;min-width:88px;text-align:center}.team-grid th:first-child{position:sticky;left:0;z-index:2;background:#fff;border-right:1px solid #dce3ed}.team-grid thead th:first-child{z-index:4;background:#f8fafc}.team-grid td{height:62px;padding:3px;border-right:1px solid #f0f2f6}.team-grid .team-shift{width:100%;min-height:54px;border:0;border-radius:6px;background:var(--location-bg,#f8fafc);border-top:2px solid var(--location-accent,transparent);padding:5px 4px;opacity:1;outline:none}.team-grid .team-shift strong.work-code{color:#536780;font-size:12px;font-weight:500}.team-grid .shift-hours{font-size:10px;color:#607086;white-space:nowrap;margin-top:2px}.team-grid .team-shift.day-free{background:#eceff4;border-top-color:#a6b0bd}.team-grid .team-shift.day-leave{background:#e9e3f6;border-top-color:#9779bc}.team-grid .team-shift.day-sick{background:#fbe5e9;border-top-color:#ca788b}.team-grid .absence-code{display:block;font-size:16px;font-weight:750;letter-spacing:.4px;color:#42526a}.team-grid .day-leave .absence-code{color:#65488d}.team-grid .day-sick .absence-code{color:#963c55}.team-grid .day-delegation{border-top-color:#6674ae;background:#eef0fa}.team-grid .day-hourly{border-left:4px solid #e99a27}.team-grid .shift-hourly{color:#87530a;background:#fff0cd;padding:2px 3px;border-radius:3px;font-size:10px;font-weight:700;white-space:nowrap}.team-grid .shift-replacement{font-weight:750;color:var(--location-accent);font-size:10px;margin-top:2px}.team-grid .team-shift.has-pending-request{box-shadow:inset 0 0 0 2px #c33240}.team-grid .pending-request-label{position:absolute;right:2px;top:2px;background:#c33240;color:white;border-radius:50%;width:13px;height:13px;font-size:10px;line-height:13px}.team-grid .draft-dot{position:absolute;bottom:1px;right:3px;top:auto!important;font-size:7px;color:#697990}.team-grid .team-shift:hover{filter:brightness(.96);outline:1px solid #a6b5c8}.team-grid .team-shift:focus-visible{outline:3px solid #1765d2;outline-offset:1px}.team-grid .team-location-row th,.team-grid .team-location-row td{height:19px;min-height:19px;padding:1px 4px;border-top-width:2px}.team-grid .free-code{font-size:14px;color:#8993a3}.team-grid .trade-badge{font-size:8px;padding:2px;margin-top:3px}.schedule-state-legend{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px;font-size:11px}.schedule-state-legend span{padding:3px 8px;border-radius:5px}.key-free{background:#eceff4;color:#42526a}.key-leave{background:#e9e3f6;color:#65488d}.key-sick{background:#fbe5e9;color:#963c55}.key-hourly{background:#fff0cd;color:#87530a;border-left:3px solid #e99a27}
@media print{.team-grid{max-height:none;overflow:visible}.team-grid thead th,.team-grid th:first-child{position:static}.team-grid thead th{min-width:0;padding:2px}.team-grid td{height:38px;padding:1px}.team-grid .team-shift{min-height:34px;padding:2px}.team-grid .absence-code{font-size:10px}.team-grid .team-shift strong.work-code{font-size:8px}.team-grid .shift-hours,.team-grid .shift-hourly,.team-grid .shift-replacement{font-size:6px}.schedule-state-legend{font-size:8px}}
