.shift-template-editor{padding:24px;min-width:0}.shift-template-editor header h2{margin:0 0 8px;color:var(--text)}.shift-template-controls{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;gap:18px;align-items:end;margin:22px 0}.shift-template-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px;background:var(--blue-soft);border:1px solid var(--line);border-radius:10px}.shift-template-tools>.input{width:190px;min-width:120px}.shift-template-sheet{max-width:100%;max-height:700px;overflow:auto;border:1px solid var(--line);border-radius:10px;margin-top:18px;isolation:isolate;scrollbar-gutter:stable}.shift-template-sheet table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;margin:0;background:var(--card,#fff)}.shift-template-sheet .row-number{width:40px}.shift-template-sheet .spacer-column{width:36px}.shift-template-sheet .id-column{width:100px}.shift-template-sheet .name-column{width:220px}.shift-template-sheet .date-column{width:155px}.shift-template-sheet th,.shift-template-sheet td{border:0;border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);padding:0;min-width:0;white-space:normal;box-sizing:border-box;color:var(--text)}.shift-template-sheet th{background:var(--blue-soft);text-align:center;font-size:12px;font-weight:750}.shift-template-sheet .sheet-title{height:48px;font-size:19px;letter-spacing:.3px}.shift-template-sheet .sheet-letters th{height:28px;font-size:12px;font-weight:500}.shift-template-sheet .sheet-headers th{height:64px;padding:9px 4px}.shift-template-sheet .sheet-headers span,.shift-template-sheet .sheet-headers strong{display:block;line-height:1.6}.shift-template-sheet tbody td{height:66px;background:var(--card,#fff)}.shift-template-sheet tr>:nth-child(1){position:sticky;left:0;z-index:3;width:40px;background:var(--blue-soft)}.shift-template-sheet tr>:nth-child(2):not([colspan]){position:sticky;left:40px;z-index:3;width:36px;background:var(--card,#fff);text-align:center}.shift-template-sheet tr>:nth-child(3){position:sticky;left:76px;z-index:3;width:100px;background:var(--card,#fff);padding:8px;font-size:12px}.shift-template-sheet tr>:nth-child(4){position:sticky;left:176px;z-index:3;width:220px;background:var(--card,#fff);border-inline-end:2px solid #91a9c4;padding:8px;font-size:12px;overflow-wrap:anywhere}.shift-template-sheet thead{position:sticky;top:0;z-index:5}.shift-template-sheet thead tr>:nth-child(-n+4){background:var(--blue-soft)}.shift-template-sheet textarea{display:block;resize:none;width:100%;min-width:0;height:66px;border:0;border-radius:0;outline-offset:-2px;background:transparent;color:inherit;padding:12px 8px;text-align:center;font-family:inherit;font-size:12px;line-height:1.6;box-sizing:border-box}.shift-template-sheet textarea:focus{outline:2px solid #3478ed;position:relative;z-index:1}.shift-template-sheet td.selected{background:#e5efff}.shift-template-sheet td.off{background:#fff4cc}.shift-template-sheet td.leave{background:#ede9ff}.shift-template-sheet td.night{background:#e5e8ff}.shift-template-sheet td.past{background:#edf0f4;color:#69768a}.shift-template-sheet td.invalid{box-shadow:inset 0 0 0 2px #db334b;background:#ffe5ea}.shift-template-sheet td>button{border:0;background:transparent;color:var(--muted);font-size:19px;cursor:pointer}.shift-template-legend{display:flex;gap:15px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--muted);padding:18px 0}.shift-template-legend>span{padding:5px 8px;background:var(--blue-soft);border-radius:5px}.shift-template-footer{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px;font-size:12px}.shift-template-footer .btn-row{align-items:center}.shift-template-candidates{display:grid;gap:8px;max-height:440px;overflow:auto;margin:16px 0}.shift-template-candidates>label{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px}.shift-template-candidates small{display:block;color:var(--muted);margin-top:4px}.shift-template-picker>.btn-row{margin-top:16px}.theme-dark .shift-template-sheet td.selected{background:#254875}.theme-dark .shift-template-sheet td.off{background:#56471d}.theme-dark .shift-template-sheet td.leave{background:#3c345c}.theme-dark .shift-template-sheet td.night{background:#303b61}.theme-dark .shift-template-sheet td.past{background:#253243;color:#aab6c8}.theme-dark .shift-template-sheet td.invalid{background:#612c3c}@media(max-width:900px){.shift-template-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-template-editor{padding:16px}.shift-template-footer{align-items:stretch}.shift-template-sheet .name-column{width:140px}.shift-template-sheet tr>:nth-child(4){width:140px}.shift-template-sheet .id-column{width:80px}.shift-template-sheet tr>:nth-child(3){width:80px}.shift-template-sheet tr>:nth-child(4){left:156px}}@media(max-width:650px){.shift-template-controls{grid-template-columns:1fr}.shift-template-sheet tr>:nth-child(-n+4){position:static}.shift-template-sheet .name-column{width:160px}.shift-template-editor{padding:12px}.shift-template-tools{padding:10px;gap:8px}.shift-template-footer .btn-row{flex-wrap:wrap}}
.shift-template-sheet .sheet-title{text-align:left;padding:10px 18px}.shift-template-sheet .sheet-title>span{position:sticky;left:410px;display:inline-block;max-width:calc(100vw - 450px);white-space:nowrap;font-size:17px}.shift-template-sheet textarea{font-size:13px}@media(max-width:650px){.shift-template-sheet .sheet-title>span{left:18px;max-width:none;font-size:15px}}
