:root {
  color-scheme: dark;
  --bg: #131315;
  --bg-soft: #222327;
  --bg-strong: #2f2f34;
  --card: rgba(31, 31, 33, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 180, 170, 0.2);
  --text: #ece8e7;
  --muted: #a8a1a0;
  --danger: #ff5545;
  --danger-soft: rgba(255, 85, 69, 0.18);
  --ok-soft: rgba(105, 211, 252, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

body {
  background:
    radial-gradient(circle at top right, rgba(255, 85, 69, 0.1), transparent 22%),
    radial-gradient(circle at bottom left, rgba(105, 211, 252, 0.08), transparent 18%),
    linear-gradient(180deg, #101012 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.brand,
.topbar-left,
.topbar-right,
.topbar-user,
.panel-head,
.summary-line,
.list-row,
.product-bottom,
.cart-item,
.filters-row,
.hero-panel,
.hero-meta,
.checkout-layout {
  display: flex;
  gap: 1rem;
}

.brand,
.topbar-left,
.topbar-right,
.topbar-user,
.panel-head,
.summary-line,
.list-row,
.product-bottom,
.filters-row,
.hero-panel,
.hero-meta {
  align-items: center;
}

.summary-line,
.panel-head,
.list-row,
.product-bottom,
.hero-panel {
  justify-content: space-between;
}

.brand {
  gap: 1rem;
}

.brand h1,
.brand h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.brand-overline,
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb4aa 0%, #ff5545 100%);
  color: #2c0805;
  box-shadow: 0 18px 28px rgba(255, 85, 69, 0.25);
}

.brand.compact .brand-mark {
  width: 2.6rem;
  height: 2.6rem;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-right: 10px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.brand-logo:hover {
  opacity: 0.8;
}

.login-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.login-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
}

.login-bg-one {
  top: -12rem;
  right: -10rem;
  width: 32rem;
  height: 32rem;
  background: rgba(255, 85, 69, 0.16);
}

.login-bg-two {
  left: -10rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  background: rgba(105, 211, 252, 0.09);
}

.login-header,
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-main {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 360px);
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.login-card,
.preview-panel,
.panel,
.metric-card,
.quick-card,
.summary-box,
.employee-card,
.status-banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-card,
.preview-panel,
.panel {
  padding: 0.9rem;
}

.stack,
.form-grid,
.view-stack,
.cart-list,
.list-table,
.sidebar,
.nav-links,
.metric-grid,
.quick-grid,
.employee-grid,
.product-grid,
.summary-grid,
.payment-grid,
.cash-table {
  display: grid;
  gap: 0.9rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.role-card input {
  position: absolute;
  opacity: 0;
}

.role-card-ui {
  display: grid;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid transparent;
}

.role-card input:checked + .role-card-ui {
  border-color: var(--line-strong);
  background: rgba(255, 85, 69, 0.1);
}

.field,
.mini-field,
.inline-field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.mini-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-shell,
.search-shell,
.field input,
.field select,
.field textarea,
.mini-field input,
.inline-field select,
.inline-field input {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.field-shell,
.search-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.05rem 0.75rem;
}

.field-shell input,
.search-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.8rem 0;
  outline: none;
}

.field input,
.field select,
.field textarea,
.mini-field input,
.inline-field select,
.inline-field input {
  outline: none;
  padding: 0.72rem 0.8rem;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.tag-button,
.tag-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-button {
  cursor: pointer;
}

.tag-button--new {
  border-color: var(--line-strong);
  color: #ffb4aa;
}

.primary-button,
.ghost-button,
.icon-button,
.payment-button,
.nav-link,
.quick-card {
  border: 0;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ffb4aa 0%, #ff5545 100%);
  color: #330502;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(255, 85, 69, 0.22);
}

.ghost-button,
.icon-button,
.payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 0.85rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
}

.full-width,
.wide {
  width: 100%;
}

.feedback,
.helper-line,
.muted,
.list-row span,
.product-card p,
.product-bottom em {
  color: var(--muted);
}

.panel-head h4,
.panel-head h5 {
  margin: 0.15rem 0 0;
  line-height: 1.25;
}

.panel-head .eyebrow {
  margin-bottom: 0.35rem;
}

.language-switch {
  display: inline-flex;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switch button.is-active {
  background: #f0e4e1;
  color: #2b0b08;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 4.25rem;
  padding: 0 1rem;
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 4.25rem;
  bottom: 0;
  width: 16rem;
  padding: 1rem;
  background: rgba(18, 18, 20, 0.92);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.nav-link {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.nav-link.is-active {
  color: #ffb4aa;
  background: rgba(255, 85, 69, 0.11);
  border: 1px solid var(--line-strong);
}

.content {
  margin-left: 16rem;
  padding: 1rem;
}

.status-banner {
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.hero-panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%);
}

.hero-meta {
  flex-direction: column;
  align-items: flex-end;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card,
.summary-box,
.employee-card {
  padding: 0.8rem;
}

.metric-card span,
.summary-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.metric-card strong,
.summary-box strong,
.hero-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.quick-card {
  padding: 0.85rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: left;
  min-height: 4rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.quick-card:hover,
.product-card:hover,
.employee-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.installment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.segment-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0.85rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.segment-button.is-active {
  color: #2b0b08;
  background: linear-gradient(135deg, #ffb4aa 0%, #ff5545 100%);
  box-shadow: 0 10px 20px rgba(255, 85, 69, 0.2);
}

.quick-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #d2cbca;
}

.grid.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.installment-layout {
  grid-template-columns: minmax(0, var(--installment-left, 1fr)) minmax(0, var(--installment-right, 1fr));
  transition: grid-template-columns 0.2s ease;
}

.subpanel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
}

.settings-collapsible {
  display: grid;
  gap: 0.9rem;
}

.settings-collapsible > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
  padding: 0.45rem 0.1rem;
}

.settings-collapsible > summary::-webkit-details-marker {
  display: none;
}

.settings-collapsible > summary .material-symbols-outlined {
  transition: transform 0.18s ease;
}

.settings-collapsible[open] > summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.cash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

.cash-row span,
.cash-row strong {
  line-height: 1.3;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.positive {
  color: #7ce4b1;
}

.negative {
  color: #ff8d83;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.68rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.danger {
  background: var(--danger-soft);
  color: #ffb4aa;
}

.badge.ok {
  background: var(--ok-soft);
  color: #bbe9ff;
}

.badge.warn {
  background: rgba(255, 166, 77, 0.16);
  color: #ffbc7a;
}

.align-right {
  text-align: right;
}

.progress {
  position: relative;
  width: 100%;
  min-width: 9rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #ff5545 0%, #ffb4aa 100%);
}

.progress span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.2rem;
  font-weight: 800;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 460px);
  align-items: start;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.checkout-browser .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.checkout-browser {
  display: grid;
  gap: 0.9rem;
}

.checkout-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-breadcrumb-link,
.checkout-breadcrumb-current {
  line-height: 1.35;
}

.checkout-breadcrumb-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.checkout-breadcrumb-link.is-active,
.checkout-breadcrumb-current {
  color: var(--text);
}

.checkout-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.18);
}

.checkout-back-button {
  min-height: 2.6rem;
  padding-inline: 0.85rem;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.subcategory-card {
  min-height: 7rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  color: var(--text);
  display: grid;
  justify-items: start;
  align-content: space-between;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.subcategory-card span {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: rgba(255, 85, 69, 0.12);
  color: #ffb4aa;
}

.subcategory-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.subcategory-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.product-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  min-height: 10rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.checkout-browser .product-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  height: 100%;
}

.product-card-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
}

.product-add-button {
  min-height: 2.4rem;
  font-weight: 800;
}

.favorite-toggle {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}

.favorite-toggle.is-active {
  color: #ffbc7a;
  border-color: rgba(255, 188, 122, 0.32);
  background: rgba(255, 166, 77, 0.16);
}

.checkout-topup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(8px);
}

.checkout-topup-modal {
  width: min(440px, 100%);
  display: grid;
  gap: 0.9rem;
}

.feedback-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 170, 0.35);
  background: linear-gradient(135deg, rgba(255, 85, 69, 0.92), rgba(255, 180, 170, 0.9));
  color: #2f0905;
  font-weight: 900;
  padding: 0.72rem 0.95rem;
  box-shadow: 0 14px 30px rgba(255, 85, 69, 0.34);
}

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(8px);
}

.feedback-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 0.9rem;
}

.product-name {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-category {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.checkout-browser .product-category {
  margin-bottom: 0.6rem;
}

.checkout-browser .product-bottom {
  margin-top: auto;
  min-height: 2.4rem;
  align-items: flex-end;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.cart-panel {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.checkout-cart-panel {
  gap: 1.15rem;
}

.cart-section {
  display: grid;
  gap: 0.7rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.cart-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-section-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-count {
  min-width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 85, 69, 0.12);
  color: #ffb4aa;
  font-size: 0.85rem;
}

.cart-list {
  gap: 0.8rem;
}

.cart-item-top,
.cart-item-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.cart-item-top {
  margin-bottom: 0.8rem;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy strong {
  display: block;
  line-height: 1.4;
}

.cart-item-copy p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-line-total {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-remove-button {
  flex-shrink: 0;
  color: var(--muted);
}

.cart-remove-button:hover {
  color: #ffb4aa;
  border-color: var(--line-strong);
}

.cart-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-qty {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 800;
}

.cart-price-field {
  min-width: 8.5rem;
}

.cart-price-field input {
  text-align: right;
}

.checkout-total-block {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 85, 69, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 180, 170, 0.18);
}

.checkout-total-block span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-button.is-active {
  border-color: var(--line-strong);
  background: var(--danger-soft);
  color: #ffb4aa;
  box-shadow: 0 0 0 1px rgba(255, 180, 170, 0.14);
}

.checkout-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.checkout-summary-box {
  min-height: 5.2rem;
}

.checkout-submit-button {
  width: 100%;
  min-height: 3.3rem;
}

#customer-paid-input {
  font-size: 1.05rem;
  font-weight: 700;
}

.employee-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.employee-card-head,
.settings-card-actions,
.settings-legend {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.settings-admin-stack,
.settings-form-grid {
  display: grid;
  gap: 0.9rem;
}

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

.settings-form-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.settings-legend {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.settings-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-legend-item strong {
  color: var(--text);
}

.settings-legend-item em {
  font-style: normal;
}

.settings-readonly-note {
  color: var(--muted);
  line-height: 1.5;
}

.settings-location-panel {
  margin-top: 0.95rem;
}

.settings-employee-form {
  margin-top: 0.9rem;
}

.settings-profile-panel {
  padding: 8px 12px;
}

.settings-profile-form {
  margin-top: 0;
  gap: 6px;
}

.settings-fixed-branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.settings-fixed-branch span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-fixed-branch strong {
  font-size: 0.95rem;
}

.settings-fixed-branch--compact {
  margin-bottom: 0.15rem;
}

.settings-create-grid,
.settings-employee-grid {
  gap: 1rem 1.1rem;
}

.settings-profile-panel .panel-head {
  margin-bottom: 0;
}

.settings-profile-branchline {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.settings-profile-branchline span {
  font-weight: 800;
}

.settings-profile-panel .settings-form-grid {
  gap: 6px 10px;
}

.settings-profile-panel .field {
  gap: 0.25rem;
}

.settings-profile-panel .field input,
.settings-profile-panel .field select {
  height: 36px;
  min-height: 36px;
  margin-bottom: 6px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.settings-profile-panel .settings-card-actions {
  margin-top: 0;
}

.settings-profile-panel .settings-card-actions .ghost-button {
  min-height: 36px;
  padding-block: 0.4rem;
}

.settings-status-field {
  max-width: 13rem;
}

.settings-card-actions {
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.2rem;
}

.settings-card-actions--footer {
  margin-top: 0.6rem;
  justify-content: space-between;
}

.danger-button {
  color: #ffb4aa;
  border-color: rgba(255, 85, 69, 0.24);
  background: rgba(255, 85, 69, 0.08);
}

.employee-card {
  display: grid;
  gap: 1rem;
}

.employee-card--settings {
  padding: 1rem;
}

.employee-card-head {
  align-items: center;
}

.employee-card-head--settings {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.employee-card-head strong {
  display: block;
  line-height: 1.35;
  font-size: 1.02rem;
}

.employee-card-head span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.employee-meta--header {
  margin-top: 0;
  justify-content: flex-end;
}

.employee-grid--settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.settings-permissions-block {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.9rem;
}

.permissions-table--spacious th,
.permissions-table--spacious td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.employee-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.mobile-only {
  display: none;
}

.compact-hero h3 {
  margin: 0;
  font-size: 1.15rem;
}

.compact-metrics {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.dashboard-shell {
  gap: 1rem;
}

.dashboard-hero {
  padding: 0.95rem 1rem;
}

.dashboard-hero h3 {
  margin: 0;
  font-size: 1.2rem;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 184px;
  gap: 1rem;
}

.dashboard-grid.is-editing {
  align-items: stretch;
}

.dashboard-widget-card,
.dashboard-empty-slot {
  position: relative;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-widget-card {
  padding: 0;
  overflow: hidden;
}

.dashboard-widget-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.dashboard-widget-card.is-editing {
  border-color: rgba(255, 180, 170, 0.26);
  box-shadow: 0 0 0 1px rgba(255, 180, 170, 0.12), var(--shadow);
}

.dashboard-widget-card.is-editing .quick-card {
  pointer-events: none;
}

.dashboard-widget-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.dashboard-widget-frame {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 0.95rem;
}

.dashboard-size-small {
  grid-column: span 1;
  grid-row: span 1;
}

.dashboard-size-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.dashboard-size-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.dashboard-size-large {
  grid-column: span 2;
  grid-row: span 2;
}

.dashboard-size-full {
  grid-column: span 3;
  grid-row: span 1;
}

.dashboard-widget-header,
.dashboard-widget-toolbar,
.dashboard-widget-heading,
.dashboard-goal-head,
.dashboard-goal-meta,
.dashboard-modal-header,
.dashboard-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-widget-heading {
  justify-content: flex-start;
  min-width: 0;
}

.dashboard-widget-heading h4 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.dashboard-widget-heading span:last-child {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-widget-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #ffb4aa;
  background: rgba(255, 85, 69, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 170, 0.1);
}

.dashboard-widget-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
}

.dashboard-metric-card {
  height: 100%;
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.dashboard-metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-metric-card strong {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.dashboard-metric-card em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.dashboard-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-list-item.is-danger {
  border-color: rgba(255, 85, 69, 0.2);
  background: rgba(255, 85, 69, 0.08);
}

.dashboard-list-item.is-warn {
  border-color: rgba(255, 166, 77, 0.2);
  background: rgba(255, 166, 77, 0.08);
}

.dashboard-list-copy,
.dashboard-list-side {
  min-width: 0;
}

.dashboard-list-copy strong,
.dashboard-list-side strong {
  display: block;
  line-height: 1.35;
}

.dashboard-list-copy span,
.dashboard-list-side span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-list-side {
  text-align: right;
}

.dashboard-list-side .badge {
  margin-top: 0.4rem;
}

.dashboard-progress {
  position: relative;
  height: 0.52rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #ff5545 0%, #ffb4aa 100%);
  border-radius: inherit;
}

.dashboard-goal-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.82rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-goal-head strong {
  line-height: 1.35;
}

.dashboard-goal-head span,
.dashboard-goal-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.dashboard-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.dashboard-shortcuts-grid .quick-card {
  min-height: 4.25rem;
}

.dashboard-shortcut-config {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-chip.is-active {
  color: var(--text);
  border-color: rgba(255, 180, 170, 0.18);
  background: rgba(255, 85, 69, 0.12);
}

.dashboard-chip .material-symbols-outlined {
  font-size: 1rem;
}

.dashboard-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: grab;
}

.dashboard-resize-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.dashboard-resize-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-resize-bar::after {
  content: "";
  flex: 1 1 auto;
}

.dashboard-size-chip {
  min-width: 2.5rem;
  height: 2.35rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-size-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-size-chip.is-active {
  color: #ffb4aa;
  border-color: rgba(255, 180, 170, 0.28);
  background: linear-gradient(180deg, rgba(255, 85, 69, 0.18), rgba(255, 180, 170, 0.08));
  box-shadow: 0 8px 18px rgba(255, 85, 69, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-size-chip .material-symbols-outlined {
  font-size: 1.05rem;
}

.dashboard-empty-slot {
  min-height: 184px;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: center;
}

.dashboard-empty-slot strong {
  color: var(--text);
  font-size: 0.92rem;
}

.dashboard-empty-slot:hover,
.dashboard-dropzone.is-active {
  border-color: rgba(255, 180, 170, 0.32);
  background: rgba(255, 85, 69, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 180, 170, 0.08);
}

.dashboard-empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  text-align: center;
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(10px);
  animation: dashboard-fade-in 0.18s ease;
}

.dashboard-modal {
  width: min(920px, 100%);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.inventory-modal {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
}

.inventory-import-modal {
  width: min(760px, 100%);
}

.dashboard-modal-header h3 {
  margin: 0.2rem 0 0;
}

.dashboard-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-widget-option {
  display: grid;
  gap: 0.55rem;
  min-height: 172px;
  padding: 1rem;
  text-align: left;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-widget-option:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 180, 170, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-widget-option.is-selected {
  border-color: rgba(255, 180, 170, 0.24);
  background: rgba(255, 85, 69, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 180, 170, 0.08);
}

.dashboard-widget-option strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.dashboard-widget-option span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-widget-option-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: #ffb4aa;
  background: rgba(255, 85, 69, 0.12);
}

.login-error-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(8px);
}

.login-error-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 0.9rem;
}

@keyframes dashboard-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-todo-panel {
  display: grid;
  gap: 0.85rem;
}

.dashboard-task-summary,
.dashboard-task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-task-create,
.dashboard-task-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.dashboard-task-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-task-card.is-overdue {
  border-color: rgba(255, 85, 69, 0.25);
  background: rgba(255, 85, 69, 0.08);
}

.dashboard-task-card-head,
.dashboard-task-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.dashboard-task-card-head strong,
.dashboard-task-due strong {
  display: block;
  line-height: 1.35;
}

.dashboard-task-card-head span,
.dashboard-task-due span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-task-due {
  min-width: 9rem;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: -0.1rem;
}

.category-tab {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-weight: 800;
}

.category-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.todo-create-form {
  display: grid;
  gap: 0.7rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.todo-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.todo-form-head h5 {
  margin: 0;
  font-size: 0.95rem;
}

.todo-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.todo-form-actions {
  justify-content: flex-end;
}

.todo-list {
  display: grid;
  gap: 0.65rem;
}

.todo-groups {
  display: grid;
  gap: 0.85rem;
}

.todo-group {
  display: grid;
  gap: 0.6rem;
}

.todo-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.1rem;
}

.todo-group-head strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.todo-group-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.todo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
}

.todo-row.is-overdue {
  border-color: rgba(255, 85, 69, 0.24);
  background: rgba(255, 85, 69, 0.07);
}

.todo-row.is-today {
  border-color: rgba(255, 166, 77, 0.22);
  background: rgba(255, 166, 77, 0.08);
}

.todo-row-main,
.todo-row-side,
.todo-row-badges,
.todo-row-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.todo-row-main {
  min-width: 0;
  justify-content: space-between;
}

.todo-row-main strong {
  display: block;
  line-height: 1.35;
}

.todo-row-main span,
.todo-row-meta span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  line-height: 1.35;
}

.todo-row-side {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.todo-row-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.todo-row-deadline {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.todo-row-deadline.is-overdue {
  color: #ffb4aa;
}

.todo-row-deadline.is-today {
  color: #ffbc7a;
}

.checkout-total-strong {
  font-size: 2rem;
}

.cash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
  gap: 1rem;
}

.cash-groups {
  display: grid;
  gap: 1rem;
}

.cash-panel-head {
  margin-bottom: 0.35rem;
}

.cash-head-stats {
  display: inline-flex;
  gap: 0.5rem;
}

.cash-head-chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cash-group-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
}

.cash-group-header,
.cash-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.cash-group-header h5,
.cash-summary-header h5 {
  margin: 0;
  font-size: 0.95rem;
}

.cash-group-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cash-summary-side {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.cash-summary-card {
  background: linear-gradient(180deg, rgba(255, 85, 69, 0.06), rgba(255, 255, 255, 0.015));
}

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

.cash-row input {
  text-align: center;
  font-weight: 700;
}

.is-disabled {
  opacity: 0.65;
}

.is-editing {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(255, 180, 170, 0.18), var(--shadow);
}

.permissions-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.import-dropzone {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  min-height: 10rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 180, 170, 0.35);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: center;
  padding: 1rem;
}

.import-dropzone strong {
  font-size: 1rem;
  line-height: 1.35;
}

.import-dropzone span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.import-dropzone.is-dragover,
.import-dropzone.is-uploading {
  border-color: #ffb4aa;
  background: rgba(255, 85, 69, 0.08);
}

.import-progress {
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.import-progress-bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5545 0%, #ffb4aa 100%);
  animation: import-slide 1.1s ease-in-out infinite;
}

.import-report {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.import-report.is-success {
  border-color: rgba(105, 211, 252, 0.28);
  background: rgba(105, 211, 252, 0.08);
}

.import-report.is-error {
  border-color: rgba(255, 85, 69, 0.28);
  background: rgba(255, 85, 69, 0.08);
}

.import-report span {
  color: var(--muted);
  font-size: 0.82rem;
}

.import-errors {
  display: grid;
  gap: 0.35rem;
  max-height: 10rem;
  overflow: auto;
}

.import-error-row {
  padding: 0.55rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 85, 69, 0.08);
  border: 1px solid rgba(255, 85, 69, 0.16);
  color: #ffb4aa;
  font-size: 0.8rem;
}

.permissions-table th,
.permissions-table td {
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.permissions-table td:first-child,
.permissions-table th:first-child {
  text-align: left;
}

.product-panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-top: 0.9rem;
}

.checkout-tools {
  display: grid;
  gap: 0.85rem;
}

.scanner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.scanner-field {
  margin: 0;
}

.scanner-submit {
  min-height: 3rem;
  white-space: nowrap;
}

.product-panel .panel-head {
  margin-bottom: 0;
}

.product-panel .search-shell {
  margin-top: -0.05rem;
}

.list-row strong {
  display: block;
  line-height: 1.35;
}

.list-row span {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.installments-shell {
  align-items: start;
}

.installment-form-panel,
.installment-table-panel {
  min-width: 0;
}

.installment-table-panel .table-wrap {
  max-height: calc(100vh - 12rem);
  overflow: auto;
}

.installments-page {
  gap: 1rem;
}

.installments-list-panel {
  display: grid;
  gap: 0.95rem;
}

.installments-head {
  align-items: center;
}

.installments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.installment-search {
  min-width: min(360px, 100%);
  flex: 1 1 320px;
}

.installment-filters {
  margin-top: 0;
}

.installments-list {
  display: grid;
  gap: 0.7rem;
}

.installment-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(120px, 0.8fr)) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.82rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.installment-row:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.installment-row-main,
.installment-row-cell,
.installment-row-status,
.installment-row-actions {
  min-width: 0;
}

.installment-row-main strong,
.installment-row-cell strong {
  display: block;
  line-height: 1.35;
}

.installment-row-main span,
.installment-row-cell span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  line-height: 1.35;
}

.installment-row-cell,
.installment-row-status,
.installment-row-actions {
  text-align: right;
}

.installment-row-actions {
  display: flex;
  justify-content: flex-end;
}

.installment-modal {
  width: min(880px, 100%);
}

.installment-modal-form {
  display: grid;
  gap: 1rem;
}

.installment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.9rem;
}

.installment-form-grid .wide {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.field-help.ok {
  color: #9fe5b6;
}

.field-help.error {
  color: #ffb4aa;
}

.installment-device-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104, 211, 252, 0.2);
  background: rgba(104, 211, 252, 0.07);
}

.installment-device-card div {
  min-width: 0;
}

.installment-device-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.installment-device-card strong {
  display: block;
  margin-top: 0.28rem;
  line-height: 1.35;
}

.installment-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.installment-calc-card {
  min-height: 0;
  padding: 0.8rem;
}

.installment-modal-actions {
  margin-top: 0.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.table-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.import-status {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.import-status span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.import-status--error {
  border-color: rgba(255, 85, 69, 0.28);
  background: rgba(255, 85, 69, 0.08);
}

.cart-controls--static {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .login-main,
  .grid.two-col:not(.installment-layout),
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

  .dashboard-size-full {
    grid-column: span 2;
  }

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

  .installment-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .installment-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(110px, 0.8fr));
  }

  .installment-row-status {
    grid-column: 1 / -1;
    text-align: left;
  }

  .installment-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 40;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .mobile-only {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .installment-layout {
    grid-template-columns: 1fr;
  }

  .installment-form-grid,
  .installment-calc-grid,
  .installment-row {
    grid-template-columns: 1fr;
  }

  .installment-device-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .installment-row-cell,
  .installment-row-status,
  .installment-row-actions {
    text-align: left;
  }

  .compact-metrics {
    grid-template-columns: 1fr;
  }

  .scanner-shell {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-size-small,
  .dashboard-size-wide,
  .dashboard-size-tall,
  .dashboard-size-large,
  .dashboard-size-full {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

  .todo-row {
    grid-template-columns: 1fr;
  }

  .todo-row-main,
  .todo-row-side {
    justify-content: space-between;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-form-grid--compact {
    grid-template-columns: 1fr;
  }

  .settings-card-actions--footer {
    flex-direction: column;
    align-items: stretch;
  }

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

@keyframes import-slide {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(220%);
  }
}

@media (max-width: 720px) {
  .login-screen,
  .content,
  .topbar {
    padding-inline: 1rem;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand-logo {
    height: 28px;
    margin-right: 8px;
  }

  .installment-table-panel .table-wrap {
    max-height: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-task-card-head,
  .dashboard-task-card-foot {
    flex-direction: column;
  }

  .dashboard-task-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-modal-header,
  .dashboard-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-hero-actions {
    width: 100%;
    justify-content: flex-end;
  }

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

  .todo-form-grid {
    grid-template-columns: 1fr;
  }

  .todo-form-head,
  .todo-row-main,
  .todo-row-side,
  .todo-row-badges,
  .todo-row-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .employee-grid--settings {
    grid-template-columns: 1fr;
  }
}
