body {
  margin: 0;
  background: #f5f7f3;
  color: #202720;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root {
  --brand-pink: #e6008a;
  --brand-purple: #4b236a;
  --brand-purple-dark: #321047;
  --brand-pink-soft: #fff1f8;
  --brand-purple-soft: #f4eef8;
}

a { color: #236a49; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #dfe7dc;
  box-shadow: 0 2px 10px rgba(30, 48, 32, .04);
}

.brand {
  font-weight: 800;
  color: #174a32;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
}

.topbar nav a,
.userbox a,
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #cfdccd;
  background: #fff;
  color: #1f3d2f;
  font-weight: 650;
}

.topbar nav a:hover,
.btn:hover { background: #edf6ed; text-decoration: none; }

.topbar nav .nav-pill {
  --nav-accent: #2f7d57;
  --nav-bg: #eef7f2;
  gap: 7px;
  padding: 0 11px 0 8px;
  border-color: color-mix(in srgb, var(--nav-accent) 28%, #dfe7dc);
  background: linear-gradient(180deg, #fff 0%, var(--nav-bg) 100%);
  color: #26322b;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .62);
  white-space: nowrap;
}

.topbar nav .nav-pill-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: var(--nav-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.topbar nav .nav-pill:hover,
.topbar nav .nav-pill.is-active {
  border-color: var(--nav-accent);
  background: var(--nav-bg);
  color: #17231b;
  transform: translateY(-1px);
}

.topbar nav .nav-pill.is-active {
  box-shadow: inset 0 -3px 0 var(--nav-accent), 0 5px 14px rgba(30, 48, 32, .08);
}

.topbar nav .nav-create { --nav-accent: #e6008a; --nav-bg: #fff1f8; }
.topbar nav .nav-board { --nav-accent: #2f7d57; --nav-bg: #eef8f2; }
.topbar nav .nav-orders { --nav-accent: #3573b8; --nav-bg: #eef5ff; }
.topbar nav .nav-customers { --nav-accent: #7750a6; --nav-bg: #f5f0fb; }
.topbar nav .nav-loyalty { --nav-accent: #c07a24; --nav-bg: #fff6e9; }
.topbar nav .nav-showcase { --nav-accent: #b83f73; --nav-bg: #fff0f6; }
.topbar nav .nav-items { --nav-accent: #6b7c2f; --nav-bg: #f5f8e9; }
.topbar nav .nav-receipts { --nav-accent: #227c84; --nav-bg: #ecf9fa; }
.topbar nav .nav-reports { --nav-accent: #805c2f; --nav-bg: #f8f1e8; }
.topbar nav .nav-settings { --nav-accent: #4b5563; --nav-bg: #f3f4f6; }
.topbar nav .nav-courier { --nav-accent: #2f7d57; --nav-bg: #eef8f2; }

.userbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526255;
  white-space: nowrap;
  font-size: 14px;
}

.header-logo {
  max-width: 112px;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.page-wide { max-width: 1560px; }

h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 { font-size: 20px; margin: 22px 0 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.panel,
.card {
  background: #fff;
  border: 1px solid #dce5da;
  border-radius: 8px;
  padding: 14px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.table-actions .btn {
  min-height: 32px;
  padding: 0 9px;
  font-size: 13px;
  border-radius: 6px;
}

.delete-confirm {
  max-width: 620px;
}

.muted { color: #66736a; }
.small { font-size: 13px; }
.total { font-size: 24px; font-weight: 800; }
.card-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  background: #dfeadf;
  color: #214b35;
  font-weight: 800;
  vertical-align: middle;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
  flex: 0 0 28px;
}

.preview-logo {
  display: block;
  max-width: 180px;
  max-height: 110px;
  margin-bottom: 8px;
  object-fit: contain;
}

.assistant-preview {
  border-radius: 8px;
}

.assistant-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.assistant-strip img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.quick-order-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  min-width: 0;
  overflow: hidden;
}

.quick-order-meta,
.quick-order-grid,
.quick-order-delivery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 7px;
  min-width: 0;
}

.quick-order-meta {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1eb;
}

.quick-order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.quick-order-section {
  display: grid;
  gap: 8px;
  padding: 7px 0 9px 10px;
  border-left: 3px solid #eadced;
  border-top: 1px solid #edf1eb;
  min-width: 0;
  overflow: hidden;
}

.quick-order-section:first-child {
  padding-top: 8px;
}

.quick-order-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-order-section-head span {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-purple);
  color: #fff;
  font-weight: 900;
}

.quick-order-section-head h2 {
  margin: 0;
  color: var(--brand-purple-dark);
  font-size: 18px;
}

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

.customer-lookup-result {
  display: none;
  grid-column: 1 / -1;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(75, 35, 106, .18);
  border-radius: 7px;
  background: var(--brand-pink-soft);
  color: #5b405f;
  font-size: 13px;
}

.customer-lookup-result.is-visible {
  display: grid;
}

.customer-lookup-result strong {
  color: var(--brand-purple-dark);
  font-size: 14px;
}

.quick-order-hint {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  font-size: 12px;
  color: #66736a;
}

.customer-lookup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-lookup-list button {
  min-height: 36px;
  display: inline-grid;
  justify-items: start;
  gap: 2px;
  padding: 5px 10px;
  text-align: left;
}

.customer-lookup-list button span {
  font-size: 12px;
  font-weight: 650;
  color: #66736a;
}

.quick-client-more-btn {
  align-self: end;
}

.quick-client-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(75, 35, 106, .2);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: #202720;
  box-shadow: 0 24px 80px rgba(35, 28, 38, .25);
}

.quick-client-dialog::backdrop {
  background: rgba(25, 32, 28, .36);
}

.quick-client-dialog-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quick-client-dialog-head h2 {
  margin: 0;
  color: var(--brand-purple-dark);
  font-size: 20px;
}

.quick-order-big,
.quick-order-amount {
  min-height: 44px;
  border-color: rgba(230, 0, 138, .34);
  background: #fffafd;
  font-size: 17px;
  font-weight: 800;
}

.quick-order-task {
  min-height: 72px;
  border-color: rgba(75, 35, 106, .24);
  background: #fffbfd;
  font-size: 15px;
}

.quick-items-picker {
  display: grid;
  grid-template-columns: minmax(min(220px, 100%), 1fr) auto auto auto;
  gap: 7px;
  align-items: end;
  min-width: 0;
}

.quick-order-items-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-order-items-table {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  table-layout: fixed;
}

.quick-order-items-table th,
.quick-order-items-table td {
  padding: 5px;
}

.quick-order-items-table input,
.quick-order-items-table button {
  min-height: 34px;
  padding: 6px 8px;
}

.quick-order-items-table th:nth-child(2),
.quick-order-items-table th:nth-child(3),
.quick-order-items-table th:nth-child(4),
.quick-order-items-table th:nth-child(5),
.quick-order-items-table td:nth-child(2),
.quick-order-items-table td:nth-child(3),
.quick-order-items-table td:nth-child(4),
.quick-order-items-table td:nth-child(5) {
  width: 64px;
}

.quick-order-items-table th:last-child,
.quick-order-items-table td:last-child {
  width: 58px;
}

.quick-order-items-table button {
  width: 100%;
  padding: 4px;
  font-size: 12px;
}

.quick-items-tools {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, .8fr) minmax(110px, .7fr) auto minmax(220px, 1.3fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #dfe7dc;
  border-radius: 8px;
  background: #f8faf6;
}

.quick-items-tools label {
  margin: 0;
  font-size: 12px;
  color: #526255;
}

.quick-items-tools input,
.quick-items-tools select {
  min-height: 34px;
  padding: 6px 8px;
}

.quick-items-tools button {
  min-height: 34px;
  padding: 0 12px;
}

.quick-items-table th,
.quick-items-table td {
  padding: 7px 6px;
  vertical-align: middle;
}

.quick-items-table th:first-child,
.quick-items-table td:first-child,
.quick-items-table th:nth-child(2),
.quick-items-table td:nth-child(2) {
  width: 58px;
  text-align: center;
}

.quick-items-table input,
.quick-items-table select {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.quick-items-table input:not([type="checkbox"]):not([type="file"]) {
  min-width: 72px;
  width: 100%;
}

.quick-items-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0 auto;
  accent-color: var(--brand-pink);
}

.quick-items-table input[type="file"] {
  max-width: 150px;
  min-height: 32px;
  padding: 4px;
  font-size: 12px;
}

.quick-item-preview {
  width: 50px;
}

.quick-item-preview img,
.quick-item-preview span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f5f1;
  object-fit: cover;
  font-size: 20px;
}

.quick-order-check {
  width: fit-content;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #dce5da;
  border-radius: 7px;
  background: #fbfdfb;
}

.quick-order-check input {
  width: auto;
  min-height: auto;
}

.quick-order-wide {
  grid-column: 1 / -1;
}

.quick-delivery-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px dashed rgba(75, 35, 106, .35);
  border-radius: 7px;
  background: var(--brand-purple-soft);
  color: var(--brand-purple-dark);
  font-size: 13px;
  font-weight: 800;
}

.quick-delivery-add {
  align-self: end;
}

.quick-order-grid-pay {
  grid-template-columns: minmax(min(220px, 100%), 1.15fr) repeat(2, minmax(min(160px, 100%), 1fr));
}

.quick-order-more {
  border-top: 1px dashed #dce5da;
  padding-top: 8px;
}

.quick-order-more summary {
  width: fit-content;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce5da;
  border-radius: 7px;
  background: #fff;
  color: #214b35;
  cursor: pointer;
  font-weight: 800;
}

.quick-order-more[open] summary {
  margin-bottom: 8px;
}

.quick-order-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -12px -12px;
  padding: 10px 12px;
  border-top: 1px solid #dce5da;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -10px 26px rgba(25, 41, 30, .07);
}

.public-home,
.login-page {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(250,244,250,.94)),
    radial-gradient(circle at 14% 16%, rgba(230, 0, 138, .18), transparent 34%),
    radial-gradient(circle at 86% 74%, rgba(75, 35, 106, .18), transparent 34%);
}

.login-page > h1 { display: none; }

.public-home > h1 { display: none; }

.visit-card {
  width: min(1080px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .75fr);
  gap: 26px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(75, 35, 106, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 80px rgba(75, 35, 106, .13);
}

.visit-card-brand {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 420px;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,241,248,.94)),
    linear-gradient(160deg, rgba(230,0,138,.08), rgba(75,35,106,.08));
}

.visit-logo-wide {
  width: min(100%, 640px);
  max-height: 210px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.visit-card-brand p {
  max-width: 560px;
  margin: 0;
  color: #4f3f57;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-primary {
  border-color: var(--brand-pink);
  background: var(--brand-pink);
  color: #fff;
}

.brand-primary:hover {
  background: #cf007c;
  text-decoration: none;
}

.brand-secondary {
  border-color: rgba(75,35,106,.18);
  background: var(--brand-purple);
  color: #fff;
}

.brand-secondary:hover {
  background: var(--brand-purple-dark);
  text-decoration: none;
}

.visit-contacts {
  display: grid;
  gap: 12px;
  align-content: center;
}

.visit-contact {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(75,35,106,.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(75, 35, 106, .07);
}

.visit-contact strong {
  color: var(--brand-purple-dark);
  font-size: 18px;
}

.visit-contact span,
.visit-contact a {
  color: #655a68;
  font-size: 15px;
  line-height: 1.35;
}

.visit-contact a {
  width: fit-content;
  color: var(--brand-pink);
  font-weight: 850;
}

.developer-footer {
  width: min(1080px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(75, 35, 106, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: #655a68;
  box-shadow: 0 10px 28px rgba(75, 35, 106, .06);
  font-size: 13px;
  line-height: 1.35;
}

.developer-footer strong {
  color: var(--brand-purple-dark);
  font-size: 14px;
}

.developer-footer a {
  width: fit-content;
  color: var(--brand-purple);
  font-weight: 750;
}

.login-shell {
  width: min(1040px, calc(100vw - 32px));
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(320px, .8fr);
  overflow: hidden;
  border: 1px solid rgba(210, 222, 207, .9);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 80px rgba(34, 53, 38, .14);
}

.login-brand {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 34px;
  background:
    linear-gradient(160deg, rgba(75, 35, 106, .94), rgba(230, 0, 138, .72)),
    url("https://floverc.cfmir-info.ru/index.php");
  color: #fff;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 44%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.login-brand-top,
.login-assistant {
  position: relative;
  z-index: 1;
}

.login-logo {
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.16));
}

.login-logo-text {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.login-assistant {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(8px);
}

.login-assistant img,
.floreya-mark {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  color: #225a3d;
  flex: 0 0 auto;
}

.floreya-mark {
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
}

.login-assistant span {
  display: block;
  opacity: .82;
  font-size: 14px;
  margin-bottom: 4px;
}

.login-assistant strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
}

.login-card {
  display: grid;
  align-content: center;
  padding: 42px;
  background: rgba(255,255,255,.94);
}

.login-card form {
  display: grid;
  gap: 18px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  color: var(--brand-purple-dark);
}

.login-card label {
  font-size: 15px;
}

.login-card input,
.login-card select {
  min-height: 52px;
  border-color: #e0cfe8;
  background: #fbfdfb;
  font-size: 17px;
}

.login-card textarea {
  border-color: #e0cfe8;
  background: #fbfdfb;
}

.login-card .check-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.login-card .check-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 3px;
}

.messenger-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.messenger-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 800;
}

.messenger-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #e0cfe8;
  border-radius: 8px;
  background: #fbfdfb;
  cursor: pointer;
}

.messenger-choice input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.messenger-choice span {
  font-size: 16px;
  font-weight: 900;
  color: var(--brand-purple-dark);
}

.messenger-choice p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6e6170;
  font-size: 13px;
  line-height: 1.35;
}

.loyalty-messenger-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.loyalty-messenger-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(75, 35, 106, .14);
  border-radius: 8px;
  background: #fff9fc;
}

.loyalty-messenger-card strong {
  color: var(--brand-purple-dark);
}

.loyalty-messenger-card span {
  color: #66736a;
  font-size: 13px;
}

.loyalty-messenger-card code {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f4eef8;
  color: var(--brand-purple-dark);
  font-size: 12px;
}

.login-submit {
  border-color: var(--brand-pink);
  background: var(--brand-pink);
}

.login-submit {
  min-height: 54px;
  width: 100%;
  margin-top: 4px;
  font-size: 17px;
}

.loyalty-register-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e0cfe8;
  border-radius: 8px;
  background: #fff7fc;
  color: var(--brand-purple-dark);
  text-decoration: none;
}

.loyalty-register-card span {
  color: #6e6170;
  font-size: 14px;
  font-weight: 700;
}

.loyalty-register-card strong {
  color: var(--brand-pink);
  font-size: 18px;
  line-height: 1.2;
}

.loyalty-resend-form {
  margin-top: 10px;
}

.loyalty-resend-form .btn {
  width: 100%;
  justify-content: center;
}

.connect-card {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #e0cfe8;
  border-radius: 8px;
  background: #fff8fc;
  color: var(--brand-purple-dark);
}

.connect-card p {
  margin: 0;
  color: #66736a;
  font-size: 14px;
}

.copy-command {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f4eef8;
  color: var(--brand-purple-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.client-contacts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eadced;
}

.client-contacts h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--brand-purple-dark);
}

.client-contacts-list {
  display: grid;
  gap: 10px;
}

.client-contact {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #eadced;
  border-radius: 8px;
  background: #fffbfd;
}

.client-contact strong {
  color: var(--brand-purple-dark);
  font-size: 15px;
}

.client-contact span,
.client-contact a {
  color: #5f6b63;
  font-size: 14px;
  line-height: 1.35;
}

.client-contact a {
  width: fit-content;
  color: var(--brand-pink);
  font-weight: 800;
  text-decoration: none;
}

label {
  display: grid;
  gap: 6px;
  color: #47544b;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #cbd8ca;
  border-radius: 7px;
  background: #fff;
  color: #17251c;
  font: inherit;
}

textarea { min-height: 92px; resize: vertical; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

button,
.primary {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: #2f7d57;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button.secondary,
.btn.secondary { background: #ffffff; color: #214b35; border: 1px solid #cbd8ca; }
button.danger,
.btn.danger { background: #b83a34; color: #fff; border: 0; }

.flash {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cfe0cd;
  background: #eaf6ea;
}

.flash.err { border-color: #e4c4c2; background: #fff0ef; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dce5da;
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #edf1eb;
  text-align: left;
  vertical-align: top;
}

th { background: #eef5ec; color: #3d4b41; font-size: 13px; }

@media (max-width: 1200px) {
  .quick-order-steps,
  .quick-order-grid-pay {
    grid-template-columns: 1fr;
  }

  .quick-items-picker {
    grid-template-columns: 1fr auto auto auto;
  }

  .quick-items-tools {
    grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) 120px auto;
  }

  .quick-items-tools .muted {
    grid-column: 1 / -1;
  }
}

.users-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dce5da;
  border-radius: 8px;
  background: #fff;
}

.users-table {
  min-width: 1080px;
  border: 0;
  border-radius: 0;
  font-size: 13px;
}

.users-table th,
.users-table td {
  padding: 7px 8px;
  vertical-align: top;
}

.users-table input,
.users-table select,
.users-table textarea {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.users-table textarea {
  min-height: 58px;
}

.users-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #2f7d57;
}

.users-table input[type="file"] {
  max-width: 118px;
  min-height: 32px;
  padding: 4px;
  font-size: 12px;
}

.users-table .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.users-photo-cell {
  width: 128px;
}

.users-photo-cell {
  display: grid;
  gap: 6px;
  align-items: start;
}

.users-checks {
  display: grid;
  gap: 6px;
  min-width: 112px;
}

.users-checks label {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  color: #47544b;
  font-size: 12px;
  font-weight: 700;
}

.users-active-cell {
  text-align: center;
}

.users-table .quick-row {
  grid-template-columns: 1fr;
  min-width: 96px;
}

.users-table .quick-row button {
  min-height: 30px;
  padding: 0 7px;
  font-size: 12px;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 130px; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 110px; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 150px; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 130px; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 130px; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) { width: 150px; }
.users-table th:nth-child(10),
.users-table td:nth-child(10) { width: 86px; }
.users-table th:nth-child(11),
.users-table td:nth-child(11) { width: 70px; }

.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.column {
  min-height: 420px;
  background: #ecf1ea;
  border-radius: 8px;
  padding: 8px;
}

.column h2 {
  display: flex;
  justify-content: space-between;
  margin: 4px 2px 8px;
  font-size: 15px;
}

.order-card {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d7e0d4;
  border-left: 5px solid #75ad78;
  border-radius: 7px;
}

.status-new { border-left-color: #6aa6d9; }
.status-waiting_payment { border-left-color: #d39b31; }
.status-paid { border-left-color: #4c9b66; }
.status-in_work { border-left-color: #8267c9; }
.status-ready { border-left-color: #289c91; }
.status-completed { border-left-color: #798275; }
.status-cancelled { border-left-color: #b95a52; opacity: .72; }

.quick-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.quick-row button,
.quick-row .btn {
  min-height: 36px;
  padding: 0 8px;
  font-size: 13px;
  justify-content: center;
}

.loyalty-admin-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.loyalty-admin-summary {
  margin-bottom: 16px;
}

.loyalty-admin-table details summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce5da;
  border-radius: 7px;
  background: #fff;
  color: #214b35;
  cursor: pointer;
  font-weight: 800;
}

.loyalty-history[open] summary {
  margin-bottom: 10px;
}

.loyalty-history table {
  min-width: 760px;
  font-size: 13px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumb {
  width: 116px;
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid #dce5da;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

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

.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 10px;
  background: #edf1eb;
}

.live-showcase {
  height: calc(100vh - 260px);
  min-height: 620px;
  border: 1px solid #dce5da;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.showcase-actions {
  justify-content: flex-end;
}

.showcase-settings {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.live-showcase iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 860px) {
  .quick-order-steps,
  .quick-order-grid-pay {
    grid-template-columns: 1fr;
  }

  .quick-items-picker {
    grid-template-columns: 1fr 1fr;
  }

  .quick-items-picker label {
    grid-column: 1 / -1;
  }

  .quick-items-tools {
    grid-template-columns: 1fr;
  }

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

  .live-showcase {
    height: calc(100vh - 320px);
    min-height: 540px;
  }
}

.receipt {
  max-width: 80mm;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.receipt-logo-box {
  width: 100%;
  min-height: 18mm;
  display: grid;
  place-items: center;
  margin: 0 0 3mm;
  text-align: center;
}

.receipt-logo {
  max-width: 58mm;
  max-height: 22mm;
  object-fit: contain;
  filter: grayscale(1) contrast(1.45);
}

.receipt-logo-fallback {
  width: 56mm;
  min-height: 15mm;
  display: grid;
  place-items: center;
  border: 1px solid #000;
  color: #000;
  font-weight: 800;
  line-height: 1.15;
}

.receipt-logo-fallback small {
  font-size: 9px;
  font-weight: 700;
}

.receipt-title {
  margin: 1mm 0 2mm;
  font-size: 17px;
  text-align: center;
}

.courier-focus {
  margin: 3mm 0;
  padding: 3mm;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
}

.courier-focus span {
  display: block;
  margin-bottom: 1.5mm;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.courier-focus strong {
  display: block;
  color: #000;
  font-size: 20px;
  line-height: 1.15;
}

.delivery-zones-table input {
  min-width: 140px;
}

.assembly-print-page {
  color: #111;
  background: #f1f3f0;
}

.assembly-actions,
.assembly-sheet {
  width: min(190mm, calc(100vw - 24px));
  margin-left: auto;
  margin-right: auto;
}

.assembly-actions {
  margin-bottom: 12px;
}

.assembly-sheet {
  box-sizing: border-box;
  min-height: 270mm;
  padding: 12mm;
  border: 1px solid #d5d9d2;
  background: #fff;
  box-shadow: 0 14px 42px rgba(20, 32, 24, .12);
  font-family: Arial, sans-serif;
}

.assembly-head {
  display: grid;
  grid-template-columns: 40mm 1fr;
  gap: 8mm;
  align-items: center;
  padding-bottom: 7mm;
  border-bottom: 2px solid #222;
}

.assembly-logo-box {
  min-height: 16mm;
  display: grid;
  place-items: center start;
}

.assembly-logo-box img {
  max-width: 26mm;
  max-height: 10mm;
  object-fit: contain;
  filter: grayscale(1) contrast(1.45);
}

.assembly-logo-box strong {
  font-size: 13px;
}

.assembly-kicker {
  margin: 0 0 2mm;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-head h2 {
  margin: 0 0 2mm;
  color: #111;
  font-size: 28px;
}

.assembly-head p {
  margin: 0;
}

.assembly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  margin: 7mm 0;
}

.assembly-block {
  min-height: 21mm;
  padding: 4mm;
  border: 1px solid #222;
}

.assembly-block-wide {
  grid-column: span 2;
}

.assembly-block span {
  display: block;
  margin-bottom: 2mm;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-block strong {
  display: block;
  color: #111;
  font-size: 18px;
  line-height: 1.2;
}

.assembly-section {
  margin-top: 7mm;
}

.assembly-section h3 {
  margin: 0 0 3mm;
  font-size: 17px;
}

.assembly-items {
  margin-bottom: 4mm;
  border-color: #222;
  font-size: 13px;
}

.assembly-items th,
.assembly-items td {
  padding: 2mm;
  border-color: #222;
}

.assembly-text {
  min-height: 28mm;
  padding: 4mm;
  border: 1px solid #222;
  font-size: 17px;
  line-height: 1.35;
}

.assembly-lines {
  display: grid;
  gap: 8mm;
  padding-top: 4mm;
}

.assembly-lines span {
  display: block;
  border-bottom: 1px solid #222;
}

.assembly-lines-short {
  gap: 7mm;
}

.assembly-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4mm 7mm;
  padding: 4mm;
  border: 1px solid #222;
}

.assembly-checks label {
  display: flex;
  gap: 3mm;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

.assembly-checks span {
  width: 6mm;
  height: 6mm;
  flex: 0 0 6mm;
  border: 1.5px solid #111;
}

.assembly-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6mm;
  margin-top: 12mm;
}

.assembly-footer div {
  display: grid;
  gap: 7mm;
}

.assembly-footer span {
  color: #555;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-footer strong {
  padding-bottom: 2mm;
  border-bottom: 1px solid #222;
  font-size: 15px;
}

/* CRM interface polish */
:root {
  --surface: #fff;
  --surface-soft: #f8faf7;
  --line: #dce5da;
  --text-soft: #66736a;
  --shadow-sm: 0 4px 16px rgba(29, 53, 37, .06);
  --shadow-md: 0 14px 36px rgba(29, 53, 37, .10);
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
}

.topbar {
  gap: 14px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 8px 14px;
}

.topbar .brand {
  font-size: 15px;
  letter-spacing: 0;
}

.topbar .main-nav,
.nav-primary {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.topbar nav .nav-pill {
  min-height: 38px;
  padding: 0 10px 0 7px;
  border-radius: 7px;
  font-size: 14px;
}

.topbar nav .nav-pill-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 6px;
}

.topbar nav .nav-pill-icon .ui-icon {
  width: 15px;
  height: 15px;
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more summary {
  min-height: 38px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #d7e0d4;
  border-radius: 7px;
  background: #fff;
  color: #33433a;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary { border-color: #9fb9a7; background: #f1f7f2; }

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 230px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.topbar nav .nav-more-menu .nav-pill {
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

.userbox > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.userbox .logout-link { min-height: 36px; gap: 6px; padding: 0 9px; }
.userbox .logout-link .ui-icon { width: 16px; height: 16px; }

.page { padding-top: 24px; }
.page > h1 { color: #19271e; font-size: clamp(25px, 3vw, 32px); }
.panel, .card { box-shadow: var(--shadow-sm); }

tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #fbfdfb; }

.settings-nav {
  display: flex;
  gap: 4px;
  margin: -4px 0 18px;
  padding-bottom: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.settings-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  color: #59675e;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.settings-nav a:hover,
.settings-nav a.is-active {
  border-bottom-color: var(--brand-pink);
  color: var(--brand-purple-dark);
  text-decoration: none;
}

.page-toolbar {
  min-height: 44px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.page-lead { margin: 0; color: var(--text-soft); font-size: 15px; }
.icon-btn-text { gap: 7px; justify-content: center; }
.icon-only { width: 36px; min-height: 36px; justify-content: center; padding: 0; }
.icon-only .ui-icon { width: 16px; height: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #56635a;
  box-shadow: var(--shadow-sm);
}

.stat-card strong { color: var(--brand-purple-dark); font-size: 26px; }
.stat-card.is-active { border-color: rgba(230, 0, 138, .4); background: var(--brand-pink-soft); }
.stat-card:hover { text-decoration: none; border-color: #b9c9b9; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 11px;
}

.filter-bar label { font-size: 12px; }
.filter-bar input, .filter-bar select { min-height: 38px; padding: 7px 9px; font-size: 13px; }
.filter-actions { display: flex; gap: 6px; }
.filter-actions button, .filter-actions .btn { min-height: 38px; padding: 0 11px; font-size: 13px; }

.input-with-icon { position: relative; display: block; }
.input-with-icon .ui-icon { position: absolute; left: 10px; top: 50%; z-index: 1; width: 16px; height: 16px; transform: translateY(-50%); color: #76847a; }
.input-with-icon input { padding-left: 34px; }

.responsive-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.responsive-table table { border: 0; border-radius: 0; }
.employee-table { min-width: 1080px; font-size: 13px; }
.employee-table th { padding: 9px 10px; background: #f2f6f1; }
.employee-table td { padding: 10px; vertical-align: middle; }
.employee-identity { min-width: 190px; display: flex; gap: 10px; align-items: center; }
.employee-identity > div { display: grid; gap: 2px; }
.employee-identity strong { color: #1c2d22; font-size: 14px; }
.employee-identity span { color: #839087; font-size: 11px; }
.employee-actions { display: flex; gap: 5px; justify-content: flex-end; }
.employee-actions form { margin: 0; }
.row-archived { opacity: .72; background: #f8f8f7; }

.role-chip, .status-chip, .bot-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  box-sizing: border-box;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f3f0;
  color: #4a584f;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.role-admin { background: #f1e9f7; color: #5a2878; }
.role-manager { background: #e9f3fb; color: #28618e; }
.role-florist { background: #fff0f7; color: #9d2c63; }
.role-courier { background: #eef5e8; color: #577126; }
.status-working { background: #e8f6ed; color: #267346; }
.status-vacation { background: #fff5df; color: #916313; }
.status-absent { background: #eef1f4; color: #53606d; }
.status-dismissed { background: #f7eaea; color: #9d403c; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bot-chip { background: #eef0f1; color: #7a8480; }
.bot-chip.is-on { background: #e8f6ed; color: #267346; }

.empty-state { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; color: var(--text-soft); }
.empty-state strong { color: #344239; font-size: 15px; }

.focused-form { max-width: 900px; margin: 0 auto; }
.form-section-head { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.form-section-head h2 { margin: 3px 0 0; color: var(--brand-purple-dark); }
.form-section-head p { max-width: 380px; margin: 0; color: var(--text-soft); font-size: 13px; text-align: right; }
.eyebrow { color: var(--brand-pink); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.field-hint { color: #7b887e; font-size: 11px; font-weight: 500; }
.info-note { margin-top: 14px; padding: 11px 13px; border-left: 3px solid var(--brand-purple); background: var(--brand-purple-soft); color: #5f4b6b; font-size: 13px; }

.form-tabs { display: flex; gap: 3px; margin: -14px -14px 18px; padding: 8px 10px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fafcf9; border-radius: 8px 8px 0 0; }
button.form-tab { min-height: 40px; padding: 0 13px; border-radius: 6px 6px 0 0; border-bottom: 3px solid transparent; background: transparent; color: #59675e; font-size: 13px; white-space: nowrap; }
button.form-tab:hover, button.form-tab.is-active { border-bottom-color: var(--brand-pink); background: #fff; color: var(--brand-purple-dark); }
.tabbed-form > section { display: grid; gap: 14px; }
.tabbed-form > section[hidden] { display: none; }
.sticky-form-actions { position: sticky; bottom: 10px; z-index: 5; width: fit-content; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-md); }

.employee-profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar-lg { width: 70px; height: 70px; font-size: 25px; }
.employee-profile-head h2 { margin: 2px 0; }
.employee-profile-head p { margin: 0; color: var(--text-soft); }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 8px; }
.permission-grid label { grid-template-columns: 1fr 130px; align-items: center; padding: 8px 10px; border: 1px solid #e5ebe3; border-radius: 7px; background: #fbfcfb; }
.permission-grid select { min-height: 34px; padding: 5px 7px; font-size: 12px; }
.pin-reset-card { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; align-items: center; margin-top: 16px; padding: 12px; border: 1px solid #e5dced; border-radius: 8px; background: #fdfafd; }
.pin-reset-card > div { display: grid; gap: 3px; }
.pin-reset-card span { color: var(--text-soft); font-size: 12px; }
.toggle-list { display: grid; gap: 8px; }
.toggle-list label, .check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e4eae2; border-radius: 8px; background: #fbfcfb; }
.toggle-list input, .check-row input { width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--brand-pink); }
.toggle-list span { display: grid; gap: 3px; }
.toggle-list small { color: var(--text-soft); font-weight: 500; }
.bot-link-list { display: grid; gap: 8px; }
.bot-link-list article { display: flex; gap: 10px; align-items: center; padding: 11px; border: 1px solid #e4eae2; border-radius: 8px; }
.bot-link-list article > div { display: grid; gap: 2px; }
.bot-link-list small { color: var(--text-soft); }

.settings-disclosure { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.settings-disclosure > summary { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; }
.settings-disclosure > summary::-webkit-details-marker { display: none; }
.settings-disclosure > summary > span:first-child { display: grid; gap: 3px; }
.settings-disclosure > summary strong { color: #213128; font-size: 16px; }
.settings-disclosure > summary small { color: var(--text-soft); }
.settings-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.settings-disclosure-body { border: 0; border-radius: 0 0 8px 8px; box-shadow: none; }

@media (max-width: 760px) {
  .topbar { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .topbar .brand { flex: 1; }
  .topbar nav { width: 100%; order: 3; overflow-x: auto; }
  .nav-primary { overflow-x: auto; }
  .nav-primary .nav-pill span:last-child { display: none; }
  .topbar nav .nav-primary .nav-pill { width: 39px; flex: 0 0 39px; padding: 0; justify-content: center; }
  .topbar nav .nav-primary .nav-pill-icon { background: transparent; color: var(--nav-accent); }
  .nav-more-menu { position: fixed; top: 112px; right: 12px; left: 12px; width: auto; }
  .userbox { width: 100%; justify-content: space-between; }
  .userbox { width: auto; }
  .userbox > span, .header-logo { display: none; }
  .userbox .logout-link span { display: none; }
  .header-logo { max-width: 96px; max-height: 36px; }
  .public-home { display: block; padding: 12px; }
  .visit-card {
    width: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .visit-card-brand {
    min-height: auto;
    padding: 18px;
  }
  .visit-logo-wide { max-height: 150px; }
  .visit-card-brand p { font-size: 18px; }
  .visit-actions { display: grid; }
  .developer-footer {
    width: auto;
    margin-top: 12px;
    padding: 14px;
    font-size: 12px;
  }
  .login-shell {
    width: min(460px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-brand {
    min-height: 230px;
    padding: 22px;
  }
  .login-logo { max-width: 170px; max-height: 82px; }
  .login-assistant img,
  .floreya-mark {
    width: 72px;
    height: 72px;
  }
  .login-assistant strong { font-size: 22px; }
  .login-card { padding: 24px; }
  .login-card h1 { font-size: 28px; }
  h1 { font-size: 24px; }
  .quick-order-steps,
  .quick-order-grid-main,
  .quick-order-grid-pay {
    grid-template-columns: 1fr;
  }
  .quick-order-grid-main label:last-child {
    grid-column: auto;
  }
  .quick-order-actions {
    position: static;
  }
  .loyalty-admin-filter {
    grid-template-columns: 1fr;
  }
  .loyalty-messenger-links {
    grid-template-columns: 1fr;
  }
  table { display: block; overflow-x: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr; }
  .page-toolbar, .form-section-head { align-items: stretch; flex-direction: column; }
  .form-section-head p { text-align: left; }
  .permission-grid { grid-template-columns: 1fr; }
  .permission-grid label { grid-template-columns: 1fr; }
  .pin-reset-card { grid-template-columns: 1fr; }
  .employee-profile-head { grid-template-columns: auto 1fr; }
  .employee-profile-head > .status-chip { grid-column: 1 / -1; width: fit-content; }
  .board { grid-template-columns: repeat(7, minmax(240px, 82vw)); }
  .assembly-sheet {
    min-height: auto;
    padding: 16px;
  }
  .assembly-head,
  .assembly-grid,
  .assembly-checks,
  .assembly-footer {
    grid-template-columns: 1fr;
  }
  .assembly-block-wide {
    grid-column: auto;
  }
}

@media print {
  body { background: #fff; }
  .topbar, .page > h1, .no-print, .flash { display: none !important; }
  .page { max-width: none; padding: 0; margin: 0; }
  .receipt { width: 74mm; max-width: 74mm; padding: 0; }
  .assembly-print-page,
  .assembly-sheet {
    width: 190mm;
    max-width: none;
  }
  .assembly-sheet {
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
