.admin-body { color: var(--ink); }
.admin-body .header-inner { flex-wrap: wrap; padding-block: 10px; }
.admin-portal .header-inner { min-height: 72px; gap: 10px 16px; }
.admin-shell-account { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; max-width: 100%; margin-left: auto; }
.admin-shell-home { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.admin-shell-logout { margin: 0; }
.admin-shell-logout .button { min-height: 44px; padding: 10px 16px; }
.admin-portal .admin-main { padding-block: 44px; }
@media (max-width: 360px) {
    .admin-shell-account { flex: 1 0 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 10px; justify-content: stretch; margin-left: 0; }
    .admin-shell-account .portal-role-badge { grid-column: 1; grid-row: 1; align-self: start; }
    .admin-shell-account .admin-role-identity { grid-column: 2; grid-row: 1; }
    .admin-shell-account .admin-shell-home { grid-column: 2; grid-row: 2; }
    .admin-shell-account .admin-shell-logout { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

.admin-directory-filters,
.shop-location-picker {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin: 20px 0;
}

.shop-location-picker {
    grid-template-columns: minmax(240px, 420px) auto;
}

.record-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.record-section-nav a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.staff-record-section {
    border-top: 1px solid var(--line);
    margin-top: 26px;
    padding-top: 24px;
}

.staff-readiness { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.staff-readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.staff-readiness-item { min-height: 72px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.staff-readiness-item span { color: var(--muted); font-size: 14px; }
.staff-readiness-item.is-ready { border-left: 4px solid #79a92d; }
.staff-readiness-item.needs-attention { border-left: 4px solid #cf8a24; }

.shop-operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.shop-operations-grid .admin-card { margin: 0; }
.shop-operations-wide { grid-column: 1 / -1; }

.operations-list-row,
.operations-job {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.operations-job,
.operations-job > div { min-width: 0; max-width: 100%; }
.operations-job .user-status { white-space: normal; overflow-wrap: anywhere; }
.operations-list-row span { color: var(--muted); }
.operations-job h3 { margin: 0 0 6px; }
.operations-assignment { min-width: min(100%, 320px); }
.job-time-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.job-time-metrics span { min-width: 112px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.job-time-metrics small, .job-time-metrics strong { display: block; }
.job-time-metrics small { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.assigned-team { margin-top: 18px; }
.assigned-team h4 { margin: 0 0 8px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.assigned-team-empty, .add-worker-empty { margin: 8px 0 0; color: var(--muted); }
.job-participant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.job-participant-status { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.job-participant-status strong, .job-participant-status span { overflow-wrap: anywhere; }
.job-participant-status span { color: var(--muted); }
.job-clock-form { margin: 0; }
.job-clock-form .button { min-height: 44px; }
.add-worker { width: min(100%, 340px); align-self: flex-start; }
.add-worker > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; list-style: none; }
.add-worker > summary::-webkit-details-marker { display: none; }
.add-worker[open] > summary { margin-bottom: 12px; }
.add-worker .operations-assignment { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.add-worker .operations-assignment label, .add-worker .operations-assignment select { width: 100%; min-width: 0; }
.add-worker .operations-assignment .button { width: 100%; min-height: 44px; }

@media (max-width: 768px) {
    .admin-directory-filters,
    .shop-location-picker,
    .shop-operations-grid { grid-template-columns: 1fr; }
    .shop-operations-wide { grid-column: auto; }
    .operations-list-row,
    .operations-job { align-items: flex-start; flex-direction: column; }
    .add-worker, .add-worker > summary { width: 100%; }
    .admin-directory-filters .button,
    .shop-location-picker .button { width: 100%; }
    .staff-readiness-grid { grid-template-columns: 1fr; }
}
.admin-main { padding-block: 64px; }
.admin-main h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.6px; margin-bottom: 18px; }
.admin-eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 18px; }
.admin-intro, .admin-identity { color: var(--muted); }
.admin-label { font-size: 11px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
.admin-card { border: 1px solid var(--line); border-radius: 12px; padding: 30px; background: #fff; margin-top: 24px; }
.admin-card h2 { font-size: 25px; letter-spacing: -.7px; margin-bottom: 10px; }
.admin-login { max-width: 490px; margin: 0 auto; }
/* Dashboard status and navigation stay compact inside the existing Admin container. */
.admin-attention { padding: 22px 24px; }
.admin-attention > h2 { margin: 0; }
.admin-attention-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.admin-attention-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-decoration: none; }
.admin-attention-item span { min-width: 0; overflow-wrap: anywhere; }
.admin-attention-item strong { flex: 0 0 auto; font-size: 20px; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; margin-top: 24px; }
.admin-dashboard-grid:empty { display: none; }
.admin-dashboard-grid .admin-dashboard-card { display: flex; flex-direction: column; min-width: 0; margin-top: 0; padding: 24px; }
.admin-dashboard-card h2 { font-size: 21px; line-height: 1.25; }
.admin-dashboard-card p { color: var(--muted); margin-bottom: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.admin-dashboard-card .button { align-self: flex-end; margin-top: auto; max-width: 100%; min-height: 44px; padding: 10px 16px; }
.admin-dashboard-card:hover, .admin-dashboard-card:focus-within { border-color: #899b96; }
.admin-area-shell .admin-intro { max-width: 720px; }
.admin-area-grid { margin-top: 28px; }
.admin-area-card p { min-height: 3em; }
@media (max-width: 980px) {
    .admin-attention-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .admin-attention { padding: 18px; }
    .admin-attention-summary { grid-template-columns: minmax(0, 1fr); }
    .admin-dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .admin-dashboard-grid .admin-dashboard-card { padding: 22px; }
}
.admin-card-heading, .admin-save-row, .admin-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; }
.admin-identity { font-size: 12px; overflow-wrap: anywhere; }
.admin-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.admin-field-wide { grid-column: span 2; }
.admin-body label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.admin-body input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .admin-body textarea, .admin-body select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #899b96; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; }
.admin-body textarea { resize: vertical; }
.admin-login input { margin-bottom: 22px; }
.admin-login .button { width: 100%; }
.admin-body .button { cursor: pointer; font-family: inherit; }
.admin-body :is(input, textarea, select, button):focus-visible { outline: 3px solid #367889; outline-offset: 3px; }
.admin-save-row { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.admin-body .admin-checkbox { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; }
.admin-checkbox input { width: 20px; height: 20px; accent-color: var(--ink); }
.admin-error, .admin-success { padding: 16px; border-radius: 6px; border: 1px solid var(--ink); }
.admin-error { background: var(--paper); font-weight: 650; }
.admin-success { background: var(--lime); }
.user-validation-message { color: #9b2f24; font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.user-details-form [aria-invalid="true"] { border-color: #9b2f24; outline: 2px solid rgba(155, 47, 36, .18); outline-offset: 1px; }
@media (max-width: 800px) { .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .admin-body .container { width: calc(100% - 32px); } .admin-main { padding-block: 42px; } .admin-card { padding: 20px; } .admin-fields { grid-template-columns: minmax(0, 1fr); } .admin-field-wide { grid-column: auto; } .admin-card-heading { align-items: flex-start; gap: 4px; } .admin-nav { gap: 16px; } }
@media (max-width: 600px) { .admin-portal .admin-main { padding-block: 32px; } }
.admin-location-options { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 16px 0 8px; }
.admin-location-options legend { font-size: 13px; font-weight: 650; padding-inline: 4px; }
.admin-location-options .admin-checkbox { display: flex; }
.admin-password-reset { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 8px; }
.admin-password-reset summary { display: list-item; cursor: pointer; padding-block: 14px; min-height: 44px; font-weight: 650; }
.admin-password-reset summary:focus-visible { outline: 3px solid #367889; outline-offset: 3px; }
.user-editor .user-welcome-form .button { white-space: normal; max-width: 100%; text-align: center; }
.user-editor h2 { overflow-wrap: anywhere; }
.user-editor .admin-location-options .admin-checkbox { overflow-wrap: anywhere; }
.users-table-scroll { overflow-x: auto; margin-top: 20px; }
.users-table-scroll:focus-visible { outline: 3px solid #367889; outline-offset: 3px; }
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.users-table th, .users-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.users-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); background: var(--paper); }
.users-table tbody th { min-width: 125px; font-weight: 650; }
.users-table td:nth-child(2) { min-width: 160px; }
.users-table td:nth-child(4), .users-table td:nth-child(6) { min-width: 135px; }
.users-table .button { min-height: 44px; padding: 10px 15px; }
.user-status { display: inline-block; padding: 5px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-weight: 650; white-space: nowrap; }
.user-status.is-active { background: var(--lime); }
.users-table { min-width: 1080px; }
.users-table td:nth-child(3) { white-space: nowrap; }
.users-table .button { min-width: 72px; white-space: nowrap; overflow-wrap: normal; }
.users-table-hint { display: none; color: var(--muted); font-size: 12px; }
@media (max-width: 1200px) { .users-table-hint { display: block; } }
.admin-body input[type=radio] { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--ink); }
.admin-scope-options { border: 0; padding: 0; margin: 0; }
.admin-scope-options legend { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.admin-scope-options .admin-checkbox { display: flex; }
.users-table-scroll { container-type: inline-size; }
.users-table .user-detail-row > td { padding: 0; background: var(--paper); }
.user-detail-row .user-editor { margin: 0; border-radius: 0; border-left: 4px solid var(--lime); width: 100%; max-width: 100cqi; box-sizing: border-box; }
.user-edit-toggle[aria-expanded=true] { background: var(--lime); color: var(--ink); }


.hr-table-scroll { overflow-x: auto; }
.users-table.hr-table { min-width: 700px; }
.hr-table details { min-width: 180px; }
.hr-table summary { cursor: pointer; min-height: 44px; }
.hr-form-editor, .hr-template-editor { margin-top: 18px; }
#form-editor, #template-editor { margin-top: 30px; }
.hr-send-panel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.hr-send-panel h3 { margin-bottom: 16px; }
.hr-send-panel ul, .hr-table ul { padding-left: 20px; }
.hr-send-panel .admin-checkbox input { flex: 0 0 20px; }
.smtp-settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 14px 24px; }
.smtp-settings dt { font-weight: 650; }
.smtp-settings dd { margin: 0; overflow-wrap: anywhere; }
@media(max-width:540px) { .smtp-settings { grid-template-columns: minmax(0,1fr); gap: 6px; } .smtp-settings dd { margin-bottom: 14px; } }

.hr-library-scroll { container-type: inline-size; }
.hr-detail-row > td { padding: 0; background: var(--paper); }
.hr-detail-row .hr-template-panel { width: 100%; max-width: 100cqi; border-left: 4px solid var(--lime); }
.hr-template-panel { padding: 24px; box-sizing: border-box; }
.hr-template-content { min-height: 240px; }
.hr-content-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.hr-create-template > summary { cursor: pointer; min-height: 44px; font-size: 22px; font-weight: 700; }
.hr-create-template .hr-template-panel { padding-inline: 0; }
.hr-edit-toggle[aria-expanded=true] { background: var(--lime); color: var(--ink); }
.hr-detail-row .admin-save-row { justify-content: flex-start; }
.hr-detail-row summary:focus-visible, .hr-create-template summary:focus-visible { outline: 3px solid #367889; outline-offset: 3px; }
.create-user-forms .admin-checkbox input { flex: 0 0 20px; }

/* Employee forms share Admin primitives without exposing management navigation. */
.employee-form { width: 100%; max-width: none; box-sizing: border-box; }
.employee-form .hr-content-text { margin: 24px 0; overflow-wrap: anywhere; }
.employee-answer-fields { margin: 28px 0; }
.employee-answer-fields > div { min-width: 0; }
.employee-answer-fields input:not([type=checkbox]):not([type=radio]),
.employee-answer-fields select, .employee-answer-fields textarea,
.employee-ack input:not([type=checkbox]) { width: 100%; max-width: 100%; box-sizing: border-box; }
.employee-ack { padding: 24px 0; border-top: 1px solid var(--line); }
.hr-field-editor { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.hr-field-editor summary { cursor: pointer; min-height: 44px; font-weight: 700; }

.hr-fields .hr-table-scroll { container-type: inline-size; }
.hr-fields .users-table { min-width: 620px; }
.hr-fields .hr-table-scroll .hr-field-editor { width: calc(100cqi - 24px); max-width: 100%; box-sizing: border-box; }
.hr-field-editor .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hr-field-editor label { min-width: 0; white-space: normal; }
@media (max-width: 540px) { .hr-field-editor .admin-fields { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
    .hr-fields.hr-template-panel { padding: 12px 8px; }
    .hr-fields .users-table td[colspan] { padding: 0; }
    .hr-fields .hr-table-scroll .hr-field-editor { width: 100cqi; margin-inline: 0; padding: 12px; }
}

/* Assignment status is shared by the employee list and selected-user HR summary. */
.form-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 13px; font-weight: 650; white-space: nowrap; }
.form-status.is-completed { background: var(--lime); color: var(--ink); }
.hr-user-progress { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.hr-progress-list { list-style: none; padding: 0; margin: 14px 0; }
.hr-progress-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hr-progress-list li > div { min-width: 0; overflow-wrap: anywhere; }
.hr-progress-list .admin-identity { display: block; margin-top: 4px; }
.users-table.employee-forms-table { min-width: 760px; margin-top: 24px; }
@media (max-width: 540px) { .hr-progress-list li { flex-direction: column; gap: 8px; } }

/* Keep the eight-column packet summary readable inside its existing scroll region. */
#sent .hr-table { min-width: 1280px; }
#sent .hr-table th:nth-child(n+5):nth-child(-n+7),
#sent .hr-table td:nth-child(n+5):nth-child(-n+7) { white-space: nowrap; }

.hr-review-dialog { width: min(920px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); overflow-y: auto; box-sizing: border-box; }
.hr-review-dialog::backdrop { background: rgba(19,44,53,.65); }
.hr-assignment-review { overflow-wrap: anywhere; }
.hr-assignment-review .hr-content-text { margin: 22px 0; }
.hr-progress-list li > div:first-child { flex: 1; }
.hr-progress-list form { margin: 0; }
@media (max-width: 540px) { .hr-review-dialog { padding: 18px; } }
/* Employee operations reuse the existing Admin containers and controls. */
.employee-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; }
.employee-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.ops-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0; }
.ops-fields > *, .ops-form { min-width: 0; }
.ops-form { margin: 18px 0; }
.ops-form .button { max-width: 100%; white-space: normal; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ops-employment { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ops-employment h3 { margin-top: 16px; }
.ops-work-item { min-width: 0; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ops-work-heading, .job-performance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ops-work-heading > div, .job-performance-heading > div { min-width: 0; }
.ops-work-heading h3 { margin: 0; font-size: 21px; }
.ops-work-heading p { margin: 5px 0 0; color: var(--muted); }
.ops-work-status { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 750; }
.ops-work-status.is-completed { border-color: #bfd8b2; background: #e7f2df; color: var(--ink); }
.job-performance-summary { margin: 20px 0 28px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #f3f7f0; }
.job-performance-summary h2 { margin: 0 0 5px; font-size: 22px; }
.job-performance-summary h2 + p { margin: 0; color: var(--muted); }
.job-performance-period { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.job-performance-period strong { color: var(--ink); font-size: 14px; }
.job-performance { margin: 18px 0 14px; }
.job-performance h4 { margin: 0 0 10px; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.job-performance-grid { display: grid; gap: 10px; margin: 0; }
.job-performance-summary-grid { grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 20px; }
.job-performance-job-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.job-performance-metric { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.job-performance-metric dt { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .035em; line-height: 1.35; text-transform: uppercase; }
.job-performance-metric dd { margin: 7px 0 0; color: var(--ink); font-size: 1.12rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.job-performance-metric.is-under { border-color: #bdd8ad; background: #f0f8ea; }
.job-performance-metric.is-over { border-color: #e2c9a7; background: #fff8ed; }
.job-performance-metric.is-on-standard { border-color: #b9d0d7; background: #f1f7f8; }
.job-performance-metric.is-empty { background: #f6f7f4; }
.job-performance-metric.is-empty dd { color: var(--muted); font-weight: 650; }
.job-performance-empty { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,.65); color: var(--muted); }
.job-participation { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border-top: 1px solid var(--line); color: var(--muted); }
.job-participation strong { color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) {
    .job-performance-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .job-performance-job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .job-performance-summary { padding: 18px; }
    .job-performance-heading { display: block; }
    .job-performance-period { margin-top: 12px; text-align: left; }
    .job-performance-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 390px) {
    .ops-work-item { padding: 17px; }
    .ops-work-heading { display: block; }
    .ops-work-status { display: inline-block; margin-top: 12px; }
    .job-performance-summary-grid, .job-performance-job-grid { grid-template-columns: minmax(0,1fr); }
    .job-participation { align-items: flex-start; flex-direction: column; gap: 4px; }
}
.ops-table-scroll { overflow-x: auto; margin: 20px 0; }
.ops-table { width: 100%; border-collapse: collapse; min-width: 680px; text-align: left; font-size: 14px; }
.ops-table th, .ops-table td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.ops-table th { background: var(--paper); }
.ops-table summary { cursor: pointer; min-height: 44px; }
.ops-table details { min-width: 220px; }
.ops-table-scroll { container-type: inline-size; }
.ops-detail > td { padding: 0; }
.ops-detail .ops-form { padding: 24px; width: 100%; max-width: 100cqi; box-sizing: border-box; background: var(--paper); }
.ops-dashboard { grid-auto-rows: auto; }
.ops-dashboard .admin-dashboard-card { display: block; }
.ops-dashboard p, .ops-employment p { overflow-wrap: anywhere; }
@media(max-width:540px) { .ops-fields { grid-template-columns:minmax(0,1fr); } .employee-navigation { gap: 4px 18px; } }

/* Employee Home is a concise operational snapshot; details remain in the dedicated tabs. */
.employee-home-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.employee-home-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 22px; }
.employee-home-card h2 { margin-bottom: 14px; font-size: 20px; }
.employee-home-card .button { align-self: flex-start; min-height: 44px; margin-top: auto; padding: 10px 16px; }
.employee-home-card .ops-form { margin: 10px 0 0; }
.employee-home-card .ops-form .button { margin-top: 8px; }
.employee-home-status { margin: 0 0 14px; color: var(--ink); font-size: 1.55rem; font-weight: 800; }
.employee-home-facts { display: grid; gap: 10px; margin: 0 0 18px; }
.employee-home-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.employee-home-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.employee-home-facts dt { color: var(--muted); font-size: 13px; }
.employee-home-facts dd { margin: 0; color: var(--ink); font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.employee-home-attention { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; }
.employee-home-attention.needs-attention { border-color: #e2c9a7; background: #fff8ed; }
.employee-home-empty, .employee-home-period { margin: 0 0 18px; color: var(--muted); }
.employee-home-period { font-size: 13px; }
.employee-home-pay-period, .employee-home-work-list { margin-top: 24px; }
.employee-home-efficiency-summary { margin: 0 0 14px; }
.employee-home-efficiency-summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.employee-home-efficiency-summary strong { display: block; margin-top: 3px; color: var(--ink); font-size: 2rem; line-height: 1.1; }
.employee-home-performance-empty { margin: 0 0 12px; color: var(--muted); }
.employee-home-performance-support { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 650; }
.employee-home-pay-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; }
.employee-home-pay-metrics .job-performance-metric { padding: 14px; background: var(--paper); }
.employee-home-pay-metrics .job-performance-metric dd { font-size: 1.2rem; }
.employee-home-pay-action { display: flex; justify-content: flex-end; margin-top: 14px; }
.employee-home-pay-action .button { min-height: 44px; padding: 10px 16px; }
.employee-home-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.employee-home-section-heading h2 { margin: 0; }
.employee-home-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.employee-home-section-heading .button { flex: 0 0 auto; min-height: 44px; padding: 10px 16px; }
.employee-home-work-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.employee-home-work-table th, .employee-home-work-table td { padding: 12px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.employee-home-work-table th { color: var(--muted); font-size: 10px; letter-spacing: .045em; text-transform: uppercase; }
.employee-home-work-table th:nth-child(1) { width: 8%; }
.employee-home-work-table th:nth-child(2) { width: 15%; }
.employee-home-work-table th:nth-child(3) { width: 13%; }
.employee-home-work-table th:nth-child(4) { width: 12%; }
.employee-home-work-table th:nth-child(5), .employee-home-work-table th:nth-child(6), .employee-home-work-table th:nth-child(8), .employee-home-work-table th:nth-child(9) { width: 10%; }
.employee-home-work-table th:nth-child(7) { width: 12%; }
.employee-home-work-table .ops-work-status { display: inline-block; white-space: normal; }
@media(max-width:900px) {
    .employee-home-work-table, .employee-home-work-table tbody, .employee-home-work-table tr, .employee-home-work-table td { display: block; width: 100%; }
    .employee-home-work-table thead { display: none; }
    .employee-home-work-table tbody { display: grid; gap: 12px; }
    .employee-home-work-table tr { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
    .employee-home-work-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border: 0; text-align: right; }
    .employee-home-work-table td::before { content: attr(data-label); flex: 0 0 42%; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
}
@media(max-width:700px) {
    .employee-home-grid { grid-template-columns: minmax(0,1fr); }
    .employee-home-card { min-height: 0; padding: 20px; }
    .employee-home-card .button { width: 100%; justify-content: center; text-align: center; }
    .employee-home-section-heading { display: block; }
    .employee-home-section-heading .button { width: 100%; margin-top: 14px; text-align: center; }
    .employee-home-pay-action .button { width: 100%; text-align: center; }
}
@media(max-width:390px) {
    .employee-home-facts { grid-template-columns: minmax(0,1fr); }
    .employee-home-pay-metrics { grid-template-columns: minmax(0,1fr); }
}

/* Employee Today: live location queue plus read-only seven-day planning. */
.employee-workday-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.employee-workday-heading h1 { margin-bottom: 8px; }
.employee-workday-heading p, .employee-workday-location { margin: 0; color: var(--muted); }
.employee-workday-selector { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.employee-workday-selector a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 6px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.employee-workday-selector a[aria-current="page"] { background: var(--ink); color: #fff; }
.employee-workday-location { margin-top: 13px; font-size: 14px; }
.employee-workday-note { margin: 20px 0 0; padding: 13px 15px; border: 1px solid #e2c9a7; border-radius: 8px; background: #fff8ed; }
.employee-workday-section { margin-top: 24px; padding: 24px; }
.employee-workday-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.employee-workday-section-heading h2 { margin: 0; font-size: 23px; }
.employee-workday-section-heading h2 + p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.employee-workday-section-heading span { color: var(--muted); font-size: 13px; }
.employee-workday-empty { margin: 0; padding: 16px; border-radius: 8px; background: var(--paper); color: var(--muted); }
.employee-workday-table-head, .employee-workday-row { display: grid; grid-template-columns: .7fr 1.2fr 1.75fr .85fr .75fr .75fr 1.2fr 1.35fr 1.25fr; gap: 12px; align-items: start; }
.employee-workday-table-head { padding: 0 10px 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.employee-workday-row { padding: 15px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.employee-workday-field { min-width: 0; overflow-wrap: anywhere; }
.employee-workday-field small { display: none; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.employee-workday-field span, .employee-workday-field strong { display: block; }
.employee-workday-status span, .employee-workday-status { font-weight: 750; }
.employee-mobile-badge { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.employee-workday-actions { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.employee-workday-actions form { margin: 0; }
.employee-workday-actions .button { width: 100%; min-height: 44px; padding: 9px 10px; white-space: normal; }
.employee-workday-actions > span { color: var(--muted); font-size: 12px; }
.employee-history-navigation { display: grid; grid-template-columns: minmax(150px,auto) minmax(0,1fr) minmax(150px,auto); gap: 14px; align-items: center; margin-top: 20px; }
.employee-history-navigation strong { text-align: center; }
.employee-history-navigation .button { min-height: 44px; }
.employee-history-navigation .is-disabled { border-color: var(--line); background: var(--paper); color: var(--muted); cursor: default; opacity: .65; }
.employee-upcoming > h3 { margin: 26px 0 10px; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.employee-upcoming-day { display: grid; gap: 10px; }
.employee-upcoming-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.employee-upcoming-row time { font-size: 17px; font-weight: 800; }
.employee-upcoming-row p { margin: 5px 0; color: var(--muted); }
.employee-upcoming-row .employee-workday-status { display: inline-flex; margin-top: 5px; padding: 4px 8px; border-radius: 999px; background: #e7f2df; }
@media(max-width:1100px) {
    .employee-workday-table-head { display: none; }
    .employee-workday-list { display: grid; gap: 12px; }
    .employee-workday-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
    .employee-workday-field small { display: block; margin-bottom: 3px; }
    .employee-workday-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; padding-top: 4px; }
    .employee-workday-actions form { flex: 1 1 180px; }
}
@media(max-width:620px) {
    .employee-workday-heading { align-items: stretch; flex-direction: column; }
    .employee-workday-selector { width: 100%; box-sizing: border-box; }
    .employee-workday-selector { flex-wrap: wrap; }
    .employee-workday-selector a { flex: 1 1 calc(50% - 4px); padding-inline: 8px; }
    .employee-history-navigation { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .employee-history-navigation strong { grid-column: 1 / -1; grid-row: 1; }
    .employee-workday-section { padding: 18px; }
    .employee-workday-row { grid-template-columns: minmax(0,1fr); }
    .employee-workday-actions { grid-column: auto; flex-direction: column; }
    .employee-workday-actions form { flex: 0 0 auto; }
    .employee-upcoming-row { grid-template-columns: minmax(0,1fr); gap: 7px; }
}

/* Readable inquiry columns stay inside their own scroll region. */
.inquiries-table { width:100%; min-width:1110px; font-size:14px; table-layout:fixed; border-collapse:collapse; }
.inquiries-table th,.inquiries-table td { padding:16px 8px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.inquiries-table thead th { font-size:13px; }
.inquiries-table th:nth-child(1) { width:180px; }
.inquiries-table td:first-child { white-space:nowrap; }
.inquiries-table th:nth-child(2) { width:90px; }
.inquiries-table th:nth-child(3) { width:135px; }
.inquiries-table th:nth-child(4) { width:155px; }
.inquiries-table th:nth-child(5) { width:110px; }
.inquiries-table th:nth-child(6) { width:135px; }
.inquiries-table th:nth-child(7) { width:110px; }
.inquiries-table th:nth-child(8) { width:100px; }
.inquiries-table th:nth-child(9) { width:95px; }
.inquiries-table .button { min-height:44px; padding:10px 16px; }
.inquiry-summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.entity-history { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); min-width:0; }
.entity-history summary { font-weight:700; cursor:pointer; min-height:44px; }
.history-list { list-style:none; padding:0; margin:16px 0 24px; }
.history-list li { padding:16px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.history-list time,.history-list strong { display:block; }
.history-list time { font-size:13px; color:var(--muted); }
.history-list p,.history-note { white-space:pre-wrap; overflow-wrap:anywhere; margin:6px 0; }
.entity-history textarea { width:100%; box-sizing:border-box; }
.inquiries-table .user-status { font-size:12px; padding:4px 6px; white-space:nowrap; }

.transaction-table { width:100%; min-width:1000px; border-collapse:collapse; font-size:14px; }
.transaction-table th,.transaction-table td { text-align:left; vertical-align:top; padding:16px 12px; border-bottom:1px solid var(--line); max-width:230px; overflow-wrap:anywhere; }
.transaction-table td:first-child { min-width:150px; }
.transaction-table .button { min-height:44px; padding:10px 16px; }

.transaction-main h2 { overflow-wrap:anywhere; }

.transaction-main { overflow-wrap:anywhere; }

.admin-role-identity { font-size: 13px; font-weight: 750; letter-spacing: .3px; }
@media (max-width: 540px) {
    .admin-role-identity { margin-left: 0; }
}

.catalog-create > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 20px; font-weight: 750; }
.catalog-create[open] > summary { margin-bottom: 20px; }
.catalog-list-heading { margin-top: 36px; font-size: 26px; letter-spacing: -.6px; }
.catalog-editor .admin-card-heading > div { min-width: 0; overflow-wrap: anywhere; }
.catalog-editor .admin-card-heading h2 { margin-bottom: 12px; }
.catalog-editor .admin-label { margin-inline: 8px; }
.catalog-details > summary, .catalog-delete > summary { cursor: pointer; min-height: 44px; padding-block: 14px; font-weight: 650; }
.catalog-details { margin-top: 14px; border-top: 1px solid var(--line); }
.catalog-delete { margin-top: 22px; border-top: 1px solid var(--line); }
.catalog-editor summary:focus-visible, .catalog-create summary:focus-visible { outline: 3px solid #367889; outline-offset: 3px; }
@media (max-width: 540px) { .catalog-editor .admin-card-heading { gap: 16px; } .catalog-editor .admin-card-heading > form { width: 100%; } .catalog-editor .admin-card-heading .button { width: 100%; } }

.admin-role-identity { display: flex; flex-direction: column; gap: 4px; max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.admin-role-identity span { font-size: 12px; font-weight: 500; color: var(--muted); }

/* People is a scoped directory over existing staff, customer and commercial records. */
.people-actions h2, .people-directory h2, .people-onboarding h2 { margin-top: 0; }
.people-action-list, .people-row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.people-action-list .button { min-width: 170px; }
.people-onboarding textarea { width: 100%; min-height: 110px; box-sizing: border-box; }
.people-filters { margin: 20px 0 24px; }
.people-filters > label { display: block; margin-bottom: 7px; font-weight: 650; }
.people-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.people-search-row input { min-width: 0; width: 100%; box-sizing: border-box; }
.people-filters fieldset { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; border: 0; }
.people-filters legend { margin-bottom: 8px; font-weight: 650; }
.people-filters fieldset label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; }
.people-filters input[type=radio] { width: 20px; min-height: 20px; }
.people-table-wrap { overflow-x: auto; }
.people-table { width: 100%; min-width: 1140px; border-collapse: collapse; font-size: 14px; }
.people-table th, .people-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.people-table thead th { white-space: nowrap; }
.people-table tbody th { min-width: 190px; }
.people-contact { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.people-test { display: inline-block; margin-top: 7px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--lime); font-size: 11px; letter-spacing: .05em; }
.people-row-actions { min-width: 180px; }
.people-row-actions .button { min-height: 44px; height: auto; padding: 9px 12px; white-space: normal; line-height: 1.3; }
@media (max-width: 900px) {
    .people-search-row { grid-template-columns: minmax(0, 1fr); }
    .people-search-row .button, .people-action-list .button { width: 100%; }
    .people-table-wrap { overflow: visible; }
    .people-table, .people-table tbody, .people-table tr, .people-table th, .people-table td { display: block; min-width: 0; width: 100%; box-sizing: border-box; }
    .people-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .people-table tr { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .people-table th, .people-table td { display: grid; grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border: 0; }
    .people-table th::before, .people-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .people-table th > span { grid-column: 2; }
    .people-table th::before { grid-row: 1 / span 3; }
    .people-row-actions { min-width: 0; }
    .people-row-actions .button { flex: 1 1 130px; }
}

.login-account-switch { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* A quieter operational palette, scoped to the Admin portal. */
.admin-portal {
    --ink: #243b43;
    --muted: #52656b;
    --paper: #e9eeeb;
    --line: #cbd5d0;
    --lime: #c4d4bb;
    background: var(--paper);
}
.admin-portal .site-header { background: #e1e8e3; }
.admin-portal .admin-card { background: #f5f7f4; }
.admin-portal .button-lime { background: #c4d4bb; color: #243b43; }
.admin-portal .button-lime:hover { background: #b2c5a8; }
.admin-portal .button-dark { background: #2f474e; color: #fff; }
.admin-portal .button-dark:hover { background: #243b43; }
.admin-portal .admin-dashboard-card:hover,
.admin-portal .admin-dashboard-card:focus-within { border-color: #879d8b; }
.stripe-settings .stripe-mode-card { margin: 22px 0 30px; }
.stripe-settings .stripe-mode-card form { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 12px 0 4px; }
.admin-body .stripe-mode-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; font-weight: 400; cursor: pointer; }
.stripe-mode-toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stripe-mode-toggle__track { position: relative; flex: 0 0 54px; width: 54px; height: 30px; border: 1px solid #78918b; border-radius: 20px; background: #dce2dc; transition: background-color .15s ease; }
.stripe-mode-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #132c3540; transition: transform .15s ease; }
.stripe-mode-toggle > input:checked + .stripe-mode-toggle__track { background: #c54135; }
.stripe-mode-toggle > input:checked + .stripe-mode-toggle__track::after { transform: translateX(24px); }
.stripe-mode-toggle > input:focus-visible + .stripe-mode-toggle__track { outline: 3px solid var(--ink); outline-offset: 3px; }
.stripe-mode-toggle__copy { display: grid; gap: 2px; }
.stripe-mode-toggle__copy strong { color: var(--ink); }
.stripe-mode-toggle__copy small { color: var(--muted); }
.stripe-settings .stripe-profile-card { min-width: 0; }
.stripe-settings .stripe-profile-card form { display: block; margin: 16px 0 0; }
.stripe-settings .stripe-profile-card label { display: block; margin: 14px 0 6px; font-weight: 650; }
.stripe-settings .stripe-profile-card input:not([type=hidden]):not([type=checkbox]) { display: block; box-sizing: border-box; width: 100%; min-height: 44px; margin: 0 0 4px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.stripe-settings .stripe-profile-card small { display: block; margin: 4px 0 12px; color: var(--muted); line-height: 1.5; }
.stripe-settings .stripe-profile-card form > .button { display: inline-flex; margin-top: 4px; }
.stripe-profile-status { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.stripe-profile-status p { margin: 0 0 6px; }
.stripe-profile-status p:last-of-type { margin-bottom: 0; }
.stripe-profile-status small { margin-top: 10px; }
.stripe-settings p { overflow-wrap: anywhere; }
.stripe-settings .stripe-profile-card input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.settings-launch-controls { max-width: none; }
.settings-launch-controls .settings-switch-list { display: grid; gap: 12px; margin: 18px 0 22px; }
.admin-body .settings-switch { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400; cursor: pointer; }
.settings-switch > input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.settings-switch__copy { display: grid; gap: 3px; }
.settings-switch__copy strong { color: var(--ink); }
.settings-switch__copy small { color: var(--muted); line-height: 1.45; }
.settings-switch__status { color: var(--muted); font-size: .9rem; font-weight: 650; }
.settings-link-card { min-width: 0; }
.settings-link-card p { min-height: 3em; }
@media (max-width: 520px) { .admin-body .settings-switch { grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 8px 12px; } .settings-switch__status { grid-column: 2; } }
@media (min-width: 900px) { .stripe-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; } .stripe-settings > .admin-eyebrow, .stripe-settings > nav, .stripe-settings > h1, .stripe-settings > h1 + p, .stripe-settings > .stripe-mode-card, .stripe-settings > .settings-launch-controls, .stripe-settings > [role=status] { grid-column: 1 / -1; } }

.ops-data-table { width:max-content; min-width:100%; }
.ops-data-table th,.ops-data-table td { min-width:120px; max-width:320px; overflow-wrap:break-word; }
.ops-data-table th { white-space:nowrap; }

.launch-controls { max-width: 820px; }
.launch-controls h2 { margin-top: 0; }
.launch-control { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); align-items: start; column-gap: 14px; width: auto; min-width: 0; margin: 0 !important; padding: 16px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.launch-control__toggle { appearance: auto; grid-column: 1; width: 20px !important; min-width: 20px !important; height: 20px; min-height: 20px !important; margin: 2px 0 0; padding: 0 !important; accent-color: #526f58; cursor: pointer; }
.launch-control__content { display: grid; grid-column: 2; gap: 4px; min-width: 0; }
.launch-control__title { display: block; color: var(--ink); font-size: 17px; font-weight: 750; line-height: 1.3; }
.launch-control__description { display: block; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; }
.launch-control__status { display: block; width: fit-content; margin-top: 2px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.launch-control:last-of-type { border-bottom: 0; }
.launch-control:focus-within .launch-control__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.launch-control__toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.launch-controls .admin-save-row { margin-top: 22px; }
@media (max-width: 540px) { .launch-control { column-gap: 11px; padding-block: 14px; } .launch-control__description { max-width: 34ch; } }

/* Staff permission editor shares existing Admin form/card primitives. */
.staff-permission-group { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.staff-permission-group legend { padding: 0 8px; font-weight: 700; }
.staff-permission-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); gap: 16px; align-items: center; padding: 12px 0; }
.staff-permission-row + .staff-permission-row { border-top: 1px solid var(--line); }
.staff-permission-row label { margin: 0; }
.staff-permission-row .admin-identity { display: block; margin-top: 4px; font-weight: 400; }
.staff-permission-row select { width: 100%; min-width: 0; min-height: 44px; }
.staff-permission-reset { margin-top: 24px; }
@media (max-width: 600px) { .staff-permission-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.user-editor .staff-permissions .button { max-width: 100%; white-space: normal; height: auto; min-height: 44px; text-align: center; line-height: 1.4; }

/* One-location Admin schedule with an inclusive date range. */
.schedule-page { max-width: 1180px; }
.schedule-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.schedule-heading h1 { margin-bottom:6px; }
.schedule-heading .admin-intro { margin-bottom:0; }
.schedule-quick-actions,.schedule-detail__actions { display:flex; flex-wrap:wrap; gap:10px; }
.schedule-controls { display:grid; grid-template-columns:minmax(420px,1.15fr) minmax(360px,.85fr); gap:18px 34px; align-items:start; padding:20px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.schedule-location-form { display:grid; grid-template-columns:minmax(220px,1fr) max-content; gap:8px 10px; align-items:center; margin:0; }
.schedule-location-form label { grid-column:1 / -1; margin:0; font-weight:750; }
.schedule-location-form select,.schedule-date-form input { width:100%; min-width:0; min-height:44px; margin:0; }
.schedule-location-form .button,.schedule-date-form .button,.schedule-day-nav > .button { width:auto; min-height:44px; height:44px; margin:0; }
.schedule-date-form { display:grid; grid-template-columns:minmax(170px,1fr) max-content; gap:8px 10px; align-items:center; margin:0; }
.schedule-date-form label,.schedule-range > span { grid-column:1 / -1; margin:0; font-weight:750; }
.schedule-range { display:grid; grid-template-columns:repeat(4,max-content); align-items:center; gap:8px; }
.schedule-range a { display:inline-flex; align-items:center; min-height:44px; padding:8px 14px; border:1px solid var(--ink); border-radius:6px; color:var(--ink); font-weight:750; text-decoration:none; }
.schedule-range a:hover,.schedule-range a:focus-visible,.schedule-range a.is-active { background:var(--ink); color:#fff; }
.schedule-day-nav { display:grid; grid-template-columns:repeat(3,max-content); align-items:center; gap:8px 10px; min-width:0; }
.schedule-day-nav > strong { grid-column:1 / -1; grid-row:1; margin:0; text-align:left; }
.schedule-day-nav > strong span { display:block; margin-bottom:3px; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.schedule-summary { display:flex; flex-wrap:wrap; gap:0; margin:18px 0 6px; padding:14px 18px; border:1px solid var(--line); border-radius:10px; background:#f7faef; }
.schedule-summary span { padding:2px 20px; border-right:1px solid var(--line); color:var(--muted); }
.schedule-summary span:first-child { padding-left:0; }
.schedule-summary span:last-child { border-right:0; }
.schedule-summary strong { color:var(--ink); font-size:18px; }
.schedule-section { margin-top:30px; }
.schedule-section > h2 { margin:0 0 10px; font-size:21px; }
.schedule-section > h2 span { color:var(--muted); font-size:15px; font-weight:650; }
.schedule-grid { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.schedule-grid__header,.schedule-grid__row { display:grid; grid-template-columns:72px 90px minmax(105px,1fr) minmax(110px,1.05fr) minmax(120px,1.15fr) minmax(140px,1.15fr) minmax(115px,1fr) 54px; gap:12px; align-items:start; }
.schedule-grid__header { padding:11px 14px; background:#f2f5ee; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.schedule-grid__row { padding:15px 14px; border-top:1px solid var(--line); }
.schedule-grid__row--confirmed { background:#f3fae5; box-shadow:inset 4px 0 0 #78a33b; }
.schedule-grid__row--attention { box-shadow:inset 4px 0 0 #9d3f2f; }
.schedule-cell { min-width:0; overflow-wrap:anywhere; }
.schedule-cell__label { display:none; }
.schedule-cell--date,.schedule-cell--time { color:var(--ink); font-weight:750; white-space:nowrap; }
.schedule-section--commercial .schedule-cell--time { white-space:normal; }
.schedule-cell--assignment strong,.schedule-cell--assignment small { display:block; }
.schedule-cell--assignment small { margin-top:4px; color:var(--muted); }
.schedule-entry__statuses { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.schedule-badge { display:inline-flex; align-items:center; min-height:26px; padding:3px 8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); font-size:11px; font-weight:800; letter-spacing:.04em; line-height:1.2; }
.schedule-badge--type { background:#eef5da; border-color:#d2dfb0; }
.schedule-badge--attention { background:#fff0ec; border-color:#d9a79d; color:#7e281c; }
.schedule-badge--confirmed { background:#dff1bd; border-color:#8eb04e; color:#294d13; }
.schedule-entry__open { font-weight:800; white-space:nowrap; }
.schedule-empty { margin-top:24px; padding:28px 4px; border-block:1px solid var(--line); }
.schedule-empty h2 { margin:0 0 6px; }
.schedule-detail { margin-top:26px; }
.schedule-detail h2 { margin-top:0; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width: 1040px) {
  .schedule-controls { grid-template-columns:minmax(360px,1.1fr) minmax(330px,.9fr); gap-inline:22px; }
  .schedule-grid__header,.schedule-grid__row { grid-template-columns:66px 70px minmax(95px,1fr) minmax(100px,1fr) minmax(110px,1.1fr) minmax(130px,1.1fr) minmax(105px,1fr) 48px; gap:8px; }
}
@media (max-width: 900px) {
  .schedule-controls { grid-template-columns:minmax(0,1fr); }
  .schedule-location-form,.schedule-date-form { max-width:620px; }
}
@media (max-width: 780px) {
  .schedule-heading { align-items:start; flex-direction:column; }
  .schedule-location-form { grid-template-columns:minmax(0,1fr) auto; }
  .schedule-date-form { grid-template-columns:minmax(0,1fr) auto; width:100%; }
  .schedule-grid { border:0; overflow:visible; background:transparent; }
  .schedule-grid__header { display:none; }
  .schedule-grid__row { grid-template-columns:1fr 1fr; gap:12px 18px; margin-bottom:12px; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fff; }
  .schedule-cell__label { display:block; margin-bottom:3px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
  .schedule-cell--party,.schedule-cell--vehicle,.schedule-cell--service,.schedule-cell--status,.schedule-cell--assignment { grid-column:1 / -1; }
  .schedule-cell--open { grid-column:2; grid-row:1 / span 2; justify-self:end; align-self:center; }
}
@media (max-width: 520px) {
  .schedule-heading { gap:16px; }
  .schedule-quick-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .schedule-quick-actions .button { width:100%; min-width:0; padding-inline:10px; }
  .schedule-controls { padding:14px; }
  .schedule-location-form { grid-template-columns:minmax(0,1fr); }
  .schedule-location-form .button { width:100%; }
  .schedule-date-form { grid-template-columns:1fr auto; }
  .schedule-date-form label { grid-column:1 / -1; }
  .schedule-range { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .schedule-range a { justify-content:center; padding-inline:7px; }
  .schedule-day-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .schedule-day-nav > .button { width:100%; padding-inline:8px; }
  .schedule-summary { display:grid; grid-template-columns:1fr 1fr; padding:10px 14px; }
  .schedule-summary span,.schedule-summary span:first-child { padding:8px; border-right:0; }
  .schedule-grid__row { grid-template-columns:minmax(0,1fr) auto; }
  .schedule-entry__open { min-height:44px; display:flex; align-items:center; }
  .schedule-detail__actions { display:grid; grid-template-columns:1fr; }
  .schedule-detail__actions .button { width:100%; }
}
@media (max-width: 350px) {
  .schedule-quick-actions,.schedule-summary { grid-template-columns:1fr; }
}

/* Authenticated staff checkout */
.internal-checkout{max-width:1060px;padding-bottom:64px;min-width:0}.internal-checkout__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.internal-checkout__heading h1{margin:.15rem 0 .35rem}.internal-checkout__heading p{max-width:700px}.internal-checkout__mode{display:inline-flex;padding:8px 12px;border-radius:999px;background:var(--lime);color:var(--ink);font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.78rem}.internal-checkout__shop,.internal-checkout__customer,.internal-builder>section,.internal-order-summary,.internal-appointment,.internal-payment,.internal-confirmation{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:18px;min-width:0}.internal-checkout__shop{display:grid;grid-template-columns:150px minmax(240px,420px);align-items:center;gap:16px}.internal-checkout__shop label{font-weight:800}.internal-search{max-width:680px}.internal-search>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.internal-search-results{display:grid;gap:8px;margin-top:14px}.internal-search-results a,.internal-selected{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:14px;border:1px solid var(--line);border-radius:8px;text-decoration:none;min-width:0}.internal-search-results span,.internal-selected small{color:var(--muted);flex:1 1 260px;overflow-wrap:anywhere}.internal-selected{background:#f4f8ec}.internal-selected>span{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.internal-builder>section h2,.internal-appointment h2,.internal-payment h2{margin-top:0}.internal-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}.internal-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);cursor:pointer;min-width:0}.internal-choice:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:#f4f8ec}.internal-choice:has(input:disabled){opacity:.55;cursor:not-allowed}.internal-choice input{width:20px;height:20px;margin:0}.internal-choice span{display:flex;flex-direction:column;gap:3px;min-width:0}.internal-choice small{color:var(--muted);line-height:1.35}.internal-choice b{white-space:nowrap}.internal-choice--covered b{color:#456300}.internal-new-vehicle{margin-top:16px}.internal-new-vehicle summary{font-weight:800;cursor:pointer}.internal-new-vehicle[open] summary{margin-bottom:16px}.internal-checkout__total{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 20px;border-top:2px solid var(--ink);padding:20px 4px;margin-top:10px}.internal-checkout__total span{font-weight:800}.internal-checkout__total strong{font-size:1.55rem}.internal-checkout__total small{grid-column:1/-1;color:var(--muted)}.internal-checkout__continue{width:100%;min-height:54px}.internal-order-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.internal-order-summary div{display:flex;flex-direction:column;gap:4px;min-width:0}.internal-order-summary strong{overflow-wrap:anywhere}.internal-order-summary span{font-size:.75rem;font-weight:800;text-transform:uppercase;color:var(--muted);letter-spacing:.06em}.internal-date{display:flex;align-items:end;gap:12px;margin-bottom:18px}.internal-date label{flex:0 1 280px}.internal-slot-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}.internal-slot{display:flex;align-items:center;gap:10px;min-height:68px;padding:12px;border:1px solid var(--line);border-radius:8px}.internal-slot:has(input:checked){border-color:var(--ink);background:#f4f8ec}.internal-slot span{display:flex;flex-direction:column}.internal-slot input{width:20px;height:20px}.internal-accept{margin:12px 0}.internal-payment form,.internal-confirmation__actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.internal-confirmation dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 20px;margin:24px 0}.internal-confirmation dt{font-weight:800;color:var(--muted)}.internal-confirmation dd{margin:0;overflow-wrap:anywhere}.internal-start-over{margin-top:12px}.admin-message{padding:14px 16px;border:1px solid #c9d8aa;border-radius:8px;background:#f6faea;overflow-wrap:anywhere}
@media(max-width:768px){.internal-choice-list{grid-template-columns:1fr}.internal-slot-list{grid-template-columns:repeat(2,minmax(0,1fr))}.internal-order-summary{grid-template-columns:1fr}.internal-checkout__shop{grid-template-columns:1fr}.internal-checkout__heading{align-items:flex-start}.internal-date{align-items:stretch;flex-direction:column}.internal-date .button{width:100%}}
.internal-quote{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:18px;min-width:0}.internal-quote h2{margin-top:0}.internal-quote__lines{display:grid;gap:10px;margin:18px 0}.internal-quote__lines>div{display:flex;justify-content:space-between;gap:20px;padding-bottom:10px;border-bottom:1px solid var(--line)}.internal-quote__lines strong{white-space:nowrap}.internal-quote__lines .internal-quote__total{padding-top:8px;border-bottom:0;border-top:2px solid var(--ink);font-size:1.15rem}.internal-quote__actions{display:flex;flex-wrap:wrap;gap:12px}.internal-quote__actions .button{flex:1 1 220px}
@media(max-width:390px){.internal-checkout__heading{flex-direction:column;gap:8px}.internal-search>div{grid-template-columns:1fr}.internal-search .button{width:100%}.internal-choice{grid-template-columns:auto minmax(0,1fr)}.internal-choice b{grid-column:2}.internal-slot-list{grid-template-columns:1fr}.internal-confirmation dl{grid-template-columns:1fr;gap:3px}.internal-confirmation dd{margin-bottom:10px}.internal-payment form .button,.internal-confirmation__actions .button,.internal-confirmation__actions form{width:100%}}
.internal-choice-help{margin-top:-.25rem;color:var(--muted)}.addon-reason{display:block;margin-top:.25rem;color:#7a5520;font-style:normal}.internal-family-vehicle,.internal-custom-service{margin-top:1.25rem;padding:1rem;border:1px solid var(--line);border-radius:10px;background:#fafbf7}.internal-family-vehicle[hidden]{display:none}.internal-custom-service .button{margin-top:.5rem}#custom-service-status{min-height:1.5em;margin:.5rem 0 0;color:var(--muted)}
.internal-service-address{margin:0 0 22px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f4f8ec}.internal-service-address h3{margin-top:0}.internal-service-address p{color:var(--muted)}
.internal-checkout__customer>div>p{margin:12px 0 0}.internal-checkout__customer .internal-selected{margin-top:14px}
.internal-custom-service__fields{grid-template-columns:minmax(0,3fr) minmax(160px,1fr)}.internal-custom-service__fields .admin-field-wide{grid-column:auto}.internal-custom-service__fields textarea{min-height:120px}.internal-custom-service__lines{display:grid;gap:10px;margin-top:16px}.internal-custom-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.internal-custom-line span{display:flex;flex-direction:column;gap:3px;min-width:0}.internal-custom-line strong{overflow-wrap:anywhere}.internal-custom-line small{color:var(--muted)}.internal-custom-line .button{flex:0 0 auto;min-height:44px;margin:0}
@media(max-width:600px){.internal-custom-service__fields{grid-template-columns:1fr}.internal-custom-line{align-items:stretch;flex-direction:column}.internal-custom-line .button{width:100%}}
.internal-payment__paths{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.internal-payment__paths form{margin:0}.internal-reservation dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 20px;margin:24px 0}.internal-reservation dt{font-weight:800;color:var(--muted)}.internal-reservation dd{margin:0;overflow-wrap:anywhere}
@media(max-width:390px){.internal-reservation dl{grid-template-columns:1fr;gap:3px}.internal-reservation dd{margin-bottom:10px}.internal-payment__paths,.internal-payment__paths form,.internal-payment__paths .button{width:100%}}
