/* Xplorewide Team — Yellow & White Theme */
:root {
  --brand-primary: #f5b800;        /* yellow-gold */
  --brand-primary-dark: #d99800;
  --brand-primary-light: #ffd54a;
  --brand-gradient-start: #f5b800;
  --brand-gradient-end:   #d99800;

  --bg-app:        #fffdf5;        /* very light cream */
  --bg-card:       #ffffff;
  --bg-soft:       #fff8e1;
  --border-color:  #e5e7eb;
  --border-soft:   #f0e6c2;

  --text-primary:  #1f2937;
  --text-secondary:#6b7280;
  --text-muted:    #9ca3af;
  --text-on-brand: #1f2937;       /* dark text on yellow */

  --status-confirmed-bg: #fef3c7;
  --status-confirmed-fg: #92400e;
  --status-inprogress-bg:#e9d5ff;
  --status-inprogress-fg:#6b21a8;
  --status-completed-bg: #d1fae5;
  --status-completed-fg: #065f46;
  --status-cancelled-bg: #fee2e2;
  --status-cancelled-fg: #991b1b;
  --status-approved-bg:  #fef3c7;
  --status-approved-fg:  #854d0e;

  --danger:  #c0392b;
  --success: #047857;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--brand-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Header / Top Nav ============ */
.topbar {
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  color: #1f2937;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  z-index: 50;
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(31,41,55,0.4);
  color: #1f2937;
  width: 38px; height: 38px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger .bars { display: inline-block; width: 18px; height: 2px; background: #1f2937; position: relative; }
.burger .bars::before, .burger .bars::after {
  content:''; position:absolute; left:0; width:18px; height:2px; background:#1f2937;
}
.burger .bars::before { top:-6px; }
.burger .bars::after  { top: 6px; }
.topbar .brand { display: flex; align-items: center; }
.topbar .brand a { color: inherit; text-decoration: none; }

/* Brand wordmark (header: Xplore black + wide white) */
.brand-logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.brand-logo .x { color: #000; }
.brand-logo .w { color: #ffffff; }
.brand-logo .w-yellow { color: var(--brand-primary-dark); }
.brand-logo .team {
  font-weight: 400;
  color: #3f3f46;
  font-size: 16px;
  margin-left: 8px;
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a.active { opacity: 1; font-weight: 600; }

.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.role-badge {
  background: rgba(255,255,255,0.6);
  color: #1f2937;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.btn-signout {
  background: transparent;
  border: 1px solid rgba(31,41,55,0.4);
  color: #1f2937;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.btn-signout:hover { background: rgba(255,255,255,0.4); }

/* ============ Main layout ============ */
main {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 32px 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
h1 { font-size: 26px; margin: 0; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
p { color: var(--text-secondary); margin: 0 0 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--bg-soft); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  color: #1f2937;
  border: none;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%); }

/* ============ Cards ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

/* Dashboard summary card */
.summary-card {
  padding: 22px;
  border-top: 3px solid var(--brand-primary);
}
.summary-card .summary-title {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 16px;
}
.summary-card .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.summary-card .metric label {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  font-weight: 500;
}
.summary-card .metric .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.summary-card .metric .value.outstanding { color: var(--danger); }
.summary-card .metric .value.received    { color: var(--success); }

/* KPI cards (receivables) */
.kpi-card .kpi-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 700;
}
.kpi-card .kpi-value.outstanding { color: var(--danger); }
.kpi-card .kpi-value.received    { color: var(--success); }

/* ============ By status / By region rows ============ */
.row-list { display: flex; flex-direction: column; }
.row-list .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1efe5;
}
.row-list .row:last-child { border-bottom: none; }

/* ============ Status pills ============ */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.pill.confirmed   { background: var(--status-confirmed-bg);   color: var(--status-confirmed-fg); }
.pill.inprogress  { background: var(--status-inprogress-bg);  color: var(--status-inprogress-fg); }
.pill.completed   { background: var(--status-completed-bg);   color: var(--status-completed-fg); }
.pill.cancelled   { background: var(--status-cancelled-bg);   color: var(--status-cancelled-fg); }
.pill.approved    { background: var(--status-approved-bg);    color: var(--status-approved-fg); }

/* ============ Tables ============ */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 18px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
thead th {
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid #f5f1e0;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fffaf0; }
td.num, th.num { text-align: right; }
td.outstanding { color: var(--danger); font-weight: 500; }
td.received    { color: var(--success); font-weight: 500; }

/* ============ Filters bar ============ */
.filters {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 18px;
  align-items: end;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.filters input,
.filters select,
.form input,
.form select,
.form textarea {
  padding: 8px 10px;
  border: 1px solid #e2dcc1;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
}
.filters input:focus,
.filters select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: -1px;
  border-color: var(--brand-primary);
}
.filters .actions { display: flex; gap: 10px; align-items: center; }
.filters .actions .reset {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}
.filters .actions .reset:hover { color: var(--text-primary); text-decoration: underline; }
.btn-apply {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary-dark);
  color: #1f2937;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-apply:hover { background: var(--brand-primary-dark); }

.quick-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.quick-row .label { color: var(--text-secondary); font-size: 13px; }
.quick-row .chip {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.quick-row .chip:hover { background: var(--bg-soft); border-color: var(--brand-primary); text-decoration: none; }

/* ============ Forms (Products etc) ============ */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.form .field { display: flex; flex-direction: column; gap: 4px; }
.form .field.full { grid-column: 1 / -1; }
.form label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.form label .hint {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.form textarea { min-height: 90px; resize: vertical; font-family: inherit; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.form-card .form-intro { color: var(--text-secondary); font-size: 13px; margin-bottom: 18px; }

/* ============ Settings grid ============ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.setting-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.setting-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245,184,0,0.18);
  text-decoration: none;
  border-color: var(--brand-primary);
}
.setting-tile .emoji { font-size: 28px; }
.setting-tile h3 { font-size: 16px; margin: 0; }
.setting-tile p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ============ Group sections (receivables) ============ */
.group-block { margin-bottom: 24px; }
.group-block .group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  padding: 4px 0;
}
.group-block .group-head .group-title { font-size: 16px; font-weight: 700; }
.group-block .group-head .group-meta { color: var(--text-secondary); font-size: 13px; }
.subtotal-row td {
  background: #fffaf0;
  font-weight: 600;
}

/* ============ Login page ============ */
.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  width: 100%;
  max-width: 380px;
  padding: 36px 36px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.login-card .logo-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  margin: 0 auto 18px;
}
.login-card .brand-title {
  text-align: center;
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}
.login-card .brand-title .brand-sub { font-weight: 400; color: var(--text-secondary); }
.login-card .sub-line { text-align: center; color: var(--text-secondary); font-size: 13px; margin: 6px 0 24px; }
.login-card label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--text-secondary); }
.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2dcc1;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}
.login-card input:focus { outline: 2px solid var(--brand-primary); outline-offset: -1px; border-color: var(--brand-primary); }
.login-card .btn-signin {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  color: #1f2937;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.login-card .btn-signin:hover { filter: brightness(1.05); }
.login-card .footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 18px;
}

/* ============ Misc ============ */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.right { text-align: right; }
.spacer { height: 18px; }
.help-text { color: var(--text-secondary); font-size: 13px; }
.footer-count { color: var(--text-secondary); font-size: 13px; margin-top: 8px; }
.grand-total {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px;
}
.grand-total h3 { margin-bottom: 12px; }
.grand-total .gt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grand-total .gt-grid label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 4px;
}
.grand-total .gt-grid .value { font-size: 20px; font-weight: 700; }
.grand-total .gt-grid .value.outstanding { color: var(--danger); }
.grand-total .gt-grid .value.received { color: var(--success); }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
}
.modal-head h2 { margin: 0; font-size: 18px; color: #1f2937; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1f2937;
  line-height: 1;
  padding: 0 4px;
}
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px; border-top: 1px solid var(--border-soft);
  background: #fffaf0;
}

/* Generic action buttons inside tables */
.row-actions {
  display: flex; gap: 6px;
  justify-content: flex-end;
}
.btn-icon {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}
.btn-icon:hover { background: var(--bg-soft); color: var(--text-primary); }
.btn-icon.danger:hover { background: #fee2e2; color: var(--danger); }

.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: #1f2937; color: #fff;
  padding: 12px 18px; border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1100;
  animation: toast-in 0.18s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============ Sortable th ============ */
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: ' ↕'; opacity: 0.4; font-size: 10px; }
th.sortable.asc::after  { content: ' ↑'; opacity: 1; }
th.sortable.desc::after { content: ' ↓'; opacity: 1; }

/* ============ Chips multi-select ============ */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px;
  border: 1px solid #e2dcc1;
  background: #fff;
  border-radius: 8px;
}
.chips .chip-opt {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-primary);
  user-select: none;
}
.chips .chip-opt:hover { background: var(--bg-soft); }
.chips .chip-opt.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #1f2937;
  font-weight: 600;
}

.region-chip {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
  color: var(--text-primary);
}

/* ============ Component sub-sections (Land/Flight/Visa) ============ */
.comp-section {
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 22px;
  border: 1px solid var(--border-soft);
  background: #fffaf0;
}
.comp-section-land   { background: #fff9e6; border-color: #f3e0a3; }
.comp-section-flight { background: #eef4ff; border-color: #c7d6ee; }
.comp-section-visa   { background: #f5edff; border-color: #d8c5f1; }
.comp-section .section-title { margin: 0 0 12px; }

/* ============ Radio cards (advance collection) ============ */
.radio-cards { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #f9fafb; border-radius: 8px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 4px; }
.radio-cards input[type="radio"] { margin-top: 3px; }

/* ============ Section / hr ============ */
.section-title {
  font-size: 15px; font-weight: 600; margin: 24px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.divider { border: 0; border-top: 1px solid var(--border-soft); margin: 18px 0; }

/* ============ Required marker ============ */
.req { color: var(--danger); font-weight: 700; }

/* ============ Notice / Empty cards ============ */
.notice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.notice-card h2 { margin-bottom: 4px; }
.notice-card .meta { color: var(--text-secondary); font-size: 13px; }
.notice-card.empty p { color: var(--text-muted); margin: 6px 0 0; }

/* ============ Code monotype ============ */
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }

/* ============ Pill variants for actions/roles ============ */
.pill.role-management { background:#fef3c7; color:#92400e; }
.pill.role-operations { background:#dbeafe; color:#1e3a8a; }
.pill.role-teamlead   { background:#e0e7ff; color:#3730a3; }
.pill.role-seller     { background:#dcfce7; color:#166534; }
.pill.active   { background: #dcfce7; color: #166534; }
.pill.disabled { background: #fee2e2; color: #991b1b; }
.pill.action-login   { background:#e9d5ff; color:#6b21a8; }
.pill.action-logout  { background:#fecaca; color:#7f1d1d; }
.pill.action-create  { background:#dcfce7; color:#166534; }
.pill.action-update  { background:#fef3c7; color:#92400e; }
.pill.action-delete  { background:#fee2e2; color:#991b1b; }

/* ============ Responsive tweaks ============ */
@media (max-width: 1100px) {
  .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  main { padding: 22px 22px 60px; }
}

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 22px;
    gap: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 6px 0; }
  .user-block { flex-wrap: wrap; }
  .topbar { padding: 12px 18px; }
}

@media (max-width: 720px) {
  main { padding: 16px 14px 60px; }
  h1 { font-size: 22px; }
  .page-head { flex-wrap: wrap; gap: 10px; }
  .page-head > div { flex-wrap: wrap; }
  .cards-grid-3, .cards-grid-4, .cards-grid-2 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .summary-card .summary-grid { grid-template-columns: 1fr; }
  .grand-total .gt-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .filters .actions { justify-content: flex-start; }
  .modal { max-width: 100%; }
  .table-wrap { padding: 14px 12px; }
  table { font-size: 12px; }
  thead th, tbody td { padding: 8px; }
  .summary-card { padding: 16px; }
}
