:root{--ink: #1a1f2b;--ink-soft: #5a6270;--accent: #2f5c53;--surface: #ffffff;--bg: #f3f5f4;--border: #e2e6e4;font-family:Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}.loading-screen,.login-screen{height:100vh;display:flex;align-items:center;justify-content:center}.login-card{background:var(--surface);padding:3rem;border-radius:12px;border:1px solid var(--border);text-align:center;max-width:360px}.login-card h1{margin-top:0;font-size:1.4rem}.login-card p{color:var(--ink-soft);margin-bottom:2rem}.login-button{display:inline-block;background:var(--accent);color:#fff;padding:.7rem 1.4rem;border-radius:8px;text-decoration:none;font-weight:600}.dashboard{max-width:2200px;margin:0 auto;padding:2rem 1.5rem 4rem}.dashboard-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-bottom:.25rem}.dashboard-header h1{font-size:3.375rem;margin:0;text-align:center}.logo{height:135px;width:auto;justify-self:start}.header-right{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.user-name{color:var(--ink-soft);font-size:.9rem}.header-right button{border:1px solid var(--border);background:var(--surface);padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.9rem}.logout-button{color:var(--ink-soft)}.fetched-note{color:var(--ink-soft);font-size:.85rem;margin:.25rem 0 2rem}.error-banner{background:#fdecea;color:#92221b;padding:.9rem 1.1rem;border-radius:8px;margin-bottom:1.5rem}.file-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.file-section h2{margin-top:0;font-size:1.1rem}.sheet-block h3{font-size:.95rem;color:var(--ink-soft);margin-bottom:.5rem}.table-wrapper{overflow-x:auto;overflow-y:auto;max-height:24rem}table{border-collapse:collapse;width:100%;font-size:.9rem}table.table-compact{width:auto;min-width:0}table.table-compact th,table.table-compact td{width:1%;white-space:nowrap;padding-left:1.25rem;padding-right:1.25rem}table.table-compact th:first-child,table.table-compact td:first-child{padding-left:.75rem}table.table-compact th:last-child,table.table-compact td:last-child{width:auto}th,td{text-align:left;padding:.5rem .75rem;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--ink-soft);font-weight:600;background:var(--bg);position:sticky;top:0;z-index:1}tfoot td{border-bottom:none;border-top:2px solid var(--border)}.filter-row th{top:2.25rem;padding:.35rem .5rem;background:var(--surface)}.column-filter-input{width:100%;border:1px solid var(--border);border-radius:6px;padding:.3rem .5rem;font-size:.8rem;font-weight:400;color:var(--ink);font-family:inherit}.charge-check-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.charge-check-header h2{margin:0}.charge-check-header button{border:1px solid var(--border);background:var(--surface);padding:.4rem .9rem;border-radius:8px;cursor:pointer;font-size:.85rem}.charge-check-summary{color:var(--ink-soft);margin:0 0 .75rem}.charge-check-toggle{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:var(--ink-soft);margin-bottom:1rem;cursor:pointer}.status-ok{color:#1e7a3d;font-weight:600}.status-bad{color:#92221b;font-weight:600}.tab-bar{display:flex;gap:.5rem;border-bottom:1px solid var(--border);margin-bottom:1.5rem;padding-bottom:.6rem}.tab-button{border:1px solid transparent;border-radius:6px;background:none;padding:.6rem 1rem;font-size:.9rem;color:var(--ink-soft);cursor:pointer}.tab-button:hover{color:var(--ink)}.tab-button.active{color:var(--accent);font-weight:600;border-color:var(--accent);background:var(--surface)}.summary-tile{display:flex;align-items:center;gap:1.5rem}.summary-count{font-size:3rem;font-weight:700;line-height:1;min-width:4rem;text-align:center}.summary-tile-text p{margin:0 0 .75rem}.summary-tile-text button{border:1px solid var(--border);background:var(--surface);padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.9rem}.payment-plan-form-top-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:1rem;margin-bottom:.25rem}.payment-plan-form-top-row .form-field{width:200px;max-width:100%}.payment-plan-form-top-row>:last-child{margin-left:auto}.payment-plan-form{display:grid;grid-template-columns:repeat(auto-fit,200px);gap:1rem;margin-bottom:1.5rem}.term-column{display:flex;flex-direction:column;gap:.75rem}.term-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}.term-row .form-field-checkbox{width:auto;white-space:nowrap;padding-bottom:.5rem}.form-field{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--ink-soft)}.form-field input:not([type=checkbox]),.form-field select{box-sizing:border-box;height:2.35rem;border:1px solid var(--border);border-radius:6px;padding:.5rem .6rem;font-size:.9rem;color:var(--ink);font-family:inherit}.form-field input:disabled{background:var(--bg);color:var(--ink-soft)}.form-field-checkbox{flex-direction:row;align-items:center;justify-content:flex-start;gap:.5rem}.costume-list-select{border:1px solid #b7bfba;border-radius:6px;padding:.35rem .55rem;font-size:.9rem;font-weight:600;color:var(--ink);font-family:inherit;background:var(--surface)}.costume-list-select option{font-weight:600}.term-dates-editor{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:1rem;margin-bottom:1.5rem;display:flex;flex-direction:column;gap:.5rem}.term-dates-row{display:flex;align-items:center;gap:.5rem}.term-name-input{flex:1;border:1px solid var(--border);border-radius:6px;padding:.4rem .6rem;font-size:.9rem}.term-dates-row input[type=date]{border:1px solid var(--border);border-radius:6px;padding:.4rem .6rem;font-size:.9rem}.optional-sources-list{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.5rem}.optional-source-toggle{font-size:.9rem;color:var(--ink)}.remove-term-button{border:1px solid var(--border);background:var(--surface);padding:.4rem .8rem;border-radius:6px;cursor:pointer;font-size:.85rem;color:#92221b}.user-role{color:var(--ink-soft);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;border:1px solid var(--border);border-radius:999px;padding:.15rem .6rem}.notice-banner{background:#e8f5e9;color:#1b5e20;padding:.9rem 1.1rem;border-radius:8px;margin-bottom:1.5rem}.section-note{color:var(--ink-soft);font-size:.9rem;max-width:60ch;margin:0 0 1.5rem}.users-table select{padding:.35rem .5rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:.9rem}.users-table button{border:1px solid var(--border);background:var(--surface);padding:.35rem .75rem;border-radius:6px;cursor:pointer;font-size:.85rem}.users-table button:disabled{opacity:.5;cursor:not-allowed}.row-inactive{opacity:.55}.badge-you{color:var(--ink-soft);font-size:.85rem}.override-list{list-style:none;margin:0;padding:0;font-size:.85rem}.override-deny{color:#92221b}.override-grant{color:#1b5e20}.invite-form{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.25rem;margin-bottom:2rem}.invite-form h3{margin:0 0 .5rem;font-size:1rem}.invite-form .section-note{margin-bottom:1rem}.invite-fields{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end}.invite-fields label{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:var(--ink-soft)}.invite-fields input,.invite-fields select{padding:.45rem .6rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:.9rem;min-width:16rem}.invite-fields select{min-width:8rem}.invite-fields button{border:1px solid var(--border);background:var(--surface);padding:.5rem 1.25rem;border-radius:6px;cursor:pointer;font-size:.9rem}.invite-fields button:disabled{opacity:.5;cursor:not-allowed}.role-hint{margin:.75rem 0 0;font-size:.85rem;color:var(--ink-soft)}.handover-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.handover-header-actions{display:flex;gap:.5rem}.handover-endshift{font-weight:600}.handover-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem;background:#1a1f2b73}.handover-modal{width:100%;max-width:28rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:1.25rem 1.5rem;box-shadow:0 12px 34px #00000038}.handover-modal h3{margin:0 0 .6rem}.handover-modal p{margin:0 0 1.25rem;color:var(--ink-soft);font-size:.9rem}.handover-modal-actions{display:flex;justify-content:flex-end;gap:.5rem}.handover-modal-actions button{font:inherit;padding:.5rem 1rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);cursor:pointer}.handover-modal-actions button:disabled{opacity:.6;cursor:not-allowed}.handover-subtabs{margin-top:.5rem}.handover-diary-heading{display:flex;align-items:baseline;gap:.6rem;margin:1rem 0 .5rem}.handover-new-item-btn{margin-left:auto;align-self:center;font:inherit;font-weight:600;padding:.4rem .9rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);cursor:pointer}.handover-diary-heading h3{margin:0}.handover-entry-count{font-size:.85rem;color:var(--ink-soft)}.handover-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:8px}.handover-table{width:100%;min-width:60rem;border-collapse:collapse;font-size:.9rem}.handover-table th,.handover-table td{white-space:normal;vertical-align:top;padding:.55rem .7rem;border-bottom:1px solid var(--border)}.handover-table thead th{background:var(--bg);color:var(--ink-soft);font-weight:600;white-space:nowrap}.handover-table tbody tr:last-child td{border-bottom:none}.handover-col-item{width:3rem}.handover-col-open{width:7rem}.handover-col-title{width:16%}.handover-col-comments{width:auto}.handover-col-status{width:10rem}.handover-col-due{width:8.5rem}.handover-col-assign{width:12rem}.handover-col-actions{width:4rem}.handover-cell-item{text-align:center;color:var(--ink-soft);font-weight:600}.handover-cell-open{color:var(--ink-soft);font-size:.82rem;white-space:nowrap}.handover-cell-time{color:var(--ink-soft)}.handover-cell-title span{font-weight:600;font-size:1rem}.handover-cell-title .handover-input{font-size:1rem}.handover-input{width:100%;font:inherit;padding:.35rem .45rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:inherit}.handover-input:focus{outline:2px solid var(--accent);outline-offset:-1px}textarea.handover-input{resize:vertical}.handover-new-row td{background:var(--bg)}.handover-new-actions{display:flex;flex-direction:column;gap:.3rem}.handover-add-btn{width:100%}.handover-cancel-btn{width:100%;font:inherit;font-size:.8rem;padding:.25rem .4rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink-soft);cursor:pointer}.handover-status-pill{display:inline-block;padding:.1rem .55rem;border:1px solid var(--border);border-radius:999px;font-size:.75rem;font-weight:600;background:var(--bg);white-space:nowrap}.handover-status-closed{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}.handover-reopen-btn{font-size:.8rem}.handover-row-overdue .handover-cell-item,.handover-due-overdue span{font-weight:700}.handover-overdue-tag{font-size:.75rem;color:#c62222;font-weight:700;text-transform:uppercase}.handover-comment-cell,.handover-comment-log{display:flex;flex-direction:column;gap:.5rem}.handover-comment-empty{margin:0}.handover-comment{font-size:.95rem}.handover-comment-meta{display:block;margin-top:.2rem;font-size:.78rem;color:#9096a3}.handover-comment-meta .muted{color:#9096a3}.handover-comment-body{font-size:.95rem;white-space:pre-wrap}.handover-comment-add{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}.handover-comment-add textarea{width:100%}.handover-assign-dd{position:relative}.handover-assign-toggle{display:flex;align-items:center;justify-content:space-between;gap:.4rem;width:100%;text-align:left;font:inherit;padding:.35rem .45rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);cursor:pointer}.handover-assign-panel{position:absolute;z-index:5;top:calc(100% + 2px);left:0;min-width:100%;max-height:14rem;overflow-y:auto;display:flex;flex-direction:column;gap:.25rem;padding:.5rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);box-shadow:0 4px 14px #0000001f}.handover-assign-option{display:flex;align-items:center;gap:.4rem;font-size:.85rem;white-space:nowrap}.handover-assign-empty{margin:0}.handover-empty{text-align:center;padding:1.5rem}.muted{color:var(--ink-soft)}.handover-editing{display:block;margin-top:.3rem;font-size:.72rem;font-weight:600;color:var(--ink-soft);white-space:nowrap}.notif-bell{position:relative;display:inline-block}.notif-bell-button{position:relative;font-size:1.1rem;line-height:1;padding:.35rem .5rem}.notif-badge{position:absolute;top:-.3rem;right:-.3rem;background:#c0392b;color:#fff;border-radius:999px;font-size:.65rem;font-weight:700;min-width:1.1rem;padding:.05rem .3rem;text-align:center}.notif-dropdown{position:absolute;right:0;top:2.4rem;width:22rem;max-width:90vw;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0000001f;z-index:50;overflow:hidden}.notif-dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:.6rem .8rem;border-bottom:1px solid var(--border)}.notif-link{background:none;border:none;color:#4a148c;cursor:pointer;font-size:.8rem;padding:.1rem .4rem}.notif-link:disabled{color:var(--ink-soft);cursor:default}.notif-list{max-height:22rem;overflow-y:auto}.notif-item{padding:.6rem .8rem;border-bottom:1px solid #f0f0f0}.notif-item-unread{background:#f6f1fb}.notif-item-title{font-weight:600;font-size:.9rem}.notif-item-body{font-size:.85rem;color:var(--ink-soft);white-space:pre-line}.notif-item-time{font-size:.72rem;color:var(--ink-soft);margin-top:.2rem}.notif-prefs,.notif-settings-body{padding:.8rem;display:flex;flex-direction:column;gap:.5rem}.notif-pref-toggle{display:flex;align-items:center;gap:.45rem;font-size:.9rem}.notif-save{margin-top:.5rem;align-self:flex-start}.notif-settings{border:1px solid var(--border);border-radius:8px;margin:0 0 1.25rem}.notif-settings-toggle{width:100%;text-align:left;background:none;border:none;padding:.7rem .9rem;font-weight:600;cursor:pointer}.notif-settings-field{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:var(--ink-soft)}.notif-settings-field input{max-width:26rem}@media(max-width:900px){.dashboard{padding:1.25rem 1rem 3rem}.dashboard-header{grid-template-columns:auto 1fr;gap:.75rem 1rem}.dashboard-header h1{font-size:2rem;text-align:left}.logo{height:72px}.header-right{grid-column:1 / -1;flex-wrap:wrap;justify-content:flex-start}.tab-bar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}.tab-button{flex:0 0 auto;white-space:nowrap}}@media(max-width:768px){.dashboard-header h1{font-size:1.6rem}.handover-header{flex-wrap:wrap}.handover-table-wrap{overflow-x:visible}.handover-table,.handover-table tbody,.handover-table tbody tr,.handover-table tbody td{display:block;width:auto;min-width:0}.handover-table thead{display:none}.handover-table tbody tr{padding:.5rem .25rem;border-bottom:3px solid var(--border)}.handover-new-row td{background:none}.handover-table tbody td{display:grid;grid-template-columns:7.5rem 1fr;gap:.25rem .75rem;align-items:start;padding:.3rem .5rem;border-bottom:none;white-space:normal}.handover-table tbody td:before{content:attr(data-label);color:var(--ink-soft);font-size:.8rem;font-weight:600}.handover-table tbody td:empty,.handover-table tbody td[data-label=""]:empty{display:none}.handover-cell-item{text-align:left}.handover-cell-open{white-space:normal}.handover-cell-open div{display:inline}.handover-cell-open .handover-cell-time:before{content:" · "}.handover-assign-panel{min-width:12rem}}
