/* Expenses register: same navy, teal and Readex typography as the merchant shell. */
#expenses-section.catalog-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.expenses { display: grid; gap: 16px; color: #19343e; }
.expenses button { font: inherit; cursor: pointer; }
.expenses button:disabled { opacity: .55; cursor: not-allowed; }
.expenses-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.expenses-summary { margin: 0; color: #415e68; font-size: 14px; font-weight: 600; }
.expenses-summary[hidden], .expenses-new[hidden], .expenses-clear[hidden], .expenses-more[hidden], .expenses-table[hidden], .expenses-empty[hidden], .expenses-success[hidden], .expenses-branches[hidden] { display: none; }
.expenses-new, .expense-form-submit, .expense-type-save { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: #087e91; color: #fff; font-weight: 700; font-size: 14px; }
.expenses-new { margin-inline-start: auto; }
.expenses-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 20px; background: #fff; border: 1px solid #e0eaed; border-radius: 12px; }
.expenses-tools label { display: grid; gap: 7px; min-width: 170px; flex: 1 1 170px; color: #415e68; font-size: 13px; font-weight: 600; }
.expenses-tools select, .expenses-tools input[type=date] { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid #d5e3e7; border-radius: 8px; background: #fff; color: #19343e; font: inherit; font-size: 14px; }
.expenses-branches { flex: 1 1 100%; margin: 0; padding: 0; border: 0; }
.expenses-branches legend { padding: 0; margin-bottom: 7px; color: #415e68; font-size: 13px; font-weight: 600; }
.expenses-branch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.expenses-branch-list label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; min-width: 0; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid #d5e3e7; border-radius: 22px; font-weight: 500; cursor: pointer; }
.expenses-branch-list input { width: 18px; height: 18px; accent-color: #087e91; }
.expenses-clear, .expenses-more, .expense-type-add, .expense-type-cancel { min-height: 44px; padding: 0 16px; border: 1px solid #d6e4e8; border-radius: 9px; background: #fff; color: #315964; font-weight: 600; font-size: 14px; }
.expenses-more { justify-self: center; }
.expenses-message { margin: 0; color: #526f79; font-size: 13px; line-height: 1.7; }
.expenses-message:empty { display: none; }
.expenses-success { margin: 0; padding: 12px 14px; border-radius: 8px; background: #e5f5ee; color: #1f6b4a; font-size: 14px; font-weight: 600; }
.expenses-table { overflow-x: auto; border: 1px solid #e0eaed; border-radius: 12px; background: #fff; }
.expenses-list-head, .expense-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr .9fr 1fr .9fr; align-items: center; gap: 12px; min-width: 900px; text-align: right; }
.expenses-list-head { padding: 14px 18px; background: #f4f8f9; color: #607985; font-size: 12px; font-weight: 600; }
.expense-row { min-height: 60px; padding: 12px 18px; border-top: 1px solid #edf2f3; color: #263f48; font-size: 14px; }
.expense-row-reversed { color: #8a9aa2; }
.expense-number { color: #087b86; font-weight: 700; direction: ltr; text-align: right; white-space: nowrap; }
.expense-ltr { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.expense-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.expense-owed { color: #a64038; font-weight: 700; }
.expense-tag { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 6px; background: #fbeceb; color: #a64038; font-size: 11px; font-weight: 700; }
.expenses-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; background: #fff; border: 1px solid #e0eaed; border-radius: 12px; text-align: center; }
.expenses-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #e8f5f6; color: #087e91; font-size: 24px; }
.expenses-empty h3 { margin: 6px 0 0; font-size: 17px; }
.expenses-empty p { margin: 0; color: #607985; font-size: 14px; line-height: 1.7; }

.expense-form-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid #e0e9ee; border-radius: 12px; background: #fff; color: #102235; box-shadow: 0 24px 80px #10223535; }
.expense-form-dialog::backdrop { background: #10223588; }
.expense-form { display: grid; gap: 14px; padding: 22px 24px 24px; }
.expense-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.expense-form-head h3 { margin: 0; font-size: 20px; }
.expense-form-close { width: 44px; height: 44px; border: 1px solid #e0e9ee; border-radius: 8px; background: #fff; color: #617a88; font-size: 22px; }
.expense-form label { display: grid; gap: 6px; margin: 0; color: #415e68; font-size: 13px; font-weight: 600; }
.expense-form label small { color: #8b9ca5; font-weight: 400; }
.expense-form input[type=text], .expense-form input[type=date], .expense-form select, .expense-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #d5e3e7; border-radius: 8px; background: #fff; color: #19343e; font: inherit; font-size: 14px; }
.expense-form input[dir=ltr] { text-align: left; }
.expense-form textarea { resize: vertical; }
.expense-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.expense-form-row { display: flex; align-items: end; gap: 10px; }
.expense-form-row label { flex: 1; }
.expense-type-new { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 8px; background: #f5fafb; border: 1px solid #dcebef; }
.expense-type-new[hidden], .expense-paid[hidden], .expense-branch-field[hidden] { display: none; }
.expense-type-new label { flex: 1 1 200px; }
.expense-form label.expense-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.expense-check input { width: 20px; height: 20px; accent-color: #087e91; }
.expense-option { display: grid; gap: 6px; color: #415e68; font-size: 13px; font-weight: 600; }
.expense-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.expense-method button { min-height: 44px; border: 1px solid #d6e1e7; border-radius: 8px; background: #fff; color: #3f5c6e; font-size: 14px; }
.expense-method button[aria-pressed="true"] { background: #e8f5f6; border-color: #087e91; color: #087e91; font-weight: 700; }
.expense-form-message { margin: 0; color: #a64038; font-size: 13px; line-height: 1.7; }
.expense-form-message:empty { display: none; }
.expense-form-submit { height: 52px; font-size: 16px; }
@media (max-width: 560px) { .expense-form-grid { grid-template-columns: 1fr; } }

/* Team: add an employee by phone. */
.member-add { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid #e0eaed; border-radius: 10px; background: #f9fbfc; }
.member-add[hidden] { display: none; }
.member-add label { display: grid; gap: 7px; flex: 1 1 200px; margin: 0; color: #415e68; font-size: 13px; font-weight: 600; }
.member-add input, .member-add select { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid #d5e3e7; border-radius: 8px; background: #fff; color: #19343e; font: inherit; font-size: 14px; }
.member-add input { text-align: left; }
.member-add button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: #087e91; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.member-add button:disabled { opacity: .55; cursor: not-allowed; }
.member-add p { flex: 1 1 100%; margin: 0; color: #607985; font-size: 12px; line-height: 1.7; }

/* Loyalty settings. */
.loyalty-form { display: grid; gap: 18px; color: #19343e; }
.loyalty-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.loyalty-head h2 { margin: 0 0 6px; font-size: 18px; }
.loyalty-head p { margin: 0; max-width: 560px; color: #607985; font-size: 13px; line-height: 1.8; }
.loyalty-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #d5e3e7; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; }
.loyalty-switch input { width: 20px; height: 20px; accent-color: #087e91; }
.loyalty-switch:has(input:checked) { border-color: #087e91; background: #e8f5f6; color: #087e91; }
.loyalty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.loyalty-grid label { display: grid; gap: 6px; margin: 0; color: #415e68; font-size: 13px; font-weight: 600; }
.loyalty-grid input { min-height: 44px; padding: 0 12px; border: 1px solid #d5e3e7; border-radius: 8px; background: #fff; color: #19343e; font: inherit; font-size: 15px; text-align: left; }
.loyalty-grid input:disabled { background: #f4f8f9; }
.loyalty-grid small { color: #8b9ca5; font-size: 12px; font-weight: 400; line-height: 1.6; }
.loyalty-example { margin: 0; padding: 14px 16px; border-radius: 8px; background: #e8f5f6; color: #0b6470; font-size: 15px; font-weight: 600; line-height: 1.8; }
.loyalty-example[hidden], .loyalty-save[hidden] { display: none; }
.loyalty-rules { margin: 0; padding-inline-start: 20px; color: #607985; font-size: 13px; line-height: 2; }
.loyalty-message { margin: 0; font-size: 14px; line-height: 1.7; color: #526f79; }
.loyalty-message:empty { display: none; }
.loyalty-message-error { color: #a64038; }
.loyalty-message-success { padding: 12px 14px; border-radius: 8px; background: #e5f5ee; color: #1f6b4a; font-weight: 600; }
.loyalty-save { justify-self: start; min-height: 48px; padding: 0 22px; border: 0; border-radius: 9px; background: #087e91; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.loyalty-save:disabled { opacity: .55; cursor: not-allowed; }

/* Loyalty in the POS. */
.pos-loyalty-balance { flex: none !important; padding: 3px 9px; border-radius: 12px; background: #fff; color: #087e91 !important; font-weight: 700; }
.pos-loyalty-balance:empty { display: none; }
.pos-loyalty-row[hidden], .pos-loyalty-earn[hidden] { display: none; }
.pos-loyalty-toggle { width: 100%; min-height: 44px; padding: 0 12px; border: 1px dashed #087e91; border-radius: 8px; background: #f3fbfb; color: #087e91; font: inherit; font-size: 14px; font-weight: 700; }
.pos-loyalty-toggle[aria-pressed="true"] { border-style: solid; background: #087e91; color: #fff; }
.pos-loyalty-toggle:disabled { opacity: .55; }
#pos-loyalty-amount { color: #087e91; }
.pos-loyalty-earn { margin: 8px 0 0; color: #1f6b4a; font-size: 13px; }

/* Staff list (employees with or without a login). */
#employees-host { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #e0eaed; }
.employees-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.employees-new { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: #087e91; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.employees-new[hidden], .employees-table[hidden], .employees-empty[hidden], .employee-branches[hidden], .employee-active[hidden], .employee-account-note[hidden] { display: none; }
.employees-message { margin: 0 0 12px; color: #526f79; font-size: 14px; line-height: 1.7; }
.employees-message:empty { display: none; }
.employees-message-error { color: #a64038; }
.employees-message-success { padding: 12px 14px; border-radius: 8px; background: #e5f5ee; color: #1f6b4a; font-weight: 600; }
.employees-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; text-align: center; }
.employees-empty h3 { margin: 6px 0 0; font-size: 17px; }
.employees-empty p { margin: 0; color: #607985; font-size: 14px; }
.employee-inactive { color: #8a9aa2; }
.employee-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #eef2f4; color: #56707b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.employee-tag-account { background: #e8f5f6; color: #087e91; }
.employee-edit { min-height: 44px; padding: 0 14px; border: 1px solid #d6e4e8; border-radius: 9px; background: #fff; color: #315964; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.employee-account-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f3f8fa; color: #526f79; font-size: 13px; line-height: 1.7; }
.employee-form fieldset.employee-branches { flex: none; }
