:root {
  --orange: #ea4f24;
  --orange-2: #ff7a1f;
  --green: #16a34a;
  --ink: #1f130f;
  --muted: #725c4c;
  --line: rgba(93, 64, 48, .14);
  --paper: #fffaf4;
  --white: #fff;
  --shadow: 0 20px 50px rgba(57, 35, 24, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fff7ec 0, #fff 34%, #f5fbf7 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.store-topbar,
.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.store-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.store-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
}

.store-topbar nav,
.admin-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.store-topbar nav a,
.admin-top nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4c3b32;
  font-size: 13px;
  font-weight: 850;
}

.store-topbar nav a:hover,
.admin-top nav a:hover {
  border-color: rgba(234, 79, 36, .18);
  background: #fff4e8;
}

.store-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 72vh, 780px);
  overflow: hidden;
  padding: clamp(84px, 9vw, 130px) clamp(18px, 5vw, 76px) clamp(34px, 6vw, 72px);
}

.store-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 239, .98) 0%, rgba(255, 248, 239, .86) 38%, rgba(255, 248, 239, .2) 72%),
    linear-gradient(180deg, rgba(255, 248, 239, .2), rgba(255, 248, 239, .76));
}

.store-hero-copy {
  max-width: 790px;
}

.store-hero-copy > span,
.store-menu-head span,
.cart-head span,
.trial-hero span,
.form-intro span,
.created-box > span,
.admin-top span,
.admin-card-head span,
.qr-toolbar span,
.admin-login-card > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.store-hero h1,
.trial-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  color: #17110d;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .92;
  letter-spacing: 0;
}

.store-hero p,
.trial-hero p {
  max-width: 720px;
  margin: 0;
  color: #594437;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}

.store-hero-actions,
.created-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.mobile-cart-cta {
  display: none;
}

.store-btn:hover {
  transform: translateY(-1px);
}

.store-btn.primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 16px 32px rgba(234, 79, 36, .22);
}

.store-btn.ghost {
  border-color: rgba(234, 79, 36, .18);
  background: rgba(255, 255, 255, .74);
  color: #2b1b14;
}

.store-btn.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
}

.store-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.store-hero-badges span {
  padding: 8px 11px;
  border: 1px solid rgba(234, 79, 36, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #4e392d;
  font-size: 12px;
  font-weight: 900;
}

.store-status-row,
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px clamp(14px, 4vw, 54px);
}

.store-status-row article,
.admin-summary-grid article {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(57, 35, 24, .06);
}

.store-status-row span,
.admin-summary-grid span {
  color: #8a7462;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.store-status-row strong,
.admin-summary-grid strong {
  font-size: 17px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 18px;
  padding: 10px clamp(14px, 4vw, 54px) 60px;
  align-items: start;
}

.store-menu,
.cart-panel,
.trial-form-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.store-menu {
  padding: 18px;
}

.store-menu-head,
.cart-head,
.admin-card-head,
.dialog-head,
.qr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-menu-head h2,
.form-intro h2,
.admin-card-head h2,
.dialog-head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.store-search {
  display: grid;
  gap: 5px;
  min-width: min(340px, 42vw);
}

.store-search span,
.checkout-form label span,
.standalone-form label span,
.admin-grid-form label span,
.admin-login-card label span {
  color: #7b6554;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.store-search input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.standalone-form input,
.standalone-form select,
.admin-grid-form input,
.admin-grid-form select,
.admin-grid-form textarea,
.admin-login-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(114, 92, 76, .18);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.checkout-form textarea,
.admin-grid-form textarea {
  min-height: 86px;
  resize: vertical;
}

.store-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 14px;
}

.store-categories button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(114, 92, 76, .16);
  border-radius: 999px;
  background: #fffaf4;
  color: #594437;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.store-categories button.active {
  border-color: rgba(234, 79, 36, .42);
  background: var(--orange);
  color: #fff;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(114, 92, 76, .13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(57, 35, 24, .08);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.12 / .86;
  object-fit: cover;
}

.product-body {
  padding: 14px;
}

.product-meta,
.product-bottom,
.checkout-totals div,
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-meta span,
.product-meta small {
  color: #8a7462;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 10px 0 7px;
  font-size: 19px;
  line-height: 1.1;
}

.product-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6a5546;
  font-size: 13px;
  line-height: 1.45;
}

.product-bottom strong {
  font-size: 18px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 32px 28px 32px;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(114, 92, 76, .16);
  border-radius: 999px;
  background: #fffaf4;
  text-align: center;
}

.quantity-control button {
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.cart-panel {
  position: sticky;
  top: 82px;
  padding: 18px;
}

.cart-head strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.cart-head button,
.mini-copy,
.inline-delete button,
.dialog-head button {
  min-height: 34px;
  border: 1px solid rgba(114, 92, 76, .16);
  border-radius: 10px;
  background: #fff;
  color: #4c3b32;
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-line {
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(114, 92, 76, .12);
  border-radius: 14px;
  background: #fffaf4;
}

.cart-line img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.cart-line strong {
  font-size: 14px;
}

.cart-line span,
.empty-cart,
.empty-products,
.checkout-note,
.trial-note {
  color: #7b6554;
  font-size: 12px;
  line-height: 1.45;
}

.cart-line button {
  border: 0;
  background: transparent;
  color: #c62828;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-totals {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #24150f;
  color: #fff;
}

.checkout-totals span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.checkout-totals .total {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.checkout-totals .discount-line strong {
  color: #bbf7d0;
}

.checkout-totals .total strong {
  font-size: 24px;
}

.coupon-feedback {
  min-height: 16px;
  color: #8a7462;
  font-size: 11px;
  font-weight: 850;
}

.coupon-feedback.ok {
  color: #16a34a;
}

.coupon-feedback.warn {
  color: #b45309;
}

.table-order-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 14px;
  background: #f0fdf4;
}

.table-order-note span {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.table-order-note strong {
  color: #14532d;
  font-size: 14px;
}

.table-order-note small {
  color: #166534;
  font-size: 12px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-form label,
.standalone-form label,
.admin-grid-form label,
.admin-login-card label {
  display: grid;
  gap: 6px;
}

.checkout-submit {
  width: 100%;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 19, 15, .55);
  backdrop-filter: blur(10px);
}

.order-modal[hidden] {
  display: none;
}

.order-modal-card,
.admin-login-card {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 19, 15, .22);
}

.order-modal-card button[data-close-modal] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.order-modal-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.order-modal-card h2 {
  margin: 10px 0;
  font-size: 32px;
  line-height: 1;
}

.trial-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .7fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.trial-hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(28px, 5vw, 70px);
  border-radius: 28px;
  background: #fff7ec;
}

.trial-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.trial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 248, 239, .96), rgba(255, 248, 239, .48));
}

.trial-form-card {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.standalone-form,
.created-box {
  display: grid;
  gap: 12px;
}

.created-box h2 {
  margin: 4px 0;
  font-size: 36px;
  line-height: 1;
}

.created-main-message {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}

.created-url-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(234, 79, 36, .18);
  border-radius: 16px;
  background: #fff7ed;
}

.created-url-card span {
  color: #9a3412;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.created-url-card strong,
.created-box > strong {
  display: block;
  color: var(--orange);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.created-url-card small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.trial-status-line {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.trial-status-line.ok {
  border: 1px solid rgba(22, 163, 74, .24);
  background: #ecfdf3;
  color: #166534;
}

.trial-status-line.warn {
  border: 1px solid rgba(245, 158, 11, .28);
  background: #fffbeb;
  color: #92400e;
}

.created-links.compact {
  margin-top: 10px;
}

.access-key {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #f5fbf7;
}

.access-key span {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.access-key code {
  font-size: 22px;
  font-weight: 950;
}

.form-error,
.admin-notice {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
}

.form-error,
.admin-notice.error {
  border: 1px solid rgba(198, 40, 40, .22);
  background: #fff1f1;
  color: #9f1d1d;
}

.admin-notice.ok {
  border: 1px solid rgba(22, 163, 74, .22);
  background: #ecfdf3;
  color: #08733b;
}

.admin-page {
  background: #f7fafc;
}

.admin-top {
  align-items: center;
}

.admin-top h1 {
  margin: 2px 0 0;
  font-size: 28px;
}

.admin-shell {
  display: grid;
  gap: 16px;
  padding: 16px clamp(14px, 4vw, 54px) 60px;
}

.admin-card {
  padding: 18px;
}

.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-grid-form .wide {
  grid-column: span 2;
}

.check-line {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(114, 92, 76, .16);
  border-radius: 13px;
  background: #fff;
}

.check-line input {
  width: auto;
  min-height: 0;
}

.admin-table-wrap {
  overflow: auto;
  margin-top: 16px;
  border: 1px solid rgba(114, 92, 76, .14);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(114, 92, 76, .12);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #fffaf4;
  color: #755a48;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  max-width: 420px;
  margin-top: 4px;
  color: #7b6554;
  line-height: 1.35;
}

.table-thumb {
  width: 54px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.status-pill.on {
  background: #dcfce7;
  color: #166534;
}

.status-pill.off {
  background: #f1f5f9;
  color: #64748b;
}

.inline-delete {
  display: inline;
  margin-left: 6px;
}

.inline-delete button {
  color: #b91c1c;
}

.product-dialog {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 28px 90px rgba(31, 19, 15, .24);
}

.product-dialog::backdrop {
  background: rgba(31, 19, 15, .48);
  backdrop-filter: blur(8px);
}

.product-form {
  padding: 22px;
}

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

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(255, 248, 239, .96), rgba(255, 248, 239, .5)),
    url("img/hero-food.jpg") center / cover;
}

.admin-login-card {
  display: grid;
  gap: 14px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.qr-page {
  background: #f1f5f9;
}

.qr-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 18px;
  border-bottom: 1px solid #d8e0ea;
  background: #fff;
}

.qr-toolbar h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.qr-sheet {
  display: grid;
  grid-template-columns: repeat(3, 90mm);
  gap: 8mm;
  padding: 12mm;
  justify-content: center;
}

.qr-card {
  display: grid;
  justify-items: center;
  align-content: start;
  width: 90mm;
  min-height: 128mm;
  padding: 8mm;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  page-break-inside: avoid;
}

.qr-card > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.qr-card h2 {
  margin: 5mm 0;
  font-size: 28px;
  line-height: 1;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 46mm;
  height: 46mm;
  margin: 2mm 0 5mm;
}

.qr-card p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.qr-card small {
  margin-top: 4mm;
  color: #64748b;
  font-size: 10px;
}

.trial-qr-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(234, 79, 36, .11), transparent 36%),
    linear-gradient(180deg, #fff7ed, #f8fafc 58%, #ecfdf3);
}

.trial-qr-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.trial-qr-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(234, 79, 36, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  text-align: center;
  box-shadow: 0 28px 80px rgba(57, 35, 24, .12);
}

.trial-qr-card img {
  width: 150px;
  height: auto;
}

.trial-qr-card > span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.trial-qr-card h1 {
  margin: 0;
  color: #17110d;
  font-size: clamp(34px, 7vw, 56px);
  line-height: .95;
}

.trial-qr-card p {
  max-width: 380px;
  margin: 0;
  color: #594437;
  font-size: 16px;
  line-height: 1.45;
}

.trial-qr-box {
  display: grid;
  place-items: center;
  width: 370px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 10px 0;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
}

.trial-qr-card > strong {
  color: #334155;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.trial-qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.master-panel-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #172033;
}

.master-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 24px;
  border-bottom: 1px solid #e5eaf2;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.master-header img {
  width: 132px;
  height: auto;
  display: block;
}

.master-header span,
.master-toolbar label span {
  color: #7b8190;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.master-header h1 {
  margin: 2px 0 0;
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.master-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.master-header nav a,
.master-actions a,
.master-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.master-header nav a:first-child {
  border-color: rgba(234, 79, 36, .28);
  color: var(--orange);
}

.master-shell {
  display: grid;
  gap: 14px;
  padding: 18px 24px 44px;
}

.master-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.master-stats article,
.master-toolbar,
.master-table-card,
.manager-access-card {
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .04);
}

.master-stats article {
  padding: 14px;
}

.master-stats span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.master-stats strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.master-toolbar {
  padding: 12px;
}

.master-toolbar form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto;
  align-items: end;
  gap: 10px;
}

.master-toolbar label {
  display: grid;
  gap: 5px;
}

.master-toolbar input,
.master-toolbar select {
  min-height: 38px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 11px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.master-table-card {
  padding: 16px;
}

.master-table {
  min-width: 1420px;
}

.master-actions {
  min-width: 360px;
}

.master-actions,
.master-actions form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.master-actions button.danger {
  border-color: #fecaca;
  color: #dc2626;
}

.status-pill.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-pill.status-expired {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.status-converted {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill.status-cancelled,
.status-pill.status-archived {
  background: #fee2e2;
  color: #b91c1c;
}

.manager-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
}

.manager-access-card form {
  margin: 0;
}

.manager-access-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.manager-access-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manager-access-card strong {
  color: #172033;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.manager-access-card small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.manager-contract-pix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(234, 79, 36, .22);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.manager-contract-pix-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.manager-contract-pix-copy > span,
.manager-contract-pix-copy label > span {
  color: #ea4f24;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manager-contract-pix-copy h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.1;
}

.manager-contract-pix-copy p,
.manager-contract-pix-copy small,
.manager-contract-pix-qr span {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.manager-contract-pix-copy label {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.manager-contract-pix-copy textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.manager-contract-pix-qr {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 10px;
  background: #fff;
}

.manager-contract-pix-qr img {
  width: min(190px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.manager-contract-pix-qr strong {
  color: #172033;
  font-size: 17px;
}

.manager-contract-pix-qr div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media print {
  .trial-qr-page {
    background: #fff;
  }

  .trial-qr-shell {
    min-height: auto;
    padding: 0;
  }

  .trial-qr-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }

  .trial-qr-actions {
    display: none;
  }
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-layout,
  .trial-shell {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .admin-grid-form,
  .admin-summary-grid,
  .store-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .store-topbar,
  .admin-top {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .store-hero {
    min-height: 640px;
    padding-top: 40px;
  }

  .store-hero::after,
  .trial-hero::after {
    background: linear-gradient(180deg, rgba(255, 248, 239, .96), rgba(255, 248, 239, .8));
  }

  .store-hero h1,
  .trial-hero h1 {
    font-size: 44px;
  }

  .store-menu-head,
  .admin-card-head,
  .dialog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-search {
    min-width: 0;
    width: 100%;
  }

  .product-grid,
  .checkout-grid,
  .admin-grid-form,
  .admin-summary-grid,
  .store-status-row,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid-form .wide {
    grid-column: auto;
  }

  .catalog-store-page {
    background: #f6f7f4;
    padding-bottom: 78px;
    overflow-x: hidden;
  }

  .catalog-store-page .store-topbar {
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(57, 35, 24, .08);
  }

  .catalog-store-page .store-logo {
    min-width: 0;
  }

  .catalog-store-page .store-logo span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .catalog-store-page .store-logo strong {
    overflow: hidden;
    max-width: 52vw;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .catalog-store-page .store-topbar nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 60;
    display: grid;
    gap: 0;
    pointer-events: none;
  }

  .catalog-store-page .store-topbar nav a {
    display: none;
  }

  .catalog-store-page .store-topbar nav a:nth-child(2) {
    display: none;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-color: rgba(234, 79, 36, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    box-shadow: 0 16px 34px rgba(234, 79, 36, .26);
    color: #fff;
    padding: 13px 16px;
    font-size: 14px;
    pointer-events: auto;
  }

  .catalog-store-page .mobile-cart-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid rgba(234, 79, 36, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    box-shadow: 0 16px 34px rgba(234, 79, 36, .26);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
  }

  .catalog-store-page .store-hero {
    min-height: 210px;
    padding: 76px 16px 18px;
  }

  .catalog-store-page .store-hero::after {
    background:
      linear-gradient(180deg, rgba(31, 19, 15, .08), rgba(31, 19, 15, .7)),
      linear-gradient(90deg, rgba(255, 248, 239, .2), rgba(255, 248, 239, .04));
  }

  .catalog-store-page .store-hero-copy > span,
  .catalog-store-page .store-hero p,
  .catalog-store-page .store-hero-actions {
    display: none;
  }

  .catalog-store-page .store-hero h1 {
    max-width: 88vw;
    margin: 0 0 10px;
    color: #fff;
    font-size: 31px;
    line-height: 1.02;
    text-shadow: 0 8px 28px rgba(31, 19, 15, .28);
  }

  .catalog-store-page .store-hero-badges {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .catalog-store-page .store-hero-badges::-webkit-scrollbar,
  .catalog-store-page .store-status-row::-webkit-scrollbar,
  .catalog-store-page .store-categories::-webkit-scrollbar {
    display: none;
  }

  .catalog-store-page .store-hero-badges span {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .9);
    color: #2b1b14;
    padding: 6px 9px;
    font-size: 10px;
  }

  .catalog-store-page .store-status-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 6px;
    scrollbar-width: none;
  }

  .catalog-store-page .store-status-row article {
    flex: 0 0 134px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: none;
  }

  .catalog-store-page .store-status-row span {
    font-size: 9px;
  }

  .catalog-store-page .store-status-row strong {
    font-size: 13px;
  }

  .catalog-store-page .store-layout {
    gap: 12px;
    padding: 6px 10px 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .catalog-store-page .store-menu {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .catalog-store-page .store-menu-head {
    position: sticky;
    top: 55px;
    z-index: 11;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 -10px;
    padding: 10px 10px 8px;
    background: rgba(246, 247, 244, .96);
    backdrop-filter: blur(14px);
  }

  .catalog-store-page .store-menu-head > div {
    display: none;
  }

  .catalog-store-page .store-search input {
    min-height: 42px;
    border-color: rgba(31, 19, 15, .08);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(57, 35, 24, .06);
  }

  .catalog-store-page .store-search span {
    display: none;
  }

  .catalog-store-page .store-categories {
    position: sticky;
    top: 111px;
    z-index: 10;
    margin: 0 -10px 8px;
    padding: 4px 10px 10px;
    background: rgba(246, 247, 244, .96);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .catalog-store-page .store-categories button {
    min-height: 32px;
    padding: 7px 11px;
    background: #fff;
    font-size: 11px;
  }

  .catalog-store-page .store-categories button.active {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
  }

  .catalog-store-page .product-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 8px;
  }

  .catalog-store-page .product-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
    min-height: 118px;
    overflow: hidden;
    border-color: rgba(31, 19, 15, .08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(57, 35, 24, .07);
  }

  .catalog-store-page .product-card img {
    width: 92px;
    height: 100%;
    min-height: 118px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .catalog-store-page .product-body {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 10px 10px 12px;
  }

  .catalog-store-page .product-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .catalog-store-page .product-meta small {
    display: none;
  }

  .catalog-store-page .product-meta span {
    font-size: 9px;
  }

  .catalog-store-page .product-body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-store-page .product-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    margin: 0;
    color: #725c4c;
    font-size: 11px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .catalog-store-page .product-bottom {
    display: block !important;
    gap: 5px;
    min-width: 0;
    margin-top: 2px;
  }

  .catalog-store-page .product-bottom strong {
    display: block;
    color: #1f130f;
    font-size: 15px;
  }

  .catalog-store-page .quantity-control {
    display: inline-grid !important;
    grid-template-columns: 30px 24px 30px;
    min-height: 32px;
    margin-top: 5px;
    border-color: rgba(234, 79, 36, .18);
    background: #fff4e8;
  }

  .catalog-store-page .quantity-control button {
    height: 30px;
    font-size: 18px;
  }

  .catalog-store-page .cart-panel {
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(57, 35, 24, .1);
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body.qr-page {
    background: #fff;
  }

  .qr-toolbar {
    display: none;
  }

  .qr-sheet {
    grid-template-columns: repeat(2, 88mm);
    gap: 6mm;
    padding: 0;
  }

  .qr-card {
    width: 88mm;
    min-height: 120mm;
    border-color: #cbd5e1;
    box-shadow: none;
  }
}

.manager-page {
  background: #f7f9fc;
  color: #202636;
}

.manager-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
}

.manager-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid #e7ebf2;
  background: #fff;
  box-shadow: 10px 0 28px rgba(15, 23, 42, .03);
}

.manager-logo {
  display: flex;
  align-items: center;
  height: 42px;
  margin-bottom: 18px;
}

.manager-logo img,
.manager-login-logo {
  width: 118px;
  height: auto;
  display: block;
}

.bdgfood-panel-logo {
  width: 152px;
  max-height: 54px;
  object-fit: contain;
}

.manager-logo img.bdgfood-panel-logo,
.manager-login-logo.bdgfood-panel-logo,
.master-header img.bdgfood-panel-logo,
.trial-qr-card img.bdgfood-panel-logo {
  width: 154px;
}

.trial-brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 24px rgba(57, 35, 24, .1));
}

.trial-hero img.trial-brand-logo {
  position: relative;
  inset: auto;
  width: 178px;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

.qr-toolbar-logo {
  flex: 0 0 auto;
}

.qr-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-toolbar > div {
  flex: 1;
  min-width: 0;
}

.manager-store-switch {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.manager-store-switch span,
.manager-form label span,
.manager-page .admin-table th {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manager-store-switch select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.manager-open-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #168239;
  font-size: 12px;
  font-weight: 900;
}

.manager-open-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.manager-open-pill button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #168239;
  font-weight: 950;
}

.manager-side-nav {
  display: grid;
  gap: 4px;
}

.manager-side-nav strong {
  margin: 8px 8px 4px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manager-side-nav a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #5f6574;
  font-size: 13px;
  font-weight: 800;
}

.manager-side-nav a:hover,
.manager-side-nav a.active {
  background: #fff0f2;
  color: #ea3f55;
}

.manager-main {
  min-width: 0;
  padding: 0 28px 42px;
}

.manager-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  margin: 0 -28px 22px;
  padding: 0 28px;
  border-bottom: 1px solid #e7ebf2;
  background: rgba(247, 249, 252, .92);
  backdrop-filter: blur(16px);
}

.manager-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
}

.manager-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  white-space: nowrap;
  color: #7b8190;
  font-size: 13px;
  font-weight: 900;
}

.manager-tabs a.active,
.manager-tabs a:hover {
  color: #ea3f55;
}

.manager-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #ea3f55;
}

.manager-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.manager-inline-form {
  display: inline-flex;
  margin: 0;
}

.manager-header-actions span,
.manager-header-actions a,
.manager-header-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fff;
  color: #525a6b;
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
}

.manager-header-actions a:last-child {
  border-color: rgba(234, 63, 85, .25);
  color: #ea3f55;
}

.manager-header-actions button {
  border-color: rgba(234, 79, 36, .24);
  background: #fff7ed;
  color: #c2410c;
}

.manager-hero-metric {
  padding: 0 8px 26px;
}

.manager-hero-metric span,
.manager-card-title > div > span {
  color: #7b8190;
  font-size: 12px;
  font-weight: 900;
}

.manager-hero-metric strong {
  display: block;
  margin-top: 6px;
  color: #16a34a;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.manager-hero-metric p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.manager-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.manager-metric-grid article,
.manager-quick-grid article,
.manager-card,
.manager-chart-card {
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .04);
}

.manager-metric-grid article {
  min-height: 86px;
  padding: 20px;
}

.manager-metric-grid span,
.manager-quick-grid span {
  display: block;
  color: #697184;
  font-size: 12px;
  font-weight: 900;
}

.manager-metric-grid strong,
.manager-quick-grid strong {
  display: block;
  margin-top: 10px;
  color: #202636;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.manager-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  margin-bottom: 24px;
}

.manager-chart-card {
  min-height: 328px;
  padding: 22px;
}

.manager-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.manager-card-title h2 {
  margin: 0;
  color: #202636;
  font-size: 18px;
  letter-spacing: 0;
}

.manager-card-title > div:last-child:not(:first-child) {
  display: flex;
  gap: 8px;
}

.manager-card-title div:last-child span,
.manager-card-title > button,
.mini-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.manager-bars {
  height: 230px;
  display: grid;
  grid-template-columns: repeat(14, minmax(20px, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 20px;
}

.manager-bar {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.manager-bar span {
  width: 100%;
  max-width: 34px;
  min-height: 10px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #49d15a, #21b83a);
  box-shadow: 0 10px 18px rgba(34, 197, 94, .18);
}

.manager-bar small {
  color: #9aa2b1;
  font-size: 10px;
  font-weight: 800;
}

.manager-pie-card {
  display: grid;
  align-content: start;
  justify-items: center;
}

.manager-pie {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 999px;
  margin: 16px 0;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .65), 0 12px 28px rgba(15, 23, 42, .08);
}

.manager-channel-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.manager-channel-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.manager-channel-list i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.manager-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.manager-quick-grid article {
  padding: 16px;
}

.manager-quick-grid strong {
  font-size: 18px;
}

.manager-card {
  margin-bottom: 24px;
  padding: 20px;
}

.manager-page .admin-grid-form.manager-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.manager-page .admin-grid-form .wide {
  grid-column: span 2;
}

.manager-page .admin-grid-form input,
.manager-page .admin-grid-form select,
.manager-page .admin-grid-form textarea {
  min-height: 39px;
  border-radius: 8px;
  background: #fff;
}

.manager-page .admin-table-wrap.compact {
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  overflow: auto;
}

.manager-page .admin-table.manager-table {
  min-width: 960px;
  border-spacing: 0;
  background: #fff;
}

.manager-page .admin-table th,
.manager-page .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf4;
  vertical-align: middle;
}

.manager-page .admin-table th {
  background: #fbfcfe;
}

.manager-page .admin-table tr:hover td {
  background: #fbfdff;
}

.manager-page .admin-table td {
  color: #202636;
  font-size: 13px;
}

.manager-page .admin-table td strong {
  display: block;
  font-size: 13px;
}

.manager-page .admin-table td small {
  display: block;
  margin-top: 4px;
  color: #7b8190;
  font-size: 11px;
  line-height: 1.35;
}

.manager-page .table-thumb {
  width: 52px;
  height: 38px;
  border-radius: 8px;
}

.manager-actions {
  min-width: 150px;
}

.manager-page .inline-delete {
  display: inline-flex;
}

.manager-page .inline-delete button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.order-actions,
.order-actions form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.order-actions {
  min-width: 390px;
}

.order-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #dce3ee;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.order-actions button.danger {
  border-color: #fecaca;
  color: #dc2626;
}

.order-status-received {
  background: #e0f2fe;
  color: #0369a1;
}

.order-status-preparing {
  background: #fef3c7;
  color: #92400e;
}

.order-status-ready {
  background: #dcfce7;
  color: #166534;
}

.order-status-completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.coupon-form {
  display: grid;
  grid-template-columns: 120px minmax(180px, 1fr) 140px 120px 130px 150px 120px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.coupon-form label {
  display: grid;
  gap: 5px;
}

.coupon-form label > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coupon-form input,
.coupon-form select {
  min-height: 38px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.coupon-table {
  min-width: 980px;
}

.manager-log-list {
  display: grid;
  gap: 10px;
}

.manager-log-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.manager-log-list strong {
  color: #202636;
  font-size: 13px;
}

.manager-log-list span,
.manager-empty {
  color: #7b8190;
  font-size: 12px;
  font-weight: 800;
}

.manager-login .admin-login-card {
  display: grid;
  gap: 16px;
}

.manager-login-logo {
  margin-bottom: 6px;
}

@media (max-width: 1180px) {
  .manager-app {
    grid-template-columns: 1fr;
  }

  .manager-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e7ebf2;
  }

  .manager-side-nav {
    display: flex;
    overflow-x: auto;
  }

  .manager-metric-grid,
  .manager-analytics-grid,
  .manager-quick-grid,
  .coupon-form,
  .master-stats,
  .manager-page .admin-grid-form.manager-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-access-card,
  .master-header,
  .master-toolbar form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .manager-main {
    padding: 0 14px 28px;
  }

  .manager-header {
    position: static;
    flex-direction: column;
    min-height: 0;
    margin: 0 -14px 16px;
    padding: 10px 14px;
  }

  .manager-tabs {
    gap: 16px;
  }

  .manager-tabs a {
    min-height: 42px;
    font-size: 12px;
  }

  .manager-header-actions,
  .manager-card-title {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-metric-grid,
  .manager-analytics-grid,
  .manager-quick-grid,
  .coupon-form,
  .master-stats,
  .manager-page .admin-grid-form.manager-form {
    grid-template-columns: 1fr;
  }

  .manager-page .admin-grid-form .wide {
    grid-column: auto;
  }

  .manager-hero-metric strong {
    font-size: 34px;
  }
}

.manager-page.manager-view-mode [data-manager-view][hidden] {
  display: none !important;
}

.manager-page .manager-header {
  min-height: 54px;
  margin-bottom: 16px;
}

.manager-page .manager-tabs {
  gap: 18px;
}

.manager-page .manager-tabs a {
  min-height: 54px;
  font-size: 13px;
}

.manager-page .manager-header-actions span,
.manager-page .manager-header-actions a,
.manager-page .manager-header-actions button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
}

.manager-page .manager-hero-metric {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  align-items: end;
  gap: 8px 18px;
  padding: 0 4px 14px;
}

.manager-page .manager-hero-metric strong {
  grid-row: span 2;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
}

.manager-page .manager-hero-metric p {
  margin: 0;
  align-self: center;
}

.manager-page .manager-metric-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.manager-page .manager-metric-grid article {
  min-height: 74px;
  padding: 16px;
}

.manager-page .manager-metric-grid strong {
  font-size: 24px;
}

.manager-page .manager-analytics-grid {
  gap: 14px;
  margin-bottom: 14px;
}

.manager-page .manager-chart-card {
  min-height: 290px;
  padding: 18px;
}

.manager-page .manager-bars {
  height: 200px;
}

.manager-page .manager-quick-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.manager-page .manager-quick-grid article {
  padding: 13px;
}

.manager-page .manager-card,
.manager-page .manager-access-card {
  margin-bottom: 0;
  border-radius: 12px;
}

.manager-page .manager-card {
  padding: 16px;
}

.manager-page .manager-card-title {
  margin-bottom: 12px;
}

.manager-page .manager-card-title h2 {
  font-size: 17px;
}

.manager-page .manager-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.manager-page .manager-inline-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}

.manager-page .manager-sales-board {
  min-height: calc(100vh - 92px);
}

.manager-page .manager-focus-table th,
.manager-page .manager-focus-table td {
  padding: 9px 10px;
}

.manager-page .manager-focus-table td {
  vertical-align: top;
}

.manager-page .manager-focus-table small {
  display: block;
  margin-top: 3px;
  max-width: 260px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.manager-page .owner-profile-form {
  display: block;
}

.manager-page .owner-form-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) repeat(3, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 10px;
  background: #fbfdff;
}

.manager-page .owner-form-band + .owner-form-band {
  margin-top: 12px;
}

.manager-page .owner-form-band > div {
  align-self: center;
}

.manager-page .owner-form-band > div span {
  display: block;
  margin-bottom: 4px;
  color: #ef3f4a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-page .owner-form-band > div strong {
  display: block;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.manager-page .owner-form-band .wide {
  grid-column: span 3;
}

.manager-page .owner-notify-line {
  min-height: 40px;
}

.manager-page .owner-profile-form > button {
  margin-top: 14px;
}

.manager-page .admin-table-wrap.compact {
  margin-top: 10px;
  border-radius: 8px;
}

.manager-page .admin-table th,
.manager-page .admin-table td {
  padding: 10px 12px;
}

.manager-page .coupon-form {
  grid-template-columns: 120px minmax(190px, 1fr) 140px 110px 120px 145px auto;
}

.manager-page .coupon-form .check-line {
  min-height: 38px;
}

.manager-page .manager-access-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.manager-page .manager-access-card > div {
  min-width: 0;
  flex: 1;
}

@media (max-width: 1180px) {
  .manager-page .manager-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-page .manager-hero-metric,
  .manager-page .coupon-form,
  .manager-page .owner-form-band {
    grid-template-columns: 1fr;
  }

  .manager-page .owner-form-band .wide {
    grid-column: auto;
  }

  .manager-page .manager-access-card {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-contract-pix {
    grid-template-columns: 1fr;
  }
}
