/* MINIMUM WASTE: rozpis směn — small-team monthly table */
.roster-page{max-width:100%}
.roster-top-actions{display:flex;gap:9px;flex-wrap:wrap}
.roster-top-actions .btn{white-space:nowrap}
.roster-month-nav{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0 18px}
.roster-month-select{display:flex;flex-direction:column;gap:4px}
.roster-month-select span{font-size:10px;text-transform:uppercase;color:var(--secondary);font-weight:800;letter-spacing:.07em}
.roster-month-select input{min-height:41px;width:185px}
.roster-month-nav>.btn{min-height:41px}
.roster-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:18px}
.roster-stat{padding:15px;background:#fff;border:1px solid var(--edge);border-radius:11px;min-width:0}
.roster-stat span{display:block;color:var(--secondary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-stat strong{display:block;font-size:25px;font-weight:850;margin:6px 0;color:var(--ink);font-variant-numeric:tabular-nums}
.roster-stat small{color:var(--secondary);font-size:10px}
.roster-stat-total{background:#eff3ff;border-color:#d9e2ff}
.roster-stat-total strong{color:#2447c6}
.roster-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--edge);border-radius:13px;background:#fff}
.roster-table{border-collapse:separate;border-spacing:0;min-width:750px;width:100%;table-layout:fixed;font-size:12px}
.roster-table th,.roster-table td{border-bottom:1px solid #e7ebf1;border-right:1px solid #e7ebf1;padding:0;text-align:left;vertical-align:middle}
.roster-table th:last-child,.roster-table td:last-child{border-right:0}
.roster-table thead th{position:sticky;top:0;z-index:2;background:#f2f5fa;padding:13px 11px;color:#3c4a60;font-weight:800;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.roster-table thead th:first-child{width:25%}
.roster-table thead th:last-child{width:12%}
.roster-table .roster-date{padding:7px 11px;color:#2b384d;min-width:135px;font-size:12px;font-weight:700}
.roster-date strong{white-space:nowrap}
.roster-holiday-label{display:block;color:#946225;font-weight:600;font-size:10px;margin-top:3px;line-height:1.35}
.roster-table .roster-weekend td,.roster-table .roster-weekend .roster-date{background:#f8f9fc}
.roster-table .roster-holiday td,.roster-table .roster-holiday .roster-date{background:#fff6e9}
.roster-cell{width:100%;border:0;background:transparent;min-height:45px;padding:7px 11px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;color:#314057}
.roster-cell:hover,.roster-cell:focus-visible{background:#e8efff!important;outline:2px solid #6b8bdc;outline-offset:-2px}
.roster-cell.has-shift strong{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.roster-cell.has-shift small{color:#687a91;font-size:10px}
.roster-cell .roster-plus{color:#93a1b4;font-weight:700}
.roster-cell .roster-plus span{font-size:10px}
.roster-daily{padding:8px!important;color:#5e6e83;font-variant-numeric:tabular-nums;text-align:right!important;white-space:nowrap}
.roster-table tfoot th,.roster-table tfoot td{background:#e9effc;padding:13px 10px;color:#26375e;font-size:12px;font-weight:800}
.roster-footnote{font-size:11px;color:var(--secondary);line-height:1.6;margin:14px 2px 0}
.roster-footnote strong{color:#946225}
.roster-modal-shade{position:fixed;inset:0;z-index:40;background:#101b35a1;padding:20px;display:flex;align-items:center;justify-content:center;overflow-y:auto}
.roster-modal-card{width:min(480px,100%);max-height:min(90vh,850px);overflow:auto;background:#fff;border-radius:15px;box-shadow:0 25px 100px #16203f42}
.roster-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 23px;border-bottom:1px solid var(--edge)}
.roster-modal-head h2{font-size:21px;margin:6px 0 0}
.roster-modal-head>.iconbtn{flex:0 0 auto}
.roster-modal-body{padding:21px 23px;display:flex;flex-direction:column;gap:15px}
.roster-modal-body .form-field{min-width:0}
.roster-modal-body .field{width:100%}
.roster-shift-times{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.roster-modal-foot{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:15px 23px;border-top:1px solid var(--edge)}
.roster-modal-foot .danger{margin-right:auto}
.roster-error{padding:9px 12px;border:1px solid #f2b6b6;background:#fff0f0;color:#922;font-size:12px;border-radius:8px}
.roster-error[hidden]{display:none}
.roster-config-title{font-size:13px;margin:12px 0 0;color:#415675}
.roster-settings-dialog{max-height:90vh}
#roster-config-sections{display:flex;flex-direction:column;gap:15px}
@media(max-width:1100px){.roster-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-page .pageheading{gap:15px}}
@media(max-width:760px){
 .roster-stats{gap:8px}.roster-stat{padding:12px}.roster-stat strong{font-size:21px}
 .roster-month-nav{gap:7px}.roster-month-select input{width:164px}
 .roster-top-actions{width:100%}.roster-top-actions .btn{flex:1;font-size:11px}
 .roster-table{min-width:690px}
 .roster-table thead th:first-child{width:23%}
 .roster-cell{padding:6px 8px;min-height:48px}
 .roster-modal-shade{padding:10px 10px calc(10px + env(safe-area-inset-bottom));align-items:center}
 .roster-modal-card{max-height:90dvh}
 .roster-modal-head{padding:15px 17px}.roster-modal-body{padding:17px;gap:12px}
 .roster-modal-foot{padding:12px 17px}.roster-modal-foot .btn{font-size:11px}
}

/* Two one-tap shift options; keep time inputs editable for exceptions. */
.roster-presets{display:flex;flex-direction:column;gap:9px}
.roster-preset-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.roster-preset{min-height:53px;border:2px solid #cfdaea;border-radius:11px;background:#f6f8fc;color:#365071;font-weight:850;font-size:16px;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation}
.roster-preset:hover,.roster-preset:focus-visible{border-color:#627aca;background:#eff3ff}
.roster-preset.active,.roster-preset[aria-pressed="true"]{border-color:#2447c6;background:#e8efff;color:#2447c6;box-shadow:inset 0 0 0 1px #2447c6}
.roster-preset:focus-visible{outline:3px solid #a5b6f1;outline-offset:2px}
@media(max-width:380px){.roster-preset{font-size:14px;padding:8px 5px}}
