/* Department-controlled account displays and self-cancellation settings. */
.general-settings-card.employee-preference-settings{border-color:var(--ds-line)}
.employee-preference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.employee-preference-grid label,.employee-warning-threshold{display:grid;gap:8px;min-width:0;font-weight:650}
.employee-warning-threshold{margin-top:16px}
.employee-warning-threshold small{color:var(--ds-muted);font-weight:400;line-height:1.5}
.employee-preference-grid .input,.employee-self-cancel-settings .input{width:100%;min-width:0;box-sizing:border-box}
.employee-self-cancel-settings{display:grid;gap:12px;margin:20px 0;padding-top:18px;border-top:1px solid var(--ds-line)}
.employee-self-cancel-toggle{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700}
.employee-self-cancel-toggle input{width:20px;height:20px;accent-color:var(--ds-primary,#0066ff);flex:none}
.employee-self-cancel-settings small{line-height:1.5;color:var(--ds-muted)}
.account-status-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:14px;font-size:13px}
.account-status{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.account-status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none;background:currentColor}
.account-status.balance-positive{color:var(--ds-success-text)}
.account-status.balance-negative{color:var(--ds-danger-text)}
.account-status.balance-zero{color:var(--ds-muted)}
.account-status.balance-warning,.employee-balance.balance-warning{color:var(--ds-warning-text,#805500)}
.account-status.balance-warning .account-status-dot{background:#E8B317}
#appScreen.employee-app-mode:not(.breakfast-focus-mode) .employee-sidebar-balance.is-warning{border-color:#B79C60;background:#4C452D;color:#FFF1B8}
#appScreen.employee-app-mode:not(.breakfast-focus-mode) .employee-sidebar-balance.is-warning .account-status-dot{background:#FFD65C}
#appScreen.employee-app-mode:not(.breakfast-focus-mode) .employee-sidebar-balance.is-zero{border-color:#7E91A4;background:#34485C;color:#E2E8F0}
.history-self-cancel{margin-left:auto;min-height:44px;white-space:normal;font-size:13px;padding:8px 12px}
.employee-preference-settings .input:focus-visible,.employee-self-cancel-toggle input:focus-visible,.history-self-cancel:focus-visible{outline:3px solid var(--ds-focus-ring,#00D9FF);outline-offset:3px}
@media(max-width:600px){.employee-preference-grid{grid-template-columns:minmax(0,1fr)}.employee-preference-settings .general-settings-content{min-width:0}.employee-preference-settings .btn-primary{width:100%}.employee-self-cancel-settings select{font-size:16px}}
