:root {
  --bg: #f5efe2;
  --ink: #15211c;
  --muted: #66736d;
  --panel: #fffaf0;
  --line: #ded5c5;
  --green: #1f6a4d;
  --green-dark: #12362a;
  --lime: #d8e68e;
  --yellow: #f3bf53;
  --red: #b4473b;
  --shadow: 0 16px 38px rgba(31, 44, 38, 0.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 106, 77, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--bg);
  font-family: ui-rounded, "SF Pro Rounded", "Trebuchet MS", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-app {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(86px + var(--safe-bottom));
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .phone-app,
body.auth-locked .bottom-nav {
  display: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(31, 106, 77, 0.12) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--green-dark);
}

.login-screen.is-hidden {
  display: none;
}

.login-card {
  width: min(100%, 420px);
  border-radius: 26px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.login-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: var(--green-dark);
  background: var(--yellow);
  font-size: 34px;
  font-weight: 950;
}

.login-card p {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 18px;
}

.login-card label,
.product-form label,
.report-filter label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.login-card input,
.product-form input,
.product-form select,
.report-filter input {
  margin-top: 6px;
}

.login-error {
  min-height: 22px;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
  text-align: center;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -14px -14px 14px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 12px;
  color: #fff8e8;
  background: var(--green-dark);
  box-shadow: 0 12px 26px rgba(18, 54, 42, 0.25);
}

.app-header p,
.screen-title p,
.sheet-head p {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-header h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1;
}

.current-date {
  margin-top: 6px;
  color: rgba(255, 248, 232, 0.84);
  font-size: 14px;
  font-weight: 900;
}

.icon-action {
  width: 54px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff8e8;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.gear-action {
  font-size: 22px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.hero-stats article,
.search-card,
.product-card,
.stock-card,
.log-card,
.summary-card,
.catalog-row,
.reset-button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-height: 76px;
  padding: 12px 10px;
}

.hero-stats span,
.product-card span,
.stock-card span,
.log-card span,
.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(20px, 7vw, 30px);
  line-height: 1;
}

.search-card {
  padding: 8px;
  margin-bottom: 12px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf7;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 106, 77, 0.14);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px 12px;
  padding: 0 14px 4px;
  scrollbar-width: none;
}

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

.chips button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fffdf7;
  font-weight: 900;
}

.chips button.is-active {
  color: #fff8e8;
  background: var(--green);
  border-color: var(--green);
}

.product-list,
.stock-list,
.log-list,
.summary-list,
.catalog-list,
.cart-items {
  display: grid;
  gap: 10px;
}

.product-card,
.stock-card,
.log-card,
.summary-card,
.catalog-row {
  width: 100%;
  padding: 14px;
  text-align: left;
}

.cash-register {
  display: grid;
  gap: 12px;
}

.cart-panel {
  position: static;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: var(--shadow);
}

.cash-register .cart-panel {
  order: 2;
}

.cash-register .product-list {
  order: 1;
}

.cart-items {
  max-height: 42vh;
  overflow: auto;
  padding-right: 2px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.cart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.cart-head strong {
  font-size: 26px;
  color: var(--green-dark);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fffdf7;
}

.cart-title strong,
.cart-title span {
  display: block;
}

.cart-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-controls {
  display: grid;
  grid-template-columns: 46px minmax(72px, 1fr) 46px;
  gap: 8px;
}

.cart-controls button,
.cart-remove {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.cart-controls input,
.cart-price {
  min-height: 46px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.cart-price-fixed {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-price-fixed strong {
  color: var(--ink);
  font-size: 20px;
}

.cart-money-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.fixed-price-box {
  display: grid;
  align-content: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fffdf7;
}

.fixed-price-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fixed-price-box strong {
  margin-top: 4px;
  font-size: 22px;
}

.cart-sum {
  display: grid;
  gap: 3px;
  color: var(--green-dark);
  font-weight: 950;
  text-align: left;
}

.cart-sum span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-sum strong {
  font-size: 24px;
}

.cart-remove {
  grid-column: 1 / -1;
  min-height: 48px;
  background: var(--red);
}

.cart-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.return-button,
.cancel-button {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.return-button {
  background: var(--yellow);
  color: var(--green-dark);
}

.cancel-button {
  background: var(--red);
}

.modal-actions {
  display: grid;
  gap: 9px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 78px;
}

.product-card h3,
.stock-card h3,
.screen-title h2,
.sheet-head h2 {
  margin: 0;
}

.product-card h3 {
  font-size: 17px;
  line-height: 1.15;
}

.stock-badge {
  min-width: 62px;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  color: var(--green-dark);
  background: #e5edcd;
  font-weight: 950;
}

.stock-badge.low,
.warning {
  color: #fff;
  background: var(--red);
}

.stock-badge.service {
  color: var(--green-dark);
  background: var(--yellow);
}

.stock-badge.food {
  color: #083344;
  background: #7dd3fc;
}

.muted-cell {
  color: var(--muted);
  font-weight: 900;
}

.screen-title {
  margin: 10px 0 12px;
}

.screen-title p {
  color: var(--muted);
}

.screen-title h2 {
  font-size: 30px;
}

.page-search {
  margin-bottom: 12px;
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
}

.view-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  font-weight: 950;
}

.view-toggle button.is-active {
  color: #fff8e8;
  background: var(--green);
}

.stock-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.stock-card h3 {
  font-size: 17px;
}

.stock-card .numbers {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stock-actions {
  display: grid;
  grid-template-columns: 74px 42px;
  gap: 7px;
}

.stock-actions input {
  min-height: 42px;
  text-align: center;
  padding: 0 6px;
}

.stock-actions button,
.log-card button,
.wide-action,
.report-filter button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.stock-list.is-table {
  display: block;
}

.stock-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.stock-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.stock-table th {
  padding: 14px 16px;
  color: #fff8e8;
  background: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  text-align: left;
}

.stock-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
}

.stock-table tbody tr:last-child td {
  border-bottom: 0;
}

.stock-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stock-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-table-actions input {
  width: 100px;
  min-height: 42px;
  padding: 0 10px;
  text-align: center;
}

.stock-table-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.wide-action {
  width: 100%;
  min-height: 50px;
  margin-bottom: 12px;
}

.secondary-action {
  background: var(--green-dark);
}

.catalog-actions {
  display: grid;
  gap: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.catalog-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-row strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.catalog-price {
  min-width: 86px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}

.small-edit {
  min-width: 54px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.log-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.log-card:not(.can-delete) {
  grid-template-columns: 1fr auto;
}

.log-card strong {
  display: block;
}

.log-card.is-return {
  border-color: rgba(184, 71, 59, 0.38);
  background: #fff4ee;
}

.sale-badge,
.return-badge {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sale-badge {
  color: var(--green-dark);
  background: #e5edcd;
}

.return-badge {
  color: #fff;
  background: var(--red);
}

.return-text {
  color: var(--red);
}

.log-card button {
  width: 42px;
  height: 42px;
  background: var(--red);
}

.summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.summary-card strong {
  font-size: 28px;
}

.report-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-top {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-controls {
  display: grid;
  gap: 10px;
}

.detail-controls label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-controls input {
  margin-top: 6px;
}

.detail-table-wrap {
  width: 100%;
  max-height: calc(100vh - 250px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.detail-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
}

.detail-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 10px;
  color: #fff8e8;
  background: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-align: left;
  white-space: nowrap;
}

.detail-table td {
  min-height: 52px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
}

.detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.detail-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.detail-table .day-cell {
  min-width: 42px;
  text-align: center;
}

.detail-table .negative,
.low-stock-text {
  color: var(--red);
}

.report-filter button {
  grid-column: 1 / -1;
  min-height: 48px;
}

.director-only {
  display: none;
}

body.is-director .director-only {
  display: block;
}

.director-nav {
  display: none;
}

body.is-director .director-nav {
  display: block;
}

.compact-title {
  margin-top: 18px;
}

.stock-summary-heading {
  margin: 10px 0 12px;
  text-align: right;
}

.stock-summary-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.director-report-section {
  display: grid;
  gap: 18px;
  width: 100%;
}

.report-heading {
  justify-content: flex-end;
  text-align: right;
}

.top-sales-list {
  align-items: stretch;
}

.product-form {
  display: grid;
  gap: 2px;
  margin: 14px 0;
}

.profile-meta {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fffdf7;
}

.profile-meta span {
  color: var(--muted);
  font-weight: 900;
}

.profile-meta strong {
  font-size: 22px;
}

.director-user-box {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.users-button {
  margin-top: 12px;
}

.users-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fffdf7;
}

.user-row span,
.user-row strong {
  display: block;
}

.user-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.user-row strong {
  margin-top: 3px;
  font-size: 18px;
}

.delete-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.compact-sheet-head {
  margin-bottom: 0;
}

.reset-button {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  color: #fff;
  background: var(--red);
  border: 0;
  font-weight: 950;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 7px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 9px 10px calc(9px + var(--safe-bottom));
  background: rgba(18, 54, 42, 0.96);
  box-shadow: 0 -12px 30px rgba(18, 54, 42, 0.24);
}

.desktop-brand {
  display: none;
}

.bottom-nav button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  color: rgba(255, 248, 232, 0.7);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.bottom-nav button.is-active {
  color: var(--green-dark);
  background: #fff8e8;
}

.cart-jump {
  position: fixed;
  right: 14px;
  bottom: calc(78px + var(--safe-bottom));
  left: 14px;
  z-index: 25;
  display: none;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 32px rgba(18, 54, 42, 0.28);
  font-weight: 950;
}

.cart-jump.is-visible {
  display: block;
}

.sale-sheet {
  width: min(100% - 18px, 540px);
  margin: auto auto 8px;
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.sale-sheet::backdrop {
  background: rgba(11, 21, 17, 0.52);
  backdrop-filter: blur(4px);
}

.sale-sheet form {
  padding: 10px 14px 16px;
}

.sheet-grabber {
  width: 46px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #c9c0b0;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head p {
  color: var(--muted);
}

.sheet-head h2 {
  margin-top: 2px;
  font-size: 23px;
  line-height: 1.08;
}

.close-sheet {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #efe6d7;
  font-size: 28px;
  line-height: 1;
}

.stock-banner {
  margin: 14px 0;
  border-radius: 16px;
  padding: 12px;
  color: var(--green-dark);
  background: #e5edcd;
  font-weight: 950;
  text-align: center;
}

.sale-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sale-fields label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sale-fields input {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.qty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 14px 0;
}

.qty-grid button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fffdf7;
  font-size: 20px;
  font-weight: 950;
}

.confirm-sale {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--green);
  font-size: 22px;
  font-weight: 950;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(82px + var(--safe-bottom));
  left: 14px;
  z-index: 30;
  max-width: 532px;
  margin: 0 auto;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 16px 40px rgba(18, 54, 42, 0.3);
  font-weight: 900;
  transition: 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1180px) {
  body {
    background:
      linear-gradient(90deg, rgba(31, 106, 77, 0.05) 1px, transparent 1px),
      linear-gradient(rgba(31, 106, 77, 0.045) 1px, transparent 1px),
      var(--bg);
    background-size: 28px 28px;
  }

  .phone-app {
    width: auto;
    max-width: none;
    min-height: 100vh;
    margin: 0 0 0 252px;
    padding: 22px 24px 28px;
  }

  .app-header {
    position: sticky;
    top: 18px;
    margin: 0 0 18px;
    border-radius: 22px;
    padding: 18px 20px;
  }

  .app-header h1 {
    font-size: 36px;
  }

  .current-date {
    font-size: 15px;
  }

  .icon-action {
    width: 72px;
    height: 48px;
  }

  .bottom-nav {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 232px;
    height: 100vh;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 24px 14px;
    overflow: hidden;
  }

  .bottom-nav::before {
    content: none;
  }

  .desktop-brand {
    display: grid;
    align-content: center;
    gap: 2px;
    width: 100%;
    height: 84px;
    margin-bottom: 14px;
    border-radius: 24px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--yellow) 0 34%, rgba(255, 248, 232, 0.08) 34% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 248, 232, 0.14);
  }

  .desktop-brand strong,
  .desktop-brand span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #fff8e8;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-brand strong {
    font-size: 30px;
    font-weight: 950;
  }

  .desktop-brand span {
    font-size: 15px;
    font-weight: 900;
    opacity: 0.86;
    text-transform: uppercase;
  }

  .bottom-nav button {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0 16px;
    text-align: left;
    font-size: 16px;
    overflow: hidden;
  }

  .bottom-nav button.is-active {
    box-shadow: none;
  }

  .cart-jump {
    display: none !important;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
  }

  .hero-stats article {
    min-height: 104px;
    padding: 18px;
  }

  .hero-stats strong {
    font-size: 42px;
  }

  #cash-view.is-visible {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .search-card {
    width: min(520px, 100%);
    padding: 10px;
    margin: 0;
  }

  .chips {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .cash-register {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
  }

  .cart-items {
    max-height: none;
    overflow: visible;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-title {
    min-width: 0;
  }

  .cart-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-money-row {
    grid-template-columns: 1fr 1fr 100px;
    align-items: center;
  }

  .cart-remove {
    grid-column: auto;
  }

  .product-card {
    min-height: 112px;
    padding: 18px;
  }

  .product-card h3 {
    font-size: 19px;
  }

  .stock-badge {
    min-width: 76px;
    padding: 14px 10px;
    font-size: 20px;
  }

  .screen-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 4px 0 16px;
  }

  .screen-title h2 {
    font-size: 42px;
  }

  .wide-action {
    width: auto;
    min-width: 220px;
    padding: 0 22px;
  }

  .page-search {
    width: min(520px, 100%);
  }

  .stock-list {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 14px;
  }

  .stock-card,
  .log-card,
  .summary-card {
    border-radius: 14px;
    padding: 18px;
  }

  .stock-card h3 {
    font-size: 20px;
  }

  .stock-actions {
    grid-template-columns: 92px 46px;
  }

  .catalog-actions {
    width: min(560px, 100%);
    grid-template-columns: 1fr 1fr;
  }

  .catalog-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-row {
    min-height: 72px;
    border-radius: 14px;
    padding: 16px 18px;
  }

  .catalog-row strong {
    font-size: 22px;
  }

  .log-list {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 14px;
  }

  .summary-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }

  .stock-summary-heading {
    margin: 20px 0 14px;
  }

  .stock-summary-heading h2 {
    font-size: 38px;
  }

  .director-report-section {
    gap: 22px;
    grid-column: 1 / -1;
    width: 100%;
  }

  .director-report-section > .summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
  }

  .report-heading {
    display: flex;
    width: 100%;
    margin-top: 24px;
    justify-content: flex-end;
  }

  .top-sales-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    width: 100%;
  }

  .report-filter {
    width: min(760px, 100%);
    grid-template-columns: 1fr 1fr 180px;
    align-items: end;
  }

  .report-filter button {
    grid-column: auto;
    min-height: 48px;
  }

  .detail-top {
    grid-template-columns: 1fr minmax(520px, 720px);
    align-items: end;
  }

  .detail-controls {
    grid-template-columns: 190px 1fr;
    align-items: end;
  }

  .detail-controls .page-search {
    width: 100%;
  }

  .reset-button {
    width: min(360px, 100%);
  }

  .sale-sheet {
    width: min(560px, calc(100% - 40px));
    margin: auto;
  }

  .sale-sheet form {
    padding: 16px 20px 20px;
  }

  .login-screen {
    background:
      radial-gradient(circle at 50% 36%, rgba(245, 239, 226, 0.16), transparent 34%),
      rgba(18, 54, 42, 0.96);
  }

  .login-card {
    width: min(440px, 100%);
  }
}
