:root {
  --ink: #17343b;
  --muted: #6d7f81;
  --line: #e2e6e1;
  --paper: #f6f7f3;
  --gold: #bc9860;
  --green: #183d3c;
  --mint: #e9f1e9;
  --red: #a95050;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font:
    46px/1.1 Georgia,
    serif;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
h2 {
  font:
    29px/1.2 Georgia,
    serif;
  margin: 0 0 12px;
}
h3 {
  margin: 0 0 9px;
  font-size: 16px;
}
small {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 19px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 12px 30px;
}
.brand-mark {
  font:
    44px Georgia,
    serif;
  letter-spacing: -6px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
}
.brand-mark span {
  font: 30px Georgia;
  color: var(--gold);
  letter-spacing: 0;
  transform: translateY(-10px);
  margin-left: 3px;
}
.brand strong {
  font: 18px Georgia;
  display: block;
}
.brand small {
  font-size: 8px;
  letter-spacing: 2px;
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}
.nav-group {
  font:
    700 9px Manrope,
    sans-serif;
  letter-spacing: 1.6px;
  color: #a0aaa6;
  padding: 22px 14px 10px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 11px 13px;
  text-align: left;
  color: #6a7c7d;
  font-size: 12px;
  margin-bottom: 3px;
}
.nav-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}
.nav-button.active {
  background: var(--green);
  color: #fff;
}
.nav-button:hover:not(.active) {
  background: var(--paper);
  color: var(--ink);
}
.sidebar-bottom {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  font-size: 11px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ede7da;
  display: grid;
  place-items: center;
  color: #907442;
  font: 16px Georgia;
}
.profile div {
  overflow: hidden;
}
.profile small {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #ffffffb8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
  margin-left: 10px;
}
.topbar-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.live-dot {
  font-size: 10px;
  color: #688267;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot:before {
  content: "";
  background: #7c9a79;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 15px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.gold {
  background: #dfc698;
  color: #3f3c31;
  border: 0;
}
.button.danger {
  color: var(--red);
}
.button svg {
  width: 15px;
  height: 15px;
}
.button.small {
  padding: 7px 10px;
  font-size: 11px;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font: italic 16px Georgia;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 36px 42px 60px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font: 600 9px Manrope;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a0875e;
}
.heading p {
  margin: 12px 0 0;
  font-size: 12px;
}
.heading-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.intro-card {
  background: var(--green);
  border-radius: 12px;
  padding: 35px 37px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  position: relative;
  overflow: hidden;
}
.intro-card:after {
  content: "✳";
  position: absolute;
  right: 18px;
  top: -95px;
  font: 340px Georgia;
  color: #ffffff05;
  pointer-events: none;
}
.intro-card h2 {
  font: 35px Georgia;
  max-width: 420px;
  line-height: 1.2;
}
.intro-card p {
  color: #b6cbc5;
  font-size: 12px;
  max-width: 460px;
}
.intro-card .eyebrow {
  color: #d6bb8b;
  margin-bottom: 14px;
}
.intro-card > div {
  position: relative;
  z-index: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 24px 0 30px;
}
.stat {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
}
.stat-top svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.stat-value {
  font: 34px Georgia;
  margin: 18px 0 9px;
}
.stat small {
  font-size: 10px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 25px;
  margin-bottom: 23px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-header h3 {
  font: 21px Georgia;
  margin: 0;
}
.panel-header a {
  font-size: 10px;
  color: var(--muted);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-action {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
  color: #8f784f;
}
.quick-action strong {
  font-size: 11px;
  font-weight: 500;
}
.quick-action small {
  font-size: 9px;
  line-height: 1.5;
}
.check-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.check-row:last-child {
  border: 0;
}
.check-row .dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #5d7f59;
  font-size: 11px;
  flex-shrink: 0;
}
.check-row > div {
  flex: 1;
}
.check-row small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  background: #eaf0e8;
  color: #5d7956;
  font: 500 9px Manrope;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.badge.draft,
.badge.pending,
.badge.new,
.badge.waitlisted {
  background: #f5edde;
  color: #a1854d;
}
.badge.archived,
.badge.cancelled,
.badge.refunded {
  background: #f4e6e4;
  color: #ad6d63;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
  align-items: center;
}
.search {
  flex: 1;
  min-width: 180px;
}
.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 12px;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  background: #fafbf8;
  color: #87948d;
  padding: 15px 20px;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #edf0ea;
  vertical-align: middle;
  max-width: 500px;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.6;
}
td.actions {
  white-space: nowrap;
  text-align: right;
}
.empty {
  text-align: center;
  padding: 60px 25px;
}
.empty svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 20px;
}
.empty h3 {
  font: 25px Georgia;
}
.empty p {
  font-size: 12px;
  max-width: 400px;
  margin: 10px auto 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.item-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.item-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.item-card-body {
  padding: 22px;
}
.item-card h3 {
  font: 24px Georgia;
  line-height: 1.2;
}
.item-card p {
  font-size: 11px;
  white-space: pre-line;
}
.item-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.promo-preview {
  min-height: 180px;
  background: #e9e2d0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: var(--ink);
}
.promo-preview small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #967b44;
}
.promo-preview strong {
  font: 25px Georgia;
  margin: 13px 0;
}
.promo-preview p {
  margin: 0;
  font-size: 11px;
  color: var(--ink);
}
.guide {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  background: white;
  line-height: 1.8;
  font-size: 12px;
}
.guide p {
  margin-bottom: 0;
}
.guide a {
  color: #946f32;
  text-decoration: underline;
}
.guide ol {
  padding-left: 20px;
}
.guide li {
  margin-bottom: 10px;
}
.notice {
  background: #edeade;
  border: 1px solid #dfd8c5;
  border-radius: 8px;
  padding: 16px 19px;
  font-size: 11px;
  line-height: 1.8;
  margin: 16px 0;
  color: #7b6944;
}
.label-note {
  font: 10px/1.6 "DM Sans";
  color: var(--muted);
  margin-top: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.field {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d8dfd8;
  border-radius: 7px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  min-height: 44px;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.8;
}
.field input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  margin-right: 9px;
  vertical-align: middle;
}
.field.check {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 13px;
  font-size: 12px;
}
.image-field img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 10px;
}
.image-upload {
  margin: 10px 0;
}
.switch-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.switch-row input {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
}
.switch-row p {
  font-size: 11px;
  margin: 5px 0;
}
.payment-card {
  margin-bottom: 18px;
}
.payment-card .form-grid {
  margin-top: 24px;
}
.payment-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.payment-logo {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 16px Georgia;
  color: #907443;
  background: #faf8f0;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 25px;
  overflow: auto;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px 17px;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
}
dialog {
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  width: min(760px, 95vw);
  padding: 0;
  max-height: 92dvh;
  box-shadow: 0 35px 100px #0003;
}
dialog::backdrop {
  background: #142f3ba8;
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}
.dialog-header h2 {
  font-size: 28px;
  margin: 6px 0;
}
.dialog-header p {
  font-size: 11px;
  margin: 5px 0;
}
.dialog-body {
  padding: 28px 30px;
}
.dialog-footer {
  padding: 20px 30px;
  background: #fafbf8;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.dialog-close {
  border: 0;
  background: var(--paper);
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 19px;
}
.form-builder {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 10px;
  background: #fafbf8;
}
.form-builder h3 {
  font: 22px Georgia;
}
.builder-field {
  padding: 18px;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}
.builder-field .form-grid {
  gap: 13px;
}
.builder-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.builder-actions strong {
  font-size: 10px;
  color: var(--muted);
}
.builder-tools {
  display: flex;
  gap: 6px;
}
.form-preview {
  padding: 25px;
  border: 1px dashed var(--gold);
  background: #faf8f2;
  border-radius: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-grid small {
  font-size: 10px;
}
.detail-grid p {
  margin: 6px 0;
  font-size: 12px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--green);
  padding: 60px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.login-art .brand-mark {
  color: white;
}
.login-art h1 {
  font-size: 64px;
  line-height: 1.1;
  max-width: 480px;
}
.login-art p {
  color: #c1d1c9;
  max-width: 380px;
  font-size: 13px;
}
.login-art .big-flower {
  position: absolute;
  right: -80px;
  bottom: -100px;
  font: 480px Georgia;
  opacity: 0.04;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-box {
  width: 360px;
}
.login-box .eyebrow {
  margin-bottom: 18px;
}
.login-box h2 {
  font-size: 36px;
}
.login-box p {
  font-size: 12px;
}
.login-box form {
  margin-top: 32px;
}
.login-box .field {
  margin-bottom: 22px;
}
.login-box .button {
  width: 100%;
  padding: 13px;
}
.login-box .text-button {
  display: block;
  margin: 16px auto;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
}
.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
}
.loading-screen .brand-mark {
  justify-content: center;
}
.loading-screen p {
  font-size: 12px;
}
#bp-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 10px 35px #0002;
  max-width: 90vw;
  font-size: 12px;
  line-height: 1.8;
}
#bp-toast.error {
  background: #944c4c;
}
.mobile-toggle {
  display: none;
}
.footer-note {
  margin-top: 40px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #98a29a;
}
.busy {
  opacity: 0.5;
  pointer-events: none;
}
.break {
  overflow-wrap: anywhere;
}
.revision-row {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.revision-row p {
  font-size: 11px;
}
.page-copy {
  max-width: 500px;
  white-space: normal;
  line-height: 1.6;
}
.image-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}
.row-name {
  display: flex;
  align-items: center;
  gap: 14px;
}
.help-list {
  font-size: 13px;
  line-height: 1.9;
  padding-left: 20px;
}
.help-list li {
  margin-bottom: 14px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1650px) {
  .content {
    padding-top: 50px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 220px 1fr;
  }
  .sidebar {
    width: 220px;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .heading h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
    box-shadow: 5px 0 25px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .content {
    padding: 25px 18px 40px;
  }
  .topbar .live-dot {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 34px;
  }
  .heading p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat-value {
    font-size: 29px;
  }
  .intro-card {
    padding: 28px;
    display: block;
  }
  .intro-card h2 {
    font-size: 30px;
  }
  .intro-card .button {
    margin-top: 15px;
  }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .quick-action {
    padding: 15px 10px;
  }
  .quick-action small {
    display: none;
  }
  .panel {
    padding: 22px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .dialog-body,
  .dialog-header {
    padding: 24px;
  }
  .dialog-footer {
    padding: 18px 24px;
  }
  .login {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-form {
    min-height: 100vh;
    padding: 30px;
  }
  .topbar-actions {
    gap: 9px;
  }
  .topbar-actions .button {
    font-size: 10px;
    padding: 8px;
  }
  .table-wrap td {
    padding: 15px;
  }
  .toolbar .search {
    width: 100%;
  }
  .intro-card:after {
    right: -25px;
    top: 0;
  }
  .payment-heading h3 {
    font-size: 14px;
  }
  .content > .heading > .button {
    font-size: 11px;
  }
  .tabs button {
    font-size: 12px;
    padding: 10px;
  }
  .builder-field {
    padding: 13px;
  }
}

.panel-header > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}
.studio-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.studio-actions .button {
  white-space: nowrap;
}
.studio-quick-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 25px;
  margin-bottom: 24px;
  border: 1px solid #dce5d9;
  border-radius: 10px;
  background: #edf2e9;
}
.studio-quick-strip p {
  font-size: 12px;
  margin-bottom: 0;
}
.notification-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: #dbc59e;
  color: #25413b;
  font-size: 9px;
}
.pos-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #eeeade;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 11px;
  margin-bottom: 24px;
}
.pos-status.is-open {
  background: #e8f0e5;
  color: #4f7253;
}
.pos-status > div {
  display: flex;
  gap: 8px;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.pos-catalog .toolbar {
  margin-top: 0;
}
.pos-catalog .search {
  min-height: 47px;
}
.pos-categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 23px;
  padding-bottom: 5px;
}
.pos-categories button {
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: white;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.pos-categories button.selected {
  background: #254a43;
  color: white;
  border-color: #254a43;
}
.pos-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pos-product {
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px #14342b03;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.pos-product:hover {
  transform: translateY(-3px);
  border-color: #97b39a;
}
.pos-product:disabled {
  opacity: 0.4;
  transform: none;
}
.pos-product > img {
  width: 100%;
  height: 135px;
  object-fit: cover;
}
.pos-product > div {
  padding: 16px;
}
.pos-product strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
}
.pos-product small {
  display: block;
  font-size: 9px;
  margin: 8px 0 15px;
}
.pos-product b {
  font-size: 14px;
  color: var(--ink);
}
.pos-product-placeholder {
  display: grid;
  place-content: center;
  position: relative;
  background: radial-gradient(circle at 20% 10%, #e7ebdd, #f3eee1);
  height: 135px;
  font: 55px Georgia;
  color: #809580;
}
.pos-product-placeholder span {
  position: absolute;
  font-size: 25px;
  left: calc(50% + 17px);
  top: 35px;
  color: #b59b6b;
}
.pos-basket {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  position: sticky;
  top: 25px;
  overflow: hidden;
}
.pos-basket-title {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.pos-basket-title h2 {
  font-size: 25px;
  margin: 0;
}
.pos-basket-title > span {
  font-size: 10px;
  color: var(--muted);
}
.pos-lines {
  min-height: 250px;
  max-height: 400px;
  overflow: auto;
}
.pos-line {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eef0e9;
  gap: 14px;
}
.pos-line strong {
  font-size: 11px;
}
.pos-line small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
}
.qty button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  background: #f9faf5;
  border-radius: 5px;
  color: var(--ink);
  font-size: 16px;
}
.qty b {
  font-size: 12px;
}
.pos-empty {
  text-align: center;
  padding: 45px 30px;
}
.pos-empty > span {
  font: 40px Georgia;
  color: #c0aa80;
}
.pos-empty h3 {
  font: 24px Georgia;
  margin-top: 18px;
}
.pos-empty p {
  font-size: 11px;
}
.pos-summary {
  padding: 22px 24px;
  background: #fafbf7;
}
.pos-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}
.pos-summary .pos-grand {
  font-size: 19px;
  color: var(--ink);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.pos-pay {
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
}
.pos-summary .studio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pos-summary > small {
  font-size: 9px;
  display: block;
  text-align: center;
  margin-top: 15px;
  line-height: 1.7;
}
.checkout-total {
  padding: 25px;
  background: #edf2e8;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 25px;
}
.checkout-total small {
  letter-spacing: 2px;
  font-size: 9px;
}
.checkout-total h2 {
  font: 38px Georgia;
  margin-top: 12px;
}
.finance-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.finance-value {
  font-size: 27px;
  overflow-wrap: anywhere;
}
.finance-line {
  width: 100%;
  height: auto;
  min-height: 230px;
  max-height: 350px;
}
.finance-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 20px auto 30px;
  display: grid;
  place-items: center;
}
.finance-donut > div {
  background: white;
  border-radius: 50%;
  width: 135px;
  height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.finance-donut strong {
  font: 37px Georgia;
}
.finance-donut small {
  font-size: 9px;
  margin-top: 5px;
}
.chart-legend p,
.finance-bars p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.chart-legend p span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.finance-bars > div {
  margin: 22px 0;
}
.finance-bars > div > div {
  height: 10px;
  background: #f0f3ec;
  border-radius: 5px;
  overflow: hidden;
}
.finance-bars > div > div > span {
  height: 100%;
  background: #809e88;
  border-radius: 5px;
  display: block;
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.notification-row:last-child {
  border: 0;
}
.notification-row.unread {
  background: #f5f8f1;
  margin: 0 -10px;
  padding: 22px 10px;
  border-radius: 8px;
}
.notification-row strong {
  font-size: 13px;
}
.notification-row p {
  font-size: 11px;
  margin: 5px 0;
}
.notification-row small {
  font-size: 9px;
}
.notification-row > div {
  flex: 1;
}
.notification-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8eee1;
  display: grid;
  place-items: center;
  color: #54735a;
  font-size: 22px;
}
.weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.offline-banner {
  background: #f2e8d7;
  padding: 10px 20px;
  font-size: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 90;
}
.invoice-sheet p {
  color: inherit;
}
.invoice-sheet h2,
.invoice-sheet h3 {
  color: inherit;
}
.invoice-sheet table {
  font-size: 12px;
}
.invoice-sheet th {
  letter-spacing: 0;
  text-transform: none;
}
.invoice-sheet td {
  max-width: none;
}
.invoice-sheet small {
  color: #7d8a81;
}
#invoice-preview {
  overflow: auto;
}
#branding-form .field input[type="color"] {
  padding: 3px;
  height: 44px;
}
.finance-range .field {
  min-width: 170px;
}
#finance-range .button {
  align-self: end;
  margin-bottom: 1px;
}
@media (max-width: 1200px) {
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .pos-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-columns {
    grid-template-columns: 1fr;
  }
  .finance-value {
    font-size: 24px;
  }
}
@media (max-width: 900px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .pos-basket {
    position: relative;
    top: 0;
  }
  .pos-lines {
    min-height: 150px;
    max-height: 350px;
  }
  .pos-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-quick-strip {
    display: block;
  }
  .studio-quick-strip .studio-actions {
    margin-top: 15px;
  }
  .pos-product > img,
  .pos-product-placeholder {
    height: 115px;
  }
}
@media (max-width: 550px) {
  .pos-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pos-status {
    display: block;
  }
  .pos-status > div {
    margin-top: 12px;
  }
  .pos-product > div {
    padding: 13px;
  }
  .pos-product strong {
    font-size: 11px;
  }
  .finance-value {
    font-size: 22px;
  }
  .notification-row {
    gap: 10px;
  }
  .notification-row .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .notification-symbol {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .invoice-sheet {
    padding: 18px !important;
    min-width: 500px;
  }
  .topbar-actions [data-studio] {
    padding: 7px 10px;
    font-size: 10px;
  }
}

.workspace-hub {
  margin-bottom: 32px;
}
.workspace-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 0 0 22px;
}
.workspace-hub-header h2 {
  font:
    30px/1.25 Georgia,
    serif;
  margin: 9px 0;
}
.workspace-hub-header p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.workspace-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.workspace-hub-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 25px;
  border: 1px solid #dde5dc;
  border-radius: 16px;
  background: white;
  min-width: 0;
}
.workspace-hub-card.is-store {
  background: var(--green, #183d3c);
  color: white;
  grid-column: span 2;
}
.workspace-hub-card h3 {
  font:
    24px Georgia,
    serif;
  margin: 14px 0 10px;
}
.workspace-hub-card p {
  font-size: 12px;
  line-height: 1.75;
  color: #75877c;
  margin: 0 0 22px;
}
.workspace-hub-card.is-store p {
  color: #d1dfd0;
}
.workspace-hub-card .studio-actions {
  margin-top: auto;
  flex-wrap: wrap;
}
.workspace-hub-card .button {
  font-size: 11px;
}
.workspace-hub-card.is-store .button {
  background: #f1e4bd;
  color: #183d3c;
  border-color: #f1e4bd;
}
.workspace-hub-card > span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9c824e;
}
.workspace-hub-card.is-store > span {
  color: #e6d6a7;
}
.workspace-store-notice {
  margin: 16px 0 0;
  padding: 17px 20px;
  border-radius: 12px;
  background: #f4eddc;
  font-size: 12px;
  line-height: 1.8;
  color: #5b563c;
}
.login-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.login-capabilities span {
  font-size: 10px;
  padding: 8px 12px;
  border: 1px solid #849a8b66;
  border-radius: 20px;
  color: #dfe7dc;
}
@media (max-width: 1050px) {
  .workspace-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .workspace-hub-header {
    display: block;
  }
  .workspace-hub-header > a {
    margin-top: 15px;
  }
  .workspace-hub-grid {
    grid-template-columns: 1fr;
  }
  .workspace-hub-card.is-store {
    grid-column: auto;
  }
  .workspace-hub-card {
    padding: 22px;
  }
}

/* Keep the navigation mounted and scroll only the menu, not the brand/profile. */
.sidebar {
  overflow: hidden;
  height: 100dvh;
  padding: 26px 15px 15px;
}
.sidebar > .brand {
  flex-shrink: 0;
  padding: 0 10px 23px;
}
.sidebar > nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #bac6bc transparent;
}
.sidebar > .sidebar-bottom {
  flex-shrink: 0;
  padding-top: 15px;
  margin-top: 12px;
  background: #fff;
}
