.portal-narrow{max-width:760px}.portal-legend{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.portal-key{padding:7px 13px;border-radius:6px;font-size:12px;font-weight:700}.portal-key.free,.portal-cell.free{background:#e9f7f0;color:#146747}.portal-key.tight,.portal-cell.tight{background:#fff4d8;color:#805708}.portal-key.full,.portal-cell.full{background:#fce8eb;color:#a12440}.portal-key.closed,.portal-cell.closed{background:#edf1f6;color:#738198}.portal-calendar-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}.portal-calendar{min-width:860px;table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0}.portal-calendar th,.portal-calendar td{padding:6px;border-bottom:1px solid #edf1f6;text-align:center;vertical-align:middle}.portal-calendar th:first-child{width:80px}.portal-calendar thead th{padding:16px 5px;background:#fff}.portal-calendar th strong,.portal-calendar th small{display:block;margin-top:5px}.portal-calendar small{font-size:11px}.portal-cell{width:100%;min-height:66px;display:flex;flex-direction:column;gap:4px;border:1px solid transparent;border-radius:6px;box-shadow:none}.portal-cell:disabled{opacity:1;cursor:default}.portal-cell:not(:disabled):hover{border-color:#1268ff}.portal-cell strong{font-size:12px}.portal-cell small{color:inherit}.portal-delay{display:block!important;margin:8px 0;color:#805708!important;white-space:normal!important}.portal-warning{margin:20px 0}.portal-week-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.portal-week-day{padding:18px;border:1px solid var(--line);border-radius:9px;background:#fbfdff}.portal-week-day h3{margin:0 0 16px}.portal-week-day h3 small{font-weight:400;color:var(--muted);margin-left:8px}.portal-week-day .form-grid{margin-top:14px;gap:12px}.portal-staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.portal-staff-form>label{margin:15px 0}.portal-pair-row{display:grid;grid-template-columns:80px 1fr 1fr auto;gap:15px;align-items:end;padding:17px 0;border-bottom:1px solid var(--line)}.portal-pair-row>strong{align-self:center}.portal-pair-row select{min-width:0}.portal-calendar-wrap+ .notice{margin-top:20px}.ops-panel details summary,details.ops-panel>summary{cursor:pointer;font-size:16px;font-weight:700}.ops-panel form{margin-top:20px}#portal-pairs-form>.ops-panel{margin-bottom:20px}.portal-week-day input:disabled{opacity:.4}.portal-staff-form h2{font-size:18px}#portal-create-staff>.primary{margin-top:20px}.nav button{font-size:12px}.nav{gap:3px}.ops-panel .form-error:empty{display:none}
@media(max-width:850px){.portal-pair-row{grid-template-columns:1fr 1fr}.portal-pair-row>strong{grid-column:1/-1}.portal-pair-row>button{justify-self:start}.portal-staff-grid{grid-template-columns:1fr}.portal-week-days{grid-template-columns:1fr}.portal-pair-row label{min-width:0}.portal-calendar th:first-child{width:70px}.portal-calendar{min-width:820px}}
@media(max-width:460px){.portal-pair-row{grid-template-columns:1fr}.portal-week-day{padding:15px}.portal-week-day .form-grid{grid-template-columns:1fr 1fr}.portal-week-day h3 small{display:block;margin:4px 0 0}.portal-legend{gap:6px}.portal-key{font-size:11px;padding:6px 9px}}

.staff-card[hidden]{display:none}.staff-card{min-width:0}.staff-card .section-head{gap:12px;flex-wrap:wrap}.staff-login{overflow-wrap:anywhere}.staff-card fieldset{border:0;padding:0;margin:0;min-width:0}.staff-card fieldset>label{margin:15px 0}.staff-foreman{padding:15px;border:1px solid #b5d0ff;border-radius:8px;background:#edf4ff;align-items:center}.staff-foreman strong,.staff-foreman small{display:block}.staff-foreman small{font-size:12px;font-weight:400;margin-top:5px}.staff-access-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.staff-filters{margin-top:20px;align-items:end}.staff-filters label:first-child{flex:1;max-width:480px}.staff-filters label{min-width:0}.staff-rides-list article{padding:15px 0;border-bottom:1px solid var(--line)}.staff-rides-list{margin-bottom:20px}#staff-access-form .notice{margin:0}#staff-access-form{margin-top:18px}
