@font-face {
  font-family: "Liebherr Head";
  src: url("../brand/liebherr/fonts/LiebherrHead-Regular_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Zahlungserinnerungen */
.reminder-settings-card{max-width:980px}
.mail-settings-card{max-width:980px}
.mail-settings-grid{margin-top:18px}
.mail-settings-actions{display:flex;flex-wrap:wrap;gap:10px}
.mail-imap-preparation{margin-top:18px;border-top:1px solid rgba(255,255,255,.1);padding-top:14px}
.mail-imap-preparation summary{cursor:pointer;color:var(--brand-yellow);font-weight:700}
.mail-imap-preparation .form-grid{margin-top:16px}
.reminder-settings-grid{margin-top:18px}
.readonly-input{display:flex;align-items:center;color:var(--text-muted);cursor:default}
.reminder-test-row{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:14px;align-items:end}
.reminder-test-row .field{margin:0}
.reminder-cell{min-width:190px}
.reminder-note{display:block;max-width:300px;margin-top:6px;line-height:1.35;color:var(--text-muted)}
.reminder-history{margin-top:7px;font-size:.86rem}
.reminder-history summary{color:var(--brand-yellow);cursor:pointer}
.reminder-history>div{display:flex;flex-direction:column;padding:7px 0;border-top:1px solid rgba(255,255,255,.08)}
.reminder-history small{color:var(--text-muted)}

@media(max-width:640px){
  .mail-settings-actions .btn{width:100%}
  .reminder-test-row{grid-template-columns:1fr}
  .reminder-test-row .btn{width:100%}
  .reminder-settings-card .actions .btn{width:100%}
  .reminder-cell{min-width:0}
  .reminder-note{max-width:none}
}

@font-face {
  font-family: "Liebherr Head";
  src: url("../brand/liebherr/fonts/LiebherrHead-Black_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-Regular_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-RegularItalic_Web.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-Medium_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-MediumItalic_Web.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-Bold_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Liebherr Text";
  src: url("../brand/liebherr/fonts/LiebherrText-BoldItalic_Web.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand-yellow: #ffed00;
  --brand-yellow-hover: #f2df00;
  --brand-yellow-pressed: #d8c700;
  --bg-app: #101214;
  --bg-surface: #181b1e;
  --bg-surface-elevated: #212529;
  --bg-surface-hover: #292e33;
  --bg-sidebar: #090b0c;
  --border-subtle: #30353a;
  --border-strong: #474e55;
  --text-primary: #f5f6f6;
  --text-secondary: #c7cbce;
  --text-muted: #92999f;
  --danger: #ff726b;
  --danger-bg: rgba(255, 114, 107, .11);
  --warning: #ffb85c;
  --warning-bg: rgba(255, 184, 92, .11);
  --success: #5bd8ae;
  --success-bg: rgba(91, 216, 174, .11);
  --focus-ring: rgba(255, 237, 0, .28);

  /* Compatibility aliases for the existing component styles. */
  --brand: var(--brand-yellow);
  --brand-dark: var(--brand-yellow);
  --brand-bg: rgba(255, 237, 0, .09);
  --brand-text: #fff27a;
  --sidebar: var(--bg-sidebar);
  --sidebar-text: #b7bdc1;
  --surface: var(--bg-app);
  --card: var(--bg-surface-elevated);
  --border: var(--border-subtle);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --radius: 10px;
}

html,
body,
#app {
  background: var(--bg-app);
}

body {
  color: var(--text-primary);
  font-family: "Liebherr Text", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

::selection {
  color: #0a0b0c;
  background: var(--brand-yellow);
}

::placeholder {
  color: #747c82;
  opacity: 1;
}

h1,
h2,
h3,
.brand,
.metric-value,
.payment-summary-value,
.payment-dialog-amount {
  font-family: "Liebherr Head", "Arial Black", "Segoe UI", sans-serif;
}

h1,
h2,
.metric-value,
.payment-summary-value,
.payment-dialog-amount {
  font-weight: 900;
  letter-spacing: .01em;
}

h3 {
  font-weight: 400;
}

a {
  color: var(--brand-yellow);
}

:where(a, button, input, select, textarea):focus-visible,
.input:focus-visible {
  outline-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.app-shell,
.content,
.content-public {
  background: var(--bg-app);
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid #202428;
  color: var(--text-primary);
}

.brand {
  position: relative;
  border-bottom-color: #262a2e;
  color: var(--text-primary);
  letter-spacing: .02em;
}

.brand::after {
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  height: 2px;
  background: var(--brand-yellow);
  content: "";
}

.brand-icon {
  color: var(--brand-yellow);
}

.nav-section {
  color: #747b81;
  font-weight: 700;
}

.nav-item {
  border-left: 3px solid transparent;
  color: var(--sidebar-text);
  font-weight: 500;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  border-left-color: var(--brand-yellow);
  color: var(--brand-yellow);
  background: rgba(255, 237, 0, .075);
  font-weight: 700;
}

.sidebar :where(a, button):focus-visible {
  outline-color: var(--brand-yellow);
}

.profile {
  border-color: #34393e;
  background: #15181b;
  color: var(--text-primary);
}

.profile:hover {
  border-color: #555d64;
  background: #1d2125;
}

.profile small,
.logout {
  color: var(--text-muted);
}

.avatar {
  color: #0a0b0c;
  background: var(--brand-yellow);
}

.page-header {
  background: rgba(24, 27, 30, .97);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
}

.page-header h1 {
  color: var(--text-primary);
}

.page-header .subtitle {
  color: var(--text-muted);
}

.card {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

.card-header {
  border-bottom-color: var(--border-subtle);
}

.card-header h2,
.card h2,
.card h3 {
  color: var(--text-primary);
}

.metric {
  min-height: 126px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-yellow);
  color: var(--text-primary);
  background: linear-gradient(150deg, #252a2e 0%, #1d2124 100%);
}

.metric::after {
  position: absolute;
  right: -30px;
  bottom: -55px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 237, 0, .1);
  border-radius: 50%;
  content: "";
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid rgba(255, 237, 0, .2);
  border-radius: 6px;
  color: var(--brand-yellow);
  background: rgba(255, 237, 0, .07);
}

.metric-label {
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.metric-value {
  position: relative;
  z-index: 1;
  color: var(--brand-yellow);
  font-size: 32px;
}

.metric-value-compact {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-sub {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  opacity: 1;
}

.btn {
  min-height: 38px;
  border-color: var(--border-strong);
  border-radius: 7px;
  color: var(--text-primary);
  background: var(--bg-surface);
  font-weight: 700;
}

.btn:hover {
  border-color: #626a72;
  background: var(--bg-surface-hover);
}

.btn:active {
  background: #30363b;
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--brand-yellow);
  color: #0b0c0d;
  background: var(--brand-yellow);
}

.btn-primary:hover {
  border-color: var(--brand-yellow-hover);
  color: #0b0c0d;
  background: var(--brand-yellow-hover);
}

.btn-primary:active {
  background: var(--brand-yellow-pressed);
}

.btn-danger {
  border-color: rgba(255, 114, 107, .45);
  color: #ff938e;
  background: var(--danger-bg);
}

.btn-danger:hover {
  border-color: var(--danger);
  color: #ffd3d0;
  background: rgba(255, 114, 107, .18);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn:disabled {
  border-color: #3a4045;
  color: #92999f;
  background: #24282c;
  opacity: 1;
}

.field label {
  color: var(--text-secondary);
}

.input {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: #15181b;
}

.input:hover {
  border-color: #606870;
}

.input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input:disabled {
  color: #7e858a;
  background: #141618;
  opacity: .7;
}

select.input,
select.input option,
textarea.input {
  color: var(--text-primary);
  background-color: #15181b;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-yellow);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: 0 0 0 1000px #15181b inset;
}

.table-wrap {
  scrollbar-color: #4b5258 #171a1d;
}

th,
td {
  border-bottom-color: var(--border-subtle);
}

th {
  color: #aeb4b8;
  background: #191d20;
}

tbody tr:hover {
  background: rgba(255, 255, 255, .035);
}

.badge {
  color: var(--text-secondary);
  background: #30353a;
}

.badge-ok {
  color: var(--success);
  background: var(--success-bg);
}

.badge-warn {
  color: var(--warning);
  background: var(--warning-bg);
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.product-tile {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-surface);
}

.product-tile:hover,
.product-tile.selected {
  border-color: var(--brand-yellow);
  background: var(--brand-bg);
  box-shadow: 0 0 0 1px var(--brand-yellow);
}

.product-price,
.booking-amount {
  color: var(--brand-yellow);
}

.booking-row {
  border-bottom-color: var(--border-subtle);
}

.booking-icon,
.payment-icon {
  color: var(--brand-yellow);
  background: var(--brand-bg);
}

.booking-icon .app-icon {
  width: 21px;
  height: 21px;
}

.booking-main strong {
  color: var(--text-primary);
}

.booking-main small {
  color: var(--text-muted);
}

.bar-track,
.stock-progress {
  background: #353a3f;
}

.bar-fill,
.week-bar,
.stock-progress span {
  background: var(--brand-yellow);
}

.week-column {
  color: var(--text-muted);
}

.week-column strong {
  color: var(--text-primary);
}

.stock-progress.low span {
  background: var(--warning);
}

.notice {
  border: 1px solid rgba(255, 237, 0, .22);
  color: var(--brand-text);
  background: var(--brand-bg);
}

.error {
  border-color: rgba(255, 114, 107, .3);
  color: #ffaaa6;
  background: var(--danger-bg);
}

.empty,
.muted {
  color: var(--text-muted);
}

.modal-backdrop {
  background: rgba(0, 0, 0, .72);
}

.modal {
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.auth-page {
  background: var(--bg-app);
}

.auth-brand {
  position: relative;
  color: var(--text-primary);
  background: #090b0c;
}

.auth-brand::after {
  position: absolute;
  top: 70px;
  right: 0;
  bottom: 70px;
  width: 3px;
  background: var(--brand-yellow);
  content: "";
}

.auth-mark {
  width: 72px;
  height: 72px;
  color: var(--brand-yellow);
}

.auth-brand p {
  color: var(--text-secondary);
}

.auth-panel {
  background: var(--bg-surface);
}

.auth-card h2 {
  color: var(--text-primary);
}

.qr-card img {
  border-color: #545b61;
  background: #fff;
}

.separator,
.account-actions {
  border-color: var(--border-subtle);
}

.payment-paid,
.row-paid {
  border-color: rgba(91, 216, 174, .3);
  color: var(--success);
  background: var(--success-bg);
}

.demo-label {
  color: var(--warning);
  background: var(--warning-bg);
}

.payment-dialog-amount {
  color: var(--brand-yellow);
}

.payment-details div {
  border-bottom-color: var(--border-subtle);
}

.payment-details dt {
  color: var(--text-muted);
}

.payment-warning {
  color: #ffd293;
  background: var(--warning-bg);
}

.demo-provider {
  border-color: rgba(255, 237, 0, .45);
  background: var(--brand-bg);
}

.demo-provider p {
  color: var(--text-secondary);
}

.startup {
  color: var(--brand-yellow);
  background: var(--bg-app);
}

#blazor-error-ui {
  border-top: 1px solid rgba(255, 184, 92, .4);
  color: #ffe2b8;
  background: #332617;
}

.cash-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cash-kpis .metric-value {
  font-size: clamp(22px, 2.1vw, 31px);
  white-space: nowrap;
}

.cash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cash-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.cash-actions .app-icon {
  width: 21px;
  height: 21px;
}

.cash-positive {
  color: var(--success);
}

.cash-negative {
  color: var(--danger);
}

.cash-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cash-row-reversal {
  background: rgba(255, 114, 107, .045);
}

.cash-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--border-subtle);
}

.cash-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.cash-preview strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cash-modal textarea.input {
  min-height: 92px;
  resize: vertical;
}

.cash-history-cards,
.account-invoice-cards {
  display: none;
}

.payment-provider-card,
.payment-provider-heading,
.payment-setting-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-provider-heading { justify-content: flex-start; }
.payment-provider-heading h2,
.payment-provider-heading p { margin: 0; }

.payment-provider-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-yellow);
  color: #111;
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 900;
}

.topup-presets,
.payment-setting-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.btn-block { width: 100%; justify-content: center; }

.payment-invoice-list,
.payment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-invoice-card,
.payment-setting-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
}

.payment-invoice-card > div:first-child,
.payment-setting-top > div { display: grid; gap: 4px; }
.payment-invoice-card small,
.payment-setting-card small { color: var(--text-muted); }

.payment-invoice-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 15px 0;
}

.payment-invoice-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 7px 0;
}

.payment-invoice-card dt { color: var(--text-muted); }
.payment-invoice-card dd { margin: 0; }
.payment-settings-modal { width: min(680px, calc(100vw - 28px)); }
.account-pay-link { color: var(--brand-yellow); font-size: 12px; font-weight: 700; }
.account-credit-card .btn { margin-top: 14px; align-self: flex-start; }

@media (max-width: 1280px) {
  .cash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .sidebar {
    border-right-color: #24282c;
  }

  .brand::after {
    right: 14px;
    left: 14px;
  }

  .cash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .sidebar {
    height: calc(68px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-subtle);
    border-right: 0;
    background: #080a0b;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-width: 72px;
    min-height: 68px;
    flex-direction: column;
    gap: 3px;
    padding: 7px 8px 6px;
    border-left: 0;
    border-radius: 0;
    color: #aeb4b8;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav-item .app-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, .035);
  }

  .nav-item.active {
    border-left: 0;
    color: var(--brand-yellow);
    background: transparent;
    box-shadow: inset 0 2px 0 var(--brand-yellow);
  }

  .content {
    margin-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .page-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .page-header .btn {
    min-height: 40px;
    padding: 8px 11px;
  }

  .metric {
    min-height: 112px;
  }

  .cash-kpis,
  .account-finance-grid {
    grid-template-columns: 1fr;
  }

  .cash-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cash-actions .btn {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
  }

  .cash-history-table,
  .account-invoice-table {
    display: none;
  }

  .cash-history-cards,
  .account-invoice-cards {
    display: grid;
    gap: 10px;
  }

  .cash-history-card {
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-surface);
  }

  .cash-history-card p {
    margin: 10px 0;
    color: var(--text-secondary);
  }

  .cash-history-card-top,
  .cash-history-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .cash-history-card-top strong,
  .cash-history-card-top small {
    display: block;
  }

  .cash-history-card-top small,
  .cash-history-card-footer small {
    margin-top: 3px;
    color: var(--text-muted);
  }

  .cash-history-card-footer {
    margin-top: 12px;
  }

  .cash-preview {
    grid-template-columns: 1fr;
  }

  .cash-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .payment-invoice-list,
  .payment-settings-grid,
  .payment-user-grid {
    grid-template-columns: 1fr;
  }

  .payment-provider-card { align-items: flex-start; }

  .payment-page .booking-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .payment-page .booking-row .btn {
    width: 100%;
    justify-content: center;
  }

  .payment-settings-modal {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
}

/* Final responsive polish: keep every page container shrinkable without masking focus states. */
.app-shell,
.content,
.page,
.card,
.card-header,
.page-header > div,
.form-grid > *,
.grid > *,
.booking-main,
.payment-provider-heading,
.payment-provider-heading > div,
.payment-invoice-card,
.payment-setting-card {
  min-width: 0;
}

.page {
  width: 100%;
}

.input,
select.input {
  min-width: 0;
  max-width: 100%;
}

.btn {
  /* Keep text, icon and padding together, including inside narrow table cells. */
  min-width: max-content;
  max-width: none;
  flex-shrink: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.btn span {
  min-width: max-content;
  flex-shrink: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.actions,
.modal-footer {
  flex-wrap: wrap;
}

.sidebar-company-switcher {
  padding: 10px 18px;
}

.period-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.product-symbol {
  margin-right: 9px;
  font-size: 18px;
}

.qr-card {
  min-width: 0;
}

.qr-card img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}

.qr-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.qr-product-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--brand-yellow);
}

.qr-link {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
}

.qr-link > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-actions,
.stock-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-main small,
.payment-invoice-card,
.payment-setting-card,
.payment-page .booking-row,
.notice,
td,
.muted {
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .sidebar-company-switcher {
    display: none;
  }

  .responsive-table {
    margin: 0;
    overflow: visible;
  }

  .responsive-table table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    background: var(--bg-surface);
  }

  .responsive-table tr:hover {
    background: var(--bg-surface-hover);
  }

  .responsive-table td {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .responsive-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .responsive-table td[data-label=""]::before {
    display: none;
  }

  .responsive-table .row-primary,
  .responsive-table .mobile-wide,
  .responsive-table .actions {
    grid-column: 1 / -1;
  }

  .responsive-table .row-primary {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 16px;
  }

  .responsive-table .actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .responsive-table .actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    scroll-snap-type: x proximity;
  }

  .nav-item {
    scroll-snap-align: start;
    touch-action: manipulation;
  }

  .page-header > div,
  .page-header > .btn {
    width: 100%;
  }

  .page-header > .btn {
    min-height: 46px;
  }

  .card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .period-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .period-actions .btn {
    flex-grow: 1;
    min-height: 46px;
  }

  .period-action-load {
    width: 100%;
  }

  .responsive-table tr {
    grid-template-columns: 1fr;
  }

  .responsive-table .row-primary,
  .responsive-table .mobile-wide,
  .responsive-table .actions {
    grid-column: auto;
  }

  .responsive-table .actions {
    display: flex;
    flex-wrap: wrap;
  }

  .responsive-table .actions .btn {
    flex-grow: 1;
  }

  .account-assignment-save,
  .account-logout {
    width: 100%;
    justify-content: center;
  }

  .account-actions {
    margin-top: 14px;
    padding-top: 14px;
  }

  .booking-row {
    flex-wrap: wrap;
  }

  .booking-row > .btn {
    min-height: 44px;
  }

  .stock-line {
    grid-template-columns: 1fr;
  }

  .stock-progress {
    grid-column: auto;
  }

  .stock-actions,
  .qr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stock-actions .btn,
  .qr-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .payment-provider-card,
  .payment-provider-heading,
  .payment-setting-top,
  .cash-history-card-top,
  .cash-history-card-footer {
    flex-wrap: wrap;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 350px) {
  .period-actions {
    flex-direction: column;
  }

  .payment-invoice-card dl {
    grid-template-columns: 1fr;
  }
}
