.staff-pos-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: var(--space-5); align-items: start; }
.staff-pos-layout > *, .staff-pos-layout .form-row { min-width: 0; }
.staff-pos-layout input:not([type=checkbox]):not([type=radio]), .staff-pos-layout select, .staff-pos-layout textarea { width: 100%; min-width: 0; }
.staff-menu-list { display: grid; gap: var(--space-2); max-height: 65vh; overflow-y: auto; margin-top: var(--space-4); }
.staff-menu-option { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); border: 1px solid var(--line); padding: var(--space-4); border-radius: var(--r-md); color: var(--ink); }
.staff-menu-option:hover, .staff-menu-option:focus-visible { background: var(--brand-tint); border-color: var(--brand); }
.staff-menu-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.staff-menu-option > span:last-child { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.staff-menu-option small { display: block; color: var(--muted); }
.staff-basket-line { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.staff-basket-line > div { min-width: 0; }
.staff-basket-line > div:first-child { flex: 1 1 0; }
.staff-basket-line > div:last-child { flex: 0 0 auto; text-align: right; }
.staff-basket-line > strong, .staff-basket-line > div:last-child > strong { flex-shrink: 0; white-space: nowrap; }
.staff-basket-line > div:last-child .btn { white-space: nowrap; }
.staff-extra-group { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--space-4); margin-block: var(--space-4); min-width: 0; }
.staff-extra-group legend { font-weight: var(--fw-semibold); padding-inline: var(--space-2); }
.staff-extra-group .checkbox { padding-block: var(--space-2); }
.staff-action-list { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-block: var(--space-3); }
.staff-correction-history { display: grid; gap: var(--space-4); }
.staff-correction-history details { border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.staff-correction-history dd { overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 64rem) { .staff-pos-layout { grid-template-columns: 1fr; } .staff-menu-list { max-height: 40vh; } }

.staff-history-list { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.staff-history-customer { min-width: 0; padding-block: var(--space-3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.staff-history-customer h3 { margin: 0; }
.staff-history-customer .staff-action-list form { max-width: 100%; }
.staff-history-customer .btn { white-space: normal; text-align: left; }

.amendment-line-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.amendment-line-editor .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 30rem) { .amendment-line-editor { grid-template-columns: 1fr; } .staff-basket-line { flex-wrap: wrap; } }

.employee-team-layout { display: grid; grid-template-columns: minmax(20rem,.8fr) minmax(0,1.2fr); gap: var(--space-5); align-items: start; }
.employee-team-layout > *, .employee-form .form-row { min-width: 0; }
.employee-form { gap: var(--space-5); }
.employee-form input:not([type=checkbox]):not([type=radio]), .employee-form select { width: 100%; min-width: 0; }
.employee-form-section { padding: 0 0 var(--space-5); margin: 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.employee-form-section h3, .employee-form-section legend { margin: 0 0 var(--space-2); font-size: var(--text-base); font-weight: var(--fw-semibold); }
.employee-permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.employee-form label.employee-permission-card { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; min-width: 0; }
.employee-permission-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.employee-permission-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.employee-permission-card input { flex: 0 0 auto; margin-top: .15em; }
.employee-permission-card small { display: block; font-weight: normal; color: var(--muted); margin-top: var(--space-2); line-height: 1.5; }
.employee-permission-card.is-unavailable { opacity: .65; cursor: default; }
.employee-access-note { padding: var(--space-3); border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand); font-size: var(--text-sm); }
.employee-advanced { margin-top: var(--space-4); }
.employee-advanced summary, .employee-remove summary { cursor: pointer; font-weight: var(--fw-semibold); }
.employee-advanced .staff-permissions { margin-top: var(--space-3); }
.employee-form-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.employee-list .employee-member > summary { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); cursor: pointer; list-style: none; border-radius: var(--r-lg); }
.employee-member > summary::-webkit-details-marker { display: none; }
.employee-list .employee-member[open] > summary { border-bottom: 1px solid var(--line); border-radius: 0; }
.employee-summary-name { display: grid; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.employee-summary-name small { color: var(--muted); }
.employee-summary-badges { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.employee-remove { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.employee-time-filter { display: flex; gap: var(--space-4); align-items: end; flex-wrap: wrap; margin-bottom: var(--space-5); }
.employee-time-filter .form-row { flex: 1 1 12rem; margin: 0; }
.employee-shift-correction { margin-top: var(--space-4); }
.employee-time-actions { margin-top: var(--space-4); }
@media (max-width: 64rem) { .employee-team-layout { grid-template-columns: 1fr; } }
@media (max-width: 35rem) { .employee-permission-grid { grid-template-columns: 1fr; } .employee-list .employee-member > summary { flex-direction: column; gap: var(--space-3); } .employee-summary-badges { justify-content: flex-start; } }

.employee-form-section > .form-row + .form-row, .employee-form-section > .form-grid { margin-top: var(--space-4); }
.employee-member[open] .employee-summary-badges > .ico { transform: rotate(180deg); }
