/* =========================
   THE MAC BURGER POS
   APP SHELL / GLOBAL THEME
   ========================= */

:root {
	
--font-ui: "Segoe UI", Arial, sans-serif;
--font-display: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  
  --brand-orange: #f5a623;
  --brand-orange-deep: #e48b18;
  --brand-yellow: #f3c04d;
  --brand-green: #169c67;
  --brand-green-hover: #128455;
  --brand-green-soft: #ecf8f2;

  --brand-red: #ef4b3f;
  --brand-red-hover: #d93d2f;

  --ink-900: #142338;
  --ink-800: #22324a;
  --ink-700: #334155;
  --ink-600: #5f6f86;
  --ink-500: #7b8ba1;

  --bg-app: #f4f7fb;
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-soft-2: #f2f5f9;
  --surface-cream: #fffaf2;

  --border: #e5ebf3;
  --border-strong: #d8e2ec;

  --sidebar-bg: #17212f;
  --sidebar-bg-2: #1d2939;
  --sidebar-text: #d7deea;
  --sidebar-text-strong: #ffffff;
  --sidebar-active: rgba(255, 255, 255, 0.08);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --sidebar-width: 248px;
}

/* ---------- DARK THEME TOKENS ---------- */

body.theme-dark {
  --bg-app: #0f1722;
  --bg-page: #111b28;
  --surface: #162231;
  --surface-soft: #1a293a;
  --surface-soft-2: #213246;
  --surface-cream: #162231;

  --ink-900: #f8fafc;
  --ink-800: #e8eef7;
  --ink-700: #d7e1ed;
  --ink-600: #9db0c7;
  --ink-500: #8498b0;

  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.28);

  --sidebar-bg: #0c1420;
  --sidebar-bg-2: #111b28;
  --sidebar-text: #b8c6d8;
  --sidebar-text-strong: #ffffff;
  --sidebar-active: rgba(255, 255, 255, 0.08);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 20px 38px rgba(0, 0, 0, 0.32);
}

/* =========================================
   OFFLINE FONT SYSTEM
   Softer, lighter, less heavy
   ========================================= */

html,
body {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0;
}

button,
input,
select,
textarea,
label,
table,
th,
td,
a,
span,
small,
p,
li,
div {
  font-family: var(--font-ui);
}

/* Main headings / brand */
h1,
h2,
h3,
.page-title,
.section-title,
.card-title,
.modal-title,
.sidebar-brand-title,
.receipt-brand__title,
.dashboard-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

/* Supporting brand text */
.sidebar-brand-kicker,
.page-kicker,
.login-kicker,
.brand-kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-brand-subtitle,
.page-subtitle,
.login-subtitle {
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.5;
}

/* Sidebar */
.sidebar nav ul li a,
.sidebar .logout {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
}

.sidebar-brand-title {
  font-size: 22px;
}

/* Forms */
input,
select,
textarea {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  font-family: var(--font-ui);
  font-weight: 400;
}

/* Buttons */
button,
.btn,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
}

/* Tables */
table thead th,
.ui-table thead th {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

table tbody td,
.ui-table tbody td {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
}

/* Billing / dashboard values */
.item-name,
.bill-title,
.current-bill-title,
.customer-section-title,
.summary-title,
.metric-label {
  font-family: var(--font-ui);
  font-weight: 600;
}

.item-price,
.total-amount,
.bill-total,
.metric-value,
.stat-value {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Receipt */
.receipt-paper,
.receipt-paper * {
  font-family: var(--font-ui);
}

.receipt-brand__title {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- GLOBAL RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: 500;
  background:
    radial-gradient(circle at top right, rgba(245, 166, 35, 0.05), transparent 18%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-app) 100%);
  color: var(--ink-900);
}

/* ---------- GENERIC UI ---------- */

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-900);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-500);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 156, 103, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 156, 103, 0.08);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
}

.ui-card,
.page-shell-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.ui-btn,
button[type="submit"],
button[type="button"] {
  transition: 0.18s ease;
}

.ui-btn-primary,
button[type="submit"] {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(22, 156, 103, 0.18);
}

.ui-btn-primary:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
}

.ui-btn-secondary {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-800);
  font-weight: 600;
}

.ui-btn-danger {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
  color: #fff;
  font-weight: 600;
}

.page-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a5b12;
}

.page-title {
  font-size: 28px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 720px;
}
/* =========================
   SIDEBAR TOGGLE BUTTON
   ========================= */

.toggle-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition: none;
}

body.theme-dark .toggle-menu {
  background: rgba(255, 255, 255, 0.96);
}

.toggle-menu:hover,
.toggle-menu:active {
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

body.sidebar-open .toggle-menu {
  opacity: 1;
  pointer-events: auto;
  z-index: 1600;
}

/* =========================
   BURGER ICON
   ========================= */

.burger-toggle-icon {
  width: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.burger-bun-top {
  width: 24px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 10px 10px 6px 6px;
  position: relative;
}

.burger-bun-top::before,
.burger-bun-top::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 2px;
  height: 2px;
  background: #ffe7a8;
  border-radius: 50%;
  opacity: 0.95;
}

.burger-bun-top::before {
  left: 5px;
  box-shadow:
    4px 1px 0 #ffe7a8,
    8px -1px 0 #ffe7a8,
    12px 1px 0 #ffe7a8;
}

.burger-bun-top::after {
  left: 9px;
  box-shadow: 4px 0 0 #ffe7a8;
}

.burger-fill {
  width: 24px;
  height: 2px;
  border-radius: 999px;
}

.burger-fill--red {
  background: #d84a3e;
}

.burger-fill--yellow {
  background: #f3b21a;
}

.burger-patty {
  width: 24px;
  height: 6px;
  background: #5a241b;
  border-radius: 999px;
}

.burger-bun-bottom {
  width: 24px;
  height: 7px;
  background: var(--brand-orange);
  border-radius: 5px 5px 10px 10px;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 1500;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  will-change: auto;
  backface-visibility: hidden;
}

/* =========================
   SIDEBAR BRAND HEADER
   ========================= */

.sidebar-brand {
  padding: 16px 16px 14px 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
  box-sizing: border-box;
}

.sidebar-brand-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  column-gap: 12px;
}

.sidebar-brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-brand-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5c56c;
}

.sidebar-brand-title {
  margin: 4px 0 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--sidebar-text-strong);
}

.sidebar-brand-subtitle {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

/* =========================
   SIDEBAR BODY
   ========================= */

.sidebar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav ul li a {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition:
    background 0.08s linear,
    color 0.08s linear;
}

.sidebar nav ul li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar nav ul li a.active {
  background: linear-gradient(
    180deg,
    rgba(22, 156, 103, 0.24) 0%,
    rgba(22, 156, 103, 0.18) 100%
  );
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(87, 211, 155, 0.16);
}


.sidebar .logout {
  margin: auto 10px 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffd5d1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background 0.1s ease,
    color 0.1s ease;
}

.sidebar .logout:hover {
  background: rgba(239, 75, 63, 0.16);
  color: #ffffff;
}

/* =========================
   MAIN CONTENT
   ========================= */

.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* =========================
   DESKTOP
   ========================= */

@media (min-width: 1367px) {
  .toggle-menu {
    display: none !important;
  }

  .sidebar {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    padding: 24px;
  }

  body.sidebar-open::before {
    display: none !important;
  }
}

/* =========================
   TABLET / MOBILE
   ========================= */

@media (max-width: 1366px) {
  .toggle-menu {
    display: inline-flex !important;
    top: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
  }

  .toggle-menu .burger-toggle-icon {
    transform: scale(0.92);
  }

 .sidebar {
  width: 300px;
  max-width: 86vw;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    z-index: 1400;
  }

  .main-content {
    margin-left: 0;
    padding: 16px 12px 14px 12px;
  }

  .main-content > .page-head,
  .main-content .page-head:first-child {
    padding-left: 60px;
    min-height: 48px;
  }

  .main-content > .page-head .page-subtitle,
  .main-content .page-head:first-child .page-subtitle {
    max-width: none;
  }

  .sidebar-brand {
    padding: 16px 16px 14px 16px;
  }

  .sidebar-brand-row {
    grid-template-columns: 64px 1fr;
    column-gap: 12px;
  }

  .sidebar-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .sidebar-brand-title {
    font-size: 18px;
  }

  .sidebar-brand-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
	
  }
  
    .sidebar-brand {
    padding-left: 74px;
  }
  
}

/* ---------- APP PAGE WRAPPERS ---------- */

.users-page,
.settings-page,
.my-settings-page {
  width: 100%;
  max-width: 100%;
  padding: 10px;
}

.users-page .page-block,
.settings-page .page-block,
.my-settings-page .page-block {
  margin-top: 0;
}

.settings-stack,
.my-settings-stack {
  display: grid;
  gap: 16px;
}

.settings-form,
.my-settings-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.settings-form label,
.my-settings-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 800;
}

.settings-grid,
.my-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ui-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.ui-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ui-table th,
.ui-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.ui-table th {
  background: var(--surface-soft-2);
  color: var(--ink-700);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui-table tbody tr:hover {
  background: rgba(22, 156, 103, 0.03);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.is-active {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.status-pill.is-inactive {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-row button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 600;
}

.action-row .btn-edit {
  background: #eef6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.action-row .btn-toggle {
  background: #fff8ef;
  border-color: #fde7c2;
  color: #9a5b12;
}

.action-row .btn-reset {
  background: #fff6f5;
  border-color: #fee2e2;
  color: #dc2626;
}

/* ---------- MODALS ---------- */

.modal,
.app-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.modal-card,
.app-modal-card {
  width: min(100%, 460px);
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-head,
.app-modal-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.modal-title,
.app-modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.modal-subtitle,
.app-modal-subtitle {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-600);
}

.modal-body,
.app-modal-body {
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}

.modal-actions,
.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.modal-actions button,
.app-modal-actions button {
  min-width: 110px;
}

/* ---------- LOGIN ---------- */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245,166,35,0.14), transparent 18%),
    radial-gradient(circle at bottom right, rgba(22,156,103,0.08), transparent 16%),
    linear-gradient(180deg, #fffdf8 0%, #f6f8fb 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

body.theme-dark.login-page {
  background:
    radial-gradient(circle at top left, rgba(245,166,35,0.1), transparent 18%),
    radial-gradient(circle at bottom right, rgba(22,156,103,0.1), transparent 16%),
    linear-gradient(180deg, #0d1620 0%, #111b28 100%);
}

.login-shell {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.login-brand-panel {
  padding: 42px 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.96)),
    linear-gradient(135deg, #fff4dd 0%, #fffaf1 55%, #f4fbf8 100%);
}

body.theme-dark .login-brand-panel {
  background:
    linear-gradient(180deg, rgba(22,34,49,0.92), rgba(22,34,49,0.98)),
    linear-gradient(135deg, #1e2430 0%, #152131 55%, #13281f 100%);
}

.login-brand-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a5b12;
}

.login-brand-title {
  margin-top: 10px;
  font-size: 40px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--ink-900);
}

.login-brand-copy {
  margin-top: 14px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-600);
}

.login-accent-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
}

body.theme-dark .login-accent-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.login-form-panel {
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-head h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.login-form-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-600);
}

.login-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-800);
}

.login-error {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}

body.theme-dark .login-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

/* =========================================
   APP PAGE SHARED STYLING
========================================= */

.app-page {
  width: 100%;
  max-width: 100%;
  padding: 10px;
}

.app-page .page-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.app-page .inner-block {
  padding: 16px;
}

.page-note {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.5;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

/* =========================================
   FORMS
========================================= */

.app-form {
  display: grid;
  gap: 16px;
}

.settings-form-card {
  max-width: 760px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: 0.01em;
}

.ui-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-900);
  padding: 11px 13px;
  outline: none;
  font: inherit;
}

.ui-input:focus {
  border-color: rgba(22, 156, 103, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 156, 103, 0.08);
  background: var(--surface);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 4px;
}

/* =========================================
   TOOLBARS
========================================= */

.users-toolbar,
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.users-toolbar-left,
.users-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.users-toolbar-left {
  flex: 1;
}

.users-toolbar-left .ui-input {
  max-width: 320px;
}

/* =========================================
   TABLES
========================================= */

.ui-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.ui-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ui-table th,
.ui-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.ui-table th {
  background: var(--surface-soft-2);
  color: var(--ink-700);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui-table tbody tr:hover {
  background: rgba(22, 156, 103, 0.03);
}

/* =========================================
   STATUS PILLS
========================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.is-active {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.status-pill.is-inactive {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* =========================================
   USERS ACTION BUTTONS
========================================= */

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-row button,
.action-row .ui-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 600;
}

.action-row .btn-edit {
  background: #eef6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.action-row .btn-toggle {
  background: #fff8ef;
  border-color: #fde7c2;
  color: #9a5b12;
}

.action-row .btn-reset {
  background: #fff6f5;
  border-color: #fee2e2;
  color: #dc2626;
}

/* =========================================
   THEME SUPPORT
========================================= */

body.theme-dark .app-page .page-block,
body.theme-dark .ui-table-wrap {
  background: var(--surface);
  border-color: var(--border);
}

body.theme-dark .ui-table th {
  background: var(--surface-soft-2);
  color: var(--ink-700);
}

body.theme-dark .page-note {
  background: var(--surface-soft);
  color: var(--ink-700);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .users-toolbar,
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-toolbar-left,
  .users-toolbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .users-toolbar-left .ui-input {
    max-width: none;
  }
}


/* =========================================
   REMOVE OUTER PAGE CARD
   Users Management / Settings / My Settings
========================================= */

.users-page > .page-block,
.settings-page > .page-block,
.my-settings-page > .page-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Keep spacing clean after removing outer card */
.users-page,
.settings-page,
.my-settings-page {
  width: 100%;
  max-width: 100%;
  padding: 0 6px 10px;
}

/* Header spacing like dashboard/manual billing */
.users-page .page-head,
.settings-page .page-head,
.my-settings-page .page-head {
  margin-bottom: 18px;
}

/* Toolbar spacing */
.users-page .users-toolbar,
.settings-page .page-toolbar,
.my-settings-page .page-toolbar {
  margin-bottom: 18px;
}

/* =========================================
   KEEP INNER CONTENT CLEAN
========================================= */

/* Users table still looks like a proper section */
.users-page .ui-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

/* My Settings form becomes the visible main card */
.my-settings-page .settings-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

/* Settings inner sections remain card-like */
.settings-page .inner-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

/* Optional: note / message styling */
.settings-page .page-note,
.my-settings-page .page-note,
.users-page .page-note {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
}

/* =========================================
   DARK THEME SUPPORT
========================================= */

body.theme-dark .users-page .ui-table-wrap,
body.theme-dark .my-settings-page .settings-form-card,
body.theme-dark .settings-page .inner-block,
body.theme-dark .settings-page .page-note,
body.theme-dark .my-settings-page .page-note,
body.theme-dark .users-page .page-note {
  background: var(--surface);
  border-color: var(--border);
}

/* =========================================================
   SHARED PAGE HEADER / HERO
   For Users Management / Settings / My Settings
========================================================= */

.page-shell,
.users-page,
.settings-page,
.my-settings-page {
  width: 100%;
  max-width: 100%;
}

.page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px 14px;
  border-bottom: 1px solid var(--border, #dbe3ee);
  margin-bottom: 14px;
}

.page-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.page-hero__logo {
  display: none !important;
}

.page-hero__text {
  min-width: 0;
  padding-top: 0;
}

.page-hero__eyebrow {
  margin: 0 0 4px;
}

.page-hero__title {
  margin: 0;
}

.page-hero__subtitle {
  margin: 8px 0 0;
}

.page-hero__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.page-hero__chip,
.page-hero__icon-btn {
  border: 1px solid #dce5ef;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-hero__icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #233a63;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-hero__icon-btn:hover {
  transform: translateY(-1px);
  border-color: #c9d6e5;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.page-hero__chip {
  min-height: 56px;
  border-radius: 20px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.page-hero__chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eef7ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 34px;
}

.page-hero__chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.page-hero__chip-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a99b2;
  margin-bottom: 3px;
}

.page-hero__chip-value {
  font-size: 16px;
  font-weight: 700;
  color: #18345b;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.page-toolbar__left,
.page-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-search {
  width: min(460px, 100%);
  min-width: 280px;
}

.page-search input,
.page-search select,
.page-toolbar select,
.page-toolbar input[type="text"],
.page-toolbar input[type="search"] {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: 1px solid #dbe3ee;
  background: #f8fbfd;
  color: #233a63;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.page-search input:focus,
.page-search select:focus,
.page-toolbar select:focus,
.page-toolbar input[type="text"]:focus,
.page-toolbar input[type="search"]:focus {
  border-color: #b8cadf;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 125, 255, 0.08);
}

.ui-btn,
.page-btn,
.page-toolbar button,
.page-actions button {
  height: 54px;
  border-radius: 18px;
  padding: 0 20px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #17345d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.ui-btn:hover,
.page-btn:hover,
.page-toolbar button:hover,
.page-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ui-btn--primary,
.page-btn--primary {
  background: linear-gradient(180deg, #1ea463 0%, #179458 100%);
  border-color: #179458;
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 164, 99, 0.22);
}

.ui-btn--primary:hover,
.page-btn--primary:hover {
  box-shadow: 0 16px 30px rgba(30, 164, 99, 0.26);
}

.ui-btn--soft,
.page-btn--soft {
  background: #f8fbfd;
  color: #17345d;
}

.section-card,
.ui-card,
.inner-block,
.settings-form-card,
.ui-table-wrap {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.section-card,
.ui-card,
.inner-block,
.settings-form-card {
  padding: 18px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #17345d;
}

.page-note {
  background: #f9fbfd;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 14px 16px;
  color: #5e6f89;
  font-size: 14px;
  line-height: 1.5;
}

/* tables */
.ui-table-wrap {
  overflow: hidden;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
}

.ui-table thead th {
  background: #f4f7fb;
  color: #27405f;
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #dbe3ee;
}

.ui-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
  color: #18345b;
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}

.ui-table tbody tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill--active {
  background: #edf9f1;
  color: #0d7d3d;
  border-color: #bfe8cb;
}

.status-pill--inactive {
  background: #fff3f1;
  color: #cb4335;
  border-color: #f2c7c1;
}

/* settings forms */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #365073;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid #dbe3ee;
  background: #f8fbfd;
  padding: 12px 16px;
  color: #18345b;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #b8cadf;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 125, 255, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* dark mode */
body.theme-dark .page-hero {
  border-bottom-color: #26364b;
}

body.theme-dark .page-hero__logo,
body.theme-dark .page-hero__chip,
body.theme-dark .page-hero__icon-btn,
body.theme-dark .section-card,
body.theme-dark .ui-card,
body.theme-dark .inner-block,
body.theme-dark .settings-form-card,
body.theme-dark .ui-table-wrap {
  background: #132033;
  border-color: #26364b;
  box-shadow: none;
}

body.theme-dark .page-hero__title,
body.theme-dark .page-hero__chip-value,
body.theme-dark .ui-table tbody td,
body.theme-dark .section-title,
body.theme-dark .form-field label {
  color: #eef4ff;
}

body.theme-dark .page-hero__subtitle,
body.theme-dark .page-note {
  color: #aebed4;
}

body.theme-dark .ui-table thead th {
  background: #18273b;
  color: #c7d5e8;
  border-bottom-color: #26364b;
}

body.theme-dark .ui-table tbody td {
  border-bottom-color: #223147;
}

body.theme-dark .page-search input,
body.theme-dark .page-search select,
body.theme-dark .page-toolbar select,
body.theme-dark .page-toolbar input[type="text"],
body.theme-dark .page-toolbar input[type="search"],
body.theme-dark .form-field input,
body.theme-dark .form-field select,
body.theme-dark .form-field textarea,
body.theme-dark .ui-btn,
body.theme-dark .page-btn,
body.theme-dark .page-toolbar button,
body.theme-dark .page-actions button {
  background: #162338;
  border-color: #2a3d55;
  color: #eef4ff;
}

body.theme-dark .page-note {
  background: #162338;
  border-color: #2a3d55;
}

/* responsive */
@media (max-width: 900px) {
  .page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero__actions {
    justify-content: flex-start;
  }

  .page-search {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 14px 4px 12px;
    gap: 14px;
  }

  .page-hero__main {
    gap: 0;
  }

  .page-hero__title {
    font-size: 28px;
  }

  .page-hero__subtitle {
    font-size: 14px;
  }

  .page-hero__chip {
    width: 100%;
    justify-content: flex-start;
  }

  .ui-btn,
  .page-btn,
  .page-toolbar button,
  .page-actions button {
    width: 100%;
  }
}

.users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.users-actions .btn-edit,
.users-actions .btn-deactivate,
.users-actions .btn-reset {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.users-actions .btn-edit {
  color: #2160d8;
  background: #eef4ff;
  border-color: #d4e3ff;
}

.users-actions .btn-deactivate {
  color: #b96a00;
  background: #fff8ed;
  border-color: #f1ddba;
}

.users-actions .btn-reset {
  color: #cf3c2d;
  background: #fff1ef;
  border-color: #f4d0ca;
}


/* forms / tables spacing */
.users-page .ui-table-wrap,
.settings-page .ui-table-wrap,
.my-settings-page .settings-form-card,
.settings-page .inner-block {
  margin-top: 0;
}

/* responsive */
@media (max-width: 900px) {
  .users-page .page-hero__actions,
  .settings-page .page-hero__actions,
  .my-settings-page .page-hero__actions {
    flex-wrap: wrap;
  }

  .users-page .page-hero__icon-btn,
  .settings-page .page-hero__icon-btn,
  .my-settings-page .page-hero__icon-btn {
    width: 72px;
    height: 64px;
    border-radius: 18px;
  }

  .users-page .page-hero__chip,
  .settings-page .page-hero__chip,
  .my-settings-page .page-hero__chip {
    min-height: 64px;
    border-radius: 18px;
    padding: 10px 14px;
  }

  .users-page .page-toolbar,
  .settings-page .page-toolbar,
  .my-settings-page .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-page .page-toolbar__left,
  .settings-page .page-toolbar__left,
  .my-settings-page .page-toolbar__left,
  .users-page .page-toolbar__right,
  .settings-page .page-toolbar__right,
  .my-settings-page .page-toolbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .users-page .page-search,
  .settings-page .page-search,
  .my-settings-page .page-search {
    width: 100%;
    min-width: 0;
  }
}

.users-page .users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 190px;
}

.users-page .ui-table td:last-child {
  min-width: 210px;
}
/* ---------- COMPACT LOGIN ---------- */

.login-page.login-page--compact {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.login-simple-shell {
  width: 100%;
  max-width: 460px;
}

.login-simple-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 34px 30px 30px;
}

.login-simple-brand {
  margin-bottom: 22px;
}

.login-simple-title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--ink-900);
}

.login-simple-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
}

.login-page.login-page--compact .login-form {
  margin-top: 0;
  display: grid;
  gap: 14px;
}

.login-page.login-page--compact .login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-800);
}

.login-page.login-page--compact .login-form input {
  height: 52px;
  border-radius: 14px;
  font-size: 14px;
  background: var(--surface-soft);
}

.login-page.login-page--compact .ui-btn-primary {
  margin-top: 4px;
  height: 50px;
  border-radius: 14px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .login-simple-card {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .login-simple-title {
    font-size: 28px;
  }
}

.users-page .page-hero,
.settings-page .page-hero,
.my-settings-page .page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.users-page .page-hero__main,
.settings-page .page-hero__main,
.my-settings-page .page-hero__main {
  flex: 1 1 auto;
  min-width: 0;
}

.users-page .page-hero__text,
.settings-page .page-hero__text,
.my-settings-page .page-hero__text {
  min-width: 0;
}

.users-page .page-hero__eyebrow,
.settings-page .page-hero__eyebrow,
.my-settings-page .page-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #a45a00;
}

.users-page .page-hero__title,
.settings-page .page-hero__title,
.my-settings-page .page-hero__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #0f294d;
}

.users-page .page-hero__subtitle,
.settings-page .page-hero__subtitle,
.my-settings-page .page-hero__subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: #5c7093;
  max-width: 760px;
}

.users-page .page-hero__actions,
.settings-page .page-hero__actions,
.my-settings-page .page-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .users-page .page-hero,
  .settings-page .page-hero,
  .my-settings-page .page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .users-page .page-hero__actions,
  .settings-page .page-hero__actions,
  .my-settings-page .page-hero__actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   THE MAC BURGER POS
   COMPACT ADMIN PAGES UI
   Scope: Users Management / Settings / My Settings only
   Paste near bottom of main.css
========================================================= */

.admin-page {
  width: 100%;
  max-width: 100%;
  padding: 0 6px 14px;
  color: var(--ink-900);
}

/* Prevent old/global wrappers from turning admin pages into bulky cards */
.admin-page.page-shell,
.admin-page.app-page,
.admin-page .page-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

/* ---------- ADMIN HEADER ---------- */

.admin-page .page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--border);
}

.admin-page .page-hero__main {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-page .page-hero__text {
  min-width: 0;
}

.admin-page .page-hero__eyebrow,
.admin-page .page-header__eyebrow,
.admin-page .page-kicker {
  margin: 0 0 5px;
  color: #9a5b12;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-page .page-hero__title,
.admin-page .page-header__title,
.admin-page .page-title {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.admin-page .page-hero__subtitle,
.admin-page .page-header__subtitle,
.admin-page .page-subtitle {
  margin: 7px 0 0;
  max-width: 760px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.admin-page .page-hero__actions,
.admin-page .page-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.admin-page .page-hero__icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-800);
  box-shadow: var(--shadow-xs);
  font-size: 17px;
  line-height: 1;
}

.admin-page .page-hero__chip,
.admin-page .page-header__chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.admin-page .page-hero__chip-icon,
.admin-page .page-header__chip-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  font-size: 15px;
}

.admin-page .page-hero__chip-text,
.admin-page .page-header__chip-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.12;
}

.admin-page .page-hero__chip-label,
.admin-page .page-header__chip-label {
  color: var(--ink-500);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-page .page-hero__chip-value,
.admin-page .page-header__chip-value {
  color: var(--ink-800);
  font-size: 12.5px;
  font-weight: 650;
}

/* ---------- TOOLBAR ---------- */

.admin-page .page-toolbar,
.admin-page .users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.admin-page .page-toolbar__left,
.admin-page .page-toolbar__right,
.admin-page .users-toolbar-left,
.admin-page .users-toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.admin-page .page-toolbar__left,
.admin-page .users-toolbar-left {
  flex: 1 1 auto;
  min-width: 220px;
}

.admin-page .page-toolbar__right,
.admin-page .users-toolbar-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.admin-page .ui-input,
.admin-page input[type="text"],
.admin-page input[type="search"],
.admin-page input[type="password"],
.admin-page select,
.admin-page textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink-900);
  padding: 8px 11px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  outline: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.admin-page .ui-input--search,
.admin-page #userSearch {
  max-width: 320px;
}

.admin-page textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-page .ui-input::placeholder,
.admin-page input::placeholder,
.admin-page textarea::placeholder {
  color: var(--ink-500);
  font-weight: 400;
}

.admin-page .ui-input:focus,
.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: rgba(22, 156, 103, 0.42);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(22, 156, 103, 0.08);
}

/* ---------- BUTTONS ---------- */

.admin-page .ui-btn,
.admin-page .ui-btn-primary,
.admin-page .ui-btn-secondary,
.admin-page .ui-btn-danger,
.admin-page .page-toolbar button,
.admin-page .form-actions button,
.admin-page .app-modal-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease;
}

.admin-page .ui-btn:hover,
.admin-page .ui-btn-primary:hover,
.admin-page .ui-btn-secondary:hover,
.admin-page .ui-btn-danger:hover,
.admin-page .page-toolbar button:hover,
.admin-page .form-actions button:hover,
.admin-page .app-modal-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.admin-page .ui-btn,
.admin-page .ui-btn--soft,
.admin-page .ui-btn-secondary {
  background: var(--surface);
  color: var(--ink-800);
  border-color: var(--border);
}

.admin-page .ui-btn--primary,
.admin-page .ui-btn-primary,
.admin-page .form-actions .ui-btn-primary,
.admin-page .app-modal-actions .ui-btn-primary {
  border-color: var(--brand-green);
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 156, 103, 0.16);
}

.admin-page .ui-btn-danger,
.admin-page .ui-btn--danger {
  border-color: var(--brand-red);
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
  color: #ffffff;
}

/* ---------- CARDS / SECTIONS ---------- */

.admin-page .ui-card,
.admin-page .inner-block,
.admin-page .settings-form-card,
.admin-page .section-card,
.admin-page .page-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-page .ui-card,
.admin-page .inner-block,
.admin-page .settings-form-card,
.admin-page .section-card {
  padding: 14px;
}

.admin-page .inner-block + .inner-block {
  margin-top: 12px !important;
}

.admin-page .section-title {
  margin: 0 0 10px;
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.admin-page .page-note {
  padding: 12px 14px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
}

/* ---------- TABLES ---------- */

.admin-page .ui-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-page .ui-card .ui-table-wrap {
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.admin-page .ui-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: auto;
}

.admin-page .settings-page .ui-table,
.admin-page.settings-page .ui-table {
  min-width: 720px;
}

.admin-page .ui-table th,
.admin-page .ui-table td {
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.admin-page .ui-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: var(--surface-soft-2);
  color: var(--ink-700);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-page .ui-table tbody td {
  padding: 10px 12px;
  color: var(--ink-800);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
}

.admin-page .ui-table tbody tr:hover {
  background: rgba(22, 156, 103, 0.035);
}

.admin-page .ui-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-page .users-table__actions-col,
.admin-page .users-actions-cell {
  width: 1%;
  min-width: 240px;
  white-space: nowrap;
}

/* ---------- STATUS PILLS ---------- */

.admin-page .status-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

.admin-page .status-pill--active,
.admin-page .status-pill.is-active {
  background: #ecfdf3;
  color: #137348;
  border-color: #bdeacb;
}

.admin-page .status-pill--inactive,
.admin-page .status-pill.is-inactive {
  background: #fff1f0;
  color: #b7352d;
  border-color: #f4c3be;
}

/* ---------- USERS ACTION BUTTONS ---------- */

.admin-page .users-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-page .action-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease;
}

.admin-page .action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.admin-page .action-btn--edit {
  background: #eef6ff;
  border-color: #d6e8ff;
  color: #1e5fc9;
}

.admin-page .action-btn--warn {
  background: #fff8ed;
  border-color: #f2dfbd;
  color: #9a5b12;
}

.admin-page .action-btn--danger {
  background: #fff1ef;
  border-color: #f3ccc7;
  color: #c63c30;
}

/* ---------- FORMS ---------- */

.admin-page .app-form {
  display: grid;
  gap: 13px;
}

.admin-page .settings-form-card {
  max-width: 760px;
}

.admin-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-page .form-field {
  display: grid;
  gap: 5px;
}

.admin-page .form-field label,
.admin-page .app-modal-body label {
  color: var(--ink-700);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.admin-page .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding-top: 2px;
  flex-wrap: wrap;
}

/* ---------- MODALS ---------- */

.admin-page .app-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding: 18px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(7px);
}

.admin-page .app-modal-card {
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.admin-page .app-modal-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.admin-page .app-modal-title {
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.admin-page .app-modal-subtitle {
  margin-top: 5px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.admin-page .app-modal-body {
  padding: 14px 16px;
  overflow: auto;
}

.admin-page .app-modal-body form {
  display: grid;
  gap: 9px;
}

.admin-page .app-modal-body p {
  margin: 0 0 8px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.45;
}

.admin-page .app-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.admin-page .app-modal-actions button {
  min-width: 104px;
}

/* ---------- DARK MODE ---------- */

body.theme-dark .admin-page .page-hero {
  border-bottom-color: var(--border);
}

body.theme-dark .admin-page .page-hero__eyebrow,
body.theme-dark .admin-page .page-header__eyebrow,
body.theme-dark .admin-page .page-kicker {
  color: #f3c04d;
}

body.theme-dark .admin-page .page-hero__chip-icon,
body.theme-dark .admin-page .page-header__chip-icon {
  background: rgba(22, 156, 103, 0.14);
  color: #55d69a;
}

body.theme-dark .admin-page .action-btn--edit {
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(96, 165, 250, 0.24);
  color: #9cc3ff;
}

body.theme-dark .admin-page .action-btn--warn {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(251, 191, 36, 0.24);
  color: #f8c66d;
}

body.theme-dark .admin-page .action-btn--danger {
  background: rgba(239, 75, 63, 0.13);
  border-color: rgba(248, 113, 113, 0.24);
  color: #ffaaa4;
}

body.theme-dark .admin-page .status-pill--active,
body.theme-dark .admin-page .status-pill.is-active {
  background: rgba(22, 156, 103, 0.13);
  color: #71e2ab;
  border-color: rgba(34, 197, 94, 0.26);
}

body.theme-dark .admin-page .status-pill--inactive,
body.theme-dark .admin-page .status-pill.is-inactive {
  background: rgba(239, 75, 63, 0.13);
  color: #ffaaa4;
  border-color: rgba(248, 113, 113, 0.26);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {
  .admin-page {
    padding: 0 2px 12px;
  }

  .admin-page .page-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .admin-page .page-hero__actions,
  .admin-page .page-header__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-page .page-toolbar,
  .admin-page .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .page-toolbar__left,
  .admin-page .page-toolbar__right,
  .admin-page .users-toolbar-left,
  .admin-page .users-toolbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-page .ui-input--search,
  .admin-page #userSearch {
    max-width: none;
  }

  .admin-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-page .page-hero__title,
  .admin-page .page-header__title,
  .admin-page .page-title {
    font-size: 24px;
  }

  .admin-page .page-hero__chip,
  .admin-page .page-header__chip {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-page .page-toolbar__right .ui-btn,
  .admin-page .users-toolbar-right .ui-btn,
  .admin-page .form-actions .ui-btn {
    width: 100%;
  }

  .admin-page .app-modal {
    padding: 10px;
  }

  .admin-page .app-modal-card {
    margin-top: 8px;
    max-height: calc(100vh - 20px);
  }

  .admin-page .app-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .app-modal-actions button {
    width: 100%;
  }
}
/* =========================================================
   ADMIN HEADER MATCH DASHBOARD / MANUAL BILLING
   Scope: Users Management / Settings / My Settings only
   Paste at the VERY BOTTOM of main.css
========================================================= */

/* Make admin headers behave like normal page headers, not hero cards */
.admin-page .page-hero {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

/* Remove hero-style flex behavior */
.admin-page .page-hero__main {
  display: block;
  min-width: 0;
}

.admin-page .page-hero__text {
  display: block;
  min-width: 0;
  padding: 0;
}

/* Match dashboard/manual billing eyebrow */
.admin-page .page-hero__eyebrow,
.admin-page .page-header__eyebrow,
.admin-page .page-kicker {
  display: block;
  margin: 0 0 6px;
  color: #9a5b12;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Match dashboard/manual billing title */
.admin-page .page-hero__title,
.admin-page .page-header__title,
.admin-page .page-title {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Match dashboard/manual billing subtitle */
.admin-page .page-hero__subtitle,
.admin-page .page-header__subtitle,
.admin-page .page-subtitle {
  margin: 7px 0 0;
  max-width: 720px;
  color: var(--ink-600);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

/* Hide the right-side chip/action so admin pages feel like dashboard/manual billing */
.admin-page .page-hero__actions,
.admin-page .page-header__actions {
  display: none !important;
}

/* Bring toolbar closer, same compact operational spacing */
.admin-page .page-toolbar,
.admin-page .users-toolbar {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Tablet/mobile: align with existing sidebar burger spacing behavior */
@media (max-width: 1366px) {
  .main-content .admin-page .page-hero:first-child {
    padding-left: 60px;
    min-height: 48px;
  }

  .main-content .admin-page .page-hero:first-child .page-hero__subtitle {
    max-width: none;
  }
}

/* Small mobile cleanup */
@media (max-width: 640px) {
  .admin-page .page-hero {
    margin-bottom: 14px;
  }

  .admin-page .page-hero__title,
  .admin-page .page-header__title,
  .admin-page .page-title {
    font-size: 26px;
  }

  .admin-page .page-hero__subtitle,
  .admin-page .page-header__subtitle,
  .admin-page .page-subtitle {
    font-size: 13px;
  }
}

/* Dark mode */
body.theme-dark .admin-page .page-hero__eyebrow,
body.theme-dark .admin-page .page-header__eyebrow,
body.theme-dark .admin-page .page-kicker {
  color: #f3c04d;
}

body.theme-dark .admin-page .page-hero__title,
body.theme-dark .admin-page .page-header__title,
body.theme-dark .admin-page .page-title {
  color: var(--ink-900);
}

body.theme-dark .admin-page .page-hero__subtitle,
body.theme-dark .admin-page .page-header__subtitle,
body.theme-dark .admin-page .page-subtitle {
  color: var(--ink-600);
}


/* =========================================================
   FINAL ADMIN HEADER ALIGNMENT
   Make Users / Settings / My Settings match Dashboard/Billing
   Paste at the VERY BOTTOM of main.css
========================================================= */

/* Root admin page spacing */
.admin-page {
  padding-top: 0 !important;
}

/* Make page-hero behave exactly like normal page-head */
.admin-page .page-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;

  gap: 6px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;

  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove hero layout behavior */
.admin-page .page-hero__main {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: initial !important;
}

.admin-page .page-hero__text {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Hide chip/icon/right area completely */
.admin-page .page-hero__actions,
.admin-page .page-header__actions,
.admin-page .page-hero__chip,
.admin-page .page-hero__icon-btn {
  display: none !important;
}

/* Match .page-kicker from Dashboard/Billing */
.admin-page .page-hero__eyebrow {
  margin: 0 !important;
  padding: 0 !important;

  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;

  color: #9a5b12 !important;
}

/* Match .page-title from Dashboard/Billing */
.admin-page .page-hero__title {
  margin: 0 !important;
  padding: 0 !important;

  font-family: var(--font-display) !important;
  font-size: 28px !important;
  line-height: 1.06 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;

  color: var(--ink-900) !important;
}

/* Match .page-subtitle from Dashboard/Billing */
.admin-page .page-hero__subtitle {
  margin: 0 !important;
  padding: 0 !important;

  max-width: 720px !important;

  font-family: var(--font-ui) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;

  color: var(--ink-600) !important;
}

/* Create the same internal spacing as page-head gap */
.admin-page .page-hero__eyebrow + .page-hero__title {
  margin-top: 0 !important;
}

.admin-page .page-hero__title + .page-hero__subtitle {
  margin-top: 0 !important;
}

/* Toolbar should start like the other pages after header */
.admin-page .page-toolbar,
.admin-page .users-toolbar {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

/* Tablet/mobile sidebar burger offset, same as working indentation */
@media (max-width: 1366px) {
  .main-content .admin-page .page-hero:first-child {
    padding-left: 60px !important;
    min-height: 48px !important;
  }

  .main-content .admin-page .page-hero:first-child .page-hero__subtitle {
    max-width: none !important;
  }
}

/* Small screens */
@media (max-width: 640px) {
  .admin-page .page-hero {
    margin-bottom: 14px !important;
  }

  .admin-page .page-hero__title {
    font-size: 28px !important;
  }

  .admin-page .page-hero__subtitle {
    font-size: 13px !important;
  }
}

/* Dark mode */
body.theme-dark .admin-page .page-hero__eyebrow {
  color: #f3c04d !important;
}

body.theme-dark .admin-page .page-hero__title {
  color: var(--ink-900) !important;
}

body.theme-dark .admin-page .page-hero__subtitle {
  color: var(--ink-600) !important;
}


/* =========================================================
   RECENT TRANSACTIONS MODAL - SEARCH + REFRESH UI FIX
   Paste at the very bottom of main.css
========================================================= */

.txn-modal .txn-modal__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5ebf3);
  background: #ffffff;
  overflow: visible;
}

/* Search input - prevents overlap when focused */
.txn-modal #recentBillsSearch {
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--border, #e5ebf3);
  border-radius: 14px;
  background: var(--surface-soft, #f8fafc);
  color: var(--ink-900, #142338);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-shadow: none;
}

.txn-modal #recentBillsSearch:focus {
  border-color: rgba(22, 156, 103, 0.55);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(22, 156, 103, 0.10);
}

/* Green icon-only refresh button */
.txn-modal #refreshRecentBillsBtn {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-green, #169c67) 0%, var(--brand-green-hover, #128455) 100%);
  color: transparent;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 156, 103, 0.18);
}

.txn-modal #refreshRecentBillsBtn::before {
  content: "↻";
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.txn-modal #refreshRecentBillsBtn:hover {
  background: linear-gradient(180deg, var(--brand-green, #169c67) 0%, var(--brand-green-hover, #128455) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 156, 103, 0.24);
}

.txn-modal #refreshRecentBillsBtn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(22, 156, 103, 0.16);
}