:root {
  --navy: #071a33;
  --navy-light: #102a4d;
  --gold: #c7a24b;
  --gold-light: #f4e5b4;
  --paper: #f4f6f9;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe5ec;
  --danger: #b42318;
  --success: #18794e;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.loading-screen, .auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 15% 12%, #25496f 0, transparent 32%), linear-gradient(145deg, #061426, var(--navy) 58%, #0e2c50);
}
.loading-screen { color: white; text-align: center; align-content: center; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border: 3px solid var(--gold);
  border-radius: 22px;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -2px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid #ffffff22;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px #0000004d;
}
.auth-card .brand-mark { background: var(--navy); }
.auth-card h1 { margin: 0; color: var(--navy); text-align: center; font-size: 26px; }
.auth-card .subtitle { margin: 8px 0 28px; color: var(--muted); text-align: center; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
[hidden] { display: none !important; }
.split-payment-row { border-top: 1px solid #e4e7ec; padding-top: 14px; margin-top: 14px; }
.field label { color: var(--navy); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfd7e2; border-radius: 11px; outline: none; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #c7a24b2b; }
.field textarea { resize: vertical; }
.primary-button, .secondary-button { border: 0; border-radius: 11px; padding: 12px 16px; font-weight: 800; }
.primary-button { width: 100%; color: var(--navy); background: var(--gold); }
.primary-button:hover { filter: brightness(1.06); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { color: var(--navy); background: #eef2f6; }
.message { min-height: 20px; margin: 13px 0 0; font-size: 13px; font-weight: 700; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.password-rules { margin: -4px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.shell { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; color: white; background: var(--navy); border-bottom: 4px solid var(--gold); }
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-brand .mini-mark { color: var(--gold); font-size: 25px; font-weight: 900; }
.topbar-brand small { display: block; color: #bfc9d7; }
.user-box { display: flex; align-items: center; gap: 12px; }
.user-box strong, .user-box small { display: block; text-align: right; }
.user-box small { color: #c4ceda; text-transform: capitalize; }
.logout-button { padding: 9px 12px; border: 1px solid #ffffff33; border-radius: 10px; color: white; background: transparent; }

.content { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
#module-panel:not(:empty) { min-height: 100vh; }
.welcome { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.welcome h1 { margin: 0 0 5px; color: var(--navy); font-size: 27px; }
.welcome p { margin: 0; color: var(--muted); }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #6b5314; background: var(--gold-light); font-size: 12px; font-weight: 800; }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module-card { min-height: 150px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 30px #071a330b; }
.module-card h2 { margin: 12px 0 7px; color: var(--navy); font-size: 17px; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.module-card .icon { font-size: 23px; }
.module-card.disabled { opacity: .55; }
.module-card.interactive:not(.disabled) { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card.interactive:not(.disabled):hover, .module-card.interactive:not(.disabled):focus { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 13px 34px #071a3318; outline: none; }

.panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; color: var(--navy); font-size: 19px; }
.panel-body { padding: 20px; }
.permissions-list { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-chip { padding: 7px 10px; border-radius: 999px; color: var(--navy); background: #edf2f7; font-size: 12px; font-weight: 700; }

.users-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.user-card h3 { margin: 0 0 4px; color: var(--navy); }
.user-card .username { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.permission-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.permission-form .field { margin: 0 0 7px; }
.check { display: flex; align-items: center; gap: 8px; color: #344054; font-size: 13px; }
.check input { accent-color: var(--gold); }
.user-actions { display: flex; justify-content: flex-end; margin-top: 15px; }
.user-actions .primary-button { width: auto; }

.product-toolbar small { display: block; margin-top: 5px; color: var(--muted); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.toolbar-actions input { min-width: 290px; padding: 11px 13px; border: 1px solid #cfd7e2; border-radius: 11px; }
.primary-button.compact { width: auto; white-space: nowrap; }
.products-list { display: grid; gap: 12px; padding: 20px; }
.product-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.product-photo { display: grid; place-items: center; min-height: 110px; overflow: hidden; border-radius: 12px; color: var(--navy); background: #f0f3f7; font-size: 34px; }
.product-photo img { width: 100%; height: 100%; max-height: 120px; object-fit: contain; }
.product-info { min-width: 0; }
.product-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-title small { color: var(--gold); font-weight: 900; }
.product-title h3 { margin: 3px 0 0; color: var(--navy); font-size: 18px; }
.product-info > p { margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.product-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; }
.product-numbers strong { color: var(--navy); font-size: 18px; }
.product-numbers span { color: #475467; font-size: 13px; }
.stock { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.stock.success { color: #067647; background: #ecfdf3; }
.stock.warning { color: #b54708; background: #fffaeb; }
.stock.danger { color: var(--danger); background: #fef3f2; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.danger-button { padding: 10px 13px; border: 0; border-radius: 10px; color: var(--danger); background: #fef3f2; font-weight: 800; }
.product-form { margin: 20px; padding: 20px; border: 1px solid #d5b865; border-radius: 15px; background: #fffaf0; }
.product-form.compact-form { background: #f8fafc; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.form-heading h3 { margin: 0; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .wide { grid-column: span 2; }
.product-form > .primary-button { width: auto; }
.empty-state { padding: 35px; color: var(--muted); text-align: center; }

.panel-header small { display: block; margin-top: 5px; color: var(--muted); }
.sale-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); gap: 18px; padding: 20px; background: #f8fafc; }
.sale-catalog, .cart-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.sale-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sale-section-heading:not(:first-child) { margin-top: 22px; }
.sale-section-heading h3, .cart-card h3 { margin: 0; color: var(--navy); font-size: 16px; }
.sale-section-heading input { min-width: 240px; padding: 10px 12px; border: 1px solid #cfd7e2; border-radius: 10px; }
.inline-form { margin-bottom: 18px; padding: 16px; border: 1px solid #d5b865; border-radius: 13px; background: #fffaf0; }
.inline-form .primary-button { width: auto; }
.sale-products { display: grid; gap: 9px; max-height: 520px; overflow-y: auto; }
.sale-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.sale-product > div { display: grid; gap: 3px; }
.sale-product small { color: var(--gold); font-weight: 900; }
.sale-product strong { color: var(--navy); }
.sale-product span { color: var(--muted); font-size: 12px; }
.sale-product.unavailable { opacity: .55; }
.sale-product button:disabled { cursor: not-allowed; }
.cart-card { align-self: start; position: sticky; top: 15px; }
.sale-cart { margin: 14px 0 18px; }
.empty-cart { padding: 22px 8px; color: var(--muted); text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr 65px 32px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item > div { display: grid; gap: 3px; }
.cart-item strong { color: var(--navy); font-size: 13px; }
.cart-item small { color: var(--muted); }
.cart-item input { width: 100%; padding: 8px; border: 1px solid #cfd7e2; border-radius: 8px; }
.cart-remove { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--danger); background: #fef3f2; font-size: 20px; }
.cart-totals { display: grid; gap: 7px; margin-top: 14px; padding-top: 12px; }
.cart-totals span, .cart-totals strong { display: flex; justify-content: space-between; }
.cart-totals span { color: var(--muted); font-size: 13px; }
.cart-totals strong { padding-top: 8px; border-top: 1px solid var(--line); color: var(--navy); font-size: 18px; }
.sales-list { display: grid; gap: 10px; padding: 20px; }
.sale-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.sale-row h3 { margin: 4px 0; color: var(--navy); font-size: 16px; }
.sale-row p, .sale-row small { margin: 0; color: var(--muted); font-size: 12px; }
.sale-summary { display: grid; justify-items: end; gap: 6px; }
.sale-summary strong { color: var(--navy); font-size: 18px; }
.status { padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.status.finalizada { color: var(--success); background: #ecfdf3; }
.status.cancelada { color: var(--danger); background: #fef3f2; }
.photo-field > small { color: var(--muted); font-size: 11px; }
.photo-preview { display: grid; place-items: center; width: 150px; height: 115px; margin-top: 9px; overflow: hidden; border: 1px dashed #cbd5e1; border-radius: 11px; color: var(--muted); background: #f8fafc; font-size: 12px; }
.photo-preview img { width: 100%; height: 100%; object-fit: contain; }

.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: #071a33cc; }
.receipt-modal { width: min(100%, 650px); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 20px; background: white; box-shadow: 0 30px 90px #0008; }
.receipt-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.receipt-modal-head small { color: var(--success); font-weight: 800; }
.receipt-modal-head h2 { margin: 4px 0 0; color: var(--navy); }
.receipt-preview { margin: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.receipt-brand { display: flex; align-items: center; gap: 14px; padding: 19px; color: white; background: var(--navy); }
.receipt-brand > b { color: var(--gold); font-size: 28px; }
.receipt-brand span { font-weight: 800; }
.receipt-brand small { display: block; margin-top: 3px; color: #cbd5e1; font-weight: 400; }
.receipt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: #f8fafc; }
.receipt-info p { display: grid; gap: 3px; margin: 0; }
.receipt-info small { color: var(--gold); font-weight: 900; }
.receipt-info span { color: var(--muted); font-size: 11px; }
.receipt-items { padding: 7px 16px; }
.receipt-items > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-items span { display: grid; gap: 3px; }
.receipt-items small { color: var(--muted); }
.receipt-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; color: var(--muted); background: #fff9e8; }
.receipt-total strong { color: var(--navy); font-size: 18px; }
.receipt-warning { display: block; padding: 10px 16px; color: var(--muted); text-align: center; }
.receipt-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 0 20px 20px; }
.report-filter { display: flex; align-items: end; gap: 12px; margin: 15px 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.report-filter .field { min-width: 180px; margin: 0; }
.reports-shell, .commission-panel { margin-top: 20px; }
.commission-total { color: var(--navy); font-size: 23px; }

.catalog-shell { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 45px #071a3312; }
.catalog-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px; color: white; background: radial-gradient(circle at 85% 20%, #234f7b 0, transparent 30%), linear-gradient(135deg, #061426, var(--navy-light)); border-bottom: 5px solid var(--gold); }
.catalog-hero span, .admin-heading > div > span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 1.6px; }
.catalog-hero h2 { margin: 7px 0; font-size: clamp(26px, 4vw, 42px); }
.catalog-hero p { margin: 0; color: #d6deea; }
.catalog-brand-mark { display: grid; place-items: center; width: 88px; height: 88px; flex: 0 0 auto; border: 2px solid var(--gold); border-radius: 24px; color: var(--gold); font-size: 32px; font-weight: 900; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; padding: 12px 14px; border: 1px solid #cfd7e2; border-radius: 11px; background: white; }
.catalog-toolbar span { color: var(--muted); font-size: 13px; font-weight: 700; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 20px; padding: 22px; background: #f7f9fc; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-content: start; }
.catalog-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px #071a3308; }
.catalog-product-image { display: grid; place-items: center; height: 190px; overflow: hidden; color: #b28e37; background: linear-gradient(145deg, #f8fafc, #eef2f6); font-size: 33px; font-weight: 900; }
.catalog-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.catalog-product-content { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.catalog-product-content > small { color: var(--gold); font-size: 11px; font-weight: 900; }
.catalog-product-content h3 { margin: 6px 0; color: var(--navy); font-size: 17px; }
.catalog-product-content > p { display: -webkit-box; min-height: 38px; margin: 0 0 14px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 13px; }
.catalog-product-footer strong { color: var(--navy); font-size: 20px; }
.availability { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.availability.available { color: var(--success); background: #ecfdf3; }
.availability.unavailable { color: var(--danger); background: #fef3f2; }
.catalog-cart-card { position: sticky; top: 15px; align-self: start; padding: 18px; border: 1px solid #d4ba70; border-radius: 17px; background: #fffdf7; }
.catalog-cart-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #e9dfc3; }
.catalog-cart-title small { color: var(--gold); font-weight: 900; }
.catalog-cart-title h3 { margin: 4px 0 0; color: var(--navy); }
.catalog-cart-title > span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; color: var(--navy); background: var(--gold); font-weight: 900; }
.catalog-cart-item { display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #e9dfc3; }
.catalog-cart-item div { display: grid; gap: 3px; }
.catalog-cart-item strong { color: var(--navy); font-size: 13px; }
.catalog-cart-item small { color: var(--muted); }
.catalog-cart-total { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 16px 0; color: var(--muted); }
.catalog-cart-total strong { color: var(--navy); font-size: 21px; }
.catalog-cart-card > p { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

.admin-shell { margin-top: 20px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 26px; border-radius: 19px; color: white; background: linear-gradient(135deg, var(--navy), #123d68); }
.admin-heading h2 { margin: 6px 0; font-size: 27px; }
.admin-heading p { margin: 0; color: #cbd5e1; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.admin-metric { display: grid; gap: 5px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.admin-metric small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-metric strong { color: var(--navy); font-size: 23px; }
.admin-metric span { color: var(--muted); font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-section { min-width: 0; }
.wide-section { grid-column: span 2; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 11px 14px; color: var(--muted); background: #f8fafc; text-align: left; font-size: 11px; text-transform: uppercase; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: #344054; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); }
.admin-table .secondary-button { white-space: nowrap; padding: 8px 10px; }
.overdue-row { background: #fff7f6; }
.empty-cell { color: var(--muted); text-align: center; }
.admin-ranking { padding: 9px 18px 17px; }
.admin-ranking > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.admin-ranking > div > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--navy); background: var(--gold-light); font-weight: 900; }
.admin-ranking p { display: grid; gap: 2px; margin: 0; }
.admin-ranking small { color: var(--muted); }
.admin-ranking b { color: var(--navy); }
.stock-alert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.stock-alert-grid article { display: grid; gap: 5px; padding: 13px; border: 1px solid #f1c6c2; border-radius: 12px; background: #fffafa; }
.stock-alert-grid small { color: var(--danger); font-weight: 900; }
.stock-alert-grid strong { color: var(--navy); }
.stock-alert-grid span { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-layout { grid-template-columns: 1fr; }
  .cart-card { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-cart-card { position: static; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .auth-card { padding: 27px 22px; }
  .topbar { padding: 12px 15px; }
  .topbar-brand small, .user-box div { display: none; }
  .content { width: min(100% - 22px, 1180px); margin-top: 20px; }
  .welcome { display: block; }
  .welcome .pill { margin-top: 12px; }
  .module-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .module-card { min-height: 138px; padding: 15px; }
  .permission-form { grid-template-columns: 1fr; }
  .product-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .toolbar-actions input { min-width: 0; width: 100%; }
  .primary-button.compact { width: 100%; }
  .product-card { grid-template-columns: 75px 1fr; gap: 11px; padding: 11px; }
  .product-photo { min-height: 75px; }
  .product-title { display: block; }
  .product-title .stock { display: inline-flex; margin-top: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: span 1; }
  .product-form { margin: 12px; padding: 15px; }
  .sale-layout { padding: 11px; }
  .sale-catalog, .cart-card { padding: 14px; }
  .sale-section-heading { align-items: stretch; flex-direction: column; }
  .sale-section-heading input { min-width: 0; width: 100%; }
  .sale-row { align-items: flex-start; flex-direction: column; }
  .sale-summary { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .catalog-hero { padding: 24px 19px; }
  .catalog-brand-mark { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-layout { padding: 12px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-product-image { height: 210px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .wide-section { grid-column: span 1; }
  .stock-alert-grid { grid-template-columns: 1fr; }
  .receipt-info { grid-template-columns: 1fr; }
  .receipt-actions, .report-filter { align-items: stretch; flex-direction: column; }
  .receipt-actions .primary-button, .receipt-actions .secondary-button { width: 100%; }
  .report-filter .field { min-width: 0; }
}

@media print {
  #module-panel { min-height: 0; }
  .topbar, .welcome, .module-grid, .content > .panel, #users-panel, .report-filter, #print-report { display: none !important; }
  body, .content { width: 100%; margin: 0; background: white; }
  .reports-shell { margin: 0; }
  .admin-heading { color: var(--navy); background: white; border-bottom: 3px solid var(--gold); }
  .admin-heading p { color: var(--muted); }
  .panel, .admin-metric { break-inside: avoid; box-shadow: none; }
}
