
:root{--bg:#f5f7f8;--text:#243940;--sub:#62757b;--line:#d7e1e3;--brand:#07897f;--brand-light:#e4f6f1;--nav:#22363f;--red:#a73e3d;font-family:system-ui,-apple-system,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-size:14px;line-height:1.55}input,textarea,button,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #73d8ca;outline-offset:2px}
[hidden]{display:none!important}.app{min-height:100dvh;display:flex}.side{width:59px;flex-shrink:0;background:var(--nav);color:white;display:flex;flex-direction:column;align-items:center;padding:16px 8px;gap:12px}.mark{width:40px;height:40px;display:grid;place-items:center;background:white;color:var(--brand);font-weight:900;font-size:22px;border-radius:10px}.side-label{writing-mode:vertical-rl;font-size:12px;letter-spacing:.15em;color:#9cbdb9;white-space:nowrap}.content{min-width:0;flex:1}.top{height:55px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 18px;gap:12px}.brand{font-weight:800;font-size:18px;letter-spacing:.03em}.brand span{color:var(--brand)}.who{font-size:12px;color:var(--sub)}.main{margin:0 auto;padding:17px 16px 46px;max-width:1560px}h1{font-size:21px;margin:2px 0 6px}.hint{font-size:12px;color:var(--sub)}p{margin:5px 0 13px}.stack{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.push{margin-left:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 13px;border:1px solid #c5d4d7;color:#24434b;background:white;border-radius:8px;font-weight:700;text-decoration:none}.button:hover{background:#f0f8f6}.button.primary{background:var(--brand);color:white;border-color:var(--brand)}.button.primary:hover{background:#08776e}.button.danger{border-color:#e8cecb;color:var(--red)}.button.quiet{border:0;background:none}.button.sm{padding:5px 8px;min-height:31px;font-size:12px}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 1px #1d333307}.toolbar{padding:11px 14px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:10px}.period-value{font-size:17px;font-weight:800}.summary{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.sum{padding:9px 13px;border-right:1px solid #edf1f2}.sum:last-child{border:0}.sum small{display:block;color:var(--sub);font-size:11px}.sum strong{font-size:20px;font-variant-numeric:tabular-nums}.table-wrap{overflow:auto;max-height:calc(100dvh - 300px);min-height:220px}.sheet{width:100%;min-width:1210px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px}.sheet th{background:#eef4f4;color:#40545b;text-align:left;padding:9px 6px;position:sticky;top:0;border-bottom:1px solid #d1dfdf;z-index:1}.sheet th:first-child{position:sticky;left:0;z-index:4;width:140px}.sheet td{padding:6px;border-bottom:1px solid #edf1f2;vertical-align:middle;height:38px;overflow-wrap:anywhere}.sheet td:first-child{position:sticky;left:0;background:white;z-index:2}.sheet tr:hover td{background:#f3faf8}.sheet tr:hover td:first-child{background:#f3faf8}.sheet tr.selected td,.sheet tr.selected td:first-child{background:#ddf3ee}.sheet td.note{color:#61777e}.sheet .amount{text-align:right;font-variant-numeric:tabular-nums}.sheet .day{user-select:none;white-space:nowrap;font-weight:700;cursor:pointer}.sheet .day small{color:var(--sub);font-weight:400}.sheet .weekend{color:#b34a48}.sheet .edit{border:1px solid transparent;background:transparent;display:block;width:100%;height:auto;min-height:26px;text-align:left;padding:4px;border-radius:5px;color:inherit;overflow-wrap:anywhere}.sheet .edit:hover,.sheet .edit:focus-visible{border-color:#8ebfb8;background:white}.sheet .select{margin-right:7px}.footnote{padding:11px 14px;font-size:12px;color:var(--sub);border-top:1px solid var(--line)}.notice{margin:8px 0 12px;padding:10px 12px;background:#eef7f5;border:1px solid #cfe7e0;border-radius:8px;color:#335f59;font-size:12px}.login{max-width:410px;margin:7vh auto;padding:28px}.login h1{margin-top:0}.field{margin-bottom:12px;min-width:0}.field label{display:block;font-weight:700;font-size:12px;margin-bottom:5px;color:#445a62}.field input,.field textarea,.field select{display:block;width:100%;min-height:39px;border:1px solid #c4d3d8;border-radius:7px;padding:8px 10px;background:white}.field textarea{min-height:84px;resize:vertical;white-space:pre-wrap}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field.wide{grid-column:1/-1}.mod{border:1px solid var(--line);border-radius:12px;padding:0;width:min(670px,calc(100% - 24px));max-height:92dvh;color:var(--text);box-shadow:0 16px 50px #0b293b35}.mod::backdrop{background:#132a377a}.mod header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 17px;border-bottom:1px solid var(--line)}.mod header strong{font-size:17px}.mod section{padding:16px;max-height:67dvh;overflow:auto}.mod footer{padding:12px 17px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.link{border:0;background:transparent;color:var(--brand);text-decoration:underline}.error{color:#a43836;font-weight:700}.good{color:#138274;font-weight:700}.toast{position:fixed;z-index:200;bottom:24px;left:50%;transform:translateX(-50%);padding:11px 16px;background:#243940;color:white;border-radius:8px;box-shadow:0 10px 25px #1236;font-size:13px}.pop{position:fixed;z-index:100;min-width:175px;background:white;border:1px solid #c7d9d8;border-radius:8px;box-shadow:0 12px 35px #1233;padding:6px}.pop button{display:block;width:100%;padding:8px 10px;text-align:left;border:0;background:white}.pop button:hover{background:var(--brand-light)}.sep{border-top:1px solid var(--line);margin:12px 0}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.row-spread{justify-content:space-between}.admin-create{padding:16px}.admin-list{margin-top:12px;padding:12px;overflow-x:auto}.return-button{margin-top:12px}.route-list-row{padding:8px;border-bottom:1px solid #e3eeee}.help{font-size:12px;color:var(--sub)}.mini-table{width:100%;border-collapse:collapse;font-size:12px}.mini-table th,.mini-table td{border-bottom:1px solid var(--line);padding:8px;text-align:left}
@media(max-width:760px){.side{display:none}.top{height:52px;padding-inline:12px}.main{padding:12px 9px 85px}.toolbar{gap:6px;padding:9px}.summary{grid-template-columns:repeat(2,1fr)}.sum{border-bottom:1px solid var(--line)}.table-wrap{max-height:calc(100dvh - 355px)}.sheet{min-width:950px}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.mod{width:calc(100% - 12px);max-height:96dvh}.mod section{max-height:77dvh}.login{margin:6vh 9px}.who{max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.push{margin-left:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Fixed column widths remain stylesheet-defined to comply with CSP. */
.sheet th:nth-child(2){width:135px}.sheet th:nth-child(3){width:145px}
.sheet th:nth-child(4),.sheet th:nth-child(5),.sheet th:nth-child(7){width:65px}
.sheet th:nth-child(6),.sheet th:nth-child(9),.sheet th:nth-child(10){width:70px}
.sheet th:nth-child(8){width:160px}.sheet th:nth-child(11){width:170px}
.sheet th:nth-child(12){width:60px}

.weekday-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:9px;margin:13px 0 18px}.weekday-options label{display:flex;align-items:center;gap:8px;padding:10px 9px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer;min-height:44px}.weekday-options label:has(input:checked){background:var(--brand-light);border-color:var(--brand)}.weekday-options input{width:18px;height:18px}.route-list-row span{flex:1;overflow-wrap:anywhere;min-width:130px}.mod .row{margin-top:8px}

.pattern-check-label{display:flex;align-items:center;gap:7px;min-width:180px;flex:1;overflow-wrap:anywhere}.pattern-check-label input{width:17px;height:17px;flex-shrink:0}#applyCheckedPatterns{margin-top:12px;min-height:44px}

.sheet .holiday-label{display:block;max-width:125px;white-space:normal;font-size:11px;line-height:1.25;color:#b34a48;font-weight:700;overflow-wrap:anywhere}
