﻿:root {
  --ink: #17212b;
  --muted: #64727f;
  --soft: #eef4f8;
  --line: #dce6ed;
  --bg: #f5f8fa;
  --panel: #ffffff;
  --blue: #1f5f8b;
  --blue-dark: #123d5c;
  --green: #218557;
  --gold: #f0aa2b;
  --red: #c64035;
  --shadow: 0 18px 40px rgba(18, 45, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 90%, rgba(241, 139, 47, 0.95), rgba(241, 139, 47, 0) 28%),
    linear-gradient(155deg, #095a9d 0%, #0b64aa 52%, #477b98 76%, #d9893f 100%);
}

.auth-hero {
  display: none;
  align-content: end;
  gap: 22px;
  padding: 48px;
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.small-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #dc6f1e 52%, var(--blue));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(13, 35, 52, 0.2);
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  font-size: 22px;
}

.small-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 13px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 28px;
}

.brand-lockup span {
  margin-top: 4px;
  color: #d8edf8;
}

.auth-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
}

.auth-hero p {
  max-width: 680px;
  margin: 0;
  color: #d8edf8;
  font-size: 18px;
  line-height: 1.8;
}

.auth-login-stack {
  position: relative;
  width: min(100%, 320px);
  display: grid;
  gap: 8px;
}

.auth-login-stack::before {
  content: "EL";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  color: rgba(255, 255, 255, 0.13);
  font-size: 168px;
  font-weight: 950;
  font-style: italic;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  background: linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(241, 139, 47, 0.06));
  border-radius: 8px;
}

.auth-role-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24465d;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-role-tabs button.active {
  background: linear-gradient(135deg, #1f5f8b, #0b64aa);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(31, 95, 139, 0.18);
}

.auth-card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(246, 250, 252, 0.98), rgba(255, 248, 240, 0.97)) padding-box,
    linear-gradient(135deg, rgba(31, 95, 139, 0.24), rgba(241, 139, 47, 0.22)) border-box;
  box-shadow: 0 18px 42px rgba(4, 39, 72, 0.24);
}

.auth-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
  text-align: right;
}

.auth-brand-standalone {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 252, 0.94));
  box-shadow: 0 10px 24px rgba(4, 39, 72, 0.16);
}

.auth-card-brand strong {
  display: block;
  padding-bottom: 0;
  color: var(--blue-dark);
  font-size: 18px;
  font-style: italic;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-card-brand strong::after {
  content: none;
}

.auth-card-brand span {
  color: #f18b2f;
  font-weight: 760;
}

.auth-card-brand em {
  color: #0b64aa;
  font-style: italic;
  font-weight: 950;
}

.auth-card-brand p {
  display: none;
}

.subscribe-link {
  min-height: 38px;
  border: 1px solid rgba(11, 100, 170, 0.28);
  border-radius: 8px;
  background: rgba(11, 100, 170, 0.04);
  color: #c76616;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.subscribe-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px;
  position: relative;
}

.subscribe-icon::before,
.subscribe-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.subscribe-icon::before {
  width: 11px;
  height: 2px;
}

.subscribe-icon::after {
  width: 2px;
  height: 11px;
}

.auth-card .primary {
  min-height: 39px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b64aa, #1f5f8b);
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(11, 100, 170, 0.2);
}

.auth-card .primary,
.auth-card .subscribe-link {
  width: 100%;
}

.survey-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  color: #123d5c;
}

.survey-head h2 {
  margin: 0;
  font-size: 20px;
}

.survey-head p {
  margin: 3px 0 0;
  color: #667684;
  font-size: 13px;
  font-weight: 700;
}

.survey-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef7ff;
  border: 1px solid #d3e5f3;
  position: relative;
}

.survey-icon::before {
  content: "";
  width: 20px;
  height: 24px;
  border: 2px solid #0b64aa;
  border-radius: 5px;
  background:
    linear-gradient(#d67318 0 0) 5px 7px / 10px 2px no-repeat,
    linear-gradient(#d67318 0 0) 5px 13px / 8px 2px no-repeat;
}

.subscription-card {
  padding: 20px;
}

.survey-grid {
  gap: 10px;
}

.subscription-card .field-label {
  gap: 6px;
  font-size: 14px;
}

.subscription-card input,
.subscription-card select,
.subscription-card textarea {
  border-color: #bfd0dc;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.subscription-card textarea {
  min-height: 76px;
}

.back-link {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #edf3f7;
  color: #123d5c;
  font-weight: 900;
}

.auth-card h2,
.panel h2,
.section-title h1,
.drawer h2 {
  margin: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  padding: 5px;
  border-radius: 10px;
  background: #edf3f7;
}

.mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52616d;
  font-weight: 900;
}

.mode-switch button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 5px 14px rgba(25, 45, 62, 0.08);
}

.form-grid {
  display: grid;
  gap: 13px;
}

.auth-card .form-grid {
  gap: 9px;
}

label {
  display: grid;
  gap: 7px;
  color: #3f4f5c;
  font-weight: 800;
}

.field-label {
  gap: 7px;
  color: #123d5c;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.login-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(31, 95, 139, 0.16);
  border-radius: 8px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(31, 95, 139, 0.055), rgba(241, 139, 47, 0.045)),
    #fbfdff;
  color: #102b42;
  box-shadow: inset 0 1px 0 rgba(12, 65, 106, 0.03);
}

.login-input:focus-within {
  border-color: #0b64aa;
  box-shadow: 0 0 0 4px rgba(11, 100, 170, 0.12);
}

.login-input input {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
  color: #17212b;
  font-size: 15px;
  font-weight: 700;
  outline: 0;
  box-shadow: none;
}

.login-input input:focus {
  box-shadow: none;
}

.phone-login-field {
  grid-template-columns: 38px minmax(0, 1fr);
  direction: ltr;
  overflow: visible;
}

.phone-login-field.no-saved-phones {
  grid-template-columns: minmax(0, 1fr);
}

.phone-login-field input {
  border-left: 1px solid rgba(31, 95, 139, 0.13);
  direction: ltr;
}

.phone-login-field.no-saved-phones input {
  border-left: 0;
}

.password-login-field {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  direction: ltr;
}

.lock-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  position: relative;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 12px;
  height: 11px;
  border: 2px solid #123d5c;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-sizing: border-box;
}

.lock-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 18px;
  height: 14px;
  border: 2px solid #123d5c;
  border-radius: 5px;
  background: linear-gradient(#123d5c 0 0) center 6px / 3px 5px no-repeat;
  box-sizing: border-box;
}

.password-eye {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #123d5c;
  cursor: pointer;
}

.password-eye span {
  width: 23px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50% / 60%;
  position: relative;
}

.password-eye span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-eye.active {
  color: #d67318;
}

.input-shell {
  position: relative;
  display: block;
}

.input-shell::before {
  content: "";
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: 0.78;
  background: #1f5f8b;
  pointer-events: none;
}

.phone-field::before {
  border-radius: 5px 5px 3px 3px;
  clip-path: polygon(22% 0, 78% 0, 78% 100%, 22% 100%);
}

.phone-field::after {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: calc(50% - 6px);
  width: 8px;
  height: 1px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 11px 0 #fff;
  pointer-events: none;
}

.lock-field::before {
  width: 18px;
  height: 13px;
  margin-top: 3px;
  border-radius: 4px;
}

.lock-field::after {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: calc(50% - 11px);
  width: 10px;
  height: 9px;
  border: 2px solid #1f5f8b;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.78;
  pointer-events: none;
}

.saved-phone-picker {
  width: 100%;
  height: 48px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  position: relative;
}

.saved-phone-picker summary {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #17212b;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  box-shadow: none;
  direction: ltr;
}

.saved-phone-picker summary > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.saved-phone-picker summary::-webkit-details-marker {
  display: none;
}

.saved-phone-picker summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2.5px solid #0b64aa;
  border-bottom: 2.5px solid #0b64aa;
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.saved-phone-picker[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.saved-phone-picker div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: 170px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dbe7ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(24, 63, 91, 0.18);
}

.saved-phone-picker button {
  min-height: 31px;
  border: 1px solid #dce8ef;
  border-radius: 7px;
  background: #fff;
  color: #20384c;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  direction: ltr;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #b7cad8;
  border-radius: 8px;
  padding: 12px 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.input-shell input {
  padding-inline-start: 42px;
  box-shadow: 0 1px 0 rgba(31, 95, 139, 0.04);
}

.input-shell input:focus {
  border-color: #2e7bb5;
  box-shadow: 0 0 0 3px rgba(46, 123, 181, 0.14);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 95, 139, 0.12);
}

.hint,
.muted {
  color: var(--muted);
}

.hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.primary,
.secondary,
.danger,
.plain,
.icon-btn,
.chip,
.qty-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 900;
}

.primary {
  background: var(--blue);
  color: #fff;
}

.secondary {
  background: #edf3f7;
  color: #213747;
}

.danger {
  background: #fae8e6;
  color: var(--red);
}

.plain {
  background: transparent;
  color: var(--blue);
}

.icon-btn {
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #edf3f7;
  color: var(--blue);
  font-size: 20px;
}

.store-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, #123d5c 0%, #102f48 58%, #0d283d 100%);
  color: #fff;
}

.side-nav .brand-lockup {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-nav .brand-lockup strong {
  font-size: 18px;
}

.side-nav .brand-lockup span {
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 9px;
}

.nav-list button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8edf8;
  text-align: right;
  font-weight: 900;
}

.nav-list button b {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd994;
  font-size: 16px;
  line-height: 1;
}

.nav-list button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list button:hover,
.nav-list button.active {
  border-color: rgba(241, 139, 47, 0.35);
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(4, 18, 29, 0.2);
}

.nav-list button:hover b,
.nav-list button.active b {
  background: linear-gradient(135deg, #f18b2f, var(--blue));
  color: #fff;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-list button[data-admin-people] {
  grid-template-columns: 34px minmax(0, 1fr) 18px;
}

.nav-list button[data-admin-people] em {
  font-style: normal;
  justify-self: center;
  opacity: 0.74;
  font-size: 14px;
}

.nav-submenu {
  display: grid;
  gap: 6px;
  padding-inline-start: 44px;
  margin-top: -2px;
}

.nav-submenu button {
  min-height: 38px;
  grid-template-columns: 1fr;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #edf8fc;
  font-size: 13px;
  box-shadow: none;
}

.nav-submenu button:hover,
.nav-submenu button.active {
  border-color: rgba(241, 139, 47, 0.35);
  background: #fff;
  color: var(--blue-dark);
}

.nav-spacer {
  flex: 1;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(18, 45, 65, 0.08);
  backdrop-filter: blur(12px);
}

.top-bar strong,
.top-bar span,
.top-bar small {
  display: block;
}

.top-bar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.top-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #163f5f);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -5px 0 rgba(241, 139, 47, 0.26), 0 8px 18px rgba(18, 45, 65, 0.12);
}

.top-brand-lockup strong {
  color: var(--blue-dark);
  font-weight: 950;
  font-style: italic;
  line-height: 1;
}

.top-brand-lockup .brand-stack,
.auth-card-brand .brand-stack {
  min-width: 78px;
  display: grid;
  justify-items: center;
  gap: 1px;
  text-align: center;
  white-space: nowrap;
}

.top-brand-lockup .brand-stack span,
.auth-card-brand .brand-stack span {
  margin: 0;
  color: #0b64aa;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
}

.top-brand-lockup .brand-stack b,
.auth-card-brand .brand-stack b {
  display: block;
  color: var(--blue-dark);
  font-size: 15px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
}

.top-brand-lockup span {
  margin-top: 3px;
  color: #f18b2f;
  font-size: 11px;
  font-weight: 950;
}

.top-brand-lockup small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-top-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-top-bar > .top-brand-lockup {
  justify-content: center;
  text-align: right;
}

.customer-top-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 10px 10px;
  border-color: rgba(31, 95, 139, 0.13);
}

.customer-top-bar > .top-brand-lockup {
  justify-content: center;
  text-align: right;
}

.customer-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #20384c;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(18, 45, 65, 0.06);
}

.admin-menu-btn[aria-expanded="true"] {
  border-color: #bfd8e8;
  background: #f6fafc;
}

.admin-orders-btn {
  position: relative;
  width: 48px;
  height: 44px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(18, 45, 65, 0.06);
}

.admin-orders-btn.active,
.admin-orders-btn:hover {
  border-color: #bfd8e8;
  background: #f6fafc;
}

.admin-orders-btn .order-icon {
  transform: scale(0.86);
}

.admin-orders-btn b {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.admin-info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.admin-info-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px;
  border: 1px solid #dbe8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 45, 65, 0.07);
}

.admin-info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-info-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.admin-info-card small {
  color: #526575;
  font-size: 13px;
  font-weight: 850;
}

.logout-card .action-btn {
  margin-top: 2px;
  width: fit-content;
  min-width: 122px;
  justify-content: center;
  justify-self: start;
}

.side-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 33, 43, 0.22);
  backdrop-filter: blur(1.5px);
}

.account-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 81;
  width: min(300px, 84vw);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 11px;
  padding-top: 10px;
  border-inline-start: 1px solid rgba(31, 95, 139, 0.16);
  background:
    linear-gradient(180deg, rgba(241, 139, 47, 0.1), rgba(31, 95, 139, 0.05) 34%, transparent),
    #fff;
  box-shadow: -14px 0 30px rgba(18, 45, 65, 0.16);
  animation: drawerIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes drawerIn {
  from {
    transform: translateX(-26px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.drawer-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding-inline-end: 36px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e4edf3;
}

.drawer-brand span,
.drawer-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f18b2f 0 38%, #0b64aa 38% 100%);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(31, 95, 139, 0.16);
}

.drawer-brand span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-style: italic;
}

.drawer-brand strong,
.drawer-brand small {
  display: block;
}

.drawer-brand strong {
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 950;
  font-style: italic;
}

.drawer-brand small {
  margin-top: 2px;
  color: #d67318;
  font-size: 11px;
  font-weight: 900;
}

.drawer-profile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 10px;
  background: #fbfdff;
}

.top-password-btn {
  min-height: 34px;
  border: 1px solid rgba(241, 139, 47, 0.32);
  border-radius: 10px;
  padding: 0 11px;
  background: #fff7ed;
  color: #9a4f10;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.top-password-btn.active,
.top-password-btn:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(241, 139, 47, 0.22);
}

.change-password-panel {
  margin: 10px clamp(12px, 2vw, 22px) 0;
  padding: 10px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.12), rgba(31, 95, 139, 0.06)),
    #fff;
  box-shadow: 0 8px 22px rgba(18, 45, 65, 0.08);
}

.drawer-password-panel {
  margin: 0;
  padding: 9px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(241, 139, 47, 0.12), rgba(31, 95, 139, 0.06)),
    #fbfdff;
  box-shadow: none;
}

.change-password-panel form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.drawer-password-panel form {
  grid-template-columns: 1fr;
  gap: 7px;
}

.change-password-panel label {
  display: grid;
  gap: 4px;
  color: #31506a;
  font-size: 11px;
  font-weight: 900;
}

.change-password-panel input {
  min-height: 36px;
  padding: 8px 10px;
}

.change-password-panel form > div {
  display: flex;
  gap: 6px;
}

.drawer-password-panel form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.drawer-password-panel .primary,
.drawer-password-panel .secondary {
  min-height: 34px;
  padding-inline: 8px;
  font-size: 11px;
}

.drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-photo-wrap {
  position: relative;
  display: block;
  cursor: pointer;
}

.drawer-photo-wrap input {
  display: none;
}

.drawer-photo-action {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 1;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f18b2f;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 6px 12px rgba(18, 45, 65, 0.14);
}

.drawer-profile h2,
.drawer-profile p {
  margin: 0;
}

.drawer-profile h2 {
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-profile p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.drawer-info-list {
  display: grid;
  gap: 6px;
}

.drawer-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f6fafc;
}

.drawer-info-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.drawer-info-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-actions {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.drawer-actions .primary,
.drawer-actions .secondary,
.drawer-actions .danger {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.cart-pill {
  min-width: 74px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 950;
}

.cart-pill b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
}

.cart-pill .order-icon {
  transform: scale(0.92);
}

.employee-header-cart {
  justify-self: end;
}

.employee-header-cart .order-icon {
  transform: scale(0.9);
}

.section-title {
  min-height: 172px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(16, 47, 72, 0.95), rgba(31, 95, 139, 0.82)),
    radial-gradient(circle at 78% 20%, rgba(240, 170, 43, 0.34), transparent 32%);
  color: #fff;
  box-shadow: var(--shadow);
}

.section-title p {
  margin: 0 0 8px;
  color: #ffd994;
  font-weight: 950;
}

.section-title h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.section-title span {
  display: block;
  margin-top: 10px;
  color: #d8edf8;
  line-height: 1.7;
}

.admin-simple-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 2px;
  background: transparent;
}

.admin-simple-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  font-style: normal;
  letter-spacing: 0;
}

.products-admin-title {
  min-height: 58px;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.12), rgba(31, 95, 139, 0.08)),
    #fff;
  box-shadow: 0 8px 20px rgba(18, 45, 65, 0.055);
}

.products-admin-title h1 {
  position: relative;
  padding-bottom: 7px;
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 950;
  text-align: center;
}

.products-admin-title h1::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f18b2f 0 35%, #0b64aa 35% 100%);
}

.admin-empty-section {
  display: grid;
  gap: 8px;
}

.admin-empty-section h2 {
  margin: 0;
  color: var(--blue-dark);
}

.page-stack {
  display: grid;
  gap: 18px;
}

.admin-trending-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 45, 65, 0.06);
}

.admin-trending-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.admin-trending-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid #e2edf4;
  border-radius: 8px;
  background: #f8fbfd;
  text-align: center;
}

.admin-trending-card.filled {
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 48, 67, 0.05);
}

.admin-trending-card em {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f18b2f;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.admin-trending-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecf5fb, #fff4e8);
  color: var(--blue);
}

.admin-trending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-trending-image span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.admin-trending-card strong {
  min-height: 24px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--blue-dark);
  font-size: 10px;
  line-height: 1.25;
}

.admin-trending-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.admin-trending-card.empty {
  border-style: dashed;
  opacity: 0.78;
}

.admin-motivation {
  position: relative;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 95, 139, 0.16);
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.14), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: var(--blue-dark);
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.07);
}

.admin-motivation::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, #f18b2f 0 34%, #0b64aa 34% 100%);
}

.admin-motivation::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f18b2f 0 34%, #0b64aa 34% 100%);
  opacity: 0.85;
}

.admin-motivation span {
  color: #d67318;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.admin-motivation h1 {
  max-width: 760px;
  margin: 6px 0 0;
  color: #123d5c;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.28;
}

.admin-motivation p {
  max-width: 920px;
  margin: 8px 0 0;
  color: #526575;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.65;
}

.admin-motivation b {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f18b2f 0 38%, #0b64aa 38% 100%);
  color: #fff;
  font-size: 18px;
  font-style: italic;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(31, 95, 139, 0.18);
}

.admin-daily-attendance {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 95, 139, 0.13);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fafc 68%, #fff7ef 100%);
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.06);
}

.admin-subscription-panel {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(31, 95, 139, 0.13);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fafc 72%, #fff7ef 100%);
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.06);
}

.admin-subscription-toggle {
  margin: 0;
}

.admin-subscription-list {
  display: grid;
  gap: 6px;
}

.admin-subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(31, 95, 139, 0.09);
  border-radius: 8px;
  background: #fff;
}

.admin-subscription-card h3 {
  margin: 0;
  color: #173f5f;
  font-size: 14px;
}

.admin-subscription-card small,
.admin-subscription-card p {
  margin: 2px 0 0;
  color: #6e7d88;
  font-size: 11px;
  font-weight: 850;
}

.admin-daily-attendance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-daily-attendance-head span {
  color: #d67318;
  font-size: 11px;
  font-weight: 950;
}

.admin-daily-attendance-head h2 {
  margin: 3px 0 0;
  color: #173f5f;
  font-size: 17px;
}

.admin-daily-attendance-head small {
  display: block;
  margin-top: 3px;
  color: #6e7d88;
  font-size: 11px;
  font-weight: 850;
}

.admin-daily-attendance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr));
  gap: 6px;
}

.admin-daily-attendance-stats article {
  min-width: 62px;
  padding: 7px 8px;
  border: 1px solid rgba(31, 95, 139, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.admin-daily-attendance-stats b {
  display: block;
  color: #0b64aa;
  font-size: 16px;
}

.admin-daily-attendance-stats span {
  color: #6e7d88;
  font-size: 10px;
}

.admin-attendance-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0b64aa;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.admin-daily-attendance-table {
  display: grid;
  gap: 6px;
}

.admin-daily-attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid rgba(31, 95, 139, 0.09);
  border-radius: 8px;
  background: #ffffff;
}

.admin-daily-attendance-row.present {
  background: linear-gradient(90deg, rgba(29, 156, 92, 0.09), #ffffff 56%);
}

.admin-daily-attendance-row.absent {
  background: linear-gradient(90deg, rgba(241, 101, 54, 0.12), #ffffff 56%);
}

.admin-daily-attendance-row strong {
  color: #173f5f;
  font-size: 13px;
}

.admin-daily-attendance-row small {
  display: block;
  margin-top: 2px;
  color: #6e7d88;
  font-size: 10.5px;
  font-weight: 850;
}

.admin-daily-attendance-row > b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3f7;
  color: #60717f;
  font-size: 10px;
  text-align: center;
}

.admin-daily-attendance-row.present > b {
  background: #e9f8f0;
  color: #167044;
}

.admin-daily-attendance-row.absent > b {
  background: #fff1ec;
  color: #bb4b22;
}

.admin-daily-attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.admin-daily-attendance-actions button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 10.5px;
}

.admin-status-strip {
  display: grid;
  grid-template-columns: minmax(240px, 360px);
  gap: 12px;
}

.admin-status-strip article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid #d9e6ee;
  border-radius: 10px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.07);
}

.admin-status-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-status-strip strong {
  color: var(--blue-dark);
  font-size: 24px;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-chart-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d9e6ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.07);
}

.admin-chart-card.wide {
  grid-template-columns: minmax(0, 1fr);
}

.admin-chart-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-chart-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 23px;
  line-height: 1.1;
}

.admin-chart-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bank-watch-card {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bank-watch-title {
  margin: 0;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 950;
}

.bank-watch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cheque-add-btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.bank-prayer {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid #dbe8f0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(241, 139, 47, 0.12)),
    #fff;
  color: var(--blue-dark);
  text-align: center;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(18, 45, 65, 0.06);
}

.bank-prayer::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
}

.cheque-table-wrap {
  overflow: visible;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 45, 65, 0.06);
}

.cheque-month-sections {
  display: grid;
  gap: 12px;
}

.cheque-entry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 95, 139, 0.13);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #f5fafc);
}

.cheque-entry-form label {
  display: grid;
  gap: 4px;
  color: #6e7d88;
  font-size: 10.5px;
  font-weight: 950;
}

.cheque-entry-form input {
  min-height: 34px;
  border: 1px solid #dbe8f0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: #173f5f;
  font-size: 12px;
  font-weight: 850;
}

.cheque-entry-form button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
}

.cheque-show-all-btn {
  justify-self: center;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 8px;
  border-color: rgba(31, 95, 139, 0.18);
  background: #f5fafc;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 950;
}

.cheque-month-card {
  overflow: visible;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 45, 65, 0.055);
}

.cheque-month-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid rgba(31, 95, 139, 0.1);
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff, #f5fafc);
}

.cheque-month-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cheque-month-toggle {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 95, 139, 0.16);
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(18, 45, 65, 0.06);
}

.cheque-month-toggle:hover {
  border-color: rgba(241, 139, 47, 0.32);
  color: #d67318;
}

.cheque-month-card-head span {
  display: block;
  color: #d67318;
  font-size: 12px;
  font-weight: 950;
}

.cheque-month-card-head strong {
  display: block;
  margin-top: 3px;
  direction: ltr;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 950;
}

.cheque-month-card-head small {
  min-width: 92px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecf5fb;
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
}

.cheque-month-card .cheque-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cheque-month-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid rgba(31, 95, 139, 0.08);
  background: linear-gradient(90deg, rgba(31, 95, 139, 0.055), rgba(241, 139, 47, 0.05));
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.cheque-month-summary strong {
  direction: ltr;
  color: #d67318;
  font-size: 13px;
  font-weight: 950;
}

.cheque-read-date,
.cheque-table td > strong,
.cheque-table td > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: #173f5f;
  font-size: 11px;
  font-weight: 900;
}

.cheque-read-actions {
  grid-template-columns: minmax(70px, 1fr) auto auto;
}

.cheque-read-actions b {
  direction: ltr;
  color: var(--blue-dark);
  font-size: 11px;
  white-space: nowrap;
}

.cheque-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  direction: rtl;
  background: #fff;
}

.cheque-table th,
.cheque-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #edf3f7;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.cheque-table th {
  border-bottom: 3px solid var(--orange);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-size: 11.5px;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.cheque-table td {
  color: #263746;
  font-size: 13px;
  font-weight: 850;
}

.cheque-table .cheque-month-row td {
  padding: 7px 8px;
  border-bottom: 1px solid #cfe0ea;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.11), rgba(241, 139, 47, 0.12)),
    #f8fcff;
  color: var(--blue-dark);
}

.cheque-table .cheque-month-row td::before {
  display: none;
}

.cheque-month-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cheque-month-row span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.cheque-month-row strong {
  direction: ltr;
  min-width: 102px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 139, 0.16);
}

.cheque-table th:first-child,
.cheque-table td:first-child {
  position: relative;
  width: 25%;
  padding-inline: 5px 8px;
  direction: ltr;
  text-align: center;
}

.cheque-table td:first-child {
  background: linear-gradient(90deg, rgba(31, 95, 139, 0.04), #fff);
}

.cheque-table td:first-child::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  inset-inline-end: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
  opacity: 0.7;
}

.cheque-table th:nth-child(2),
.cheque-table td:nth-child(2) {
  width: 25%;
  padding-inline: 2px 7px;
}

.cheque-table th:nth-child(3),
.cheque-table td:nth-child(3) {
  width: 17%;
  padding-inline: 2px;
  direction: ltr;
  text-align: center;
}

.cheque-table th:last-child,
.cheque-table td:last-child {
  width: 33%;
  padding-inline: 4px 3px;
  direction: ltr;
  text-align: center;
}

.cheque-table td:last-child {
  color: var(--blue-dark);
  font-weight: 950;
}

.cheque-table tr.cheque-row-paid td {
  border-bottom-color: #58c987;
  background: #bdf2d0;
  color: #064f2c;
}

.cheque-table tr.cheque-row-paid td:first-child {
  background: linear-gradient(90deg, rgba(0, 150, 72, 0.44), #bdf2d0);
}

.cheque-table tr.cheque-row-paid td:first-child::before {
  background: #008f45;
  opacity: 1;
}

.cheque-table tr.cheque-row-paid input {
  border-color: #4dc47d;
  background: #e3ffed;
  color: #064f2c;
}

.cheque-table tr.cheque-row-paid input:focus {
  border-color: #008f45;
  box-shadow: 0 0 0 3px rgba(0, 143, 69, 0.22);
}

.cheque-table tr:last-child td {
  border-bottom: 0;
}

.cheque-table input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce8f0;
  border-radius: 7px;
  padding: 7px 6px;
  background: #fbfdff;
  color: #263746;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.cheque-date-field {
  display: block;
}

.cheque-date-trigger {
  display: none;
}

.cheque-date-trigger span {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.cheque-date-field input {
  cursor: pointer;
}

.cheque-amount-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 26px;
  align-items: center;
  gap: 3px;
}

.cheque-paid-btn {
  min-height: 29px;
  border: 1px solid #d7e6ef;
  border-radius: 7px;
  padding: 4px 3px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.cheque-paid-btn.paid {
  border-color: #008f45;
  background: #00a854;
  color: #fff;
}

.cheque-delete-btn {
  min-height: 29px;
  border: 1px solid #f0c8c8;
  border-radius: 7px;
  padding: 2px;
  background: #fff5f5;
  color: #b42323;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.cheque-delete-btn:hover {
  background: #d92d20;
  color: #fff;
}

.cheque-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cheque-action-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 45, 65, 0.14);
}

.cheque-action-menu[hidden] {
  display: none;
}

.cheque-action-menu button {
  border: 0;
  border-radius: 6px;
  padding: 5px 7px;
  background: #eef6fb;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.cheque-action-menu button:last-child {
  background: #fff0ee;
  color: #b42323;
}

.cheque-action-menu button:hover {
  filter: brightness(0.98);
}

.cheque-table input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.1);
}

.cheque-table input[data-cheque-field="amount"],
.cheque-table input[data-cheque-field="number"] {
  direction: ltr;
  text-align: center;
}

.chart-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.chart-target-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chart-target-row b {
  direction: ltr;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
}

.circle-chart {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--blue) 0 var(--value), #edf3f7 var(--value) 100%);
}

.circle-chart b {
  color: var(--blue-dark);
  font-size: 15px;
}

.orders-column-chart {
  min-height: 176px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 14px 12px 10px;
  border: 1px solid #e0ebf3;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(31, 95, 139, 0.06), rgba(255, 255, 255, 0)),
    #f9fcfe;
}

.order-column-track {
  position: relative;
  height: 150px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 5px;
  overflow: hidden;
}

.order-column-track::before {
  content: "";
  position: absolute;
  inset: 0 8px 42px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    to top,
    rgba(31, 95, 139, 0.08) 0,
    rgba(31, 95, 139, 0.08) 1px,
    transparent 1px,
    transparent 28px
  );
}

.order-column {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(54px, 72%);
  min-height: 7px;
  height: var(--height);
  border-radius: 14px 14px 7px 7px;
  box-shadow: 0 10px 22px rgba(18, 45, 65, 0.16);
}

.order-column.achieved {
  background: linear-gradient(180deg, #1e88c8 0%, #0b5f9d 100%);
}

.order-column.target {
  background: linear-gradient(180deg, #f7a44d 0%, #f18b2f 62%, #c96a16 100%);
}

.order-column-track strong {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  direction: ltr;
  white-space: nowrap;
  transform: scale(0.94);
}

.order-column-track b {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-action-card {
  min-height: 148px;
  padding: 16px;
  border: 1px solid #d9e6ee;
  border-radius: 10px;
  display: grid;
  align-content: start;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  text-align: right;
  box-shadow: 0 12px 28px rgba(18, 45, 65, 0.08);
}

.admin-action-card b {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eef7ff;
  color: var(--blue);
  font-size: 20px;
}

.admin-action-card strong {
  color: var(--blue-dark);
  font-size: 16px;
}

.admin-action-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-action-card:hover {
  border-color: rgba(31, 95, 139, 0.45);
  box-shadow: 0 16px 34px rgba(18, 45, 65, 0.12);
}

.admin-action-card.muted-action b {
  background: #fff7ef;
  color: #d67318;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title-row h2,
.panel-title-row p {
  margin: 0;
}

.panel-title-row p {
  margin-top: 4px;
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 420px) 1fr;
  gap: 13px;
  align-items: end;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: #314454;
}

.chip.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.product-card,
.panel,
.drawer,
.data-card,
.invoice-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.07);
}

.product-card {
  min-width: 0;
  overflow: hidden;
}

.product-image {
  min-height: 104px;
  aspect-ratio: 1.12;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9f0f4;
}

.product-image img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
}

.placeholder-pack {
  width: min(104px, 66%);
  aspect-ratio: 0.9;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff, #eaf2f7);
  color: var(--blue-dark);
  text-align: center;
  box-shadow: 0 15px 30px rgba(16, 47, 72, 0.18);
}

.placeholder-pack strong {
  font-size: 16px;
}

.placeholder-pack span {
  color: var(--muted);
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 5px;
  padding: 6px;
}

.product-body h2 {
  margin: 0;
  min-height: 30px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.22;
}

.product-body p {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.meta-list span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f1f5f8;
  color: #435565;
  font-size: 9.5px;
  font-weight: 850;
}

.badge.featured {
  background: #fff3d9;
  color: #87520f;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  align-items: center;
}

.qty-control {
  display: grid;
  grid-template-columns: 42px minmax(54px, 72px) 42px;
  gap: 6px;
  align-items: center;
}

.qty-control input {
  height: 42px;
  padding: 0;
  text-align: center;
  direction: ltr;
}

.qty-btn {
  min-width: 42px;
  padding: 0;
  background: #edf3f7;
  color: var(--blue);
  font-size: 20px;
}

.product-card .primary {
  min-height: 27px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
}

.product-card .qty-control {
  grid-template-columns: 25px minmax(30px, 42px) 25px;
  gap: 2px;
}

.product-card .qty-control input {
  height: 27px;
  font-size: 10px;
}

.product-card .qty-btn {
  min-width: 25px;
  min-height: 27px;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.simple-cart-page {
  grid-template-columns: minmax(0, 1fr);
}

.cart-panel {
  min-width: 0;
}

.cart-overview {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 45, 65, 0.07);
}

.cart-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-overview-head span,
.summary-head span {
  color: #f18b2f;
  font-size: 12px;
  font-weight: 950;
}

.cart-overview-head h1 {
  margin: 3px 0 5px;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.2;
}

.cart-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.cart-overview-head strong {
  min-width: 86px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef7fc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.cart-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cart-progress-list article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #f6fafc;
}

.cart-progress-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-progress-list span {
  color: #435565;
  font-size: 12px;
  font-weight: 900;
}

.cart-progress-list b {
  direction: ltr;
  color: var(--blue-dark);
  font-size: 13px;
  white-space: nowrap;
}

.cart-progress-list i {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfeaf1;
}

.cart-progress-list i::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f18b2f, var(--blue));
}

.cart-items {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.cart-item-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(220, 230, 237, 0.9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 45, 65, 0.05);
}

.cart-item-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cart-item-title {
  min-width: 0;
}

.cart-item-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.cart-item-title small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.cart-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-item-details span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f8;
  color: #435565;
  font-size: 10px;
  font-weight: 850;
}

.cart-summary-card {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 45, 65, 0.11);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-inline-start: 4px solid #f18b2f;
  background: #f6fafc;
  color: var(--blue-dark);
}

.summary-head strong {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.summary-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fb;
  color: #435565;
  font-weight: 850;
}

.summary-stat b {
  direction: ltr;
  color: var(--blue-dark);
  font-size: 18px;
}

.cart-checklist {
  display: grid;
  gap: 8px;
}

.cart-actions {
  display: grid;
  gap: 8px;
}

.simple-cart-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding: 0;
}

.simple-cart-total {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 950;
}

.simple-cart-total span {
  color: #d67318;
  font-size: 13px;
}

.simple-cart-total strong {
  direction: ltr;
  font-size: 18px;
}

.cart-actions .primary {
  background: linear-gradient(135deg, var(--blue), #0b64aa);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 95, 139, 0.24);
}

.cart-actions .primary:disabled {
  background: #dbe7ef;
  color: #78909f;
  box-shadow: none;
}

.cart-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.cart-empty strong {
  color: var(--blue-dark);
  font-size: 22px;
}

.cart-empty .secondary {
  margin-top: 8px;
}

.panel,
.drawer {
  padding: 18px;
}

.panel-stack {
  display: grid;
  gap: 12px;
}

.cart-line,
.data-row,
.customer-row,
.order-row {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line {
  grid-template-columns: 76px 1fr auto;
  align-items: center;
}

.cart-line:last-child,
.data-row:last-child,
.customer-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.admin-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(31, 95, 139, 0.11);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbfd);
  box-shadow: 0 10px 24px rgba(18, 45, 65, 0.06);
}

.admin-order-card + .admin-order-card {
  margin-top: 8px;
}

.order-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.order-search-form input {
  min-width: 0;
}

.order-display-number {
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.admin-order-card.processed {
  border-color: rgba(22, 112, 68, 0.42);
  background:
    linear-gradient(90deg, rgba(22, 112, 68, 0.12), transparent 42%),
    linear-gradient(135deg, #f7fff9, #e9f8f0);
  box-shadow: 0 12px 26px rgba(22, 112, 68, 0.12);
}

.admin-order-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-order-status {
  min-width: 78px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff1df;
  color: #c76616;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
}

.admin-order-card.processed .admin-order-status {
  background: #e9f8f0;
  color: #167044;
}

.admin-order-main h3,
.admin-order-main strong,
.admin-order-main small {
  display: block;
}

.admin-order-main h3 {
  margin: 0;
  color: #1f5f8b;
  font-size: 12px;
}

.admin-order-main strong {
  margin-top: 2px;
  color: #173f5f;
  font-size: 15px;
}

.admin-order-main small {
  margin-top: 2px;
  color: #6e7d88;
  font-size: 11px;
  font-weight: 800;
}

.admin-order-delete {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10.5px;
}

.admin-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-order-meta div {
  padding: 7px;
  border-radius: 7px;
  background: rgba(31, 95, 139, 0.06);
}

.admin-order-meta span,
.admin-order-meta strong {
  display: block;
}

.admin-order-meta span {
  color: #6e7d88;
  font-size: 10px;
  font-weight: 850;
}

.admin-order-meta strong {
  margin-top: 3px;
  color: #173f5f;
  font-size: 12px;
  line-height: 1.35;
}

.admin-order-card .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  gap: 6px;
}

.admin-order-card .row-actions button {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
}

.admin-order-details {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-order-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-order-details-head span,
.admin-order-customer span {
  color: #6e7d88;
  font-size: 11px;
  font-weight: 850;
}

.admin-order-details-head strong {
  display: block;
  margin-top: 2px;
  color: #173f5f;
  font-size: 15px;
}

.admin-order-details-head b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1df;
  color: #c76616;
  font-size: 12px;
}

.admin-order-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-order-customer span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f6fa;
}

.admin-order-items {
  display: grid;
  gap: 5px;
}

.admin-order-items article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #ffffff;
}

.admin-order-items em {
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9f8f0;
  color: #167044;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.admin-order-items strong {
  color: #173f5f;
  font-size: 12px;
}

.cart-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f0f5;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 950;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-uploader {
  position: relative;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px dashed #bfd5e4;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.07), rgba(241, 139, 47, 0.1)),
    #fbfdff;
  cursor: pointer;
}

.product-image-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.product-image-uploader strong {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 950;
}

.product-image-uploader small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-upload-preview {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e6ef;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(18, 45, 65, 0.08);
}

.product-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-upload-preview span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef7ff;
  color: var(--blue);
  font-size: 24px;
  font-weight: 950;
}

.admin-orders-spacer {
  width: 44px;
  height: 44px;
  display: block;
}

.product-category-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.product-category-card strong {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 950;
}

.product-category-card small {
  color: var(--muted);
  font-size: 12px;
}

.product-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-option {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dce9f1;
  border-radius: 10px;
  background: #fff;
  color: #20384c;
  cursor: pointer;
}

.category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-option span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.category-option b {
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.category-option.active,
.category-option:has(input:checked) {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(31, 95, 139, 0.1), rgba(241, 139, 47, 0.1));
  box-shadow: 0 8px 18px rgba(18, 45, 65, 0.08);
}

.category-option.active span,
.category-option:has(input:checked) span {
  background: var(--blue);
  color: #fff;
}

.cart-qty {
  grid-template-columns: 30px minmax(36px, 44px) 30px;
  gap: 4px;
}

.cart-qty input,
.cart-qty .qty-btn {
  height: 30px;
}

.cart-qty .qty-btn {
  min-width: 30px;
  font-size: 16px;
}

.cart-line h3,
.data-row h3,
.customer-row h3,
.order-row h3 {
  margin: 0;
  font-size: 17px;
}

.cart-line small,
.data-row small,
.customer-row small,
.order-row small {
  color: var(--muted);
  line-height: 1.6;
}

.customers-clean-title {
  min-height: 54px;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #dbe8f0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(241, 139, 47, 0.1)),
    #fff;
  box-shadow: 0 10px 24px rgba(18, 45, 65, 0.06);
}

.customers-clean-title h1 {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.customer-permission-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dbe8f0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.07), rgba(241, 139, 47, 0.1)),
    #fbfdff;
}

.customer-permission-card strong {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 950;
}

.customer-permission-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-form .customer-permission-card {
  gap: 7px;
  padding: 9px;
  border-radius: 8px;
}

.customer-form .customer-permission-card strong {
  font-size: 13px;
}

.customer-form .customer-permission-card small {
  margin-top: 2px;
  font-size: 10.5px;
}

.customer-form .permission-toggle {
  min-height: 34px;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
}

.customer-form .permission-toggle span {
  width: 36px;
  height: 21px;
  padding: 3px;
}

.customer-form .permission-toggle span::before {
  width: 15px;
  height: 15px;
}

.customer-form .permission-toggle input:checked + span::before {
  transform: translateX(-15px);
}

.permission-toggle {
  min-height: 40px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #f0c8c8;
  border-radius: 10px;
  background: #fff5f5;
  color: #9f1c1c;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.permission-toggle input {
  display: none;
}

.permission-toggle span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #d92d20, #f04438);
  transition: background 0.2s ease;
}

.permission-toggle span::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(18, 45, 65, 0.18);
  transition: transform 0.2s ease;
}

.permission-toggle input:checked + span {
  background: linear-gradient(135deg, #168a4f, #35c978);
}

.permission-toggle input:checked + span::before {
  transform: translateX(-18px);
}

.permission-toggle:has(input:checked) {
  border-color: #a7e2c1;
  background: #e9f8f0;
  color: #167044;
}

.customers-panel {
  display: grid;
  gap: 8px;
}

.customers-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.customers-grid.customer-list-first {
  grid-template-columns: minmax(0, 1fr);
}

.customers-grid.customer-form-visible {
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
}

.customer-form {
  gap: 9px;
  padding: 13px;
  border-radius: 8px;
}

.customer-form h2 {
  margin: 0 0 2px;
  color: var(--blue-dark);
  font-size: 17px;
}

.customer-form label {
  gap: 4px;
  font-size: 12px;
}

.customer-form input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
}

.customer-form .primary,
.customer-form .secondary {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.customer-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.customer-list-toolbar h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
}

.customer-list-toolbar span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 139, 0.08);
  color: #1f5f8b;
  font-size: 12px;
  font-weight: 950;
}

.customer-add-trigger {
  width: 100%;
  margin-top: 8px;
}

.customer-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(18, 45, 65, 0.045);
}

.customer-row h3 {
  font-size: 14px;
  line-height: 1.25;
}

.customer-row small {
  font-size: 11.5px;
  line-height: 1.35;
}

.customer-row .row-actions button {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11.5px;
}

.customer-permissions-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.customer-permissions-mini span {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.customer-permissions-mini span.ok {
  background: #e9f8f0;
  color: #167044;
}

.customer-permissions-mini span.off {
  background: #f1f5f8;
  color: #60717f;
}

.employees-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.employees-grid.employee-list-first {
  grid-template-columns: minmax(0, 1fr);
}

.employees-grid.employee-form-visible {
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
}

.employees-grid.employee-edit-focused {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.employees-grid.employee-form-visible .employee-form {
  position: sticky;
  top: 12px;
}

.employees-grid.employee-edit-focused .employee-form {
  position: static;
  width: 100%;
}

.employee-form {
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
}

.employee-form h2 {
  margin: 0 0 2px;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.25;
}

.employee-form label {
  gap: 4px;
  font-size: 12px;
}

.employee-form input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
}

.employee-form .primary,
.employee-form .secondary {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.employee-form .check-label {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 12px;
}

.employee-fields {
  grid-template-columns: 1fr;
  gap: 8px;
}

.employee-permissions-card {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #dbe8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.employee-permissions-card strong,
.employee-list h2 {
  color: var(--blue-dark);
  font-weight: 950;
}

.employee-permissions-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.employee-account-editor {
  background: linear-gradient(135deg, #fbfdff, #fff8f1);
  border-color: rgba(214, 115, 24, 0.22);
}

.employee-account-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.employee-account-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.employee-account-fields span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(214, 115, 24, 0.2);
  border-radius: 8px;
  background: #fff8f1;
  color: #9f520e;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.employee-account-summary article,
.employee-account-mini {
  border: 1px solid rgba(31, 95, 139, 0.1);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.employee-account-summary article {
  padding: 7px;
}

.employee-account-summary span,
.employee-account-mini span,
.employee-account-mini small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.employee-account-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.employee-account-summary .total {
  background: #f1f5f8;
  border-color: rgba(31, 95, 139, 0.14);
}

.employee-account-summary .total small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 900;
}

.employee-account-summary .total.positive {
  background: #e9f8f0;
  border-color: rgba(29, 156, 92, 0.22);
}

.employee-account-summary .total.positive strong,
.employee-account-summary .total.positive small {
  color: #167044;
}

.employee-account-summary .total.negative {
  background: #fff0f0;
  border-color: rgba(193, 54, 54, 0.22);
}

.employee-account-summary .total.negative strong,
.employee-account-summary .total.negative small {
  color: #b52f2f;
}

.employee-account-summary .total.balanced strong,
.employee-account-summary .total.balanced small {
  color: var(--blue-dark);
}

.employee-cumulative-account {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 8px;
  background: #f7fafc;
}

.employee-cumulative-head,
.employee-cumulative-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-cumulative-head > div {
  min-width: 0;
}

.employee-cumulative-head span,
.employee-cumulative-total span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.employee-cumulative-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.employee-cumulative-head b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.employee-cumulative-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.employee-cumulative-breakdown article {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(31, 95, 139, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
}

.employee-cumulative-breakdown span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
}

.employee-cumulative-breakdown strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 950;
}

.employee-cumulative-total {
  padding-top: 8px;
  border-top: 1px solid rgba(31, 95, 139, 0.1);
}

.employee-cumulative-total strong {
  font-size: 17px;
  font-weight: 950;
}

.employee-cumulative-account.positive {
  border-color: rgba(29, 156, 92, 0.24);
  background: #eef9f3;
}

.employee-cumulative-account.positive .employee-cumulative-head b,
.employee-cumulative-account.positive .employee-cumulative-total strong {
  color: #167044;
}

.employee-cumulative-account.positive .employee-cumulative-head b {
  background: #dff4e8;
}

.employee-cumulative-account.negative {
  border-color: rgba(193, 54, 54, 0.24);
  background: #fff3f3;
}

.employee-cumulative-account.negative .employee-cumulative-head b,
.employee-cumulative-account.negative .employee-cumulative-total strong {
  color: #b52f2f;
}

.employee-cumulative-account.negative .employee-cumulative-head b {
  background: #ffe1e1;
}

.employee-cumulative-account.balanced .employee-cumulative-head b,
.employee-cumulative-account.balanced .employee-cumulative-total strong {
  color: var(--blue-dark);
}

.employee-cumulative-account.balanced .employee-cumulative-head b {
  background: #e8f1f7;
}

.employee-permission-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.price-permission-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.permission-chip {
  cursor: pointer;
}

.permission-chip input {
  display: none;
}

.permission-chip span,
.employee-permissions-mini span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 950;
}

.permission-chip span {
  padding: 3px 8px;
  border: 1px solid #dbe8f0;
  background: #f1f5f8;
  color: #435565;
}

.permission-chip.active span {
  border-color: #0b64aa;
  background: #e4f2ff;
  color: #0b64aa;
}

.employee-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.employee-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.employee-list h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.employee-list-toolbar h2 {
  margin: 0;
}

.customer-list-toolbar small,
.employee-list-toolbar small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.people-list-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0b64aa;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.employee-list-toolbar span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 139, 0.08);
  color: #1f5f8b;
  font-size: 12px;
  font-weight: 950;
}

.employee-add-trigger {
  width: 100%;
  margin-top: 8px;
}

.employee-card {
  overflow: hidden;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(31, 95, 139, 0.045), transparent 55%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(18, 45, 65, 0.045);
}

.employee-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
}

.employee-row:last-child {
  border-bottom: 0;
}

.employee-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0aa2b, #1f5f8b);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 7px 15px rgba(18, 45, 65, 0.12);
}

.employee-avatar.photo {
  background: #f4f8fb;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-photo-uploader {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
}

.employee-photo-preview {
  width: 58px;
  border-radius: 10px;
}

.employee-photo-uploader strong {
  font-size: 13px;
}

.employee-photo-uploader small {
  font-size: 10.5px;
}

.employee-card-main {
  min-width: 0;
}

.employee-card-headline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.employee-row h3 {
  margin: 0;
  overflow: hidden;
  color: #20384c;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-status {
  flex: 0 0 auto;
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 950;
}

.employee-status.active {
  background: #eaf8ef;
  color: #16813a;
}

.employee-status.inactive {
  background: #fff0ee;
  color: #b42323;
}

.employee-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.employee-card-meta span {
  max-width: 170px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f3f7fa;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-permissions-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.employee-permissions-mini span {
  min-height: 20px;
  padding: 1px 6px;
  font-size: 10px;
}

.employee-permissions-mini span.ok {
  background: #e4f2ff;
  color: #0b64aa;
}

.employee-permissions-mini span.off {
  background: #f1f5f8;
  color: #60717f;
}

.employee-account-mini {
  width: fit-content;
  margin-top: 6px;
  padding: 5px 8px;
  display: grid;
  gap: 1px;
}

.employee-account-mini strong {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
}

.employee-account-mini b {
  font-size: 9px;
  font-weight: 950;
}

.employee-account-mini.positive {
  border-color: rgba(29, 156, 92, 0.22);
  background: #e9f8f0;
}

.employee-account-mini.positive strong,
.employee-account-mini.positive b {
  color: #167044;
}

.employee-account-mini.negative {
  border-color: rgba(193, 54, 54, 0.22);
  background: #fff0f0;
}

.employee-account-mini.negative strong,
.employee-account-mini.negative b {
  color: #b52f2f;
}

.employee-account-mini.balanced strong,
.employee-account-mini.balanced b {
  color: var(--blue-dark);
}

.employee-row .row-actions button {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
}

.employee-attendance-admin {
  display: grid;
  gap: 7px;
  margin: 0 7px 7px;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9fb, #fff8f0);
  border: 1px solid rgba(31, 95, 139, 0.11);
}

.employee-consumption-admin {
  display: grid;
  gap: 8px;
  margin: 0 7px 7px;
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fb 62%, #fff8f0 100%);
  border: 1px solid rgba(241, 139, 47, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.employee-attendance-admin-head,
.employee-attendance-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.employee-attendance-admin-head span {
  display: block;
  color: #1f5f8b;
  font-size: 10px;
  font-weight: 950;
}

.employee-attendance-admin-head strong {
  color: #173f5f;
  font-size: 13px;
}

.employee-attendance-admin-head b {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf3f7;
  color: #60717f;
  font-size: 10px;
}

.employee-attendance-admin-head b.present {
  background: #e9f8f0;
  color: #167044;
}

.employee-attendance-admin-head b.absent {
  background: #fff1ec;
  color: #bb4b22;
}

.employee-consumption-admin .employee-attendance-admin-head b {
  min-width: 94px;
  text-align: center;
  background: #fff1df;
  color: #c76616;
  font-size: 12px;
}

.employee-account-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #173f5f;
  font-size: 11px;
  font-weight: 900;
}

.employee-account-month input {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #dbe8f0;
  border-radius: 7px;
  background: #ffffff;
  color: #173f5f;
  font: inherit;
}

.employee-consumption-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(31, 95, 139, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.employee-consumption-form label {
  display: grid;
  gap: 3px;
}

.employee-consumption-form label span {
  color: #6e7d88;
  font-size: 10px;
  font-weight: 950;
}

.employee-consumption-form input {
  min-height: 29px;
  padding: 6px 8px;
  border: 1px solid #dbe8f0;
  border-radius: 7px;
  background: #ffffff;
  color: #173f5f;
  font-size: 12px;
  font-weight: 800;
}

.employee-consumption-form button {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 11px;
}

.employee-attendance-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.employee-attendance-admin-stats article {
  padding: 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 95, 139, 0.08);
}

.employee-attendance-admin-stats span,
.employee-attendance-admin-log small {
  color: #6e7d88;
  font-size: 10px;
  font-weight: 850;
}

.employee-attendance-admin-stats strong {
  display: block;
  margin-top: 2px;
  color: #173f5f;
  font-size: 14px;
}

.employee-attendance-admin-actions button {
  min-height: 26px;
  flex: 1;
  padding: 4px 7px;
  font-size: 10.5px;
}

.employee-attendance-admin-log {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.employee-attendance-admin-log span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9.8px;
  font-weight: 900;
}

.employee-attendance-admin-log span.present {
  background: #e9f8f0;
  color: #167044;
}

.employee-attendance-admin-log span.absent {
  background: #fff1ec;
  color: #bb4b22;
}

.employee-consumption-log {
  display: grid;
  gap: 4px;
}

.employee-consumption-log span {
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
  background: rgba(255, 241, 223, 0.75);
  color: #9f520e;
}

.employee-consumption-log span em {
  color: #6e7d88;
  font-style: normal;
}

.employee-consumption-log span small {
  color: #9f520e;
  font-size: 10px;
}

.employee-consumption-log .employee-consumption-actions {
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.employee-consumption-actions button {
  min-height: 25px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
}

.employee-delete-review {
  margin: 10px 0;
}

.employee-delete-counts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px !important;
  width: 100%;
}

.employee-delete-counts span {
  padding: 7px;
  border-radius: 7px;
  background: #ffffff;
  text-align: center;
}

.employee-consumption-view {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(241, 139, 47, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fb 58%, #fff8f0 100%);
  box-shadow: 0 14px 32px rgba(18, 55, 82, 0.08);
}

.employee-work-title.employee-daily-compact {
  min-height: 44px;
  padding: 9px 12px;
}

.employee-work-title.employee-daily-compact h1 {
  font-size: 20px;
}

.employee-work-panel.employee-daily-compact {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 55, 82, 0.05);
}

.employee-work-panel.employee-daily-compact h2 {
  margin: 2px 0;
  font-size: 16px;
}

.employee-work-panel.employee-daily-compact p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.employee-work-panel.employee-daily-compact .employee-work-stats {
  gap: 6px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats article {
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats span {
  font-size: 10px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats strong {
  margin-top: 2px;
  font-size: 14px;
}

.employee-daily-compact + .employee-consumption-view,
.employee-consumption-view {
  border-radius: 8px;
}

.employee-work-panel.employee-daily-compact + .employee-consumption-view,
.employee-consumption-view:has(+ .employee-today-status) {
  margin-top: 6px;
}

.employee-consumption-view {
  gap: 7px;
  padding: 9px;
}

.employee-consumption-view-head strong {
  font-size: 18px;
}

.employee-consumption-view-head small {
  margin-top: 1px;
  font-size: 10px;
}

.employee-consumption-view-head b {
  padding: 4px 8px;
  font-size: 10px;
}

.employee-consumption-view-list {
  gap: 4px;
}

.employee-consumption-view-list article {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 7px;
}

.employee-consumption-view-list article em {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 7.5px;
}

.employee-consumption-view-list article strong {
  font-size: 12px;
}

.employee-consumption-view-list article span,
.employee-consumption-view-list article small {
  font-size: 10px;
}

.employee-consumption-view + .employee-today-status {
  margin-top: 7px;
}

.employee-today-status {
  gap: 2px;
  margin-top: 7px;
  padding: 9px 11px;
}

.employee-today-status strong {
  font-size: 14px;
}

.employee-attendance-card {
  gap: 8px;
  margin-top: 7px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(18, 55, 82, 0.05);
}

.employee-attendance-head strong {
  font-size: 15px;
}

.employee-attendance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.employee-attendance-grid article {
  padding: 8px;
}

.employee-attendance-grid span {
  font-size: 10px;
}

.employee-attendance-grid strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.employee-consumption-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.employee-consumption-view-head span {
  display: block;
  color: #c76616;
  font-size: 11px;
  font-weight: 950;
}

.employee-consumption-view-head strong {
  display: block;
  margin-top: 2px;
  color: #173f5f;
  font-size: 23px;
  line-height: 1.1;
}

.employee-consumption-view-head small {
  display: block;
  margin-top: 4px;
  color: #6e7d88;
  font-size: 11px;
  font-weight: 800;
}

.employee-consumption-view-head b {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 95, 139, 0.08);
  color: #1f5f8b;
  font-size: 11px;
}

.employee-consumption-view-list {
  display: grid;
  gap: 6px;
}

.employee-consumption-view-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(31, 95, 139, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.employee-consumption-view-list article em {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1df;
  color: #c76616;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 950;
}

.employee-consumption-view-list article strong {
  display: block;
  color: #173f5f;
  font-size: 14px;
}

.employee-consumption-view-list article span,
.employee-consumption-view-list article small {
  color: #6e7d88;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .employee-invoice-form {
    grid-template-columns: 1fr;
  }

  .employee-invoice-form button {
    width: 100%;
  }

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

  .employee-account-fields span {
    justify-content: flex-start;
  }

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

  .employee-account-summary .total {
    grid-column: 1 / -1;
  }

  .employee-cumulative-head {
    align-items: flex-start;
  }

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

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

  .employee-delete-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-consumption-view-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.employee-brand-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(241, 139, 47, 0.07)),
    #ffffff;
}

.employee-brand-hero div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-brand-hero span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f18b2f, #0b64aa);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.employee-brand-hero strong {
  color: #0b64aa;
  font-size: 26px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
}

.employee-brand-hero p {
  max-width: 440px;
  margin: 0;
  color: #5f7180;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.employee-motivation-card {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-inline-start: 4px solid #f18b2f;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 55, 82, 0.07);
}

.employee-motivation-card span {
  color: #c76616;
  font-size: 12px;
  font-weight: 950;
}

.employee-motivation-card strong {
  color: #173f5f;
  font-size: 17px;
  line-height: 1.7;
}

.employee-work-title {
  margin-bottom: 12px;
}

.employee-work-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f3f8fb);
  box-shadow: 0 14px 34px rgba(18, 55, 82, 0.08);
}

.employee-work-panel > div:first-child span {
  display: inline-flex;
  color: #1f5f8b;
  font-size: 12px;
  font-weight: 900;
}

.employee-work-panel h2 {
  margin: 8px 0;
  color: #173f5f;
  font-size: 24px;
}

.employee-work-panel p {
  margin: 0;
  color: #5f7180;
  line-height: 1.8;
}

.employee-work-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.employee-work-stats article {
  padding: 14px;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.employee-work-stats span {
  display: block;
  color: #6e7d88;
  font-size: 12px;
  font-weight: 800;
}

.employee-work-stats strong {
  display: block;
  margin-top: 6px;
  color: #173f5f;
  font-size: 18px;
}

.employee-task-quote {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-inline-start: 4px solid #f18b2f;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fb 68%, #fff7ef 100%);
  box-shadow: 0 12px 26px rgba(18, 55, 82, 0.07);
}

.employee-task-quote span {
  color: #c76616;
  font-size: 11px;
  font-weight: 950;
}

.employee-task-quote strong {
  color: #173f5f;
  font-size: 15px;
  line-height: 1.75;
}

.employee-attendance-card {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 95, 139, 0.13);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fb 62%, #fff7ef 100%);
  box-shadow: 0 14px 32px rgba(18, 55, 82, 0.08);
}

.employee-today-status {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f3f8fb);
}

.employee-today-status span {
  color: #1f5f8b;
  font-size: 11px;
  font-weight: 950;
}

.employee-today-status strong {
  color: #173f5f;
  font-size: 16px;
}

.employee-today-status small {
  color: #6e7d88;
  font-size: 11px;
  font-weight: 850;
}

.employee-today-status.present {
  border-color: rgba(29, 156, 92, 0.2);
  background: linear-gradient(135deg, #ffffff, #edf9f2);
}

.employee-today-status.present strong {
  color: #167044;
}

.employee-today-status.absent {
  border-color: rgba(241, 101, 54, 0.24);
  background: linear-gradient(135deg, #ffffff, #fff1ec);
}

.employee-today-status.absent strong {
  color: #bb4b22;
}

.employee-attendance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-attendance-head span {
  color: #1f5f8b;
  font-size: 12px;
  font-weight: 950;
}

.employee-attendance-head strong {
  color: #173f5f;
  font-size: 18px;
}

.employee-attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.employee-attendance-grid article {
  padding: 15px;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.employee-attendance-grid span {
  display: block;
  color: #6e7d88;
  font-size: 12px;
  font-weight: 850;
}

.employee-attendance-grid strong {
  display: block;
  margin-top: 8px;
  color: #173f5f;
  font-size: 17px;
  line-height: 1.5;
}

.employee-attendance-empty {
  margin: 0;
  color: #6e7d88;
  line-height: 1.8;
}

.employee-work-title.employee-daily-compact {
  min-height: 44px;
  padding: 9px 12px;
}

.employee-work-title.employee-daily-compact h1 {
  font-size: 20px;
}

.employee-work-panel.employee-daily-compact {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 55, 82, 0.05);
}

.employee-work-panel.employee-daily-compact h2 {
  margin: 2px 0;
  font-size: 16px;
}

.employee-work-panel.employee-daily-compact p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.employee-work-panel.employee-daily-compact .employee-work-stats {
  gap: 6px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats article {
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats span {
  font-size: 10px;
}

.employee-work-panel.employee-daily-compact .employee-work-stats strong {
  margin-top: 2px;
  font-size: 14px;
}

.employee-consumption-view {
  gap: 7px;
  margin-top: 7px;
  padding: 9px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 55, 82, 0.05);
}

.employee-consumption-view-head strong {
  font-size: 18px;
}

.employee-consumption-view-head small {
  margin-top: 1px;
  font-size: 10px;
}

.employee-consumption-view-head b {
  padding: 4px 8px;
  font-size: 10px;
}

.employee-consumption-view-list {
  gap: 4px;
}

.employee-consumption-view-list article {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 7px;
}

.employee-consumption-view-list article em {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 7.5px;
}

.employee-consumption-view-list article strong {
  font-size: 12px;
}

.employee-consumption-view-list article span,
.employee-consumption-view-list article small {
  font-size: 10px;
}

.employee-today-status {
  gap: 2px;
  margin-top: 7px;
  padding: 9px 11px;
}

.employee-today-status strong {
  font-size: 14px;
}

.employee-attendance-card {
  gap: 8px;
  margin-top: 7px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(18, 55, 82, 0.05);
}

.employee-attendance-head strong {
  font-size: 15px;
}

.employee-attendance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.employee-attendance-grid article {
  padding: 8px;
}

.employee-attendance-grid span {
  font-size: 10px;
}

.employee-attendance-grid strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.employee-orders-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.employee-orders-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.employee-orders-title span {
  color: #173f5f;
  font-size: 18px;
  font-weight: 950;
}

.employee-orders-title strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 139, 0.08);
  color: #1f5f8b;
  font-size: 12px;
}

.employee-order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 55, 82, 0.07);
}

.employee-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-order-head span {
  color: #c76616;
  font-size: 12px;
  font-weight: 950;
}

.employee-order-head h3 {
  margin: 4px 0;
  color: #173f5f;
  font-size: 18px;
}

.employee-order-head small {
  color: #6d7b85;
  font-weight: 800;
  line-height: 1.7;
}

.employee-order-head b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(241, 139, 47, 0.1);
  color: #b95f15;
  font-size: 12px;
}

.employee-order-lines {
  display: grid;
  gap: 6px;
}

.employee-order-lines div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfd, #ffffff);
  border: 1px solid rgba(31, 95, 139, 0.08);
}

.employee-order-lines strong {
  min-width: 0;
  color: #203746;
  font-size: 15px;
  line-height: 1.4;
}

.employee-order-lines em {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 28px;
  border-radius: 7px;
  background: rgba(31, 95, 139, 0.1);
  color: #1f5f8b;
  font-style: normal;
  font-weight: 950;
  font-size: 14px;
}

.employee-products-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.employee-products-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-products-section-title span {
  color: #173f5f;
  font-size: 18px;
  font-weight: 950;
}

.employee-products-section-title strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 139, 0.08);
  color: #1f5f8b;
  font-size: 12px;
}

.employee-products-list {
  display: grid;
  gap: 7px;
}

.employee-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 55, 82, 0.05);
}

.employee-product-row h3 {
  margin: 0;
  color: #203746;
  font-size: 15px;
}

.employee-product-row small {
  display: block;
  margin-top: 4px;
  color: #6d7b85;
  font-size: 12px;
  font-weight: 800;
}

.employee-product-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.employee-product-prices span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f7fafc;
  color: #1f5f8b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-product-admin-list {
  margin-top: 14px;
}

.employee-catalog-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.employee-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.employee-catalog-card {
  min-height: 0;
  padding-bottom: 10px;
}

.employee-catalog-card small {
  display: block;
  margin-top: -2px;
  color: #6d7b85;
  font-size: 12px;
  font-weight: 800;
}

.employee-catalog-prices {
  display: grid;
  gap: 5px;
  width: 100%;
}

.employee-catalog-prices span {
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f7fafc;
  color: #1f5f8b;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.employee-catalog-prices b,
.customer-price-list b {
  font-size: 9.5px;
  color: #60717d;
}

.employee-catalog-prices em,
.customer-price-list em {
  direction: ltr;
  font-style: normal;
  color: var(--blue-dark);
}

.employee-products-catalog {
  display: grid;
  gap: 8px;
}

.employee-products-catalog .market-searchbar {
  margin: 0;
}

.employee-products-catalog .market-searchbar form {
  min-height: 38px;
}

.employee-products-catalog .market-searchbar button {
  width: 42px;
  height: 38px;
}

.employee-products-catalog .market-searchbar input {
  min-height: 38px;
  font-size: 13px;
}

.employee-category-cards {
  margin: 0;
}

.employee-products-catalog .category-card {
  min-height: 76px;
  padding: 8px;
}

.employee-products-catalog .category-card span {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.employee-products-catalog .category-card small {
  display: none;
}

.employee-products-catalog .recent-searches {
  margin: 0;
}

.employee-products-catalog .recent-searches-grid {
  gap: 6px;
}

.employee-products-catalog .employee-catalog-grid {
  margin-top: 0;
}

.employee-products-catalog .employee-catalog-card {
  min-height: 252px;
  grid-template-rows: auto 34px 16px auto 26px;
  gap: 5px;
  padding: 6px;
  align-content: start;
}

.employee-products-catalog .employee-catalog-card .catalog-product-image {
  height: 148px;
  min-height: 132px;
}

.employee-products-catalog .employee-catalog-card strong {
  min-height: 32px;
}

.employee-products-catalog .employee-catalog-card .catalog-product-actions {
  align-self: end;
}

.employee-products-catalog .employee-catalog-card .trend-order-btn,
.employee-products-catalog .employee-catalog-card .trend-qty-control,
.employee-products-catalog .employee-catalog-card .trend-qty-control button,
.employee-products-catalog .employee-catalog-card .trend-qty-control input {
  height: 24px;
  min-height: 24px;
}

.admin-products-page {
  display: grid;
  gap: 10px;
}

.admin-products-page .market-searchbar {
  margin: 0;
}

.admin-product-toggle {
  width: min(100%, 360px);
  justify-self: center;
  min-height: 38px;
  border-radius: 8px;
}

.admin-product-form-wrap {
  display: grid;
}

.product-admin-form {
  max-width: 760px;
  width: 100%;
  justify-self: center;
  gap: 10px;
  padding: 14px;
}

.product-save-status {
  min-height: 20px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.admin-category-cards {
  margin: 0;
}

.admin-product-catalog-grid {
  margin-top: 0;
}

.admin-product-catalog-card {
  gap: 6px;
  padding: 7px;
}

.admin-product-catalog-card .catalog-product-image {
  min-height: 136px;
}

.admin-product-catalog-card small {
  color: #6e7d88;
  font-size: 10.5px;
  font-weight: 850;
}

.admin-product-price-pills,
.admin-product-state-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.admin-product-price-pills span,
.admin-product-state-pills b {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 950;
}

.admin-product-price-pills span {
  background: #f1f6fa;
  color: #1f5f8b;
}

.admin-product-state-pills b {
  background: #f1f5f8;
  color: #60717f;
}

.admin-product-state-pills b.ok {
  background: #e9f8f0;
  color: #167044;
}

.admin-product-state-pills b.hot {
  background: #fff1df;
  color: #c76616;
}

.admin-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.admin-product-actions button {
  min-height: 27px;
  padding: 4px 6px;
  border-radius: 7px;
  font-size: 10px;
}

.customer-price {
  direction: ltr;
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--blue-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(241, 139, 47, 0.22);
}

.customer-price-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 100%;
}

.customer-price-list span {
  display: grid;
  gap: 2px;
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff7ed;
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 950;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(241, 139, 47, 0.18);
}

.summary-total {
  direction: ltr;
  color: var(--blue-dark);
  font-size: 30px;
  font-weight: 950;
}

.rules {
  display: grid;
  gap: 8px;
  margin: 0;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8fb;
  color: #435565;
  font-weight: 850;
}

.rule.ok {
  background: #eaf8ef;
  color: var(--green);
}

.rule.bad {
  background: #fae8e6;
  color: var(--red);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.stat-card strong {
  color: var(--blue-dark);
  font-size: 32px;
}

.data-row {
  grid-template-columns: 70px 1fr auto;
  align-items: center;
}

.data-thumb {
  width: 70px;
  height: 70px;
  border-radius: 9px;
  overflow: hidden;
  background: #e8f0f5;
}

.data-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-admin-list {
  padding: 10px 12px;
}

.product-admin-list h2 {
  margin-bottom: 2px;
  font-size: 18px;
}

.product-admin-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 0;
  align-items: center;
}

.product-admin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.product-admin-row h3 {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-row small {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-row .row-actions button {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
}

.row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.two-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.check-label input {
  width: auto;
}

.empty-state {
  margin: 0;
  padding: 26px;
  border: 1px dashed #b8c8d2;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.bottom-nav {
  display: none;
}

.admin-people-popover {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #102f48;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.market-layout {
  min-height: 100vh;
  padding-bottom: 76px;
  background: #fff;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 0 1px rgba(18, 45, 65, 0.08), 0 24px 70px rgba(18, 45, 65, 0.14);
}

.market-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 10px 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  max-width: 520px;
  margin: 0 auto;
}

.app-promo {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e6edf3;
  direction: ltr;
}

.promo-id {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.promo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #2f89d7, #1f5f8b 60%, #f7b23a);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.promo-id strong,
.promo-id small {
  display: block;
}

.promo-id strong {
  font-size: 18px;
  color: #1a2e3f;
  line-height: 1.05;
}

.promo-id small {
  color: #758492;
  font-size: 11px;
  margin-top: 2px;
}

.promo-get {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #344d76;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.promo-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4f5d6a;
  font-size: 28px;
  line-height: 1;
}

.market-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 2px 0;
  direction: ltr;
}

.account-menu-panel {
  padding: 8px 0 18px;
}

.saved-orders-panel {
  display: grid;
  gap: 9px;
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.08), rgba(31, 95, 139, 0.05)),
    #fff;
  box-shadow: 0 8px 22px rgba(18, 45, 65, 0.06);
}

.saved-orders-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 11px;
  border-bottom: 1px solid #e4edf3;
  color: var(--blue-dark);
}

.saved-orders-title span {
  color: #d67318;
  font-size: 12px;
  font-weight: 950;
}

.saved-orders-title h2 {
  margin: 3px 0 0;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.2;
}

.saved-orders-title strong {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 10px;
  background: #f6fafc;
  color: var(--blue);
  direction: ltr;
  font-size: 17px;
}

.archive-months {
  display: grid;
  gap: 9px;
}

.archive-month-card {
  overflow: hidden;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 45, 65, 0.045);
}

.archive-month-head {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.1), transparent 48%),
    linear-gradient(180deg, #ffffff, #f6fafc);
  text-align: right;
  cursor: pointer;
}

.archive-month-head > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
}

.archive-month-head strong {
  display: block;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
}

.archive-month-head small {
  display: block;
  margin-top: 3px;
  color: #d67318;
  direction: ltr;
  text-align: right;
  font-size: 11px;
  font-weight: 950;
}

.archive-month-orders {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.saved-order-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 237, 0.9);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.08), transparent 38%),
    #fff;
  box-shadow: 0 7px 18px rgba(18, 45, 65, 0.055);
}

.saved-order-card.compact {
  gap: 7px;
  padding: 9px;
}

.saved-order-card::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f18b2f 0 34%, #0b64aa 34% 100%);
}

.saved-order-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.saved-order-mark {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff4e8;
  color: #d67318;
  font-size: 11px;
  font-weight: 950;
}

.saved-order-head h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 15px;
}

.saved-order-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  direction: ltr;
  text-align: right;
}

.saved-order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.saved-order-meta div {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #edf3f7;
  border-radius: 9px;
  background: #fbfdff;
}

.saved-order-meta span {
  color: #6a7a87;
  font-size: 10px;
  font-weight: 900;
}

.saved-order-meta strong {
  direction: ltr;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-order-meta div:last-child strong {
  color: var(--blue);
}

.saved-order-meta > span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f6fafc;
  color: #526575;
  font-size: 11px;
  font-weight: 900;
}

.saved-order-actions {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 7px;
}

.saved-order-actions .primary,
.saved-order-actions .secondary {
  min-height: 34px;
  border-radius: 8px;
  font-size: 11.5px;
}

.saved-order-actions .primary {
  background: linear-gradient(135deg, var(--blue), #0b64aa);
}

.saved-empty {
  min-height: 150px;
}

.profile-card {
  margin: 12px;
  padding: 16px;
  border-radius: 18px;
  direction: rtl;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.profile-cover {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(241, 139, 47, 0.12)),
    #f7fbfd;
}

.profile-photo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), #0b64aa 68%, #f18b2f);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 95, 139, 0.2);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  font-size: 22px;
  font-weight: 950;
}

.profile-cover span {
  color: #f18b2f;
  font-size: 12px;
  font-weight: 950;
}

.profile-cover strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.25;
}

.profile-cover small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-upload-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
}

.profile-upload-btn input {
  display: none;
}

.profile-upload-btn b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7fc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.info-row {
  padding: 9px 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-of-type {
  border-bottom: none;
}

.label {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.value {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.value-small {
  direction: ltr;
  text-align: right;
  font-size: 13px;
}

.action-btn {
  min-height: 38px;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #1e88c8;
  color: white;
  font-weight: 800;
}

.action-btn b {
  font-size: 15px;
  line-height: 1;
}

.strip-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-icon,
.strip-menu {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f7fa;
  color: #23384a;
  font-size: 25px;
}

.strip-icon.cart {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
}

.order-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 26px;
  border: 2px solid #1e88c8;
  border-radius: 5px 5px 7px 7px;
  background: #fff;
  box-shadow: inset 0 -5px 0 rgba(241, 139, 47, 0.18);
  flex: 0 0 auto;
}

.order-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  border-radius: 999px;
  background: #1e88c8;
  box-shadow: 0 6px 0 #f18b2f, 0 12px 0 rgba(30, 136, 200, 0.72);
}

.order-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -5px;
  width: 8px;
  height: 6px;
  border: 2px solid #1e88c8;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #fff;
}

.strip-icon .order-icon {
  transform: scale(0.86);
}

.strip-icon.cart em {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ec5e59;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.market-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 10px 24px;
}

.market-hero {
  display: grid;
  gap: 8px;
  padding: 0 0 8px;
}

.hero-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 95, 139, 0.14);
  border-radius: 10px;
  overflow: hidden;
  color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(18, 45, 65, 0.07);
}

.hero-orange {
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.13), rgba(31, 95, 139, 0.08)),
    #fff;
}

.hero-card small,
.hero-card h1,
.hero-card p {
  margin: 0;
}

.hero-card small {
  color: #d67318;
  font-weight: 950;
  font-size: 12px;
}

.hero-card h1 {
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.08;
}

.hero-card p {
  margin-top: 7px;
  color: #526575;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 850;
}

.hero-shapes {
  position: relative;
  width: 86px;
  height: 86px;
}

.shape {
  position: absolute;
  border-radius: 12px;
}

.shape-blue {
  width: 50px;
  height: 50px;
  left: 2px;
  top: 4px;
  background: linear-gradient(135deg, #2e7bb5, #0b64aa);
}

.shape-orange {
  width: 54px;
  height: 54px;
  right: 0;
  bottom: 5px;
  background: linear-gradient(135deg, #f1972f, #d67318);
}

.shape-peach {
  width: 32px;
  height: 54px;
  right: 0;
  top: 16px;
  border-radius: 7px 13px 13px 7px;
  background: rgba(241, 139, 47, 0.28);
}

.shape-pill {
  position: absolute;
  right: 13px;
  bottom: 0;
  width: 48px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #123d5c;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.market-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.market-stats article {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 6px 4px;
}

.market-stats article + article {
  border-right: 1px solid var(--line);
}

.market-stats strong {
  font-size: 22px;
  color: #1f3951;
  line-height: 1;
}

.market-stats span {
  color: #637380;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.delivery-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.delivery-mini {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 15px;
  border-radius: 4px 8px 4px 4px;
  background: #2e84c8;
  box-shadow: inset -7px 0 0 #ff8d3a;
  flex: 0 0 auto;
}

.delivery-mini::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 4px;
  width: 8px;
  height: 7px;
  border-radius: 2px 4px 2px 2px;
  background: #2e84c8;
}

.delivery-mini::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f3951;
  box-shadow: 15px 0 0 #1f3951;
}

.market-shortcuts button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  color: #25425a;
}

.market-shortcuts span {
  color: #33648a;
  font-size: 22px;
}

.market-shortcuts strong {
  font-size: 22px;
}

.market-section-head {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
}

.market-section-head h1,
.market-section-head p {
  margin: 0;
}

.market-section-head h1 {
  font-size: 29px;
}

.market-section-head p {
  color: var(--muted);
}

.catalog-page {
  display: grid;
  gap: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 12px;
}

.category-card {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 48, 67, 0.07);
  text-align: center;
  cursor: pointer;
}

.category-card span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ecf5fb;
  color: #2e7bb5;
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  color: #20384c;
  font-size: 17px;
  line-height: 1.25;
}

.category-card small {
  color: #6f7f8a;
  font-size: 12px;
  line-height: 1.35;
}

.category-card em {
  color: #f18b2f;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.category-card.active {
  border-color: rgba(31, 95, 139, 0.45);
  background: linear-gradient(180deg, #fff, #eef7fc);
  box-shadow: 0 10px 24px rgba(31, 95, 139, 0.12);
}

.category-card.active span {
  background: var(--blue);
  color: #fff;
}

.market-categories .category-card {
  min-height: 74px;
  padding: 8px 3px;
  gap: 5px;
}

.market-categories .category-card span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 17px;
}

.market-categories .category-card strong {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
}

.market-categories .category-card small {
  display: none;
}

.market-categories .category-card em {
  font-size: 9px;
}

.recent-searches {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.recent-searches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-searches-head h2 {
  margin: 0;
  color: #20384c;
  font-size: 15px;
}

.recent-searches-head span {
  color: #f18b2f;
  font-size: 12px;
  font-weight: 950;
}

.recent-searches-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.recent-searches-grid p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.recent-search-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 6px 4px;
  border: 1px solid #e2edf4;
  border-radius: 8px;
  background: #fff;
  color: #20384c;
  box-shadow: 0 5px 12px rgba(24, 48, 67, 0.05);
}

.recent-search-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  overflow: hidden;
  background: #ecf5fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.recent-search-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-search-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #20384c;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.catalog-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-load-more .secondary {
  min-height: 34px;
  padding: 8px 16px;
  border-color: rgba(34, 93, 126, 0.2);
  background: #f5fbff;
  color: var(--blue-dark);
}

.catalog-product-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #e2edf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 48, 67, 0.06);
  text-align: center;
}

.catalog-product-card:active {
  transform: translateY(1px);
}

.catalog-product-card.out-of-stock,
.product-card.out-of-stock {
  opacity: 0.72;
}

.stock-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0ee;
  color: #b42323;
  font-size: 10px;
  font-weight: 950;
}

.stock-disabled,
.stock-disabled:hover {
  cursor: not-allowed;
  background: #e8edf2 !important;
  color: #7b8995 !important;
  box-shadow: none !important;
}

.catalog-product-image {
  aspect-ratio: 1;
  min-height: 132px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecf5fb, #fff4e8);
  color: #2e7bb5;
}

.catalog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-product-image span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(18, 61, 92, 0.12);
}

.catalog-product-card strong {
  min-height: 28px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #20384c;
  font-size: 11px;
  line-height: 1.2;
}

.placeholder-catalog-card {
  opacity: 0.82;
}

.catalog-product-actions {
  min-height: 22px;
  display: grid;
  align-items: end;
}

.catalog-product-actions .trend-order-btn {
  min-height: 22px;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 9.5px;
}

.catalog-product-actions .trend-qty-control {
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  gap: 2px;
}

.catalog-product-actions .trend-qty-control button,
.catalog-product-actions .trend-qty-control input {
  height: 22px;
  min-height: 22px;
  font-size: 9.5px;
}

.missing-product-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 95, 139, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(241, 139, 47, 0.12), rgba(31, 95, 139, 0.07)),
    #fff;
  box-shadow: 0 8px 20px rgba(18, 45, 65, 0.06);
}

.missing-product-card span {
  color: #d67318;
  font-size: 12px;
  font-weight: 950;
}

.missing-product-card h2,
.missing-product-card p {
  margin: 0;
}

.missing-product-card h2 {
  margin-top: 3px;
  color: var(--blue-dark);
  font-size: 19px;
}

.missing-product-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.missing-product-form {
  display: grid;
  gap: 8px;
}

.missing-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.missing-product-form label {
  display: grid;
  gap: 4px;
  color: #435565;
  font-size: 12px;
  font-weight: 900;
}

.missing-product-form input,
.missing-product-form textarea {
  width: 100%;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfdff;
  color: var(--ink);
}

.missing-product-form textarea {
  resize: vertical;
}

.missing-product-form .primary {
  min-height: 38px;
  justify-self: start;
  background: linear-gradient(135deg, var(--blue), #0b64aa);
}

.orders-split-panel {
  display: grid;
  gap: 10px;
}

.orders-split-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 8px;
  background: #f8fbfd;
}

.orders-split-head.processed {
  margin-top: 4px;
  background: #eef8f3;
  border-color: rgba(29, 156, 92, 0.16);
}

.orders-split-head span {
  display: block;
  color: #d67318;
  font-size: 10px;
  font-weight: 900;
}

.orders-split-head h2 {
  margin: 2px 0 0;
  color: var(--blue-dark);
  font-size: 14px;
}

.orders-split-head strong {
  color: #167044;
  font-size: 13px;
  font-weight: 950;
}

.processed-order-months {
  gap: 7px;
}

.processed-order-month-card {
  border-color: rgba(29, 156, 92, 0.16);
}

.processed-order-month-head {
  background: linear-gradient(135deg, #f7fffb, #ffffff);
}

.processed-order-month-list {
  display: grid;
  gap: 7px;
  padding-top: 7px;
}

.employee-processed-head {
  margin-top: 8px;
}

.trending-section {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.trending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trending-head h2 {
  margin: 0;
  color: #20384c;
  font-size: 20px;
}

.trending-head span {
  color: #6f7f8a;
  font-size: 12px;
  font-weight: 800;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.trending-card {
  min-width: 0;
  border: 1px solid #e2edf4;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 5px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 48, 67, 0.06);
}

.trending-image {
  aspect-ratio: 1.05;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ecf5fb, #fff4e8);
  color: #2e7bb5;
  overflow: hidden;
}

.trending-image span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #2e7bb5;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(24, 48, 67, 0.12);
}

.trending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-pack {
  width: 82%;
  min-height: 58%;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: #fff;
  color: #20384c;
  text-align: center;
  box-shadow: 0 6px 14px rgba(24, 48, 67, 0.12);
}

.trending-pack b {
  max-width: 94%;
  color: #2e7bb5;
  font-size: 10px;
  line-height: 1.15;
}

.trending-pack span {
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
  color: #f18b2f;
  font-size: 9px;
  box-shadow: none;
}

.trending-card.filled {
  border-color: #d3e5f1;
}

.trending-card strong {
  color: #20384c;
  font-size: 11px;
  line-height: 1.18;
  min-height: 27px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card small {
  color: #6f7f8a;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-actions {
  min-height: 30px;
  display: grid;
  align-items: end;
}

.trend-order-btn {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.trend-qty-control {
  min-height: 30px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  border: 1px solid #d6e4ed;
  border-radius: 7px;
  overflow: hidden;
  background: #f8fbfd;
}

.trend-qty-control button,
.trend-qty-control input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.trend-qty-control button {
  background: #eef7ff;
  color: var(--blue);
}

.trend-qty-control input {
  min-height: 28px;
  padding: 0;
  border-inline: 1px solid #d6e4ed;
  direction: ltr;
}

.market-searchbar {
  display: grid;
  margin: -4px 0 8px;
  padding: 0;
}

.market-searchbar form {
  min-height: 44px;
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: stretch;
  border: 1px solid #d6e1ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  direction: ltr;
}

.market-searchbar button {
  position: static;
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: #2e84c8;
  border-radius: 0;
  font-size: 18px;
  cursor: pointer;
}

.market-searchbar input {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  font-size: 15px;
  color: #3a4d5c;
  font-weight: 700;
  direction: rtl;
  text-align: right;
}

.market-bottom {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 25;
  height: 68px;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(31, 95, 139, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
  box-shadow: 0 -10px 24px rgba(18, 61, 92, 0.13);
}

.market-bottom button {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #31536c;
  font-size: 12px;
  font-weight: 900;
}

.market-bottom b {
  min-height: 23px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}

.market-bottom b .order-icon,
.bottom-nav b .order-icon {
  transform: scale(0.78);
}

.market-bottom button.active {
  color: var(--blue-dark);
  background: rgba(31, 95, 139, 0.08);
}

.market-bottom button.active::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #f18b2f;
}

.market-bottom button.active b {
  color: #0b64aa;
}

.market-bottom button.active .order-icon {
  border-color: #0b64aa;
  box-shadow: inset 0 -5px 0 rgba(241, 139, 47, 0.24);
}

.market-bottom button.active .order-icon::before {
  background: #0b64aa;
  box-shadow: 0 6px 0 #f18b2f, 0 12px 0 rgba(11, 100, 170, 0.72);
}

.market-bottom button.active .order-icon::after {
  border-color: #0b64aa;
}

.market-bottom em {
  position: absolute;
  top: 8px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f18b2f;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.employee-invoice-toggle {
  min-height: 32px;
  justify-self: start;
}

.employee-invoice-entry,
.employee-order-cart {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.employee-cart-overview {
  padding: 12px;
}

.employee-cart-page {
  max-width: 640px;
  margin: 0 auto;
}

.employee-invoice-entry-head,
.employee-order-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-invoice-entry-head span,
.employee-order-cart-head span {
  color: #d67318;
  font-size: 11px;
  font-weight: 950;
}

.employee-invoice-entry-head strong,
.employee-order-cart-head strong {
  display: block;
  margin-top: 2px;
  color: var(--blue-dark);
  font-size: 12px;
}

.employee-cart-items {
  margin-top: 0;
}

.employee-cart-total {
  margin-top: 0;
  border: 1px solid rgba(31, 95, 139, 0.1);
  border-radius: 10px;
  background: #fff;
}

.employee-order-cart-lines {
  display: grid;
  gap: 4px;
  max-height: 92px;
  overflow: auto;
}

.employee-order-cart-lines article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f6fafc;
}

.employee-order-cart-lines strong,
.employee-order-cart-lines span {
  font-size: 11px;
}

.employee-invoice-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.05fr) minmax(140px, 1fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(31, 95, 139, 0.12);
  border-radius: 10px;
  background: #fff;
}

.employee-invoice-form label {
  display: grid;
  gap: 3px;
  color: #60717f;
  font-size: 10px;
  font-weight: 900;
}

.employee-invoice-form input {
  min-height: 30px;
  border: 1px solid #dbe8f0;
  border-radius: 7px;
  padding: 6px 8px;
}

.employee-invoice-form select {
  min-height: 30px;
  border: 1px solid #dbe8f0;
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
}

.employee-invoice-form button {
  min-height: 30px;
  padding: 6px 10px;
}

.employee-order-cart-form .wide,
.employee-cart-actions {
  grid-column: 1 / -1;
}

.employee-cart-actions {
  margin-top: 0;
}

.employee-invoice-status,
.admin-order-invoice-note {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(29, 156, 92, 0.18);
  border-radius: 8px;
  background: #eef8f3;
}

.employee-invoice-status strong,
.admin-order-invoice-note strong {
  color: #167044;
  font-size: 12px;
  font-weight: 950;
}

.employee-invoice-status span,
.admin-order-invoice-note span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.employee-invoice-status small,
.admin-order-invoice-note small {
  color: #60717f;
  font-size: 10.5px;
  font-weight: 800;
}

.invoice-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 16mm;
  box-shadow: none;
}

.invoice-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.invoice-brand {
  font-size: 24px;
  font-weight: 950;
  color: var(--blue-dark);
}

.invoice-box {
  padding: 12px;
  border-radius: 8px;
  background: #eef3f6;
}

.invoice-box h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid #7f8e98;
  padding: 7px;
  text-align: right;
}

.invoice-table th {
  background: #edf3f7;
}

.invoice-footer {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}

.invoice-totals {
  display: grid;
  gap: 8px;
  font-size: 18px;
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.invoice-totals strong {
  direction: ltr;
  font-size: 24px;
}

.rows-count {
  border: 2px solid #17212b;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 950;
}

.invoice-actions {
  position: sticky;
  top: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

@media print {
  body {
    background: #fff;
  }

  .invoice-actions {
    display: none;
  }

  .invoice-sheet {
    width: auto;
    min-height: auto;
    border: 0;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-layout,
  .cart-page,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-chart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-trending-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    background: #fff;
  }

  .auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 16px;
    background:
      radial-gradient(circle at 88% 92%, rgba(241, 139, 47, 0.95), rgba(241, 139, 47, 0) 30%),
      linear-gradient(155deg, #095a9d 0%, #0b64aa 52%, #477b98 76%, #d9893f 100%);
  }

  .auth-hero {
    display: none;
  }

  .auth-card {
    margin: 0;
    padding: 14px;
    border-radius: 10px;
  }

  .auth-login-stack::before {
    font-size: 142px;
  }

  .field-label,
  .auth-card .primary,
  .subscribe-link {
    font-size: 15px;
  }

  .phone-login-field {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .saved-phone-picker summary,
  .login-input input {
    font-size: 15px;
  }

  .store-layout {
    display: block;
    padding-bottom: 74px;
  }

  .market-layout,
  .market-top {
    max-width: none;
    box-shadow: none;
  }

  .market-bottom {
    width: 100%;
  }

  .side-nav {
    display: none;
  }

  .workspace {
    padding: 10px;
  }

  .employee-brand-hero {
    display: grid;
    padding: 13px;
  }

  .employee-brand-hero strong {
    font-size: 23px;
  }

  .employee-brand-hero p {
    max-width: none;
  }

  .employee-product-row {
    grid-template-columns: 1fr;
  }

  .employee-product-prices {
    justify-content: flex-start;
  }

  .top-bar {
    grid-template-columns: 1fr auto;
    margin-bottom: 10px;
    border-radius: 0;
    border-inline: 0;
    border-top: 0;
    box-shadow: none;
  }

  .top-bar .secondary {
    min-width: 72px;
  }

  .admin-top-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-top-bar > .top-brand-lockup {
    grid-column: auto;
  }

  .customer-top-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 0 0 10px;
  }

  .customer-top-bar > .top-brand-lockup {
    grid-column: auto;
  }

  .admin-info-strip {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  .section-title {
    min-height: 142px;
    display: grid;
    padding: 19px;
  }

  .section-title h1 {
    font-size: 34px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .compact-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .missing-product-fields {
    grid-template-columns: 1fr;
  }

  .missing-product-form .primary {
    width: 100%;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .cart-page {
    gap: 12px;
  }

  .cart-overview {
    padding: 13px;
  }

  .cart-overview-head {
    align-items: stretch;
  }

  .cart-overview-head h1 {
    font-size: 22px;
  }

  .cart-progress-list {
    grid-template-columns: 1fr;
  }

  .cart-item-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px;
  }

  .cart-item-card .cart-qty {
    grid-column: auto;
    justify-content: end;
    grid-template-columns: 28px 34px 28px;
  }

  .cart-thumb {
    width: 48px;
    height: 48px;
  }

  .cart-summary-card {
    position: static;
    margin-bottom: 82px;
    border-radius: 14px;
  }

  .saved-order-actions {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 70px 1fr;
  }

  .cart-line .qty-control {
    grid-column: 1 / -1;
  }

  .two-fields,
  .price-fields,
  .product-category-options,
  .checks {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-status-strip,
  .admin-chart-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-trending-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-motivation {
    grid-template-columns: 1fr;
    min-height: 132px;
    padding: 16px;
  }

  .admin-motivation b {
    display: none;
  }

  .admin-motivation h1 {
    font-size: 20px;
  }

  .admin-motivation p {
    font-size: 12px;
    line-height: 1.55;
  }

  .admin-daily-attendance {
    padding: 10px;
  }

  .admin-daily-attendance-head {
    align-items: stretch;
  }

  .admin-daily-attendance-stats {
    width: 100%;
  }

  .admin-daily-attendance-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .admin-daily-attendance-row > b {
    justify-self: start;
  }

  .bank-watch-card {
    gap: 8px;
  }

  .bank-watch-title {
    font-size: 19px;
    padding-inline: 2px;
  }

  .bank-watch-toolbar {
    gap: 6px;
  }

  .cheque-add-btn {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .cheque-table th,
  .cheque-table td {
    padding: 5px 1px;
    font-size: 10px;
    line-height: 1.25;
  }

  .cheque-table .cheque-month-row td {
    padding: 6px 5px;
  }

  .cheque-month-row div {
    gap: 5px;
  }

  .cheque-month-row span {
    font-size: 10.5px;
  }

  .cheque-month-row strong {
    min-width: 84px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .cheque-table th:first-child,
  .cheque-table td:first-child {
    width: 24%;
    padding-inline: 1px 5px;
  }

  .cheque-table th:nth-child(2),
  .cheque-table td:nth-child(2) {
    width: 24%;
    padding-inline: 1px 3px;
  }

  .cheque-table th:nth-child(3),
  .cheque-table td:nth-child(3) {
    width: 17%;
    padding-inline: 1px;
  }

  .cheque-table th:last-child,
  .cheque-table td:last-child {
    width: 34%;
    padding-inline: 1px;
  }

  .cheque-table td:first-child::before {
    top: 7px;
    bottom: 7px;
    inset-inline-end: 0;
    width: 2px;
  }

  .cheque-table th {
    font-size: 10px;
  }

  .cheque-table input {
    border-radius: 6px;
    padding: 4px 1px;
    font-size: 9.5px;
  }

  .cheque-month-card-head {
    align-items: flex-start;
    padding: 9px;
  }

  .cheque-month-title {
    gap: 7px;
  }

  .cheque-month-toggle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
  }

  .cheque-month-card-head strong {
    font-size: 14px;
  }

  .cheque-month-card-head small {
    min-width: 76px;
    font-size: 9.5px;
  }

  .cheque-month-summary {
    padding: 8px 9px;
    font-size: 10px;
  }

  .cheque-entry-form {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 8px;
  }

  .cheque-entry-form button {
    grid-column: 1 / -1;
  }

  .cheque-read-actions {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cheque-date-field {
    position: relative;
    min-height: 28px;
  }

  .cheque-date-trigger {
    width: 100%;
    min-height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #dce8f0;
    border-radius: 6px;
    background: #fbfdff;
    color: #263746;
    font: inherit;
    font-size: 8.7px;
    font-weight: 850;
    letter-spacing: -0.2px;
    cursor: pointer;
  }

  .cheque-date-field input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
  }

  .cheque-amount-cell {
    grid-template-columns: minmax(0, 1fr) 25px 18px;
    gap: 2px;
  }

  .cheque-paid-btn {
    min-height: 26px;
    width: 100%;
    padding: 1px;
    border-radius: 6px;
    font-size: 8px;
  }

  .cheque-delete-btn {
    min-height: 26px;
    width: 100%;
    padding: 1px;
    border-radius: 6px;
    font-size: 12px;
  }

  .admin-action-card {
    min-height: 112px;
  }

  .data-row {
    grid-template-columns: 62px 1fr;
  }

  .data-thumb {
    width: 62px;
    height: 62px;
  }

  .data-row .row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .row-actions button {
    flex: 1;
  }

  .product-admin-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 4px 0;
  }

  .product-admin-thumb {
    width: 34px;
    height: 34px;
  }

  .product-admin-row .row-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .product-admin-row .row-actions button {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .customers-clean-title {
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
  }

  .customers-clean-title h1 {
    font-size: 20px;
  }

  .products-admin-title {
    min-height: 50px;
    padding: 8px 12px;
  }

  .products-admin-title h1 {
    font-size: 21px;
  }

  .customer-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px;
  }

  .customer-row .row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .customer-row h3 {
    font-size: 13px;
  }

  .customer-row small {
    font-size: 10.5px;
  }

  .customer-row .row-actions button {
    min-height: 28px;
    padding: 5px 7px;
    font-size: 10.5px;
  }

  .customer-permissions-mini span {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .admin-order-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .admin-order-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-order-card .row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-order-details {
    padding: 8px;
  }

  .employees-grid {
    grid-template-columns: 1fr;
  }

  .employee-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  .employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
  }

  .employee-row .row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .employee-row .row-actions button {
    flex: 1;
    min-height: 25px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .employee-card-meta span {
    max-width: 132px;
  }

  .employee-permissions-mini span {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 25;
    height: 68px;
    width: min(100%, 520px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(31, 95, 139, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
    box-shadow: 0 -10px 24px rgba(18, 61, 92, 0.13);
  }

  .admin-bottom-nav {
    height: 68px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    border-top-color: rgba(31, 95, 139, 0.18);
    background: #ffffff;
    box-shadow: 0 -6px 18px rgba(18, 61, 92, 0.11);
  }

  .employee-bottom-nav {
    height: 68px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    gap: 0;
    border-top: 1px solid rgba(31, 95, 139, 0.18);
    background: #ffffff;
    box-shadow: 0 -6px 18px rgba(18, 61, 92, 0.11);
  }

  .admin-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .bottom-nav button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #31536c;
    font-size: 12px;
    font-weight: 900;
  }

  .admin-bottom-nav button {
    min-width: 0;
    gap: 3px;
    padding: 0 2px;
    border-inline-end: 0;
    color: var(--blue-dark);
    font-size: 11px;
    line-height: 1.15;
  }

  .employee-bottom-nav button {
    min-width: 0;
    height: 68px;
    gap: 3px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue-dark);
    font-size: 12px;
    line-height: 1.1;
  }

  .bottom-nav b {
    min-height: 23px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 21px;
    line-height: 1;
  }

  .admin-bottom-nav b {
    min-height: 23px;
    color: var(--blue);
    font-size: 19px;
  }

  .admin-bottom-nav .admin-nav-svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .employee-bottom-nav b {
    width: auto;
    height: auto;
    min-height: 23px;
    border-radius: 0;
    background: transparent;
    color: var(--blue);
    font-size: 20px;
  }

  .employee-bottom-nav .employee-nav-svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .admin-bottom-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employee-bottom-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
  }

  .bottom-nav button.active {
    color: var(--blue-dark);
    background: rgba(31, 95, 139, 0.08);
  }

  .bottom-nav button.active::before {
    content: "";
    position: absolute;
    top: 7px;
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #f18b2f;
  }

  .admin-bottom-nav button.active {
    color: var(--blue-dark);
    background: rgba(31, 95, 139, 0.07);
  }

  .admin-bottom-nav button.active::before {
    top: 6px;
    background: #f18b2f;
    box-shadow: 0 1px 5px rgba(241, 139, 47, 0.24);
  }

  .employee-bottom-nav button.active {
    color: var(--blue-dark);
    background: rgba(31, 95, 139, 0.07);
  }

  .employee-bottom-nav button.active::before {
    top: 6px;
    height: 2px;
    background: #f18b2f;
    box-shadow: 0 1px 5px rgba(241, 139, 47, 0.24);
  }

  .employee-bottom-nav button.active b {
    background: transparent;
    color: #0b64aa;
  }

  .bottom-nav button.active b,
  .admin-bottom-nav button.active b {
    color: #0b64aa;
  }

  .admin-people-popover {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 74px;
    z-index: 21;
    width: min(calc(100% - 20px), 500px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid #d9e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 -16px 34px rgba(16, 47, 72, 0.16);
  }

  .admin-people-popover button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #eef7fc;
    color: var(--blue-dark);
    font-weight: 900;
  }

  .admin-people-popover button.active {
    border-color: rgba(241, 139, 47, 0.4);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
  }
}

/* Unified textual action buttons */
#app .btn {
  --btn-height: 46px;
  min-width: 0;
  max-width: 100%;
  min-height: var(--btn-height);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 61, 92, 0.14);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

#app button.btn.btn-compact {
  height: auto;
  --btn-height: 40px;
  padding-inline: 12px;
  border-radius: 9px;
  font-size: 13px;
}

#app .btn-block {
  width: 100%;
}

#app button.btn.btn-primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), #0b64aa);
  color: #fff;
}

#app button.btn.btn-secondary,
#app label.btn.btn-secondary {
  border-color: var(--blue);
  background: #f4f8fb;
  color: var(--blue);
  box-shadow: 0 6px 14px rgba(18, 61, 92, 0.1);
}

#app button.btn.btn-danger {
  border-color: #d92d20;
  background: #d92d20;
  color: #fff;
}

#app button.btn.btn-success {
  border-color: #008f45;
  background: #008f45;
  color: #fff;
}

#app button.btn.btn-loading,
#app button.btn.btn-disabled,
#app button.btn.btn-primary:disabled,
#app button.btn.btn-secondary:disabled,
#app button.btn.btn-danger:disabled,
#app button.btn.btn-success:disabled {
  border-color: #d6dee4;
  background: #d6dee4;
  color: #647580;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

#app button.btn.btn-loading {
  cursor: wait;
}

#app button.btn:focus-visible,
#app label.btn:focus-within {
  outline: 3px solid rgba(31, 95, 139, 0.22);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  #app button.btn.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #236b9c, #0a5895);
    box-shadow: 0 10px 22px rgba(31, 95, 139, 0.24);
    transform: translateY(-1px);
  }

  #app button.btn.btn-secondary:hover:not(:disabled),
  #app label.btn.btn-secondary:hover {
    background: #eaf3f8;
    box-shadow: 0 8px 18px rgba(18, 61, 92, 0.14);
    transform: translateY(-1px);
  }

  #app button.btn.btn-danger:hover:not(:disabled) {
    border-color: #bd251b;
    background: #bd251b;
    box-shadow: 0 10px 22px rgba(185, 37, 27, 0.2);
    transform: translateY(-1px);
  }
}

#app button.btn:not(:disabled):active,
#app label.btn:active {
  box-shadow: 0 4px 10px rgba(18, 61, 92, 0.14);
  transform: translateY(1px);
}

@media (max-width: 640px) {
  #app .btn {
    --btn-height: 46px;
    padding-inline: 14px;
    font-size: 14px;
  }

  #app button.btn.btn-compact {
    --btn-height: 40px;
    padding-inline: 10px;
    font-size: 12.5px;
  }
}

.admin-products-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-products-actions > button {
  flex: 1 1 190px;
}

.category-card {
  position: relative;
}

.category-card.category-card-hidden {
  opacity: 0.68;
  border-style: dashed;
}

.category-card > i {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: #4b5f75;
  font-size: 10px;
  font-style: normal;
}

.category-manager {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #fff;
}

.category-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.category-manager-head h2,
.category-manager-head p {
  margin: 0;
}

.category-manager-head p {
  margin-top: 5px;
  color: #5e7185;
  font-size: 13px;
}

.category-manager-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px auto auto;
  gap: 10px;
  align-items: end;
  padding-block: 14px;
  border-block: 1px solid #e4ebf2;
}

.category-manager-form label {
  display: grid;
  gap: 6px;
  color: #263d55;
  font-size: 13px;
  font-weight: 700;
}

.category-manager-form input,
.category-manager-form select,
.category-transfer-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd9e6;
  border-radius: 7px;
  background: #fff;
  color: #15334f;
  padding: 8px 11px;
  font: inherit;
}

.category-manager-list {
  display: grid;
}

.category-manager-row {
  display: grid;
  grid-template-columns: 48px minmax(150px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 2px;
  border-bottom: 1px solid #e7edf3;
}

.category-manager-row:last-child {
  border-bottom: 0;
}

.category-manager-row.is-hidden {
  opacity: 0.68;
}

.category-manager-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #edf5fc;
  color: #0b5fa5;
  font-size: 24px;
}

.category-manager-copy {
  min-width: 0;
}

.category-manager-copy strong,
.category-manager-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.category-manager-copy strong {
  color: #17344e;
  font-size: 15px;
}

.category-manager-copy small {
  margin-top: 3px;
  color: #667b90;
  font-size: 12px;
}

.category-manager-order,
.category-manager-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.category-manager .btn-icon {
  width: 38px;
  min-width: 38px;
  padding-inline: 0;
}

.category-transfer-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f0c9c9;
  border-radius: 8px;
  background: #fff7f7;
}

.category-transfer-panel strong {
  color: #9e2b2b;
}

.category-transfer-panel span {
  color: #5e4d4d;
  font-size: 13px;
}

.category-transfer-panel > div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .category-manager {
    padding: 14px;
  }

  .category-manager-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-manager-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .category-manager-order,
  .category-manager-actions {
    grid-column: 1 / -1;
  }

  .category-manager-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-manager-actions .btn {
    min-width: 0;
    padding-inline: 7px;
    white-space: nowrap;
  }
}

/* Product add/edit form */
.product-admin-form {
  --product-form-blue: #1f5f8b;
  --product-form-blue-dark: #173f5f;
  --product-form-orange: #f18b2f;
  position: relative;
  overflow: visible;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
}

.product-form-heading {
  padding-block-end: 10px;
  border-block-end: 2px solid #e2edf4;
}

.product-form-heading h2,
.product-admin-form .product-form-section h3 {
  margin: 0;
  color: var(--product-form-blue-dark);
  letter-spacing: 0;
}

.product-form-heading h2 {
  font-size: 21px;
  font-weight: 950;
}

.product-identity-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(250px, 1.1fr);
  align-items: center;
  gap: 12px;
}

.product-admin-form .product-form-image-uploader {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 82px;
  gap: 10px;
  padding: 8px;
  border: 1px dashed #9ebed2;
  border-radius: 8px;
  background: #f8fbfd;
  box-shadow: none;
}

.product-admin-form .product-form-image-uploader:hover {
  border-color: var(--product-form-blue);
  background: #f2f8fc;
}

.product-admin-form .product-upload-preview {
  width: 72px;
  height: 72px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(18, 45, 65, 0.08);
}

.product-image-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.product-image-copy strong,
.product-image-copy small {
  display: block;
}

.product-image-action {
  align-self: center;
  padding: 7px 9px;
  border: 1px solid #bed4e2;
  border-radius: 7px;
  background: #fff;
  color: var(--product-form-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.product-name-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--product-form-blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.product-name-field input {
  min-height: 46px;
  font-size: 15px;
  font-weight: 750;
}

.product-admin-form .product-form-section {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.product-admin-form .product-form-section h3 {
  font-size: 15px;
  font-weight: 950;
}

.product-category-selector {
  position: relative;
  min-width: 0;
}

.product-category-selector summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid #cbdde8;
  border-radius: 8px;
  background: #fff;
  color: var(--product-form-blue-dark);
  cursor: pointer;
  list-style: none;
}

.product-category-selector summary::-webkit-details-marker {
  display: none;
}

.product-category-selector summary:focus-visible {
  outline: 3px solid rgba(31, 95, 139, 0.2);
  outline-offset: 2px;
}

.product-category-selector[open] summary {
  border-color: var(--product-form-blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.1);
}

.product-category-current-icon,
.product-category-choice > span {
  display: grid;
  place-items: center;
  background: #eaf4fa;
  color: var(--product-form-blue);
  font-weight: 950;
}

.product-category-current-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 15px;
}

.product-category-selector summary strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.product-category-chevron {
  color: var(--product-form-blue);
  font-size: 18px;
  text-align: center;
  transition: transform 160ms ease;
}

.product-category-selector[open] .product-category-chevron {
  transform: rotate(180deg);
}

.product-category-popover {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline: 0;
  z-index: 25;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbdde8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(18, 45, 65, 0.16);
}

.product-category-search {
  display: grid;
  gap: 5px;
  color: var(--product-form-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.product-category-search input {
  min-height: 42px;
  padding-inline: 11px;
}

.product-admin-form .product-category-options {
  max-height: 226px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding-inline-end: 2px;
  overscroll-behavior: contain;
}

.product-category-choice {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #20384c;
  cursor: pointer;
}

.product-category-choice[hidden] {
  display: none;
}

.product-category-choice:hover {
  background: #f2f8fc;
}

.product-category-choice.active,
.product-category-choice:has(input:checked) {
  border-color: #9ebed2;
  background: #eaf4fa;
}

.product-category-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-category-choice > span {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 13px;
}

.product-category-choice b {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.product-category-empty {
  margin: 0;
  padding: 12px;
  color: #6e7d88;
  font-size: 12px;
  text-align: center;
}

.product-admin-form .product-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-price-fields > label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--product-form-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.product-money-field {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  direction: ltr;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.product-money-field:focus-within {
  border-color: var(--product-form-blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.1);
}

.product-money-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  direction: ltr;
  text-align: left;
}

.product-money-field input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.product-money-field b {
  position: static;
  display: grid;
  place-items: center;
  border-inline-start: 1px solid #dbe6ed;
  background: #f3f7fa;
  color: #647b8d;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.product-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-switch-row {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  color: var(--product-form-blue-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-switch-row > span:first-child {
  min-width: 0;
  line-height: 1.35;
}

.product-switch-control {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 24px;
  display: block;
}

.product-switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-switch-control i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aebbc4;
  transition: background 160ms ease;
}

.product-switch-control i::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(18, 45, 65, 0.22);
  transition: transform 160ms ease;
}

.product-switch-control input:checked + i {
  background: var(--product-form-blue);
}

.product-switch-control input:checked + i::after {
  transform: translateX(-18px);
}

.product-switch-control input:focus-visible + i {
  outline: 3px solid rgba(31, 95, 139, 0.22);
  outline-offset: 2px;
}

.product-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.product-form-actions .btn {
  min-height: 48px;
}

.product-form-submit {
  width: 100%;
}

.product-form-cancel {
  min-width: 100px;
}

@media (max-width: 760px) {
  .product-admin-form {
    gap: 10px;
    padding: 12px;
  }

  .product-form-heading h2 {
    font-size: 19px;
  }

  .product-identity-section {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .product-admin-form .product-form-image-uploader {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    min-height: 74px;
    gap: 8px;
    padding: 5px;
  }

  .product-admin-form .product-upload-preview {
    width: 64px;
    height: 64px;
  }

  .product-image-action {
    padding-inline: 7px;
    font-size: 11px;
  }

  .product-admin-form .product-form-section {
    padding: 10px;
  }

  .product-admin-form .product-price-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-switches {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-switch-row {
    min-height: 44px;
  }

  .product-form-actions {
    position: static;
    padding-block-start: 4px;
  }

  .product-form-actions .btn {
    min-height: 50px;
  }
}

@media (max-width: 370px) {
  .product-admin-form .product-form-image-uploader {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .product-admin-form .product-upload-preview {
    width: 60px;
    height: 60px;
    grid-row: 1 / span 2;
  }

  .product-image-action {
    grid-column: 2;
    justify-self: start;
  }

  .product-price-fields > label {
    font-size: 11px;
  }

  .product-form-cancel {
    min-width: 84px;
  }
}
