.sidebar {
  background: #123f4d;
}

.side-nav button.active {
  background: rgba(255, 255, 255, 0.16);
}

.merchant-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.7fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(242, 107, 75, 0.16), transparent 27rem),
    linear-gradient(135deg, #edf5f2, #faf4ea);
}

.merchant-login[hidden] {
  display: none;
}

.load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  border: 1px solid #f1c2b8;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fdeae5;
  color: #b0472f;
  font-size: 12px;
}

.load-error[hidden] {
  display: none;
}

.merchant-login .login-visual {
  background:
    linear-gradient(140deg, rgba(242, 107, 75, 0.13), transparent 42%),
    var(--deep);
}

.merchant-login .login-visual::after {
  border-color: rgba(124, 199, 168, 0.6);
}

.merchant-login .login-submit {
  background: var(--teal);
}

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

.merchant-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: white;
}

.merchant-panel h2 {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 18px;
}

.merchant-panel > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric-strip div {
  border-radius: 14px;
  padding: 14px;
  background: #f4f8f6;
}

.metric-strip b {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 21px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 10px;
}

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

.queue-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: #f5f8f7;
}

.queue-row time {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.queue-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.queue-row span {
  color: var(--muted);
  font-size: 10px;
}

.form-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fbfdfc;
}

.form-section > h3,
.form-section-head h3 {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 15px;
}

.form-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.form-section-head h3 {
  margin: 0;
}

.sku-row-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  border-radius: 13px;
  padding: 10px;
  background: white;
}

.sku-row-form .field label {
  font-size: 9px;
}

.sku-row-form .field input {
  min-width: 0;
  padding: 9px;
}

.sku-remove {
  justify-self: end;
  border: 0;
  border-radius: 9px;
  width: 32px;
  height: 36px;
  background: #fdeae5;
  color: #b0472f;
  font-size: 18px;
}

.category-tree {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.category-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 12px;
}

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

.category-tree-row.primary {
  background: #f5f8f7;
}

.category-tree-row.child {
  padding-left: 28px;
}

.category-tree-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-tree-row > span {
  color: var(--muted);
  font-size: 10px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.product-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

.product-thumb.placeholder {
  display: grid;
  place-items: center;
  background: var(--cream);
  font-size: 23px;
}

@media (max-width: 900px) {
  .merchant-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .sku-remove {
    width: 100%;
    height: 32px;
  }
}

@media (max-width: 820px) {
  .merchant-login {
    display: block;
    background: var(--cream);
  }
}

/* Shared merchant login layout. Kept here so the merchant page does not depend on property.css. */
.login-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 110px);
  background:
    linear-gradient(140deg, rgba(124, 199, 168, 0.12), transparent 45%),
    var(--deep);
  color: white;
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 82px solid rgba(242, 107, 75, 0.72);
}

.login-visual > img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.login-visual > span {
  display: inline-block;
  margin: 36px 0 14px;
  color: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-visual h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.15;
}

.login-visual p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

.login-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.login-flow span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.07);
}

.login-flow i {
  color: var(--orange);
  font-style: normal;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 62px;
}

.login-card > img {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 15px;
}

.login-card h2 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 34px;
}

.login-card > p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.login-card .field {
  margin-bottom: 14px;
}

.login-card .field input {
  padding: 14px;
  background: white;
}

.login-card .auth-step[hidden] {
  display: none;
}

.login-card .auth-step .phone-mask {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: #f7fbf9;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.login-card .auth-step .step-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.login-card .auth-step .step-actions .login-submit {
  flex: 1;
  margin-top: 0;
}

.login-card .auth-step .step-actions .button-outline {
  min-width: 86px;
}

.login-card .auth-step .resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.login-submit {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  color: white;
  font-weight: 700;
}

.login-activate {
  margin-top: 14px;
  border: 1px solid rgba(37, 108, 96, 0.22);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--teal);
  background: rgba(156, 211, 183, 0.12);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.login-activate:hover {
  background: rgba(156, 211, 183, 0.22);
}

.login-back {
  margin-top: 24px;
  color: var(--teal);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.login-error {
  min-height: 18px;
  margin: 2px 0 4px !important;
  color: #c34d35 !important;
  font-size: 12px !important;
}

@media (max-width: 820px) {
  .login-visual {
    padding: 32px 22px;
  }

  .login-visual h1 {
    margin-top: 20px;
    font-size: 36px;
  }

  .login-visual p {
    display: none;
  }

  .login-flow {
    margin-top: 24px;
  }

  .login-card {
    max-width: none;
    padding: 34px 25px 55px;
  }

  .login-card > img {
    display: none;
  }
}
