:root {
  color-scheme: dark;
  --bg: #0c0e10;
  --panel: #191817;
  --ink: #f8f5ee;
  --muted: #b9afa0;
  --line: rgba(216, 162, 71, 0.24);
  --brand: #d8a247;
  --brand-dark: #b98226;
  --red: #e4b04a;
  --bubble-in: #211f1c;
  --bubble-out: #3a2d17;
}

.account-space {
  animation: universe-panel-in 320ms ease both;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 600px;
  padding-bottom: 22px;
}

.account-space-hero {
  background: linear-gradient(135deg, rgba(228, 35, 35, 0.09), rgba(255, 255, 255, 0.96) 44%);
  border: 1px solid #eee8e6;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(34, 23, 20, 0.07);
  overflow: hidden;
  padding: 34px 30px 28px;
  position: relative;
}

.account-space-hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  margin: 14px 0 10px;
}

.account-space-hero p,
.account-card-heading p {
  color: var(--muted);
  margin: 0;
}

.account-card {
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(34, 23, 20, 0.06);
  padding: 26px;
}

.account-card-heading,
.account-security-card summary {
  align-items: center;
  display: flex;
  gap: 14px;
}

.account-card-heading {
  margin-bottom: 22px;
}

.account-card-heading h2,
.account-card-summary-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.account-card-heading p,
.account-card-summary-copy small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.account-card-symbol {
  align-items: center;
  background: #fff0f0;
  border-radius: 50%;
  color: var(--brand);
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.account-card-symbol svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.account-form label {
  gap: 8px;
  margin: 18px 0;
}

.account-form input,
.account-form select {
  border-color: #dedad8;
  border-radius: 10px;
  font-size: 14px;
  min-height: 48px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-form input:focus,
.account-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
  outline: 0;
}

.account-form small,
.account-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.account-primary-button {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.account-primary-button:hover {
  background: var(--brand-dark);
}

.account-primary-button:active {
  transform: scale(0.98);
}

.account-primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-security-card {
  padding: 0;
}

.account-security-card summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
}

.account-security-card summary::-webkit-details-marker {
  display: none;
}

.account-card-summary-copy {
  min-width: 0;
}

.account-security-action {
  color: var(--brand);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.account-security-card[open] .account-security-action {
  visibility: hidden;
}

.account-danger-card {
  border-color: #f0dddd;
}

.account-danger-symbol {
  background: #fff0f0;
  color: var(--brand-dark);
}

.account-danger-button {
  background: var(--brand-dark);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.account-control-room-card {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 14px;
  padding: 20px 26px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-control-room-card:hover,
.account-control-room-card:focus-visible {
  border-color: rgba(228, 35, 35, 0.32);
  box-shadow: 0 18px 38px rgba(34, 23, 20, 0.09);
  transform: translateY(-1px);
}

.account-control-symbol {
  background: #171515;
  color: #fff;
}

.account-danger-button:hover {
  background: #8f0f13;
}

.account-danger-button:active {
  transform: scale(0.98);
}

.account-security-form {
  border-top: 1px solid var(--line);
  padding: 6px 24px 24px;
}

.account-helper {
  margin: 16px 0 4px;
}

.account-otp-form {
  border-color: #f0dddd;
}

.account-otp-panel {
  background: #faf9f8;
  border: 1px solid #ece7e4;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 14px;
}

.account-otp-panel strong {
  color: var(--ink);
  font-size: 14px;
}

.account-otp-panel label {
  margin: 8px 0 0;
}

.account-back-link {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
  text-decoration: none;
}

@media (max-width: 640px) {
  .account-space {
    gap: 14px;
  }

  .account-space-hero {
    border-radius: 16px;
    padding: 28px 20px 22px;
  }

  .account-card {
    border-radius: 16px;
    padding: 20px;
  }

  .account-security-card {
    padding: 0;
  }

  .account-security-card summary {
    align-items: flex-start;
    padding: 18px;
  }

  .account-security-form {
    padding: 4px 18px 20px;
  }

  .account-security-action {
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f1efee;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

body.chat-page {
  height: 100vh;
  overflow: hidden;
}

body.chat-page .topbar {
  display: none;
}

body.inbox-page .topbar {
  display: none;
}

body.inbox-page .shell {
  max-width: none;
  padding: 0 0 68px;
}

.topbar {
  align-items: center;
  background: #111111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.topbar form {
  align-items: center;
  display: flex;
  gap: 12px;
}

.topbar-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-left: auto;
  margin-right: 22px;
}

.topbar-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.notification-nav-button,
.bottom-notification-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  justify-items: center;
  padding: 0;
  position: relative;
}

.notification-nav-button {
  height: 38px;
  width: 38px;
}

.notification-nav-button svg,
.bottom-notification-button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.notification-nav-button em,
.bottom-notification-button em {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: -3px;
  top: -2px;
}

.bottom-notification-button em {
  right: calc(50% - 22px);
  top: 1px;
}

.topbar-nav .nav-primary {
  background: var(--brand);
  border-radius: 6px;
  padding: 9px 13px;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 20px 100px;
}

.chat-shell {
  display: grid;
  height: calc(100vh - 68px);
  max-width: none;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.chat-shell .notice {
  left: 50%;
  margin: 0;
  max-width: calc(100% - 32px);
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  width: 520px;
  z-index: 5;
}

.game-modal-backdrop {
  align-items: center;
  animation: modal-fade-in 180ms ease both;
  background: rgba(23, 21, 21, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 80;
}

.game-modal-backdrop[hidden] {
  display: none;
}

.game-modal-backdrop[data-live-flash-modal] {
  z-index: 220;
}

.game-modal {
  animation: modal-pop-in 220ms cubic-bezier(0.2, 0.9, 0.2, 1.12) both;
  background: #fff;
  border: 1px solid #f0dddd;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(23, 21, 21, 0.22);
  max-width: 360px;
  outline: 0;
  padding: 28px;
  position: relative;
  text-align: center;
  width: min(100%, 360px);
}

.game-modal::before {
  background: linear-gradient(90deg, var(--brand), #ff9d9d, transparent);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.game-modal-rank {
  align-items: center;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 50%;
  color: var(--brand);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin: 0 auto 14px;
  width: 52px;
}

.game-modal-rank.is-success {
  background: #eefaf2;
  border-color: #cdeed8;
  color: #18834a;
  position: relative;
  animation: success-pop 680ms cubic-bezier(0.18, 1.35, 0.32, 1) both;
}

.game-modal-rank.is-success::after {
  border: 2px solid rgba(24, 131, 74, 0.34);
  border-radius: inherit;
  content: "";
  inset: -7px;
  opacity: 0;
  position: absolute;
  animation: success-ring 920ms ease-out 100ms both;
}

.game-modal-eyebrow {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.game-modal h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.game-modal p:not(.game-modal-eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.game-modal button {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 18px;
  min-height: 46px;
  padding: 12px 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.game-modal button:hover,
.game-modal button:focus-visible {
  background: var(--brand-dark);
  outline: 0;
}

.game-modal button:active {
  transform: scale(0.98);
}

.notification-modal-backdrop {
  align-items: center;
  background: rgba(23, 21, 21, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 140;
}

.notification-modal-backdrop[hidden] {
  display: none;
}

.notification-modal {
  animation: modal-pop-in 220ms cubic-bezier(0.2, 0.9, 0.2, 1.12) both;
  background: #fff;
  backdrop-filter: blur(12px) saturate(1.08);
  border: 1px solid #f0dddd;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(23, 21, 21, 0.22);
  max-height: min(82vh, 680px);
  max-width: 430px;
  overflow: auto;
  padding: 24px;
  position: relative;
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  width: min(100%, 430px);
}

.notification-modal:focus {
  outline: none;
}

.notification-modal-close {
  align-items: center;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
}

.notification-modal-head {
  display: grid;
  justify-items: center;
  padding: 8px 38px 14px;
  text-align: center;
}

.notification-modal-head .game-modal-rank svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.notification-modal-head h2 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0;
}

.push-notification-card {
  align-items: center;
  background: #fff7f7;
  border: 1px solid #f0d1d1;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
  padding: 13px;
}

.push-notification-card strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.push-notification-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.push-notification-card button {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.push-notification-card button:disabled {
  background: #7b7777;
  cursor: default;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-list article,
.notification-list a {
  background: #faf8f7;
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 5px;
  padding: 13px;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
}

.notification-list article.is-unread,
.notification-list a.is-unread {
  border-color: #f0b9b9;
  box-shadow: inset 4px 0 0 var(--brand);
}

.notification-list a.is-pinned {
  border-color: #d7ad45;
  box-shadow: inset 4px 0 0 #d7ad45;
}

.notification-list a:hover,
.notification-list a:focus-visible {
  border-color: #efb8b8;
  outline: 0;
  transform: translateY(-1px);
}

.notification-list strong {
  color: var(--ink);
  font-size: 14px;
}

.notification-list p,
.notification-list small {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.notification-list small {
  font-size: 11px;
}

.notification-modal-action {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-top: 16px;
  min-height: 46px;
  width: 100%;
}

.login-panel,
.list,
.thread,
.reply,
.page-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel {
  background: #fff;
  border-color: #e8e5e4;
  margin: 64px auto;
  max-width: 420px;
  padding: 30px;
}

.auth-panel-wide {
  max-width: 520px;
}

.auth-brand {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.auth-brand b {
  color: #272222;
  font-weight: 700;
}

.login-panel h1 {
  color: #171515;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-note {
  color: #746f6c;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.game-status-strip {
  align-items: center;
  color: #7c7471;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.game-status-strip span {
  background: #fff5f5;
  border: 1px solid #f1dddd;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.auth-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.auth-actions a {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.phone-field,
.compact-phone-field {
  display: grid;
  gap: 8px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 52px;
  width: 100%;
}

.login-panel .password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6d6865;
  cursor: pointer;
  display: flex;
  font-size: 19px;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  background: #f5f2f0;
  color: var(--brand);
}

label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px;
}

p {
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.login-panel input,
.login-panel select {
  border-color: #dedad8;
  border-radius: 8px;
  font-size: 14px;
  min-height: 46px;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input:focus,
.login-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
  outline: 0;
}

.login-panel button {
  background: var(--brand);
  color: #fff;
}

.login-panel button:hover {
  background: var(--brand-dark);
}

.universe-register {
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(34, 23, 20, 0.08);
  overflow: visible;
  padding: 36px;
  position: relative;
}

.universe-accent {
  background: linear-gradient(90deg, rgba(228, 35, 35, 0.95), rgba(228, 35, 35, 0.16), transparent);
  border-radius: 18px 18px 0 0;
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.universe-register .auth-brand {
  margin-bottom: 16px;
}

.universe-login {
  animation: universe-panel-in 320ms ease both;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(34, 23, 20, 0.08);
  overflow: hidden;
  padding: 36px;
  position: relative;
}

.universe-login h1 {
  font-size: 38px;
  line-height: 1.04;
  margin-bottom: 12px;
}

.universe-login .auth-note {
  font-size: 15px;
  margin-bottom: 26px;
}

.universe-login label {
  gap: 9px;
  margin: 20px 0;
}

.login-universe-actions {
  margin-top: 26px;
}

.login-universe-actions button,
.universe-actions button {
  box-shadow: 0 10px 18px rgba(228, 35, 35, 0.16);
  min-height: 52px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-universe-actions button:hover,
.universe-actions button:hover {
  box-shadow: 0 12px 24px rgba(179, 19, 23, 0.2);
  transform: translateY(-1px);
}

.login-microcopy {
  color: #77716f;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-universe-actions a {
  line-height: 1.55;
}

.login-universe-actions strong {
  color: var(--brand);
}

.forgot-link {
  color: var(--brand-dark);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 2px;
  text-align: right;
  text-decoration: none;
}

@keyframes universe-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-step {
  align-items: center;
  color: #817976;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.auth-step strong {
  background: #fff0f0;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  padding: 6px 9px;
}

.auth-step b {
  color: var(--brand);
}

.universe-register h1 {
  font-size: 38px;
  line-height: 1.04;
  margin-bottom: 12px;
}

.universe-register .auth-note {
  font-size: 15px;
  margin-bottom: 26px;
}

.universe-register label {
  gap: 9px;
  margin: 20px 0;
}

.universe-register label small {
  color: #77716f;
}

.country-picker {
  min-width: 0;
  position: relative;
}

.country-native-select {
  display: none;
}

.country-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 7px;
  height: 100%;
  justify-content: flex-start;
  min-height: 46px;
  padding: 8px 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.login-panel .country-trigger,
.account-form .country-trigger,
.settings-card .country-trigger,
.new-chat-dialog .country-trigger {
  background: #fff;
  box-shadow: none;
  color: #171515;
}

.country-trigger:hover,
.country-trigger:focus-visible {
  background: #fff;
  border-color: #bcb6b3;
  box-shadow: 0 0 0 3px rgba(23, 21, 21, 0.06);
  outline: 0;
}

.login-panel .country-trigger:hover,
.login-panel .country-trigger:focus-visible,
.account-form .country-trigger:hover,
.account-form .country-trigger:focus-visible,
.settings-card .country-trigger:hover,
.settings-card .country-trigger:focus-visible,
.new-chat-dialog .country-trigger:hover,
.new-chat-dialog .country-trigger:focus-visible {
  background: #fff;
  border-color: #bcb6b3;
  box-shadow: 0 0 0 3px rgba(23, 21, 21, 0.06);
  color: #171515;
  transform: none;
}

.country-caret {
  color: #827b78;
  margin-left: auto;
}

.country-menu {
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(32, 21, 18, 0.14);
  left: 0;
  overflow: hidden;
  padding: 8px;
  position: absolute;
  top: calc(100% + 7px);
  width: min(340px, calc(100vw - 58px));
  z-index: 12;
}

.country-search {
  margin-bottom: 6px;
}

.country-options {
  max-height: 260px;
  overflow-y: auto;
}

.country-option {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  grid-template-columns: 24px 52px minmax(0, 1fr);
  padding: 10px 8px;
  text-align: left;
  width: 100%;
}

.login-panel .country-option,
.account-form .country-option,
.settings-card .country-option,
.new-chat-dialog .country-option {
  background: #fff;
  color: var(--ink);
}

.country-option:hover,
.country-option:focus-visible,
.country-option[aria-selected="true"] {
  background: #f4f3f2;
  color: #171515;
  outline: 0;
}

.login-panel .country-option:hover,
.login-panel .country-option:focus-visible,
.login-panel .country-option[aria-selected="true"],
.account-form .country-option:hover,
.account-form .country-option:focus-visible,
.account-form .country-option[aria-selected="true"],
.settings-card .country-option:hover,
.settings-card .country-option:focus-visible,
.settings-card .country-option[aria-selected="true"],
.new-chat-dialog .country-option:hover,
.new-chat-dialog .country-option:focus-visible,
.new-chat-dialog .country-option[aria-selected="true"] {
  background: #f4f3f2;
  box-shadow: none;
  color: #171515;
  transform: none;
}

.country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag {
  font-size: 18px;
}

.login-panel .phone-field input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(216, 162, 71, 0.38);
  color: #171515;
}

.login-panel .phone-field input::placeholder {
  color: #6f6863;
  opacity: 1;
}

.login-panel .country-trigger {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(216, 162, 71, 0.38);
  color: #171515;
}

.login-panel .country-trigger:hover,
.login-panel .country-trigger:focus-visible {
  background: #fff8e8;
  border-color: #d8a247;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.18);
  color: #171515;
}

.login-panel [data-country-code],
.login-panel .country-option-code {
  color: #5f3a07;
  font-weight: 900;
}

.login-panel .country-caret {
  color: #5f3a07;
}

.login-panel .country-menu {
  background: #fffaf0;
  border-color: rgba(216, 162, 71, 0.42);
  color: #171515;
}

.login-panel .country-search {
  background: #fff;
  border-color: rgba(216, 162, 71, 0.36);
  color: #171515;
}

.login-panel .country-search::placeholder {
  color: #756b61;
  opacity: 1;
}

.login-panel .country-option {
  background: transparent;
  color: #171515;
}

.login-panel .country-option:hover,
.login-panel .country-option:focus-visible,
.login-panel .country-option[aria-selected="true"] {
  background: rgba(216, 162, 71, 0.16);
  color: #171515;
}

.login-panel .password-toggle {
  color: #6a5a40;
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  background: rgba(216, 162, 71, 0.14);
  color: #5f3a07;
}

.universe-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.universe-actions button {
  border-radius: 9px;
  min-height: 50px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.universe-actions button:active {
  transform: scale(0.98);
}

.universe-actions button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.universe-actions a {
  text-align: center;
}

button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #07130b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
}

.home-page .shell {
  background: #08090b;
  min-height: 100svh;
  max-width: none;
  padding: 0 0 78px;
}

.home-page .topbar {
  display: none;
}

.home-screen {
  background:
    radial-gradient(circle at 72% 18%, rgba(212, 155, 62, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(19, 22, 25, 0.98), rgba(8, 9, 10, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    #0c0e10;
  color: #f7f1e6;
  display: grid;
  gap: 46px;
  margin: 0 auto;
  max-width: none;
  min-height: calc(100svh - 78px);
  overflow: hidden;
  padding: 28px clamp(20px, 6vw, 72px) 46px;
}

.home-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
}

.home-logo {
  display: block;
  height: auto;
  max-width: 230px;
  width: 42vw;
}

.home-profile-link {
  color: #f7f1e6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-intro {
  align-self: center;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
}

.home-kicker {
  color: #d49b3e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-intro h1 {
  color: #f7f1e6;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 780px;
}

.home-intro > p:not(.home-kicker):not(.home-login-note) {
  color: rgba(247, 241, 230, 0.68);
  font-size: 18px;
  margin: 0;
  max-width: 570px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
}

.primary-link {
  background: linear-gradient(135deg, #f1c66f, #c88624);
  color: #111315;
}

.secondary-link {
  border: 1px solid rgba(212, 155, 62, 0.46);
  color: #f7f1e6;
}

.home-login-note {
  color: rgba(247, 241, 230, 0.62);
  font-size: 13px;
  margin: 18px 0 0;
}

.home-login-note a {
  color: #f1c66f;
  font-weight: 700;
  text-decoration: none;
}

.home-world-cup-banner {
  background: #111315;
  border: 1px solid rgba(212, 155, 62, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  display: block;
  line-height: 0;
  margin: 0 auto;
  max-width: 1280px;
  overflow: hidden;
  text-decoration: none;
  width: 100%;
}

.home-world-cup-banner img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.world-cup-page .shell {
  max-width: none;
  padding: 0 0 92px;
}

.world-cup-hub {
  background:
    radial-gradient(circle at 48% 14%, rgba(210, 157, 54, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(16, 18, 20, 0.96), rgba(8, 9, 10, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    #0c0e10;
  color: #fff;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.world-cup-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.6fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: min(760px, calc(100vh - 64px));
  padding: clamp(38px, 7vw, 86px) clamp(20px, 5vw, 62px);
  position: relative;
}

.world-cup-hero::after {
  background:
    linear-gradient(90deg, rgba(212, 158, 59, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(120deg, transparent 0%, #000 38%, transparent 86%);
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.world-cup-copy,
.world-cup-scoreboard,
.world-cup-panel,
.world-cup-live-room {
  position: relative;
  z-index: 1;
}

.world-cup-kicker {
  color: #d8a247;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.world-cup-copy h1 {
  font-size: clamp(44px, 8vw, 88px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 860px;
  text-transform: none;
}

.world-cup-catalog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 24px;
  max-width: 860px;
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.58) rotate(-10deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes success-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.world-cup-catalog-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.world-cup-catalog-thumb {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.world-cup-catalog-thumb img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  transition: filter 180ms ease, transform 220ms ease;
  width: 100%;
}

.world-cup-catalog-thumb:hover img,
.world-cup-catalog-thumb:focus-visible img {
  filter: brightness(1.08) saturate(1.08);
  transform: scale(1.025);
}

.world-cup-catalog-card div {
  align-items: start;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.world-cup-catalog-card span {
  color: #d8a247;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.world-cup-catalog-card strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.world-cup-catalog-card a {
  align-items: center;
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 8px;
  color: #111315;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.world-cup-catalog-card a:hover,
.world-cup-catalog-card a:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.world-cup-modal-open {
  overflow: hidden;
}

.world-cup-catalog-modal {
  align-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 209, 124, 0.2), transparent 34%),
    rgba(5, 6, 8, 0.82);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: clamp(16px, 4vw, 36px);
  position: fixed;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 80;
}

.world-cup-catalog-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.world-cup-catalog-modal[hidden] {
  display: none;
}

.world-cup-catalog-summon {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(244, 209, 124, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(244, 209, 124, 0.28),
    inset 0 0 34px rgba(244, 209, 124, 0.16);
  max-height: 76vh;
  max-width: min(76vh, 92vw);
  opacity: 0;
  position: absolute;
  transform: scale(0.48) rotate(0deg);
  width: 720px;
}

.world-cup-catalog-modal.is-open .world-cup-catalog-summon {
  animation: worldCupSummonRing 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.world-cup-catalog-modal-card {
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(49, 39, 20, 0.94));
  border: 1px solid rgba(244, 209, 124, 0.52);
  border-radius: 8px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 0;
  max-height: calc(100vh - 32px);
  max-width: min(760px, 94vw);
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.86);
  width: min(760px, 94vw);
}

.world-cup-catalog-modal.is-open .world-cup-catalog-modal-card {
  animation: worldCupCatalogSummon 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.world-cup-catalog-modal-card::before {
  background: linear-gradient(115deg, transparent 18%, rgba(255, 239, 171, 0.35) 48%, transparent 74%);
  content: "";
  height: 140%;
  left: -80%;
  position: absolute;
  top: -20%;
  transform: rotate(12deg);
  width: 46%;
  z-index: 2;
}

.world-cup-catalog-modal.is-open .world-cup-catalog-modal-card::before {
  animation: worldCupCatalogShine 920ms ease-out 120ms both;
}

.world-cup-catalog-modal-close {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(244, 209, 124, 0.38);
  border-radius: 999px;
  color: #f4d17c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 14px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

.world-cup-catalog-modal-image {
  background: #050506;
  border: 0;
  cursor: zoom-out;
  display: block;
  padding: 0;
}

.world-cup-catalog-modal-image img {
  aspect-ratio: 1 / 1;
  display: block;
  max-height: min(72vh, 760px);
  object-fit: contain;
  width: 100%;
}

.world-cup-catalog-modal-body {
  align-items: center;
  background: rgba(8, 8, 9, 0.92);
  border-top: 1px solid rgba(244, 209, 124, 0.24);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px;
  position: relative;
  z-index: 3;
}

.world-cup-catalog-modal-body span {
  color: #d8a247;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.world-cup-catalog-modal-body strong {
  color: #fff;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
}

.world-cup-catalog-modal-body a {
  align-items: center;
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 8px;
  color: #111315;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  min-width: min(300px, 100%);
  padding: 0 18px;
  text-decoration: none;
}

@keyframes worldCupCatalogSummon {
  0% {
    filter: brightness(1.8) blur(8px);
    opacity: 0;
    transform: translateY(42px) scale(0.72) rotateX(18deg);
  }
  58% {
    filter: brightness(1.28) blur(0);
    opacity: 1;
    transform: translateY(-8px) scale(1.035) rotateX(0deg);
  }
  100% {
    filter: brightness(1);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes worldCupSummonRing {
  0% {
    opacity: 0;
    transform: scale(0.34) rotate(0deg);
  }
  38% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(145deg);
  }
}

@keyframes worldCupCatalogShine {
  from {
    left: -80%;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  to {
    left: 130%;
    opacity: 0;
  }
}

.world-cup-copy p:not(.world-cup-kicker),
.world-cup-live-room p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin: 0;
  max-width: 670px;
}

.world-cup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.world-cup-hub .primary-link {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315;
}

.world-cup-soundtrack-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 209, 124, 0.42);
  border-radius: 8px;
  color: #f4d17c;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.world-cup-soundtrack-toggle:hover,
.world-cup-soundtrack-toggle:focus-visible {
  background: rgba(244, 209, 124, 0.12);
  border-color: rgba(244, 209, 124, 0.68);
  transform: translateY(-1px);
}

.world-cup-soundtrack-toggle.is-playing {
  background: linear-gradient(135deg, rgba(244, 209, 124, 0.22), rgba(185, 130, 38, 0.2));
  box-shadow: 0 0 0 1px rgba(244, 209, 124, 0.18), 0 0 28px rgba(244, 209, 124, 0.18);
}

.world-cup-soundtrack-toggle.is-playing::after {
  animation: worldCupSoundPulse 1200ms ease-out infinite;
  border: 1px solid rgba(244, 209, 124, 0.4);
  border-radius: inherit;
  content: "";
  inset: -4px;
  position: absolute;
}

@keyframes worldCupSoundPulse {
  from {
    opacity: 0.8;
    transform: scale(0.98);
  }
  to {
    opacity: 0;
    transform: scale(1.18);
  }
}

.world-cup-hub .secondary-link {
  border-color: rgba(216, 162, 71, 0.34);
  color: #fff;
}

.world-cup-scoreboard {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(216, 162, 71, 0.07));
  border: 1px solid rgba(216, 162, 71, 0.36);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 24px;
  padding: 26px;
}

.world-cup-scoreboard span,
.world-cup-match-list span {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 999px;
  color: #111315;
  font-size: 11px;
  font-weight: 800;
  justify-self: start;
  padding: 7px 10px;
  text-transform: uppercase;
}

.world-cup-scoreboard strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.world-cup-scoreboard div {
  border-top: 1px solid rgba(216, 162, 71, 0.28);
  display: grid;
  gap: 5px;
  padding-top: 18px;
}

.world-cup-scoreboard small,
.world-cup-match-list small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.world-cup-panel,
.world-cup-live-room {
  margin: 0 auto;
  max-width: 1240px;
  padding: 12px clamp(20px, 5vw, 62px) 58px;
}

.world-cup-section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.world-cup-section-head h2,
.world-cup-live-room h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
  margin: 0;
  max-width: 760px;
  text-transform: none;
}

.world-cup-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.world-cup-feature-grid article,
.world-cup-match-list article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(216, 162, 71, 0.045));
  border: 1px solid rgba(216, 162, 71, 0.24);
  border-radius: 8px;
  padding: 18px;
}

.world-cup-feature-grid span {
  color: #d8a247;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 26px;
}

.world-cup-feature-grid h3 {
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: none;
}

.world-cup-feature-grid p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  margin: 0;
}

.world-cup-match-list {
  display: grid;
  gap: 10px;
}

.world-cup-playbook-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(240px, 0.72fr);
}

.world-cup-playbook-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(216, 162, 71, 0.045));
  border: 1px solid rgba(216, 162, 71, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.world-cup-playbook-grid span {
  color: #f0c66c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.world-cup-prize-card strong {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.world-cup-prize-card ul,
.world-cup-rules-card ol {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.world-cup-prize-card li {
  align-items: center;
  border-top: 1px solid rgba(216, 162, 71, 0.18);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.world-cup-prize-card b,
.world-cup-rules-card li {
  color: #fff;
  font-size: 14px;
}

.world-cup-prize-card small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  text-align: right;
}

.world-cup-rules-card li {
  line-height: 1.45;
}

.world-cup-playbook-cta {
  align-self: end;
  color: #f0c66c;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.world-cup-points-card div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.world-cup-points-card b {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.world-cup-points-card small {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 999px;
  color: #111315;
  font-size: 12px;
  font-weight: 900;
  min-width: 32px;
  padding: 4px 9px;
  text-align: center;
}

.world-cup-leaderboard {
  display: grid;
  gap: 8px;
}

.world-cup-rank-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(216, 162, 71, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 12px;
}

.world-cup-rank-card[hidden] {
  display: none;
}

.world-cup-rank-card.is-podium {
  border-color: rgba(244, 209, 124, 0.32);
}

.world-cup-rank-badge {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.world-cup-rank-badge.is-medal {
  height: 38px;
  width: 38px;
}

.world-cup-rank-badge.is-medal img {
  display: block;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.world-cup-rank-badge.is-number {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 999px;
  color: #111315;
  font-size: 12px;
  font-weight: 900;
  min-height: 32px;
  min-width: 32px;
  padding: 0 8px;
}

.world-cup-rank-card strong {
  color: #fff;
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.world-cup-rank-card small {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 11px;
  margin-top: 1px;
}

.world-cup-rank-points {
  justify-self: end;
  position: relative;
}

.world-cup-rank-points summary {
  background: rgba(216, 162, 71, 0.12);
  border: 1px solid rgba(216, 162, 71, 0.28);
  border-radius: 999px;
  color: #f0c66c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  padding: 7px 11px;
  white-space: nowrap;
}

.world-cup-rank-points summary::-webkit-details-marker {
  display: none;
}

.world-cup-rank-points ul {
  background: rgba(18, 17, 14, 0.98);
  border: 1px solid rgba(216, 162, 71, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 100%;
  width: min(340px, 82vw);
  z-index: 8;
}

.world-cup-rank-points li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
}

.world-cup-rank-points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.world-cup-rank-points li span {
  color: #f0c66c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.world-cup-rank-points li b {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.world-cup-rank-points li small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  margin: 0;
}

.world-cup-rank-more,
.world-cup-load-more {
  background: transparent;
  border: 1px solid rgba(216, 162, 71, 0.46);
  border-radius: 8px;
  color: #f0c66c;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  margin: 18px auto 0;
  min-height: 48px;
  padding: 0 20px;
}

.world-cup-load-more:hover,
.world-cup-load-more:focus-visible,
.world-cup-rank-more:hover,
.world-cup-rank-more:focus-visible {
  background: rgba(216, 162, 71, 0.12);
}

.world-cup-upcoming {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(216, 162, 71, 0.06));
  border: 1px solid rgba(216, 162, 71, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
}

.world-cup-upcoming > div:first-child {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.world-cup-upcoming strong {
  color: #fff;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.1;
}

.world-cup-upcoming-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.world-cup-upcoming-list a {
  align-items: center;
  background: rgba(17, 19, 21, 0.58);
  border: 1px solid rgba(216, 162, 71, 0.24);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 14px;
  text-decoration: none;
}

.world-cup-upcoming-list a:hover,
.world-cup-upcoming-list a:focus-visible {
  border-color: rgba(244, 209, 124, 0.68);
  transform: translateY(-1px);
}

.world-cup-upcoming-list time {
  color: #d8a247;
  display: grid;
  font-weight: 900;
  gap: 2px;
}

.world-cup-upcoming-list time small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.world-cup-upcoming-teams {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.world-cup-upcoming-teams img {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 50%;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.world-cup-upcoming-teams b {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.world-cup-upcoming-teams em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.world-cup-countdown,
.world-cup-match-countdown {
  background: rgba(216, 162, 71, 0.13);
  border: 1px solid rgba(216, 162, 71, 0.28);
  border-radius: 999px;
  color: #f0c66c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  line-height: 1.2;
  padding: 7px 10px;
}

.world-cup-match-countdown {
  margin-top: 8px;
}

.world-cup-countdown.is-closed,
.world-cup-match-countdown.is-closed {
  color: rgba(255, 255, 255, 0.62);
}

.world-cup-countdown:empty {
  visibility: hidden;
}

.world-cup-match-list article {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.world-cup-match-list time {
  color: #d8a247;
  display: grid;
  gap: 3px;
  font-weight: 800;
}

.world-cup-match-list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.world-cup-teams {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.world-cup-teams span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.world-cup-teams b {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.world-cup-teams img {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 50%;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.world-cup-match-list em {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.world-cup-prediction-thread {
  grid-column: 1 / -1;
}

.world-cup-prediction-thread summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 162, 71, 0.22);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  margin-top: 2px;
  padding: 12px 0 0;
}

.world-cup-prediction-thread summary::-webkit-details-marker {
  display: none;
}

.world-cup-prediction-thread summary b {
  color: #fff;
  font-size: 14px;
}

.world-cup-prediction-thread summary small {
  color: #f0c66c;
  font-weight: 800;
}

.world-cup-feed {
  display: grid;
  gap: 0;
  padding-top: 10px;
}

.world-cup-feed-card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 162, 71, 0.2);
  border-radius: 0;
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  padding: 12px 0;
}

.world-cup-feed-card header {
  align-items: start;
  display: grid;
  gap: 8px;
}

.world-cup-feed-card header strong {
  color: #fff;
  display: block;
  font-size: 15px;
  margin: 0;
}

.world-cup-feed-card header small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.world-cup-feed-card header > b {
  background: rgba(216, 162, 71, 0.12);
  border: 1px solid rgba(216, 162, 71, 0.18);
  border-radius: 8px;
  color: #f0c66c;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px;
}

.world-cup-feed-card header > b span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.world-cup-feed-discussion {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.world-cup-comments {
  display: grid;
  gap: 5px;
}

.world-cup-comments p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
}

.world-cup-comments strong {
  color: #fff;
}

.world-cup-empty-comment {
  color: rgba(255, 255, 255, 0.48) !important;
}

.world-cup-comment-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.world-cup-comment-form input {
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  min-height: 36px;
  padding: 0 13px;
}

.world-cup-comment-form button,
.world-cup-comment-login {
  background: transparent;
  border: 0;
  color: #f0c66c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.world-cup-inline-login,
.world-cup-submit-prediction,
.world-cup-user-prediction {
  grid-column: 1 / -1;
  margin: 0;
}

.world-cup-submit-prediction summary {
  color: #f0c66c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  padding: 0;
}

.world-cup-submit-prediction summary::-webkit-details-marker {
  display: none;
}

.world-cup-submit-prediction form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  padding-top: 10px;
}

.world-cup-submit-prediction label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  margin: 0;
}

.world-cup-submit-prediction input {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 11px;
}

.world-cup-share-gate {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
}

.world-cup-share-gate a {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(216, 162, 71, 0.46);
  border-radius: 8px;
  color: #f0c66c;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.world-cup-share-gate a.is-shared {
  background: rgba(216, 162, 71, 0.18);
}

.world-cup-share-gate small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.world-cup-submit-prediction button {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border: 0;
  border-radius: 8px;
  color: #111315;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.world-cup-submit-prediction button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.9);
  opacity: 0.48;
}

.world-cup-hidden-submit {
  display: none;
}

.world-cup-user-prediction {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.world-cup-inline-login {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.world-cup-inline-login a {
  color: #f0c66c;
  font-weight: 900;
  text-decoration: none;
}

.world-cup-prediction-panel {
  display: grid;
  gap: 18px;
}

.world-cup-prediction-form,
.world-cup-login-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.world-cup-prediction-form {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding: 18px;
}

.world-cup-prediction-form label {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.world-cup-prediction-form input,
.world-cup-prediction-form select {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  min-height: 48px;
}

.world-cup-score-inputs,
.world-cup-prediction-form button {
  grid-column: 1 / -1;
}

.world-cup-score-inputs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.world-cup-prediction-form button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 50px;
}

.world-cup-account-preview {
  align-self: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.world-cup-account-preview span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 10px 12px;
}

.world-cup-account-preview small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
}

.world-cup-account-preview strong {
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-cup-login-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.world-cup-login-card strong {
  color: #fff;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.world-cup-login-card p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.world-cup-prediction-list {
  display: grid;
  gap: 10px;
}

.world-cup-prediction-list article {
  background: #faf8f7;
  border: 1px solid #eee6e2;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: min(360px, 100%);
  padding: 13px;
}

.world-cup-prediction-list strong,
.world-cup-prediction-list span {
  color: #171515;
}

.world-cup-prediction-list small {
  color: #6f6b69;
}

.world-cup-live-room {
  align-items: center;
  background: #fff;
  color: #171515;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 40px;
  padding-bottom: clamp(26px, 5vw, 42px);
  padding-top: clamp(26px, 5vw, 42px);
}

.world-cup-live-room .world-cup-kicker {
  color: #d8a247;
}

.world-cup-live-room p {
  color: #5f5a57;
}

@media (max-width: 920px) {
  .world-cup-hero,
  .world-cup-live-room {
    grid-template-columns: 1fr;
  }

  .world-cup-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-cup-playbook-grid {
    grid-template-columns: 1fr 1fr;
  }

  .world-cup-points-card {
    grid-column: 1 / -1;
  }

  .world-cup-live-room .primary-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .world-cup-page .shell {
    padding-bottom: 76px;
  }

  .world-cup-hero {
    min-height: auto;
    padding-bottom: 42px;
    padding-top: 36px;
  }

  .world-cup-copy h1 {
    font-size: 40px;
  }

  .world-cup-catalog-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
  }

  .world-cup-catalog-card div {
    gap: 6px;
    padding: 10px;
  }

  .world-cup-catalog-card span {
    font-size: 9px;
  }

  .world-cup-catalog-card strong {
    font-size: 14px;
  }

  .world-cup-catalog-card a {
    font-size: 11px;
    min-height: 36px;
    padding: 0 8px;
    text-align: center;
  }

  .world-cup-soundtrack-toggle {
    flex: 1 1 140px;
    min-height: 44px;
  }

  .world-cup-catalog-modal {
    padding: 10px;
  }

  .world-cup-catalog-modal-card {
    max-height: calc(100vh - 20px);
    width: min(520px, 96vw);
  }

  .world-cup-catalog-modal-close {
    min-height: 32px;
    right: 10px;
    top: 10px;
  }

  .world-cup-catalog-modal-body {
    padding: 12px;
  }

  .world-cup-catalog-modal-body a {
    min-height: 42px;
    width: 100%;
  }

  .world-cup-copy p:not(.world-cup-kicker),
  .world-cup-live-room p {
    font-size: 15px;
  }

  .world-cup-feature-grid,
  .world-cup-playbook-grid,
  .world-cup-upcoming-list,
  .world-cup-match-list article {
    grid-template-columns: 1fr;
  }

  .world-cup-rank-card {
    gap: 9px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 8px 10px;
  }

  .world-cup-rank-badge.is-medal,
  .world-cup-rank-badge.is-medal img {
    height: 34px;
    width: 34px;
  }

  .world-cup-upcoming > div:first-child {
    align-items: start;
    display: grid;
  }

  .world-cup-upcoming-list a {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .world-cup-points-card {
    grid-column: auto;
  }

  .world-cup-rank-points {
    justify-self: end;
  }

  .world-cup-rank-points summary {
    font-size: 12px;
    padding: 7px 9px;
    text-align: center;
    white-space: nowrap;
  }

  .world-cup-rank-points ul {
    position: static;
    width: auto;
  }

  .world-cup-prediction-form,
  .world-cup-account-preview,
  .world-cup-score-inputs {
    grid-template-columns: 1fr;
  }

  .world-cup-score-inputs,
  .world-cup-prediction-form button {
    grid-column: auto;
  }

  .world-cup-login-card {
    align-items: stretch;
    display: grid;
  }

  .world-cup-section-head {
    align-items: start;
    display: grid;
  }

  .world-cup-match-list span {
    justify-self: start;
  }

  .world-cup-feed-card header,
  .world-cup-comment-form,
  .world-cup-submit-prediction form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .world-cup-feed-card {
    grid-template-columns: 1fr;
  }

  .world-cup-share-gate {
    align-items: stretch;
    display: grid;
  }

  .world-cup-inline-login {
    align-items: flex-start;
    display: grid;
  }
}

.home-bottom-nav {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  min-height: 68px;
  padding: 5px max(12px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  position: fixed;
  right: 0;
  z-index: 60;
}

.home-bottom-nav a,
.home-bottom-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: grid;
  font-size: 20px;
  gap: 2px;
  justify-items: center;
  min-width: 94px;
  padding: 4px 10px;
  text-decoration: none;
}

.home-bottom-nav a.active,
.home-bottom-nav button.active {
  color: var(--brand);
}

.home-bottom-nav small {
  font-size: 11px;
  font-weight: 700;
}

.home-bottom-nav svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.bottom-chat-link,
.bottom-dashboard-link {
  position: relative;
}

.bottom-chat-link em,
.bottom-dashboard-badge {
  align-items: center;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  min-height: 19px;
  min-width: 19px;
  padding: 1px 4px;
  place-items: center;
  position: absolute;
  right: calc(50% - 24px);
  top: 1px;
}

.bottom-chat-link em[hidden],
.bottom-dashboard-badge[hidden] {
  display: none;
}

.dashboard-page .shell {
  max-width: 1020px;
}

.packing-page .shell {
  max-width: none;
  padding: clamp(34px, 4vw, 64px);
}

.dashboard-page .topbar {
  display: none;
}

.dashboard-home {
  display: grid;
  gap: 0;
  padding-bottom: 22px;
}

.dashboard-head {
  margin: 30px 0 18px;
}

.dashboard-head-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-head-top .auth-brand {
  margin: 0;
}

.dashboard-settings-link {
  align-items: center;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 42px;
}

.dashboard-settings-link:hover,
.dashboard-settings-link:focus-visible {
  border-color: #ded6d2;
  box-shadow: 0 10px 20px rgba(34, 23, 20, 0.07);
  outline: 0;
  transform: translateY(-1px);
}

.dashboard-settings-link svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 18px;
}

.dashboard-head h1 {
  color: #111;
  font-size: 36px;
  letter-spacing: 0;
  margin: 12px 0 8px;
}

.dashboard-head p:last-child {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.dashboard-reveal {
  animation: dashboard-reveal 420ms ease both;
}

.dashboard-reveal:nth-child(2) {
  animation-delay: 70ms;
}

.dashboard-reveal:nth-child(3) {
  animation-delay: 120ms;
}

.dashboard-reveal:nth-child(4) {
  animation-delay: 170ms;
}

.dashboard-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(228, 35, 35, 0.08), rgba(255, 255, 255, 0.96) 42%),
    #fff;
  border: 1px solid #eee8e6;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(34, 23, 20, 0.07);
  display: grid;
  gap: 22px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 28px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.dashboard-hero::before {
  background: linear-gradient(90deg, var(--brand), rgba(228, 35, 35, 0.18), transparent);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.dashboard-hero-icon,
.dashboard-activity-icon {
  align-items: center;
  background: #171515;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.dashboard-hero-icon svg,
.dashboard-activity-icon svg,
.dashboard-icon svg,
.dashboard-quick-grid svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-hero-icon svg {
  height: 32px;
  width: 32px;
}

.dashboard-eyebrow,
.dashboard-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dashboard-player-row,
.dashboard-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-player-row {
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-player-row .dashboard-eyebrow {
  margin: 0;
}

.dashboard-player-row span,
.dashboard-stats span {
  background: #f7f5f4;
  border: 1px solid #e8e3e0;
  border-radius: 999px;
  color: #4f4946;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}

.dashboard-stats {
  margin-top: 14px;
}

.dashboard-stats b {
  color: var(--brand-dark);
  font-weight: 900;
}

.dashboard-progress {
  background: #f0edeb;
  border-radius: 999px;
  height: 8px;
  margin-top: 16px;
  max-width: 420px;
  overflow: hidden;
}

.dashboard-progress span {
  background: linear-gradient(90deg, var(--brand), #f48b8b);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.dashboard-hero h2 {
  font-size: 28px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.dashboard-hero p:not(.dashboard-eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 660px;
}

.dashboard-primary-action {
  align-items: center;
  background: var(--brand);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-primary-action:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(179, 19, 23, 0.18);
  transform: translateY(-1px);
}

.dashboard-primary-action:active {
  transform: scale(0.98);
}

.dashboard-section {
  margin-top: 28px;
}

.dashboard-section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-section-head h2,
.dashboard-activity h2 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
}

.dashboard-section-head > span {
  background: #f7f5f4;
  border: 1px solid #e8e3e0;
  border-radius: 999px;
  color: #6f6b69;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  align-items: center;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 23, 20, 0.04);
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 154px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-card:hover {
  border-color: #f0d0d0;
  box-shadow: 0 18px 38px rgba(34, 23, 20, 0.08);
  transform: translateY(-3px);
}

.dashboard-card-empty {
  pointer-events: none;
}

.dashboard-calendar-card {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-calendar-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dashboard-calendar-nav {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(96px, auto) 34px;
  justify-items: center;
}

.dashboard-calendar-nav a {
  align-items: center;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 34px;
}

.dashboard-calendar-nav a:hover,
.dashboard-calendar-nav a:focus-visible {
  border-color: #f0bcbc;
  color: var(--red);
}

.dashboard-calendar-nav strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.schedule-score-guide {
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 8;
}

.schedule-score-guide summary {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 999px;
  color: #111315;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  padding: 8px 12px;
}

.schedule-score-guide summary::-webkit-details-marker {
  display: none;
}

.schedule-score-guide[open] summary {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.schedule-score-guide div {
  background: #fffaf0;
  border: 1px solid rgba(216, 162, 71, 0.36);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(17, 13, 8, 0.22);
  color: #24190d;
  display: grid;
  gap: 8px;
  left: 0;
  margin-top: 8px;
  max-width: none;
  padding: 12px;
  position: absolute;
  top: 100%;
  width: min(640px, calc(100vw - 52px));
  z-index: 5;
}

.schedule-score-guide strong {
  color: #24190d;
  font-size: 13px;
  line-height: 1.25;
}

.schedule-score-guide ul {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-score-guide li {
  align-items: center;
  color: #5f4b2b;
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.25;
  white-space: nowrap;
}

.schedule-score-guide li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-score-guide li b {
  background: linear-gradient(135deg, #f4d17c, #c9902f);
  border-radius: 999px;
  color: #111315;
  font-size: 11px;
  min-width: 42px;
  padding: 3px 8px;
  text-align: center;
}

.attendance-mini-rank {
  align-self: start;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  margin-left: auto;
  max-width: 166px;
  min-width: 142px;
  padding: 8px;
}

.attendance-mini-rank ol {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.attendance-mini-rank li {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.attendance-mini-rank li span {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-mini-rank li b {
  color: var(--brand);
  flex: 0 0 auto;
  font-size: 10px;
}

.attendance-mini-rank li em {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  padding: 2px 5px;
  text-transform: uppercase;
}

.attendance-mini-rank li small {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  white-space: nowrap;
}

.earning-card {
  display: grid;
  gap: 14px;
}

.earning-card-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.earning-card-head h2 {
  margin: 4px 0 6px;
}

.earning-card-head p {
  color: var(--muted);
  margin: 0;
}

.earning-card-head > strong {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 14px;
  padding: 9px 12px;
}

.earning-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.earning-filter label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.earning-filter select,
.earning-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.earning-filter button {
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}

.earning-meter {
  background: #ebe7e4;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.earning-meter span {
  background: linear-gradient(90deg, var(--red), #ff7d7d);
  display: block;
  height: 100%;
}

.earning-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.earning-grid span,
.earning-breakdown-trigger {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  display: grid;
  font: inherit;
  gap: 4px;
  text-align: left;
  padding: 12px;
}

.earning-breakdown-trigger {
  cursor: pointer;
}

.earning-breakdown-trigger:hover,
.earning-breakdown-trigger:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(216, 162, 71, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.earning-grid b,
.earning-breakdown-trigger b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.earning-grid small,
.earning-breakdown-trigger small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.earning-modal-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.earning-modal-summary span {
  background: #fff9ee;
  border: 1px solid rgba(216, 162, 71, 0.36);
  border-radius: 12px;
  color: #24190d;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.earning-modal-summary b {
  color: #6b5737;
  font-size: 10px;
  text-transform: uppercase;
}

.partner-investment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-investment-group-card {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.32);
  color: #01142f;
  gap: 18px;
}

.partner-investment-group-head {
  align-items: start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  margin: -2px -2px 0;
  padding-bottom: 16px;
}

.partner-investment-group-head p {
  color: #475569;
  margin: 6px 0 0;
}

.partner-investment-group-head small {
  color: #64748b;
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.partner-investment-filter-icon {
  align-items: center;
  background: var(--gold);
  border: 1px solid rgba(130, 88, 19, 0.22);
  border-radius: 999px;
  color: #120d06;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.partner-investment-filter-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.partner-investment-group-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.partner-investment-reset-button {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.48);
  border-radius: 9px;
  color: #251a0d;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  text-decoration: none;
}

.partner-investment-group-table {
  margin-top: 0;
}

.partner-investment-group-table .financial-journal-row {
  color: #01142f;
}

.partner-investment-mobile-cards {
  display: none;
}

.partner-investment-profit-chart-card {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.32);
  color: #01142f;
  margin-top: 18px;
}

.partner-investment-chart-head {
  align-items: end;
  gap: 18px;
}

.partner-investment-chart-head p {
  color: #475569;
  margin: 6px 0 0;
}

.partner-investment-chart-head small {
  color: #64748b;
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.partner-investment-chart-filter {
  align-items: end;
  display: grid;
  flex: 0 0 min(460px, 100%);
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.partner-investment-chart-filter label {
  color: #251a0d;
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 6px;
}

.partner-investment-chart-filter select {
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.48);
  border-radius: 9px;
  color: #20170d;
  font: inherit;
  font-size: 0.86rem;
  min-height: 40px;
  padding: 0 10px;
}

.partner-investment-chart-filter button {
  background: var(--gold);
  border: 1px solid rgba(130, 88, 19, 0.22);
  border-radius: 9px;
  color: #120d06;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
}

.partner-investment-profit-chart {
  display: grid;
  gap: 12px;
}

.partner-investment-profit-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) minmax(120px, auto);
}

.partner-investment-profit-bar span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.partner-investment-profit-bar div {
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.partner-investment-profit-bar i {
  background: linear-gradient(90deg, #e6bb58, #1b2f37);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 3px;
  width: var(--bar-size, 0%);
}

.partner-investment-profit-bar strong {
  color: #01142f;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.partner-investment-modal-panel {
  display: grid;
  gap: 14px;
}

.partner-investment-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-investment-modal-actions a,
.partner-investment-modal-actions button,
.partner-investment-product-history > a {
  align-items: center;
  background: var(--gold);
  border: 1px solid rgba(130, 88, 19, 0.22);
  border-radius: 8px;
  color: #120d06;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 8px;
  padding: 9px 11px;
  text-decoration: none;
}

.partner-investment-modal-actions svg,
.partner-investment-modal-actions button svg,
.partner-investment-product-history > a svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.partner-investment-filter {
  background: #fff9ee;
  border: 1px solid rgba(216, 162, 71, 0.34);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  padding: 12px;
}

.partner-investment-filter[hidden] {
  display: none;
}

.partner-investment-filter label {
  color: #251a0d;
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
}

.partner-investment-filter input,
.partner-investment-filter select {
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.48);
  border-radius: 9px;
  color: #20170d;
  font: inherit;
  font-size: 0.86rem;
  min-height: 40px;
  padding: 0 10px;
}

.partner-investment-filter > div {
  align-items: end;
  display: flex;
  gap: 8px;
}

.partner-investment-filter button {
  background: #1b2f37;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 9px;
  color: #eff6ff;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.partner-investment-filter button[type="reset"] {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.48);
  color: #251a0d;
}

@media (max-width: 900px) {
  .partner-investment-chart-head {
    align-items: stretch;
    display: grid;
  }

  .partner-investment-chart-filter {
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-investment-chart-filter button {
    grid-column: 1 / -1;
  }

  .partner-investment-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-investment-filter > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .partner-investment-profit-chart-card {
    border-radius: 16px;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
  }

  .partner-investment-chart-head h2 {
    font-size: 1.05rem;
  }

  .partner-investment-chart-head p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .partner-investment-chart-filter {
    grid-template-columns: 1fr;
  }

  .partner-investment-chart-filter select,
  .partner-investment-chart-filter button {
    min-height: 38px;
  }

  .partner-investment-profit-chart {
    gap: 10px;
  }

  .partner-investment-profit-bar {
    gap: 7px;
    grid-template-columns: 36px minmax(0, 1fr) 84px;
  }

  .partner-investment-profit-bar span {
    font-size: 0.7rem;
  }

  .partner-investment-profit-bar div {
    height: 10px;
  }

  .partner-investment-profit-bar strong {
    font-size: 0.68rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .partner-investment-filter {
    grid-template-columns: 1fr;
  }
}

.partner-investment-list,
.partner-investment-product-list,
.partner-investment-product-history {
  display: grid;
  gap: 10px;
}

.partner-investment-list article,
.partner-investment-product-list details,
.partner-investment-product-history article {
  background: #fff9ee;
  border: 1px solid rgba(216, 162, 71, 0.32);
  border-radius: 10px;
  color: #251a0d;
  padding: 11px;
}

.partner-investment-list article {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(90px, 0.75fr) minmax(180px, 1.4fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr);
}

.partner-investment-list small,
.partner-investment-product-list small,
.partner-investment-product-history small {
  color: #7a684b;
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 3px;
}

.partner-investment-product-list summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(84px, 0.45fr) minmax(110px, 0.55fr);
  list-style: none;
}

.partner-investment-product-list summary::-webkit-details-marker {
  display: none;
}

.partner-investment-product-history {
  margin-top: 12px;
}

.partner-investment-product-history article {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(110px, 0.85fr) minmax(80px, 0.45fr) minmax(140px, 1fr);
}

.partner-investment-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.partner-investment-pagination[hidden] {
  display: none;
}

.partner-investment-pagination button {
  align-items: center;
  background: #1b2f37;
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 999px;
  color: #eff6ff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.partner-investment-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.partner-investment-pagination svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 18px;
}

.partner-investment-pagination > span {
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 900;
}

.partner-investment-pagination label {
  align-items: center;
  color: #6b5a3e;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
}

.partner-investment-pagination input {
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.45);
  border-radius: 8px;
  color: #20170d;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  height: 36px;
  padding: 0 8px;
  width: 74px;
}

.earning-attendance-list {
  display: grid;
  gap: 10px;
}

.earning-attendance-list article {
  background: #fff9ee;
  border: 1px solid rgba(216, 162, 71, 0.32);
  border-radius: 12px;
  color: #24190d;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.earning-attendance-list article.is-muted {
  opacity: 0.76;
}

.earning-attendance-list article > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.earning-attendance-list small,
.earning-attendance-list p {
  color: #6f5d42;
  font-size: 12px;
  font-weight: 800;
}

.earning-attendance-list p {
  margin: 0;
}

.earning-attendance-list dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.earning-attendance-list dl div {
  background: rgba(255, 255, 255, 0.64);
  border-radius: 10px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.earning-attendance-list dt {
  color: #80673f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.earning-attendance-list dd {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.dashboard-month-calendar {
  color: inherit;
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 14px;
  text-decoration: none;
  width: 100%;
}

.dashboard-month-calendar span {
  min-width: 0;
}

.dashboard-month-calendar .weekday {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-month-calendar .day {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  display: grid;
  font: inherit;
  min-height: 48px;
  padding: 7px 3px 6px;
  position: relative;
  text-align: center;
  width: 100%;
}

.dashboard-month-calendar button.day {
  cursor: pointer;
}

.dashboard-month-calendar button.day:hover,
.dashboard-month-calendar button.day:focus-visible {
  border-color: #efb8b8;
  box-shadow: 0 10px 22px rgba(35, 24, 21, 0.08);
  outline: none;
}

.dashboard-month-calendar .day::before {
  background: #d7d1ce;
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 7px;
  position: absolute;
  right: 7px;
  top: 6px;
}

.dashboard-month-calendar b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-top: 7px;
}

.dashboard-month-calendar small {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-month-calendar .morning::before {
  background: #e42323;
}

.dashboard-month-calendar .afternoon::before {
  background: #171515;
}

.dashboard-month-calendar .off::before {
  background: #2f9b62;
}

.dashboard-month-calendar .overview::before {
  background: #d7d1ce;
}

.dashboard-month-calendar .none {
  opacity: 0.72;
}

.dashboard-month-calendar .outside {
  background: #fff;
  opacity: 0.38;
}

.dashboard-month-calendar .today {
  border-color: #f0bcbc;
  box-shadow: inset 0 0 0 1px rgba(228, 35, 35, 0.16);
}

.dashboard-calendar-hint {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  grid-column: 1 / -1;
  justify-self: start;
  margin: 6px 0 0;
}

.schedule-modal-backdrop {
  align-items: center;
  background: rgba(22, 18, 17, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.schedule-modal-backdrop[hidden] {
  display: none;
}

.schedule-modal {
  background: #fff;
  border: 1px solid #f0d0d0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(19, 14, 12, 0.26);
  max-height: min(88vh, 860px);
  max-width: 760px;
  overflow: auto;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  position: relative;
  width: min(100%, 760px);
}

.schedule-modal:focus {
  outline: none;
}

.schedule-modal-close {
  align-items: center;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
}

.schedule-modal-head {
  display: grid;
  gap: 6px;
  padding-right: 48px;
}

.schedule-modal-head h2,
.schedule-modal-panel h3 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0;
}

.schedule-modal-head span {
  background: #f8f5f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  padding: 6px 10px;
}

.schedule-modal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.schedule-modal-shift,
.schedule-modal-panel {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.schedule-modal-shift {
  border-top: 4px solid #d7d1ce;
}

.schedule-modal-shift.morning {
  border-top-color: var(--red);
}

.schedule-modal-shift.afternoon {
  border-top-color: #171515;
}

.schedule-modal-shift.off {
  border-top-color: #2f9b62;
}

.schedule-modal-shift p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.schedule-modal-shift h3 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.schedule-modal-shift ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-modal-shift li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.schedule-modal-shift li b {
  font-size: 13px;
  min-width: 0;
}

.schedule-modal-shift li span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-modal-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.schedule-modal-panel form {
  display: grid;
  gap: 12px;
}

.schedule-modal-panel .is-hidden {
  display: none;
}

.schedule-modal-panel label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.schedule-modal-panel input,
.schedule-modal-panel select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
}

.schedule-modal-panel button,
.schedule-inline-action button {
  background: var(--red);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 0 16px;
}

.schedule-modal-panel button:disabled {
  background: #e42323 !important;
  color: #fff !important;
  cursor: not-allowed;
  font-weight: 900;
  opacity: 0.72;
}

.attendance-panel form + form {
  margin-top: 10px;
}

.attendance-status-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.attendance-status-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 3px;
  padding: 10px;
}

.attendance-status-grid b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.attendance-detail-list {
  display: grid;
  gap: 10px;
}

.attendance-detail-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.attendance-detail-list strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.attendance-detail-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.attendance-detail-list dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.attendance-detail-list dl div {
  background: var(--soft);
  border-radius: 10px;
  padding: 8px;
}

.attendance-detail-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.attendance-detail-list dd {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.attendance-sick-proof-field a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.attendance-sick-proof {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  max-width: 220px;
  overflow: hidden;
}

.attendance-sick-proof img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.owner-attendance-editor {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.owner-attendance-editor summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.owner-attendance-editor summary::-webkit-details-marker {
  display: none;
}

.owner-attendance-editor summary::after {
  content: " +";
}

.owner-attendance-editor[open] summary::after {
  content: " -";
}

.owner-attendance-editor form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.owner-attendance-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-attendance-editor label {
  font-size: 12px;
  margin: 0;
}

.owner-attendance-editor input,
.owner-attendance-editor select {
  border-radius: 10px;
  font-size: 13px;
  min-height: 42px;
}

.owner-attendance-editor button {
  margin-top: 2px;
}

.attendance-ranking-card {
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 23, 20, 0.04);
  margin-top: 14px;
  padding: 18px;
}

.attendance-ranking-card h3 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.attendance-ranking-list {
  display: grid;
  gap: 8px;
}

.attendance-ranking-list div {
  align-items: center;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px;
}

.attendance-ranking-list b {
  color: var(--brand);
}

.attendance-ranking-list span {
  color: var(--ink);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-ranking-list span small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.attendance-ranking-list strong {
  background: #171515;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
}

.schedule-inline-action {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.schedule-inline-action span,
.schedule-modal-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.dashboard-card h3 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.dashboard-calendar-card h2 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.dashboard-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.dashboard-icon {
  background: #171515;
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 16px;
  font-weight: 900;
  height: 44px;
  place-content: center;
  width: 44px;
}

.dashboard-icon svg {
  height: 22px;
  width: 22px;
}

.dashboard-icon-red {
  background: var(--brand);
}

.dashboard-status {
  background: #f7f5f4;
  border: 1px solid #e8e3e0;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.dashboard-arrow {
  color: var(--brand);
  font-size: 20px;
}

.dashboard-card-link {
  position: relative;
}

.dashboard-card-badge {
  align-items: center;
  background: #f4d17c;
  border: 2px solid #fff9ee;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  color: #24190d;
  display: inline-grid;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  min-width: 28px;
  padding: 3px 9px;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.dashboard-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-quick-grid a {
  align-items: center;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 94px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-quick-grid a:hover {
  background: #fffafa;
  border-color: #f0d0d0;
  box-shadow: 0 10px 20px rgba(34, 23, 20, 0.06);
  transform: translateY(-2px);
}

.dashboard-quick-grid svg {
  color: var(--brand);
  height: 23px;
  width: 23px;
}

.employee-monitor-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(216, 162, 71, 0.055)),
    rgba(15, 16, 15, 0.94);
  border: 1px solid rgba(216, 162, 71, 0.3);
  border-radius: 14px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: 20px;
}

.employee-monitor-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.employee-monitor-head h2 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.employee-monitor-head p:last-child {
  color: var(--muted);
  margin: 0;
}

.employee-monitor-head > span {
  background: linear-gradient(135deg, #f4d17c, #bd8425);
  border-radius: 999px;
  color: #17120a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
}

.employee-monitor-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-monitor-list article {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(216, 162, 71, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 12px;
}

.employee-monitor-list article.is-live {
  background: rgba(216, 162, 71, 0.12);
  border-color: rgba(244, 209, 124, 0.52);
}

.employee-monitor-avatar {
  align-items: center;
  background: #11100f;
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 50%;
  color: #fff8ea;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.employee-monitor-list strong,
.employee-monitor-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-monitor-list strong {
  color: #fff8ea;
  font-size: 14px;
  margin-bottom: 4px;
}

.employee-monitor-list strong span {
  color: #f0c66c;
  font-size: 12px;
  font-weight: 800;
  margin-left: 4px;
}

.employee-monitor-list small {
  color: #d8c9ad;
  display: block;
  font-size: 12px;
}

.employee-monitor-activity {
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
  word-break: normal;
}

.employee-monitor-list em {
  color: #f0c66c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-top: 5px;
}

.employee-monitor-list article > span {
  background: rgba(255, 248, 234, 0.12);
  border: 1px solid rgba(255, 248, 234, 0.16);
  border-radius: 999px;
  color: #d8c9ad;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.employee-monitor-list article.is-live > span {
  background: #e7f8df;
  border-color: rgba(47, 155, 98, 0.38);
  color: #14633c;
}

.dashboard-activity {
  align-items: center;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 23, 20, 0.04);
  display: grid;
  gap: 15px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 32px;
  padding: 20px;
}

.dashboard-activity-icon {
  background: #111;
  height: 48px;
  width: 48px;
}

.dashboard-activity-icon svg {
  height: 24px;
  width: 24px;
}

.dashboard-activity p:last-child {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.dashboard-logout {
  margin-top: 22px;
}

.dashboard-logout button {
  background: transparent;
  border: 1px solid #cfcac8;
  color: #3f3b39;
  font-size: 13px;
  padding: 10px 14px;
}

.invoice-builder {
  display: grid;
  gap: 18px;
}

.invoice-builder-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.invoice-builder-head h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0;
}

.invoice-print-button {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
}

.packing-guide-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 38px;
  padding: 0 16px;
}

.packing-guide-button:hover,
.packing-guide-button:focus-visible {
  background: #fff5f5;
  border-color: #ffc7c7;
  color: var(--brand-dark);
}

.packing-guide-modal {
  align-items: center;
  background: rgba(23, 21, 21, 0.54);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1300;
}

.packing-guide-modal[hidden] {
  display: none;
}

.packing-guide-panel {
  background: #fff;
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 12, 10, 0.24);
  display: grid;
  gap: 16px;
  max-height: min(82vh, 780px);
  max-width: 780px;
  overflow: auto;
  padding: 24px;
  width: min(100%, 780px);
}

.packing-guide-panel header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.packing-guide-panel h2 {
  margin: 0;
}

.packing-guide-panel button {
  background: #f7f4f3;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 24px;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.packing-guide-content {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

body.packing-guide-open {
  overflow: hidden;
}

.invoice-saved-panel,
.invoice-send-panel,
.invoice-unpaid-panel {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 12, 10, 0.07);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto);
  padding: 12px;
}

.invoice-saved-panel {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.invoice-unpaid-panel {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
}

.invoice-unpaid-panel header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.invoice-unpaid-panel header div {
  display: grid;
  gap: 3px;
}

.invoice-unpaid-panel strong {
  font-size: 14px;
}

.invoice-unpaid-panel small,
.invoice-unpaid-empty {
  color: var(--muted);
  margin: 0;
}

.invoice-unpaid-list {
  display: grid;
  gap: 8px;
}

.invoice-unpaid-list[hidden] {
  display: none;
}

.invoice-unpaid-item {
  align-items: center;
  background: #fffaf5;
  border: 1px solid #eadfd7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px;
}

.invoice-unpaid-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invoice-unpaid-item strong,
.invoice-unpaid-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-unpaid-item button,
.invoice-unpaid-panel header button {
  background: #171b19;
  border-radius: 8px;
  color: #fff;
  min-height: 38px;
  padding: 0 12px;
}

.invoice-unpaid-item button[data-unpaid-followup] {
  background: var(--brand);
}

.invoice-saved-panel label,
.invoice-send-panel label {
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.invoice-saved-panel select {
  min-height: 42px;
}

.invoice-saved-panel button,
.invoice-send-panel button {
  background: #171b19;
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: 0 14px;
}

.invoice-saved-panel button.danger {
  background: #fff6f6;
  border: 1px solid #f0d7d7;
  color: var(--brand-dark);
}

.invoice-saved-panel a {
  align-items: center;
  background: #f7f4f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
}

.invoice-saved-panel a[hidden] {
  display: none;
}

.invoice-saved-panel button:disabled,
.invoice-send-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.invoice-send-panel small {
  color: var(--muted);
  line-height: 1.35;
}

.invoice-send-panel a {
  color: var(--brand-dark);
  font-weight: 900;
}

.invoice-contact-picker {
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.invoice-contact-trigger {
  align-items: center;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 8px !important;
  color: var(--ink) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 50px !important;
  padding: 7px 12px !important;
  text-align: left;
}

.invoice-contact-trigger::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 8px;
  margin-left: 12px;
  opacity: 0.72;
  transform: rotate(45deg);
  width: 8px;
}

.invoice-contact-trigger[aria-expanded="true"]::after {
  transform: translateY(3px) rotate(225deg);
}

.invoice-contact-trigger strong,
.invoice-contact-trigger small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-contact-trigger small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.invoice-contact-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(18, 12, 10, 0.16);
  display: grid;
  gap: 10px;
  left: 0;
  max-height: min(390px, 62vh);
  overflow: hidden;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}

.invoice-contact-menu[hidden],
.invoice-contact-list button[hidden],
#invoiceContactEmpty[hidden] {
  display: none;
}

.invoice-contact-search {
  background: #f7f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.invoice-contact-search span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-contact-search input {
  background: transparent;
  border: 0;
  font-weight: 900;
  min-height: 26px;
  outline: 0;
  padding: 0;
}

.invoice-contact-list {
  display: grid;
  gap: 6px;
  max-height: 286px;
  overflow-y: auto;
  padding-right: 2px;
}

.invoice-contact-list button {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
}

.invoice-contact-list button:hover,
.invoice-contact-list button.is-selected {
  background: #fff5f5;
  border-color: #f4d7d7;
  color: var(--brand-dark);
}

.invoice-contact-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#invoiceContactEmpty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 8px 4px 4px;
}

.invoice-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  scroll-margin-top: 118px;
}

.invoice-form,
.invoice-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(18, 12, 10, 0.08);
}

.invoice-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.invoice-form label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.invoice-form input,
.invoice-form select,
.invoice-form textarea {
  font-weight: 700;
  min-height: 40px;
}

.invoice-form .phone-field {
  grid-template-columns: 118px minmax(0, 1fr);
  margin: 0;
}

.invoice-form .country-trigger {
  min-height: 40px;
}

.invoice-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.packing-board {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1380px;
}

.cashier-board {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1380px;
}

.cashier-board .invoice-builder-head {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cashier-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 680px;
}

.cashier-head-actions form {
  margin: 0;
}

.cashier-head-actions .invoice-print-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 118px;
  white-space: nowrap;
}

.cashier-head-actions form {
  display: inline-flex;
}

.cashier-action-button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(10, 10, 10, 0.16);
  color: #16110b;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.1;
  min-height: 46px;
  min-width: 132px;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cashier-action-primary {
  background: linear-gradient(180deg, #f8d982 0%, #d79a2d 100%);
}

.cashier-action-secondary {
  background: #e8b64c;
  min-width: 230px;
}

.cashier-action-ghost {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(232, 182, 76, 0.65);
  box-shadow: 0 10px 20px rgba(10, 10, 10, 0.1);
  min-width: 120px;
}

.cashier-action-button:hover,
.cashier-action-button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.custom-order-filter {
  align-items: end;
  margin-bottom: 18px;
}

.custom-order-cancel-filter {
  background: linear-gradient(145deg, #ff9aa8, #d72842);
  border-color: rgba(255, 180, 191, 0.76);
  color: #fff;
  min-width: 150px;
}

.custom-order-cancel-filter:hover,
.custom-order-cancel-filter:focus-visible,
.custom-order-cancel-filter.active {
  box-shadow: 0 0 0 2px rgba(255, 154, 168, 0.18), 0 14px 28px rgba(215, 40, 66, 0.2);
  color: #fff;
}

.custom-orders-page [hidden] {
  display: none !important;
}

.custom-orders-page .cashier-panel[data-custom-order-view]:not(.is-active) {
  display: none !important;
}

.custom-orders-page:has(.cashier-panel[data-custom-order-view]:target) .cashier-panel[data-custom-order-view] {
  display: none !important;
}

.custom-orders-page .cashier-panel[data-custom-order-view]:target {
  display: block !important;
}

.custom-orders-page {
  padding-left: 16px;
  padding-right: 16px;
}

.custom-orders-page .invoice-builder-head {
  gap: 12px;
}

.custom-orders-page .custom-order-page-title {
  color: #f6d27a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-orders-page .invoice-builder-head > div:first-child > p:not(.auth-brand) {
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.custom-orders-page .cashier-head-actions .invoice-print-button {
  min-height: 46px;
}

.custom-orders-page .custom-order-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

.custom-order-customer-picker {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.custom-order-customer-picker label {
  gap: 10px;
}

.custom-order-customer-picker small {
  color: #647084;
  font-size: 0.86rem;
  line-height: 1.45;
}

.custom-order-combo-host {
  position: relative;
}

.custom-order-combo-menu {
  background:
    linear-gradient(145deg, rgba(18, 28, 36, 0.98), rgba(5, 10, 15, 0.98)),
    #090f14;
  border: 1px solid rgba(244, 209, 124, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(42, 210, 205, 0.08);
  display: grid;
  gap: 6px;
  left: 0;
  max-height: min(42vh, 340px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 100%;
  z-index: 90;
}

.custom-order-combo-menu[hidden] {
  display: none !important;
}

.custom-order-combo-option {
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.08), rgba(42, 210, 205, 0.045));
  border: 1px solid rgba(139, 194, 203, 0.24);
  border-radius: 7px;
  color: #edf6ff;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.custom-order-combo-option:hover,
.custom-order-combo-option:focus-visible {
  background: linear-gradient(135deg, rgba(244, 209, 124, 0.25), rgba(42, 210, 205, 0.11));
  border-color: rgba(244, 209, 124, 0.68);
  outline: none;
}

.custom-order-combo-option strong {
  color: #ffe6a1;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-combo-option small,
.custom-order-combo-empty {
  color: #9fb0c5;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.custom-order-combo-empty {
  display: block;
  padding: 12px;
  text-align: center;
}

.custom-order-quick-customer {
  margin-top: 2px;
}

.custom-order-file-panel {
  background: #fffaf1;
  border: 1px solid rgba(225, 174, 67, 0.38);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.custom-order-file-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.custom-order-file-panel strong {
  color: #111827;
}

.custom-order-file-panel small {
  color: #647084;
  line-height: 1.45;
}

.custom-order-product-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.custom-order-product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.custom-order-product-head strong,
.custom-order-product-card strong {
  color: #111827;
}

.custom-order-product-head small {
  color: #647084;
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.custom-order-product-list {
  display: grid;
  gap: 12px;
}

.custom-order-product-card {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.custom-order-product-card[hidden],
.custom-order-product-summary[hidden],
.custom-order-product-editor[hidden] {
  display: none;
}

.custom-order-product-editor {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-order-product-card-head {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 10px;
}

.custom-order-product-actions {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-order-product-actions button,
.custom-order-product-summary,
.custom-order-add-product {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.custom-order-product-actions button {
  background: #f8fafc;
  border: 1px solid #d7e0ec;
  color: #1f2937;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.custom-order-product-actions button span {
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}

.custom-order-hidden-price {
  display: none !important;
}

.custom-order-product-actions button svg,
.custom-order-add-product svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}

.custom-order-product-summary {
  background: #f8fafc;
  border: 1px solid #d7e0ec;
  color: #0f2340;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.custom-order-product-summary span {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.custom-order-product-summary small {
  color: #647084;
}

.custom-order-product-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-order-product-summary b {
  color: #0f766e;
  flex: 0 0 auto;
}

.custom-order-product-card input[readonly] {
  background: #f8fafc;
  color: #334155;
}

.custom-order-stock-status {
  background: #f8fafc;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.custom-order-stock-status[hidden] {
  display: none;
}

.custom-order-stock-status strong {
  color: #111827;
  font-size: 0.96rem;
}

.custom-order-stock-status small {
  color: #647084;
  line-height: 1.35;
}

.custom-order-stock-status.is-ready {
  background: #ecfdf5;
  border-color: rgba(34, 197, 94, 0.38);
}

.custom-order-stock-status.is-ready strong {
  color: #047857;
}

.custom-order-stock-status.is-partial {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.42);
}

.custom-order-stock-status.is-partial strong {
  color: #a16207;
}

.custom-order-stock-status.is-empty {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.36);
}

.custom-order-stock-status.is-empty strong {
  color: #b91c1c;
}

.custom-order-add-product {
  background: #fff7e6;
  border: 1px solid rgba(225, 174, 67, 0.55);
  border-radius: 8px;
  color: #8a6418;
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
  width: 100%;
}

.custom-order-selected-files {
  color: #8a6418 !important;
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.custom-order-reference-previews {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  margin-top: 8px;
}

.custom-order-reference-thumb {
  aspect-ratio: 1;
  background: #0f172a;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.custom-order-reference-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.custom-order-legacy-preview {
  align-items: center;
  background: rgba(2, 8, 13, 0.72);
  border: 1px solid rgba(42, 210, 205, 0.36);
  border-radius: 8px;
  color: inherit;
  cursor: zoom-in;
  display: grid;
  gap: 10px;
  grid-template-columns: 82px minmax(0, 1fr);
  margin-top: 10px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.custom-order-legacy-preview[hidden] {
  display: none !important;
}

.custom-order-legacy-preview img {
  aspect-ratio: 1;
  border-radius: 6px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.custom-order-legacy-preview span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.custom-order-legacy-preview small {
  color: #d7c6a4;
  font-size: 0.76rem;
  line-height: 1.25;
}

.custom-order-legacy-preview b {
  color: #ffe39a;
  font-size: 0.88rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-file-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-order-file-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.custom-order-file-list > strong {
  color: #111827;
}

.custom-order-file-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 10px;
}

.custom-order-file-list a {
  color: #111827;
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.custom-order-file-thumb {
  aspect-ratio: 1;
  background: #0f172a;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 92px;
}

.custom-order-file-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.custom-order-file-list a span {
  color: #8a6418;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.custom-order-file-list a small {
  color: #647084;
}

.custom-order-file-item:not(:has(.custom-order-file-thumb)) {
  grid-template-columns: 1fr;
}

.custom-order-pickup-list {
  display: grid;
  gap: 12px;
}

.custom-order-pickup-card {
  background: #fffaf1;
  border: 1px solid rgba(225, 174, 67, 0.36);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.custom-order-pickup-card strong {
  color: #111827;
  display: block;
  font-size: 1.02rem;
}

.custom-order-pickup-card small {
  color: #647084;
  display: block;
  line-height: 1.45;
}

.custom-order-pickup-card p {
  color: #334155;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.custom-order-pickup-form {
  align-items: end;
}

.custom-order-prepare-list {
  display: grid;
  gap: 12px;
}

.custom-order-prepare-card {
  align-items: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(42, 210, 205, 0.035)),
    #0c1117;
  border: 1px solid rgba(244, 209, 124, 0.25);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding: 14px;
}

.custom-order-prepare-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.custom-order-prepare-main strong {
  color: #ffe6a1;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-prepare-main span {
  color: #eef4ff;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.custom-order-prepare-main small,
.custom-order-prepare-form-grid small {
  color: #9fb0c5;
  line-height: 1.35;
}

.custom-order-prepare-form-grid {
  display: grid;
  gap: 10px;
}

.custom-order-prepare-form-grid label {
  color: #c7d5ea;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.custom-order-prepare-form-grid input[type="file"] {
  background: rgba(3, 8, 13, 0.7);
  border: 1px solid rgba(139, 194, 203, 0.3);
  border-radius: 8px;
  color: #eef4ff;
  min-height: 44px;
  padding: 10px;
}

.custom-order-design-list {
  display: grid;
  gap: 12px;
}

.custom-order-design-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.custom-order-design-tabs button,
.custom-order-design-tabs a[data-design-tab-link] {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(244, 209, 124, 0.28);
  border-radius: 8px;
  color: #eef4ff;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.custom-order-design-tabs button:hover,
.custom-order-design-tabs button:focus-visible,
.custom-order-design-tabs button.active,
.custom-order-design-tabs a[data-design-tab-link]:hover,
.custom-order-design-tabs a[data-design-tab-link]:focus-visible,
.custom-order-design-tabs a[data-design-tab-link].active {
  background: linear-gradient(135deg, rgba(244, 209, 124, 0.92), rgba(219, 151, 34, 0.94));
  border-color: rgba(255, 230, 161, 0.85);
  color: #090d10;
  outline: none;
}

.custom-order-design-tabs span {
  font-weight: 900;
  line-height: 1.2;
}

.custom-order-design-tabs small {
  color: inherit;
  font-size: 0.76rem;
  line-height: 1.25;
  opacity: 0.78;
}

.custom-order-design-pagination {
  align-items: center;
  background: rgba(2, 8, 13, 0.62);
  border: 1px solid rgba(42, 210, 205, 0.24);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: -6px 0 14px;
  padding: 8px;
}

.custom-order-design-pagination[hidden] {
  display: none;
}

.custom-order-design-filter-icon,
.custom-order-design-pagination button {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(160deg, rgba(13, 25, 36, 0.94), rgba(4, 10, 16, 0.94));
  border: 1px solid rgba(139, 194, 203, 0.32);
  border-radius: 8px;
  color: #9ffbf4;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
}

.custom-order-design-pagination button {
  cursor: pointer;
}

.custom-order-design-filter-icon svg,
.custom-order-design-pagination svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 20px;
}

.custom-order-design-pagination button:hover,
.custom-order-design-pagination button:focus-visible {
  border-color: rgba(246, 210, 122, 0.76);
  box-shadow: 0 0 18px rgba(42, 210, 205, 0.18);
  color: #ffe6a1;
  outline: none;
}

.custom-order-design-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.custom-order-design-pagination output,
.custom-order-design-pagination input {
  background: rgba(3, 8, 13, 0.82);
  border: 1px solid rgba(139, 194, 203, 0.28);
  border-radius: 8px;
  color: #eef4ff;
  font-weight: 900;
  height: 42px;
  min-width: 54px;
  padding: 0 10px;
  text-align: center;
}

.custom-order-design-pagination input {
  width: 68px;
}

.custom-order-design-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(42, 210, 205, 0.035)),
    #0c1117;
  border: 1px solid rgba(244, 209, 124, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.24);
  display: block;
  overflow: hidden;
}

.custom-order-design-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(132px, 0.9fr) minmax(0, 1fr) minmax(122px, 0.56fr) minmax(96px, max-content) 18px;
  list-style: none;
  min-height: 54px;
  padding: 12px 14px;
}

.custom-order-design-summary::-webkit-details-marker {
  display: none;
}

.custom-order-design-summary::after {
  color: #ffe6a1;
  content: ">";
  font-size: 1rem;
  font-weight: 900;
  justify-self: end;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.16s ease;
}

.custom-order-design-card[open] .custom-order-design-summary::after {
  transform: rotate(90deg);
}

.custom-order-design-toggle {
  align-items: center;
  color: #ffe6a1;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 26px;
  min-width: 26px;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.custom-order-design-code {
  color: #ffe6a1;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.custom-order-design-name {
  color: #eef4ff;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.custom-order-design-designer {
  color: #9ff6d4;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.custom-order-design-date {
  color: #9fb0c5;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.custom-order-design-date.is-deadline {
  animation: custom-order-deadline-pulse 1.18s ease-in-out infinite;
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.46);
  border-radius: 999px;
  color: #ff9b9b;
  justify-self: end;
  padding: 6px 10px;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.48);
}

@keyframes custom-order-deadline-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    color: #ffb4b4;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.16), 0 0 20px rgba(248, 113, 113, 0.28);
    color: #ff6b6b;
    transform: scale(1.035);
  }
}

.custom-order-design-detail {
  border-top: 1px solid rgba(244, 209, 124, 0.16);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.custom-order-design-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.custom-order-design-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.custom-order-design-head strong {
  color: #ffe6a1;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.custom-order-design-head span {
  color: #eef4ff;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-design-head small,
.custom-order-design-section small {
  color: #9fb0c5;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.custom-order-design-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.custom-order-design-status-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.custom-order-design-status-form label {
  color: #c7d5ea;
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 5px;
}

.custom-order-design-status-form select {
  background: rgba(3, 8, 13, 0.74);
  border: 1px solid rgba(139, 194, 203, 0.34);
  border-radius: 8px;
  color: #eef4ff;
  min-height: 42px;
  min-width: 180px;
  padding: 8px 10px;
}

.custom-order-design-status-form .custom-order-design-mockup-upload {
  background:
    linear-gradient(145deg, rgba(255, 74, 132, 0.12), rgba(36, 214, 205, 0.055)),
    rgba(2, 8, 13, 0.68);
  border: 1px solid rgba(255, 116, 136, 0.42);
  border-radius: 8px;
  color: #ffc8d4;
  min-width: min(340px, 100%);
  padding: 10px;
}

.custom-order-design-status-form .custom-order-design-redesign-field {
  background:
    linear-gradient(145deg, rgba(36, 214, 205, 0.15), rgba(255, 215, 117, 0.08)),
    rgba(2, 8, 13, 0.7);
  border: 1px solid rgba(36, 214, 205, 0.42);
  border-radius: 8px;
  color: #9ffbf4;
  min-width: min(260px, 100%);
  padding: 10px;
}

.custom-order-design-status-form .custom-order-design-redesign-field small {
  color: #bfeee9;
  font-weight: 700;
  line-height: 1.35;
}

.custom-order-design-status-form .custom-order-design-mockup-upload input[type="file"] {
  background: rgba(3, 8, 13, 0.82);
  border: 1px dashed rgba(255, 154, 168, 0.52);
  border-radius: 8px;
  color: #eef4ff;
  min-height: 42px;
  padding: 8px;
}

.custom-order-design-status-form .custom-order-design-mockup-upload small {
  color: #d9a7b2;
  font-weight: 700;
  line-height: 1.35;
}

.custom-order-revision-hint {
  background: linear-gradient(90deg, rgba(36, 214, 205, 0.18), rgba(255, 215, 117, 0.16));
  border: 1px solid rgba(36, 214, 205, 0.38);
  border-radius: 999px;
  color: #9ffbf4;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 8px;
  padding: 5px 10px;
  width: fit-content;
}

.custom-order-revision-hint[hidden] {
  display: none;
}

.custom-order-mockup-previews {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.custom-order-mockup-preview-thumb {
  background:
    linear-gradient(145deg, rgba(36, 214, 205, 0.18), rgba(255, 74, 132, 0.2)),
    rgba(2, 8, 13, 0.9);
  border: 1px solid rgba(255, 154, 168, 0.58);
  box-shadow: 0 0 18px rgba(255, 74, 132, 0.18);
}

.custom-order-mockup-preview-thumb:hover {
  border-color: rgba(255, 215, 117, 0.86);
  box-shadow: 0 0 24px rgba(36, 214, 205, 0.24), 0 0 22px rgba(255, 74, 132, 0.2);
}

.custom-order-design-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.custom-order-design-grid section,
.custom-order-design-section {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #eef4ff;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.custom-order-design-section-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.custom-order-design-order-detail {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.12), rgba(246, 210, 122, 0.08)),
    rgba(3, 9, 15, 0.78);
  border-color: rgba(36, 214, 205, 0.3);
  box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.64);
  gap: 10px;
}

.custom-order-design-order-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.custom-order-design-order-meta span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
}

.custom-order-design-order-meta b {
  color: #f9df86;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.custom-order-stock-summary em {
  color: #d7c6a4;
  display: block;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.custom-order-stock-summary.is-ready b,
.custom-order-item-stock .is-ready {
  color: #86efac;
}

.custom-order-stock-summary.is-partial b {
  color: #fde68a;
}

.custom-order-stock-summary.is-empty b,
.custom-order-item-stock .is-empty {
  color: #fca5a5;
}

.custom-order-design-order-items {
  display: grid;
  gap: 8px;
}

.custom-order-design-order-items article {
  background: rgba(1, 8, 13, 0.52);
  border: 1px solid rgba(159, 246, 212, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 9px 10px;
}

.custom-order-design-order-items article > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-order-design-order-items b {
  color: #ffe6a1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.custom-order-design-order-items span {
  color: #eef4ff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.custom-order-item-stock {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.custom-order-item-stock span {
  font-weight: 900;
}

.custom-order-design-order-recap,
.custom-order-design-order-note {
  background: rgba(1, 8, 13, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #dbeafe;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  white-space: pre-wrap;
}

.custom-order-design-order-note {
  border-color: rgba(246, 210, 122, 0.2);
  color: #f8e7ba;
}

.owner-section-hover-label {
  background: rgba(5, 12, 18, 0.9);
  border: 1px solid rgba(246, 210, 122, 0.62);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: #ffe39a;
  font-size: 0.68rem;
  font-weight: 850;
  left: 0;
  letter-spacing: 0;
  line-height: 1;
  max-width: 220px;
  overflow: hidden;
  padding: 5px 7px;
  pointer-events: none;
  position: fixed;
  text-overflow: ellipsis;
  top: 0;
  transform: translate(10px, 10px);
  white-space: nowrap;
  z-index: 9999;
}

.custom-order-design-grid small {
  color: #9fb0c5;
  line-height: 1.35;
}

.custom-order-design-grid b,
.custom-order-design-section b,
.custom-order-design-section strong {
  color: #ffe6a1;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-design-section p,
.custom-order-design-section span {
  color: #dbe7f7;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.custom-order-design-section a {
  color: #ffe6a1;
  overflow-wrap: anywhere;
}

.custom-order-sablon-subtabs {
  background: rgba(3, 14, 20, 0.82);
  border: 1px solid rgba(36, 214, 205, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(36, 214, 205, 0.08);
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 10px;
}

.custom-order-sablon-subtabs a {
  background: linear-gradient(135deg, rgba(16, 38, 41, 0.96), rgba(19, 22, 30, 0.96));
  border: 1px solid rgba(36, 214, 205, 0.28);
  color: #d9fbff;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.22);
}

.custom-order-sablon-subtabs a.active {
  background: linear-gradient(135deg, #2dd4d7 0%, #f1d985 58%, #ff5f93 100%);
  border-color: rgba(255, 236, 161, 0.7);
  color: #071015;
  text-shadow: none;
}

.custom-order-sablon-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.custom-order-sablon-summary span {
  background: linear-gradient(135deg, rgba(11, 40, 43, 0.88), rgba(20, 21, 30, 0.9));
  border: 1px solid rgba(36, 214, 205, 0.24);
  border-radius: 8px;
  color: #b8c5d9;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.custom-order-sablon-summary b {
  color: #ffe99f;
  font-size: 1.08rem;
}

.custom-order-sablon-history-list {
  display: grid;
  gap: 12px;
}

.custom-order-sablon-detail-form > form > div,
.custom-order-sablon-total,
.custom-order-sablon-entry-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.custom-order-sablon-detail-form label,
.custom-order-sablon-entry-list span,
.custom-order-sablon-total span {
  color: #b8c5d9;
  display: grid;
  font-size: 0.9rem;
  gap: 6px;
}

.custom-order-sablon-entry-list span,
.custom-order-sablon-total span {
  background: rgba(3, 12, 18, 0.52);
  border: 1px solid rgba(36, 214, 205, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
}

.custom-order-sablon-entry-list em {
  color: #9fffd5;
  font-style: normal;
}

.custom-order-sablon-detail-form button {
  justify-self: start;
}

.custom-order-design-timeline {
  margin-top: 10px;
}

.custom-order-design-timeline > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}

.custom-order-design-timeline span {
  background:
    linear-gradient(145deg, rgba(36, 214, 205, 0.1), rgba(255, 74, 132, 0.06)),
    rgba(3, 12, 18, 0.72);
  border: 1px solid rgba(36, 214, 205, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.custom-order-design-timeline small {
  color: #9ff6d4;
  font-weight: 800;
}

.custom-order-design-timeline em {
  color: #9fb0c5;
  font-style: normal;
  font-weight: 700;
}

.custom-order-history-list {
  display: grid;
  gap: 12px;
}

.custom-order-history-list > .cashier-cash-in-row-head {
  display: none;
}

.custom-order-history-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(42, 210, 205, 0.035)),
    #0c1117;
  border: 1px solid rgba(244, 209, 124, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.custom-order-history-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  list-style: none;
  padding: 12px 14px;
}

.custom-order-history-summary::-webkit-details-marker {
  display: none;
}

.custom-order-history-summary > span:not([class]),
.custom-order-history-summary > strong:not(.custom-order-history-code),
.custom-order-history-summary > b {
  display: none;
}

.custom-order-history-code {
  color: #ffe6a1;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(244, 209, 124, 0.24);
}

.custom-order-history-customer {
  color: #eef4ff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.custom-order-history-customer small {
  color: #9fb0c5;
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.custom-order-history-card > .cashier-cash-in-detail-view,
.custom-order-history-card > .custom-order-edit-form {
  border-top: 1px solid rgba(244, 209, 124, 0.18);
  margin: 0;
  padding: 14px;
}

.custom-order-history-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-order-history-detail-grid span,
.custom-order-history-section,
.custom-order-history-item-list > div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #eef4ff;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.custom-order-history-detail-grid small,
.custom-order-history-section small,
.custom-order-history-item-list small {
  color: #9fb0c5;
  line-height: 1.35;
}

.custom-order-history-detail-grid b,
.custom-order-history-section b,
.custom-order-history-section strong,
.custom-order-history-item-list b {
  color: #ffe6a1;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.custom-order-history-section {
  margin-top: 10px;
}

.custom-order-history-section p,
.custom-order-history-item-list span {
  color: #dbe7f7;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.custom-order-history-section a {
  color: #ffe6a1;
  overflow-wrap: anywhere;
}

.custom-order-history-item-list {
  display: grid;
  gap: 8px;
}

.custom-order-history-stock {
  background: rgba(3, 8, 13, 0.58);
  border: 1px solid rgba(139, 194, 203, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 8px 10px;
}

.custom-order-history-stock strong {
  color: #eef4ff;
  line-height: 1.25;
}

.custom-order-history-stock small {
  color: #b8c5d9;
}

.custom-order-history-stock.is-ready {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08), 0 0 18px rgba(74, 222, 128, 0.1);
}

.custom-order-history-stock.is-ready strong {
  color: #86efac;
}

.custom-order-history-stock.is-partial {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.08), 0 0 18px rgba(250, 204, 21, 0.1);
}

.custom-order-history-stock.is-partial strong {
  color: #fde68a;
}

.custom-order-history-stock.is-empty {
  border-color: rgba(248, 113, 113, 0.48);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08), 0 0 18px rgba(248, 113, 113, 0.1);
}

.custom-order-history-stock.is-empty strong {
  color: #fca5a5;
}

.custom-order-history-sewing {
  background: rgba(15, 143, 134, 0.12);
  border: 1px solid rgba(15, 143, 134, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 8px 10px;
}

.custom-order-history-sewing strong,
.custom-order-history-sewing b {
  color: #8df0e8;
  line-height: 1.25;
}

.custom-order-history-sewing small,
.custom-order-history-sewing em {
  color: #b8d7d5;
  font-style: normal;
}

.custom-order-history-sewing.is-pending {
  border-color: rgba(250, 204, 21, 0.42);
}

.custom-order-history-sewing.is-purchase {
  border-color: rgba(251, 146, 60, 0.42);
}

.custom-order-history-sewing.is-process {
  border-color: rgba(59, 130, 246, 0.42);
}

.custom-order-history-sewing.is-sent {
  border-color: rgba(74, 222, 128, 0.45);
}


.custom-order-prepare-button {
  min-height: 38px;
  padding-inline: 14px;
}

.custom-order-prepare-report-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.custom-order-prepare-report {
  align-items: center;
  background: rgba(3, 8, 13, 0.48);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 8px;
}

.custom-order-prepare-report .custom-order-file-thumb {
  height: 58px;
  width: 58px;
}

.custom-order-prepare-report span {
  display: grid;
  gap: 3px;
}

.custom-order-history-card .custom-order-file-list > strong {
  color: #ffe6a1;
}

.custom-order-history-card .custom-order-file-item {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(148, 163, 184, 0.18);
}

.custom-order-history-card .custom-order-file-list a,
.custom-order-history-card .custom-order-file-list a b {
  color: #eef4ff;
}

.custom-order-history-card .custom-order-file-list a span {
  color: #ffe6a1;
}

.custom-order-history-card .custom-order-file-list a small {
  color: #9fb0c5;
}

.custom-order-history-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.custom-order-history-icon-button {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 230, 161, 0.18), rgba(36, 214, 205, 0.1)),
    #111922;
  border: 1px solid rgba(255, 230, 161, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 18px rgba(36, 214, 205, 0.08);
  color: #ffe6a1;
  cursor: pointer;
  display: inline-grid;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.custom-order-history-icon-button:hover,
.custom-order-history-icon-button:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 226, 141, 0.96), rgba(216, 154, 37, 0.96));
  border-color: rgba(255, 234, 177, 0.9);
  color: #081016;
  outline: 0;
}

.custom-order-history-icon-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.custom-order-history-icon-button span {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.custom-order-history-icon-danger {
  border-color: rgba(255, 116, 136, 0.42);
  color: #ff9aa8;
}

.custom-order-history-icon-danger:hover,
.custom-order-history-icon-danger:focus-visible {
  background: linear-gradient(145deg, #ff8a9b, #d72842);
  border-color: rgba(255, 180, 191, 0.9);
  color: #fff;
}

.custom-orders-page .custom-order-history-card {
  background:
    linear-gradient(135deg, rgba(255, 230, 161, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(21, 33, 43, 0.98), rgba(5, 12, 17, 0.98));
  border-color: rgba(255, 230, 161, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(36, 214, 205, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.4);
}

.custom-orders-page .custom-order-history-summary {
  background: linear-gradient(90deg, rgba(255, 230, 161, 0.1), rgba(36, 214, 205, 0.045));
  border-bottom: 1px solid rgba(255, 230, 161, 0.16);
  color: #eef7ff;
}

body.invoice-page .custom-orders-page .custom-order-history-summary .custom-order-history-code,
.custom-orders-page .custom-order-history-summary .custom-order-history-code {
  color: #ffe58d;
  text-shadow: 0 0 16px rgba(255, 229, 141, 0.38), 0 1px 1px rgba(0, 0, 0, 0.7);
}

body.invoice-page .custom-orders-page .custom-order-history-summary .custom-order-history-customer,
.custom-orders-page .custom-order-history-summary .custom-order-history-customer {
  color: #f4fbff;
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.18), 0 1px 1px rgba(0, 0, 0, 0.72);
}

body.invoice-page .custom-orders-page .custom-order-history-summary .custom-order-history-customer small,
.custom-orders-page .custom-order-history-summary .custom-order-history-customer small {
  color: #c9d8ea;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
}

.custom-orders-page .custom-order-history-card > .cashier-cash-in-detail-view {
  background:
    linear-gradient(180deg, rgba(14, 24, 32, 0.97), rgba(5, 11, 15, 0.98));
}

.custom-orders-page .custom-order-history-detail-grid span,
.custom-orders-page .custom-order-history-section,
.custom-orders-page .custom-order-history-item-list > div {
  background:
    linear-gradient(145deg, rgba(36, 214, 205, 0.08), rgba(255, 230, 161, 0.045)),
    rgba(5, 13, 18, 0.82);
  border-color: rgba(90, 130, 143, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 20px rgba(36, 214, 205, 0.035);
}

.custom-orders-page .custom-order-history-detail-grid small,
.custom-orders-page .custom-order-history-section small,
.custom-orders-page .custom-order-history-item-list small,
.custom-orders-page .custom-order-file-list a small {
  color: #9fb0c5;
}

.custom-orders-page .custom-order-history-detail-grid b,
.custom-orders-page .custom-order-history-section strong,
.custom-orders-page .custom-order-history-item-list b,
.custom-orders-page .custom-order-file-list a span {
  color: #ffe6a1;
  text-shadow: 0 0 12px rgba(255, 230, 161, 0.18);
}

.custom-orders-page .custom-order-history-section p,
.custom-orders-page .custom-order-history-item-list span,
.custom-orders-page .custom-order-file-list a,
.custom-orders-page .custom-order-file-list a b {
  color: #eaf3ff;
}

.custom-orders-page .custom-order-file-item {
  background:
    linear-gradient(145deg, rgba(36, 214, 205, 0.07), rgba(255, 230, 161, 0.035)),
    rgba(5, 13, 18, 0.82);
  border-color: rgba(90, 130, 143, 0.46);
}

.custom-orders-page .custom-order-file-thumb {
  background: #050b10;
  border: 1px solid rgba(255, 230, 161, 0.24);
  box-shadow: 0 0 18px rgba(36, 214, 205, 0.08);
}

.cashier-sales-page .cashier-sales-tabs {
  background:
    linear-gradient(90deg, rgba(246, 210, 122, 0.08), rgba(110, 168, 255, 0.08), rgba(255, 74, 132, 0.07)),
    rgba(4, 10, 15, 0.88);
  border: 1px solid rgba(246, 210, 122, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(110, 168, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.2);
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
}

.cashier-sales-page .cashier-sales-tabs a {
  border: 1px solid rgba(246, 210, 122, 0.22);
  border-radius: 8px;
  color: #f5e3b7;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  z-index: 0;
}

.cashier-sales-page .cashier-sales-tabs a::before {
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  z-index: -1;
}

.cashier-sales-page .cashier-sales-tabs a:first-child::before {
  background: linear-gradient(135deg, #f6d27a, #24d6cd);
}

.cashier-sales-page .cashier-sales-tabs a:last-child::before {
  background: linear-gradient(135deg, #6ea8ff, #ff4a84);
}

.cashier-sales-page .cashier-sales-tabs a:hover::before,
.cashier-sales-page .cashier-sales-tabs a:focus-visible::before,
.cashier-sales-page .cashier-sales-tabs a.active::before {
  opacity: 1;
}

.cashier-sales-page .cashier-sales-tabs a:hover,
.cashier-sales-page .cashier-sales-tabs a:focus-visible,
.cashier-sales-page .cashier-sales-tabs a.active {
  border-color: rgba(255, 255, 255, 0.48);
  color: #061016;
}

.cashier-sales-page .cashier-sales-tabs a:first-child.active {
  background: linear-gradient(135deg, #f6d27a, #24d6cd) !important;
}

.cashier-sales-page .cashier-sales-tabs a:last-child.active {
  background: linear-gradient(135deg, #6ea8ff, #ff4a84) !important;
}

.cashier-sales-page [data-cashier-sales-view="history"] {
  --custom-order-accent: #6ea8ff;
  --custom-order-accent-soft: rgba(110, 168, 255, 0.2);
  --custom-order-accent-faint: rgba(110, 168, 255, 0.08);
  --custom-order-alt: #ff4a84;
}

.cashier-sales-page .cashier-sales-history-card > .cashier-cash-in-detail-view > p,
.cashier-sales-page .cashier-sales-history-card > .cashier-cash-in-detail-view > small {
  display: none;
}

.cashier-sales-history-tools,
.cashier-sales-history-pager,
.cashier-sales-page .cashier-sales-page-jump,
.cashier-sales-history-filter-form {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cashier-sales-history-tools {
  justify-content: space-between;
  margin: 0 0 14px;
}

.cashier-sales-history-filter {
  position: relative;
}

.cashier-sales-history-filter summary {
  list-style: none;
}

.cashier-sales-history-filter summary::-webkit-details-marker {
  display: none;
}

.cashier-sales-icon-button {
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(110, 168, 255, 0.42);
  border-radius: 8px;
  color: #eaf3ff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 40px;
}

.cashier-sales-icon-button:hover {
  background: rgba(110, 168, 255, 0.18);
  border-color: rgba(255, 74, 132, 0.58);
  color: #ffffff;
}

.cashier-sales-icon-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.cashier-sales-history-filter-form {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(6, 15, 30, 0.16);
  flex-wrap: wrap;
  left: 0;
  margin-top: 8px;
  min-width: min(760px, calc(100vw - 32px));
  padding: 10px;
  position: absolute;
  top: 100%;
  z-index: 9;
}

.cashier-sales-history-filter-form label {
  color: #4b5565;
  display: grid;
  flex: 1 1 150px;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 5px;
}

.cashier-sales-history-filter-form input,
.cashier-sales-history-filter-form select,
.cashier-sales-page .cashier-sales-page-jump input {
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.cashier-sales-history-pager {
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: flex-end;
}

.cashier-sales-page .cashier-sales-page-jump input {
  height: 40px;
  min-height: 40px;
  padding: 0 6px;
  text-align: center;
  width: 64px;
}

.cashier-sales-icon-button.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.cashier-sales-history-pager-bottom {
  justify-content: flex-end;
  margin-top: 14px;
}

.cashier-sales-history-actions {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.cashier-sales-history-actions form {
  margin: 0;
}

.cashier-sales-icon-button.is-danger {
  border-color: rgba(239, 68, 68, 0.48);
  color: #fecaca;
}

.cashier-sales-icon-button.is-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.72);
  color: #ffffff;
}

.cashier-sales-edit-panel {
  position: relative;
}

.cashier-sales-edit-panel summary {
  list-style: none;
}

.cashier-sales-edit-panel summary::-webkit-details-marker {
  display: none;
}

.cashier-sales-edit-form {
  background: #ffffff;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: min(980px, calc(100vw - 44px));
  padding: 12px;
  position: absolute;
  right: 0;
  top: 48px;
  width: 920px;
  z-index: 12;
}

.cashier-sales-edit-form label {
  color: #4b5565;
  display: grid;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 5px;
}

.cashier-sales-edit-form input,
.cashier-sales-edit-form select,
.cashier-sales-edit-form textarea {
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.cashier-sales-edit-form textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.cashier-sales-edit-form .cashier-sales-edit-span,
.cashier-sales-edit-items,
.cashier-sales-edit-payments,
.cashier-sales-edit-form button {
  grid-column: 1 / -1;
}

.cashier-sales-edit-items,
.cashier-sales-edit-payments {
  background: #f8fafc;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.cashier-sales-edit-items > strong,
.cashier-sales-edit-payments > strong {
  color: #0f2340;
  font-size: 0.92rem;
}

.cashier-sales-edit-item-row {
  align-items: end;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 0.8fr) minmax(90px, 0.75fr) minmax(100px, 0.9fr) minmax(180px, 1.6fr) minmax(70px, 0.55fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) auto;
  padding-top: 10px;
}

.cashier-sales-edit-item-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cashier-sales-edit-payment-row,
.cashier-sales-payment-line {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.8fr) auto;
}

.cashier-sales-edit-payment-row {
  border-top: 1px solid #e2e8f0;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.8fr) minmax(140px, 1fr);
  padding-top: 10px;
}

.cashier-sales-edit-payment-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cashier-sales-payment-detail b {
  display: grid;
  gap: 3px;
}

.cashier-sales-payment-detail em {
  font-style: normal;
}

.financial-discrepancy-table-wrap {
  overflow-x: auto;
}

.financial-discrepancy-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.financial-discrepancy-table th,
.financial-discrepancy-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.financial-discrepancy-table th {
  background: #0f1f36;
  color: #fff7df;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.financial-discrepancy-table td small {
  color: #64748b;
  display: block;
  margin-top: 4px;
}

.financial-discrepancy-table td b {
  color: #9f1239;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table {
  background: #ffffff;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table th {
  color: #fff7df !important;
  -webkit-text-fill-color: #fff7df !important;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table td,
body.invoice-page .financial-reports-page .financial-discrepancy-table td span,
body.invoice-page .financial-reports-page .financial-discrepancy-table td strong {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table td small {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table td b {
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table tbody tr:hover {
  background: #fff7df;
}

body.invoice-page .financial-reports-page .financial-discrepancy-table .cashier-history-link {
  color: #9a6500 !important;
  -webkit-text-fill-color: #9a6500 !important;
}

.cashier-sales-edit-remove-item {
  align-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  display: flex !important;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
}

.cashier-sales-edit-remove-item input {
  min-height: auto;
}

@media (max-width: 760px) {
  .cashier-sales-history-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .cashier-sales-history-pager {
    justify-content: space-between;
    width: 100%;
  }

  .cashier-sales-history-filter-form {
    min-width: 100%;
    position: static;
  }

  .cashier-sales-history-actions {
    justify-content: flex-start;
  }

  .cashier-sales-edit-form {
    grid-template-columns: 1fr;
    position: static;
    width: 100%;
  }

  .cashier-sales-edit-item-row {
    grid-template-columns: 1fr;
  }
}

.cashier-sales-page .cashier-sales-history-card {
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(21, 33, 43, 0.98), rgba(5, 12, 17, 0.98));
  border-color: rgba(110, 168, 255, 0.34);
  box-shadow:
    inset 3px 0 0 #6ea8ff,
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.cashier-sales-page .cashier-sales-history-card:hover {
  border-color: rgba(255, 74, 132, 0.48);
  box-shadow:
    inset 3px 0 0 #ff4a84,
    0 0 28px rgba(110, 168, 255, 0.16),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.cashier-sales-page .cashier-sales-history-summary {
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.14), rgba(255, 74, 132, 0.055)),
    rgba(2, 8, 13, 0.56);
}

.cashier-sales-page .cashier-sales-history-summary .custom-order-history-code {
  color: #f8fbff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72), 0 0 16px rgba(110, 168, 255, 0.28);
}

.cashier-sales-page .cashier-sales-history-summary .custom-order-history-customer {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
}

.cashier-sales-page .cashier-sales-history-summary .custom-order-history-customer small {
  color: #dbeafe;
}

.cashier-sales-page .cashier-sales-history-card > .cashier-cash-in-detail-view {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid span,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list > div {
  background: #f8fafc;
  border-color: #d7e0ec;
  color: #0b1728;
}

.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid small,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section small,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list small {
  color: #44546a;
}

.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid b,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section strong,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list b {
  color: #0f2340;
  text-shadow: none;
}

.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list span,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section p {
  color: #334155;
}

@media (max-width: 820px) {
  .custom-order-design-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-order-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-order-file-grid,
  .custom-order-product-editor,
  .custom-order-product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .custom-orders-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .custom-orders-page .custom-order-page-title {
    font-size: 0.56rem;
    letter-spacing: 0;
    line-height: 1.35;
  }

  .custom-orders-page .cashier-panel {
    gap: 9px;
    padding: 12px 10px;
  }

  .custom-orders-page .custom-order-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom-orders-page .custom-order-tabs a {
    font-size: 0.88rem;
    min-height: 42px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .custom-orders-page .cashier-panel label {
    font-size: 0.76rem;
    gap: 4px;
    margin: 0;
  }

  .custom-orders-page .cashier-panel input,
  .custom-orders-page .cashier-panel select,
  .custom-orders-page .cashier-panel textarea {
    min-height: 38px;
    padding: 6px 9px;
  }

  .custom-order-combo-menu {
    gap: 5px;
    max-height: min(36vh, 270px);
    padding: 7px;
    top: calc(100% + 5px);
  }

  .custom-order-combo-option {
    min-height: 43px;
    padding: 8px 9px;
  }

  .custom-orders-page .custom-order-file-panel,
  .custom-orders-page .custom-order-product-panel,
  .custom-orders-page .custom-order-product-card,
  .custom-orders-page .custom-order-pickup-card {
    padding: 10px;
  }

  .custom-order-design-head {
    display: grid;
  }

  .custom-order-design-tabs {
    grid-template-columns: 1fr;
  }

  .custom-order-design-tabs button,
  .custom-order-design-tabs a[data-design-tab-link] {
    min-height: 54px;
  }

  .custom-order-design-summary {
    grid-template-columns: minmax(0, 1fr) 18px;
    min-height: 60px;
    padding: 10px 12px;
  }

  .custom-order-design-name,
  .custom-order-design-designer,
  .custom-order-design-date {
    grid-column: 1;
  }

  .custom-order-design-summary::after {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .custom-order-design-actions,
  .custom-order-design-status-form {
    justify-content: stretch;
  }

  .custom-order-design-status-form select,
  .custom-order-design-actions .cashier-action-button {
    width: 100%;
  }

  .custom-order-design-grid {
    grid-template-columns: 1fr;
  }

  .custom-order-prepare-card {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .custom-order-prepare-form-grid input[type="file"] {
    min-height: 48px;
  }

  .custom-order-history-summary {
    gap: 8px;
    grid-template-columns: minmax(76px, max-content) minmax(0, 1fr);
    padding: 10px;
  }

  .custom-order-history-card > .cashier-cash-in-detail-view,
  .custom-order-history-card > .custom-order-edit-form {
    padding: 12px;
  }

  .custom-order-history-detail-grid {
    grid-template-columns: 1fr;
  }

  .custom-order-history-card .custom-order-file-item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 8px;
  }

  .custom-order-history-card .custom-order-file-thumb {
    width: 76px;
  }
}

/* Pesanan Custom mobile form polish: compact, accessible, and collapsible. */
body.invoice-page .custom-orders-page #custom-order-input .cashier-sale-form {
  gap: 12px !important;
}

body.invoice-page .custom-orders-page .custom-order-form-section {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.07) !important;
  min-width: 0;
  overflow: visible;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page .custom-order-form-section > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) 28px;
  list-style: none;
  min-height: 56px;
  padding: 10px 14px;
  position: relative;
  touch-action: manipulation;
}

body.invoice-page .custom-orders-page .custom-order-form-section > summary::-webkit-details-marker {
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-form-section > summary::after {
  align-items: center;
  color: #0f8f86;
  content: "+";
  display: flex;
  font-size: 1.45rem;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
  line-height: 1;
  transition: transform 160ms ease;
}

body.invoice-page .custom-orders-page .custom-order-form-section[open] > summary::after {
  content: "−";
}

body.invoice-page .custom-orders-page .custom-order-form-section > summary > span {
  color: #172126 !important;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

body.invoice-page .custom-orders-page .custom-order-form-section > summary > small {
  color: #526a72 !important;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

body.invoice-page .custom-orders-page .custom-order-form-section[open] > summary {
  border-bottom: 1px solid rgba(15, 143, 134, 0.14);
}

body.invoice-page .custom-orders-page .custom-order-section-grid,
body.invoice-page .custom-orders-page .custom-order-section-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

body.invoice-page .custom-orders-page .custom-order-section-content .custom-order-product-head,
body.invoice-page .custom-orders-page .custom-order-section-content .custom-order-product-list,
body.invoice-page .custom-orders-page .custom-order-section-content .custom-order-add-product,
body.invoice-page .custom-orders-page .custom-order-section-grid > .cashier-span,
body.invoice-page .custom-orders-page .custom-order-section-content > .cashier-span {
  grid-column: 1 / -1;
}

body.invoice-page .custom-orders-page .custom-order-required {
  color: #c23d54 !important;
  font-weight: 900;
}

body.invoice-page .custom-orders-page .custom-order-field-note,
body.invoice-page .custom-orders-page .custom-order-local-date,
body.invoice-page .custom-orders-page .custom-order-money-preview {
  color: #526a72 !important;
  display: block;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  line-height: 1.3;
  margin-top: 2px;
}

body.invoice-page .custom-orders-page .custom-order-money-preview {
  color: #0b756f !important;
  font-variant-numeric: tabular-nums;
}

body.invoice-page .custom-orders-page .custom-order-validation-error {
  color: #b4233b !important;
  display: none;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  margin-top: 2px;
}

body.invoice-page .custom-orders-page label:has(input:user-invalid) .custom-order-validation-error {
  display: block;
}

body.invoice-page .custom-orders-page input:user-invalid {
  border-color: #c94b61 !important;
  box-shadow: 0 0 0 3px rgba(201, 75, 97, 0.12) !important;
}

body.invoice-page .custom-orders-page input[readonly],
body.invoice-page .custom-orders-page textarea[readonly] {
  background: #edf3f3 !important;
  border-color: #c8d8da !important;
  color: #41575e !important;
  cursor: not-allowed;
}

body.invoice-page .custom-orders-page .custom-order-add-product {
  align-items: center !important;
  display: inline-flex !important;
  gap: 8px !important;
  justify-content: center !important;
  min-height: 48px !important;
}

body.invoice-page .custom-orders-page .custom-order-add-product svg {
  height: 20px !important;
  width: 20px !important;
}

body.invoice-page .custom-orders-page .custom-order-add-product span {
  display: inline !important;
  font-size: 0.92rem;
  font-weight: 850;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href].active {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page .custom-order-tabs a[href].active::before {
  display: none !important;
}

body.invoice-page.custom-order-keyboard-open .home-bottom-nav {
  display: none !important;
}

@media (max-width: 520px) {
  body.invoice-page .custom-orders-page {
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    min-height: 72px !important;
    padding: 14px 16px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: clamp(1.35rem, 6.2vw, 1.65rem) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.12 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    gap: 8px !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs a {
    min-height: 44px !important;
    padding: 8px 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input {
    padding: 10px 10px calc(112px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  body.invoice-page .custom-orders-page #custom-order-input > .packing-panel-head {
    display: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .cashier-sale-form {
    gap: 10px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-section-grid,
  body.invoice-page .custom-orders-page .custom-order-section-content {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  body.invoice-page .custom-orders-page .custom-order-form-section > summary {
    min-height: 52px;
    padding: 9px 12px;
  }

  body.invoice-page .custom-orders-page input,
  body.invoice-page .custom-orders-page select,
  body.invoice-page .custom-orders-page textarea,
  body.invoice-page .custom-orders-page button,
  body.invoice-page .custom-orders-page .custom-order-select-trigger {
    min-height: 44px;
  }

  body.invoice-page .custom-orders-page .cashier-form-actions {
    padding-bottom: 4px !important;
  }

  body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button {
    min-height: 50px !important;
    width: 100% !important;
  }
}

.custom-order-table .cashier-cash-in-detail-view a {
  color: inherit;
  overflow-wrap: anywhere;
}

.custom-order-image-modal {
  align-items: center;
  background: rgba(8, 10, 12, 0.86);
  border: 0;
  display: grid;
  height: 100dvh;
  inset: 0;
  justify-items: center;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 24px;
  position: fixed;
  width: 100vw;
  z-index: 2500;
}

.custom-order-image-modal::backdrop {
  background: transparent;
}

html.custom-order-image-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.custom-order-image-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.custom-order-image-modal-open > main.shell {
  animation: none !important;
  transform: none !important;
}

.custom-order-image-modal[hidden] {
  display: none;
}

.custom-order-image-modal figure {
  display: grid;
  gap: 10px;
  margin: 0;
  max-height: 92vh;
  max-width: min(1100px, 96vw);
}

.custom-order-image-modal img {
  background: #0f172a;
  border-radius: 8px;
  display: block;
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}

.custom-order-image-modal figcaption {
  color: #f8fafc;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}

.custom-order-image-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-order-image-actions[hidden] {
  display: none;
}

.custom-order-image-actions button {
  background: linear-gradient(135deg, #ffe596, #e19f2e);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #171008;
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
  padding: 10px 14px;
}

.custom-order-image-actions button:last-child {
  background: linear-gradient(135deg, rgba(10, 45, 48, 0.92), rgba(50, 18, 43, 0.82));
  border-color: rgba(68, 215, 210, 0.48);
  color: #f8fafc;
}

.custom-order-image-close {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  display: grid;
  font-size: 28px;
  height: 44px;
  justify-items: center;
  line-height: 1;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 44px;
  z-index: 2501;
}

.custom-order-recap {
  white-space: pre-wrap;
}

.custom-order-edit-form {
  border-top: 1px solid #edf0f5;
  margin-top: 14px;
  padding-top: 14px;
}

.cashier-menu-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
}

.financial-report-menu {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.financial-report-card small {
  color: #687080;
  font-weight: 800;
}

.financial-report-card-link {
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.financial-report-card-link:hover,
.financial-report-card-link:focus-visible {
  border-color: rgba(216, 162, 71, 0.55);
  box-shadow: 0 24px 64px rgba(216, 162, 71, 0.16);
  transform: translateY(-1px);
}

.financial-report-open {
  color: #0f3c7a;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.financial-analysis-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.financial-analysis-grid article {
  background: #f8fafc;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.financial-analysis-grid strong {
  color: #111827;
}

.financial-analysis-grid p {
  color: #687080;
  line-height: 1.45;
  margin: 0;
}

.financial-journal-table {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  max-height: min(68vh, 760px);
  overflow: auto;
}

.financial-journal-filter-panel {
  margin: 18px 0 14px;
}

.financial-journal-filter-toggle {
  align-items: center;
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border: 1px solid rgba(185, 130, 38, 0.36);
  border-radius: 8px;
  color: #111315;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  list-style: none;
  min-height: 42px;
  padding: 0 14px;
  user-select: none;
}

.financial-journal-filter-toggle::-webkit-details-marker {
  display: none;
}

.financial-journal-filter-toggle svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 18px;
}

.financial-journal-filter-panel[open] .financial-journal-filter-toggle {
  background: #111827;
  color: #fff7dc;
}

.cashier-inline-note {
  background: #f8fafc;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  color: #566070;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.financial-journal-filters {
  background: #f8fafc;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin: 10px 0 0;
  padding: 14px;
}

.financial-journal-filters label,
.financial-journal-page-jump {
  color: #687080;
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
}

.financial-journal-filters input,
.financial-journal-filters select,
.financial-journal-page-jump input {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.financial-journal-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
}

.financial-journal-page-tools {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 12px;
}

.financial-journal-page-tools-bottom {
  margin: 12px 0 0;
}

.financial-journal-page-tools > span,
.financial-journal-pagination > span {
  color: #687080;
  font-size: 0.82rem;
  font-weight: 800;
}

.financial-journal-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.financial-journal-page-jump {
  align-items: center;
  display: flex;
  gap: 8px;
}

.financial-journal-page-jump input {
  width: 82px;
}

.cashier-action-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.financial-journal-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  font-size: 0.95rem;
  font-weight: 300;
  gap: 12px;
  grid-template-columns: minmax(118px, 0.72fr) minmax(168px, 1.08fr) minmax(112px, 0.62fr) minmax(112px, 0.62fr) minmax(168px, 0.95fr) minmax(64px, 0.34fr) minmax(88px, 0.48fr);
  min-height: 78px;
  padding: 12px 14px;
  position: relative;
}

.financial-journal-row:not(.financial-journal-row-head)::before {
  border-radius: 999px;
  content: "";
  inset: 10px auto 10px 0;
  position: absolute;
  width: 6px;
}

.financial-journal-group-0 {
  background: #ffffff;
}

.financial-journal-group-0::before {
  background: #d8dde7;
}

.financial-journal-group-1 {
  background: #f4f6f8;
}

.financial-journal-group-1::before {
  background: #aeb7c4;
}

.financial-journal-group-2 {
  background: #ffffff;
}

.financial-journal-group-2::before {
  background: #d8dde7;
}

.financial-journal-group-3 {
  background: #f4f6f8;
}

.financial-journal-group-3::before {
  background: #aeb7c4;
}

.financial-journal-ledger-table .financial-journal-row.is-checked {
  background: #e8f8ee;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.14);
}

.financial-journal-ledger-table .financial-journal-row.is-checked::before {
  background: #2f9e63;
}

.financial-journal-ledger-table .financial-journal-row.is-checked a {
  color: #075e3b;
}

.financial-journal-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  min-height: 52px;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 6;
}

.financial-journal-row strong,
.financial-journal-row span,
.financial-journal-row b {
  color: #111827;
}

.financial-journal-row strong,
.financial-journal-row b {
  font-weight: 400;
}

.financial-journal-row span {
  font-weight: 300;
}

.financial-journal-row small {
  color: #687080;
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  margin-top: 3px;
}

.financial-journal-row-head span {
  color: #fff7dc;
}

.financial-journal-row .is-amount {
  text-align: right;
  white-space: nowrap;
}

.financial-journal-ledger-table .financial-journal-row .is-amount,
.financial-journal-ledger-table .financial-journal-row-head span:nth-child(3),
.financial-journal-ledger-table .financial-journal-row-head span:nth-child(4) {
  justify-self: start;
  text-align: left;
}

.financial-partner-flow-table .is-flow-in,
.financial-partner-flow-table .is-flow-out,
.financial-partner-flow-table .is-flow-product {
  text-align: left;
}

.financial-partner-flow-table {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
}

.financial-partner-flow-table > .financial-journal-row-head {
  display: none;
}

.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(42, 210, 205, 0.06)),
    #16212a;
  border: 1px solid rgba(168, 196, 230, 0.38);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px rgba(5, 12, 20, 0.22);
  color: #f8fbff;
  gap: 16px;
  grid-template-columns: minmax(120px, 0.55fr) minmax(210px, 1fr) minmax(240px, 1.25fr) minmax(120px, 0.6fr) minmax(120px, 0.6fr) minmax(190px, 0.9fr);
  min-height: 74px;
  overflow: visible;
  padding: 14px 16px;
}

.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head)::before {
  background: #6ea8ff;
  border-radius: 8px 0 0 8px;
  inset: 0 auto 0 0;
  width: 4px;
}

.financial-partner-flow-table > .financial-journal-row:nth-child(4n + 1)::before {
  background: #d95f9f;
}

.financial-partner-flow-table > .financial-journal-row:nth-child(4n + 2)::before {
  background: #6ea8ff;
}

.financial-partner-flow-table > .financial-journal-row:nth-child(4n + 3)::before {
  background: #2ad2cd;
}

.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) strong,
.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) span,
.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) b,
.financial-flow-source-cell {
  color: #f8fbff;
}

.financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) small,
.financial-flow-source-cell small {
  color: #c7d8ee;
  font-weight: 700;
}

.financial-partner-flow-table .is-amount {
  color: #ffffff;
  font-weight: 800;
  text-align: left;
}

.financial-partner-flow-table .is-amount small {
  color: #c7d8ee;
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0 0 5px;
  text-transform: uppercase;
  white-space: normal;
}

.financial-flow-source-cell {
  font-weight: 800;
  min-width: 0;
  position: relative;
}

.financial-partner-flow-table .financial-flow-source-cell a,
.financial-partner-flow-table .financial-group-investor-detail summary {
  color: #72b7ff;
  text-decoration-color: rgba(114, 183, 255, 0.7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.financial-partner-flow-table .financial-flow-source-cell a:hover,
.financial-partner-flow-table .financial-group-investor-detail summary:hover {
  color: #a9d5ff;
  text-decoration-color: #a9d5ff;
}

.financial-group-investor-recap {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  margin: 0 0 16px;
  overflow: hidden;
}

.financial-group-investor-recap > .packing-panel-head {
  background: #f8fafc;
  border-bottom: 1px solid #e4e7ee;
  margin: 0;
  padding: 14px;
}

.financial-group-investor-totals {
  color: #687080;
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.financial-group-investor-totals b {
  color: #111827;
  font-size: 1rem;
}

.financial-group-investor-table .financial-journal-row {
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.82fr) minmax(118px, 0.62fr) minmax(126px, 0.7fr) minmax(126px, 0.7fr) minmax(126px, 0.7fr) minmax(140px, 0.82fr) minmax(118px, 0.62fr);
  min-height: 48px;
}

.financial-group-investor-table .financial-journal-row:not(.financial-journal-row-head)::before {
  display: none;
}

.financial-group-investor-table .financial-journal-row-head {
  background: #ffffff;
  box-shadow: inset 0 -1px 0 #d9dee8;
  color: #111827;
  position: static;
  text-transform: none;
}

.financial-group-investor-table .financial-journal-row-head span {
  color: #111827;
}

.financial-group-investor-table .financial-journal-row > span,
.financial-group-investor-table .financial-journal-row > b,
.financial-group-investor-table .financial-journal-row > .is-amount {
  justify-self: start;
  text-align: left;
}

.financial-group-investor-total-row {
  background: #f8fafc;
  box-shadow: inset 0 1px 0 #d9dee8;
  font-weight: 900;
}

.financial-group-investor-reconciliation {
  background: #fff8e6;
  border-top: 1px solid #f1d28b;
  color: #5f4515;
  display: grid;
  gap: 6px;
  padding: 12px 18px;
}

.financial-group-investor-reconciliation p,
.financial-group-investor-reconciliation small {
  margin: 0;
}

.financial-group-investor-reconciliation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.financial-group-investor-reconciliation-list span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 142, 42, 0.26);
  border-radius: 999px;
  padding: 4px 9px;
}

.financial-group-investor-reconciliation-sources {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.financial-group-investor-reconciliation-sources article {
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 142, 42, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  padding: 8px 10px;
}

.financial-group-investor-reconciliation-sources small {
  color: #80653b;
  display: block;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .financial-group-investor-reconciliation-sources article {
    grid-template-columns: 1fr;
  }
}

.financial-group-investor-detail {
  margin-top: 2px;
}

.financial-group-investor-detail summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ffe6a1;
  cursor: pointer;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 900;
  gap: 6px;
  line-height: 1.25;
  list-style: none;
  min-height: 30px;
  padding: 0;
  text-decoration: underline;
  text-shadow: 0 0 14px rgba(244, 209, 124, 0.24);
  text-underline-offset: 3px;
}

.financial-group-investor-detail summary::-webkit-details-marker {
  display: none;
}

.financial-group-investor-detail summary::after {
  content: "+";
  align-items: center;
  background: rgba(110, 168, 255, 0.18);
  border: 1px solid rgba(110, 168, 255, 0.42);
  border-radius: 999px;
  color: #ffe6a1;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 18px;
}

.financial-group-investor-detail[open] summary::after {
  content: "-";
}

.financial-group-investor-detail summary b {
  color: #ffe6a1;
  font-weight: 800;
}

.financial-group-investor-detail-body {
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border: 1px solid rgba(110, 168, 255, 0.22);
  border-radius: 8px;
  box-shadow: inset 3px 0 0 #6ea8ff, inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 16px 36px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: min(920px, 88vw);
  overflow-x: auto;
  padding: 12px;
  width: max-content;
}

.financial-group-investor-detail-body > small {
  color: #9fb0c5;
  font-weight: 700;
  min-width: 780px;
}

.financial-group-investor-detail-head {
  color: #9fb0c5;
  display: grid;
  font-size: 0.66rem;
  font-weight: 700;
  gap: 8px;
  grid-template-columns: minmax(126px, 1.2fr) repeat(6, minmax(88px, 0.75fr));
  min-width: 780px;
  padding: 0 10px;
  text-transform: uppercase;
}

.financial-group-investor-detail-row {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.1), transparent 36%),
    rgba(3, 10, 16, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left-color: rgba(110, 168, 255, 0.48);
  border-radius: 8px;
  box-shadow: inset 3px 0 0 rgba(110, 168, 255, 0.52), inset 0 0 18px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(126px, 1.2fr) repeat(6, minmax(88px, 0.75fr));
  min-width: 780px;
  padding: 10px;
}

.financial-group-investor-detail-row:first-of-type {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.financial-group-investor-detail-row span {
  color: #eef4ff;
  font-weight: 700;
}

.financial-group-investor-detail-row small {
  color: #9fb0c5;
}

.financial-group-investor-detail-row > span:first-child {
  color: #ffe6a1;
}

.financial-group-investor-detail-head > span:not(:first-child),
.financial-group-investor-detail-row > span:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.financial-journal-row a {
  color: #0f3c7a;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.financial-journal-check-form {
  margin: 0;
}

.financial-journal-check {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  width: 34px;
}

.financial-journal-check input {
  accent-color: #d8a247;
  height: 20px;
  margin: 0;
  width: 20px;
}

.financial-journal-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.financial-journal-delete-form {
  display: inline-flex;
  margin: 0;
}

.financial-journal-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  color: #0f3c7a;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 34px;
}

.financial-journal-icon-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.financial-journal-icon-button:hover,
.financial-journal-icon-button:focus-visible {
  background: #f7fbff;
  border-color: #9bb8dd;
  box-shadow: 0 8px 18px rgba(15, 60, 122, 0.14);
  transform: translateY(-1px);
}

.financial-journal-icon-button.is-danger {
  color: #a72525;
}

.financial-journal-icon-button.is-danger:hover,
.financial-journal-icon-button.is-danger:focus-visible {
  background: #fff5f5;
  border-color: #e8a6a6;
  box-shadow: 0 8px 18px rgba(167, 37, 37, 0.14);
}

.financial-journal-icon-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.38;
  pointer-events: none;
}

.financial-profit-filter-panel {
  margin-bottom: 14px;
}

.financial-profit-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 0.75fr) minmax(120px, 0.5fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) minmax(220px, 0.9fr);
}

.financial-profit-filters label {
  color: #687080;
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
}

.financial-profit-filters input,
.financial-profit-filters select {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
}

.financial-profit-summary strong {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
}

.financial-profit-statement {
  display: grid;
  gap: 14px;
}

.financial-profit-section {
  background: #f8fafc;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.financial-profit-section h3 {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  color: #fff7dc;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 13px 16px;
  text-transform: uppercase;
}

.financial-profit-section div {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  min-height: 52px;
  padding: 12px 16px;
}

.financial-profit-section span {
  color: #111827;
  font-weight: 500;
}

.financial-profit-section small {
  color: #687080;
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  margin-top: 3px;
}

.financial-profit-section b {
  color: #111827;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.financial-capital-detail {
  background: #fff;
  border-top: 1px solid #edf0f5;
}

.financial-capital-detail summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) 28px;
  list-style: none;
  min-height: 52px;
  padding: 12px 16px;
}

.financial-capital-detail summary::-webkit-details-marker {
  display: none;
}

.financial-capital-detail summary::after {
  align-items: center;
  background: #111827;
  border: 1px solid #e0ad3a;
  border-radius: 999px;
  color: #fff7dc;
  content: "+";
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  justify-self: end;
  width: 22px;
}

.financial-capital-detail[open] summary::after {
  content: "-";
}

.financial-capital-detail summary > b {
  color: #111827;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.financial-capital-detail-list {
  background: #f8fafc;
  border-top: 1px solid #edf0f5;
  display: grid;
  padding: 4px 0;
}

.financial-capital-detail-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  padding: 10px 16px 10px 28px;
  text-decoration: none;
}

.financial-capital-detail-row:hover,
.financial-capital-detail-row:focus-visible {
  background: #eef3fb;
}

.financial-capital-detail-empty {
  color: #687080;
  display: block;
  font-size: 0.82rem;
  padding: 12px 16px 12px 28px;
}

.financial-profit-section .is-subtotal,
.financial-profit-section .is-total {
  background: #f4f6f8;
}

.financial-profit-section .is-total span,
.financial-profit-section .is-total b,
.financial-profit-section .is-subtotal span,
.financial-profit-section .is-subtotal b {
  font-weight: 800;
}

.financial-profit-net .is-grand-total {
  background: linear-gradient(135deg, #f4d17c, #b98226);
}

.financial-profit-net .is-grand-total span,
.financial-profit-net .is-grand-total b {
  color: #111315;
  font-size: 1.08rem;
  font-weight: 900;
}

.salary-team-filters {
  grid-template-columns: minmax(150px, 0.5fr) minmax(140px, 0.45fr) minmax(240px, 1fr) minmax(220px, auto);
}

.salary-team-table {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: auto;
}

.salary-team-row {
  background: #fff;
}

.salary-team-row-head,
.salary-team-detail summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 1.2fr) repeat(5, minmax(130px, 0.8fr));
  min-width: 1040px;
  padding: 12px 14px;
}

.salary-team-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  color: #fff7dc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  min-height: 52px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 4;
}

.salary-team-detail {
  border-top: 1px solid #edf0f5;
}

.salary-team-detail summary {
  cursor: pointer;
  list-style: none;
}

.salary-team-detail summary::-webkit-details-marker {
  display: none;
}

.salary-team-detail summary:hover {
  background: #f8fafc;
}

.salary-team-detail summary span {
  color: #111827;
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  min-width: 0;
}

.salary-team-detail summary b {
  color: #111827;
  font-weight: 900;
}

.salary-team-detail summary small {
  color: #687080;
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.salary-team-breakdown {
  background: #f8fafc;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 1040px;
  padding: 14px;
}

.salary-team-breakdown article {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: hidden;
}

.salary-team-breakdown h3 {
  background: #111827;
  color: #fff7dc;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 10px 12px;
  text-transform: uppercase;
}

.salary-team-breakdown p {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  margin: 0;
  min-height: 42px;
  padding: 10px 12px;
}

.salary-team-breakdown span {
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.salary-team-breakdown small {
  color: #687080;
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  margin-top: 2px;
}

.salary-team-breakdown b {
  color: #111827;
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.salary-team-empty {
  color: #687080;
  font-weight: 800;
  padding: 18px;
}

.cashier-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.financial-journal-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cashier-summary article,
.cashier-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(12, 15, 25, 0.08);
}

.cashier-summary article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.cashier-summary span,
.cashier-summary small,
.cashier-history-item small,
.cashier-history-item dt {
  color: #687080;
  font-size: 0.82rem;
}

.cashier-summary strong {
  color: #111827;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.cashier-cash-status-summary article.is-match strong,
.cashier-cash-status-summary article.is-match small {
  color: #126b3a;
}

.cashier-cash-status-summary article.is-different strong,
.cashier-cash-status-summary article.is-different small {
  color: #b3261e;
}

.cashier-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.cashier-workspace-single {
  grid-template-columns: 1fr;
}

.cashier-cash-out-page .cashier-workspace {
  transition: none;
}

.cashier-cash-out-page.is-cash-out-view-loading .cashier-workspace {
  pointer-events: none;
}

.cashier-cash-out-page.is-cash-out-view-fading-out .cash-out-input-panel,
.cashier-cash-out-page.is-cash-out-view-fading-out .cash-out-history-panel {
  animation: cashOutTabPanelFadeOut 500ms ease both;
  pointer-events: none;
}

.cashier-cash-out-page.is-cash-out-view-fading-in .cash-out-input-panel,
.cashier-cash-out-page.is-cash-out-view-fading-in .cash-out-history-panel {
  animation: cashOutTabPanelFadeIn 500ms ease both;
  pointer-events: none;
}

@keyframes cashOutTabPanelFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

@keyframes cashOutTabPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cashier-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.cashier-panel .packing-panel-head h2 {
  color: #111827;
  font-size: 1.25rem;
  margin: 6px 0 4px;
}

.cashier-panel .packing-panel-head small {
  color: #566174;
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cashier-panel .dashboard-kicker {
  color: #111827;
  display: inline-block;
  margin-bottom: 8px;
}

.sewing-job-list {
  display: grid;
  gap: 12px;
}

.sewing-job-row {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.sewing-job-main {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.sewing-job-main h3 {
  color: #111827;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.sewing-job-main p,
.sewing-cost-stack small,
.sewing-empty-note {
  color: #5f6878;
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}

.sewing-cost-stack {
  min-width: 150px;
  text-align: right;
}

.sewing-cost-stack strong {
  color: #111827;
  display: block;
  font-size: 1rem;
}

.sewing-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.sewing-metrics div {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 7px;
  padding: 10px;
}

.sewing-metrics dt,
.sewing-material-row small {
  color: #6b7280;
  font-size: 0.72rem;
}

.sewing-metrics dd {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.sewing-material-details {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 12px;
}

.sewing-material-details summary {
  color: #111827;
  cursor: pointer;
  font-weight: 600;
}

.sewing-material-table {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.sewing-material-row {
  align-items: center;
  background: #fbfdff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.6fr) minmax(70px, 0.7fr) minmax(96px, 0.9fr) minmax(110px, 1fr);
  padding: 10px;
}

.sewing-material-head {
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sewing-material-row strong,
.sewing-material-row small {
  display: block;
  overflow-wrap: anywhere;
}

.sewing-empty-note {
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.16);
  border-radius: 7px;
  padding: 10px;
}

@media (max-width: 860px) {
  .sewing-job-main {
    display: grid;
  }

  .sewing-cost-stack {
    min-width: 0;
    text-align: left;
  }

  .sewing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sewing-material-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(64px, 0.7fr);
  }

  .sewing-material-head {
    display: none;
  }
}

.cashier-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cashier-fund-movement-page .cashier-fund-transfer-form textarea,
.cashier-fund-movement-page .cashier-adjustment-form textarea {
  resize: vertical;
}

.cashier-transfer-preview,
.cashier-history-summary {
  background: #111827;
  border-radius: 8px;
  color: #fff7dc;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 12px 14px;
}

.cashier-journal-input-line {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.6fr) minmax(150px, 0.6fr) 56px;
  margin-top: 12px;
}

.cashier-journal-input-line:first-child {
  margin-top: 0;
}

.cashier-journal-input-line > button {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  font-size: 1.25rem;
  height: 56px;
}

.cashier-movement-history {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cashier-movement-card {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cashier-movement-card > header,
.cashier-movement-card > footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.cashier-movement-card > header > div {
  display: grid;
  gap: 3px;
}

.cashier-movement-card > header > div:last-child {
  text-align: right;
}

.cashier-movement-card > header small {
  color: #008f86;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cashier-movement-card p {
  margin: 0;
}

.cashier-movement-lines {
  display: grid;
  gap: 4px;
}

.cashier-movement-lines span {
  color: #4b5563;
  font-size: 0.86rem;
}

.cashier-movement-card > footer > div,
.cashier-movement-card > footer form {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0;
}

.cashier-movement-card > footer a,
.cashier-movement-card > footer button {
  background: transparent;
  border: 0;
  color: #007f78;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .cashier-journal-input-line {
    grid-template-columns: 1fr 1fr;
  }

  .cashier-journal-input-line > label:first-child,
  .cashier-journal-input-line > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.cashier-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cashier-form-actions .invoice-print-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cashier-form-actions .cashier-action-ghost {
  color: #111315;
}

.cashier-form-actions .cashier-cancel-edit-button,
.cashier-form-actions .cashier-cancel-edit-button:hover,
.cashier-form-actions .cashier-cancel-edit-button:focus-visible {
  background: #f5d06d;
  border: 1px solid rgba(184, 124, 28, 0.24);
  color: #111315;
  font-weight: 700;
  min-width: 150px;
  text-decoration: none;
}

.cashier-cash-denomination-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cashier-cash-denomination-grid label {
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
}

.cashier-cash-denomination-grid label > span {
  color: #111827;
  font-weight: 900;
}

.cashier-cash-denomination-grid small {
  color: #687080;
  font-weight: 800;
  text-align: right;
}

.cashier-cash-status-total {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.cashier-cash-status-total span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
}

.cashier-cash-status-total strong,
.cashier-cash-status-total [data-match-state] {
  color: #fff;
}

.cashier-cash-status-form button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

.cashier-cash-status-page .financial-profit-statement {
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  gap: 0;
  overflow: hidden;
}

.cashier-cash-status-page .financial-profit-statement div {
  align-items: center;
  background: #fff;
  border-top: 1px solid #e7edf5;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  min-height: 46px;
  padding: 10px 12px;
}

.cashier-cash-status-page .financial-profit-statement div:first-child {
  border-top: 0;
}

.cashier-cash-status-page .financial-profit-statement .cashier-cash-history-separator {
  background: #111827;
  min-height: 34px;
}

.cashier-cash-status-page .financial-profit-statement .cashier-cash-history-separator span {
  color: #fff7dc;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cashier-cash-status-page .financial-profit-statement span {
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 700;
}

.cashier-cash-status-page .financial-profit-statement b {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.cashier-panel label {
  color: #303747;
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 7px;
}

.cashier-dropdown-field {
  color: #303747;
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 7px;
  min-width: 0;
}

.cashier-panel input,
.cashier-panel select,
.cashier-panel textarea {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-width: 0;
  padding: 11px 12px;
}

input[type="date"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 8px;
}

.cashier-multi-dropdown {
  position: relative;
}

.cashier-multi-dropdown summary {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: space-between;
  min-height: 46px;
  overflow: hidden;
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashier-multi-dropdown summary::-webkit-details-marker {
  display: none;
}

.cashier-multi-dropdown summary::after {
  content: "⌄";
  font-size: 1rem;
  margin-left: 12px;
}

.cashier-multi-dropdown[open] summary {
  border-color: #e8b64c;
  box-shadow: 0 0 0 3px rgba(232, 182, 76, 0.18);
}

.cashier-multi-menu {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(12, 15, 25, 0.14);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2px;
  left: 0;
  max-height: 180px;
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 100%;
  z-index: 20;
}

.cashier-multi-menu label {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 0;
  justify-content: flex-start;
  margin: 0;
  min-height: 30px;
  padding: 5px 10px;
  position: relative;
}

.cashier-multi-menu input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.cashier-multi-menu span {
  color: #111827;
  display: block;
  width: 100%;
}

.cashier-multi-menu label:has(input:checked) {
  background: #fff6da;
  border-color: #e8b64c;
}

.cashier-multi-menu label:has(input:checked) span {
  color: #6f4708;
}

.cashier-span {
  grid-column: 1 / -1;
}

.cashier-items-editor {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.cashier-item-list {
  display: grid;
  gap: 10px;
}

.cashier-item-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(160px, 1.2fr) 126px 72px 112px 38px;
}

.cashier-item-row button,
.cashier-items-editor .invoice-items-head button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.cashier-item-row button {
  background: #fff1f2;
  color: #be123c;
  padding: 0;
}

.cashier-item-row button[hidden] {
  display: none;
}

.cashier-total-preview {
  background: #f7f8fb;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.cashier-total-preview span {
  color: #687080;
  display: grid;
  font-size: 0.82rem;
  gap: 4px;
}

.cashier-total-preview b {
  color: #111827;
  font-size: 1rem;
}

.cashier-history-list {
  display: grid;
  gap: 12px;
}

.cashier-history-item {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cashier-history-head,
.cashier-history-item dl div,
.cashier-history-item li {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cashier-history-head strong {
  color: #111827;
}

.cashier-history-head span {
  background: #eefdf5;
  border-radius: 999px;
  color: #087443;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 9px;
}

.cashier-history-item ul,
.cashier-history-item dl {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cashier-history-item li,
.cashier-history-item dd {
  color: #111827;
  font-size: 0.88rem;
  margin: 0;
}

.cashier-account-table {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: hidden;
}

.cashier-account-row {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) 105px 110px minmax(130px, 0.85fr) 70px minmax(220px, 1.2fr) minmax(150px, 0.85fr) 52px;
  padding: 12px 14px;
}

.cashier-account-row:first-child {
  border-top: 0;
}

.cashier-account-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cashier-account-row.cashier-account-row-head span {
  color: #fff7dc;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.cashier-account-row strong {
  color: #111827;
}

.cashier-account-row span,
.cashier-account-row small {
  color: #4b5563;
  font-size: 0.85rem;
}

.cashier-account-row small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cashier-account-row small em {
  background: #f7f8fb;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
  color: #303747;
  font-style: normal;
  padding: 5px 8px;
}

.cashier-account-row:not(.cashier-account-row-head) span:nth-child(2),
.cashier-account-row:not(.cashier-account-row-head) span:nth-child(3) {
  background: #f3f6fb;
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 6px 10px;
}

.cashier-account-edit {
  border-top: 1px solid #edf0f5;
}

.cashier-account-edit summary.cashier-account-row {
  border-top: 0;
  cursor: pointer;
  list-style: none;
}

.cashier-account-edit summary.cashier-account-row::-webkit-details-marker {
  display: none;
}

.cashier-account-edit[open] summary.cashier-account-row {
  border-bottom: 1px solid #edf0f5;
}

.cashier-account-edit > .cashier-form-grid {
  padding: 14px;
}

.cashier-account-edit-button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  color: #9a6a18;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  justify-self: end;
  width: 34px;
}

.cashier-account-edit-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.cashier-account-edit summary.cashier-account-row:hover .cashier-account-edit-button,
.cashier-account-edit summary.cashier-account-row:focus-visible .cashier-account-edit-button {
  background: #e0ad3f;
  border-color: #c88f25;
  color: #111827;
}

.cashier-cash-in-block {
  background: #f8fafc;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cashier-inline-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cashier-inline-head div {
  display: grid;
  gap: 3px;
}

.cashier-inline-head strong {
  color: #111827;
}

.cashier-inline-head small {
  color: #687080;
}

.cashier-cash-in-add-button,
.cashier-cash-in-line > button {
  align-items: center;
  background: #e0ad3f;
  border: 1px solid #c88f25;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.cashier-cash-in-add-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.cashier-cash-in-add-button[hidden] {
  display: none !important;
}

.cashier-cash-in-line {
  align-items: end;
  display: grid;
  column-gap: 12px;
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.55fr) minmax(260px, 1fr) 56px;
  margin-top: 18px;
  row-gap: 10px;
}

.cashier-sale-item-line {
  grid-template-columns: minmax(210px, 1fr) minmax(150px, 0.65fr) minmax(170px, 0.8fr) minmax(220px, 1fr) minmax(86px, 0.35fr) minmax(130px, 0.55fr) minmax(120px, 0.55fr) 76px;
}

.cashier-line-total {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(139, 92, 22, 0.18);
  border-radius: 8px;
  color: #78350f;
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: flex-end;
  min-height: 56px;
  padding: 0 12px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .cashier-sale-item-line {
    grid-template-columns: 1fr;
  }

  .cashier-sale-item-line > button,
  .cashier-line-total {
    width: 100%;
  }
}

.cashier-cash-in-line.is-customer-deposit {
  grid-template-columns: minmax(210px, 0.9fr) minmax(140px, 0.5fr) minmax(230px, 0.85fr) minmax(260px, 1fr) 56px;
}

.cashier-cash-in-line input:not([type="hidden"]),
.cashier-cash-in-line select {
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
}

.cashier-customer-autocomplete {
  display: block;
  position: relative;
}

[data-customer-deposit-field][hidden],
[data-investor-capital-field][hidden] {
  display: none;
}

.cashier-customer-autocomplete input[type="search"] {
  padding-right: 42px;
  width: 100%;
}

[data-customer-commission-info] {
  color: #ffe8b2;
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.cashier-customer-autocomplete > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #c88f25;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 4px;
  width: 34px;
  z-index: 3;
}

.cashier-customer-options {
  background: #fffaf0;
  border: 1px solid #e0ad3f;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 30px rgba(12, 15, 25, 0.18);
  display: grid;
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  z-index: 20;
}

.cashier-customer-options[hidden],
.cashier-customer-options button[hidden],
.cashier-customer-options .cashier-customer-quick-panel[hidden],
.cashier-customer-autocomplete > small[hidden] {
  display: none;
}

.cashier-customer-options > button {
  align-items: center;
  background: #fffaf0;
  border: 0;
  border-bottom: 1px solid #f0dec0;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
}

.cashier-customer-options > button:hover,
.cashier-customer-options > button:focus-visible {
  background: #f0c46c;
}

.cashier-customer-options .cashier-customer-add-option {
  background: #f8e3b5;
  color: #111827;
  font-weight: 900;
}

.cashier-customer-options .cashier-customer-quick-panel {
  background: #fff7e8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111827;
  padding: 12px;
}

.cashier-customer-options .cashier-customer-quick-panel label,
.cashier-customer-options .cashier-customer-quick-panel small {
  color: #1f2937;
}

.cashier-customer-options .cashier-customer-quick-panel input,
.cashier-customer-options .cashier-customer-quick-panel select {
  background: #fff;
  border-color: #e0ad3f;
  color: #111827;
}

.cashier-customer-options small {
  color: #8b8170;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.cashier-customer-autocomplete > small {
  background: #fffaf0;
  border: 1px solid #e0ad3f;
  border-radius: 0 0 8px 8px;
  color: #687080;
  display: block;
  left: 0;
  padding: 10px 12px;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  z-index: 20;
}

.cashier-cash-in-line:first-child {
  margin-top: 0;
}

.cashier-cash-in-line-receipt {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.55fr) minmax(260px, 0.85fr) 56px;
}

.cashier-cash-in-line > button {
  background: #fff;
  border-color: #d9dee8;
  font-size: 1.25rem;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  padding: 0;
  width: 56px;
}

.cashier-cash-in-total {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #fff7dc;
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 12px;
  justify-content: flex-end;
  padding: 12px;
}

.cashier-cash-in-total strong {
  color: #fff;
}

.cashier-cash-in-total .is-balanced {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 999px;
  color: #dcfce7;
  padding: 6px 10px;
}

.cashier-cash-in-total .is-unbalanced {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 999px;
  color: #fee2e2;
  padding: 6px 10px;
}

.cashier-cash-in-table {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  max-height: 72vh;
  overflow: auto;
}

.cashier-cash-in-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(230px, 1.5fr) 150px minmax(110px, 0.7fr);
  padding: 12px 14px;
}

.cashier-cash-in-page .cashier-cash-in-row {
  grid-template-columns: 135px minmax(210px, 1.25fr) minmax(220px, 1.35fr) 140px minmax(110px, 0.7fr);
}

.cashier-cash-in-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  z-index: 5;
}

.cashier-cash-in-row strong,
.cashier-cash-in-row span {
  color: #111827;
}

.cashier-cash-in-row span small {
  color: #687080;
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 3px;
}

.cashier-cash-in-category {
  overflow-wrap: anywhere;
}

.cashier-cash-in-row-head span {
  color: #fff7dc;
}

.cashier-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.cashier-row-actions a,
.cashier-row-actions button {
  align-items: center;
  background: #fff8e7;
  border: 1px solid #e0ad3f;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.cashier-row-actions button {
  background: #fff;
  border-color: #e2e8f0;
}

.cashier-history-pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

.cashier-history-pager span,
.cashier-history-pager strong,
.cashier-history-pager a,
.cashier-history-pager button,
.cashier-history-pager input {
  font-size: 0.78rem;
}

.cashier-history-pager span,
.cashier-history-pager strong {
  color: #5b6474;
  font-weight: 800;
  min-height: 30px;
  padding: 6px 4px;
}

.cashier-history-pager a,
.cashier-history-pager button {
  align-items: center;
  background: #fff;
  border: 1px solid #e1b758;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 30px;
  min-width: 32px;
  padding: 0 9px;
  text-decoration: none;
}

.cashier-history-pager a.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.cashier-history-pager form {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin: 0;
}

.cashier-history-pager input {
  border: 1px solid #d6dce8;
  border-radius: 6px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 8px;
  width: 54px;
}

.cashier-history-pager button {
  background: #d9a441;
  border-color: #d9a441;
}

@media (max-width: 720px) {
  .cashier-cash-in-table {
    max-height: 68vh;
  }

  .cashier-cash-in-row,
  .cashier-cash-in-table.has-owner-actions .cashier-cash-in-row {
    gap: 6px;
    grid-template-columns: 70px minmax(92px, 1fr) 82px 60px;
    padding: 9px 8px;
  }

  .cashier-cash-in-table.has-owner-actions .cashier-cash-in-row {
    grid-template-columns: 70px minmax(92px, 1fr) 82px 54px 66px;
  }

  .cashier-cash-in-row {
    font-size: 0.76rem;
  }

  .cashier-cash-in-row-head {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .cashier-cash-in-row span small {
    font-size: 0.64rem;
  }

  .cashier-row-actions {
    gap: 4px;
  }

  .cashier-row-actions a,
  .cashier-row-actions button {
    border-radius: 5px;
    font-size: 0.62rem;
    min-height: 28px;
    padding: 0 5px;
  }

  .cashier-history-pager {
    justify-content: center;
  }

  .cashier-history-pager span {
    flex-basis: 100%;
    min-height: 0;
    padding: 0 0 2px;
    text-align: center;
  }
}

.cashier-cash-in-edit summary {
  cursor: pointer;
  list-style: none;
}

.cashier-cash-in-edit summary::-webkit-details-marker {
  display: none;
}

.cashier-cash-in-detail-view {
  background: #f8fafc;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.cashier-detail-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.cashier-detail-actions a,
.cashier-detail-actions button {
  align-items: center;
  background: #fff8e7;
  border: 1px solid #e0ad3f;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  text-decoration: none;
}

.cashier-detail-actions button {
  background: #fff;
  border-color: #e2e8f0;
}

.cashier-modal-open {
  overflow: hidden;
}

.cashier-confirm-backdrop {
  align-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(224, 173, 63, 0.18), transparent 32%),
    rgba(4, 7, 11, 0.74);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 2500;
}

.cashier-confirm-backdrop[hidden] {
  display: none;
}

.cashier-confirm-modal {
  background: linear-gradient(145deg, #181713, #080b10 74%);
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  color: #f8f5ed;
  display: grid;
  gap: 12px;
  max-width: 420px;
  outline: none;
  padding: 22px;
  position: relative;
  width: min(100%, 420px);
}

.cashier-confirm-modal::before {
  background: linear-gradient(90deg, #f2cf73, #c88f25);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 22px;
  position: absolute;
  right: 22px;
  top: 0;
}

.cashier-confirm-mark {
  align-items: center;
  background: linear-gradient(135deg, #f2cf73, #c88f25);
  border-radius: 999px;
  color: #080b10;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.cashier-confirm-modal .dashboard-kicker {
  justify-self: start;
  margin: 0;
}

.cashier-confirm-modal h2 {
  color: #fff;
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.cashier-confirm-modal p:not(.dashboard-kicker) {
  color: #d8d0c1;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.cashier-confirm-modal strong {
  color: #f2cf73;
  font-weight: 600;
}

.cashier-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.cashier-confirm-actions button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
}

.cashier-confirm-actions button:first-child {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8f5ed;
}

.cashier-confirm-actions button:last-child {
  background: linear-gradient(135deg, #f2cf73, #c88f25);
  border: 1px solid #d8a339;
  color: #080b10;
}

.cashier-confirm-actions button:hover,
.cashier-confirm-actions button:focus-visible {
  transform: translateY(-1px);
}

.cashier-cash-in-detail-view section {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.cashier-cash-in-detail-view strong {
  color: #111827;
}

.cashier-cash-in-detail-view p {
  color: #303747;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
}

.cashier-cash-in-detail-view p.cashier-journal-line {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(95px, auto) minmax(95px, auto);
}

.cashier-journal-line b {
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.cashier-cash-in-detail-view small,
.cashier-cash-in-detail-view a {
  color: #687080;
}

.cashier-partner-table {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: hidden;
}

.cashier-partner-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(180px, 1.2fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 52px;
  padding: 12px 14px;
}

.cashier-partner-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.cashier-partner-row.cashier-partner-row-head span {
  color: #fff7dc;
}

.cashier-partner-row strong {
  color: #071225;
}

.cashier-partner-row span {
  color: #243044;
  font-size: 0.9rem;
}

.cashier-partner-edit {
  background: #fff;
  border-top: 1px solid #edf0f5;
}

.cashier-partner-edit summary.cashier-partner-row {
  border-top: 0;
  cursor: pointer;
  list-style: none;
}

.cashier-partner-edit summary.cashier-partner-row::-webkit-details-marker {
  display: none;
}

.cashier-partner-edit[open] summary.cashier-partner-row {
  border-bottom: 1px solid #edf0f5;
}

.cashier-partner-edit > .cashier-form-grid {
  padding: 14px;
}

.cashier-partner-edit summary.cashier-partner-row:hover .cashier-account-edit-button,
.cashier-partner-edit summary.cashier-partner-row:focus-visible .cashier-account-edit-button {
  background: #e0ad3f;
  border-color: #c88f25;
  color: #111827;
}

.cashier-partners-page {
  isolation: isolate;
  max-width: min(100%, 1800px);
  overflow: hidden;
  padding-bottom: 118px;
  position: relative;
}

.cashier-partners-page::before {
  background:
    linear-gradient(110deg, rgba(255, 67, 132, 0.24), transparent 34%),
    linear-gradient(250deg, rgba(41, 220, 215, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 185, 72, 0.14), rgba(9, 9, 17, 0.82) 48%, rgba(6, 6, 10, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  content: "";
  inset: -120px -6vw 0;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.cashier-partners-page::after {
  background:
    linear-gradient(135deg, transparent 0 14%, rgba(255, 210, 86, 0.26) 14% 14.8%, transparent 14.8% 100%),
    linear-gradient(0deg, rgba(255, 67, 132, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 12%, transparent 12% 88%, rgba(0, 0, 0, 0.16) 88%);
  content: "";
  inset: 0 -4vw auto;
  min-height: 420px;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.cashier-partners-page .cashier-partner-hero {
  align-items: end;
  background:
    linear-gradient(115deg, rgba(17, 13, 24, 0.84), rgba(25, 15, 20, 0.72) 48%, rgba(7, 23, 28, 0.76)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 214, 104, 0.36);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 42px);
  position: relative;
}

.cashier-partners-page .cashier-partner-hero::before {
  background:
    linear-gradient(90deg, #ff4f91, #ffd45f 42%, #38d9d0),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  bottom: 0;
  content: "";
  height: 4px;
  left: 20px;
  position: absolute;
  right: 20px;
}

.cashier-partners-page .cashier-partner-hero h1 {
  color: #fff8ed;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: 0.95;
  max-width: 880px;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.34), 0 0 36px rgba(255, 79, 145, 0.3);
}

.cashier-partners-page .cashier-partner-hero p:not(.auth-brand) {
  color: #ffe8c7;
  font-size: 1rem;
  max-width: 760px;
}

.cashier-partners-page .auth-brand {
  background: linear-gradient(90deg, #ffe18a, #ff5d98 56%, #52efe4);
  border: 0;
  color: #111017;
  box-shadow: 0 12px 28px rgba(255, 79, 145, 0.2);
}

.cashier-partner-hud {
  align-items: center;
  background: rgba(3, 8, 12, 0.72);
  border: 1px solid rgba(82, 239, 228, 0.4);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 32px rgba(0, 0, 0, 0.24);
  display: inline-grid;
  gap: 8px;
  grid-template-columns: auto auto auto;
  margin-top: 22px;
  min-height: 52px;
  padding: 10px 14px;
}

.cashier-partner-hud span,
.cashier-partner-hud small {
  color: #91fff7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cashier-partner-hud strong {
  color: #ffd45f;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 212, 95, 0.52);
}

.cashier-partners-page .cashier-head-actions {
  gap: 10px;
}

.cashier-partners-page .cashier-head-actions form {
  margin: 0;
}

.cashier-partner-action {
  background: linear-gradient(135deg, #ffd45f, #f39d33 48%, #ff5d98);
  border: 1px solid rgba(255, 244, 193, 0.5);
  box-shadow: 0 14px 28px rgba(255, 93, 152, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #151018;
  min-height: 46px;
  text-transform: uppercase;
}

.cashier-partner-action:hover,
.cashier-partner-action:focus-visible {
  background: linear-gradient(135deg, #52efe4, #ffd45f 45%, #ff5d98);
  transform: translateY(-2px);
}

.cashier-partners-page .cashier-partner-panel {
  background:
    linear-gradient(180deg, rgba(18, 15, 24, 0.92), rgba(10, 13, 18, 0.94)),
    linear-gradient(90deg, rgba(255, 93, 152, 0.18), rgba(82, 239, 228, 0.12));
  border: 1px solid rgba(255, 214, 104, 0.32);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cashier-partners-page .cashier-partner-panel .packing-panel-head {
  border-bottom: 1px solid rgba(255, 214, 104, 0.16);
  padding-bottom: 14px;
}

.cashier-partners-page .cashier-partner-panel .dashboard-kicker {
  background: linear-gradient(90deg, #ffd45f, #ff5d98);
  color: #121018;
}

.cashier-partners-page .cashier-partner-panel h2 {
  color: #fff8ed;
  letter-spacing: 0.06em;
  text-shadow: 0 0 24px rgba(255, 93, 152, 0.24);
}

.cashier-partners-page .cashier-partner-panel small {
  color: #ffdcb6;
}

.cashier-partners-page .cashier-form-grid label {
  color: #fff4de;
}

.cashier-partners-page .cashier-form-grid input,
.cashier-partners-page .cashier-form-grid select {
  background: rgba(255, 251, 242, 0.96);
  border: 1px solid rgba(255, 214, 104, 0.44);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(0, 0, 0, 0.16);
  color: #151018;
}

.cashier-partners-page .cashier-form-grid input:focus,
.cashier-partners-page .cashier-form-grid select:focus {
  border-color: #52efe4;
  box-shadow: 0 0 0 3px rgba(82, 239, 228, 0.2), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.cashier-partners-page .cashier-partner-table {
  background: rgba(10, 12, 18, 0.84);
  border-color: rgba(255, 214, 104, 0.28);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.cashier-partners-page .cashier-partner-row {
  background: rgba(255, 248, 232, 0.95);
  border-top-color: rgba(255, 93, 152, 0.14);
}

.cashier-partners-page .cashier-partner-row-head {
  background: linear-gradient(90deg, #17101d, #371827 48%, #11323a);
  border-bottom: 1px solid rgba(82, 239, 228, 0.28);
}

.cashier-partners-page .cashier-partner-edit {
  background: rgba(255, 248, 232, 0.95);
}

.cashier-partners-page .cashier-partner-edit[open] summary.cashier-partner-row,
.cashier-partners-page .cashier-partner-edit summary.cashier-partner-row:hover {
  background: linear-gradient(90deg, rgba(255, 244, 222, 0.98), rgba(223, 255, 252, 0.95));
}

.cashier-partners-page .cashier-partner-edit > .cashier-form-grid {
  background: rgba(10, 12, 18, 0.9);
  border-top: 1px solid rgba(82, 239, 228, 0.24);
}

@media (max-width: 760px) {
  .cashier-partners-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cashier-partners-page .cashier-partner-hero {
    align-items: stretch;
    padding: 18px 14px 22px;
  }

  .cashier-partners-page .cashier-partner-hero h1 {
    font-size: clamp(2.1rem, 16vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .cashier-partners-page .cashier-head-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cashier-partners-page .cashier-head-actions form,
  .cashier-partners-page .cashier-head-actions .invoice-print-button {
    width: 100%;
  }

  .cashier-partner-hud {
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .cashier-partner-hud small {
    grid-column: 1 / -1;
  }

  .cashier-partners-page .cashier-partner-panel {
    padding: 14px 12px;
  }

  .cashier-partners-page .cashier-partner-row {
    gap: 7px;
    grid-template-columns: minmax(74px, 0.7fr) minmax(118px, 1.2fr) minmax(92px, 0.85fr) minmax(92px, 0.85fr) 38px;
    min-width: 620px;
    padding: 10px;
  }

  .cashier-partners-page .cashier-partner-table {
    overflow-x: auto;
  }

  .cashier-partners-page .cashier-partner-row span,
  .cashier-partners-page .cashier-partner-row strong {
    font-size: 0.8rem;
  }
}

body.invoice-page:has(.cashier-partners-page) {
  background: #050506;
}

body.invoice-page:has(.cashier-partners-page) .shell {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 981px) {
  body.invoice-page:has(.cashier-partners-page) {
    height: 100dvh;
    overflow: hidden;
  }

  body.invoice-page:has(.cashier-partners-page) .shell {
    height: calc(100dvh - 78px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }
}

.cashier-partners-page {
  background: #050506;
  box-sizing: border-box;
  height: calc(100vh - 78px);
  margin: -24px 0 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  width: auto;
}

@media (min-width: 981px) {
  .cashier-partners-page {
    height: calc(100dvh - 78px);
    margin: 0;
    overflow: hidden;
    padding: clamp(16px, 2.2vw, 34px) clamp(18px, 3vw, 42px) 82px;
  }
}

.cashier-partners-page::before {
  background: url("/static/brand/ksrf-gta-menu-bg.png") center / cover no-repeat;
  inset: 0;
  opacity: 1;
  position: fixed;
  z-index: -3;
}

.cashier-partners-page::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.66) 34%, rgba(5, 5, 8, 0.26) 58%, rgba(5, 5, 8, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.12), rgba(5, 5, 8, 0.78)),
    linear-gradient(90deg, rgba(255, 102, 181, 0.2), transparent 31%),
    linear-gradient(145deg, transparent 0 58%, rgba(255, 210, 82, 0.2) 58.2% 58.8%, transparent 59%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px);
  animation: cashierPartnerOverlayIntro 0.75s ease 1s forwards;
  inset: 0;
  min-height: auto;
  opacity: 0;
  position: fixed;
  z-index: -2;
}

.cashier-partner-screen {
  align-items: start;
  animation: cashierPartnerMenuIntro 0.8s ease 1s forwards;
  display: grid;
  gap: clamp(42px, 5vw, 92px);
  grid-template-columns: minmax(320px, 1fr) minmax(560px, 620px);
  height: calc(100vh - 190px);
  justify-content: center;
  margin: 0 auto;
  max-width: min(1420px, 100%);
  min-height: 0;
  opacity: 0;
  transform: translateY(18px);
}

@media (min-width: 981px) {
  .cashier-partner-screen {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
}

.cashier-partners-page .cashier-partner-hero {
  align-content: start;
  align-items: start;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
  justify-items: start;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: clamp(52px, 10vh, 104px) 0 0 clamp(22px, 2.2vw, 34px);
  position: relative;
  width: 100%;
  z-index: 2;
}

@media (min-width: 981px) {
  .cashier-partners-page .cashier-partner-hero {
    max-height: 100%;
    overflow: hidden;
    padding-top: clamp(34px, 7vh, 78px);
  }
}

.cashier-partners-page .cashier-partner-hero::before {
  display: none;
}

.cashier-partner-mode {
  color: #ffadd8;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 4px 0 8px;
  text-transform: uppercase;
}

.cashier-partners-page .cashier-partner-hero h1 {
  color: #fff7ed;
  display: grid;
  font-size: clamp(2.8rem, 4.9vw, 5.25rem);
  letter-spacing: 0.1em;
  line-height: 0.93;
  margin: 0;
  max-width: 100%;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 62, 162, 0.46);
}

.cashier-partners-page .cashier-partner-hero h1::before {
  background: linear-gradient(180deg, #ff4aa2, #ffe071);
  content: "";
  height: calc(100% - 10px);
  left: -22px;
  position: absolute;
  top: 8px;
  width: 6px;
}

.cashier-partners-page .cashier-partner-hero h1 span:last-child {
  background: linear-gradient(90deg, #ff4aa2, #ff9d68 56%, #ffe071);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cashier-partners-page .cashier-partner-hero p:not(.auth-brand) {
  color: rgba(255, 238, 218, 0.86);
  font-size: 1rem;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 330px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.cashier-partners-page .auth-brand {
  min-width: 170px;
  text-align: center;
  white-space: nowrap;
}

.cashier-partner-hud {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.2);
  grid-template-columns: 1fr auto;
  margin-top: 14px;
  width: min(100%, 280px);
}

.cashier-partner-hud small {
  grid-column: 1 / -1;
}

.cashier-partners-page .cashier-partner-menu {
  align-self: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: clamp(24px, 3.2vw, 40px);
  max-width: none;
  width: min(205px, 100%);
}

.cashier-partner-menu form {
  width: 100%;
}

.cashier-partners-page .cashier-partner-action {
  align-items: center;
  background: rgba(255, 246, 230, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  color: #111014;
  display: flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: space-between;
  min-height: 48px;
  min-width: 0;
  padding: 0 24px 0 18px;
  width: 100%;
}

.cashier-partners-page .cashier-partner-action.is-active {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  box-shadow: 0 20px 38px rgba(255, 88, 168, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #08080b;
  transform: translateX(8px);
}

.cashier-partners-page .cashier-partner-action::after {
  content: ">";
  font-size: 1.1rem;
  line-height: 1;
}

.cashier-partners-page .cashier-partner-action:hover,
.cashier-partners-page .cashier-partner-action:focus-visible {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  color: #08080b;
  transform: translateX(8px);
}

.cashier-partner-utility-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.cashier-partner-utility-menu form {
  margin: 0;
}

.cashier-partner-utility-action {
  background: rgba(5, 5, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: none;
  color: #fff4df;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.cashier-partner-utility-action:hover,
.cashier-partner-utility-action:focus-visible {
  background: rgba(255, 246, 230, 0.9);
  color: #121014;
}

.cashier-partner-content {
  display: grid;
  gap: 18px;
  justify-items: stretch;
  min-height: 0;
  overflow: hidden;
  margin-left: 0;
  padding-top: clamp(58px, 10vh, 104px);
  width: 100%;
  z-index: 3;
}

@media (min-width: 981px) {
  .cashier-partner-content {
    align-content: start;
    box-sizing: border-box;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding-top: clamp(34px, 7vh, 78px);
  }
}

.cashier-partners-page .cashier-partner-panel {
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.72), rgba(7, 7, 10, 0.58)),
    linear-gradient(135deg, rgba(255, 88, 168, 0.2), rgba(100, 255, 244, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 26px;
  margin: 0 auto;
  max-height: calc(100vh - 190px);
  max-width: min(620px, 100%);
  min-height: 0;
  overflow: auto;
  padding: clamp(28px, 3vw, 42px) clamp(24px, 2.8vw, 38px) clamp(26px, 2.6vw, 36px);
  width: min(100%, 620px);
}

@media (min-width: 981px) {
  .cashier-partners-page .cashier-partner-panel {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
  }
}

.cashier-partners-page .cashier-partner-panel[hidden] {
  display: none;
}

.cashier-partners-page .cashier-partner-panel .dashboard-kicker {
  background: transparent;
  border-left: 4px solid #ff58a8;
  color: #ffe071;
  padding: 2px 0 2px 10px;
}

.cashier-partners-page .cashier-form-grid {
  background: transparent;
  border: 0;
  border-radius: 8px;
  gap: 18px 22px;
  padding: 0;
}

.cashier-partners-page .cashier-form-actions {
  display: block;
  grid-column: 1 / -1;
  justify-content: stretch;
  margin-top: 8px;
}

.cashier-partners-page .cashier-form-actions .cashier-partner-action {
  background: linear-gradient(90deg, #ff4aa2, #ff9d68 50%, #ffd34f);
  clip-path: none;
  justify-content: center;
  min-height: 54px;
  position: relative;
  width: 100%;
}

.cashier-partners-page .cashier-form-actions .cashier-partner-action::after {
  position: absolute;
  right: 22px;
}

.cashier-partners-page .cashier-form-actions .cashier-partner-action:hover,
.cashier-partners-page .cashier-form-actions .cashier-partner-action:focus-visible {
  transform: translateY(-2px);
}

.cashier-partners-page .cashier-partner-panel .packing-panel-head {
  align-items: start;
  gap: 18px;
  margin-bottom: 0;
}

.cashier-partners-page .cashier-partner-panel .dashboard-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  margin-bottom: 8px;
}

.cashier-partners-page .cashier-partner-panel h2 {
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.cashier-partners-page .cashier-partner-panel small {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 520px;
}

.cashier-partners-page .cashier-partner-panel > .cashier-form-grid,
.cashier-partners-page .cashier-partner-panel > .cashier-partner-table {
  min-height: 0;
}

.cashier-partners-page .cashier-form-grid input,
.cashier-partners-page .cashier-form-grid select {
  background: rgba(255, 249, 238, 0.92);
}

.cashier-partners-page .cashier-partner-table {
  background: rgba(3, 3, 6, 0.52);
  border-color: rgba(255, 255, 255, 0.2);
  max-height: min(520px, calc(100vh - 370px));
  overflow: auto;
}

@media (min-width: 981px) {
  .cashier-partners-page .cashier-partner-table {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }
}

.cashier-partners-page .cashier-partner-row {
  background: rgba(255, 246, 230, 0.88);
}

.cashier-partners-page .cashier-partner-row-head {
  background: linear-gradient(90deg, rgba(10, 9, 12, 0.92), rgba(74, 22, 55, 0.86), rgba(18, 71, 77, 0.86));
}

@keyframes cashierPartnerOverlayIntro {
  to {
    opacity: 0.68;
  }
}

@keyframes cashierPartnerMenuIntro {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .cashier-partner-screen {
    gap: 22px;
    grid-template-columns: 1fr;
    height: auto;
  }

  .cashier-partners-page .cashier-partner-hero {
    left: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 18px 0 0 22px;
    position: relative;
    top: auto;
    width: auto;
  }

  .cashier-partners-page .cashier-partner-hero h1,
  .cashier-partners-page .cashier-partner-hero p:not(.auth-brand) {
    max-width: 720px;
  }

  .cashier-partner-content {
    margin-left: 0;
    overflow: visible;
    padding-top: 22px;
    width: 100%;
  }

  .cashier-partners-page .cashier-partner-panel {
    max-height: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .cashier-partners-page {
    height: auto;
    margin-top: -16px;
    min-height: calc(100vh - 78px);
    overflow: visible;
    padding: 14px 12px 104px;
  }

  .cashier-partners-page::before {
    background: url("/static/brand/ksrf-gta-menu-bg.png") center / cover no-repeat;
  }

  .cashier-partner-screen {
    gap: 14px;
    min-height: 0;
  }

  .cashier-partners-page .cashier-partner-hero h1 {
    font-size: clamp(1.35rem, 8vw, 2.2rem);
    white-space: normal;
  }

  .cashier-partners-page .cashier-partner-menu {
    gap: 8px;
  }

  .cashier-partners-page .cashier-partner-action {
    min-height: 38px;
  }
}

.cashier-rule-form textarea {
  min-height: 92px;
  resize: vertical;
}

.cashier-rule-wide {
  grid-column: 1 / -1;
}

.cashier-checkbox-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
}

.cashier-checkbox-row input {
  height: 18px;
  width: 18px;
}

.cashier-checkbox-row span {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
}

.cashier-rule-list {
  display: grid;
  gap: 12px;
}

.cashier-rule-card {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: hidden;
}

.cashier-rule-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
}

.cashier-rule-card summary::-webkit-details-marker {
  display: none;
}

.cashier-rule-card summary strong {
  color: #071225;
  display: block;
  font-size: 1rem;
}

.cashier-rule-card summary small {
  color: #4b5563;
  display: block;
  margin-top: 4px;
}

.cashier-rule-card summary em {
  background: #fff7dc;
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 999px;
  color: #7a520f;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.cashier-rule-card[open] summary {
  border-bottom: 1px solid #edf0f5;
}

.cashier-rule-card > .cashier-form-grid {
  padding: 14px;
}

.cashier-table-tools {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  margin: 18px 0 16px;
}

.cashier-table-tools label,
.cashier-page-jump label {
  color: #fff7dc;
  display: grid;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 7px;
}

.cashier-table-tools input,
.cashier-table-tools select,
.cashier-page-jump input {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  color: #071225;
  font: inherit;
  min-height: 46px;
  padding: 0 14px;
}


.cashier-customer-tools {
  grid-template-columns: minmax(260px, 1fr) minmax(155px, 0.18fr) minmax(155px, 0.18fr) auto auto;
}

.cashier-tool-label {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.cashier-tool-label svg,
.cashier-filter-submit svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.cashier-icon-select select {
  cursor: pointer;
  min-width: 0;
}

.cashier-filter-submit {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}
.cashier-secondary-link {
  align-items: center;
  color: #f1c35d;
  display: inline-flex;
  font-weight: 900;
  min-height: 46px;
}

.cashier-customer-table {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.cashier-customer-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 10px;
  grid-template-columns: 95px minmax(170px, 1.15fr) minmax(150px, 0.9fr) 145px 145px 120px 80px 130px 130px 100px 52px;
  min-width: 1530px;
  padding: 12px 14px;
}

.cashier-customer-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.cashier-customer-row.cashier-customer-row-head span {
  color: #fff7dc;
}

.cashier-customer-row strong {
  color: #071225;
}

.cashier-customer-row span {
  color: #243044;
  font-size: 0.9rem;
}

.cashier-history-link,
.cashier-history-field-button {
  background: transparent;
  border: 0;
  color: #b88214;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cashier-history-field-button {
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: #071225;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
  width: 100%;
}

.cashier-history-link:hover,
.cashier-history-link:focus-visible,
.cashier-history-field-button:hover,
.cashier-history-field-button:focus-visible {
  color: #7a4f04;
  outline: 2px solid rgba(224, 173, 63, 0.35);
  outline-offset: 2px;
}

.cashier-customer-edit {
  background: #fff;
  border-top: 1px solid #edf0f5;
}

.cashier-customer-edit summary.cashier-customer-row {
  border-top: 0;
  cursor: pointer;
  list-style: none;
}

.cashier-customer-edit summary.cashier-customer-row::-webkit-details-marker {
  display: none;
}

.cashier-customer-edit[open] summary.cashier-customer-row {
  border-bottom: 1px solid #edf0f5;
}

.cashier-customer-edit > .cashier-form-grid {
  padding: 14px;
}

.cashier-customer-edit > .cashier-form-grid label,
.cashier-customer-edit > .cashier-form-grid small {
  color: #303747;
}

.cashier-customer-edit > .cashier-form-grid label {
  font-weight: 800;
}

.cashier-customer-edit > .cashier-form-grid input,
.cashier-customer-edit > .cashier-form-grid select,
.cashier-customer-edit > .cashier-form-grid textarea {
  color: #071225;
}

.cashier-customer-edit > .cashier-form-grid input[readonly] {
  color: #6b7280;
}

.cashier-customer-edit summary.cashier-customer-row:hover .cashier-account-edit-button,
.cashier-customer-edit summary.cashier-customer-row:focus-visible .cashier-account-edit-button {
  background: #e0ad3f;
  border-color: #c88f25;
  color: #111827;
}

.cashier-history-modal-backdrop {
  align-items: center;
  background: rgba(4, 7, 12, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

.cashier-history-modal-backdrop[hidden] {
  display: none;
}

.cashier-history-modal {
  background: #fff;
  border: 1px solid #e0ad3f;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #111827;
  display: grid;
  gap: 14px;
  max-height: min(760px, 92vh);
  max-width: min(1180px, 96vw);
  overflow: hidden;
  padding: 18px;
  position: relative;
  width: 100%;
}

.cashier-history-close {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
}

.cashier-history-modal h2 {
  color: #111827;
  font-size: 1.2rem;
  margin: 2px 48px 0 0;
}

.cashier-history-modal small {
  color: #6b7280;
}

.cashier-history-summary {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #ead39d;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.cashier-history-summary span {
  color: #6b4d11;
  font-weight: 800;
}

.cashier-history-summary strong {
  color: #111827;
  font-size: 1.05rem;
}

.cashier-history-table {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: auto;
}

.cashier-history-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 105px 250px 190px 150px 150px 150px;
  min-width: 1020px;
  padding: 10px 12px;
}

.cashier-history-row:not(.cashier-history-head) {
  border-top: 1px solid #edf0f5;
}

.cashier-history-head {
  background: #111827;
  color: #fff7dc;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cashier-history-row span {
  color: #253044;
  font-size: 0.85rem;
}

.cashier-history-row small {
  display: block;
  font-size: 0.74rem;
  margin-top: 3px;
}

.cashier-history-row code {
  background: #f4f6fa;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  color: #111827;
  display: inline-block;
  font-size: 0.78rem;
  padding: 3px 6px;
}

.cashier-history-row .is-plus {
  color: #15803d;
  font-weight: 900;
}

.cashier-history-row .is-minus {
  color: #b91c1c;
  font-weight: 900;
}

.cashier-history-row .is-held,
.cashier-history-row.is-held span {
  color: #9a6a08;
  font-weight: 800;
}

.cashier-product-table {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  max-height: 72vh;
  overflow: auto;
  width: 100%;
}

.cashier-product-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf0f5;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 0.85fr) minmax(240px, 1.55fr) minmax(82px, 0.42fr) minmax(90px, 0.48fr) minmax(110px, 0.6fr);
  padding: 12px 14px;
}

.cashier-product-row-head {
  background: linear-gradient(180deg, #111827 0%, #08111f 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(224, 173, 63, 0.35), inset 0 -1px 0 rgba(224, 173, 63, 0.28);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  z-index: 5;
}

.cashier-product-edit {
  background: #fff;
  border-top: 1px solid #edf0f5;
}

.cashier-product-edit summary.cashier-product-row {
  border-top: 0;
  cursor: pointer;
  list-style: none;
}

.cashier-product-edit summary.cashier-product-row::-webkit-details-marker {
  display: none;
}

.cashier-product-edit[open] summary.cashier-product-row {
  border-bottom: 1px solid #edf0f5;
}

.cashier-product-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cashier-product-row strong {
  color: #071225;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.cashier-product-row span {
  color: #526071;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.cashier-product-row-head span {
  color: #fff7dc;
}

.cashier-product-links {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cashier-product-links a,
.cashier-product-links span {
  background: #fff7dc;
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 8px;
  color: #7a520f;
  font-weight: 900;
  padding: 5px 8px;
  text-decoration: none;
}

.cashier-product-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.cashier-product-form input[readonly] {
  color: #6b7280;
}

.cashier-product-checkbox {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 48px;
}

.cashier-product-checkbox input {
  min-height: auto;
  width: auto;
}

.cashier-product-edit-body {
  padding: 14px;
}

.cashier-product-edit-body .cashier-form-grid label,
.cashier-product-edit-body .cashier-form-grid small {
  color: #303747;
}

.cashier-product-edit-body .cashier-form-grid label {
  font-weight: 800;
}

.cashier-product-edit-body .cashier-form-grid input,
.cashier-product-edit-body .cashier-form-grid select,
.cashier-product-edit-body .cashier-form-grid textarea {
  color: #071225;
}

.cashier-product-delete-form {
  border-top: 1px solid #edf0f5;
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
}

.cashier-product-delete-form button {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
}

.cashier-inline-link {
  color: #f1c35d;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cashier-base-code-list {
  display: grid;
  gap: 10px;
}

.cashier-base-code-card {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  overflow: hidden;
}

.cashier-base-code-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.cashier-base-code-card summary::-webkit-details-marker {
  display: none;
}

.cashier-base-code-card summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cashier-base-code-card summary strong {
  color: #071225;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cashier-base-code-card summary small {
  color: #526071;
  line-height: 1.35;
}

.cashier-base-code-card summary em,
.cashier-base-code-meta span {
  background: #fff7dc;
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 999px;
  color: #7a520f;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.cashier-base-code-card > .cashier-form-grid {
  border-top: 1px solid #edf0f5;
  padding: 14px;
}

.cashier-base-code-card > .cashier-form-grid label,
.cashier-base-code-card > .cashier-form-grid small {
  color: #303747;
}

.cashier-base-code-card > .cashier-form-grid label {
  font-weight: 800;
}

.cashier-base-code-card > .cashier-form-grid input,
.cashier-base-code-card > .cashier-form-grid select,
.cashier-base-code-card > .cashier-form-grid textarea {
  color: #071225;
}

.cashier-base-code-meta {
  border-top: 1px solid #edf0f5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 14px 0;
}

body.invoice-page .cashier-products-page .cashier-variant-code-list {
  gap: 12px;
}

body.invoice-page .cashier-products-page .cashier-variant-code-card {
  overflow: hidden;
}

body.invoice-page .cashier-products-page .cashier-variant-code-summary {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 16px;
}

body.invoice-page .cashier-products-page .cashier-variant-code-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.invoice-page .cashier-products-page .cashier-variant-code-id {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.invoice-page .cashier-products-page .cashier-variant-code-detail {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.invoice-page .cashier-products-page .cashier-variant-code-count {
  justify-self: end;
}

body.invoice-page .cashier-products-page .cashier-variant-code-card > .cashier-form-grid {
  padding: 14px;
}

body.invoice-page .cashier-products-page .variant-code-description-field {
  grid-column: 1 / -1 !important;
}

body.invoice-page .cashier-products-page .variant-code-action-bar {
  flex-wrap: wrap;
}

body.invoice-page .cashier-products-page .variant-code-form-status:not([hidden]) {
  order: 2;
}

body.invoice-page .cashier-products-page .variant-code-summary-actions {
  flex: 0 0 auto;
}

body.invoice-page .cashier-products-page .variant-code-create-panel .packing-panel-head::before,
body.invoice-page .cashier-products-page #cashier-variant-code-database .packing-panel-head::before {
  content: none !important;
}

body.invoice-page .cashier-products-page #cashier-variant-code-database .base-code-edit-actions .invoice-print-button,
body.invoice-page .cashier-products-page #cashier-variant-code-database .base-code-edit-cancel {
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
}

body.invoice-page .cashier-products-page #cashier-variant-code-database .base-code-danger-zone .cashier-product-delete-form {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .cashier-products-page #cashier-variant-code-database .base-code-danger-zone .cashier-product-delete-form button {
  font-size: 0.75rem !important;
  font-weight: 850 !important;
  min-height: 38px !important;
  padding: 7px 13px !important;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.invoice-page .cashier-products-page .cashier-variant-code-summary {
    gap: 10px;
  }

  body.invoice-page .cashier-products-page .cashier-variant-code-main {
    display: grid;
    gap: 4px;
  }

  body.invoice-page .cashier-products-page .cashier-variant-code-count {
    justify-self: start;
  }
}

.cashier-products-page {
  max-width: min(1180px, 100%);
}

.cashier-products-page .invoice-builder-head {
  gap: clamp(14px, 2.4vw, 24px);
  overflow: hidden;
}

.cashier-products-page .invoice-builder-head h1 {
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cashier-products-page .invoice-builder-head p:not(.auth-brand) {
  max-width: 720px;
}

.cashier-products-page .cashier-head-actions {
  max-width: 600px;
}

.cashier-products-page .cashier-action-button {
  min-width: 0;
}

.cashier-products-page .cashier-action-secondary {
  min-width: 210px;
}

.cashier-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.cashier-page-link,
.cashier-page-gap {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
}

.cashier-page-link {
  background: #fff;
  border: 1px solid rgba(224, 173, 63, 0.35);
  color: #071225;
  text-decoration: none;
}

.cashier-page-link.is-active {
  background: #d9a441;
  border-color: #d9a441;
  color: #111827;
}

.cashier-page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cashier-page-gap {
  color: #fff7dc;
  min-width: 28px;
  padding: 0 4px;
}

.cashier-page-jump {
  align-items: end;
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.cashier-page-jump input {
  max-width: 92px;
}

.cashier-blacklist-proofs {
  background: #f8fafc;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 18px 18px;
}

.cashier-blacklist-proofs[hidden],
[data-blacklist-field][hidden] {
  display: none !important;
}

.cashier-blacklist-proofs legend,
.cashier-proof-title {
  color: #111827;
  display: block;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.cashier-blacklist-proofs small {
  color: #6b7280;
  display: block;
  line-height: 1.45;
}

.cashier-proof-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cashier-proof-grid label {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  padding: 12px;
}

.cashier-proof-grid input[type="file"] {
  background: #f8fafc;
  border-style: dashed;
  min-height: 44px;
  padding: 9px;
}

.cashier-blacklist-proofs > input[type="file"] {
  background: #fff;
  border: 1px dashed #d9a441;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px;
}

.cashier-proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cashier-proof-links a {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.cashier-proof-grid a {
  color: #9a6a18;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-top: 6px;
}

.packing-board .invoice-builder-head {
  margin-bottom: 2px;
}

.packing-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 12, 10, 0.07);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  max-width: none;
  padding: 6px;
  width: min(100%, 1040px);
}

.packing-tabs a,
.packing-guide-tab {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  position: relative;
  text-decoration: none;
}

.packing-tabs a:hover,
.packing-tabs a.active,
.packing-guide-tab:hover,
.packing-guide-tab:focus-visible {
  background: #fff5f5;
  border-color: #f2d8d8;
  color: var(--brand-dark);
}

.packing-tabs em {
  align-items: center;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  position: absolute;
  right: 4px;
  top: -8px;
}

.packing-form {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.packing-panel,
.packing-entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 12, 10, 0.06);
}

.packing-panel {
  align-content: start;
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 18px;
}

.packing-panel-head h2 {
  font-size: 19px;
  margin: 6px 0 0;
}

.packing-panel label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  margin: 0;
}

.packing-panel input,
.packing-panel select,
.packing-panel textarea {
  font-weight: 700;
  min-height: 40px;
}

.packing-panel .packing-inline-check {
  align-items: center;
  background: rgba(244, 209, 124, 0.12);
  border: 1px solid rgba(201, 144, 47, 0.32);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.packing-panel .packing-inline-check input {
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
}

.packing-panel .packing-inline-check span {
  display: grid;
  gap: 2px;
}

.packing-panel .packing-inline-check small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.packing-panel .phone-field {
  grid-template-columns: 118px minmax(0, 1fr);
  margin: 0;
}

.packing-panel .country-trigger {
  min-height: 40px;
}

.packing-recipient-picker {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 4;
}

.packing-recipient-picker strong {
  font-size: 13px;
  font-weight: 900;
}

.packing-recipient-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 12, 10, 0.14);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
}

.packing-recipient-options[hidden] {
  display: none;
  pointer-events: none;
}

.packing-recipient-options button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0edeb;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
}

.packing-recipient-options button:last-child {
  border-bottom: 0;
}

.packing-recipient-options button.is-filtered-out {
  display: none !important;
}

.packing-recipient-options button:hover,
.packing-recipient-options button.is-selected {
  background: #fff5f5;
  color: var(--brand-dark);
}

.packing-recipient-options small,
.packing-recipient-picker > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.packing-secondary-action {
  align-self: start;
  background: #fff5f5;
  border: 1px solid #f2caca;
  border-radius: 8px;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

.packing-quick-customer {
  background: #fffafa;
  border: 1px solid #f2dcdc;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.packing-quick-customer[hidden] {
  display: none;
}

.packing-quick-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.packing-quick-customer-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

.packing-quick-customer-actions button:first-child {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.packing-panel input[readonly] {
  background: #f8f7f6;
  color: var(--muted);
}

.packing-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packing-product-editor {
  display: grid;
  gap: 10px;
}

.packing-product-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.packing-product-head strong {
  font-size: 13px;
  font-weight: 900;
}

.packing-product-head button,
.packing-product-row button {
  background: #f3f4f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 34px;
  padding: 0 12px;
}

.packing-product-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 128px 36px;
  margin-bottom: 8px;
}

.packing-product-row button {
  align-self: end;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
  padding: 0;
}

.packing-product-row button[hidden] {
  display: none;
}

.packing-form-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.packing-form-row-action {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.packing-form-row-action .packing-submit {
  min-width: 205px;
}

.packing-form-final-action {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 4px;
}

.packing-form-final-action .packing-submit {
  min-width: 240px;
}

.packing-shipping-picker {
  position: relative;
  z-index: 12;
}

.packing-shipping-picker.is-open {
  z-index: 50;
}

.packing-shipping-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.packing-shipping-trigger::after {
  content: "v";
  font-size: 18px;
  line-height: 1;
}

.packing-shipping-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 12, 10, 0.14);
  bottom: calc(100% + 5px);
  display: grid;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: auto;
  z-index: 20;
}

.packing-shipping-menu[hidden] {
  display: none;
}

.packing-shipping-option {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.packing-shipping-option:hover,
.packing-shipping-option:focus-visible {
  background: #fff5f5;
  color: var(--brand-dark);
}

.packing-shipping-option.is-selected {
  background: #1f6feb;
  color: #fff;
}

.packing-shipping-option.is-selected:hover,
.packing-shipping-option.is-selected:focus-visible {
  background: #1d63d2;
  color: #fff;
}

.packing-shipping-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.packing-shipping-option input {
  display: none;
}

.packing-checks {
  background: #faf8f7;
  border: 1px solid #eee8e6;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.packing-checks label {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 5px 0;
}

.packing-checks input {
  flex: 0 0 auto;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  width: 18px;
}

.packing-checks input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.packing-checks span {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.packing-checks small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.packing-submit {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  min-height: 44px;
  padding: 0 16px;
}

.packing-product-head button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.packing-history {
  display: grid;
  gap: 12px;
}

.packing-history-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packing-history-filters {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.15fr) repeat(4, minmax(130px, 0.7fr)) auto;
  padding: 14px;
}

.packing-history-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.packing-history-filters input,
.packing-history-filters select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.packing-history-filters button {
  background: #171b19;
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
}

.jne-tools {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1180px;
}

.jne-tabs {
  width: min(100%, 720px);
}

.jne-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jne-grid-single {
  grid-template-columns: minmax(0, 760px);
}

.jne-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 12, 10, 0.06);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.jne-form {
  display: grid;
  gap: 12px;
}

.jne-form label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  margin: 0;
}

.jne-form input,
.jne-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 0 12px;
}

.jne-form select {
  line-height: 1.35;
  min-height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jne-form input[readonly] {
  background: #f8f7f6;
  color: var(--muted);
}

.jne-autocomplete {
  position: relative;
}

.jne-autocomplete-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 12, 10, 0.16);
  display: grid;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
}

.jne-autocomplete-menu[hidden] {
  display: none;
}

.jne-autocomplete-menu button,
.jne-autocomplete-menu span {
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  min-height: 42px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.jne-autocomplete-menu button {
  cursor: pointer;
}

.jne-autocomplete-menu button:hover,
.jne-autocomplete-menu button:focus-visible {
  background: #fff5f5;
  color: var(--brand-dark);
  outline: 0;
}

.jne-autocomplete-menu span {
  color: var(--muted);
}

.jne-form button,
.jne-track-card a {
  align-items: center;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.jne-form .jne-autocomplete-menu button {
  background: #fff;
  border: 0;
  color: var(--ink);
  justify-content: flex-start;
  min-height: 42px;
  padding: 11px 12px;
}

.jne-form .jne-autocomplete-menu button:hover,
.jne-form .jne-autocomplete-menu button:focus-visible {
  background: #f7f7f6;
  color: var(--brand-dark);
}

.jne-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jne-rate-result,
.jne-track-card {
  background: #f8fbff;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.jne-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px 14px;
}

.jne-track-card {
  background: #fff8f8;
  border-color: #f0dada;
}

.jne-rate-result span,
.jne-track-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jne-rate-result strong,
.jne-track-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.jne-rate-result p,
.jne-track-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.jne-track-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.jne-party-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jne-party-grid article,
.jne-delivery-note {
  background: #fbfaf9;
  border: 1px solid #eee8e6;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.jne-party-grid span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jne-party-grid strong,
.jne-delivery-note strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.jne-party-grid p,
.jne-delivery-note span {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.jne-delivery-note {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.jne-rate-list,
.jne-manifest {
  display: grid;
  gap: 10px;
}

.jne-rate-list article,
.jne-manifest article {
  border: 1px solid #eee8e6;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.jne-rate-list span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jne-rate-list strong {
  color: var(--ink);
  font-size: 24px;
}

.jne-rate-list p,
.jne-manifest small {
  color: var(--muted);
  margin: 0;
}

.jne-manifest article {
  background: #fbfaf9;
}

.jne-manifest strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.jne-manifest p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.jne-recent {
  gap: 12px;
}

.jne-recent-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jne-recent-list article,
.jne-recent-card {
  border: 1px solid #eee8e6;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 5px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.jne-recent-card:hover,
.jne-recent-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(237, 28, 36, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.jne-recent-list span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.jne-recent-list strong {
  color: var(--ink);
  font-size: 17px;
}

.jne-recent-list p,
.jne-recent-list small {
  color: var(--muted);
  margin: 0;
}

.packing-entry-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.packing-entry-main {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.packing-entry-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.packing-entry-toggle-name {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.packing-entry-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.packing-entry-expanded {
  display: grid;
  gap: 14px;
}

.packing-entry-expanded[hidden] {
  display: none;
}

.packing-entry-main h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 7px 0 3px;
}

.packing-entry-card strong {
  display: block;
  font-size: 16px;
}

.packing-entry-card small,
.packing-entry-card p,
.packing-entry-card dt {
  color: var(--muted);
}

.packing-entry-card p {
  margin: 0;
}

.packing-note {
  background: #fff8ee;
  border: 1px solid #f0dfc2;
  border-radius: 8px;
  color: #6b5140 !important;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
}

.packing-note b {
  color: var(--ink);
}

.packing-product-summary {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.packing-product-summary li {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.packing-product-summary span {
  color: var(--muted);
  font-weight: 900;
}

.packing-entry-detail {
  display: grid;
  gap: 10px;
}

.packing-entry-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.packing-entry-card dl div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.packing-entry-card dt,
.packing-entry-card dd {
  margin: 0;
}

.packing-entry-card dd {
  font-weight: 900;
}

/* Pesanan Custom: centered product editor modal and native-only filters. */
body.custom-order-product-modal-open {
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-input [data-add-product][hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor {
  align-items: center !important;
  background: rgba(9, 31, 35, 0.68) !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  inset: 0 !important;
  justify-items: center !important;
  height: 100svh !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  overflow: auto !important;
  padding: clamp(14px, 3vw, 32px) !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 10080 !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor::backdrop {
  background: rgba(9, 31, 35, 0.68) !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(7, 31, 35, 0.3) !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: auto !important;
  max-height: min(90svh, 920px) !important;
  max-width: 780px !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 28px) !important;
  width: min(100%, 780px) !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > .cashier-span,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > .custom-order-product-card-head,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > .custom-order-product-actions {
  grid-column: 1 / -1 !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > label > input[readonly] {
  background: #edf3f4 !important;
  color: #43565d !important;
  cursor: not-allowed;
}

body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-filter-grid select {
  appearance: auto !important;
  cursor: pointer !important;
  min-height: 48px !important;
  width: 100% !important;
}

@media (max-width: 620px) {
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor {
    align-items: center !important;
    padding: 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog {
    border-radius: 16px !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: calc(100svh - 20px) !important;
    padding: 18px 16px !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-dialog > * {
    grid-column: 1 / -1 !important;
  }
}

.packing-tracking-row dd {
  align-items: center;
  display: flex;
  gap: 7px;
  position: relative;
}

.packing-tracking-editor {
  position: relative;
}

.packing-tracking-editor summary {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 143, 134, 0.38);
  border-radius: 8px;
  color: #0d756e;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  list-style: none;
  width: 30px;
}

.packing-tracking-editor summary::-webkit-details-marker {
  display: none;
}

.packing-tracking-editor summary:hover,
.packing-tracking-editor summary:focus-visible {
  background: #e3f6f4;
  outline: none;
}

.packing-tracking-editor summary svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.packing-tracking-editor form {
  background: #fff;
  border: 1px solid #c9dddd;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(31, 64, 70, 0.18);
  display: grid;
  gap: 9px;
  min-width: min(300px, 78vw);
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 12;
}

.packing-tracking-editor label {
  display: grid;
  font-size: 12px;
  gap: 6px;
  text-align: left;
}

.packing-tracking-editor input {
  border: 1px solid #c9dddd;
  border-radius: 9px;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  text-transform: uppercase;
  width: 100%;
}

.packing-tracking-editor button {
  background: #0f8f86;
  border: 1px solid #0f8f86;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 38px;
}

.packing-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.packing-print-address-button {
  background: #111715;
  border: 1px solid #111715;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  padding: 0 14px;
}

.packing-print-address-button:hover,
.packing-print-address-button:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
}

.packing-address-label {
  display: none;
}

.packing-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.packing-status-row span {
  align-items: center;
  background: #f4f1ef;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  padding: 6px 9px;
}

.packing-status-row small {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  opacity: 0.85;
}

.packing-status-row .is-done {
  background: #eaf8ee;
  color: #19733a;
}

.packing-status-row .packing-input-badge {
  background: #fff4db;
  border: 1px solid #f3c764;
  color: #855100;
}

.packing-status-row .is-received {
  background: #fff4db;
  border: 1px solid #f3c764;
  color: #855100;
}

.packing-status-row .is-received::before {
  content: "✓";
  font-weight: 900;
}

.packing-history-actions {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.packing-edit-panel {
  flex: 0 0 auto;
}

.packing-edit-panel summary,
.packing-delete-button {
  align-items: center;
  background: #f4c85f;
  border: 1px solid #f8dc91;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  color: #21170a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
}

.packing-edit-panel summary {
  list-style: none;
}

.packing-edit-panel summary:hover,
.packing-edit-panel summary:focus-visible {
  background: #ffd977;
  border-color: #ffe9ac;
}

.packing-edit-panel summary::-webkit-details-marker {
  display: none;
}

.packing-edit-panel svg,
.packing-delete-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.packing-delete-button {
  background: #5b241c;
  border-color: #d7a13d;
  color: #ffe0a3;
}

.packing-delete-button:hover,
.packing-delete-button:focus-visible {
  background: #743024;
  border-color: #f0c568;
  color: #fff2cf;
}

.packing-edit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

.packing-edit-form label {
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.packing-edit-form input,
.packing-edit-form select,
.packing-edit-form textarea {
  font-weight: 700;
  min-height: 40px;
}

.packing-edit-form button {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  min-height: 40px;
  padding: 0 14px;
}

.packing-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.packing-thumb-row a {
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
  line-height: 0;
}

.packing-thumb-row img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  width: 58px;
}

.packing-saved-preview {
  margin-top: 10px;
}

.packing-photo-viewer {
  align-items: center;
  background: rgba(17, 17, 17, 0.78);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1200;
}

.packing-photo-viewer[hidden] {
  display: none;
}

.packing-photo-viewer-open {
  overflow: hidden;
}

.packing-photo-viewer-panel {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  height: min(84vh, 820px);
  outline: none;
  overflow: hidden;
  width: min(92vw, 980px);
}

.packing-photo-viewer-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px;
}

.packing-photo-viewer-toolbar button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #111;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  min-width: 42px;
  padding: 0 12px;
}

.packing-photo-viewer-toolbar [data-packing-photo-close] {
  background: var(--brand);
  color: #fff;
  font-size: 22px;
}

.packing-photo-viewer-canvas {
  align-items: center;
  cursor: grab;
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 18px;
}

.packing-photo-viewer-canvas img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 140ms ease;
  user-select: none;
}

.packing-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.process-file-preview {
  margin-top: 10px;
}

.packing-file-field {
  display: grid;
  gap: 7px;
}

.packing-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.packing-file-action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  min-width: 118px;
  padding: 0 14px;
}

.packing-file-action:hover,
.packing-file-action:focus-within {
  background: #fff5f5;
  border-color: #ffc7c7;
  color: var(--brand-dark);
}

.packing-file-action input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.packing-file-preview[hidden] {
  display: none;
}

.packing-file-preview figure {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 76px;
}

.packing-file-preview figure a {
  cursor: zoom-in;
  display: block;
  height: 100%;
  line-height: 0;
  width: 100%;
}

.packing-file-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.packing-file-preview figcaption {
  align-items: center;
  background: rgba(23, 21, 21, 0.72);
  border-radius: 999px;
  bottom: 5px;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  position: absolute;
  right: 5px;
  width: 20px;
}

.packing-file-remove {
  align-items: center;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 24px;
}

.packing-process-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.packing-process-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.packing-process-grid-photo-only {
  grid-template-columns: 1fr;
}

.cod-proof-field[hidden] {
  display: none;
}

.cod-payment-field[hidden] {
  display: none;
}

.packing-delivery-issue textarea {
  resize: vertical;
}

.packing-delivery-note {
  color: var(--muted);
  display: grid;
  gap: 3px;
}

.packing-delivery-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packing-shipping-fee-actions {
  grid-template-columns: 1fr;
}

.packing-update-button {
  background: #171b19;
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: 0 14px;
}

.packing-update-button-secondary {
  background: #fff7df;
  border: 1px solid #f3c65d;
  color: #211b12;
}

.invoice-items-editor {
  display: grid;
  gap: 10px;
}

.invoice-items-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.invoice-items-head button {
  background: #f3f4f3;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 34px;
  padding: 0 12px;
}

.invoice-item-row {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) 72px minmax(96px, 0.6fr) 34px;
  margin-bottom: 7px;
}

.invoice-deposit-row {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) 34px;
  margin-bottom: 7px;
}

.invoice-item-row button {
  background: transparent;
  color: var(--brand);
  font-size: 22px;
  min-height: 40px;
  padding: 0;
}

.invoice-deposit-row button {
  background: transparent;
  color: var(--brand);
  font-size: 22px;
  min-height: 40px;
  padding: 0;
}

.invoice-settlement-row {
  margin-bottom: 0;
}

.invoice-paper {
  color: #191919;
  min-height: 880px;
  padding: 34px;
}

.invoice-paper-head {
  align-items: start;
  border-bottom: 1px solid #e7e1dc;
  display: grid;
  gap: 14px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 24px;
}

.invoice-paper-head strong {
  display: block;
  font-size: 34px;
  letter-spacing: 0.08em;
}

.invoice-logo {
  display: block;
  height: 52px;
  object-fit: contain;
  width: auto;
}

.invoice-company-info {
  align-self: center;
}

.invoice-paper-head span {
  color: #6d6a67;
  display: block;
  line-height: 1.55;
  max-width: 420px;
}

.invoice-title-block {
  grid-column: 1 / -1;
}

.invoice-paper-head h2 {
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 0;
  text-align: left;
}

.invoice-paper-head small {
  color: #9b1118;
  display: block;
  font-weight: 900;
  margin-top: 8px;
  text-align: left;
}

.invoice-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 24px 0;
}

.invoice-meta span,
.invoice-summary > div:first-child,
.invoice-payment {
  background: #faf8f6;
  border: 1px solid #eee8e2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.invoice-meta span {
  padding: 12px;
}

.invoice-meta b,
.invoice-summary b,
.invoice-payment b,
.invoice-signature span {
  color: #77716c;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoice-meta em,
.invoice-summary span,
.invoice-summary small,
.invoice-payment p {
  font-style: normal;
}

.invoice-table {
  border-collapse: collapse;
  width: 100%;
}

.invoice-table th,
.invoice-table td {
  border-bottom: 1px solid #ece6e0;
  padding: 13px 10px;
  text-align: left;
}

.invoice-table th {
  color: #77716c;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoice-table th:not(:first-child),
.invoice-table td:not(:first-child) {
  text-align: right;
}

.invoice-summary {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 24px;
}

.invoice-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.invoice-deposit-list {
  display: grid;
  gap: 5px;
}

.invoice-deposit-list span,
#depositSuggestion {
  color: #3f3b39;
  font-size: 13px;
}

#depositSuggestion {
  color: #9b1118;
  font-weight: 800;
}

.invoice-summary dl div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.invoice-summary dt {
  color: #77716c;
  font-size: 13px;
}

.invoice-summary dd {
  font-weight: 900;
  margin: 0;
}

.invoice-balance {
  border-top: 1px solid #e7e1dc;
  padding-top: 12px;
}

.invoice-balance dd {
  color: #9b1118;
  font-size: 20px;
}

.invoice-balance.is-paid dd {
  color: #16803d;
}

.invoice-payment {
  margin-top: 24px;
}

.invoice-payment p {
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.invoice-signature {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 54px;
  text-align: center;
}

.invoice-signature strong {
  font-size: 16px;
  text-align: center;
}

.invoice-stamp {
  display: block;
  max-height: 64px;
  max-width: 150px;
  object-fit: contain;
}

.invoice-bottom-actions {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 12, 10, 0.07);
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 12px;
}

.invoice-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.invoice-bottom-actions button {
  border-radius: 8px;
  min-height: 44px;
  padding: 0 14px;
}

.invoice-bottom-actions button:not(.invoice-print-button) {
  background: #f7f4f3;
  border: 1px solid var(--line);
  color: var(--ink);
}

#saveInvoiceOnly {
  background: #171b19;
  border: 1px solid rgba(240, 198, 108, 0.46);
  color: #fffaf0;
  font-weight: 900;
  min-width: 138px;
}

.invoice-bottom-actions small {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.35;
}

.invoice-bottom-actions a {
  color: var(--brand-dark);
  font-weight: 900;
}

.invoice-pdf-modal-backdrop {
  align-items: center;
  background: rgba(14, 14, 14, 0.58);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 160;
}

.invoice-pdf-modal-backdrop[hidden] {
  display: none;
}

.invoice-pdf-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  height: min(92vh, 900px);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 14px;
  width: min(100%, 1180px);
}

.invoice-pdf-modal header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.invoice-pdf-modal h2 {
  font-size: 22px;
  margin: 0;
}

.invoice-modal-close {
  align-items: center;
  background: #f7f4f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 26px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.invoice-pdf-modal iframe {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.invoice-modal-actions {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 280px) auto;
}

.invoice-modal-actions > a,
.invoice-modal-actions > button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
}

.invoice-modal-actions > a {
  background: #f7f4f3;
  border: 1px solid var(--line);
  color: var(--brand-dark);
}

.invoice-modal-actions > button {
  background: var(--ink);
  border: 0;
  color: #fff;
}

.invoice-modal-search {
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
}

.invoice-modal-search input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 46px;
  padding: 0 14px;
}

.invoice-modal-contact-list {
  display: grid;
  gap: 6px;
  max-height: 120px;
  overflow: auto;
}

.invoice-modal-contact-list button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  text-align: left;
}

.invoice-modal-contact-list button[hidden],
#invoiceModalContactEmpty[hidden] {
  display: none;
}

.invoice-modal-contact-list button.is-selected {
  background: #fff6f6;
  border-color: #f0d7d7;
  color: var(--brand-dark);
}

.invoice-modal-contact-list small,
.invoice-modal-actions small,
#invoiceModalContactEmpty {
  color: var(--muted);
}

#invoiceModalStatus {
  grid-column: 1 / -1;
  min-height: 18px;
}

.invoice-result-modal-backdrop {
  align-items: center;
  background: rgba(14, 14, 14, 0.56);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 170;
}

.invoice-result-modal-backdrop[hidden] {
  display: none;
}

.invoice-result-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 460px;
  padding: 26px;
  position: relative;
  width: min(100%, 460px);
}

.invoice-result-modal .invoice-modal-close {
  background: #fffaf2;
  border-color: rgba(216, 162, 71, 0.44);
  color: #171315;
  position: absolute;
  right: 14px;
  top: 14px;
}

.invoice-result-modal .auth-brand {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 999px;
  color: #111315;
  display: inline-flex;
  font-weight: 900;
  padding: 5px 9px;
  width: fit-content;
  margin: 0 52px 0 0;
}

.invoice-result-modal .auth-brand b {
  color: #8c1117;
}

.invoice-result-modal h2 {
  color: #111315;
  font-size: 24px;
  margin: 0;
  padding-right: 52px;
}

.invoice-result-modal p:not(.auth-brand) {
  color: #5f5548;
  font-weight: 750;
  line-height: 1.5;
  margin: 0;
}

.invoice-result-modal a {
  align-items: center;
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-radius: 8px;
  color: #111315;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.invoice-result-modal-backdrop.is-pending .invoice-result-modal::before {
  border: 3px solid rgba(216, 162, 71, 0.22);
  border-top-color: #b98226;
  border-radius: 999px;
  content: "";
  height: 28px;
  justify-self: start;
  width: 28px;
  animation: invoice-spin 850ms linear infinite;
}

.invoice-result-modal-backdrop.is-success h2 {
  color: #0f7a3a;
}

.invoice-result-modal-backdrop.is-error h2 {
  color: #9b1118;
}

.invoice-result-modal-backdrop.is-pending h2 {
  color: #171315;
}

@keyframes invoice-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboard-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-panel h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.settings-divider {
  border-top: 1px solid var(--line);
  margin: 30px 0 24px;
}

.settings-head {
  margin: 28px 0 24px;
}

.settings-head h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.settings-head > p:last-child {
  color: var(--muted);
  margin: 0;
}

.settings-menu {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0 0 18px;
}

.settings-menu a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  font-weight: 850;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.settings-menu a:hover,
.settings-menu a:focus-visible {
  border-color: rgba(238, 31, 36, 0.35);
  box-shadow: 0 14px 28px rgba(35, 24, 21, 0.08);
  transform: translateY(-1px);
}

.settings-menu svg {
  color: var(--brand);
  flex: 0 0 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  fill: none;
  width: 22px;
}

.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(35, 24, 21, 0.05);
  padding: 22px;
}

.settings-section-card {
  scroll-margin-top: 88px;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.settings-card > p:not(.settings-eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.settings-eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.settings-card button {
  color: #fff;
  margin-top: 10px;
  transition: background 160ms ease, transform 160ms ease;
}

.settings-card button:hover {
  background: var(--brand-dark);
}

.settings-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.settings-card button:active {
  transform: scale(0.98);
}

.system-monitor-card {
  display: grid;
  gap: 16px;
}

.system-monitor-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.system-monitor-head p:not(.settings-eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.system-monitor-badge {
  background: #eefaf2;
  border: 1px solid #cdeed8;
  border-radius: 999px;
  color: #18834a;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.system-monitor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-health-report {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  padding: 14px;
}

.system-health-report > div,
.system-health-report section {
  display: grid;
  gap: 5px;
}

.system-health-report span,
.system-health-report b {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.system-health-report strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.1;
}

.system-health-report small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.system-health-healthy {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.system-health-healthy strong,
.system-health-healthy span,
.system-health-healthy b {
  color: #16783d;
}

.system-health-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.system-health-warning strong,
.system-health-warning span,
.system-health-warning b {
  color: #92400e;
}

.system-health-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.system-health-danger strong,
.system-health-danger span,
.system-health-danger b {
  color: #b91c1c;
}

.system-monitor-tile {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
}

.system-monitor-primary {
  background: linear-gradient(135deg, rgba(228, 35, 35, 0.08), #fff 68%);
  border-color: #efcccc;
}

.system-monitor-tile span,
.system-monitor-audit > strong {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.system-monitor-tile strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.system-monitor-tile small,
.system-monitor-audit small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.system-monitor-audit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.system-monitor-audit span {
  align-items: center;
  background: #faf8f7;
  border: 1px solid #eee6e2;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.system-monitor-audit b {
  font-size: 13px;
}

.system-monitor-audit small {
  text-align: right;
}

.google-sheet-sync-card {
  display: grid;
  gap: 16px;
}

.google-sync-active {
  background: #eefaf2;
  border-color: #cdeed8;
  color: #18834a;
}

.google-sync-paused {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #b45309;
}

.google-sheet-sync-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.google-sheet-sync-grid article,
.google-sheet-sync-error {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.google-sheet-sync-grid span,
.google-sheet-sync-error strong {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.google-sheet-sync-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.google-sheet-sync-grid small,
.google-sheet-sync-error small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.google-sheet-sync-grid a {
  color: var(--brand);
  font-weight: 900;
}

.google-sheet-sync-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.formula-notes-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.formula-notes-grid article {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.formula-notes-grid span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.formula-notes-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.formula-notes-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.formula-notes-grid code {
  background: rgba(11, 19, 32, 0.06);
  border: 1px solid rgba(11, 19, 32, 0.08);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 10px;
  white-space: normal;
}

.settings-card button.secondary-action.danger {
  background: #7f1d1d;
}

.settings-card button.secondary-action.danger:hover {
  background: #991b1b;
}

.visitor-analytics {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.visitor-analytics-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.visitor-analytics-head strong,
.visitor-live-grid strong {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.visitor-analytics-head small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
}

.visitor-analytics-head > span {
  background: #eefaf2;
  border: 1px solid #cdeed8;
  border-radius: 999px;
  color: #18834a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.visitor-analytics-grid,
.visitor-live-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visitor-analytics-grid article,
.visitor-live-grid section {
  background: #faf8f7;
  border: 1px solid #eee6e2;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.visitor-analytics-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.visitor-analytics-grid b {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.visitor-live-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.visitor-live-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.visitor-live-grid b {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.visitor-live-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.employee-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
}

.employee-form-card {
  align-self: start;
}

.employee-form-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-form-grid .phone-field {
  align-items: stretch;
  grid-template-columns: minmax(118px, 138px) minmax(0, 1fr);
  margin-top: 8px;
}

.employee-form-grid label:has(.phone-field) {
  grid-column: 1 / -1;
}

.employee-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.employee-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.employee-row summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  list-style: none;
  padding: 14px;
}

.employee-row summary::-webkit-details-marker {
  display: none;
}

.employee-avatar {
  align-items: center;
  background: #171515;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.employee-summary-copy {
  min-width: 0;
}

.employee-summary-copy strong,
.employee-summary-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-summary-copy small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.employee-row summary em {
  background: #f3f0ef;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.employee-row summary em.active {
  background: #e9f8ee;
  color: #147a3d;
}

.employee-row summary em.inactive {
  background: #f5eeee;
  color: #9f2227;
}

.employee-edit-form {
  border-top: 1px solid var(--line);
  padding: 16px 14px 6px;
}

.employee-actions {
  display: flex;
  justify-content: flex-start;
}

.employee-delete-form {
  padding: 0 14px 16px;
}

.employee-delete-form button {
  background: #171515;
  margin-top: 0;
}

.employee-delete-form button:hover {
  background: #3a3330;
}

.employee-empty {
  background: #faf8f7;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 18px;
}

.employee-empty strong {
  color: var(--ink);
}

.schedule-board {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1280px;
}

.schedule-rules {
  overflow: hidden;
  position: relative;
}

.schedule-rules::before {
  background: linear-gradient(90deg, var(--brand), rgba(228, 35, 35, 0.08));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.schedule-rule-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.schedule-rule-grid span {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 4px;
  padding: 14px;
}

.schedule-rule-grid b {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.schedule-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.schedule-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(35, 24, 21, 0.05);
  overflow: hidden;
}

.schedule-day header {
  background: linear-gradient(135deg, rgba(228, 35, 35, 0.08), #fff 58%);
  border-top: 4px solid var(--brand);
  display: grid;
  gap: 4px;
  padding: 16px;
}

.schedule-day header span,
.schedule-shift p {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  margin: 0;
  text-transform: uppercase;
}

.schedule-day header strong {
  font-size: 22px;
}

.schedule-day header small,
.schedule-day footer {
  color: var(--muted);
}

.schedule-shifts {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.schedule-shift {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.schedule-shift.off {
  background: #f4f1ef;
  opacity: 0.78;
}

.schedule-shift h3 {
  font-size: 17px;
  margin: 6px 0 12px;
}

.schedule-shift ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-shift li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.schedule-shift li span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-off {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
}

.schedule-day footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 12px 16px;
}

.schedule-tools {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swap-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.swap-list article {
  align-items: center;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.swap-list span,
.swap-list small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.swap-list form {
  flex: 0 0 auto;
}

.swap-list button {
  background: #171515;
  margin: 0;
  padding: 10px 12px;
}

.swap-empty {
  color: var(--muted);
  margin: 10px 0 0;
}

.access-table {
  align-items: center;
  display: grid;
  font-size: 13px;
  gap: 10px 14px;
  grid-template-columns: minmax(0, 1fr) 46px 54px;
  margin: 18px 0 8px;
}

.access-table-chat-only {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.access-table > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-table label {
  margin: 0;
}

.access-table input {
  accent-color: var(--brand);
  height: 18px;
  width: 18px;
}

.feature-access-dropdowns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 8px;
}

.feature-access-dropdowns > label {
  margin: 0;
}

.shipping-service-settings {
  display: grid;
  gap: 12px;
  margin: 18px 0 10px;
}

.shipping-service-row {
  align-items: end;
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 1.2fr) minmax(110px, 0.45fr) minmax(120px, 0.45fr) 38px;
  padding: 12px;
}

.shipping-service-row label {
  margin: 0;
}

.shipping-service-row .phone-field {
  margin: 0;
}

/* Mobile custom orders: keep the page identity and primary stages in view. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    --custom-order-sticky-title-height: 106px;
    scroll-padding-top: calc(220px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 8px 18px rgba(38, 52, 58, 0.08) !important;
    position: sticky !important;
    top: env(safe-area-inset-top) !important;
    z-index: 30 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    background: #f8fbfb !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 10px 18px rgba(38, 52, 58, 0.07) !important;
    margin-bottom: 10px !important;
    position: sticky !important;
    top: calc(var(--custom-order-sticky-title-height) + env(safe-area-inset-top)) !important;
    z-index: 29 !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    scroll-margin-top: calc(220px + env(safe-area-inset-top)) !important;
  }
}

.shipping-service-uncovered-field {
  grid-column: 1 / -2;
}

.shipping-service-uncovered-field textarea {
  min-height: 84px;
  resize: vertical;
}

.shipping-service-receipt-option {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 40px;
}

.shipping-service-receipt-option input {
  min-height: auto;
  width: auto;
}

.shipping-service-add-row {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  padding: 12px;
}

.settings-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.settings-wide-field {
  grid-column: 1 / -1;
}

.public-confirm-page {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.public-confirm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 12, 10, 0.08);
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding: 26px;
  width: min(100%, 560px);
}

.public-confirm-card h1 {
  margin: 0;
}

.public-confirm-card form {
  display: grid;
  gap: 12px;
}

.public-confirm-card button {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  min-height: 46px;
}

.courier-order-detail {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.courier-order-detail strong {
  margin-top: 5px;
}

.courier-order-detail strong:first-child {
  margin-top: 0;
}

.courier-order-detail p {
  margin: 0;
}

.review-rating {
  align-items: center;
  background: #fff5f5;
  border: 1px solid #f2d8d8;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 36px;
  min-width: 54px;
}

.shipping-service-row [data-remove-shipping-service] {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.attendance-settings-grid,
.attendance-score-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 8px;
}

.attendance-setting-panel {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.attendance-setting-panel strong {
  color: var(--ink);
  font-size: 16px;
}

.attendance-score-grid label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.attendance-grade-list {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 12px;
}

.attendance-grade-list strong {
  flex-basis: 100%;
}

.attendance-grade-list span {
  background: #fff;
  border: 1px solid #e6dfdc;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.attendance-grade-list b {
  color: var(--brand);
}

.notification-rules {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}

.notification-rule {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.notification-rule strong,
.notification-rule-channel > span {
  color: var(--ink);
  display: block;
  font-weight: 900;
}

.notification-rule p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.notification-rule-channel > span {
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.notification-role-dropdown {
  position: relative;
}

.notification-role-dropdown summary {
  align-items: center;
  background: #fff;
  border: 1px solid #e6dfdc;
  border-radius: 10px;
  color: #5e5956;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 12px 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.notification-role-dropdown summary::-webkit-details-marker {
  display: none;
}

.notification-role-dropdown summary::after {
  color: var(--muted);
  content: "⌄";
  font-size: 16px;
}

.notification-role-dropdown[open] summary {
  background: #fff2f2;
  border-color: #efb8b8;
  color: var(--brand);
}

.notification-role-dropdown > div {
  background: #fff;
  border: 1px solid #e8e3e0;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(34, 23, 20, 0.08);
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 230px;
  overflow: auto;
  padding: 8px;
}

.notification-role-dropdown label {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 9px 8px;
}

.notification-role-dropdown label:hover {
  background: #faf4f4;
}

.notification-role-dropdown input {
  accent-color: var(--brand);
  height: 16px;
  width: 16px;
}

.notification-role-dropdown span {
  font-size: 13px;
  font-weight: 800;
}

.settings-form-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-auto-reply-toggle-field {
  background: linear-gradient(135deg, #f8fffe, #f7fbfb);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
}

.settings-field-label {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ai-auto-reply-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
}

.ai-auto-reply-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.ai-auto-reply-toggle-track {
  background: #cbd5d5;
  border-radius: 999px;
  flex: 0 0 48px;
  height: 28px;
  padding: 3px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.ai-auto-reply-toggle-track span {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  display: block;
  height: 22px;
  transform: translateX(0);
  transition: transform 160ms ease;
  width: 22px;
}

.ai-auto-reply-toggle input:checked + .ai-auto-reply-toggle-track {
  background: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.ai-auto-reply-toggle input:checked + .ai-auto-reply-toggle-track span {
  transform: translateX(20px);
}

.ai-auto-reply-toggle input:focus-visible + .ai-auto-reply-toggle-track {
  outline: 3px solid rgba(13, 148, 136, 0.3);
  outline-offset: 2px;
}

.ai-auto-reply-toggle-copy {
  display: grid;
  gap: 3px;
}

.ai-auto-reply-toggle-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.ai-auto-reply-toggle-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.settings-check {
  align-items: flex-start;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.settings-check input[type="checkbox"] {
  accent-color: #f59e0b;
  flex: 0 0 auto;
  height: 20px;
  margin-top: 2px;
  min-height: 20px;
  width: 20px;
}

.settings-check strong,
.settings-check small {
  display: block;
}

.settings-span {
  grid-column: 1 / -1;
}

.webhook-help {
  background: #faf8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.webhook-help code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.webhook-help small {
  color: var(--muted);
  line-height: 1.5;
}

.page-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 22px;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

.wa-inbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 620px;
  overflow: hidden;
}

.wa-inbox-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px 22px 12px;
}

.wa-inbox-head h1 {
  font-size: 30px;
  margin: 0;
}

.wa-inbox-head p,
.wa-inbox-head span {
  color: var(--muted);
  margin: 4px 0 0;
}

.inbox-toolbar {
  align-items: center;
  display: flex;
  gap: 7px;
}

.icon-button {
  align-items: center;
  background: #f4f6f5;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: inline-grid;
  height: 40px;
  justify-items: center;
  padding: 0;
  text-decoration: none;
  width: 40px;
}

.icon-button:hover {
  background: #eceeed;
}

.icon-button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.icon-button.primary:hover {
  background: var(--brand-dark);
}

.icon-button.is-active {
  background: #e7faef;
  border-color: #c8efd8;
  color: var(--brand-dark);
}

.icon-button svg,
.scroll-bottom-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.inbox-tool-panel {
  align-items: center;
  background: #fafbfa;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 10px 22px;
}

.inbox-tool-panel[hidden] {
  display: none;
}

.inbox-search-form {
  align-items: center;
  display: flex;
  gap: 7px;
  width: 100%;
}

.inbox-search-form input {
  min-height: 40px;
  width: 100%;
}

.inbox-tool-panel > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-right: auto;
}

.inbox-tool-panel > a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.inbox-tool-panel > a.selected {
  background: #ffe2e2;
  color: var(--brand-dark);
}

.label-create-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.label-create-form input {
  min-height: 40px;
}

.contact-label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-label-list form,
.contact-label-badge {
  align-items: center;
  background: #fff7f7;
  border: 1px solid #f4d7d7;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  gap: 8px;
  line-height: 1;
  margin: 0;
  padding: 7px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.contact-label-badge.muted {
  background: #f5f5f4;
  border-color: var(--line);
  color: var(--muted);
}

.contact-language-badge {
  align-items: center;
  background: #eef8f4;
  border: 1px solid #cfe9df;
  border-radius: 999px;
  color: #0f6d4b;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-left: 6px;
  padding: 6px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.contact-label-list button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--brand);
  display: grid;
  font-size: 18px;
  height: 18px;
  justify-items: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.contact-label-list em {
  color: var(--muted);
  font-style: normal;
}

.label-dropdown-panel {
  align-items: stretch;
  display: grid;
  gap: 10px;
}

.label-search-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  padding: 0 10px;
}

.label-search-field svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.label-search-field input {
  background: transparent;
  border: 0;
  min-height: 40px;
  outline: 0;
  padding: 0;
  width: 100%;
}

.label-dropdown-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.label-dropdown-list a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 11px;
  text-decoration: none;
}

.label-dropdown-list a.active {
  background: #e7faef;
  border-color: #c8efd8;
  color: var(--brand-dark);
}

.label-dropdown-list a[hidden] {
  display: none;
}

.contact-label-stack {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 5px;
  vertical-align: middle;
}

.new-chat-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(22, 16, 16, 0.22);
  max-width: calc(100vw - 28px);
  padding: 0;
  width: 420px;
}

.new-chat-dialog::backdrop {
  background: rgba(18, 12, 12, 0.42);
}

.new-chat-dialog form,
.new-chat-dialog label {
  display: grid;
  gap: 8px;
}

.new-chat-dialog form {
  gap: 15px;
  padding: 18px;
}

.new-chat-dialog header,
.new-chat-dialog footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.new-chat-dialog header div {
  display: grid;
  gap: 3px;
}

.new-chat-dialog header span,
.new-chat-dialog small {
  color: var(--muted);
  font-size: 12px;
}

.compact-phone-field select,
.compact-phone-field input,
.phone-field select,
.phone-field input {
  min-width: 0;
}

.primary-button,
.secondary-button {
  border-radius: 6px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.secondary-button {
  background: #f0eeee;
  color: var(--ink);
}

.inbox-home-button {
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 14px;
  text-decoration: none;
}

.chat-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 22px 14px;
}

.chat-filters a {
  align-items: center;
  background: #f0f4f2;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.reply-performance {
  border-top: 1px solid var(--line);
  padding: 0 22px;
}

.reply-performance summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 13px 0;
}

.reply-performance summary::-webkit-details-marker {
  display: none;
}

.reply-performance summary span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.reply-performance summary small,
.reply-performance li small {
  color: #4f5f65;
  font-size: 12px;
  line-height: 1.35;
}

.reply-performance ol {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 5px 0 9px;
}

.reply-performance[open] ol {
  max-height: min(52dvh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: #0aa39d #edf6f5;
  scrollbar-width: thin;
}

.reply-performance[open] ol::-webkit-scrollbar {
  width: 8px;
}

.reply-performance[open] ol::-webkit-scrollbar-track {
  background: #edf6f5;
  border-radius: 999px;
}

.reply-performance[open] ol::-webkit-scrollbar-thumb {
  background: #0aa39d;
  border-radius: 999px;
}

.reply-performance li {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 0;
}

.reply-performance li > span {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.reply-performance-name {
  align-items: center;
  color: #005d5c;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reply-performance-activity {
  color: #39484e !important;
  font-weight: 700;
}

.reply-performance-seen {
  color: #687880 !important;
  font-weight: 700;
}

.reply-performance-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.reply-performance-status.is-live {
  background: #dffbed;
  color: #006b5f;
}

.reply-performance-status.is-offline {
  background: #edf1f3;
  color: #53656c;
}

.reply-performance li strong {
  font-size: 14px;
}

.reply-performance li em {
  background: #ffe1e1;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 6px;
}

.chat-filters a.active {
  background: #dffbed;
  color: var(--brand-dark);
}

.chat-filters span,
.unread-total-badge {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  padding: 3px 7px;
  place-items: center;
}

.chat-filters span[hidden],
.unread-total-badge[hidden] {
  display: none;
}

.unread-total-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.notification-toast {
  backdrop-filter: blur(4px);
  background: rgba(16, 22, 21, 0.78);
  border-radius: 8px;
  bottom: auto;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: grid;
  gap: 1px;
  left: 50%;
  max-width: calc(100vw - 24px);
  padding: 9px 12px;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  transform: translateX(-50%);
  width: 300px;
  z-index: 120;
  text-decoration: none;
}

.notification-toast[hidden] {
  display: none;
}

.notification-toast span {
  color: #d9e2df;
  font-size: 12px;
}

.wa-chat-list {
  background: #fff;
}

.wa-chat-row {
  align-items: center;
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 12px 18px;
  text-decoration: none;
}

.wa-chat-row + .wa-chat-row .wa-chat-main {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.wa-chat-row.unanswered {
  background: #fffafa;
}

.wa-chat-row.has-followup {
  background: #fff8ea;
  box-shadow: inset 4px 0 0 #d8a247;
}

.wa-chat-row.unanswered .wa-avatar {
  box-shadow: 0 0 0 3px rgba(239, 32, 38, 0.14);
}

.wa-chat-row.unanswered .wa-chat-top strong,
.wa-chat-row.unanswered .wa-chat-top time {
  color: var(--brand-dark);
}

.wa-avatar {
  align-items: center;
  align-self: start;
  background: var(--brand);
  border-radius: 50%;
  color: #07130b;
  display: grid;
  font-weight: 800;
  height: 50px;
  justify-items: center;
  object-fit: cover;
  width: 50px;
}

.wa-chat-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wa-chat-top,
.wa-chat-bottom {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.wa-chat-top strong {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-contact-name {
  display: inline-block;
  transform-origin: left center;
  will-change: transform;
}

.wa-chat-row.unanswered .wa-contact-name {
  animation: unanswered-name-pulse 1.35s ease-in-out infinite;
}

@keyframes unanswered-name-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(189, 17, 22, 0);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 12px rgba(189, 17, 22, 0.5);
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-chat-row.unanswered .wa-contact-name {
    animation: none;
  }
}

.wa-chat-top time {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.wa-chat-bottom p {
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-mark {
  align-items: center;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  white-space: nowrap;
}

.followup-mark {
  align-items: center;
  background: #fff0c8;
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 999px;
  color: #7d5108;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  max-width: 220px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden-mark {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.pending-mark::before {
  background: var(--brand);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.conversation {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 240px 1fr auto;
  padding: 18px 20px;
  text-decoration: none;
}

.conversation:last-child {
  border-bottom: 0;
}

.conversation span,
.conversation p,
.bubble small {
  color: var(--muted);
}

.conversation p {
  margin: 0;
}

.status {
  background: #e8fff5;
  border-radius: 999px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 700;
  padding: 6px 10px;
}

.empty {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.thread {
  align-content: start;
  background:
    radial-gradient(circle at 12px 12px, rgba(18, 32, 27, 0.04) 2px, transparent 2px) 0 0 / 38px 38px,
    #f4efe9;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px;
}

.thread.initializing {
  visibility: hidden;
}

.date-separator {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 21, 18, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(32, 21, 18, 0.06);
  color: #5f6663;
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
  line-height: 1.2;
  padding: 7px 12px;
  text-align: center;
}

.bubble {
  box-sizing: border-box;
  border-radius: 8px;
  max-width: min(76%, 360px);
  min-width: 0;
  padding: 14px 16px;
  position: relative;
  touch-action: pan-y;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  width: fit-content;
  word-break: break-word;
}

.message-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
}

.message-row.outbound {
  flex-direction: row-reverse;
  justify-self: end;
}

.message-row .bubble {
  max-width: min(100%, 860px);
}

.translate-message-button {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(32, 21, 18, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(32, 21, 18, 0.08);
  color: #8a5d12;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  margin-bottom: 2px;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 30px;
}

.translate-message-button:hover,
.translate-message-button.is-active {
  background: #f2c568;
  border-color: rgba(138, 93, 18, 0.3);
  color: #20160a;
  transform: translateY(-1px);
}

.translate-message-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.translate-message-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.translation-panel {
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.34);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(32, 21, 18, 0.12);
  color: #211b12;
  flex: 0 1 min(76vw, 420px);
  flex-basis: min(76vw, 420px);
  line-height: 1.45;
  margin-top: 8px;
  padding: 10px 12px;
}

.message-row.outbound .translation-panel {
  margin-left: auto;
}

.translation-panel span {
  color: #8a5d12;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.translation-panel p {
  font-size: 14px;
  margin: 0;
  white-space: pre-wrap;
}

.bubble p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bubble p a {
  color: #075ee8;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bubble.outbound p a {
  color: #0057d8;
}

.bubble small {
  align-items: center;
  display: block;
  font-size: 12px;
  line-height: 1;
  text-align: right;
}

.message-status {
  color: #7a8581;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-left: 5px;
}

.message-status.read {
  color: #0b84ff;
}

.message-status.failed {
  color: var(--brand);
  letter-spacing: 0;
}

.message-status.pending {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
}

.bubble.inbound {
  background: var(--bubble-in);
}

.bubble.outbound {
  background: var(--bubble-out);
  justify-self: end;
}

.bubble.sending {
  opacity: 0.72;
}

.bubble.swipe-ready {
  box-shadow: -5px 0 0 rgba(20, 199, 132, 0.45);
}

.bubble.has-private-note {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.bubble.is-marked-chat {
  border: 2px solid #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

.bubble.has-private-note.is-marked-chat {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.85), 0 0 0 7px rgba(220, 38, 38, 0.24) !important;
}

.quoted-message {
  background: rgba(11, 126, 85, 0.08);
  border-left: 3px solid var(--brand);
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.quoted-message span,
.reply-preview span {
  color: var(--brand-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.quoted-message p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quoted-message.has-preview {
  display: grid;
  gap: 4px 9px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.quoted-message.has-preview img {
  border-radius: 4px;
  grid-row: 1 / span 2;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.quoted-message.has-preview span,
.quoted-message.has-preview p {
  min-width: 0;
}

.bubble-focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus, var(--brand)) 24%, transparent);
}

.bubble-reply-target {
  animation: chatReplyTargetPulse 1.4s ease-out 1;
  outline: 3px solid var(--ui-focus, var(--brand));
  outline-offset: 4px;
  z-index: 2;
}

.bubble-reply-target::after {
  align-items: center;
  background: var(--ui-primary, var(--brand));
  border: 2px solid var(--ui-surface, var(--panel));
  border-radius: 999px;
  box-shadow: var(--ui-shadow);
  color: var(--ui-primary-contrast, var(--panel));
  content: "Dirujuk";
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  min-height: 26px;
  padding: 0 9px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: -14px;
  white-space: nowrap;
}

@keyframes chatReplyTargetPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ui-focus, var(--brand)) 42%, transparent), var(--ui-shadow);
    transform: translateY(0);
  }
  38% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--ui-focus, var(--brand)) 18%, transparent), var(--ui-shadow);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 0 transparent, var(--ui-shadow);
    transform: translateY(0);
  }
}

.reply {
  padding: 12px 16px;
}

.chat-layout {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  margin: 0 auto;
  max-width: 900px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.chat-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  padding: 12px 16px;
  z-index: 2;
}

.chat-head h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.chat-head p {
  color: var(--muted);
  margin: 0;
}

.chat-head-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: end;
}

.chat-search-trigger,
.chat-search-nav,
.chat-search-close {
  align-items: center;
  background: #f7f7f6;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  height: 40px;
  justify-items: center;
  padding: 0;
  width: 40px;
}

.chat-analysis-trigger {
  background: #10100f;
  border-color: rgba(216, 162, 71, 0.72);
  color: #f4d17c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-search-trigger:hover,
.chat-action-menu-trigger:hover,
.chat-search-nav:hover,
.chat-search-close:hover {
  background: #eeeeec;
}

.chat-analysis-trigger:hover,
.chat-analysis-trigger:focus-visible {
  background: #201811;
  color: #ffe5a3;
}

.chat-search-trigger svg,
.chat-search-field svg,
.chat-action-menu-trigger svg,
.chat-action-menu svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.chat-action-menu {
  position: relative;
}

.chat-action-menu-trigger,
.chat-action-menu summary {
  align-items: center;
  background: #f7f7f6;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  height: 40px;
  line-height: 0;
  padding: 0;
  place-items: center;
  list-style: none;
  width: 40px;
}

.chat-action-menu summary::-webkit-details-marker {
  display: none;
}

.chat-action-menu-backdrop[hidden] {
  display: none !important;
}

.chat-action-menu-backdrop {
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 88, 168, 0.24), transparent 34%),
    rgba(5, 5, 6, 0.68);
  backdrop-filter: blur(10px);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 4500;
}

.chat-action-menu-dialog {
  background:
    linear-gradient(180deg, rgba(25, 18, 19, 0.98), rgba(18, 14, 13, 0.96)),
    linear-gradient(135deg, rgba(255, 88, 168, 0.14), rgba(216, 162, 71, 0.12));
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff8ea;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(76dvh, 680px);
  overflow: hidden;
  width: min(520px, calc(100vw - 28px));
}

.chat-action-menu-dialog-head {
  align-items: center;
  border-bottom: 1px solid rgba(216, 162, 71, 0.28);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 18px 14px;
}

.chat-action-menu-dialog-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chat-action-menu-dialog-head strong {
  color: #f4d17c;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-action-menu-dialog-head span {
  color: #d6c4a1;
  font-size: 0.9rem;
}

.chat-action-menu-close {
  align-items: center;
  background: #fff7e8;
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 50%;
  color: #7a4b00;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  font-size: 1.45rem;
  font-weight: 900;
  height: 42px;
  line-height: 1;
  place-items: center;
  width: 42px;
}

.chat-action-menu-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(18, 12, 10, 0.16);
  display: grid;
  gap: 10px;
  max-height: min(72vh, 560px);
  min-width: min(360px, calc(100vw - 28px));
  overflow-y: auto;
  padding: 10px;
}

.chat-action-menu-dialog .chat-action-menu-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

body.chat-action-modal-open {
  overflow: hidden;
}

body.chat-action-modal-open .chat-head {
  z-index: 4500;
}

.chat-action-menu-panel form,
.chat-menu-section {
  margin: 0;
}

.chat-menu-section {
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.chat-menu-section > span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-followup-form {
  display: grid;
  gap: 9px;
}

.chat-followup-team-picker {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.chat-followup-team-picker legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  padding: 0;
}

.chat-followup-team-picker > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.chat-followup-team-picker label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.chat-followup-team-picker input {
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.chat-followup-team-picker label:has(input:checked) {
  background: rgba(216, 162, 71, 0.16);
  border-color: rgba(216, 162, 71, 0.72);
}

.chat-followup-form label {
  display: grid;
  gap: 5px;
}

.chat-followup-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chat-followup-form select,
.chat-followup-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.chat-followup-form textarea {
  min-height: 82px;
  resize: vertical;
}

.chat-label-picker {
  display: grid;
  gap: 10px;
}

.label-multi-dropdown {
  position: relative;
}

.label-multi-dropdown summary {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.08), transparent 45%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  min-height: 48px;
  padding: 9px 12px;
}

.label-multi-dropdown summary::-webkit-details-marker {
  display: none;
}

.label-multi-dropdown summary::after {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  height: 8px;
  margin-left: 8px;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  width: 8px;
}

.label-multi-dropdown[open] summary::after {
  transform: rotate(225deg);
}

.label-multi-dropdown summary span {
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-multi-dropdown summary em {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  grid-column: 1 / 2;
  justify-self: start;
  padding: 3px 8px;
}

.label-multi-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(18, 12, 10, 0.14);
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding: 10px;
}

.label-inline-search {
  align-items: center;
  background: #f7f4f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 38px;
  padding: 0 12px;
}

.label-inline-search svg {
  fill: none;
  height: 16px;
  stroke: var(--brand);
  stroke-width: 2.4;
  width: 16px;
}

.label-inline-search input {
  background: transparent;
  border: 0;
  font: inherit;
  min-height: 36px;
  outline: 0;
  padding: 0 0 0 8px;
}

.label-check-list {
  display: grid;
  gap: 7px;
  max-height: 176px;
  overflow: auto;
  padding-right: 2px;
}

.label-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.label-check-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.label-check {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
}

.label-check-list .label-check {
  justify-content: flex-start;
  min-height: 40px;
}

.label-check:has(input:checked) {
  background: #fff6f6;
  border-color: #f0caca;
  box-shadow: inset 3px 0 0 var(--brand);
}

.label-check input {
  accent-color: var(--brand);
  margin: 0;
}

.label-check span {
  font-size: 12px;
  font-weight: 900;
}

.label-check[hidden],
.label-empty-state[hidden] {
  display: none;
}

.label-empty-state {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.label-create-form.compact {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.label-create-form.compact .icon-button {
  height: 40px;
  width: 40px;
}

.label-manage-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.label-manage-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.label-manage-row form:first-child {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.label-manage-row input {
  background: #fff;
  min-height: 36px;
  padding: 8px 10px;
}

.chat-action-menu-panel button,
.label-manage-row button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.chat-action-menu-panel button:hover,
.label-manage-row button:hover {
  background: #f7f3f1;
}

.chat-action-menu-panel button.danger,
.label-manage-row button.danger {
  color: var(--brand);
}

.chat-label-picker > button,
.danger-zone button {
  border: 1px solid var(--line);
}

.label-manage-row button.icon-only {
  align-items: center;
  display: grid;
  font-size: 18px;
  height: 36px;
  justify-items: center;
  min-height: 36px;
  padding: 0;
}

.label-tool-dropdown {
  position: relative;
}

.label-tool-dropdown summary::-webkit-details-marker {
  display: none;
}

.label-tool-button {
  align-items: center;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.label-tool-button svg,
.label-icon-action svg,
.label-save-button svg,
.label-add-trigger svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 16px;
}

.label-tool-button span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-tool-button em {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
  position: static;
}

.label-tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(18, 12, 10, 0.15);
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
}

.label-tool-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.label-option-row {
  align-items: center;
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  padding: 5px;
}

.label-option-row[hidden] {
  display: none;
}

.label-option-row .label-check {
  border: 0;
  border-radius: 7px;
  min-height: 34px;
  padding: 6px 8px;
}

.label-icon-action,
.chat-action-menu-panel .label-icon-action,
.chat-action-menu-panel .label-add-trigger.icon-only {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.label-icon-action:hover,
.chat-action-menu-panel .label-add-trigger.icon-only:hover {
  background: #fff6f6;
  color: var(--brand);
}

.label-icon-action.danger {
  color: var(--brand);
}

.label-icon-action.save {
  background: var(--ink);
  color: #fff;
}

.label-inline-edit {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.label-inline-edit[hidden] {
  display: none;
}

.label-inline-edit input {
  background: #fff;
  min-height: 34px;
  padding: 7px 10px;
}

.label-tool-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.label-save-button,
.chat-action-menu-panel .label-save-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  text-align: center;
}

.label-create-form.compact[hidden] {
  display: none;
}

.label-empty-card {
  align-items: center;
  background: #fbfaf9;
  border: 1px dashed #e6d8d3;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px;
}

.label-add-trigger,
.chat-action-menu-panel .label-add-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  width: auto;
}

.chat-search-panel {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(30, 20, 20, 0.08);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  left: 0;
  padding: 8px 12px;
  position: absolute;
  right: 0;
  top: 69px;
  z-index: 4;
}

.chat-search-panel[hidden] {
  display: none;
}

.chat-search-field {
  align-items: center;
  background: #f7f7f6;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
}

.chat-search-field:focus-within {
  border-color: rgba(228, 35, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
}

.chat-search-field input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  padding: 9px 0;
  width: 100%;
}

.chat-search-count {
  color: var(--muted);
  font-size: 12px;
  min-width: 32px;
  text-align: center;
}

.chat-search-nav,
.chat-search-close {
  font-size: 18px;
  height: 34px;
  width: 34px;
}

.bubble.search-match {
  outline: 2px solid rgba(228, 35, 35, 0.26);
  outline-offset: 2px;
}

.bubble.search-match-active {
  outline-color: var(--brand);
}

.contact-heading {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.edit-contact-trigger {
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}

.contact-name-form {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(30, 20, 20, 0.12);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 160px auto auto;
  left: 12px;
  padding: 10px;
  position: absolute;
  right: 12px;
  top: 72px;
  z-index: 5;
}

.contact-name-form[hidden] {
  display: none;
}

.contact-name-form label {
  display: grid;
  gap: 4px;
}

.contact-name-form span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.contact-name-form input,
.contact-name-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.contact-name-form button {
  min-height: 40px;
  padding: 8px 10px;
}

.chat-followup-pin {
  align-items: center;
  background: #fff5dc;
  border-bottom: 1px solid rgba(216, 162, 71, 0.38);
  border-top: 1px solid rgba(216, 162, 71, 0.38);
  color: #261b0d;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.chat-followup-pin div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chat-followup-pin span {
  color: #7a4e08;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-followup-pin p {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.chat-followup-pin small {
  color: #735f3f;
}

.chat-followup-pin form {
  margin: 0;
}

.chat-followup-pin button {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.42);
  border-radius: 50%;
  color: #7a4e08;
  cursor: pointer;
  display: grid;
  font-size: 22px;
  height: 36px;
  justify-items: center;
  padding: 0;
  width: 36px;
}

.contact-name-cancel {
  background: #f0eeee;
  color: var(--ink);
}

.close-chat {
  margin: 0;
}

.back-link {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.avatar {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #07130b;
  display: grid;
  font-weight: 800;
  height: 44px;
  justify-items: center;
  width: 44px;
}

.image-avatar {
  object-fit: cover;
}

.reply {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  z-index: 2;
}

.ai-icon-button {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  display: grid;
  grid-column: 1;
  grid-row: 2;
  height: 42px;
  justify-items: center;
  padding: 0;
  width: 42px;
}

.ai-icon-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 22px;
}

.reply-preview {
  align-items: center;
  background: #f5f7f6;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.reply-preview[hidden] {
  display: none;
}

.typing-indicator {
  background: #fff7d8;
  border: 1px solid rgba(235, 28, 36, 0.16);
  border-radius: 8px;
  color: #8d1117;
  font-size: 13px;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
  padding: 7px 10px;
}

.typing-indicator[hidden] {
  display: none;
}

.reply-preview p {
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-preview button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: grid;
  font-size: 22px;
  height: 34px;
  justify-items: center;
  padding: 0;
  width: 34px;
}

.upload-preview {
  align-items: center;
  background: #f5f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr) 34px;
  min-height: 48px;
  padding: 6px 8px;
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview-grid {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.upload-preview-grid::-webkit-scrollbar {
  display: none;
}

.upload-preview-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  height: 42px;
  justify-items: center;
  overflow: hidden;
  position: relative;
  width: 42px;
}

.upload-preview-item.image {
  cursor: zoom-in;
}

.upload-preview-item.image:hover,
.upload-preview-item.image:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(227, 174, 60, 0.28);
  outline: none;
}

.upload-preview-item img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.upload-preview .upload-preview-remove {
  align-items: center;
  background: rgba(18, 15, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  height: 18px;
  justify-items: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  z-index: 2;
}

.upload-preview .upload-preview-remove:hover,
.upload-preview .upload-preview-remove:focus-visible {
  background: #d72f2f;
  outline: none;
}

.upload-preview button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: grid;
  font-size: 22px;
  height: 34px;
  justify-items: center;
  padding: 0;
  width: 34px;
}

.reply textarea {
  background: #f5f7f6;
  border: 0;
  border-radius: 14px;
  line-height: 22px;
  max-height: 130px;
  min-height: 48px;
  overflow-y: hidden;
  padding: 13px 14px;
  resize: none;
}

.scroll-bottom-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  bottom: 82px;
  box-shadow: 0 6px 15px rgba(30, 20, 20, 0.15);
  color: var(--brand-dark);
  display: grid;
  height: 42px;
  justify-items: center;
  padding: 0;
  position: absolute;
  right: 16px;
  width: 42px;
  z-index: 4;
}

.scroll-bottom-button[hidden] {
  display: none;
}

.composer-field {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}

.attach-button {
  align-items: center;
  background: #f5f7f6;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  font-size: 24px;
  font-weight: 400;
  grid-column: 2;
  grid-row: 2;
  height: 42px;
  justify-items: center;
  margin: 0;
  width: 42px;
}

.attach-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.sticker-mode-button {
  align-items: center;
  background: #f5f7f6;
  border: 1px solid rgba(216, 162, 71, 0.28);
  border-radius: 50%;
  color: #2d2414;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  grid-column: 3;
  grid-row: 2;
  height: 42px;
  justify-items: center;
  letter-spacing: 0;
  padding: 0;
  width: 42px;
}

.sticker-mode-button.is-active {
  background: #d8a247;
  color: #111315;
}

.sticker-gallery-backdrop {
  align-items: end;
  background: rgba(10, 8, 8, 0.42);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 65;
}

.sticker-gallery-backdrop[hidden] {
  display: none;
}

.sticker-gallery-modal {
  background: #fffaf1;
  border: 1px solid rgba(216, 162, 71, 0.52);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 12, 10, 0.32);
  color: #241b10;
  display: grid;
  gap: 12px;
  justify-self: center;
  max-height: min(70vh, 560px);
  max-width: 520px;
  overflow: hidden;
  padding: 14px;
  width: min(100%, 520px);
}

.sticker-gallery-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sticker-gallery-head h2 {
  font-size: 20px;
  margin: 0;
}

.sticker-gallery-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.sticker-gallery-add,
.sticker-gallery-close {
  align-items: center;
  background: #d8a247;
  border: 0;
  border-radius: 50%;
  color: #111315;
  cursor: pointer;
  display: grid;
  font-size: 24px;
  font-weight: 800;
  height: 42px;
  justify-items: center;
  margin: 0;
  padding: 0;
  width: 42px;
}

.sticker-gallery-close {
  background: #f5ead8;
  color: #5b4320;
  font-size: 28px;
}

.sticker-gallery-add input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.sticker-gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  min-height: 96px;
  overflow-y: auto;
  padding: 2px;
}

.sticker-gallery-item {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(216, 162, 71, 0.34);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 8px;
}

.sticker-gallery-item:hover,
.sticker-gallery-item:focus-visible,
.sticker-gallery-item.is-selected {
  border-color: #c7891e;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.22);
  outline: 0;
}

.sticker-gallery-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sticker-gallery-empty,
.sticker-gallery-status {
  color: #765d37;
  font-size: 13px;
  margin: 0;
}

.sticker-gallery-empty[hidden] {
  display: none;
}

.reply-foot {
  align-items: end;
  display: flex;
  gap: 14px;
  flex-direction: column;
  grid-column: 5;
  grid-row: 2;
  justify-self: end;
}

.reply-foot button {
  min-height: 42px;
  padding: 0 18px;
}

.attachment-preview,
.story-reply-media {
  margin-bottom: 8px;
}

.message-image-link {
  align-items: center;
  background: #f0f4f2;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: zoom-in;
  display: grid;
  font-weight: 800;
  min-height: 150px;
  min-width: min(240px, 72vw);
  padding: 0;
  place-items: center;
  position: relative;
}

.message-image-link.is-loading .message-image {
  opacity: 0;
}

.message-image-link:not(.is-loading) .message-image-loading {
  display: none;
}

.message-image-loading {
  font-size: 0.82rem;
  inset: 0;
  position: absolute;
  display: grid;
  place-items: center;
}

.message-image {
  border-radius: 6px;
  cursor: grab;
  display: block;
  max-height: 260px;
  max-width: min(100%, 280px);
  object-fit: contain;
  width: auto;
}

.message-image:active {
  cursor: grabbing;
}

.message-video {
  background: #111;
  border-radius: 6px;
  display: block;
  max-height: 340px;
  max-width: min(100%, 320px);
  width: min(320px, 74vw);
}

.voice-message {
  align-items: center;
  background: #f0f4f2;
  border-radius: 999px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(180px, 1fr);
  max-width: min(330px, 76vw);
  padding: 9px 12px;
}

.voice-message-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--brand);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-items: center;
  line-height: 1;
  width: 28px;
}

.voice-message audio {
  height: 34px;
  min-width: 0;
  width: 100%;
}

.message-image-link[hidden] {
  display: none;
}

.message-document {
  align-items: center;
  background: #fff7e8;
  border: 1px solid rgba(216, 162, 71, 0.45);
  border-radius: 8px;
  color: #2d2414;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  max-width: min(440px, 76vw);
  padding: 10px 12px;
  text-decoration: none;
}

.message-document:hover,
.message-document:focus-visible {
  background: #fff1cf;
  border-color: #d8a247;
  color: #1f170b;
  outline: none;
}

.message-document-icon {
  align-items: center;
  background: #d8a247;
  border-radius: 6px;
  color: #151412;
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  height: 38px;
  justify-items: center;
  letter-spacing: 0;
  width: 44px;
}

.message-document-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.message-document-main strong,
.message-document-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-document-main strong {
  color: #2d2414;
  font-size: 0.94rem;
  font-weight: 900;
}

.message-document-main small {
  color: #6f5a35;
  font-size: 0.78rem;
  font-weight: 700;
}

.message-document-action {
  color: #9b650d;
  font-size: 0.82rem;
  font-weight: 900;
}

.message-location {
  align-items: center;
  background: #edf8f3;
  border: 1px solid rgba(45, 128, 94, 0.28);
  border-radius: 8px;
  color: #18352a;
  display: grid;
  gap: 10px;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  margin-bottom: 8px;
  max-width: min(460px, 76vw);
  overflow: hidden;
  padding: 8px 10px 8px 8px;
  text-decoration: none;
}

.message-location:hover,
.message-location:focus-visible {
  background: #e1f3eb;
  border-color: rgba(45, 128, 94, 0.5);
  color: #102820;
  outline: none;
}

.message-location-map {
  background:
    linear-gradient(135deg, rgba(50, 143, 110, 0.18) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(225deg, rgba(216, 162, 71, 0.2) 25%, transparent 25%) 0 0 / 18px 18px,
    #d9eee6;
  border-radius: 6px;
  display: grid;
  height: 54px;
  place-items: center;
  position: relative;
}

.message-location-map::before {
  background: rgba(45, 128, 94, 0.35);
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
  top: 28px;
  transform: rotate(-14deg);
}

.message-location-map span {
  background: #df4b3f;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 10px rgba(80, 22, 16, 0.2);
  height: 20px;
  transform: rotate(-45deg);
  width: 20px;
}

.message-location-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-location-main strong,
.message-location-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-location-main strong {
  color: #18352a;
  font-size: 0.94rem;
  font-weight: 900;
}

.message-location-main small {
  color: #547466;
  font-size: 0.78rem;
  font-weight: 700;
}

.message-location-action {
  color: #2d805e;
  font-size: 0.82rem;
  font-weight: 900;
}

.image-modal {
  align-items: center;
  background: rgba(8, 12, 10, 0.86);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 12px;
  position: fixed;
  z-index: 1000;
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  border-radius: 6px;
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  max-width: calc(100vw - 24px);
  object-fit: contain;
  width: calc(100vw - 24px);
}

.image-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  font-size: 28px;
  height: 44px;
  justify-items: center;
  padding: 0;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1001;
  width: 44px;
}

.ai-reply-modal-backdrop {
  align-items: center;
  background: rgba(10, 8, 8, 0.58);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.ai-reply-modal-backdrop[hidden] {
  display: none;
}

.ai-reply-modal {
  background: linear-gradient(145deg, #fffaf0, #f4e6c9);
  border: 1px solid rgba(216, 162, 71, 0.62);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(18, 12, 10, 0.34);
  color: #2a2112;
  display: grid;
  gap: 14px;
  max-width: 440px;
  padding: 28px;
  position: relative;
  width: min(100%, 440px);
}

.ai-reply-modal-compact {
  gap: 12px;
  max-width: 360px;
  padding: 20px;
  width: min(100%, 360px);
}

.ai-reply-modal h2,
.ai-reply-modal p {
  margin: 0;
}

.ai-reply-modal > p:not(.settings-eyebrow) {
  color: #4d3f2a;
}

.ai-reply-modal label {
  color: #5e4317;
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.ai-reply-modal textarea {
  background: #fffaf1;
  border: 1px solid rgba(216, 162, 71, 0.78);
  border-radius: 12px;
  color: #2a2112;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.ai-reply-modal textarea::placeholder {
  color: #7b6a55;
  opacity: 1;
}

.ai-reply-modal textarea:focus {
  border-color: #c7891e;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.24);
  outline: 0;
}

.ai-reply-modal-compact h2 {
  color: #2a2112;
  font-size: 22px;
  padding-right: 48px;
}

.ai-reply-modal-compact textarea {
  min-height: 86px;
}

.ai-reply-close {
  align-items: center;
  background: #fff7e8;
  border: 1px solid rgba(216, 162, 71, 0.55);
  border-radius: 50%;
  color: #5e4317;
  display: grid;
  font-size: 28px;
  height: 42px;
  justify-items: center;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
}

.ai-reply-close:hover,
.ai-reply-close:focus-visible {
  background: #f4d17c;
  color: #111315;
  outline: 0;
}

.ai-reply-modal-mark {
  align-items: center;
  background: #fff0f0;
  border: 1px solid #f5d4d4;
  border-radius: 50%;
  color: var(--brand);
  display: grid;
  height: 58px;
  justify-items: center;
  width: 58px;
}

.ai-reply-modal-mark svg {
  fill: none;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 26px;
}

.ai-reply-button {
  background: linear-gradient(135deg, #f0bd55, #c7891e);
  border-radius: 12px;
  color: #111315;
  min-height: 50px;
}

.ai-reply-icon-submit {
  align-items: center;
  border-radius: 50%;
  height: 54px;
  justify-self: end;
  min-height: 54px;
  padding: 0;
  width: 54px;
}

.ai-reply-icon-submit svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 24px;
}

.ai-reply-button:disabled {
  background: #b8b0ad;
  color: #fff;
  cursor: wait;
}

.ai-reply-modal small {
  color: #5d4c34;
  min-height: 18px;
}

.chat-analysis-backdrop {
  align-items: center;
  background: rgba(10, 8, 8, 0.62);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 62;
}

.chat-analysis-backdrop[hidden] {
  display: none;
}

.chat-analysis-panel {
  background: #fff9ef;
  border: 1px solid rgba(216, 162, 71, 0.58);
  border-radius: 12px;
  box-shadow: 0 28px 74px rgba(16, 10, 7, 0.36);
  color: #231b11;
  display: grid;
  gap: 14px;
  max-height: min(88vh, 760px);
  max-width: 520px;
  overflow: auto;
  padding: 20px;
  position: relative;
  width: min(100%, 520px);
}

.chat-analysis-close {
  align-items: center;
  background: #fff3db;
  border: 1px solid rgba(216, 162, 71, 0.52);
  border-radius: 50%;
  color: #5e4317;
  cursor: pointer;
  display: grid;
  font-size: 26px;
  height: 38px;
  justify-items: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
}

.chat-analysis-close:hover,
.chat-analysis-close:focus-visible {
  background: #f4d17c;
  color: #111315;
  outline: 0;
}

.chat-analysis-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-right: 44px;
}

.chat-analysis-head span {
  color: #8b610f;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chat-analysis-head h2 {
  font-size: 24px;
  margin: 2px 0 0;
}

.chat-analysis-refresh,
.chat-analysis-reply button {
  background: linear-gradient(135deg, #f0bd55, #c7891e);
  border: 0;
  border-radius: 8px;
  color: #111315;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 16px;
}

.chat-analysis-refresh:disabled,
.chat-analysis-reply button:disabled {
  background: #c5beb4;
  color: #fff;
  cursor: wait;
}

.chat-analysis-score {
  align-items: center;
  background: linear-gradient(135deg, #10100f, #2d2012);
  border: 1px solid rgba(216, 162, 71, 0.45);
  border-radius: 10px;
  color: #fff9ef;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.chat-analysis-ring {
  --score: 0%;
  align-items: center;
  background:
    radial-gradient(circle, #17120d 0 58%, transparent 60%),
    conic-gradient(#f0bd55 var(--score), #4a3824 0);
  border-radius: 50%;
  color: #ffe8af;
  display: grid;
  font-size: 24px;
  font-weight: 900;
  height: 76px;
  justify-items: center;
  width: 76px;
}

.chat-analysis-score strong {
  color: #f4d17c;
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.chat-analysis-score p,
.chat-analysis-note p,
.chat-analysis-reply p,
.chat-analysis-status {
  margin: 0;
}

.chat-analysis-score p {
  color: #f3e3c4;
}

.chat-analysis-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.chat-analysis-grid > div,
.chat-analysis-note,
.chat-analysis-reply {
  background: #fffdf8;
  border: 1px solid rgba(216, 162, 71, 0.28);
  border-radius: 8px;
  padding: 12px;
}

.chat-analysis-grid dt {
  color: #8b6d3b;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.chat-analysis-grid dd {
  color: #251d12;
  margin: 0;
}

#chatAnalysisTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#chatAnalysisTags span {
  background: #eef8f4;
  border: 1px solid #cde9dd;
  border-radius: 999px;
  color: #096148;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.chat-analysis-note,
.chat-analysis-reply {
  display: grid;
  gap: 7px;
}

.chat-analysis-note strong,
.chat-analysis-reply strong {
  color: #5d4115;
}

.chat-analysis-reply > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.chat-analysis-reply p {
  color: #332719;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-analysis-status {
  color: #6b5b43;
  min-height: 18px;
}

.notice {
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.notice.error {
  background: #ffe8e8;
}

.notice.info {
  background: #fff0f0;
}

@media (max-width: 760px) {
  .cashier-cash-denomination-grid {
    grid-template-columns: 1fr;
  }

  .cashier-cash-status-total {
    align-items: stretch;
    display: grid;
  }

  body.chat-page {
    overflow: hidden;
  }

  .conversation {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .login-panel {
    border-radius: 0;
    margin: 0 auto;
    min-height: 100vh;
  }

  .universe-register {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 28px 22px 36px;
  }

  .universe-login {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 28px 22px 36px;
  }

  .universe-accent {
    border-radius: 0;
  }

  .universe-register h1,
  .universe-login h1 {
    font-size: 34px;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: none;
  }

  .dashboard-page .topbar {
    display: none;
  }

  .dashboard-page .topbar-nav {
    gap: 12px;
    margin-right: 0;
  }

  .dashboard-page .topbar form {
    display: none;
  }

  .home-screen {
    gap: 28px;
    min-height: calc(100svh - 68px);
    padding: 22px 20px 30px;
  }

  .home-logo {
    max-width: 210px;
    width: 58vw;
  }

  .home-intro {
    align-self: center;
  }

  .home-intro h1 {
    font-size: 48px;
    line-height: 1.02;
  }

  .home-intro > p:not(.home-kicker):not(.home-login-note) {
    font-size: 16px;
  }

  .home-actions {
    margin-top: 24px;
  }

  .home-bottom-nav {
    justify-content: space-around;
  }

  .home-bottom-nav a {
    min-width: 72px;
    padding: 4px 6px;
  }

  .dashboard-page .shell {
    padding: 24px 18px;
  }

  .dashboard-head {
    margin: 4px 0 20px;
  }

  .dashboard-head h1 {
    font-size: 27px;
    line-height: 1.18;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: start;
    grid-template-columns: 1fr;
    margin-bottom: 28px;
    padding: 22px;
  }

  .dashboard-hero-icon {
    height: 48px;
    width: 48px;
  }

  .dashboard-hero-icon svg {
    height: 26px;
    width: 26px;
  }

  .dashboard-hero h2 {
    font-size: 22px;
  }

  .dashboard-section {
    margin-top: 27px;
  }

  .dashboard-section-head h2,
  .dashboard-activity h2 {
    font-size: 20px;
  }

  .dashboard-card {
    min-height: 132px;
    padding: 17px;
  }

  .earning-card-head {
    display: grid;
  }

  .earning-card-head > strong {
    justify-self: start;
  }

  .earning-grid {
    grid-template-columns: 1fr;
  }

  .earning-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .earning-filter select,
  .earning-filter button {
    width: 100%;
  }

  .earning-modal-summary,
  .earning-attendance-list dl {
    grid-template-columns: 1fr;
  }

  .earning-attendance-list article > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dashboard-calendar-head {
    display: grid;
    gap: 12px;
  }

  .dashboard-calendar-nav {
    justify-self: stretch;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .schedule-score-guide {
    justify-self: stretch;
    width: 100%;
  }

  .schedule-score-guide summary {
    text-align: center;
  }

  .schedule-score-guide div {
    position: static;
    width: 100%;
  }

  .schedule-score-guide ul {
    grid-template-columns: 1fr;
  }

  .schedule-score-guide li {
    white-space: normal;
  }

  .attendance-mini-rank {
    margin-left: 0;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .attendance-mini-rank ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-monitor-head,
  .system-monitor-audit span {
    display: grid;
  }

  .system-monitor-badge {
    justify-self: start;
  }

  .system-monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-health-report {
    grid-template-columns: 1fr;
  }

  .visitor-analytics-head,
  .visitor-analytics-grid,
  .visitor-live-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .visitor-analytics-head > span {
    justify-self: start;
  }

  .system-monitor-audit small {
    text-align: left;
  }

  .attendance-mini-rank li {
    gap: 3px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .attendance-mini-rank li small {
    grid-column: auto;
    justify-self: end;
  }

  .dashboard-month-calendar {
    gap: 5px;
  }

  .dashboard-month-calendar .day {
    border-radius: 8px;
    min-height: 45px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .dashboard-month-calendar small {
    font-size: 8px;
  }

  .schedule-modal-backdrop {
    align-items: center;
    padding: max(76px, env(safe-area-inset-top)) 10px calc(78px + env(safe-area-inset-bottom));
  }

  .schedule-modal {
    border-radius: 16px;
    max-height: calc(100vh - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px 18px 24px;
  }

  .schedule-modal-head h2,
  .schedule-modal-panel h3 {
    font-size: 21px;
  }

  .schedule-modal-grid {
    grid-template-columns: 1fr;
  }

  .schedule-inline-action {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-monitor-head {
    display: grid;
  }

  .employee-monitor-list {
    grid-template-columns: 1fr;
  }

  .employee-monitor-list article {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) min-content;
  }

  .employee-monitor-list article > span {
    font-size: 9px;
    padding: 5px 6px;
  }

  .dashboard-activity {
    align-items: start;
    padding: 17px;
  }

  .settings-menu,
  .settings-grid,
  .employee-layout,
  .feature-access-dropdowns,
  .attendance-settings-grid,
  .attendance-score-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .shipping-service-row {
    grid-template-columns: 1fr;
  }

  .shipping-service-uncovered-field {
    grid-column: 1 / -1;
  }

  .shipping-service-row [data-remove-shipping-service] {
    justify-self: start;
  }

  .settings-card-wide,
  .settings-span {
    grid-column: auto;
  }

  .settings-head,
  .settings-menu {
    padding: 0 18px;
  }

  .settings-head h1 {
    font-size: 30px;
  }

  .settings-grid {
    padding: 0 14px 24px;
  }

  .employee-layout {
    padding: 0 14px 24px;
  }

  .employee-form-grid {
    grid-template-columns: 1fr;
  }

  .schedule-board {
    padding: 0 14px 24px;
  }

  .schedule-rule-grid,
  .schedule-tools {
    grid-template-columns: 1fr;
  }

  .employee-row summary {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .employee-row summary em {
    grid-column: 2;
    justify-self: start;
  }

  .shell {
    padding: 0 0 68px;
  }

  .packing-page .shell {
    padding: 24px 12px 92px;
  }

  .wa-inbox {
    border: 0;
    border-radius: 0;
    min-height: calc(100dvh - 68px);
  }

  .wa-inbox-head {
    padding: 28px 18px 10px;
  }

  .wa-inbox-head h1 {
    font-size: 28px;
  }

  .wa-inbox-head span {
    display: none;
  }

  .wa-inbox-head .icon-button {
    flex: 0 0 40px;
    padding: 0;
  }

  .chat-filters {
    padding: 8px 18px 12px;
  }

  .reply-performance {
    padding: 0 18px;
  }

  .wa-chat-row {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 12px 16px;
  }

  .chat-shell {
    height: calc(100dvh - 68px);
    padding: 0;
  }

  .chat-layout {
    border: 0;
    border-radius: 0;
  }

  .chat-head {
    gap: 10px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .chat-head h1 {
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-head p {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-name-form {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }

  .contact-name-form label:first-child {
    grid-column: 1 / -1;
  }

  .reply {
    gap: 8px;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    padding: 10px;
  }

  .upload-preview {
    grid-column: 1 / -1;
  }

  .ai-icon-button,
  .attach-button,
  .sticker-mode-button {
    height: 40px;
    width: 40px;
  }

  .ai-icon-button svg {
    height: 18px;
    width: 18px;
  }

  .attach-button {
    font-size: 22px;
  }

  .sticker-mode-button {
    font-size: 10px;
  }

  .reply-foot button {
    border-radius: 50%;
    height: 40px;
    min-height: 40px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-indent: -999px;
    width: 40px;
  }

  .reply-foot button::after {
    content: ">";
    display: grid;
    inset: 0;
    place-items: center;
    position: absolute;
    text-indent: 0;
  }

  .thread {
    padding: 14px 12px;
  }

  .bubble {
    max-width: calc(100% - 40px);
  }

  .message-image {
    max-height: 220px;
    max-width: min(100%, 240px);
  }
}

@media (min-width: 761px) {
  body {
    min-height: 100vh;
  }

  .topbar {
    display: flex;
  }

  .home-bottom-nav {
    left: 0;
    max-width: none;
    right: 0;
    transform: none;
    width: auto;
  }

  .shell {
    max-width: none;
    min-height: calc(100vh - 64px);
    padding: clamp(24px, 3vw, 44px);
  }

  .home-page .shell {
    min-height: 100vh;
    padding: 0;
  }

  .home-screen {
    max-width: min(1280px, 100%);
    min-height: 100vh;
  }

  .login-panel {
    margin: clamp(32px, 6vh, 72px) auto;
  }

  .universe-login {
    max-width: min(560px, calc(100vw - 64px));
  }

  .auth-panel-wide,
  .universe-register {
    max-width: min(720px, calc(100vw - 64px));
  }

  .dashboard-page .topbar {
    display: flex;
  }

  .dashboard-page .shell {
    max-width: none;
    padding: clamp(24px, 3vw, 44px);
  }

  .dashboard-home {
    margin: 0 auto;
    max-width: 1280px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .dashboard-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .account-space {
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
    max-width: 1180px;
  }

  .account-space-hero {
    align-self: start;
    position: sticky;
    top: 88px;
  }

  .account-space > .account-card,
  .account-space > details,
  .account-space > .account-back-link {
    grid-column: 2;
  }

  .settings-head,
  .settings-menu,
  .employee-layout,
  .schedule-board,
  .settings-grid {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
  }

  body.inbox-page .shell,
  .chat-shell {
    padding: clamp(18px, 2vw, 28px);
  }

  .chat-shell {
    height: calc(100vh - 68px);
    padding: 0;
    width: 100%;
  }

  .wa-inbox,
  .chat-layout {
    min-height: calc(100vh - 64px - clamp(36px, 4vw, 56px));
  }

  .chat-layout {
    border-radius: 0;
    max-width: none;
    min-height: 0;
    width: 100%;
  }

  .chat-head {
    padding: 18px clamp(28px, 4vw, 72px);
  }

  .thread {
    padding: 24px clamp(32px, 5vw, 96px);
  }

  .bubble {
    max-width: min(58%, 760px);
  }

  .reply {
    padding: 14px clamp(28px, 4vw, 72px);
  }

  .wa-inbox {
    max-width: 1280px;
  }
}

@media (max-width: 980px) {
  .cashier-board,
  .packing-board {
    gap: 14px;
    padding-bottom: 92px;
  }

  .financial-reports-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cashier-summary,
  .cashier-workspace,
  .cashier-form-grid,
  .cashier-total-preview {
    grid-template-columns: 1fr;
  }

  .financial-journal-summary {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financial-journal-summary article {
    gap: 2px;
    min-height: 86px;
    padding: 10px 12px;
  }

  .financial-journal-summary strong {
    font-size: clamp(0.95rem, 4.4vw, 1.12rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .financial-journal-summary span,
  .financial-journal-summary small {
    font-size: 0.72rem;
  }

  .cashier-board .invoice-builder-head {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .custom-orders-page {
    gap: 14px;
    max-width: min(100%, 560px);
    padding: 0 14px 96px;
  }

  .custom-orders-page .invoice-builder-head {
    gap: 12px;
    overflow: hidden;
    padding: 16px 0 0;
  }

  .custom-orders-page .custom-order-page-title {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .custom-orders-page .invoice-builder-head > div:first-child > p:not(.auth-brand) {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .custom-orders-page .cashier-head-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .custom-orders-page .cashier-head-actions form,
  .custom-orders-page .cashier-head-actions .invoice-print-button {
    width: 100%;
  }

  .custom-orders-page .cashier-head-actions .invoice-print-button {
    border-radius: 8px;
    font-size: 0.86rem;
    min-height: 44px;
    padding: 0 12px;
  }

  .custom-orders-page .cashier-panel {
    border-radius: 8px;
    gap: 10px;
    padding: 14px 12px;
  }

  .custom-orders-page .cashier-form-grid {
    gap: 9px;
  }

  .custom-orders-page .cashier-panel label {
    font-size: 0.78rem;
    gap: 5px;
    margin: 0;
  }

  .custom-orders-page .cashier-panel input,
  .custom-orders-page .cashier-panel select,
  .custom-orders-page .cashier-panel textarea {
    border-radius: 7px;
    font-size: 0.82rem;
    min-height: 42px;
    padding: 8px 10px;
  }

  .custom-orders-page .cashier-panel .packing-panel-head h2 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin: 0;
  }

  .custom-orders-page .cashier-panel .packing-panel-head small {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .custom-orders-page .custom-order-file-panel,
  .custom-orders-page .custom-order-product-panel,
  .custom-orders-page .custom-order-product-card {
    gap: 9px;
    padding: 10px;
  }

  .cashier-system-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cashier-system-page .invoice-builder-head {
    gap: 14px;
    overflow: hidden;
    padding: 22px 18px 18px;
  }

  .cashier-system-page .invoice-builder-head h1 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
    letter-spacing: 0.16em;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .cashier-system-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .cashier-system-page .invoice-builder-head .auth-brand {
    font-size: 0.66rem;
    max-width: 100%;
    padding: 5px 11px;
    white-space: nowrap;
  }

  .cashier-system-page .cashier-head-actions {
    grid-template-columns: 1fr;
  }

  .cashier-system-page .cashier-head-actions .invoice-print-button {
    border-radius: 8px;
    font-size: 0.82rem;
    min-height: 40px;
    min-width: 0;
    padding: 0 12px;
  }

  .cashier-system-page .cashier-menu-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .cashier-system-page .dashboard-card {
    border-radius: 8px;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    min-height: 0;
    padding: 18px 14px;
  }

  .cashier-system-page .dashboard-icon {
    height: 42px;
    width: 42px;
  }

  .cashier-system-page .dashboard-icon svg {
    height: 19px;
    width: 19px;
  }

  .cashier-system-page .dashboard-status {
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  .cashier-system-page .dashboard-card h3 {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-top: 8px;
  }

  .cashier-system-page .dashboard-card p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 6px;
  }

  .cashier-system-page .dashboard-card small {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 6px;
  }

  .cashier-system-page .dashboard-arrow {
    font-size: 1rem;
  }

  .financial-reports-page .invoice-builder-head {
    gap: 12px;
    overflow: hidden;
    padding: 22px 18px 18px;
  }

  .financial-reports-page .invoice-builder-head h1 {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .financial-reports-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .financial-reports-page .invoice-builder-head .auth-brand {
    font-size: 0.72rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cashier-head-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    justify-content: stretch;
    max-width: none;
    width: 100%;
  }

  .financial-reports-page .cashier-head-actions {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financial-reports-page .cashier-head-actions .invoice-print-button {
    font-size: 0.82rem;
    min-height: 40px;
    min-width: 0;
    padding: 0 10px;
  }

  .financial-reports-page .cashier-panel {
    padding: 16px 14px;
  }

  .financial-reports-page .packing-panel-head {
    gap: 10px;
  }

  .financial-reports-page .packing-panel-head h2 {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .financial-reports-page .packing-panel-head small {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cashier-head-actions form,
  .cashier-action-button,
  .cashier-head-actions .invoice-print-button {
    width: 100%;
  }

  .cashier-products-page {
    gap: 12px;
    max-width: min(100%, 560px);
    padding: 0 14px 92px;
  }

  .cashier-products-page .invoice-builder-head {
    gap: 12px;
    padding: 18px 14px 16px;
  }

  .cashier-products-page .invoice-builder-head .auth-brand {
    border-radius: 999px;
    font-size: 0.62rem;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cashier-products-page .invoice-builder-head h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.35rem);
    letter-spacing: 0.12em;
    line-height: 1.06;
    margin: 10px 0 0;
  }

  .cashier-products-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: 12px;
  }

  .cashier-products-page .cashier-head-actions {
    gap: 8px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cashier-products-page .cashier-head-actions form,
  .cashier-products-page .cashier-action-button,
  .cashier-products-page .cashier-head-actions .invoice-print-button {
    max-width: 100%;
    width: 100%;
  }

  .cashier-products-page .cashier-action-button {
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.25;
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
    white-space: normal;
  }

  .cashier-products-page .cashier-action-secondary {
    min-width: 0;
  }

  .cashier-database-page {
    gap: 12px;
    max-width: min(100%, 560px);
    padding: 0 14px 96px;
  }

  .cashier-database-page .invoice-builder-head {
    gap: 12px;
    overflow: hidden;
    padding: 18px 14px 16px;
  }

  .cashier-database-page .invoice-builder-head .auth-brand {
    border-radius: 999px;
    font-size: 0.62rem;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cashier-database-page .invoice-builder-head h1 {
    font-size: clamp(1.75rem, 8.6vw, 2.25rem);
    letter-spacing: 0.08em;
    line-height: 1.08;
    margin: 10px 0 0;
    overflow-wrap: anywhere;
  }

  .cashier-database-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: 10px;
    max-width: 100%;
  }

  .cashier-database-page .cashier-head-actions {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .cashier-database-page .cashier-head-actions .invoice-print-button {
    border-radius: 8px;
    font-size: 0.86rem;
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
    width: 100%;
  }

  .cashier-database-page .cashier-menu-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .cashier-database-page .dashboard-card {
    align-items: center;
    border-radius: 8px;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    min-height: 0;
    padding: 16px 14px;
  }

  .cashier-database-page .dashboard-icon {
    height: 42px;
    width: 42px;
  }

  .cashier-database-page .dashboard-icon svg {
    height: 19px;
    width: 19px;
  }

  .cashier-database-page .dashboard-status {
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  .cashier-database-page .dashboard-card h3 {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    line-height: 1.16;
    margin-top: 8px;
  }

  .cashier-database-page .dashboard-card p {
    font-size: 0.84rem;
    line-height: 1.42;
    margin-top: 6px;
  }

  .cashier-database-page .dashboard-arrow {
    font-size: 1rem;
    justify-self: end;
  }

  .cashier-products-page .packing-panel {
    gap: 12px;
    padding: 14px;
  }

  .cashier-products-page .packing-panel-head {
    gap: 8px;
  }

  .cashier-products-page .packing-panel-head h2 {
    font-size: 1.15rem;
    line-height: 1.18;
  }

  .cashier-products-page .packing-panel-head small {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cashier-products-page .cashier-table-tools {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .cashier-products-page .cashier-table-tools input,
  .cashier-products-page .cashier-table-tools .invoice-print-button,
  .cashier-products-page .cashier-secondary-link {
    min-height: 42px;
  }

  .cashier-products-page .cashier-secondary-link {
    justify-content: center;
  }

  .cashier-products-page .cashier-product-form {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .cashier-products-page .cashier-product-edit-body {
    padding: 12px;
  }

  .cashier-products-page .cashier-product-table {
    border-radius: 7px;
    max-height: 64vh;
    overflow: auto;
  }

  .cashier-products-page .cashier-product-row {
    gap: 4px;
    grid-template-columns: minmax(68px, 0.8fr) minmax(102px, 1.25fr) 34px 38px 54px;
    min-height: 46px;
    padding: 8px 6px;
  }

  .cashier-products-page .cashier-product-row {
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.15;
  }

  .cashier-products-page .cashier-product-row-head {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  .cashier-products-page .cashier-product-row strong,
  .cashier-products-page .cashier-product-row span {
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cashier-products-page .cashier-product-row span {
    font-size: 0.5rem;
    margin-top: 2px;
  }

  .cashier-products-page .cashier-product-edit-body .cashier-form-grid {
    gap: 7px;
  }

  .cashier-products-page .cashier-product-edit-body .cashier-form-grid label,
  .cashier-products-page .cashier-product-edit-body .cashier-form-grid small {
    font-size: 0.66rem;
    gap: 4px;
    line-height: 1.18;
  }

  .cashier-products-page .cashier-product-edit-body .cashier-form-grid input,
  .cashier-products-page .cashier-product-edit-body .cashier-form-grid select,
  .cashier-products-page .cashier-product-edit-body .cashier-form-grid textarea {
    border-radius: 7px;
    font-size: 0.72rem;
    min-height: 38px;
    padding: 7px 9px;
  }

  .cashier-products-page .cashier-product-edit-body .cashier-form-actions {
    gap: 6px;
  }

  .cashier-products-page .cashier-product-edit-body .cashier-form-actions .invoice-print-button,
  .cashier-products-page .cashier-product-delete-form button {
    border-radius: 7px;
    font-size: 0.68rem;
    min-height: 34px;
    padding: 0 10px;
  }

  .cashier-products-page .cashier-pagination {
    gap: 5px;
    margin-top: 10px;
  }

  .cashier-products-page .cashier-page-link,
  .cashier-products-page .cashier-page-gap {
    border-radius: 7px;
    font-size: 0.66rem;
    font-weight: 700;
    min-height: 30px;
    min-width: 30px;
    padding: 0 8px;
  }

  .cashier-products-page .cashier-page-jump {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 0;
  }

  .cashier-products-page .cashier-page-jump label {
    font-size: 0.66rem;
    gap: 3px;
  }

  .cashier-products-page .cashier-page-jump input {
    border-radius: 7px;
    font-size: 0.68rem;
    min-height: 30px;
    padding: 5px 8px;
    width: 58px;
  }

  .cashier-products-page .cashier-page-jump .invoice-print-button {
    border-radius: 7px;
    font-size: 0.68rem;
    min-height: 30px;
    padding: 0 10px;
  }

  .cashier-item-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cashier-item-row button {
    min-height: 42px;
  }

  .cashier-cash-in-line,
  .cashier-cash-in-line.is-customer-deposit,
  .cashier-cash-in-line-receipt {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .cashier-cash-in-line > label {
    grid-column: 1 / -1;
  }

  .cashier-cash-in-line > button {
    grid-column: 2;
    justify-self: end;
  }

  .cashier-account-row,
  .cashier-account-row-head,
  .cashier-partner-row,
  .cashier-partner-row-head,
  .cashier-customer-row,
  .cashier-customer-row-head {
    align-items: start;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .cashier-table-tools,
  .cashier-customer-tools,
  .cashier-page-jump,
  .financial-journal-page-tools {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .cashier-pagination {
    justify-content: flex-start;
  }

  .financial-journal-filter-actions,
  .financial-journal-pagination {
    justify-content: flex-start;
  }

  .financial-journal-page-tools {
    gap: 8px;
  }

  .financial-journal-page-tools > span {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .financial-journal-pagination {
    display: grid;
    gap: 6px;
    grid-template-columns: 34px minmax(64px, auto) 34px 44px 56px;
    justify-content: stretch;
  }

  .financial-journal-pagination > span {
    align-self: center;
    font-size: 0.68rem;
    justify-self: center;
    white-space: nowrap;
  }

  .financial-journal-pagination > .cashier-action-button {
    font-size: 0;
    min-height: 32px;
    min-width: 0;
    padding: 0;
    width: 100%;
  }

  .financial-journal-pagination > .cashier-action-button:first-child::after {
    content: "<";
    font-size: 0.9rem;
  }

  .financial-journal-pagination > .cashier-action-button:nth-of-type(2)::after {
    content: ">";
    font-size: 0.9rem;
  }

  .financial-journal-page-jump {
    align-items: stretch;
    display: contents;
  }

  .financial-journal-page-jump input {
    font-size: 0.72rem;
    min-height: 32px;
    padding: 0 6px;
    width: 100%;
  }

  .financial-journal-page-jump .cashier-action-button {
    font-size: 0;
    min-height: 32px;
    min-width: 0;
    padding: 0;
  }

  .financial-journal-page-jump .cashier-action-button::after {
    content: "Go";
    font-size: 0.72rem;
  }

  .financial-journal-filter-panel {
    margin: 10px 0 12px;
  }

  .financial-journal-filter-toggle {
    border-radius: 8px;
    min-height: 34px;
    min-width: 36px;
    padding: 0 9px;
  }

  .financial-journal-filter-toggle span {
    display: none;
  }

  .financial-journal-filters {
    gap: 7px;
    grid-template-columns: 1fr;
    margin-top: 8px;
    padding: 10px;
  }

  .financial-journal-filters label,
  .financial-journal-page-jump {
    font-size: 0.66rem;
    font-weight: 600;
    gap: 4px;
  }

  .financial-journal-filters input,
  .financial-journal-filters select,
  .financial-journal-page-jump input {
    border-radius: 7px;
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 9px;
  }

  .financial-journal-filter-actions {
    gap: 6px;
  }

  .financial-journal-filter-actions .cashier-action-button {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 10px;
  }

  .financial-journal-table {
    max-height: min(62vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
  }

  .financial-journal-row,
  .financial-journal-row-head {
    align-items: center;
    gap: 4px;
    grid-template-columns: 44px minmax(48px, 0.82fr) minmax(50px, 0.74fr) minmax(50px, 0.74fr) minmax(58px, 0.92fr) 20px 42px;
    min-height: 46px;
    min-width: 0;
    padding: 8px 6px;
  }

  .financial-journal-row {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .financial-journal-row-head {
    display: grid;
    font-size: 0.5rem;
    letter-spacing: 0.03em;
  }

  .financial-journal-row small {
    font-size: 0.5rem;
    line-height: 1.15;
  }

  .financial-journal-row .is-amount {
    font-size: 0.54rem;
    overflow-wrap: anywhere;
  }

  .financial-journal-row a {
    font-size: 0.52rem;
    overflow-wrap: anywhere;
  }

  .financial-journal-row strong,
  .financial-journal-row span,
  .financial-journal-row b {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .financial-partner-flow-table {
    max-height: none;
    overflow: visible;
  }

  .financial-partner-flow-table > .financial-journal-row:not(.financial-journal-row-head) {
    gap: 8px;
    grid-template-columns: minmax(70px, 0.56fr) minmax(0, 1fr);
    min-height: 0;
    padding: 11px 12px 11px 14px;
  }

  .financial-partner-flow-table .financial-flow-source-cell,
  .financial-partner-flow-table .is-amount {
    grid-column: 2;
  }

  .financial-partner-flow-table .is-amount {
    font-size: 0.68rem;
  }

  .financial-group-investor-detail summary {
    font-size: 0.78rem;
    min-height: 0;
  }

  .financial-group-investor-detail-body {
    max-width: calc(100vw - 44px);
  }

  .financial-journal-check {
    min-height: 22px;
    width: 22px;
  }

  .financial-journal-check input {
    height: 13px;
    width: 13px;
  }

  .financial-journal-actions {
    gap: 3px;
  }

  .financial-journal-icon-button {
    border-radius: 6px;
    height: 19px;
    width: 19px;
  }

  .financial-journal-icon-button svg {
    height: 11px;
    width: 11px;
  }

  .financial-profit-filters {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .financial-profit-filters label {
    font-size: 0.62rem;
  }

  .financial-profit-filters input,
  .financial-profit-filters select {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 8px;
  }

  .financial-profit-filters .financial-journal-filter-actions {
    grid-column: 1 / -1;
  }

  .financial-profit-section h3 {
    font-size: 0.62rem;
    padding: 10px 12px;
  }

  .financial-profit-section div {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    min-height: 42px;
    padding: 9px 10px;
  }

  .financial-profit-section span {
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }

  .financial-profit-section small {
    font-size: 0.54rem;
  }

  .financial-profit-section b {
    font-size: 0.62rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .financial-capital-detail summary {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) 22px;
    min-height: 42px;
    padding: 9px 10px;
  }

  .financial-capital-detail summary::after {
    font-size: 0.66rem;
    height: 18px;
    width: 18px;
  }

  .financial-capital-detail summary > b {
    font-size: 0.62rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .financial-capital-detail-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    padding: 8px 10px 8px 18px;
  }

  .financial-capital-detail-empty {
    font-size: 0.62rem;
    padding: 9px 10px 9px 18px;
  }

  .financial-profit-net .is-grand-total span,
  .financial-profit-net .is-grand-total b {
    font-size: 0.72rem;
  }

  .salary-team-summary {
    grid-template-columns: 1fr;
  }

  .salary-team-table {
    overflow-x: auto;
  }

  .salary-team-row-head,
  .salary-team-detail summary,
  .salary-team-breakdown {
    min-width: 860px;
  }

  .salary-team-row-head,
  .salary-team-detail summary {
    gap: 8px;
    grid-template-columns: minmax(160px, 1.1fr) repeat(5, minmax(110px, 0.8fr));
    padding: 9px 10px;
  }

  .salary-team-row-head {
    font-size: 0.52rem;
  }

  .salary-team-detail summary span {
    font-size: 0.66rem;
  }

  .salary-team-detail summary small {
    font-size: 0.52rem;
  }

  .salary-team-breakdown {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }

  .salary-team-breakdown h3 {
    font-size: 0.58rem;
    padding: 8px 9px;
  }

  .salary-team-breakdown p {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
    padding: 8px 9px;
  }

  .salary-team-breakdown span,
  .salary-team-breakdown b {
    font-size: 0.58rem;
  }

  .salary-team-breakdown small {
    font-size: 0.5rem;
  }

  .cashier-account-row-head,
  .cashier-partner-row-head,
  .cashier-customer-row-head {
    display: none;
  }

  .packing-tabs {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    max-width: none;
    overflow: visible;
    position: relative;
    z-index: 8;
  }

  .packing-tabs a,
  .packing-guide-tab {
    font-size: 14px;
    min-height: 40px;
    padding: 0 8px;
  }

  .packing-tabs em {
    right: 2px;
  }

  .packing-board .invoice-builder-head h1 {
    font-size: 34px;
    line-height: 1;
  }

  .packing-form,
  .packing-history-list,
  .packing-history-filters,
  .packing-process-grid,
  .packing-delivery-actions,
  .jne-grid,
  .jne-party-grid,
  .jne-recent-list {
    grid-template-columns: 1fr;
  }

  .packing-form-row,
  .packing-form-row-three,
  .packing-form-row-action,
  .packing-product-row,
  .jne-form-row {
    grid-template-columns: 1fr;
  }

  .packing-product-row button {
    justify-self: start;
    width: 40px;
  }

  .packing-panel,
  .packing-entry-card {
    padding: 16px;
  }

  .packing-form-row-action .packing-submit,
  .packing-form-final-action .packing-submit {
    min-width: 0;
    width: 100%;
  }

  .packing-form-final-action {
    justify-content: stretch;
  }

  .packing-product-head {
    align-items: stretch;
    flex-direction: column;
  }

  .packing-product-head button {
    width: 100%;
  }

  .packing-panel .phone-field {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (min-width: 1100px) {
  .dashboard-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 38px;
  }

  .dashboard-hero-icon {
    height: 72px;
    width: 72px;
  }

  .dashboard-hero h2 {
    font-size: 34px;
  }
}

@media (max-width: 420px) {
  .cashier-item-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cashier-item-row button {
    min-height: 42px;
  }

  .phone-field,
  .compact-phone-field {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .country-trigger {
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .game-modal {
    padding: 24px 20px;
  }
}

.schedule-modal .schedule-modal-panel button:disabled,
.schedule-modal .schedule-modal-panel button[disabled] {
  background: #e42323 !important;
  border: 1px solid #e42323 !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 0.78 !important;
}

.schedule-modal .schedule-action-button {
  background: #e42323 !important;
  border: 1px solid #e42323 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  min-height: 48px;
  opacity: 1 !important;
}

.schedule-modal .schedule-action-button:disabled,
.schedule-modal .schedule-action-button[disabled] {
  background: #e42323 !important;
  border-color: #e42323 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 0.78 !important;
}

@media (max-width: 760px) {
  .invoice-workspace,
  .invoice-saved-panel,
  .invoice-send-panel,
  .invoice-unpaid-item,
  .invoice-bottom-actions,
  .invoice-form-row,
  .invoice-summary,
  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .invoice-builder-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .invoice-unpaid-panel header {
    align-items: stretch;
    display: grid;
  }

  .invoice-update-actions {
    justify-content: stretch;
  }

  .invoice-update-actions button {
    width: 100%;
  }

  .invoice-print-button {
    grid-column: 1 / -1;
  }

  .invoice-bottom-actions .invoice-print-button {
    grid-column: auto;
  }

  .invoice-pdf-modal-backdrop {
    padding: 8px;
  }

  .invoice-pdf-modal {
    grid-template-rows: auto minmax(260px, 1fr) auto;
    height: 94vh;
    padding: 10px;
  }

  .invoice-modal-actions {
    grid-template-columns: 1fr;
  }

  .invoice-item-row {
    grid-template-columns: minmax(0, 1fr) 64px minmax(82px, 0.7fr) 32px;
  }

  .invoice-deposit-row {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 1fr) 32px;
  }

  .invoice-paper {
    padding: 20px;
  }

  .invoice-paper-head {
    display: grid;
  }

  .invoice-paper-head h2,
  .invoice-paper-head small {
    text-align: left;
  }
}

@media print {
  @page {
    margin: 8mm;
    size: A4;
  }

  body {
    background: #fff !important;
  }

  .topbar,
  .bottom-nav,
  .invoice-builder-head,
  .invoice-saved-panel,
  .invoice-send-panel,
  .invoice-unpaid-panel,
  .invoice-form,
  .invoice-bottom-actions {
    display: none !important;
  }

  .invoice-builder,
  .invoice-workspace {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .invoice-paper,
  .invoice-paper * {
    visibility: visible !important;
  }

  .invoice-paper {
    border: 0;
    box-shadow: none;
    margin: 0 auto;
    min-height: auto;
    padding: 0 !important;
    position: static;
    width: 100%;
  }

  .invoice-paper-head {
    padding-bottom: 16px;
  }

  .invoice-meta,
  .invoice-summary,
  .invoice-payment {
    margin-top: 14px;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 9px 8px;
  }

  .invoice-signature {
    margin-top: 28px;
  }
}

/* Editorial typography pass: clean catalog-like lettering with lighter weight. */
body {
  font-family: "Montserrat", "Avenir Next", "Century Gothic", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand,
.dashboard-head h1,
.invoice-builder-head h1,
.settings-head h1,
.wa-inbox-head h1,
.chat-head h1,
.packing-board .invoice-builder-head h1 {
  font-family: "Montserrat", "Avenir Next", "Century Gothic", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  line-height: 1.08;
}

h2,
h3 {
  letter-spacing: 0.03em;
  line-height: 1.2;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-weight: 500;
}

button,
.primary-button,
.secondary-button,
.packing-submit,
.packing-update-button,
.invoice-print-button,
.settings-card button,
.login-panel button,
.dashboard-logout button,
.topbar form button {
  font-weight: 600;
}

label,
summary,
.topbar-nav a,
.bottom-nav a small,
.bottom-notification-button small,
.dashboard-status,
.dashboard-kicker,
.auth-brand,
.settings-eyebrow {
  font-weight: 500;
}

small,
.packing-entry-card small,
.packing-entry-card p,
.packing-entry-card dt,
.settings-card p,
.dashboard-card p,
.dashboard-hero p,
.invoice-builder-head p {
  font-weight: 400;
}

.dashboard-status,
.dashboard-kicker,
.auth-brand,
.settings-eyebrow {
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.packing-tabs a,
.packing-guide-tab,
.packing-panel label,
.packing-recipient-picker strong,
.packing-recipient-options button,
.packing-product-head strong,
.packing-product-head button,
.packing-entry-card strong,
.packing-product-summary li b,
.packing-checks span,
.packing-edit-panel summary,
.packing-delete-button,
.packing-edit-form label {
  font-weight: 500;
}

.packing-panel input,
.packing-panel select,
.packing-panel textarea,
.packing-edit-form input,
.packing-edit-form select,
.packing-edit-form textarea,
.invoice-form input,
.invoice-form select,
.invoice-form textarea {
  font-weight: 500;
}

.packing-entry-main h3 {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.packing-note,
.packing-product-summary span,
.packing-entry-card dd,
.packing-status-row span,
.packing-status-row small,
.packing-file-preview figcaption,
.packing-file-remove,
.packing-tabs em,
.notification-nav-button em,
.bottom-notification-button em {
  font-weight: 600;
}

.packing-note b {
  font-weight: 600;
}

.topbar-nav a,
.bottom-nav a small,
.packing-tabs a,
.packing-guide-tab,
.dashboard-card h3,
.settings-card h2,
.invoice-paper-head h2,
.packing-panel-head h2,
.packing-section h2 {
  letter-spacing: 0.06em;
}

.packing-product-summary li b,
.packing-entry-card dd,
.packing-status-row span,
.dashboard-status,
.packing-tabs em {
  letter-spacing: 0.03em;
}

input::placeholder,
textarea::placeholder {
  font-weight: 400;
}

/* Global black-gold KSRF theme. */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 162, 71, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(16, 18, 20, 0.98), rgba(8, 9, 10, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    #0c0e10;
  color: var(--ink);
}

.shell {
  background: transparent;
}

.topbar,
.dashboard-page .topbar,
.home-page .topbar,
body.chat-page .topbar,
body.inbox-page .topbar {
  background: rgba(10, 11, 12, 0.94);
  border-bottom: 1px solid rgba(216, 162, 71, 0.22);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.brand,
.topbar-nav a,
.topbar form span,
.notification-nav-button,
.bottom-notification-button {
  color: var(--ink);
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: #f0c66c;
}

.topbar-nav .nav-primary,
.topbar form button,
.primary-link,
.primary-button,
.account-primary-button,
.login-panel button,
.settings-card button,
.dashboard-logout button,
.packing-submit,
.packing-update-button,
.invoice-print-button,
.invoice-send-panel button,
.invoice-saved-panel button,
.jne-form button,
.schedule-modal-panel button,
.notification-modal-action {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-color: rgba(216, 162, 71, 0.36);
  color: #111315;
}

.topbar form button:hover,
.primary-link:hover,
.primary-link:focus-visible,
.primary-button:hover,
.account-primary-button:hover,
.login-panel button:hover,
.settings-card button:hover,
.dashboard-logout button:hover,
.packing-submit:hover,
.packing-update-button:hover,
.invoice-print-button:hover,
.jne-form button:hover {
  background: linear-gradient(135deg, #ffd986, #c9902f);
  color: #111315;
}

.secondary-button,
.secondary-link,
.packing-secondary-action,
.packing-guide-button,
.invoice-saved-panel button,
.invoice-send-panel button.danger {
  background: rgba(216, 162, 71, 0.1);
  border-color: rgba(216, 162, 71, 0.36);
  color: #f0c66c;
}

.home-bottom-nav {
  background: rgba(14, 15, 15, 0.96);
  border-top: 1px solid rgba(216, 162, 71, 0.24);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.24);
}

.home-bottom-nav a,
.home-bottom-nav button {
  color: rgba(248, 245, 238, 0.84);
}

.home-bottom-nav a.active,
.home-bottom-nav button.active,
.home-bottom-nav a:hover,
.home-bottom-nav button:hover {
  color: #f0c66c;
}

.home-bottom-nav small {
  color: currentColor;
}

.home-bottom-nav svg {
  stroke-width: 2;
}

/* Public package confirmation contrast pass. */
.public-confirm-card {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  color: #211a10;
}

.public-confirm-card .auth-brand {
  background: linear-gradient(90deg, #f4d17c, #b98226);
  color: #111315;
}

.public-confirm-card h1 {
  color: #2a2114;
}

.public-confirm-card p {
  color: #6d5f49;
}

.public-confirm-card label {
  color: #5c4b31;
}

.public-confirm-card select,
.public-confirm-card textarea {
  background: #fff;
  border-color: rgba(185, 130, 38, 0.42);
  color: #19140d;
}

.public-confirm-card select:focus,
.public-confirm-card textarea:focus {
  border-color: #d8a247;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.2);
  outline: 0;
}

.public-confirm-card textarea::placeholder {
  color: #7a7166;
  opacity: 1;
}

.public-confirm-card button {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315;
}

.notification-nav-button em,
.bottom-notification-button em,
.bottom-chat-link em,
.packing-tabs em,
.dashboard-status,
.dashboard-kicker,
.settings-eyebrow,
.auth-brand,
.game-modal-eyebrow {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315;
}

.dashboard-card,
.dashboard-card-empty,
.settings-card,
.account-card,
.account-space-hero,
.login-panel,
.packing-panel,
.packing-entry-card,
.packing-guide-panel,
.invoice-saved-panel,
.invoice-send-panel,
.invoice-unpaid-panel,
.invoice-form,
.jne-card,
.game-modal,
.notification-modal,
.push-notification-card,
.notification-list a,
.notification-list article,
.schedule-modal-panel,
.packing-form,
.packing-history-filters,
.packing-recipient-picker,
.packing-shipping-menu,
.packing-edit-form,
.invoice-contact-list,
.invoice-modal-panel,
.chat-action-menu-panel,
.label-manage-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(216, 162, 71, 0.045));
  border-color: rgba(216, 162, 71, 0.24);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
  color: var(--ink);
}

.dashboard-card h3,
.settings-card h2,
.account-card h2,
.packing-panel-head h2,
.packing-entry-main h3,
.invoice-builder-head h1,
.settings-head h1,
.dashboard-head h1,
.wa-inbox-head h1,
.chat-head h1,
.login-panel h1,
.game-modal h2,
.notification-modal-head h2 {
  color: var(--ink);
}

.dashboard-card p,
.settings-card p,
.account-card-heading p,
.packing-entry-card p,
.packing-entry-card small,
.packing-entry-card dt,
.invoice-builder-head p,
.login-panel p,
.notification-list p,
.push-notification-card p,
.game-modal p {
  color: var(--muted);
}

.game-modal {
  background: linear-gradient(145deg, #fffaf0, #f4e6c9);
  border-color: rgba(216, 162, 71, 0.62);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
  color: #2a2112;
}

.game-modal::before {
  background: linear-gradient(90deg, #f4d17c, #d8a247, #b98226);
}

.game-modal-rank {
  background: #fff2e8;
  border-color: rgba(216, 162, 71, 0.64);
  color: #a66100;
  text-shadow: none;
}

.game-modal-rank.is-success {
  background: #ecfff4;
  border-color: rgba(24, 131, 74, 0.35);
  color: #08723d;
}

.game-modal .game-modal-eyebrow {
  background: linear-gradient(135deg, #f7d77f, #c7891e);
  color: #2a2112;
  display: inline-block;
  padding: 4px 12px;
}

.game-modal h2 {
  color: #2a2112;
  text-shadow: none;
}

.game-modal p:not(.game-modal-eyebrow) {
  color: #4d3f2a;
  font-weight: 700;
}

.game-modal button {
  background: linear-gradient(135deg, #f0bd55, #c7891e);
  color: #111315;
  box-shadow: 0 12px 28px rgba(184, 125, 30, 0.28);
}

.game-modal button:hover,
.game-modal button:focus-visible {
  background: linear-gradient(135deg, #ffd978, #d09427);
  color: #111315;
}

input,
select,
textarea,
.country-trigger,
.settings-card .country-trigger,
.packing-panel input,
.packing-panel select,
.packing-panel textarea,
.packing-edit-form input,
.packing-edit-form select,
.packing-edit-form textarea,
.invoice-form input,
.invoice-form select,
.invoice-form textarea,
.jne-form input,
.compact-phone-field input,
.phone-field input,
.inbox-search-form input,
.label-create-form input,
.contact-name-form input,
.reply-box textarea {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(216, 162, 71, 0.32);
  color: #171515;
}

input:focus,
select:focus,
textarea:focus,
.settings-card .country-trigger:focus-visible,
.packing-panel input:focus,
.packing-panel select:focus,
.packing-panel textarea:focus,
.invoice-form input:focus,
.invoice-form select:focus,
.invoice-form textarea:focus {
  border-color: #f0c66c;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.18);
  outline: 0;
}

.packing-tabs,
.label-tabs,
.dashboard-card-link,
.home-world-cup-banner,
.packing-recipient-options,
.jne-autocomplete-menu {
  border-color: rgba(216, 162, 71, 0.24);
}

.packing-tabs a,
.packing-guide-tab,
.label-tool-button,
.icon-button,
.inbox-home-button {
  color: var(--ink);
}

/* JNE contrast pass: keep the black-gold theme, make light panels readable. */
.jne-tools .invoice-builder-head h1 {
  color: #fffaf0;
}

.jne-tools .invoice-builder-head .auth-brand {
  background: linear-gradient(90deg, #f4d17c, #b98226);
  color: #2a2112;
  text-shadow: none;
}

.jne-tools .back-link {
  color: #fffaf0;
}

.jne-tools .back-link:hover,
.jne-tools .back-link:focus-visible {
  color: #f0c66c;
}

.jne-tabs {
  background: #fffaf0;
  border-color: rgba(216, 162, 71, 0.42);
}

.jne-tabs a {
  color: #211a10;
}

.jne-tabs a.active {
  background: rgba(244, 209, 124, 0.28);
  border-color: rgba(185, 130, 38, 0.48);
  color: #8a570f;
}

.jne-tabs a:hover,
.jne-tabs a:focus-visible {
  color: #8a570f;
}

.jne-panel {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.38);
  color: #211a10;
}

.jne-panel .packing-panel-head h2,
.jne-panel .dashboard-section-head h2,
.jne-panel .dashboard-card-copy h3,
.jne-form label,
.jne-manifest strong {
  color: #120f0a;
}

.jne-panel .dashboard-status,
.jne-panel .dashboard-kicker {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #11100d;
}

.jne-panel .dashboard-kicker {
  background: transparent;
  color: #8a570f;
}

.jne-form input,
.jne-form select {
  background: #fff;
  border-color: rgba(185, 130, 38, 0.34);
  color: #17120b;
}

.jne-form input::placeholder {
  color: #7f7361;
  opacity: 1;
}

.jne-form input:focus,
.jne-form select:focus {
  border-color: #c58a2e;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.2);
  outline: 0;
}

.jne-form button,
.jne-track-card a {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315;
}

.jne-form button:hover,
.jne-form button:focus-visible,
.jne-track-card a:hover,
.jne-track-card a:focus-visible {
  background: linear-gradient(135deg, #ffd986, #c9902f);
  color: #111315;
}

.jne-track-card {
  background: #fff7f2;
  border-color: rgba(216, 162, 71, 0.34);
}

.jne-rate-result span,
.jne-track-card span,
.jne-rate-list span,
.jne-party-grid span,
.jne-recent-list span,
.jne-panel .dashboard-card-copy span {
  color: #8a570f;
}

.jne-rate-result strong,
.jne-track-card strong,
.jne-rate-list strong,
.jne-party-grid strong,
.jne-delivery-note strong,
.jne-recent-list strong,
.jne-panel .dashboard-card-copy strong {
  color: #17120b;
}

.jne-rate-result p,
.jne-track-card p,
.jne-track-card small,
.jne-party-grid p,
.jne-delivery-note span,
.jne-rate-list p,
.jne-manifest p,
.jne-manifest small,
.jne-recent-list p,
.jne-recent-list small,
.jne-panel .dashboard-card-copy p {
  color: #5f5445;
}

.jne-party-grid article,
.jne-manifest article,
.jne-recent-list article,
.jne-recent-card {
  background: #fffaf0;
  border-color: rgba(216, 162, 71, 0.28);
}

.jne-delivery-note {
  background: #f3fff6;
  border-color: rgba(37, 148, 80, 0.28);
}

.jne-autocomplete-menu {
  background: #fffdf8;
  border-color: rgba(185, 130, 38, 0.38);
}

.jne-form .jne-autocomplete-menu button,
.jne-autocomplete-menu span {
  background: #fffdf8;
  color: #211a10;
}

.jne-form .jne-autocomplete-menu button:hover,
.jne-form .jne-autocomplete-menu button:focus-visible {
  background: #fff1cf;
  color: #7a4b0b;
}

.jne-autocomplete-menu span {
  color: #6b5f4e;
}

/* Invoice contrast pass: keep the black-gold theme while making controls readable. */
body.invoice-page .invoice-form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(216, 162, 71, 0.06)),
    #141514;
  border-color: rgba(240, 198, 108, 0.38);
  color: #fffaf0;
}

body.invoice-page .invoice-form label,
body.invoice-page .invoice-items-head strong,
body.invoice-page .invoice-unpaid-panel strong {
  color: #fffaf0;
}

body.invoice-page .invoice-form small,
body.invoice-page .invoice-form .field-hint,
body.invoice-page .invoice-unpaid-panel small,
body.invoice-page .invoice-unpaid-empty {
  color: #e5d6bd;
}

body.invoice-page .invoice-form input,
body.invoice-page .invoice-form select,
body.invoice-page .invoice-form textarea,
body.invoice-page .invoice-form .country-trigger {
  background: #fffaf2;
  border-color: rgba(240, 198, 108, 0.58);
  color: #111315;
}

body.invoice-page .invoice-form input[type="date"] {
  color-scheme: light;
  font-size: 14px;
  min-width: 0;
  padding-left: 10px;
  padding-right: 9px;
  width: 100%;
}

body.invoice-page .invoice-form-row label {
  min-width: 0;
}

body.invoice-page .invoice-form input::placeholder,
body.invoice-page .invoice-form textarea::placeholder {
  color: #6d665e;
  opacity: 1;
}

body.invoice-page .invoice-form input:focus,
body.invoice-page .invoice-form select:focus,
body.invoice-page .invoice-form textarea:focus,
body.invoice-page .invoice-form .country-trigger:focus-visible {
  background: #fff;
  border-color: #f4d17c;
  box-shadow: 0 0 0 3px rgba(240, 198, 108, 0.28);
}

body.invoice-page .invoice-items-head button {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-color: rgba(255, 232, 168, 0.72);
  color: #111315;
}

body.invoice-page .invoice-items-head button:hover,
body.invoice-page .invoice-items-head button:focus-visible {
  background: linear-gradient(135deg, #ffdc8f, #d99a2f);
  color: #090909;
}

body.invoice-page .invoice-builder-head .auth-brand {
  background: linear-gradient(135deg, #ffe39b, #c88722);
  border: 1px solid rgba(255, 241, 188, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(216, 162, 71, 0.18);
  color: #12120f;
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  width: fit-content;
}

body.invoice-page .invoice-builder-head .auth-brand b {
  color: #8c1117;
}

body.invoice-page .invoice-unpaid-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(216, 162, 71, 0.06)),
    #141514;
  border-color: rgba(240, 198, 108, 0.38);
}

body.invoice-page .invoice-unpaid-panel header button,
body.invoice-page .invoice-update-actions button,
body.invoice-page .invoice-unpaid-item button[data-unpaid-followup] {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-color: rgba(255, 232, 168, 0.72);
  color: #111315;
}

body.invoice-page #saveInvoiceOnly {
  background: #171b19;
  border-color: rgba(240, 198, 108, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

body.invoice-page #saveInvoiceOnly:hover,
body.invoice-page #saveInvoiceOnly:focus-visible {
  background: #24251f;
  border-color: #f4d17c;
  color: #fffaf0;
}

body.invoice-page .invoice-unpaid-panel header button:hover,
body.invoice-page .invoice-unpaid-panel header button:focus-visible,
body.invoice-page .invoice-update-actions button:hover,
body.invoice-page .invoice-update-actions button:focus-visible,
body.invoice-page .invoice-unpaid-item button[data-unpaid-followup]:hover,
body.invoice-page .invoice-unpaid-item button[data-unpaid-followup]:focus-visible {
  background: linear-gradient(135deg, #ffdc8f, #d99a2f);
}

body.invoice-page .invoice-unpaid-item {
  background: rgba(255, 250, 242, 0.95);
  border-color: rgba(240, 198, 108, 0.5);
  color: #111315;
}

body.invoice-page .invoice-unpaid-item strong {
  color: #111315;
}

body.invoice-page .invoice-unpaid-item small {
  color: #675d4f;
}

body.invoice-page .invoice-item-row button,
body.invoice-page .invoice-deposit-row button {
  color: #ffbf47;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

body.invoice-page .invoice-item-row button:hover,
body.invoice-page .invoice-deposit-row button:hover,
body.invoice-page .invoice-item-row button:focus-visible,
body.invoice-page .invoice-deposit-row button:focus-visible {
  color: #fff0c7;
}

body.invoice-page .home-bottom-nav {
  background: rgba(12, 13, 13, 0.97);
  border-top-color: rgba(240, 198, 108, 0.38);
}

body.invoice-page .home-bottom-nav a,
body.invoice-page .home-bottom-nav button {
  color: rgba(255, 250, 240, 0.82);
}

body.invoice-page .home-bottom-nav a.active,
body.invoice-page .home-bottom-nav button.active,
body.invoice-page .home-bottom-nav a:hover,
body.invoice-page .home-bottom-nav button:hover {
  color: #f4d17c;
}

body.invoice-page .bottom-notification-button small,
body.invoice-page .home-bottom-nav small {
  color: currentColor;
}

/* Control Room contrast pass: keep the black-gold theme, but make light panels readable. */
.settings-head h1,
.settings-card h2,
.settings-card label,
.settings-card > p:not(.settings-eyebrow),
.settings-card .settings-form-grid > label,
.settings-card .settings-form-grid > div > strong,
.settings-card .settings-form-grid > div > label {
  color: #fffaf0;
}

.settings-head > p:last-child,
.settings-card > p:not(.settings-eyebrow),
.settings-card small {
  color: #dccbb0;
}

.settings-menu a {
  background: #fffaf2;
  border-color: rgba(216, 162, 71, 0.32);
  color: #1d1710;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.settings-menu a span {
  color: #1d1710;
}

.settings-menu svg {
  color: #b98226;
  stroke: currentColor;
}

.settings-menu a:hover,
.settings-menu a:focus-visible {
  background: #fff3d9;
  border-color: #d8a247;
  color: #111315;
  transform: translateY(-1px);
}

.system-health-report,
.system-monitor-tile,
.system-monitor-audit,
.visitor-analytics,
.shipping-service-row,
.shipping-service-add-row,
.attendance-setting-panel,
.attendance-grade-list,
.notification-rule,
.webhook-help,
.packing-edit-form,
.employee-empty {
  background: #fffaf5;
  border-color: rgba(216, 162, 71, 0.34);
  color: #201912;
}

.shipping-service-add-row {
  background: rgba(255, 250, 245, 0.04);
  border-color: rgba(216, 162, 71, 0.42);
}

.system-health-report small,
.system-monitor-tile small,
.system-monitor-audit small,
.visitor-analytics small,
.visitor-analytics-grid span,
.visitor-live-grid small,
.shipping-service-row small,
.attendance-setting-panel small,
.attendance-grade-list span,
.notification-rule p,
.webhook-help small,
.employee-empty {
  color: #75695b;
}

.system-health-report strong,
.system-monitor-tile strong,
.system-monitor-audit b,
.visitor-analytics-grid b,
.visitor-live-grid b,
.shipping-service-row label,
.shipping-service-row strong,
.attendance-setting-panel strong,
.notification-rule h3,
.webhook-help strong,
.employee-empty strong {
  color: #1d1710;
}

.system-health-report span,
.system-health-report b,
.system-monitor-tile span,
.system-monitor-audit > strong,
.visitor-analytics-head strong,
.visitor-live-grid strong,
.shipping-service-row .phone-field > label,
.attendance-grade-list b,
.notification-rule > strong {
  color: #a66b14;
}

.system-health-healthy {
  background: #eefbf3;
  border-color: #9ed8b2;
}

.system-health-healthy strong,
.system-health-healthy span,
.system-health-healthy b {
  color: #087238;
}

.system-health-warning {
  background: #fff8df;
  border-color: #e6bd54;
}

.system-health-warning strong,
.system-health-warning span,
.system-health-warning b {
  color: #865000;
}

.system-health-danger {
  background: #fff0f0;
  border-color: #e9a3a3;
}

.system-health-danger strong,
.system-health-danger span,
.system-health-danger b {
  color: #9f1d1d;
}

.notification-role-dropdown summary,
.settings-card input,
.settings-card select,
.settings-card textarea,
.settings-card .country-trigger,
.shipping-service-row input,
.shipping-service-row textarea,
.shipping-service-row select,
.webhook-help code {
  background: #fff;
  border-color: #e2c897;
  color: #17120d;
}

.settings-card input::placeholder,
.settings-card textarea::placeholder {
  color: #8a8175;
}

.notification-role-dropdown > div,
.notification-role-dropdown label,
.country-menu,
.settings-card .country-menu {
  background: #fffaf5;
  color: #1d1710;
}

.notification-role-dropdown span,
.notification-role-dropdown label span,
.settings-card .country-option,
.settings-card .country-option span {
  color: #1d1710;
}

.notification-role-dropdown label:hover,
.notification-role-dropdown label:focus-within,
.settings-card .country-option:hover,
.settings-card .country-option:focus-visible,
.settings-card .country-option[aria-selected="true"] {
  background: #fff0cf;
  color: #111315;
}

.settings-card button,
.shipping-service-row [data-remove-shipping-service] {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-color: rgba(216, 162, 71, 0.46);
  color: #111315;
}

.shipping-service-row [data-remove-shipping-service] {
  font-weight: 900;
}

.settings-card button:hover,
.settings-card button:focus-visible,
.shipping-service-row [data-remove-shipping-service]:hover,
.shipping-service-row [data-remove-shipping-service]:focus-visible {
  background: linear-gradient(135deg, #ffd986, #c9902f);
  color: #111315;
}

.sound-setting-preview {
  display: grid;
  gap: 10px;
}

.sound-setting-preview audio {
  width: 100%;
  min-height: 42px;
}

.sound-setting-preview small {
  color: #705b35;
  overflow-wrap: anywhere;
}

.packing-tabs a:hover,
.packing-tabs a.active,
.packing-guide-tab:hover,
.packing-guide-tab:focus-visible,
.label-tool-button:hover,
.icon-button:hover {
  background: rgba(216, 162, 71, 0.12);
  border-color: rgba(216, 162, 71, 0.36);
  color: #f0c66c;
}

.invoice-paper {
  background: #fff;
  color: #171515;
}

.invoice-paper * {
  color: inherit;
}

.message-bubble.inbound,
.chat-message.inbound,
.conversation-row,
.wa-inbox-list a {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(216, 162, 71, 0.22);
  color: var(--ink);
}

.message-bubble.outbound,
.chat-message.outbound {
  background: rgba(216, 162, 71, 0.18);
  color: var(--ink);
}

.notification-toast {
  background: linear-gradient(145deg, rgba(24, 22, 18, 0.98), rgba(56, 42, 20, 0.96));
  border-color: rgba(216, 162, 71, 0.36);
  color: var(--ink);
}

body.inbox-page .wa-inbox {
  background: #151412;
  border-color: rgba(216, 162, 71, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: #f7efe2;
}

body.inbox-page .wa-inbox-head h1,
body.inbox-page .reply-performance summary span {
  color: #fff8ea;
}

body.inbox-page .wa-inbox-head p,
body.inbox-page .wa-inbox-head span {
  color: #d6c4a1;
}

body.inbox-page .icon-button {
  background: #f8f5ed;
  border-color: rgba(216, 162, 71, 0.42);
  color: #2d2414;
}

body.inbox-page .icon-button svg {
  stroke: currentColor;
}

body.inbox-page .icon-button:hover,
body.inbox-page .icon-button:focus-visible {
  background: #fff7e8;
  border-color: #d8a247;
  color: #8a5a09;
}

body.inbox-page .icon-button.primary {
  background: linear-gradient(135deg, #f4d17c, #c58b2a);
  border-color: rgba(216, 162, 71, 0.7);
  color: #111315;
}

body.inbox-page .icon-button.is-active {
  background: #fff4d8;
  border-color: #e4ba62;
  color: #7a4b00;
}

body.inbox-page .chat-filters a {
  background: #f4f0e6;
  color: #6f5a35;
}

body.inbox-page .chat-filters a.active {
  background: #e9fbef;
  color: #0b6a45;
}

body.inbox-page .chat-filters span,
body.inbox-page .unread-total-badge {
  background: linear-gradient(135deg, #f4d17c, #c58b2a);
  color: #111315;
}

body.inbox-page .reply-performance {
  border-color: rgba(216, 162, 71, 0.34);
}

body.inbox-page .reply-performance summary small,
body.inbox-page .reply-performance li small {
  color: #735f33;
}

body.inbox-page .wa-chat-list {
  background: #fffdf8;
}

body.inbox-page .wa-chat-row {
  color: #211b12;
}

body.inbox-page .wa-chat-row:hover,
body.inbox-page .wa-chat-row:focus-visible {
  background: #fff7ea;
}

body.inbox-page .wa-chat-row.unanswered {
  background: #fff8f2;
}

body.inbox-page .wa-chat-row.has-followup {
  background: #fff3d6;
}

body.inbox-page .wa-chat-row + .wa-chat-row .wa-chat-main {
  border-color: #eadbbd;
}

body.inbox-page .wa-chat-top strong {
  color: #2b2112;
}

body.inbox-page .wa-chat-top time {
  color: #a36b0b;
}

body.inbox-page .wa-chat-row.unanswered .wa-chat-top strong,
body.inbox-page .wa-chat-row.unanswered .wa-chat-top time {
  color: #bd1116;
}

body.inbox-page .wa-chat-bottom p {
  color: #7a6b57;
}

body.inbox-page .hidden-mark {
  color: #776646;
}

body.inbox-page .pending-mark {
  color: #b9161b;
}

body.inbox-page .followup-mark {
  background: #ffe9ae;
  border-color: rgba(216, 162, 71, 0.55);
  color: #6f4608;
}

body.inbox-page .wa-avatar {
  background: linear-gradient(135deg, #f4d17c, #c58b2a);
  color: #111315;
}

body.inbox-page .home-bottom-nav {
  background: rgba(14, 15, 15, 0.96);
}

/* Chat detail contrast pass for the black-gold theme. */
body.chat-page .chat-layout {
  background: #151412;
  border-color: rgba(216, 162, 71, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: #fff8ea;
}

body.chat-page .chat-head {
  background: #151412;
  border-bottom-color: rgba(216, 162, 71, 0.34);
  color: #fff8ea;
}

body.chat-page .chat-head h1,
body.chat-page .contact-title {
  color: #fff8ea;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

body.chat-page .chat-head p,
body.chat-page .contact-subtitle,
body.chat-page .chat-action-menu span {
  color: #d6c4a1;
}

body.chat-page .back-link {
  color: #f0c66c;
}

body.chat-page .back-link:hover,
body.chat-page .back-link:focus-visible {
  color: #fff1c5;
}

body.chat-page .avatar {
  background: linear-gradient(135deg, #f4d17c, #c58b2a);
  color: #111315;
}

body.chat-page .chat-search-trigger,
body.chat-page .chat-search-nav,
body.chat-page .chat-search-close,
body.chat-page .chat-action-menu-trigger,
body.chat-page .chat-action-menu summary {
  background: #f8f5ed;
  border-color: rgba(216, 162, 71, 0.42);
  color: #2d2414;
}

body.chat-page .chat-search-trigger svg,
body.chat-page .chat-search-nav svg,
body.chat-page .chat-search-close svg,
body.chat-page .chat-action-menu-trigger svg,
body.chat-page .chat-action-menu summary svg {
  stroke: currentColor;
}

body.chat-page .chat-search-trigger:hover,
body.chat-page .chat-search-trigger:focus-visible,
body.chat-page .chat-search-nav:hover,
body.chat-page .chat-search-nav:focus-visible,
body.chat-page .chat-search-close:hover,
body.chat-page .chat-search-close:focus-visible,
body.chat-page .chat-action-menu-trigger:hover,
body.chat-page .chat-action-menu-trigger:focus-visible,
body.chat-page .chat-action-menu summary:hover,
body.chat-page .chat-action-menu summary:focus-visible {
  background: #fff7e8;
  border-color: #d8a247;
  color: #8a5a09;
}

body.chat-page .chat-analysis-trigger {
  background: #10100f;
  border-color: rgba(216, 162, 71, 0.72);
  color: #f4d17c;
}

body.chat-page .chat-analysis-trigger:hover,
body.chat-page .chat-analysis-trigger:focus-visible {
  background: #201811;
  color: #ffe5a3;
}

body.chat-page .chat-action-menu-panel {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.48);
  box-shadow: none;
  color: #2d2414;
}

body.chat-page .chat-action-menu-close:hover,
body.chat-page .chat-action-menu-close:focus-visible {
  background: #f4d17c;
  border-color: #d8a247;
  color: #111315;
}

body.chat-page .chat-menu-section {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.3);
  color: #2d2414;
}

body.chat-page .chat-menu-section > span,
body.chat-page .label-tool-button span,
body.chat-page .label-multi-dropdown summary span,
body.chat-page .label-check span,
body.chat-page .label-empty-card span,
body.chat-page .label-empty-state {
  color: #6f4608;
}

body.chat-page .chat-followup-form label span {
  color: #7c5b25;
}

body.chat-page .chat-followup-team-picker legend {
  color: #7c5b25;
}

body.chat-page .chat-followup-team-picker label {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.36);
  color: #2d2414;
}

body.chat-page .chat-followup-team-picker label:has(input:checked) {
  background: #fff0d1;
  border-color: #d8a247;
  box-shadow: inset 4px 0 0 #8a5a09;
}

body.chat-page .chat-followup-form select,
body.chat-page .chat-followup-form textarea {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.36);
  color: #2d2414;
}

body.chat-page .chat-followup-pin {
  background: #2a2011;
  border-color: rgba(216, 162, 71, 0.42);
  color: #fff8ea;
}

body.chat-page .chat-followup-pin span {
  color: #f4d17c;
}

body.chat-page .chat-followup-pin small {
  color: #d6c4a1;
}

body.chat-page .chat-followup-pin button {
  background: #151412;
  border-color: rgba(216, 162, 71, 0.48);
  color: #f4d17c;
}

body.chat-page .label-tool-button,
body.chat-page .label-multi-dropdown summary,
body.chat-page .label-tool-panel,
body.chat-page .label-multi-panel,
body.chat-page .label-inline-search,
body.chat-page .label-check,
body.chat-page .label-option-row,
body.chat-page .label-empty-card,
body.chat-page .label-create-form input,
body.chat-page .label-manage-row input {
  background: #fff7e8 !important;
  border-color: rgba(216, 162, 71, 0.4);
  color: #2d2414;
}

body.chat-page .label-option-row {
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

body.chat-page .label-option-row:has(.label-check input:checked) {
  background: #fff0d1 !important;
  border-color: #d8a247;
  box-shadow: inset 4px 0 0 #8a5a09, 0 8px 22px rgba(138, 90, 9, 0.12);
}

body.chat-page .label-option-row .label-check {
  background: #fff9ee !important;
  color: #2d2414;
  justify-content: center;
  min-width: 0;
}

body.chat-page .label-check:has(input:checked),
body.chat-page .label-option-row .label-check:has(input:checked) {
  background: #f4d17c !important;
  border-color: #c58b2a;
  box-shadow: none;
}

body.chat-page .label-tool-list .label-check input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

body.chat-page .label-option-row .label-check span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

body.chat-page .label-check:has(input:checked) span,
body.chat-page .label-option-row .label-check:has(input:checked) span {
  color: #111315;
}

body.chat-page .label-tool-button em,
body.chat-page .label-multi-dropdown summary em {
  background: #d8a247;
  color: #111315;
}

body.chat-page .label-inline-search svg,
body.chat-page .label-icon-action svg,
body.chat-page .label-save-button svg,
body.chat-page .label-add-trigger svg {
  stroke: currentColor;
}

body.chat-page .chat-action-menu-panel button,
body.chat-page .label-manage-row button,
body.chat-page .label-add-trigger,
body.chat-page .label-save-button,
body.chat-page .label-icon-action {
  background: #fff7e8;
  border-color: rgba(216, 162, 71, 0.42);
  color: #7a4b00;
  font-weight: 900;
}

body.chat-page .chat-action-menu-panel button:hover,
body.chat-page .chat-action-menu-panel button:focus-visible,
body.chat-page .label-manage-row button:hover,
body.chat-page .label-manage-row button:focus-visible,
body.chat-page .label-add-trigger:hover,
body.chat-page .label-add-trigger:focus-visible,
body.chat-page .label-save-button:hover,
body.chat-page .label-save-button:focus-visible,
body.chat-page .label-icon-action:hover,
body.chat-page .label-icon-action:focus-visible {
  background: #f4d17c;
  border-color: #d8a247;
  color: #111315;
}

body.chat-page .chat-action-menu-panel button.danger,
body.chat-page .label-manage-row button.danger,
body.chat-page .label-icon-action.danger {
  color: #b9161b;
}

body.chat-page .chat-action-menu-panel button.danger:hover,
body.chat-page .chat-action-menu-panel button.danger:focus-visible,
body.chat-page .label-manage-row button.danger:hover,
body.chat-page .label-manage-row button.danger:focus-visible,
body.chat-page .label-icon-action.danger:hover,
body.chat-page .label-icon-action.danger:focus-visible {
  background: #ffe7e8;
  border-color: #f0b7bb;
  color: #8f090e;
}

body.chat-page .chat-search-panel {
  background: #171614;
  border-bottom-color: rgba(216, 162, 71, 0.34);
}

body.chat-page .chat-search-field {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.34);
  color: #211b12;
}

body.chat-page .chat-search-field input {
  color: #211b12;
}

body.chat-page .thread {
  border-top: 1px solid rgba(216, 162, 71, 0.2);
}

body.chat-page .bubble.inbound {
  background: #1f1d1a;
  border: 1px solid rgba(216, 162, 71, 0.18);
  color: #fff8ea;
}

body.chat-page .bubble.outbound {
  background: #3a2a12;
  border: 1px solid rgba(216, 162, 71, 0.22);
  color: #fff8ea;
}

body.chat-page .bubble p {
  color: inherit;
}

body.chat-page .bubble small,
body.chat-page .bubble-time,
body.chat-page .message-meta {
  color: #d6c4a1;
}

body.chat-page .bubble p a {
  color: #7db3ff;
}

body.chat-page .bubble.outbound p a {
  color: #9cc5ff;
}

body.chat-page .quoted-message {
  background: rgba(232, 244, 239, 0.08);
  border-left-color: #d8a247;
}

body.chat-page .quoted-message span {
  color: #f0c66c;
}

body.chat-page .quoted-message p {
  color: #d6c4a1;
}

body.chat-page .reply {
  background: #fffdf8;
  border-top-color: rgba(216, 162, 71, 0.34);
}

body.chat-page .reply textarea {
  background: #f4f0e6;
  border: 1px solid rgba(216, 162, 71, 0.28);
  color: #211b12;
}

body.chat-page .reply textarea::placeholder {
  color: #7a6b57;
}

body.chat-page .ai-icon-button,
body.chat-page .reply-foot button {
  background: linear-gradient(135deg, #f4d17c, #c58b2a);
  color: #111315;
}

body.chat-page .ai-icon-button svg,
body.chat-page .reply-foot button svg {
  stroke: currentColor;
}

body.chat-page .attach-button {
  background: #f4f0e6;
  border: 1px solid rgba(216, 162, 71, 0.28);
  color: #2d2414;
}

body.chat-page .attach-button:hover,
body.chat-page .attach-button:focus-visible,
body.chat-page .sticker-mode-button:hover,
body.chat-page .sticker-mode-button:focus-visible,
body.chat-page .ai-icon-button:hover,
body.chat-page .ai-icon-button:focus-visible,
body.chat-page .reply-foot button:hover,
body.chat-page .reply-foot button:focus-visible {
  background: #fff4d8;
  color: #111315;
}

body.chat-page .scroll-bottom-button {
  background: #fff7e8;
  border-color: rgba(216, 162, 71, 0.42);
  color: #8a5a09;
}

body.chat-page .home-bottom-nav {
  background: rgba(14, 15, 15, 0.96);
}

/* GTA VI customer chat skin, aligned with the Database Mitra screen language. */
body.inbox-page,
body.chat-page {
  background: #050506 url("/static/brand/ksrf-chat-gta-bg.png") center / cover fixed no-repeat;
  min-height: 100dvh;
  position: relative;
}

body.inbox-page::before,
body.chat-page::before {
  animation: chatGtaBackgroundReveal 0.75s ease 1s forwards;
  background: url("/static/brand/ksrf-chat-gta-bg.png") center / cover fixed no-repeat;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body.inbox-page .shell,
body.chat-page .shell {
  position: relative;
  z-index: 1;
}

body.inbox-page .home-bottom-nav,
body.chat-page .home-bottom-nav {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 90;
}

body.inbox-page .shell,
body.chat-page .shell {
  max-width: none;
  padding: clamp(16px, 2.5vw, 34px) clamp(14px, 3vw, 42px) 96px;
}

body.inbox-page .wa-inbox {
  animation: chatGtaCardFadeIn 0.72s ease 1s forwards;
  backdrop-filter: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.5), rgba(7, 7, 10, 0.34)),
    linear-gradient(135deg, rgba(255, 88, 168, 0.16), rgba(100, 255, 244, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  max-width: min(1420px, 100%);
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
}

body.inbox-page .wa-inbox-head {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.5), rgba(74, 22, 55, 0.32), rgba(18, 71, 77, 0.14)),
    rgba(7, 7, 10, 0.18);
  border-bottom: 1px solid rgba(255, 224, 113, 0.2);
  gap: 10px;
  padding: 18px clamp(22px, 4vw, 42px);
}

body.inbox-page .wa-inbox-head h1 {
  color: #fff7ed;
  display: grid;
  font-size: clamp(2.3rem, 5vw, 5rem);
  letter-spacing: 0.11em;
  line-height: 0.93;
  margin: 0;
  position: relative;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 62, 162, 0.46);
  text-transform: uppercase;
}

body.inbox-page .wa-inbox-head h1::before {
  background: linear-gradient(180deg, #ff4aa2, #ffe071);
  content: "";
  height: calc(100% - 10px);
  left: -18px;
  position: absolute;
  top: 7px;
  width: 5px;
}

body.inbox-page .wa-inbox-head h1 span {
  color: #fff7ed;
  display: block;
  margin: 0;
}

body.inbox-page .wa-inbox-head h1 span:last-child {
  background: linear-gradient(90deg, #ff4aa2, #ff9d68 56%, #ffe071);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.inbox-page .inbox-toolbar {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 48px);
  justify-content: end;
  padding-top: 2px;
}

body.inbox-page .icon-button,
body.chat-page .chat-search-trigger,
body.chat-page .chat-search-nav,
body.chat-page .chat-search-close,
body.chat-page .chat-action-menu-trigger,
body.chat-page .chat-action-menu summary {
  background: rgba(255, 246, 230, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  color: #111014;
}

body.inbox-page .icon-button:hover,
body.inbox-page .icon-button:focus-visible,
body.chat-page .chat-search-trigger:hover,
body.chat-page .chat-search-trigger:focus-visible,
body.chat-page .chat-search-nav:hover,
body.chat-page .chat-search-nav:focus-visible,
body.chat-page .chat-search-close:hover,
body.chat-page .chat-search-close:focus-visible,
body.chat-page .chat-action-menu-trigger:hover,
body.chat-page .chat-action-menu-trigger:focus-visible,
body.chat-page .chat-action-menu summary:hover,
body.chat-page .chat-action-menu summary:focus-visible {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  border-color: rgba(255, 255, 255, 0.48);
  color: #08080b;
  transform: translateY(-1px);
}

body.inbox-page .icon-button.primary,
body.inbox-page .icon-button.is-active {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  border-color: rgba(255, 255, 255, 0.5);
  color: #08080b;
}

body.inbox-page .inbox-tool-panel,
body.inbox-page .label-dropdown-panel {
  backdrop-filter: none;
  background: rgba(7, 7, 10, 0.32);
  border-top: 1px solid rgba(255, 224, 113, 0.18);
  color: #fff4df;
  padding-left: clamp(22px, 4vw, 42px);
  padding-right: clamp(22px, 4vw, 42px);
}

body.inbox-page .inbox-tool-panel > span {
  color: #ffe071;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.inbox-page .inbox-tool-panel > a,
body.inbox-page .label-dropdown-list a {
  background: rgba(255, 246, 230, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #111014;
}

body.inbox-page .inbox-tool-panel > a.selected,
body.inbox-page .label-dropdown-list a.active {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  color: #08080b;
}

body.inbox-page .inbox-search-form input,
body.inbox-page .label-search-field {
  background: rgba(255, 249, 238, 0.94);
  border-color: rgba(255, 224, 113, 0.44);
  color: #15110d;
}

body.inbox-page .chat-filters {
  background: rgba(7, 7, 10, 0.28);
  border-bottom: 1px solid rgba(255, 224, 113, 0.18);
  padding: 16px clamp(22px, 4vw, 42px) 18px;
}

body.inbox-page .chat-filters a {
  background: rgba(255, 246, 230, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  color: #15110d;
  font-size: 0.86rem;
  font-weight: 950;
  min-height: 44px;
  padding: 0 24px 0 16px;
}

body.inbox-page .chat-filters a.active,
body.inbox-page .chat-filters a:hover,
body.inbox-page .chat-filters a:focus-visible {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  color: #08080b;
}

body.inbox-page .chat-filters span,
body.inbox-page .unread-total-badge {
  background: #111014;
  color: #ffe071;
}

body.inbox-page .reply-performance {
  background: rgba(7, 7, 10, 0.34);
  border-top: 1px solid rgba(255, 224, 113, 0.2);
  padding: 0 clamp(22px, 4vw, 42px);
}

body.inbox-page .reply-performance summary strong,
body.inbox-page .reply-performance li strong {
  color: #fff7ed;
}

body.inbox-page .reply-performance summary span,
body.inbox-page .reply-performance li span {
  color: #ffe071;
}

body.inbox-page .reply-performance ol {
  border-top-color: rgba(255, 224, 113, 0.2);
}

body.inbox-page .wa-chat-list {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.5), rgba(255, 246, 236, 0.34)),
    rgba(255, 250, 242, 0.22);
  backdrop-filter: none;
  max-height: calc(100vh - 326px);
  overflow: auto;
}

body.inbox-page .wa-chat-row {
  background: rgba(255, 248, 238, 0.34);
  border-left: 0 solid transparent;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 92px;
  gap: 18px;
  grid-template-columns: 60px minmax(0, 1fr);
  min-height: 92px;
  padding: 16px clamp(18px, 3vw, 34px);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.inbox-page .wa-chat-row:hover,
body.inbox-page .wa-chat-row:focus-visible {
  background: rgba(255, 233, 174, 0.46);
  box-shadow: inset 5px 0 0 #ff58a8;
  outline: 0;
  transform: translateX(3px);
}

body.inbox-page .wa-chat-row.unanswered {
  background: linear-gradient(90deg, rgba(255, 88, 168, 0.2), rgba(255, 248, 242, 0.4));
}

body.inbox-page .wa-chat-row.has-followup {
  background: linear-gradient(90deg, rgba(255, 224, 113, 0.26), rgba(255, 248, 242, 0.38));
  box-shadow: inset 5px 0 0 #ffe071;
}

body.inbox-page .wa-chat-row + .wa-chat-row .wa-chat-main {
  border-color: rgba(186, 128, 40, 0.28);
}

body.inbox-page .wa-avatar {
  background: linear-gradient(135deg, #ff58a8, #ffe071);
  border: 3px solid rgba(255, 187, 203, 0.76);
  box-shadow: 0 12px 30px rgba(255, 88, 168, 0.18);
  color: #08080b;
  font-weight: 950;
  height: 58px;
  width: 58px;
}

body.inbox-page .wa-chat-top strong {
  color: #20140f;
  font-size: clamp(1.02rem, 1.55vw, 1.4rem);
}

body.inbox-page .wa-chat-top time {
  color: #b90f2e;
  font-weight: 950;
}

body.inbox-page .wa-chat-bottom p {
  color: #6f5f4d;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
}

body.inbox-page .contact-label-badge,
body.chat-page .contact-label-badge {
  background: rgba(255, 246, 230, 0.92);
  border-color: rgba(255, 88, 168, 0.26);
  color: #a25b08;
}

body.inbox-page .followup-mark {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  border: 0;
  color: #08080b;
}

body.chat-page .chat-side-list {
  display: none;
}

body.inbox-page .inbox-detail-panel {
  display: none;
}

body.chat-page .chat-layout {
  animation: chatGtaCardFadeIn 0.34s ease forwards;
  backdrop-filter: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.5), rgba(7, 7, 10, 0.34)),
    linear-gradient(135deg, rgba(255, 88, 168, 0.14), rgba(100, 255, 244, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  height: calc(100vh - 174px);
  max-width: min(1120px, 100%);
  opacity: 0;
  transform: translateY(16px);
}

body.chat-page .chat-head {
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.5), rgba(74, 22, 55, 0.32), rgba(18, 71, 77, 0.14)),
    rgba(7, 7, 10, 0.18);
  border-bottom: 1px solid rgba(255, 224, 113, 0.22);
  padding: 16px clamp(16px, 2.8vw, 30px);
}

body.chat-page .chat-head h1,
body.chat-page .contact-title {
  color: #fff7ed;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.34), 0 0 26px rgba(255, 62, 162, 0.38);
  text-transform: uppercase;
}

body.chat-page .back-link {
  background: rgba(255, 246, 230, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffe071;
  display: grid;
  height: 42px;
  place-items: center;
  text-decoration: none;
  width: 42px;
}

body.chat-page .avatar {
  background: linear-gradient(135deg, #ff58a8, #ffe071);
  border: 3px solid rgba(255, 187, 203, 0.76);
  box-shadow: 0 12px 30px rgba(255, 88, 168, 0.18);
  color: #08080b;
  font-weight: 950;
}

body.chat-page .chat-analysis-trigger,
body.chat-page .ai-icon-button,
body.chat-page .reply-foot button {
  background: linear-gradient(90deg, #ff58a8, #ffe071);
  border-color: rgba(255, 255, 255, 0.44);
  color: #08080b;
}

body.chat-page .thread {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.5), rgba(255, 239, 232, 0.3)),
    repeating-linear-gradient(0deg, rgba(255, 88, 168, 0.035) 0 1px, transparent 1px 8px);
  backdrop-filter: none;
  border-top: 0;
  padding: clamp(16px, 2.5vw, 28px) clamp(24px, 3vw, 38px) clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px);
  scrollbar-gutter: stable;
}

body.chat-page .message-row {
  max-width: 100%;
  min-width: 0;
}

body.chat-page .message-row .bubble {
  max-width: min(100%, 860px);
}

body.chat-page .bubble.inbound {
  background: rgba(24, 19, 18, 0.94);
  border-color: rgba(255, 224, 113, 0.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

body.chat-page .bubble.outbound {
  background: linear-gradient(135deg, rgba(255, 88, 168, 0.95), rgba(255, 157, 104, 0.95));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 32px rgba(255, 88, 168, 0.18);
  color: #170d10;
}

body.chat-page .bubble.outbound small,
body.chat-page .bubble.outbound .bubble-time,
body.chat-page .bubble.outbound .message-meta {
  color: rgba(23, 13, 16, 0.72);
}

body.chat-page .reply {
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.5), rgba(74, 22, 55, 0.38), rgba(18, 71, 77, 0.28)),
    rgba(7, 7, 10, 0.34);
  border-top-color: rgba(255, 224, 113, 0.24);
  gap: 10px;
}

body.chat-page .reply textarea {
  background: rgba(255, 249, 238, 0.94);
  border-color: rgba(255, 224, 113, 0.44);
}

body.chat-page .attach-button,
body.chat-page .sticker-mode-button {
  background: rgba(255, 246, 230, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
  color: #111014;
}

@keyframes chatGtaBackgroundReveal {
  to {
    opacity: 1;
  }
}

@keyframes chatGtaCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 981px) {
  body.inbox-page,
  body.chat-page {
    height: 100dvh;
    overflow: hidden;
  }

  body.inbox-page .shell {
    align-items: stretch;
    box-sizing: border-box;
    display: block;
    height: calc(100dvh - 92px);
    overflow: hidden;
    padding: clamp(16px, 2.5vw, 34px) clamp(18px, 3vw, 42px) 18px;
  }

  body.inbox-page .inbox-desktop-split {
    display: block;
    height: 100%;
    margin: 0 auto;
    max-width: 980px;
    min-height: 0;
    overflow: hidden;
    width: 100%;
  }

  body.inbox-page .wa-inbox {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    height: 100%;
    margin: 0;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  body.inbox-page .inbox-desktop-split .wa-inbox-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-items: start;
    padding: 18px 24px 14px 32px;
  }

  body.inbox-page .inbox-desktop-split .wa-inbox-head h1 {
    font-size: clamp(2.15rem, 3.1vw, 3.25rem);
    line-height: 0.95;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
  }

  body.inbox-page .inbox-desktop-split .wa-inbox-head h1::before {
    left: -14px;
    width: 4px;
  }

  body.inbox-page .inbox-desktop-split .inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    padding-top: 0;
    width: 100%;
  }

  body.inbox-page .inbox-desktop-split .icon-button {
    flex: 0 0 44px;
    height: 44px;
    width: 44px;
  }

  body.inbox-page .inbox-desktop-split .chat-filters {
    gap: 10px;
    overflow: hidden;
    padding: 14px 24px;
  }

  body.inbox-page .inbox-desktop-split .wa-filter {
    min-width: 0;
    padding: 0 16px;
  }

  body.inbox-page .inbox-desktop-split .reply-performance summary {
    gap: 12px;
    padding: 16px 24px;
  }

  body.inbox-page .inbox-desktop-split .reply-performance summary span:last-child {
    font-size: 0.9rem;
    max-width: 42%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.inbox-page .wa-chat-list {
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.chat-page .shell {
    align-items: stretch;
    box-sizing: border-box;
    display: flex;
    height: calc(100dvh - 92px);
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(16px, 2.5vw, 34px) clamp(18px, 3vw, 42px) 18px;
  }

  body.chat-page .chat-layout {
    height: 100%;
    margin: 0;
    max-width: min(980px, 64vw);
    width: min(980px, 64vw);
  }

  body.chat-panel-embed,
  body.chat-panel-embed .shell {
    background: transparent !important;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.chat-panel-embed::before,
  body.chat-panel-embed .topbar,
  body.chat-panel-embed .home-bottom-nav {
    display: none !important;
  }

  body.chat-panel-embed .shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  body.chat-panel-embed .chat-layout {
    animation: none;
    background:
      linear-gradient(180deg, rgba(13, 9, 16, 0.96), rgba(18, 11, 16, 0.92)),
      linear-gradient(135deg, rgba(255, 88, 168, 0.18), rgba(100, 255, 244, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    height: 100dvh;
    max-width: none;
    opacity: 1;
    transform: none;
    width: 100%;
  }

  body.chat-panel-embed .thread {
    background: #efe5df;
  }

  body.chat-panel-embed .reply {
    background:
      linear-gradient(90deg, rgba(8, 8, 12, 0.58), rgba(74, 22, 55, 0.42), rgba(18, 71, 77, 0.3)),
      rgba(7, 7, 10, 0.42);
  }

  body.chat-panel-embed .chat-action-menu-backdrop {
    align-items: start;
    padding-top: 76px;
    padding-bottom: 132px;
  }

  body.chat-panel-embed .chat-action-menu-dialog {
    max-height: calc(100dvh - 208px);
  }
}

@media (max-width: 760px) {
  body.inbox-page,
  body.chat-page {
    background: #050506 url("/static/brand/ksrf-chat-gta-bg.png") 38% center / cover fixed no-repeat;
    height: 100dvh;
    overflow: hidden;
  }

  body.inbox-page::before,
  body.chat-page::before {
    background: url("/static/brand/ksrf-chat-gta-bg.png") 38% center / cover fixed no-repeat;
  }

  body.inbox-page .shell,
  body.chat-page .shell {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: calc(100dvh - 82px - env(safe-area-inset-bottom));
    justify-content: center;
    overflow: hidden;
    padding: 12px 10px;
  }

  body.inbox-page .inbox-desktop-split {
    display: block;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    width: min(100%, 560px);
  }

  body.inbox-page .inbox-detail-panel {
    display: none;
  }

  body.inbox-page .wa-inbox {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    height: min(100%, calc(100dvh - 106px - env(safe-area-inset-bottom)));
    margin: 0 auto;
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
    min-height: 0;
    width: min(100%, 560px);
  }

  body.inbox-page .wa-inbox-head {
    display: flex;
    grid-template-columns: none;
    justify-items: start;
    padding: 14px 18px 12px;
  }

  body.inbox-page .inbox-toolbar {
    grid-template-columns: repeat(4, 44px);
    justify-content: start;
    order: 1;
  }

  body.inbox-page .chat-filters {
    padding: 12px 14px;
  }

  body.inbox-page .wa-chat-list {
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.inbox-page .wa-chat-row {
    gap: 12px;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 78px;
    padding: 12px 14px;
  }

  body.inbox-page .wa-avatar {
    height: 46px;
    width: 46px;
  }

  body.inbox-page .wa-chat-top,
  body.inbox-page .wa-chat-bottom {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.inbox-page .hidden-mark,
  body.inbox-page .followup-mark {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.chat-page .chat-layout {
    border-radius: 8px;
    height: min(100%, calc(100dvh - 106px - env(safe-area-inset-bottom)));
    margin: 0 auto;
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
    min-height: 0;
    width: min(100%, 560px);
  }

  body.chat-page .thread {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.chat-page .chat-head {
    gap: 10px;
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  body.chat-page .chat-head-actions {
    grid-column: 1 / -1;
    justify-content: end;
    position: relative;
    width: 100%;
  }

  body.chat-page .chat-action-menu-backdrop {
    align-items: end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  body.chat-page .chat-action-menu-dialog {
    max-height: calc(92dvh - env(safe-area-inset-bottom));
    width: 100%;
  }
}

/* Dashboard contrast pass for the black-gold theme. */
body.dashboard-page .dashboard-head h1,
body.dashboard-page .dashboard-section-head h2,
body.dashboard-page .dashboard-activity h2 {
  color: #fff8ea;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

body.dashboard-page .dashboard-head p:last-child,
body.dashboard-page .dashboard-card p,
body.dashboard-page .dashboard-hero p:not(.dashboard-eyebrow),
body.dashboard-page .dashboard-activity p:last-child,
body.dashboard-page .dashboard-calendar-hint {
  color: #d5c7ad;
}

body.dashboard-page .dashboard-hero,
body.dashboard-page .dashboard-card,
body.dashboard-page .dashboard-activity {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(216, 162, 71, 0.055)),
    rgba(15, 16, 15, 0.92);
  border-color: rgba(216, 162, 71, 0.34);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.3);
  color: #fff8ea;
}

body.dashboard-page .dashboard-hero::before {
  background: linear-gradient(90deg, #f4d17c, #d8a247 48%, rgba(216, 162, 71, 0.16));
}

body.dashboard-page .dashboard-hero h2,
body.dashboard-page .dashboard-card h3,
body.dashboard-page .dashboard-calendar-card h2 {
  color: #fff8ea;
}

body.dashboard-page .dashboard-settings-link,
body.dashboard-page .dashboard-calendar-nav a {
  background: #fff7e8;
  border-color: rgba(216, 162, 71, 0.52);
  color: #2d2414;
}

body.dashboard-page .dashboard-settings-link:hover,
body.dashboard-page .dashboard-settings-link:focus-visible,
body.dashboard-page .dashboard-calendar-nav a:hover,
body.dashboard-page .dashboard-calendar-nav a:focus-visible {
  background: #ffe8b7;
  border-color: #d8a247;
  color: #704600;
}

body.dashboard-page .dashboard-player-row span,
body.dashboard-page .dashboard-stats span,
body.dashboard-page .dashboard-section-head > span,
body.dashboard-page .dashboard-status,
body.dashboard-page .dashboard-kicker,
body.dashboard-page .auth-brand,
body.dashboard-page .attendance-mini-rank li small {
  background: linear-gradient(135deg, #f4d17c, #bd8425);
  border-color: rgba(255, 233, 180, 0.42);
  color: #17120a;
}

body.dashboard-page .dashboard-stats b {
  color: #5f3d00;
}

body.dashboard-page .dashboard-progress {
  background: rgba(255, 248, 234, 0.18);
}

body.dashboard-page .dashboard-progress span,
body.dashboard-page .earning-meter span {
  background: linear-gradient(90deg, #f4d17c, #d8a247, #f08a72);
}

body.dashboard-page .dashboard-primary-action,
body.dashboard-page .dashboard-logout button {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border: 1px solid rgba(255, 233, 180, 0.42);
  color: #111315;
}

body.dashboard-page .dashboard-primary-action:hover,
body.dashboard-page .dashboard-primary-action:focus-visible,
body.dashboard-page .dashboard-logout button:hover,
body.dashboard-page .dashboard-logout button:focus-visible {
  background: linear-gradient(135deg, #ffe39a, #c9902f);
  color: #111315;
}

body.dashboard-page .attendance-mini-rank {
  background: #fff9ee;
  border-color: rgba(216, 162, 71, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.dashboard-page .attendance-mini-rank li span {
  color: #2b2112;
}

body.dashboard-page .attendance-mini-rank li b {
  color: #b98226;
}

body.dashboard-page .attendance-mini-rank li em {
  background: #1d1710;
  color: #fff8ea;
}

body.dashboard-page .dashboard-month-calendar .weekday {
  color: #e5d4b2;
}

body.dashboard-page .dashboard-month-calendar .day {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.34);
  color: #6c5b3f;
}

body.dashboard-page .dashboard-month-calendar .day::before {
  background: #d7cbb6;
}

body.dashboard-page .dashboard-month-calendar b {
  color: #2a2115;
}

body.dashboard-page .dashboard-month-calendar small {
  color: #6f6049;
  font-weight: 700;
}

body.dashboard-page .dashboard-month-calendar .outside {
  background: #4b4a45;
  border-color: rgba(255, 248, 234, 0.12);
  opacity: 1;
}

body.dashboard-page .dashboard-month-calendar .outside b,
body.dashboard-page .dashboard-month-calendar .outside small {
  color: #d7d1c6;
}

body.dashboard-page .dashboard-month-calendar .none {
  opacity: 1;
}

body.dashboard-page .dashboard-month-calendar .today {
  background: linear-gradient(135deg, #f6d57c, #c9902f);
  border-color: #f4d17c;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 234, 0.44), 0 0 0 2px rgba(216, 162, 71, 0.2);
  color: #111315;
}

body.dashboard-page .dashboard-month-calendar .today::before {
  background: rgba(17, 19, 21, 0.42);
}

body.dashboard-page .dashboard-month-calendar .today b,
body.dashboard-page .dashboard-month-calendar .today small {
  color: #111315;
}

body.dashboard-page .dashboard-quick-grid a {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.38);
  color: #2b2112;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

body.dashboard-page .dashboard-quick-grid a:hover,
body.dashboard-page .dashboard-quick-grid a:focus-visible {
  background: #ffeec8;
  border-color: #d8a247;
  color: #17120a;
}

/* Dashboard calendar contrast pass. */
body.dashboard-page .dashboard-calendar-card .attendance-mini-rank {
  background: #fff6e5 !important;
  border-color: rgba(244, 209, 124, 0.58) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li span {
  color: #2a1f10 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li b {
  color: #b56f00 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li em {
  background: #20170b !important;
  color: #fff7e6 !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li small {
  background: linear-gradient(135deg, #f4c760, #b98226) !important;
  border-color: rgba(112, 70, 0, 0.2) !important;
  color: #17120a !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .weekday {
  color: #e8d5af !important;
  opacity: 1 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day {
  background: #fff7e9 !important;
  border-color: rgba(244, 209, 124, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(0, 0, 0, 0.12) !important;
  color: #2b2112 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day::before {
  background: #c7b897 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day b {
  color: #271b0c !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day small {
  color: #5f4b2b !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .morning::before {
  background: #d8a247 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .afternoon::before {
  background: #7a5a1d !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .off::before {
  background: #2f9b62 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .overview::before {
  background: #d8a247 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .outside {
  background: rgba(255, 247, 233, 0.34) !important;
  border-color: rgba(244, 209, 124, 0.2) !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .outside b,
body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .outside small {
  color: rgba(255, 248, 234, 0.74) !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .today {
  background: linear-gradient(135deg, #ffe29a, #c9902f) !important;
  border-color: #ffe7a8 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 234, 0.6), 0 0 0 2px rgba(216, 162, 71, 0.3) !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .today b,
body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .today small {
  color: #17120a !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-calendar-hint {
  color: #e8d5af !important;
  font-weight: 800 !important;
}

/* Mobile reward vault polish. */
body.dashboard-page .earning-card .earning-card-head > strong {
  align-items: center !important;
  background: #fff7e9 !important;
  border: 1px solid rgba(244, 209, 124, 0.58) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
  color: #24190d !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  width: max-content !important;
}

@media (max-width: 760px) {
  body.dashboard-page .earning-card {
    gap: 16px !important;
    padding: 20px !important;
  }

  body.dashboard-page .earning-card-head {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
  }

  body.dashboard-page .earning-card-head h2 {
    font-size: 26px !important;
    line-height: 1.05 !important;
  }

  body.dashboard-page .earning-card-head p {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  body.dashboard-page .earning-filter {
    align-items: stretch !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body.dashboard-page .earning-filter label {
    color: #f1dfb9 !important;
    display: block !important;
    font-size: 11px !important;
    grid-column: 1 / -1 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
    text-align: left !important;
    width: 100% !important;
  }

  body.dashboard-page .earning-filter select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    color: #24190d !important;
    display: block !important;
    font-size: 14px !important;
    min-height: 46px !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    width: 100% !important;
  }

  body.dashboard-page .earning-filter button {
    border-radius: 999px !important;
    color: #17120a !important;
    justify-self: start !important;
    font-size: 14px !important;
    min-height: 46px !important;
    min-width: 112px !important;
    padding: 10px 16px !important;
    width: auto !important;
  }

  body.dashboard-page .earning-card .earning-card-head > strong {
    font-size: 16px !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
  }
}

@media (max-width: 430px) {
  body.dashboard-page .earning-card {
    padding: 18px 20px !important;
  }

  body.dashboard-page .earning-card-head h2 {
    font-size: 24px !important;
  }

  body.dashboard-page .earning-filter button {
    width: 100% !important;
  }
}

body.dashboard-page .dashboard-quick-grid svg {
  color: #b98226;
}

body.dashboard-page .dashboard-activity {
  background:
    linear-gradient(90deg, rgba(244, 209, 124, 0.95) 0 76px, transparent 76px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(216, 162, 71, 0.055)),
    rgba(15, 16, 15, 0.92);
}

body.dashboard-page .dashboard-icon,
body.dashboard-page .dashboard-hero-icon,
body.dashboard-page .dashboard-activity-icon {
  background: #11100f;
  border: 1px solid rgba(255, 248, 234, 0.16);
  color: #fff8ea;
}

body.dashboard-page .dashboard-icon-red {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315;
}

body.dashboard-page .dashboard-arrow {
  color: #f4d17c;
}

body.dashboard-page .home-bottom-nav {
  background: rgba(10, 11, 11, 0.97);
  border-top-color: rgba(216, 162, 71, 0.34);
}

body.dashboard-page .home-bottom-nav a,
body.dashboard-page .home-bottom-nav button {
  color: rgba(248, 245, 238, 0.78);
}

body.dashboard-page .home-bottom-nav a.active,
body.dashboard-page .home-bottom-nav button.active,
body.dashboard-page .home-bottom-nav a:hover,
body.dashboard-page .home-bottom-nav button:hover {
  color: #f4d17c;
}

/* Earning vault readability fixes. */
body.dashboard-page .earning-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(216, 162, 71, 0.075)),
    rgba(19, 18, 15, 0.96) !important;
  border-color: rgba(216, 162, 71, 0.4) !important;
  color: #fff8ea !important;
}

body.dashboard-page .earning-card-head h2 {
  color: #fff8ea !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

body.dashboard-page .earning-card-head p {
  color: #d8c9ad !important;
  opacity: 1 !important;
}

body.dashboard-page .earning-card .dashboard-kicker {
  background: linear-gradient(135deg, #f4d17c, #bd8425) !important;
  color: #17120a !important;
  opacity: 1 !important;
}

body.dashboard-page .earning-card-head > strong {
  background: #fff9ee !important;
  border: 1px solid rgba(216, 162, 71, 0.42);
  color: #24190d !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body.dashboard-page .earning-filter label {
  color: #d8c9ad !important;
}

body.dashboard-page .earning-filter select,
body.dashboard-page .earning-filter button {
  background: #fff9ee !important;
  border-color: rgba(216, 162, 71, 0.42) !important;
  color: #24190d !important;
}

body.dashboard-page .earning-filter button {
  background: linear-gradient(135deg, #f4d17c, #bd8425) !important;
}

body.dashboard-page .earning-meter {
  background: #e8dfd2 !important;
  border: 1px solid rgba(255, 248, 234, 0.16);
}

body.dashboard-page .earning-meter span {
  background: linear-gradient(90deg, #f4d17c, #d8a247, #f08a72) !important;
}

body.dashboard-page .earning-grid span,
body.dashboard-page .earning-breakdown-trigger {
  background: #fff9ee !important;
  border-color: rgba(216, 162, 71, 0.38) !important;
  color: #24190d !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  opacity: 1 !important;
}

body.dashboard-page .earning-breakdown-trigger:hover,
body.dashboard-page .earning-breakdown-trigger:focus-visible {
  border-color: #f4d17c !important;
  box-shadow: 0 16px 30px rgba(216, 162, 71, 0.28);
}

body.dashboard-page .earning-loan-trigger {
  border-color: rgba(240, 138, 114, 0.58) !important;
  box-shadow: 0 12px 24px rgba(240, 138, 114, 0.14) !important;
}

body.dashboard-page .earning-bonus-trigger {
  border-color: rgba(89, 157, 91, 0.58) !important;
  color: #2f7d47 !important;
  box-shadow: 0 12px 24px rgba(89, 157, 91, 0.14) !important;
}

body.dashboard-page .earning-bonus-trigger > :not(b):not(small) {
  color: #2f7d47 !important;
}

body.dashboard-page .earning-design-bonus-trigger {
  border-color: rgba(72, 136, 186, 0.58) !important;
  color: #2f6f9c !important;
  box-shadow: 0 12px 24px rgba(72, 136, 186, 0.14) !important;
}

body.dashboard-page .earning-design-bonus-trigger > :not(b):not(small) {
  color: #2f6f9c !important;
}

body.dashboard-page .earning-omzet-bonus-trigger {
  border-color: rgba(198, 151, 46, 0.62) !important;
  color: #8a5d08 !important;
  box-shadow: 0 12px 24px rgba(198, 151, 46, 0.16) !important;
}

body.dashboard-page .earning-omzet-bonus-trigger > :not(b):not(small) {
  color: #8a5d08 !important;
}

body.dashboard-page .earning-loan-trigger > :not(b):not(small) {
  color: #a64226 !important;
}

body.dashboard-page .earning-grid b,
body.dashboard-page .earning-breakdown-trigger b {
  color: #6b5737 !important;
  opacity: 1 !important;
}

body.dashboard-page .earning-grid span > :not(b):not(small),
body.dashboard-page .earning-breakdown-trigger > :not(b):not(small) {
  color: #9a6107 !important;
  opacity: 1 !important;
}

body.dashboard-page .earning-grid small,
body.dashboard-page .earning-breakdown-trigger small {
  color: #6f5d42 !important;
  opacity: 1 !important;
}

body.dashboard-page .partner-investment-group-card {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #01142f !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: 1fr !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body.dashboard-page .partner-investment-group-card .partner-investment-group-head {
  align-items: start !important;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin: 0 !important;
  padding: 20px !important;
}

body.dashboard-page .partner-investment-group-card .earning-card-head h2 {
  color: #01142f !important;
  text-shadow: none !important;
}

body.dashboard-page .partner-investment-group-card .earning-card-head p {
  color: #475569 !important;
}

body.dashboard-page .partner-investment-group-card .earning-card-head small {
  color: #64748b !important;
}

body.dashboard-page .partner-investment-group-card .partner-investment-filter {
  margin: 14px 20px 0 !important;
}

body.dashboard-page .partner-investment-group-card .partner-investment-group-table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.dashboard-page .partner-investment-group-card .financial-group-investor-table .financial-journal-row {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #01142f !important;
}

body.dashboard-page .partner-investment-group-card .financial-group-investor-table .financial-journal-row-head {
  background: #ffffff !important;
}

body.dashboard-page .partner-investment-group-card .financial-group-investor-table .financial-journal-row > span,
body.dashboard-page .partner-investment-group-card .financial-group-investor-table .financial-journal-row > b,
body.dashboard-page .partner-investment-group-card .financial-group-investor-table .financial-journal-row > strong {
  color: #01142f !important;
}

body.dashboard-page .partner-investment-group-card .financial-group-investor-table small {
  color: #64748b !important;
}

/* Kendala Sistem follows the global --ui-* contract in ui-theme.css. */

.cash-balance-alert-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1360;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 8, 10, 0.68);
  animation: modal-fade-in 180ms ease both;
}

.cash-balance-alert-modal-backdrop[hidden] {
  display: none;
}

.cash-balance-alert-modal {
  position: relative;
  width: min(450px, 100%);
  border: 1px solid rgba(255, 202, 86, 0.72);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(90deg, #f7c948 0 28%, #d93025 28% 52%, #f7c948 52% 100%) top left / 100% 8px no-repeat,
    linear-gradient(145deg, #111315 0%, #2a0909 100%);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.55);
  color: #fff8ea;
  animation: modal-pop-in 220ms cubic-bezier(0.2, 0.9, 0.2, 1.12) both;
}

.cash-balance-alert-modal h2 {
  margin: 6px 0 10px;
  color: #ffffff;
  font-size: clamp(25px, 4vw, 40px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.cash-balance-alert-modal p:not(.game-modal-eyebrow) {
  margin: 0;
  color: rgba(255, 248, 234, 0.86);
  line-height: 1.55;
}

.cash-balance-alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cash-balance-alert-actions a,
.cash-balance-alert-actions button {
  min-height: 42px;
  border: 1px solid rgba(247, 201, 72, 0.62);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-grid;
  place-items: center;
  background: #f7c948;
  color: #211507;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.cash-balance-alert-actions button {
  background: rgba(255, 248, 234, 0.08);
  color: #fff8ea;
}

/* Custom order button contrast fixes. */
body.invoice-page .custom-orders-page .custom-order-tabs {
  background: rgba(255, 250, 241, 0.98);
  border-color: rgba(244, 209, 124, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  background: #fffaf1;
  border-color: rgba(216, 162, 71, 0.32);
  color: #2b2112;
  font-weight: 800;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page .custom-order-tabs a.active {
  background: linear-gradient(135deg, #f4d17c, #c28a2b);
  border-color: rgba(139, 89, 12, 0.52);
  box-shadow: 0 10px 20px rgba(133, 87, 14, 0.22);
  color: #111315;
}

body.invoice-page .custom-orders-page .cashier-panel input,
body.invoice-page .custom-orders-page .cashier-panel select,
body.invoice-page .custom-orders-page .cashier-panel textarea {
  font-weight: 400;
}

body.invoice-page .custom-orders-page .cashier-panel input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel textarea::placeholder {
  font-weight: 400;
}

body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product {
  background: linear-gradient(135deg, #f8dc8a, #d59b31);
  border-color: rgba(139, 89, 12, 0.46);
  box-shadow: 0 10px 22px rgba(133, 87, 14, 0.18);
  color: #111315;
  font-weight: 900;
}

body.invoice-page .custom-orders-page .packing-secondary-action:hover,
body.invoice-page .custom-orders-page .packing-secondary-action:focus-visible,
body.invoice-page .custom-orders-page .custom-order-add-product:hover,
body.invoice-page .custom-orders-page .custom-order-add-product:focus-visible {
  background: linear-gradient(135deg, #ffe19a, #b98226);
  color: #111315;
  transform: translateY(-1px);
}

/* Custom order futuristic game-like interface. */
body.invoice-page .custom-orders-page {
  background:
    linear-gradient(135deg, rgba(244, 209, 124, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(42, 210, 205, 0.09), transparent 30%),
    #080b0f;
  border: 1px solid rgba(244, 209, 124, 0.18);
  box-shadow: inset 0 0 0 1px rgba(42, 210, 205, 0.05), 0 30px 80px rgba(0, 0, 0, 0.36);
}

body.invoice-page .custom-orders-page .invoice-builder-head {
  background: linear-gradient(135deg, rgba(8, 11, 15, 0.92), rgba(30, 26, 17, 0.88));
  border: 1px solid rgba(244, 209, 124, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 46px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  color: #ffe6a1;
  text-shadow: 0 0 18px rgba(244, 209, 124, 0.34);
}

body.invoice-page .custom-orders-page .custom-order-tabs {
  background: rgba(8, 11, 15, 0.78);
  border: 1px solid rgba(244, 209, 124, 0.26);
  box-shadow: inset 0 0 0 1px rgba(42, 210, 205, 0.08), 0 16px 42px rgba(0, 0, 0, 0.34);
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.08), rgba(42, 210, 205, 0.04));
  border-color: rgba(244, 209, 124, 0.26);
  color: #f4dca3;
  text-shadow: 0 0 14px rgba(244, 209, 124, 0.24);
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page .custom-order-tabs a.active {
  background: linear-gradient(135deg, #f6d27a, #d59b31);
  border-color: rgba(42, 210, 205, 0.42);
  box-shadow: 0 0 0 1px rgba(42, 210, 205, 0.18), 0 12px 26px rgba(216, 162, 71, 0.28);
  color: #070b10;
  text-shadow: none;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-design"].active {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 62%, #ff4a84);
  border-color: rgba(143, 247, 241, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 230, 161, 0.2), 0 0 24px rgba(42, 210, 205, 0.28), 0 12px 26px rgba(0, 0, 0, 0.18);
  color: #061016;
}

body.invoice-page .custom-orders-page .cashier-panel,
body.invoice-page .custom-orders-page .custom-order-file-panel,
body.invoice-page .custom-orders-page .custom-order-product-panel,
body.invoice-page .custom-orders-page .custom-order-product-card,
body.invoice-page .custom-orders-page .custom-order-pickup-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(42, 210, 205, 0.035)),
    #0c1117;
  border-color: rgba(244, 209, 124, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 46px rgba(0, 0, 0, 0.28);
  color: #eef4ff;
}

body.invoice-page .custom-orders-page .cashier-panel h2,
body.invoice-page .custom-orders-page .custom-order-file-panel strong,
body.invoice-page .custom-orders-page .custom-order-product-head strong,
body.invoice-page .custom-orders-page .custom-order-product-card strong,
body.invoice-page .custom-orders-page .custom-order-pickup-card strong {
  color: #f7d985;
  text-shadow: 0 0 14px rgba(244, 209, 124, 0.22);
}

body.invoice-page .custom-orders-page .cashier-panel label,
body.invoice-page .custom-orders-page .custom-order-file-panel small,
body.invoice-page .custom-orders-page .custom-order-product-head small,
body.invoice-page .custom-orders-page .custom-order-customer-picker small,
body.invoice-page .custom-orders-page .custom-order-pickup-card small,
body.invoice-page .custom-orders-page .custom-order-pickup-card p {
  color: #b8c5d9;
}

body.invoice-page .custom-orders-page .cashier-panel input,
body.invoice-page .custom-orders-page .cashier-panel select,
body.invoice-page .custom-orders-page .cashier-panel textarea {
  background: rgba(3, 8, 13, 0.72);
  border-color: rgba(139, 194, 203, 0.28);
  color: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(244, 209, 124, 0.04);
}

body.invoice-page .custom-orders-page .cashier-panel input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel textarea::placeholder {
  color: rgba(216, 226, 240, 0.64);
}

body.invoice-page .custom-orders-page .cashier-panel input:focus,
body.invoice-page .custom-orders-page .cashier-panel select:focus,
body.invoice-page .custom-orders-page .cashier-panel textarea:focus {
  border-color: rgba(244, 209, 124, 0.72);
  box-shadow: 0 0 0 3px rgba(42, 210, 205, 0.14), 0 0 28px rgba(244, 209, 124, 0.16);
}

body.invoice-page .custom-orders-page .custom-order-stock-status {
  background:
    linear-gradient(135deg, rgba(42, 210, 205, 0.09), rgba(244, 209, 124, 0.045)),
    rgba(3, 8, 13, 0.76);
  border-color: rgba(139, 194, 203, 0.3);
  box-shadow: inset 0 0 0 1px rgba(244, 209, 124, 0.04), 0 0 22px rgba(42, 210, 205, 0.08);
}

body.invoice-page .custom-orders-page #custom-order-design {
  background:
    linear-gradient(90deg, rgba(42, 210, 205, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42, 210, 205, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(42, 210, 205, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 74, 132, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(4, 10, 15, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  border-color: rgba(42, 210, 205, 0.38);
  box-shadow: inset 0 0 0 1px rgba(244, 209, 124, 0.12), 0 0 46px rgba(42, 210, 205, 0.1);
}

body.invoice-page .custom-orders-page #custom-order-design .packing-panel-head {
  background:
    linear-gradient(90deg, rgba(42, 210, 205, 0.22), rgba(244, 209, 124, 0.08) 48%, rgba(255, 74, 132, 0.12)),
    rgba(2, 8, 13, 0.78);
  border: 1px solid rgba(42, 210, 205, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(42, 210, 205, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
  margin-bottom: 16px;
  padding: 16px 18px;
  position: relative;
}

body.invoice-page .custom-orders-page #custom-order-design .packing-panel-head::after {
  background: linear-gradient(90deg, #24d6cd, #f6d27a, #ff4a84);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
}

body.invoice-page .custom-orders-page #custom-order-design .dashboard-kicker {
  background: rgba(36, 214, 205, 0.14);
  border: 1px solid rgba(42, 210, 205, 0.44);
  color: #8ff7f1;
  text-shadow: 0 0 12px rgba(42, 210, 205, 0.38);
}

body.invoice-page .custom-orders-page #custom-order-design .packing-panel-head h2 {
  color: #eaffff;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(42, 210, 205, 0.46), 0 0 28px rgba(244, 209, 124, 0.18);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link] {
  align-items: center;
  background: rgba(5, 12, 18, 0.72);
  border-color: rgba(139, 194, 203, 0.24);
  border-radius: 999px;
  color: #eaf4ff;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 0;
  justify-content: center;
  min-height: 32px;
  position: relative;
  padding: 7px 10px;
  text-align: center;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]::before {
  content: "";
  inset: 0;
  opacity: 0.62;
  position: absolute;
  transform: translateX(-72%);
  transition: transform 0.24s ease;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:hover::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:focus-visible::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button.active::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:hover::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:focus-visible::before,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link].active::before {
  transform: translateX(0);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button > *,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link] > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs span {
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs small {
  display: none;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button[data-design-filter="Masuk Antrian"]::before {
  background: linear-gradient(90deg, rgba(246, 210, 122, 0.86), rgba(246, 210, 122, 0.08));
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button[data-design-filter="Masuk Pengerjaan"]::before {
  background: linear-gradient(90deg, rgba(42, 210, 205, 0.86), rgba(42, 210, 205, 0.08));
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button[data-design-filter="Belum Fix"]::before {
  background: linear-gradient(90deg, rgba(255, 74, 132, 0.82), rgba(255, 74, 132, 0.08));
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]::before {
  background: linear-gradient(90deg, rgba(126, 241, 181, 0.86), rgba(42, 210, 205, 0.08));
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:hover,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:focus-visible,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:hover,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:focus-visible,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link].active {
  background: rgba(5, 12, 18, 0.9);
  border-color: rgba(234, 255, 255, 0.38);
  box-shadow: inset 0 0 14px rgba(234, 255, 255, 0.05), 0 0 14px rgba(42, 210, 205, 0.11);
  color: #fff;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
  gap: 14px;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card {
  background:
    linear-gradient(90deg, rgba(42, 210, 205, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border-color: rgba(42, 210, 205, 0.22);
  box-shadow: inset 3px 0 0 rgba(42, 210, 205, 0.62), 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card:hover {
  border-color: rgba(246, 210, 122, 0.42);
  box-shadow: inset 3px 0 0 rgba(246, 210, 122, 0.82), 0 0 28px rgba(42, 210, 205, 0.12), 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-summary {
  background: linear-gradient(90deg, rgba(42, 210, 205, 0.06), rgba(255, 255, 255, 0.015));
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-code {
  color: #f9df86;
  text-shadow: 0 0 13px rgba(246, 210, 122, 0.34);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-name {
  color: #f7fbff;
  text-shadow: 0 0 14px rgba(42, 210, 205, 0.2);
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-date:not(.is-deadline) {
  color: #9fd9ff;
  text-shadow: 0 0 14px rgba(94, 189, 255, 0.24);
}

body.invoice-page .custom-orders-page {
  --custom-order-accent: #24d6cd;
  --custom-order-accent-soft: rgba(36, 214, 205, 0.18);
  --custom-order-accent-faint: rgba(36, 214, 205, 0.08);
  --custom-order-alt: #f6d27a;
  --custom-order-alert: #ff4a84;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(110, 168, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(3, 15, 24, 0.98) 0%, rgba(11, 13, 20, 0.98) 48%, rgba(25, 9, 26, 0.98) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border: 1px solid rgba(36, 214, 205, 0.2);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 24px 72px rgba(0, 0, 0, 0.36);
  color: #efffff;
  overflow: hidden;
  position: relative;
}

body.invoice-page .custom-orders-page::before {
  background:
    linear-gradient(105deg, transparent 0%, rgba(36, 214, 205, 0.1) 42%, transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.54;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .custom-orders-page::after {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.9), transparent 22%) top left / 120px 120px no-repeat,
    linear-gradient(315deg, rgba(255, 74, 132, 0.78), transparent 24%) top right / 120px 120px no-repeat,
    linear-gradient(45deg, rgba(246, 210, 122, 0.78), transparent 22%) bottom left / 120px 120px no-repeat,
    linear-gradient(225deg, rgba(110, 168, 255, 0.72), transparent 24%) bottom right / 120px 120px no-repeat;
  content: "";
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .custom-orders-page > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(246, 210, 122, 0.08) 46%, rgba(255, 74, 132, 0.12)),
    linear-gradient(180deg, rgba(5, 12, 18, 0.96), rgba(8, 12, 15, 0.96));
  border-color: rgba(36, 214, 205, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.11), 0 18px 46px rgba(0, 0, 0, 0.32);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  overflow: hidden;
  position: relative;
}

body.invoice-page .custom-orders-page > .invoice-builder-head::before {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 214, 205, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .custom-orders-page > .invoice-builder-head > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  color: #efffff;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 26px rgba(246, 210, 122, 0.18);
  text-transform: uppercase;
}

body.invoice-page .custom-orders-page .custom-order-page-title::before {
  color: #24d6cd;
  content: "MISSION // ";
  letter-spacing: 0;
}

body.invoice-page .custom-orders-page .cashier-head-actions .cashier-action-button {
  background: linear-gradient(135deg, #f6d27a, #dca23a);
  border-color: rgba(143, 247, 241, 0.48);
  box-shadow: 0 0 0 1px rgba(36, 214, 205, 0.16), 0 0 24px rgba(246, 210, 122, 0.22);
}

body.invoice-page .custom-orders-page .custom-order-tabs {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.055), rgba(255, 74, 132, 0.07)),
    rgba(4, 10, 15, 0.88);
  border-color: rgba(36, 214, 205, 0.26);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.07), 0 16px 34px rgba(0, 0, 0, 0.24);
  gap: 8px;
  padding: 8px;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  border: 1px solid rgba(36, 214, 205, 0.22);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  letter-spacing: 0;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
}

body.invoice-page .custom-orders-page .custom-order-tabs a::before {
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  z-index: -1;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-input"]::before {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff);
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-prepare"]::before {
  background: linear-gradient(135deg, #f6d27a, #5aff9d);
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-design"]::before {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 56%, #ff4a84);
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-sablon"]::before {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 56%, #ff4a84);
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-pickup"]::before {
  background: linear-gradient(135deg, #a78bfa, #24d6cd);
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-history"]::before {
  background: linear-gradient(135deg, #6ea8ff, #ff4a84);
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover::before,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible::before,
body.invoice-page .custom-orders-page .custom-order-tabs a.active::before {
  opacity: 1;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  z-index: 0;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  color: #dff8ff;
}

body.invoice-page .custom-orders-page .custom-order-tabs a::after {
  background: rgba(255, 255, 255, 0.18);
  bottom: 0;
  content: "";
  height: 1px;
  left: 12%;
  opacity: 0;
  position: absolute;
  right: 12%;
  transition: opacity 0.18s ease;
  z-index: 0;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover::after,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible::after,
body.invoice-page .custom-orders-page .custom-order-tabs a.active::after {
  opacity: 1;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  isolation: isolate;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page .custom-order-tabs a.active {
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.08), 0 0 22px rgba(36, 214, 205, 0.16);
  color: #061016;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.2);
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active {
  text-shadow: none;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-design"].active {
  background: transparent;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active {
  color: #061016 !important;
  font-weight: 900;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-input"].active {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-prepare"].active {
  background: linear-gradient(135deg, #f6d27a, #5aff9d) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-design"].active {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 56%, #ff4a84) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-sablon"].active {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 56%, #ff4a84) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-pickup"].active {
  background: linear-gradient(135deg, #a78bfa, #24d6cd) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-history"].active {
  background: linear-gradient(135deg, #6ea8ff, #ff4a84) !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active::before {
  opacity: 0;
}

body.invoice-page .custom-orders-page #custom-order-input {
  --custom-order-accent: #24d6cd;
  --custom-order-accent-soft: rgba(36, 214, 205, 0.18);
  --custom-order-accent-faint: rgba(36, 214, 205, 0.08);
  --custom-order-alt: #6ea8ff;
}

body.invoice-page .custom-orders-page #custom-order-prepare {
  --custom-order-accent: #f6d27a;
  --custom-order-accent-soft: rgba(246, 210, 122, 0.2);
  --custom-order-accent-faint: rgba(246, 210, 122, 0.08);
  --custom-order-alt: #5aff9d;
}

body.invoice-page .custom-orders-page #custom-order-design {
  --custom-order-accent: #24d6cd;
  --custom-order-accent-soft: rgba(36, 214, 205, 0.18);
  --custom-order-accent-faint: rgba(36, 214, 205, 0.08);
  --custom-order-alt: #ff4a84;
}

body.invoice-page .custom-orders-page #custom-order-sablon {
  --custom-order-accent: #24d6cd;
  --custom-order-accent-soft: rgba(36, 214, 205, 0.18);
  --custom-order-accent-faint: rgba(36, 214, 205, 0.08);
  --custom-order-alt: #ff4a84;
}

body.invoice-page .custom-orders-page #custom-order-pickup {
  --custom-order-accent: #a78bfa;
  --custom-order-accent-soft: rgba(167, 139, 250, 0.2);
  --custom-order-accent-faint: rgba(167, 139, 250, 0.08);
  --custom-order-alt: #24d6cd;
}

body.invoice-page .custom-orders-page #custom-order-history {
  --custom-order-accent: #6ea8ff;
  --custom-order-accent-soft: rgba(110, 168, 255, 0.2);
  --custom-order-accent-faint: rgba(110, 168, 255, 0.08);
  --custom-order-alt: #ff4a84;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] {
  background:
    linear-gradient(90deg, var(--custom-order-accent-faint) 1px, transparent 1px),
    linear-gradient(180deg, var(--custom-order-accent-faint) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, var(--custom-order-accent-soft), transparent 30%),
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--custom-order-alt) 20%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(4, 10, 15, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  border-color: color-mix(in srgb, var(--custom-order-accent) 38%, transparent);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.1), inset 0 0 72px rgba(0, 0, 0, 0.18), 0 0 46px color-mix(in srgb, var(--custom-order-accent) 10%, transparent);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  position: relative;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]::before {
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--custom-order-accent) 28%, transparent), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--custom-order-accent) 22%, transparent), rgba(246, 210, 122, 0.07) 48%, color-mix(in srgb, var(--custom-order-alt) 14%, transparent)),
    rgba(2, 8, 13, 0.78);
  border: 1px solid color-mix(in srgb, var(--custom-order-accent) 36%, transparent);
  border-radius: 8px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--custom-order-accent) 8%, transparent), 0 12px 26px rgba(0, 0, 0, 0.24);
  margin-bottom: 16px;
  padding: 16px 18px;
  position: relative;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head::after {
  background: linear-gradient(90deg, var(--custom-order-accent), #f6d27a, var(--custom-order-alt));
  bottom: -1px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .dashboard-kicker {
  background: color-mix(in srgb, var(--custom-order-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--custom-order-accent) 44%, transparent);
  color: color-mix(in srgb, var(--custom-order-accent) 74%, #ffffff);
  text-shadow: 0 0 12px color-mix(in srgb, var(--custom-order-accent) 38%, transparent);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head h2 {
  color: #eaffff;
  font-size: 1.42rem;
  letter-spacing: 0;
  text-shadow: 0 0 18px color-mix(in srgb, var(--custom-order-accent) 42%, transparent), 0 0 28px rgba(246, 210, 122, 0.16);
  text-transform: uppercase;
}

body.invoice-page .custom-orders-page #custom-order-input .packing-panel-head h2::before {
  content: "INPUT  /  ";
  color: var(--custom-order-accent);
  font-size: 0.7em;
}

body.invoice-page .custom-orders-page #custom-order-prepare .packing-panel-head h2::before {
  content: "STOCK READY  /  ";
  color: var(--custom-order-accent);
  font-size: 0.7em;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head h2::before {
  content: "PICKUP  /  ";
  color: var(--custom-order-accent);
  font-size: 0.7em;
}

body.invoice-page .custom-orders-page #custom-order-history .packing-panel-head h2::before {
  content: "DATABASE  /  ";
  color: var(--custom-order-accent);
  font-size: 0.7em;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-file-panel,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-product-panel,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-filter,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-design-tabs {
  background: rgba(2, 8, 13, 0.5);
  border: 1px solid color-mix(in srgb, var(--custom-order-accent) 22%, transparent);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06), 0 16px 30px rgba(0, 0, 0, 0.16);
  padding: 12px;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-file-panel,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-product-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--custom-order-accent) 10%, transparent), transparent 28%),
    rgba(2, 8, 13, 0.62);
}

body.invoice-page .custom-orders-page .custom-order-prepare-card,
body.invoice-page .custom-orders-page .custom-order-pickup-card,
body.invoice-page .custom-orders-page .custom-order-history-card,
body.invoice-page .custom-orders-page .custom-order-product-card {
  background:
    linear-gradient(90deg, var(--custom-order-accent-faint), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border-color: color-mix(in srgb, var(--custom-order-accent) 26%, transparent);
  box-shadow: inset 3px 0 0 var(--custom-order-accent), inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

body.invoice-page .custom-orders-page .custom-order-prepare-card:hover,
body.invoice-page .custom-orders-page .custom-order-pickup-card:hover,
body.invoice-page .custom-orders-page .custom-order-history-card:hover,
body.invoice-page .custom-orders-page .custom-order-product-card:hover {
  border-color: color-mix(in srgb, var(--custom-order-alt) 46%, transparent);
  box-shadow: inset 3px 0 0 var(--custom-order-alt), 0 0 28px color-mix(in srgb, var(--custom-order-accent) 12%, transparent), 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] label,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-file-panel strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-product-head strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-prepare-main strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-pickup-card strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-history-code {
  color: color-mix(in srgb, var(--custom-order-accent) 42%, #ffe6a1);
  text-shadow: 0 0 13px color-mix(in srgb, var(--custom-order-accent) 26%, transparent);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid > label,
body.invoice-page .custom-orders-page .custom-order-customer-picker,
body.invoice-page .custom-orders-page .custom-order-file-grid > label,
body.invoice-page .custom-orders-page .custom-order-product-card > label,
body.invoice-page .custom-orders-page .custom-order-design-section,
body.invoice-page .custom-orders-page .custom-order-history-section {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--custom-order-accent) 10%, transparent), transparent 36%),
    rgba(3, 10, 16, 0.58);
  border: 1px solid color-mix(in srgb, var(--custom-order-accent) 18%, transparent);
  border-left-color: color-mix(in srgb, var(--custom-order-accent) 54%, transparent);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--custom-order-accent) 52%, transparent), inset 0 0 18px rgba(0, 0, 0, 0.16);
  padding: 10px;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid > label:focus-within,
body.invoice-page .custom-orders-page .custom-order-customer-picker:focus-within,
body.invoice-page .custom-orders-page .custom-order-file-grid > label:focus-within,
body.invoice-page .custom-orders-page .custom-order-product-card > label:focus-within {
  border-color: color-mix(in srgb, var(--custom-order-accent) 56%, #ffffff);
  box-shadow: inset 3px 0 0 var(--custom-order-accent), 0 0 24px color-mix(in srgb, var(--custom-order-accent) 14%, transparent);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] select,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea {
  background: rgba(1, 7, 12, 0.78);
  border-color: color-mix(in srgb, var(--custom-order-accent) 28%, transparent);
  color: #f5ffff;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.04), inset 0 0 18px rgba(0, 0, 0, 0.18);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea::placeholder {
  color: rgba(210, 242, 255, 0.48);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input:focus,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] select:focus,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea:focus {
  border-color: color-mix(in srgb, var(--custom-order-accent) 72%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--custom-order-accent) 16%, transparent), 0 0 28px color-mix(in srgb, var(--custom-order-accent) 18%, transparent);
}

body.invoice-page .custom-orders-page .custom-order-stock-status strong {
  color: #eef4ff;
  text-shadow: none;
}

body.invoice-page .custom-orders-page .custom-order-stock-status small {
  color: #b8c5d9;
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-ready {
  border-color: rgba(74, 222, 128, 0.46);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08), 0 0 24px rgba(74, 222, 128, 0.12);
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-ready strong {
  color: #86efac;
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-partial {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.08), 0 0 24px rgba(250, 204, 21, 0.12);
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-partial strong {
  color: #fde68a;
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-empty {
  border-color: rgba(248, 113, 113, 0.46);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08), 0 0 24px rgba(248, 113, 113, 0.12);
}

body.invoice-page .custom-orders-page .custom-order-stock-status.is-empty strong {
  color: #fca5a5;
}

body.invoice-page .custom-orders-page .invoice-print-button,
body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product,
body.invoice-page .custom-orders-page .cashier-action-button {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff 52%, #f6d27a);
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: 0 12px 28px rgba(36, 214, 205, 0.2), 0 0 0 1px rgba(244, 209, 124, 0.12);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color: #030b12;
  text-transform: uppercase;
}

body.invoice-page .custom-orders-page .cashier-action-ghost {
  background: rgba(255, 250, 241, 0.08);
  color: #f4dca3;
}

body.invoice-page .custom-orders-page .custom-order-design-summary,
body.invoice-page .custom-orders-page .custom-order-history-summary {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--custom-order-accent) 12%, transparent), transparent 38%),
    rgba(2, 8, 13, 0.5);
}

body.invoice-page .custom-orders-page .custom-order-design-code,
body.invoice-page .custom-orders-page .custom-order-history-code {
  letter-spacing: 0;
  text-transform: uppercase;
}

body.invoice-page .custom-orders-page .custom-order-selected-files {
  color: #f7d985 !important;
}

.system-settings-page {
  --system-accent: #24d6cd;
  --system-alt: #6ea8ff;
  --system-gold: #f6d27a;
  --system-pink: #ff4a84;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 210, 122, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 14% 0%, rgba(36, 214, 205, 0.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 74, 132, 0.14), transparent 30%),
    linear-gradient(135deg, #050b10 0%, #101015 50%, #17100a 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  border: 1px solid rgba(36, 214, 205, 0.18);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 22px 70px rgba(0, 0, 0, 0.35);
  color: #efffff;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 130px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
}

.system-settings-page::before {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.88), transparent 22%) top left / 118px 118px no-repeat,
    linear-gradient(315deg, rgba(255, 74, 132, 0.68), transparent 24%) top right / 118px 118px no-repeat,
    linear-gradient(45deg, rgba(246, 210, 122, 0.7), transparent 22%) bottom left / 118px 118px no-repeat,
    linear-gradient(225deg, rgba(110, 168, 255, 0.68), transparent 24%) bottom right / 118px 118px no-repeat;
  content: "";
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.system-settings-page > * {
  position: relative;
  z-index: 1;
}

.system-settings-page .settings-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(246, 210, 122, 0.08) 46%, rgba(255, 74, 132, 0.12)),
    linear-gradient(180deg, rgba(5, 12, 18, 0.96), rgba(8, 12, 15, 0.96));
  border: 1px solid rgba(36, 214, 205, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.11), 0 18px 46px rgba(0, 0, 0, 0.32);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  display: grid;
  gap: 10px;
  margin: 0;
  overflow: hidden;
  padding: 24px clamp(18px, 3vw, 30px);
  position: relative;
}

.system-settings-page .settings-head::before {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 214, 205, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.44;
  pointer-events: none;
  position: absolute;
}

.system-settings-page .settings-head > * {
  position: relative;
  z-index: 1;
}

.system-settings-page .settings-head .auth-brand {
  color: #efffff;
  font-size: 1.02rem;
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 26px rgba(246, 210, 122, 0.18);
}

.system-settings-page .settings-head .auth-brand::before {
  color: var(--system-accent);
  content: "MISSION // ";
  font-weight: 900;
}

.system-settings-page .settings-head h1 {
  color: #eaffff;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 28px rgba(246, 210, 122, 0.16);
  text-transform: uppercase;
}

.system-settings-page .settings-head > p:last-child {
  color: #c8e6ef;
  font-weight: 700;
}

.system-settings-page .settings-menu {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.055), rgba(255, 74, 132, 0.07)),
    rgba(4, 10, 15, 0.88);
  border: 1px solid rgba(36, 214, 205, 0.26);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.07), 0 16px 34px rgba(0, 0, 0, 0.24);
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 8px;
}

.system-settings-page .settings-menu a {
  background: rgba(2, 8, 13, 0.56);
  border: 1px solid rgba(36, 214, 205, 0.22);
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  color: #dff8ff;
  min-height: 58px;
  overflow: hidden;
  position: relative;
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.2);
  text-transform: uppercase;
}

.system-settings-page .settings-menu a::before {
  background: linear-gradient(135deg, var(--system-accent), var(--system-alt) 52%, var(--system-gold));
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  z-index: -1;
}

.system-settings-page .settings-menu a:hover,
.system-settings-page .settings-menu a:focus-visible {
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.08), 0 0 22px rgba(36, 214, 205, 0.16);
  color: #061016;
  transform: translateY(-1px);
}

.system-settings-page .settings-menu a:hover::before,
.system-settings-page .settings-menu a:focus-visible::before {
  opacity: 1;
}

.system-settings-page .settings-menu a span,
.system-settings-page .settings-menu svg {
  color: currentColor;
  position: relative;
  z-index: 1;
}

.system-settings-page .settings-grid {
  gap: 18px;
}

.system-settings-page .settings-card {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 214, 205, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(36, 214, 205, 0.16), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(110, 168, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(4, 10, 15, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  border-color: rgba(36, 214, 205, 0.32);
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.1), inset 0 0 72px rgba(0, 0, 0, 0.18), 0 0 46px rgba(36, 214, 205, 0.1);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  color: #efffff;
  overflow: hidden;
  position: relative;
}

.system-settings-page .settings-card::before {
  background:
    linear-gradient(90deg, transparent, rgba(36, 214, 205, 0.18), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.system-settings-page .settings-card > * {
  position: relative;
  z-index: 1;
}

.system-settings-page .settings-card h2 {
  color: #eaffff;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.35), 0 0 28px rgba(246, 210, 122, 0.12);
  text-transform: uppercase;
}

.system-settings-page .settings-card > p:not(.settings-eyebrow),
.system-settings-page .system-monitor-head p:not(.settings-eyebrow),
.system-settings-page .settings-card small {
  color: #b8c5d9;
}

.system-settings-page .settings-eyebrow {
  color: color-mix(in srgb, var(--system-accent) 74%, #ffffff);
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.32);
}

.system-settings-page label,
.system-settings-page .settings-form-grid > div > strong,
.system-settings-page .settings-form-grid > div > label {
  color: color-mix(in srgb, var(--system-accent) 42%, #ffe6a1);
  text-shadow: 0 0 13px rgba(36, 214, 205, 0.2);
}

.system-settings-page input,
.system-settings-page select,
.system-settings-page textarea {
  background: rgba(1, 7, 12, 0.78);
  border-color: rgba(36, 214, 205, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.04), inset 0 0 18px rgba(0, 0, 0, 0.18);
  color: #f5ffff;
}

.system-settings-page input::placeholder,
.system-settings-page textarea::placeholder {
  color: rgba(210, 242, 255, 0.48);
}

.system-settings-page input:focus,
.system-settings-page select:focus,
.system-settings-page textarea:focus {
  border-color: color-mix(in srgb, var(--system-accent) 72%, #ffffff);
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.16), 0 0 28px rgba(36, 214, 205, 0.18);
}

.system-settings-page .settings-form-grid > label,
.system-settings-page .settings-form-grid > div,
.system-settings-page .feature-access-dropdowns label,
.system-settings-page .shipping-service-row,
.system-settings-page .shipping-service-add-row,
.system-settings-page .attendance-setting-panel,
.system-settings-page .attendance-grade-list,
.system-settings-page .notification-rule,
.system-settings-page .webhook-help,
.system-settings-page .packing-edit-form,
.system-settings-page .employee-empty {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.1), transparent 36%),
    rgba(3, 10, 16, 0.58);
  border-color: rgba(36, 214, 205, 0.18);
  border-left-color: rgba(36, 214, 205, 0.54);
  box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.52), inset 0 0 18px rgba(0, 0, 0, 0.16);
}

.system-settings-page .system-monitor-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(246, 210, 122, 0.07) 48%, rgba(110, 168, 255, 0.11)),
    rgba(2, 8, 13, 0.78);
  border: 1px solid rgba(36, 214, 205, 0.3);
  box-shadow: inset 0 0 24px rgba(36, 214, 205, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 16px 18px;
  position: relative;
}

.system-settings-page .system-monitor-head::after {
  background: linear-gradient(90deg, var(--system-accent), var(--system-gold), var(--system-alt));
  bottom: -1px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.system-settings-page .system-monitor-badge,
.system-settings-page .visitor-analytics-head > span {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff 52%, #f6d27a);
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(244, 209, 124, 0.12), 0 0 24px rgba(36, 214, 205, 0.2);
  color: #030b12;
}

.system-settings-page .google-sync-paused {
  background: linear-gradient(135deg, #f6d27a, #ff4a84);
}

.system-settings-page .system-health-report,
.system-settings-page .system-monitor-tile,
.system-settings-page .system-monitor-audit,
.system-settings-page .visitor-analytics,
.system-settings-page .google-sheet-sync-grid article,
.system-settings-page .google-sheet-sync-error,
.system-settings-page .formula-notes-grid article,
.system-settings-page .visitor-analytics-grid article,
.system-settings-page .visitor-live-grid section,
.system-settings-page .visitor-live-grid span,
.system-settings-page .system-monitor-audit span {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border-color: rgba(36, 214, 205, 0.24);
  box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.52), inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.2);
  color: #efffff;
}

.system-settings-page .system-health-healthy {
  border-color: rgba(74, 222, 128, 0.46);
  box-shadow: inset 3px 0 0 #5aff9d, 0 0 24px rgba(74, 222, 128, 0.12);
}

.system-settings-page .system-health-warning {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: inset 3px 0 0 #f6d27a, 0 0 24px rgba(250, 204, 21, 0.12);
}

.system-settings-page .system-health-danger {
  border-color: rgba(248, 113, 113, 0.46);
  box-shadow: inset 3px 0 0 #ff4a84, 0 0 24px rgba(248, 113, 113, 0.12);
}

.system-settings-page .system-health-report span,
.system-settings-page .system-health-report b,
.system-settings-page .system-monitor-tile span,
.system-settings-page .system-monitor-audit > strong,
.system-settings-page .visitor-analytics-head strong,
.system-settings-page .visitor-live-grid strong,
.system-settings-page .google-sheet-sync-grid span,
.system-settings-page .google-sheet-sync-error strong,
.system-settings-page .formula-notes-grid span,
.system-settings-page .attendance-grade-list b,
.system-settings-page .notification-rule > strong {
  color: color-mix(in srgb, var(--system-accent) 42%, #ffe6a1);
}

.system-settings-page .system-health-report strong,
.system-settings-page .system-monitor-tile strong,
.system-settings-page .system-monitor-audit b,
.system-settings-page .visitor-analytics-grid b,
.system-settings-page .visitor-live-grid b,
.system-settings-page .google-sheet-sync-grid strong,
.system-settings-page .formula-notes-grid strong,
.system-settings-page .shipping-service-row label,
.system-settings-page .shipping-service-row strong,
.system-settings-page .attendance-setting-panel strong,
.system-settings-page .notification-rule h3,
.system-settings-page .webhook-help strong,
.system-settings-page .employee-empty strong {
  color: #eef4ff;
}

.system-settings-page .system-health-report small,
.system-settings-page .system-monitor-tile small,
.system-settings-page .system-monitor-audit small,
.system-settings-page .visitor-analytics small,
.system-settings-page .visitor-analytics-grid span,
.system-settings-page .visitor-live-grid small,
.system-settings-page .google-sheet-sync-grid small,
.system-settings-page .google-sheet-sync-error small,
.system-settings-page .formula-notes-grid small,
.system-settings-page .shipping-service-row small,
.system-settings-page .attendance-setting-panel small,
.system-settings-page .attendance-grade-list span,
.system-settings-page .notification-rule p,
.system-settings-page .webhook-help small,
.system-settings-page .employee-empty {
  color: #b8c5d9;
}

.system-settings-page a,
.system-settings-page .google-sheet-sync-grid a {
  color: #f7d985;
}

.system-settings-page .formula-notes-grid code {
  background: rgba(3, 10, 16, 0.72);
  border-color: rgba(36, 214, 205, 0.22);
  color: #f7d985;
}

.system-settings-page button,
.system-settings-page .settings-link-button {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff 52%, #f6d27a);
  border: 1px solid rgba(234, 255, 255, 0.44);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(36, 214, 205, 0.2), 0 0 0 1px rgba(244, 209, 124, 0.12);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color: #030b12;
  text-transform: uppercase;
}

.system-settings-page button:hover,
.system-settings-page .settings-link-button:hover {
  background: linear-gradient(135deg, #f6d27a, #24d6cd 55%, #6ea8ff);
  transform: translateY(-1px);
}

.system-settings-page button.secondary-action.danger {
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 74, 132, 0.42);
  color: #ffd0dc;
}

.system-settings-page code {
  background: rgba(1, 7, 12, 0.78);
  border-color: rgba(36, 214, 205, 0.24);
  color: #f7d985;
}

@media (max-width: 760px) {
  .system-settings-page {
    padding: 14px;
  }

  .system-settings-page .settings-head,
  .system-settings-page .settings-card {
    clip-path: none;
  }

  .system-settings-page .settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-settings-page .settings-menu a {
    min-height: 54px;
    padding: 12px;
  }

  .formula-notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.invoice-page .sewing-system-page {
  --sewing-accent: #24d6cd;
  --sewing-alt: #f6d27a;
  --sewing-alert: #ff4a84;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 210, 122, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #050b10 0%, #101015 48%, #1a1208 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border: 1px solid rgba(36, 214, 205, 0.18);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 22px 70px rgba(0, 0, 0, 0.35);
  color: #efffff;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  position: relative;
}

body.invoice-page .sewing-system-page::before {
  background:
    linear-gradient(100deg, transparent 0%, rgba(36, 214, 205, 0.08) 42%, transparent 64%),
    linear-gradient(180deg, rgba(255, 74, 132, 0.09), transparent 34%, rgba(246, 210, 122, 0.08));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .sewing-system-page > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .sewing-system-page > .invoice-builder-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.18), rgba(246, 210, 122, 0.08) 48%, rgba(255, 74, 132, 0.12)),
    linear-gradient(180deg, rgba(5, 12, 18, 0.96), rgba(8, 12, 15, 0.9));
  border: 1px solid rgba(36, 214, 205, 0.32);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.12), 0 18px 46px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  padding: 34px;
  position: relative;
}

body.invoice-page .sewing-system-page > .invoice-builder-head::before {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 214, 205, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .sewing-system-page > .invoice-builder-head > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .sewing-system-page .invoice-builder-head .auth-brand {
  background: linear-gradient(135deg, #f6d27a, #dca23a);
  border: 1px solid rgba(36, 214, 205, 0.38);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(246, 210, 122, 0.18);
  color: #061016;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  margin-bottom: 18px;
  padding: 8px 14px;
  text-shadow: none;
}

body.invoice-page .sewing-system-page .invoice-builder-head h1 {
  color: #efffff;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  letter-spacing: 0.24em;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 28px rgba(246, 210, 122, 0.18);
  text-transform: uppercase;
}

body.invoice-page .sewing-system-page .invoice-builder-head p:not(.auth-brand) {
  color: rgba(239, 255, 255, 0.78);
  font-size: 1rem;
  margin-top: 18px;
  max-width: 760px;
}

body.invoice-page .sewing-system-page .cashier-head-actions {
  align-self: end;
}

body.invoice-page .sewing-system-page .cashier-head-actions .invoice-print-button,
body.invoice-page .sewing-system-page .cashier-head-actions .cashier-action-button {
  background: linear-gradient(135deg, #f6d27a, #dca23a);
  border: 1px solid rgba(36, 214, 205, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(36, 214, 205, 0.16), 0 0 24px rgba(246, 210, 122, 0.22);
  color: #061016;
  font-weight: 900;
  min-height: 48px;
}

body.invoice-page .sewing-system-page .sewing-tabs {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.055), rgba(255, 74, 132, 0.07)),
    rgba(4, 10, 15, 0.88);
  border: 1px solid rgba(36, 214, 205, 0.26);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 16px 36px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  padding: 10px;
}

body.invoice-page .sewing-system-page .sewing-tabs a,
body.invoice-page .sewing-system-page .sewing-tabs button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 255, 255, 0.14);
  border-radius: 7px;
  color: #dff8ff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 48px;
  overflow: hidden;
  padding: 0 14px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.invoice-page .sewing-system-page .sewing-tabs a::before,
body.invoice-page .sewing-system-page .sewing-tabs button::before {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 58%, #ff4a84);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  z-index: -1;
}

body.invoice-page .sewing-system-page .sewing-subtabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 8px;
}

body.invoice-page .sewing-system-page .sewing-subtabs a {
  letter-spacing: 0.06em;
  min-height: 42px;
}

body.invoice-page .sewing-system-page .sewing-filter-panel {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.045), rgba(255, 74, 132, 0.06)),
    rgba(4, 10, 15, 0.78);
  border: 1px solid rgba(36, 214, 205, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06);
  margin: -4px 0 18px;
  padding: 8px;
}

body.invoice-page .sewing-system-page .sewing-filter-toggle {
  align-items: center;
  color: #efffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.1em;
  list-style: none;
  min-height: 42px;
  padding: 0 10px;
  text-transform: uppercase;
}

body.invoice-page .sewing-system-page .sewing-filter-toggle::-webkit-details-marker {
  display: none;
}

body.invoice-page .sewing-system-page .sewing-filter-icon {
  align-items: center;
  background: linear-gradient(135deg, #24d6cd, #f6d27a 58%, #ff4a84);
  border: 1px solid rgba(234, 255, 255, 0.32);
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(36, 214, 205, 0.18);
  color: #061016;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

body.invoice-page .sewing-system-page .sewing-filter-icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

body.invoice-page .sewing-system-page .sewing-filter-toggle b {
  background: rgba(246, 210, 122, 0.16);
  border: 1px solid rgba(246, 210, 122, 0.36);
  border-radius: 999px;
  color: #f6d27a;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}

body.invoice-page .sewing-system-page .sewing-filter-form {
  border-top: 1px solid rgba(36, 214, 205, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 1fr)) auto;
  margin-top: 8px;
  padding: 14px 8px 6px;
}

body.invoice-page .sewing-system-page .sewing-receipt-filter-form {
  grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(130px, 1fr)) auto;
}

body.invoice-page .sewing-system-page .sewing-income-filter-form {
  grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
}

body.invoice-page .sewing-system-page .sewing-filter-form label {
  display: grid;
  gap: 7px;
}

body.invoice-page .sewing-system-page .sewing-filter-form span {
  color: rgba(239, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

body.invoice-page .sewing-system-page .sewing-filter-form input,
body.invoice-page .sewing-system-page .sewing-filter-form select {
  background: rgba(2, 8, 13, 0.84);
  border: 1px solid rgba(36, 214, 205, 0.2);
  border-radius: 7px;
  color: #efffff;
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 0 11px;
  width: 100%;
}

body.invoice-page .sewing-system-page .sewing-filter-form input:focus,
body.invoice-page .sewing-system-page .sewing-filter-form select:focus {
  border-color: rgba(246, 210, 122, 0.62);
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.1), 0 0 18px rgba(36, 214, 205, 0.16);
}

body.invoice-page .sewing-system-page .sewing-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
}

body.invoice-page .sewing-system-page .sewing-filter-actions .cashier-action-button {
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

body.invoice-page .sewing-system-page .sewing-tabs a:hover,
body.invoice-page .sewing-system-page .sewing-tabs a:focus-visible,
body.invoice-page .sewing-system-page .sewing-tabs a.active,
body.invoice-page .sewing-system-page .sewing-tabs button:hover,
body.invoice-page .sewing-system-page .sewing-tabs button:focus-visible,
body.invoice-page .sewing-system-page .sewing-tabs button.active {
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.08), 0 0 22px rgba(36, 214, 205, 0.16);
  color: #061016;
  transform: translateY(-1px);
}

body.invoice-page .sewing-system-page .sewing-tabs a:hover::before,
body.invoice-page .sewing-system-page .sewing-tabs a:focus-visible::before,
body.invoice-page .sewing-system-page .sewing-tabs a.active::before,
body.invoice-page .sewing-system-page .sewing-tabs button:hover::before,
body.invoice-page .sewing-system-page .sewing-tabs button:focus-visible::before,
body.invoice-page .sewing-system-page .sewing-tabs button.active::before {
  opacity: 1;
}

body.invoice-page .sewing-system-page .cashier-summary article {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.12), rgba(246, 210, 122, 0.08)),
    rgba(7, 13, 19, 0.82);
  border: 1px solid rgba(36, 214, 205, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 16px 36px rgba(0, 0, 0, 0.26);
}

body.invoice-page .sewing-system-page .cashier-summary span,
body.invoice-page .sewing-system-page .cashier-summary small {
  color: rgba(239, 255, 255, 0.68);
}

body.invoice-page .sewing-system-page .cashier-summary strong {
  color: #efffff;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.25);
}

body.invoice-page .sewing-system-page .sewing-income-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
}

body.invoice-page .sewing-system-page .cashier-panel {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.12), rgba(255, 74, 132, 0.055)),
    rgba(5, 10, 15, 0.9);
  border: 1px solid rgba(36, 214, 205, 0.26);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 20px 52px rgba(0, 0, 0, 0.32);
}

body.invoice-page .sewing-system-page [hidden] {
  display: none !important;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.1), rgba(246, 210, 122, 0.07), rgba(255, 74, 132, 0.08)),
    rgba(4, 10, 15, 0.7);
  border: 1px solid rgba(36, 214, 205, 0.18);
  border-radius: 8px;
  padding: 18px;
}

body.invoice-page .sewing-system-page .cashier-panel .dashboard-kicker,
body.invoice-page .sewing-system-page .sewing-job-main .dashboard-kicker {
  background: linear-gradient(135deg, #f6d27a, #dca23a);
  border: 1px solid rgba(36, 214, 205, 0.28);
  border-radius: 4px;
  color: #061016;
  font-weight: 800;
  letter-spacing: 0.36em;
  padding: 4px 8px;
  text-shadow: none;
  text-transform: uppercase;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head h2 {
  color: #efffff;
  letter-spacing: 0.14em;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.28);
  text-transform: uppercase;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head small {
  color: rgba(239, 255, 255, 0.68);
}

body.invoice-page .sewing-system-page .sewing-job-row {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.045), rgba(255, 74, 132, 0.055)),
    rgba(8, 13, 19, 0.82);
  border: 1px solid rgba(36, 214, 205, 0.2);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.07), 0 14px 30px rgba(0, 0, 0, 0.24);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.invoice-page .sewing-system-page .sewing-job-row:hover {
  border-color: rgba(246, 210, 122, 0.42);
  box-shadow: inset 0 0 0 1px rgba(36, 214, 205, 0.12), 0 18px 38px rgba(0, 0, 0, 0.3), 0 0 22px rgba(36, 214, 205, 0.12);
  transform: translateY(-1px);
}

body.invoice-page .sewing-system-page .sewing-job-main h3,
body.invoice-page .sewing-system-page .sewing-cost-stack strong {
  color: #efffff;
  text-shadow: 0 0 16px rgba(36, 214, 205, 0.24);
}

body.invoice-page .sewing-system-page .sewing-job-main p,
body.invoice-page .sewing-system-page .sewing-cost-stack small,
body.invoice-page .sewing-system-page .sewing-empty-note {
  color: rgba(239, 255, 255, 0.68);
}

body.invoice-page .sewing-system-page .sewing-metrics div {
  background: rgba(3, 9, 14, 0.68);
  border: 1px solid rgba(36, 214, 205, 0.16);
  box-shadow: inset 0 0 18px rgba(36, 214, 205, 0.04);
}

body.invoice-page .sewing-system-page .sewing-metrics dt,
body.invoice-page .sewing-system-page .sewing-material-row small {
  color: rgba(239, 255, 255, 0.56);
}

body.invoice-page .sewing-system-page .sewing-metrics dd {
  color: #efffff;
}

body.invoice-page .sewing-system-page .sewing-material-details {
  border-top-color: rgba(36, 214, 205, 0.16);
}

body.invoice-page .sewing-system-page .sewing-material-details summary {
  color: #f6d27a;
  text-shadow: 0 0 16px rgba(246, 210, 122, 0.2);
}

body.invoice-page .sewing-system-page .sewing-material-row {
  background: rgba(4, 10, 15, 0.74);
  border: 1px solid rgba(36, 214, 205, 0.14);
  color: #efffff;
}

body.invoice-page .sewing-system-page .sewing-material-row strong {
  color: #efffff;
}

body.invoice-page .sewing-system-page .sewing-material-head {
  background: linear-gradient(135deg, rgba(36, 214, 205, 0.94), rgba(246, 210, 122, 0.88));
  color: #061016;
}

body.invoice-page .sewing-system-page .sewing-empty-note {
  background: rgba(255, 74, 132, 0.08);
  border-color: rgba(255, 74, 132, 0.2);
}

body.invoice-page .sewing-system-page .sewing-input-form {
  display: grid;
  gap: 16px;
}

body.invoice-page .sewing-system-page .sewing-input-zone {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.04), rgba(255, 74, 132, 0.06)),
    rgba(6, 12, 18, 0.74);
  border: 1px solid rgba(36, 214, 205, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06);
  padding: 18px;
}

body.invoice-page .sewing-system-page .sewing-input-only .sewing-input-zone {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.invoice-page .sewing-system-page .sewing-input-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

body.invoice-page .sewing-system-page .sewing-input-section-head h3 {
  color: #efffff;
  font-size: 1rem;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

body.invoice-page .sewing-system-page .sewing-input-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.invoice-page .sewing-system-page .sewing-input-grid label {
  display: grid;
  gap: 8px;
}

body.invoice-page .sewing-system-page .sewing-input-grid span {
  color: rgba(239, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

body.invoice-page .sewing-system-page .sewing-input-grid input,
body.invoice-page .sewing-system-page .sewing-input-grid select {
  background: rgba(2, 8, 13, 0.84);
  border: 1px solid rgba(36, 214, 205, 0.2);
  border-radius: 7px;
  color: #efffff;
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 0 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

body.invoice-page .sewing-system-page .sewing-input-grid input:focus,
body.invoice-page .sewing-system-page .sewing-input-grid select:focus {
  border-color: rgba(246, 210, 122, 0.62);
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.1), 0 0 18px rgba(36, 214, 205, 0.16);
}

body.invoice-page .sewing-system-page .sewing-input-grid input::placeholder {
  color: rgba(239, 255, 255, 0.34);
}

body.invoice-page .sewing-system-page .sewing-input-actions {
  display: flex;
  justify-content: flex-end;
}

body.invoice-page .sewing-system-page .sewing-receipt-form {
  align-items: end;
  border-top: 1px solid rgba(36, 214, 205, 0.16);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.8fr) minmax(100px, 0.7fr) minmax(180px, 1.2fr) auto;
  padding-top: 14px;
}

body.invoice-page .sewing-system-page .sewing-receipt-form label {
  display: grid;
  gap: 7px;
}

body.invoice-page .sewing-system-page .sewing-receipt-form span {
  color: rgba(239, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

body.invoice-page .sewing-system-page .sewing-receipt-form input {
  background: rgba(2, 8, 13, 0.84);
  border: 1px solid rgba(36, 214, 205, 0.2);
  border-radius: 7px;
  color: #efffff;
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 0 11px;
  width: 100%;
}

body.invoice-page .sewing-system-page .sewing-receipt-form input:focus {
  border-color: rgba(246, 210, 122, 0.62);
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.1), 0 0 18px rgba(36, 214, 205, 0.16);
}

body.invoice-page .sewing-system-page .sewing-receipt-form .cashier-action-button {
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

body.invoice-page .sewing-system-page .sewing-metrics-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.invoice-page .sewing-system-page .sewing-income-history-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.invoice-page .sewing-system-page .sewing-income-history-metrics dd {
  overflow-wrap: anywhere;
}

body.invoice-page .sewing-system-page .sewing-history-list {
  display: grid;
  gap: 8px;
}

body.invoice-page .sewing-system-page .sewing-history-row {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.07), rgba(246, 210, 122, 0.04)),
    rgba(8, 13, 19, 0.78);
  border: 1px solid rgba(36, 214, 205, 0.16);
  border-radius: 7px;
  color: rgba(239, 255, 255, 0.72);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(110px, 0.9fr) minmax(120px, 1.1fr) minmax(140px, 1fr) minmax(70px, 0.55fr) minmax(100px, 0.75fr);
  padding: 12px 14px;
}

body.invoice-page .sewing-system-page .sewing-history-row strong {
  color: #efffff;
}

@media (max-width: 860px) {
  body.invoice-page .sewing-system-page .sewing-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-tabs a,
  body.invoice-page .sewing-system-page .sewing-tabs button {
    font-size: 0.78rem;
    min-height: 42px;
    padding: 0 10px;
  }

  body.invoice-page .sewing-system-page .sewing-metrics-compact,
  body.invoice-page .sewing-system-page .sewing-income-history-metrics,
  body.invoice-page .sewing-system-page .sewing-history-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-receipt-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-filter-actions {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body.invoice-page .sewing-system-page .sewing-input-grid,
  body.invoice-page .sewing-system-page .sewing-tabs,
  body.invoice-page .sewing-system-page .sewing-metrics-compact,
  body.invoice-page .sewing-system-page .sewing-income-history-metrics,
  body.invoice-page .sewing-system-page .sewing-history-row,
  body.invoice-page .sewing-system-page .sewing-filter-form,
  body.invoice-page .sewing-system-page .sewing-receipt-form {
    grid-template-columns: 1fr;
  }

  body.invoice-page .sewing-system-page .sewing-input-actions {
    justify-content: stretch;
  }

  body.invoice-page .sewing-system-page .sewing-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.invoice-page .sewing-system-page .sewing-input-actions .invoice-print-button {
    width: 100%;
  }
}

/* Sistem Jahit light workspace: aligned with the calm Kas Keluar skin. */
body.invoice-page:has(.sewing-system-page) {
  background: linear-gradient(180deg, #eef7f6 0%, #f7fbfb 42%, #edf5f5 100%) !important;
}

body.invoice-page:has(.sewing-system-page) .shell {
  background: transparent;
  padding-bottom: 104px;
}

body.invoice-page:has(.sewing-system-page) .topbar {
  background: rgba(238, 247, 246, 0.96);
  border-bottom: 1px solid rgba(0, 143, 134, 0.16);
  box-shadow: 0 14px 34px rgba(21, 40, 44, 0.08);
  color: #172027;
}

body.invoice-page:has(.sewing-system-page) .topbar .brand {
  color: #008f86;
  text-shadow: none;
}

body.invoice-page:has(.sewing-system-page) .topbar-nav a,
body.invoice-page:has(.sewing-system-page) .topbar form span,
body.invoice-page:has(.sewing-system-page) .notification-nav-button {
  color: #50636a;
}

body.invoice-page:has(.sewing-system-page) .topbar-nav a:hover,
body.invoice-page:has(.sewing-system-page) .topbar-nav a:focus-visible,
body.invoice-page:has(.sewing-system-page) .notification-nav-button:hover,
body.invoice-page:has(.sewing-system-page) .notification-nav-button:focus-visible {
  color: #008f86;
}

body.invoice-page:has(.sewing-system-page) .topbar form button {
  background: #d9aa40;
  border-color: #d9aa40;
  color: #172027;
  box-shadow: none;
}

body.invoice-page:has(.sewing-system-page) .home-bottom-nav {
  background: rgba(237, 248, 247, 0.96);
  border-top: 1px solid rgba(0, 143, 134, 0.18);
  box-shadow: 0 -14px 34px rgba(21, 40, 44, 0.08);
}

body.invoice-page:has(.sewing-system-page) .home-bottom-nav a,
body.invoice-page:has(.sewing-system-page) .home-bottom-nav button {
  color: #64757d;
}

body.invoice-page:has(.sewing-system-page) .home-bottom-nav a.active,
body.invoice-page:has(.sewing-system-page) .home-bottom-nav button.active,
body.invoice-page:has(.sewing-system-page) .home-bottom-nav a:hover,
body.invoice-page:has(.sewing-system-page) .home-bottom-nav button:hover {
  color: #008f86;
}

body.invoice-page .sewing-system-page {
  --sewing-accent: #008f86;
  --sewing-accent-soft: #e5f7f5;
  --sewing-border: #dbe8e9;
  --sewing-card: #ffffff;
  --sewing-muted: #60717a;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #172027;
  margin-inline: auto;
  max-width: min(1074px, calc(100vw - 32px));
  min-height: 0;
  overflow: visible;
}

body.invoice-page .sewing-system-page::before {
  display: none;
}

body.invoice-page .sewing-system-page > .invoice-builder-head {
  align-items: center;
  background: var(--sewing-card);
  border: 1px solid rgba(15, 31, 38, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 52px rgba(21, 40, 44, 0.11);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto 18px;
  overflow: visible;
  padding: 28px 30px;
}

body.invoice-page .sewing-system-page > .invoice-builder-head::before {
  display: none;
}

body.invoice-page .sewing-system-page .invoice-builder-head .auth-brand {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--sewing-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  padding: 0;
}

body.invoice-page .sewing-system-page .invoice-builder-head h1 {
  color: #172027;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: none;
  text-transform: none;
}

body.invoice-page .sewing-system-page .invoice-builder-head p:not(.auth-brand) {
  color: var(--sewing-muted);
  font-size: 0.98rem;
  margin: 8px 0 0;
  max-width: 650px;
}

body.invoice-page .sewing-system-page .cashier-head-actions {
  align-self: center;
}

body.invoice-page .sewing-system-page .cashier-head-actions .invoice-print-button,
body.invoice-page .sewing-system-page .cashier-head-actions .cashier-action-button {
  background: #effafa;
  border: 1px solid rgba(0, 143, 134, 0.25);
  border-radius: 12px;
  box-shadow: none;
  color: var(--sewing-accent);
  font-weight: 800;
  min-height: 46px;
  padding-inline: 22px;
}

body.invoice-page .sewing-system-page .sewing-tabs {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 0;
}

body.invoice-page .sewing-system-page .sewing-tabs a,
body.invoice-page .sewing-system-page .sewing-tabs button {
  background: var(--sewing-card);
  border: 1px solid rgba(15, 31, 38, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(21, 40, 44, 0.08);
  color: #172027;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0;
  min-height: 72px;
  padding: 0 18px 0 28px;
  text-align: left;
  text-transform: none;
}

body.invoice-page .sewing-system-page .sewing-tabs a::before,
body.invoice-page .sewing-system-page .sewing-tabs button::before {
  background: #cddbe0;
  border-radius: 999px;
  content: "";
  inset: 18px auto 18px 16px;
  opacity: 1;
  position: absolute;
  width: 4px;
  z-index: 0;
}

body.invoice-page .sewing-system-page .sewing-tabs a:hover,
body.invoice-page .sewing-system-page .sewing-tabs a:focus-visible,
body.invoice-page .sewing-system-page .sewing-tabs a.active,
body.invoice-page .sewing-system-page .sewing-tabs button:hover,
body.invoice-page .sewing-system-page .sewing-tabs button:focus-visible,
body.invoice-page .sewing-system-page .sewing-tabs button.active {
  background: #eaf8f7;
  border-color: rgba(0, 143, 134, 0.26);
  box-shadow: 0 18px 42px rgba(0, 143, 134, 0.1);
  color: #172027;
  transform: none;
}

body.invoice-page .sewing-system-page .sewing-tabs a:hover::before,
body.invoice-page .sewing-system-page .sewing-tabs a:focus-visible::before,
body.invoice-page .sewing-system-page .sewing-tabs a.active::before,
body.invoice-page .sewing-system-page .sewing-tabs button:hover::before,
body.invoice-page .sewing-system-page .sewing-tabs button:focus-visible::before,
body.invoice-page .sewing-system-page .sewing-tabs button.active::before {
  background: var(--sewing-accent);
  opacity: 1;
}

body.invoice-page .sewing-system-page .sewing-subtabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
}

body.invoice-page .sewing-system-page .sewing-subtabs a {
  min-height: 58px;
}

body.invoice-page .sewing-system-page .cashier-workspace {
  gap: 18px;
}

body.invoice-page .sewing-system-page .cashier-panel,
body.invoice-page .sewing-system-page .cashier-summary article,
body.invoice-page .sewing-system-page .sewing-filter-panel,
body.invoice-page .sewing-system-page .sewing-input-zone,
body.invoice-page .sewing-system-page .sewing-job-row,
body.invoice-page .sewing-system-page .packing-empty-state {
  background: var(--sewing-card);
  border: 1px solid rgba(15, 31, 38, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(21, 40, 44, 0.08);
  color: #172027;
}

body.invoice-page .sewing-system-page .cashier-panel {
  padding: 22px;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sewing-border);
  border-radius: 0;
  padding: 0 0 18px;
}

body.invoice-page .sewing-system-page .cashier-panel .dashboard-kicker,
body.invoice-page .sewing-system-page .sewing-job-main .dashboard-kicker {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--sewing-accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0;
  text-shadow: none;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head h2 {
  color: #172027;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

body.invoice-page .sewing-system-page .cashier-panel .packing-panel-head small,
body.invoice-page .sewing-system-page .sewing-job-main p,
body.invoice-page .sewing-system-page .sewing-cost-stack small,
body.invoice-page .sewing-system-page .sewing-empty-note,
body.invoice-page .sewing-system-page .packing-empty-state p {
  color: var(--sewing-muted);
}

body.invoice-page .sewing-system-page .cashier-summary article {
  gap: 8px;
}

body.invoice-page .sewing-system-page .cashier-summary span,
body.invoice-page .sewing-system-page .cashier-summary small {
  color: var(--sewing-muted);
}

body.invoice-page .sewing-system-page .cashier-summary strong,
body.invoice-page .sewing-system-page .sewing-cost-stack strong {
  color: var(--sewing-accent);
  text-shadow: none;
}

body.invoice-page .sewing-system-page .sewing-filter-panel {
  margin: 0 0 18px;
  padding: 12px;
}

body.invoice-page .sewing-system-page .sewing-filter-toggle {
  color: #172027;
  letter-spacing: 0;
  text-transform: none;
}

body.invoice-page .sewing-system-page .sewing-filter-icon {
  background: var(--sewing-accent-soft);
  border: 1px solid rgba(0, 143, 134, 0.25);
  border-radius: 12px;
  box-shadow: none;
  color: var(--sewing-accent);
}

body.invoice-page .sewing-system-page .sewing-filter-toggle b {
  background: #eef8f7;
  border-color: rgba(0, 143, 134, 0.28);
  color: var(--sewing-accent);
}

body.invoice-page .sewing-system-page .sewing-filter-form {
  border-top: 1px solid var(--sewing-border);
}

body.invoice-page .sewing-system-page .sewing-filter-form span,
body.invoice-page .sewing-system-page .sewing-input-grid span,
body.invoice-page .sewing-system-page .sewing-receipt-form span {
  color: #43525a;
}

body.invoice-page .sewing-system-page .sewing-filter-form input,
body.invoice-page .sewing-system-page .sewing-filter-form select,
body.invoice-page .sewing-system-page .sewing-input-grid input,
body.invoice-page .sewing-system-page .sewing-input-grid select,
body.invoice-page .sewing-system-page .sewing-receipt-form input {
  background: #f7fbfb;
  border: 1px solid #dbe8e9;
  border-radius: 12px;
  color: #172027;
  min-height: 48px;
}

body.invoice-page .sewing-system-page .sewing-filter-form input:focus,
body.invoice-page .sewing-system-page .sewing-filter-form select:focus,
body.invoice-page .sewing-system-page .sewing-input-grid input:focus,
body.invoice-page .sewing-system-page .sewing-input-grid select:focus,
body.invoice-page .sewing-system-page .sewing-receipt-form input:focus {
  border-color: rgba(0, 143, 134, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 143, 134, 0.1);
}

body.invoice-page .sewing-system-page .sewing-input-grid input::placeholder {
  color: #7a8a91;
}

body.invoice-page .sewing-system-page .sewing-input-only .sewing-input-zone {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.invoice-page .sewing-system-page .sewing-job-main h3,
body.invoice-page .sewing-system-page .sewing-material-details summary,
body.invoice-page .sewing-system-page .packing-empty-state strong {
  color: #172027;
  text-shadow: none;
}

body.invoice-page .sewing-system-page .sewing-metrics div,
body.invoice-page .sewing-system-page .sewing-material-row,
body.invoice-page .sewing-system-page .sewing-history-row {
  background: #f7fbfb;
  border: 1px solid #e0eaeb;
  box-shadow: none;
  color: #172027;
}

body.invoice-page .sewing-system-page .sewing-metrics dt,
body.invoice-page .sewing-system-page .sewing-material-row small {
  color: var(--sewing-muted);
}

body.invoice-page .sewing-system-page .sewing-metrics dd,
body.invoice-page .sewing-system-page .sewing-material-row strong,
body.invoice-page .sewing-system-page .sewing-history-row strong {
  color: #172027;
}

body.invoice-page .sewing-system-page .sewing-material-head {
  background: #e5f7f5;
  color: #172027;
}

body.invoice-page .sewing-system-page .sewing-receipt-form {
  border-top: 1px solid var(--sewing-border);
}

body.invoice-page .sewing-system-page .cashier-action-button,
body.invoice-page .sewing-system-page .invoice-print-button {
  background: var(--sewing-accent);
  border: 1px solid var(--sewing-accent);
  border-radius: 12px;
  color: #ffffff;
  box-shadow: none;
}

body.invoice-page .sewing-system-page .invoice-print-button:hover,
body.invoice-page .sewing-system-page .invoice-print-button:focus-visible,
body.invoice-page .sewing-system-page .cashier-action-button:hover,
body.invoice-page .sewing-system-page .cashier-action-button:focus-visible {
  background: #007c75;
  border-color: #007c75;
  color: #ffffff;
}

@media (max-width: 860px) {
  body.invoice-page .sewing-system-page {
    max-width: min(100%, calc(100vw - 24px));
  }

  body.invoice-page .sewing-system-page > .invoice-builder-head {
    align-items: start;
    border-radius: 20px;
    display: grid;
    padding: 24px;
  }

  body.invoice-page .sewing-system-page .sewing-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.invoice-page .sewing-system-page .sewing-input-grid,
  body.invoice-page .sewing-system-page .sewing-filter-form,
  body.invoice-page .sewing-system-page .sewing-receipt-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.invoice-page .sewing-system-page .invoice-builder-head h1 {
    font-size: 2.45rem;
  }

  body.invoice-page .sewing-system-page .sewing-tabs,
  body.invoice-page .sewing-system-page .sewing-input-grid,
  body.invoice-page .sewing-system-page .sewing-filter-form,
  body.invoice-page .sewing-system-page .sewing-receipt-form {
    grid-template-columns: 1fr;
  }

  body.invoice-page .sewing-system-page .sewing-tabs a,
  body.invoice-page .sewing-system-page .sewing-tabs button {
    min-height: 60px;
  }
}

/* Packing Board black-gold contrast fixes. */
body.packing-page .packing-tabs {
  background: rgba(255, 250, 241, 0.96);
  border-color: rgba(244, 209, 124, 0.52);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body.packing-page .packing-tabs a,
body.packing-page .packing-guide-tab {
  color: #2b2112;
  font-weight: 650;
}

body.packing-page .packing-tabs a:hover,
body.packing-page .packing-tabs a.active,
body.packing-page .packing-guide-tab:hover,
body.packing-page .packing-guide-tab:focus-visible {
  background: #fff3d7;
  border-color: rgba(201, 144, 47, 0.5);
  color: #8a5608;
}

body.packing-page .packing-tabs em {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  border-color: #141311;
  color: #111315;
}

body.packing-page .packing-guide-modal {
  background: rgba(4, 5, 6, 0.82);
}

body.packing-page .packing-guide-panel {
  background: #fffaf1;
  border: 1px solid rgba(191, 132, 34, 0.35);
  border-top: 5px solid #d8a247;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color: #171515;
}

body.packing-page .packing-guide-panel header {
  border-bottom: 1px solid rgba(191, 132, 34, 0.22);
  padding-bottom: 14px;
}

body.packing-page .packing-guide-panel h2,
body.packing-page .packing-guide-content {
  color: #171515;
}

body.packing-page .packing-guide-content {
  background: #fffdf8;
  border: 1px solid rgba(191, 132, 34, 0.18);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.85;
  padding: 18px 20px;
}

body.packing-page .packing-guide-panel button {
  background: #211b12;
  color: #fffaf1;
}

body.packing-page .packing-guide-panel button:hover,
body.packing-page .packing-guide-panel button:focus-visible {
  background: #d8a247;
  color: #111315;
}

body.packing-page .packing-panel,
body.packing-page .packing-entry-card,
body.packing-page .packing-history-filters {
  background: linear-gradient(145deg, rgba(37, 35, 30, 0.96), rgba(31, 27, 20, 0.96));
  border-color: rgba(244, 209, 124, 0.34);
  color: #fff8ea;
}

body.packing-page .packing-panel-head h2,
body.packing-page .packing-entry-main h3,
body.packing-page .packing-entry-toggle-name,
body.packing-page .packing-panel label,
body.packing-page .packing-product-head strong,
body.packing-page .packing-history-filters label,
body.packing-page .packing-file-field,
body.packing-page .packing-checks span {
  color: #fff8ea;
}

body.packing-page .packing-entry-card p,
body.packing-page .packing-entry-card small,
body.packing-page .packing-entry-toggle small,
body.packing-page .packing-entry-card dt,
body.packing-page .packing-checks small,
body.packing-page .packing-panel > small,
body.packing-page .packing-recipient-picker > small,
body.packing-page .packing-inline-check small {
  color: #d8c6a7;
}

body.packing-page .packing-panel input,
body.packing-page .packing-panel select,
body.packing-page .packing-panel textarea,
body.packing-page .packing-history-filters input,
body.packing-page .packing-history-filters select,
body.packing-page .packing-shipping-trigger {
  background: #fffaf1;
  border-color: rgba(244, 209, 124, 0.46);
  color: #1b1711;
}

body.packing-page .packing-panel input::placeholder,
body.packing-page .packing-panel textarea::placeholder,
body.packing-page .packing-history-filters input::placeholder {
  color: #766853;
  opacity: 1;
}

body.packing-page .packing-panel input[readonly] {
  background: #eee7db;
  color: #5f5548;
}

body.packing-page .packing-quick-customer {
  background: #fffaf1;
  border-color: rgba(244, 209, 124, 0.62);
  color: #1b1711;
}

body.packing-page .packing-quick-customer label,
body.packing-page .packing-quick-customer .phone-input label,
body.packing-page .packing-quick-customer small {
  color: #2b2112;
}

body.packing-page .packing-quick-customer input,
body.packing-page .packing-quick-customer select {
  background: #fffdf8;
  border-color: rgba(201, 144, 47, 0.38);
  color: #1b1711;
}

body.packing-page .packing-quick-customer input::placeholder {
  color: #766853;
}

body.packing-page .packing-quick-customer-actions button {
  background: #f4d17c;
  border-color: #f4d17c;
  color: #111315;
}

body.packing-page .packing-quick-customer-actions button:hover,
body.packing-page .packing-quick-customer-actions button:focus-visible {
  background: #ffd986;
  border-color: #ffd986;
  color: #111315;
}

body.packing-page .packing-secondary-action,
body.packing-page .packing-product-head button,
body.packing-page .packing-product-row button,
body.packing-page .packing-file-action {
  background: #fff7e8;
  border-color: rgba(244, 209, 124, 0.5);
  color: #2b2112;
}

body.packing-page .packing-secondary-action:hover,
body.packing-page .packing-secondary-action:focus-visible,
body.packing-page .packing-product-head button:hover,
body.packing-page .packing-product-row button:hover,
body.packing-page .packing-file-action:hover,
body.packing-page .packing-file-action:focus-within {
  background: #f4d17c;
  color: #111315;
}

body.packing-page .packing-product-head button:disabled,
body.packing-page .packing-submit:disabled,
body.packing-page .packing-update-button:disabled {
  background: rgba(255, 250, 241, 0.34);
  border-color: rgba(244, 209, 124, 0.22);
  color: rgba(255, 248, 234, 0.62);
  opacity: 1;
}

body.packing-page .packing-checks {
  background: rgba(255, 250, 241, 0.09);
  border-color: rgba(244, 209, 124, 0.28);
}

body.packing-page .packing-checks label {
  color: #fff8ea;
}

body.packing-page .packing-checks input[type="checkbox"] {
  accent-color: #f4d17c;
  background: #fffaf1;
  border: 1px solid rgba(244, 209, 124, 0.56);
}

body.packing-page .packing-checks input[type="checkbox"]:disabled {
  accent-color: #9f8f71;
  opacity: 0.78;
}

body.packing-page .packing-checks input[type="checkbox"]:disabled + span {
  color: rgba(255, 248, 234, 0.86);
}

body.packing-page .packing-checks input[type="checkbox"]:not(:disabled) + span {
  color: #fff8ea;
}

body.packing-page .packing-checks input[type="checkbox"]:checked + span,
body.packing-page .packing-checks input[type="checkbox"]:disabled:checked + span {
  color: #fff8ea;
}

body.packing-page .packing-checks input[type="checkbox"]:checked + span small,
body.packing-page .packing-checks input[type="checkbox"]:disabled:checked + span small {
  color: #d8c6a7;
}

body.packing-page .packing-note {
  background: #fff3d7;
  border-color: rgba(244, 209, 124, 0.72);
  color: #2b2112 !important;
  text-shadow: none;
}

body.packing-page .packing-note b {
  color: #8a5608;
}

body.packing-page .packing-status-row span {
  background: rgba(255, 250, 241, 0.12);
  color: #d8c6a7;
}

body.packing-page .packing-status-row span.is-done {
  background: rgba(75, 181, 113, 0.18);
  color: #9ff0bd;
}

body.packing-page .packing-status-row span.packing-input-badge {
  background: rgba(244, 209, 124, 0.18);
  border: 1px solid rgba(244, 209, 124, 0.45);
  color: #ffe1a0;
}

body.packing-page .packing-status-row span.packing-order-code-badge {
  background: rgba(15, 143, 134, 0.16);
  border: 1px solid rgba(15, 143, 134, 0.38);
  color: #9ff0ea;
}

body.packing-page .packing-print-address-button,
body.packing-page .packing-update-button,
body.packing-page .packing-history-filters button {
  background: #f4d17c;
  border-color: #f4d17c;
  color: #111315;
}

body.packing-page .packing-print-address-button:hover,
body.packing-page .packing-print-address-button:focus-visible,
body.packing-page .packing-update-button:hover,
body.packing-page .packing-update-button:focus-visible,
body.packing-page .packing-history-filters button:hover,
body.packing-page .packing-history-filters button:focus-visible {
  background: #ffd986;
  border-color: #ffd986;
  color: #111315;
}

body.packing-page .packing-recipient-options,
body.packing-page .packing-shipping-menu {
  background: #fffaf1;
  border-color: rgba(244, 209, 124, 0.48);
  color: #1b1711;
}

body.packing-page .packing-recipient-options button,
body.packing-page .packing-shipping-option {
  background: transparent;
  border-bottom-color: rgba(201, 144, 47, 0.18);
  color: #1b1711;
}

body.packing-page .packing-recipient-options button:hover,
body.packing-page .packing-recipient-options button.is-selected,
body.packing-page .packing-shipping-option:hover,
body.packing-page .packing-shipping-option:focus-visible {
  background: #fff0cf;
  color: #8a5608;
}

body.packing-page .packing-shipping-option.is-selected {
  background: #2f6fed;
  color: #fff;
}

body.packing-page .home-bottom-nav {
  background: rgba(10, 11, 11, 0.98);
  border-top-color: rgba(244, 209, 124, 0.34);
}

body.packing-page .home-bottom-nav a,
body.packing-page .home-bottom-nav button {
  color: rgba(255, 248, 234, 0.78);
}

body.packing-page .home-bottom-nav a.active,
body.packing-page .home-bottom-nav button.active,
body.packing-page .home-bottom-nav a:hover,
body.packing-page .home-bottom-nav button:hover {
  color: #f4d17c;
}

body:has(.public-confirm-page) .public-confirm-card {
  background: #fffdf8;
  border-color: rgba(216, 162, 71, 0.5);
  color: #1b1711;
}

body:has(.public-confirm-page) .public-confirm-card .auth-brand {
  background: linear-gradient(90deg, #f6d27a, #c58b2d);
  color: #050505 !important;
  font-weight: 800;
  opacity: 1;
}

body:has(.public-confirm-page) .public-confirm-card .auth-brand b {
  color: #050505 !important;
}

body:has(.public-confirm-page) .public-confirm-card h1 {
  color: #21190d !important;
  opacity: 1;
  text-shadow: none;
}

body:has(.public-confirm-page) .public-confirm-card p:not(.auth-brand) {
  color: #5d503f !important;
  opacity: 1;
}

body:has(.public-confirm-page) .public-confirm-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

body:has(.public-confirm-page) .public-confirm-summary span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(255, 249, 235, 0.92);
  border: 1px solid rgba(185, 130, 38, 0.24);
  border-radius: 8px;
}

body:has(.public-confirm-page) .public-confirm-summary small,
body:has(.public-confirm-page) .public-confirm-muted {
  color: #6d5f4b !important;
}

body:has(.public-confirm-page) .public-confirm-summary b {
  color: #21190d !important;
}

body:has(.public-confirm-page) .public-history-card {
  max-width: min(760px, calc(100vw - 24px));
}

body:has(.public-confirm-page) .public-order-history-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

body:has(.public-confirm-page) .public-order-history-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(185, 130, 38, 0.22);
  border-radius: 8px;
}

body:has(.public-confirm-page) .public-order-history-item > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body:has(.public-confirm-page) .public-order-history-item strong {
  color: #21190d !important;
}

body:has(.public-confirm-page) .public-order-history-item small,
body:has(.public-confirm-page) .public-order-history-recap {
  color: #6d5f4b !important;
}

body:has(.public-confirm-page) .public-order-history-recap {
  white-space: pre-wrap;
  word-break: break-word;
}

body:has(.public-confirm-page) .public-confirm-card label {
  color: #4f4028 !important;
  opacity: 1;
}

body:has(.public-confirm-page) .public-confirm-card select,
body:has(.public-confirm-page) .public-confirm-card textarea {
  background: #fff;
  border-color: rgba(185, 130, 38, 0.48);
  color: #111315 !important;
}

body:has(.public-confirm-page) .public-confirm-card textarea::placeholder {
  color: #6e665d !important;
  opacity: 1;
}

body:has(.public-confirm-page) .public-confirm-card button {
  background: linear-gradient(135deg, #f4d17c, #b98226);
  color: #111315 !important;
  font-weight: 800;
}

body:has(.public-confirm-page) .home-bottom-nav a,
body:has(.public-confirm-page) .home-bottom-nav button {
  color: rgba(255, 248, 234, 0.92);
}

body:has(.public-confirm-page) .home-bottom-nav svg {
  stroke-width: 2.25;
}

body:has(.public-confirm-page) .home-bottom-nav small {
  color: currentColor;
  font-weight: 800;
}

body.chat-panel-embed {
  background: #100b12 !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

body.chat-panel-embed::before,
body.chat-panel-embed::after,
body.chat-panel-embed .topbar,
body.chat-panel-embed .home-bottom-nav,
body.chat-panel-embed .notification-modal-backdrop {
  display: none !important;
}

body.chat-panel-embed .shell {
  background: #100b12 !important;
  display: block !important;
  height: 100dvh !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body.chat-panel-embed .chat-layout {
  animation: none !important;
  background: #130d14 !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  height: 100dvh !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  width: 100% !important;
}

body.chat-panel-embed .chat-head {
  background: #211421 !important;
}

body.chat-panel-embed .thread {
  background: #eee5df !important;
}

body.chat-panel-embed .reply {
  background: #181018 !important;
}

body.chat-panel-embed .chat-action-menu-backdrop {
  align-items: start;
  padding-top: 76px;
  padding-bottom: 132px;
}

body.chat-panel-embed .chat-action-menu-dialog {
  max-height: calc(100dvh - 208px);
}

.schedule-modal {
  --schedule-gold: #c9902f;
  --schedule-gold-dark: #7a4b00;
  --schedule-ink: #24190d;
  --schedule-muted: #6f5d42;
  --schedule-panel: #fffaf0;
  background: #fffdf7;
  border-color: rgba(216, 162, 71, 0.48);
  color: var(--schedule-ink);
}

.schedule-modal .dashboard-kicker {
  background: linear-gradient(135deg, #f4d17c, var(--schedule-gold));
  color: #111315;
  opacity: 1;
}

.schedule-modal-head h2,
.schedule-modal-panel h3,
.schedule-modal-shift h3 {
  color: var(--schedule-ink);
  opacity: 1;
  text-shadow: none;
}

.schedule-modal-head span {
  background: #fff7e8;
  border-color: rgba(201, 144, 47, 0.46);
  color: var(--schedule-gold-dark);
}

.schedule-modal-close {
  background: #fff7e8;
  border-color: rgba(201, 144, 47, 0.48);
  color: var(--schedule-gold-dark);
  opacity: 1;
}

.schedule-modal-close:hover,
.schedule-modal-close:focus-visible {
  background: #f4d17c;
  color: #111315;
}

.schedule-modal-shift,
.schedule-modal-panel {
  background: var(--schedule-panel);
  border-color: rgba(201, 144, 47, 0.3);
  color: var(--schedule-ink);
}

.schedule-modal-shift p,
.schedule-modal-panel label,
.schedule-modal-note {
  color: var(--schedule-muted);
}

.schedule-modal-shift p,
.attendance-detail-list dt {
  color: var(--schedule-gold-dark);
  opacity: 1;
}

.schedule-modal-shift li,
.attendance-status-grid span,
.attendance-detail-list article,
.attendance-detail-list dl div {
  background: #fff;
  border-color: rgba(201, 144, 47, 0.24);
  color: var(--schedule-ink);
}

.schedule-modal-shift li b,
.attendance-detail-list strong,
.attendance-status-grid b,
.attendance-detail-list dd {
  color: var(--schedule-ink);
  opacity: 1;
}

.schedule-modal-shift li span,
.attendance-detail-list small,
.attendance-status-grid span {
  color: var(--schedule-muted);
  opacity: 1;
}

.owner-attendance-editor {
  border-top-color: rgba(201, 144, 47, 0.3);
}

.owner-attendance-editor summary,
.attendance-sick-proof-field a {
  color: #9a6107;
  opacity: 1;
}

.schedule-modal-panel input,
.schedule-modal-panel select,
.owner-attendance-editor input,
.owner-attendance-editor select {
  background: #fff;
  border-color: rgba(201, 144, 47, 0.36);
  color: var(--schedule-ink);
}

.schedule-modal .schedule-action-button,
.schedule-modal-panel button {
  background: linear-gradient(135deg, #f4d17c, var(--schedule-gold)) !important;
  border: 1px solid rgba(122, 75, 0, 0.28) !important;
  color: #111315 !important;
  -webkit-text-fill-color: #111315 !important;
  opacity: 1 !important;
}

.schedule-modal .schedule-action-button:hover,
.schedule-modal-panel button:hover,
.schedule-modal .schedule-action-button:focus-visible,
.schedule-modal-panel button:focus-visible {
  background: linear-gradient(135deg, #ffd986, #b98226) !important;
  color: #111315 !important;
}

.schedule-modal .schedule-action-button:disabled,
.schedule-modal .schedule-action-button[disabled],
.schedule-modal .schedule-modal-panel button:disabled,
.schedule-modal .schedule-modal-panel button[disabled] {
  background: #d8cbb6 !important;
  border-color: #c9b695 !important;
  color: #51412a !important;
  -webkit-text-fill-color: #51412a !important;
  opacity: 1 !important;
}

@media print {
  body.is-printing-address {
    background: #fff !important;
    margin: 0 !important;
  }

  body.is-printing-address * {
    visibility: hidden !important;
  }

  body.is-printing-address .packing-address-label.is-active,
  body.is-printing-address .packing-address-label.is-active * {
    visibility: visible !important;
  }

  body.is-printing-address .packing-address-label.is-active {
    background: #fff;
    border: 0;
    box-sizing: border-box;
    color: #111;
    display: grid !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    gap: 2mm;
    grid-template-rows: auto auto auto auto auto auto;
    height: 99mm;
    left: 0;
    letter-spacing: 0;
    overflow: hidden;
    padding: 4mm;
    position: fixed;
    top: 0;
    width: 75mm;
  }

  .packing-address-label-head {
    align-items: center;
    border-bottom: 0.35mm solid #111;
    display: flex;
    justify-content: space-between;
    padding-bottom: 2mm;
  }

  .packing-address-label-head span {
    font-size: 12pt;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .packing-address-label-head strong {
    font-size: 17pt;
    font-weight: 800;
    letter-spacing: 0.18em;
  }

  .packing-address-label-block {
    display: grid;
    gap: 1mm;
  }

  .packing-address-label small {
    color: #555;
    display: block;
    font-size: 6.7pt;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .packing-address-label h2,
  .packing-address-label p,
  .packing-address-label ul {
    margin: 0;
  }

  .packing-address-label-recipient {
    border-bottom: 0.25mm solid #d8d8d8;
    padding-bottom: 1.6mm;
  }

  .packing-address-label h2 {
    font-size: 15.5pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
  }

  .packing-address-label p {
    font-size: 8.4pt;
    font-weight: 500;
    line-height: 1.28;
  }

  .packing-address-label-sender,
  .packing-address-label-sender-phone {
    font-size: 9pt !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
  }

  .packing-address-label ul {
    display: grid;
    gap: 0.8mm;
    list-style: none;
    padding: 0;
  }

  .packing-address-label li {
    align-items: start;
    display: grid;
    font-size: 8.6pt;
    gap: 2mm;
    grid-template-columns: minmax(0, 1fr) auto;
    line-height: 1.2;
  }

  .packing-address-label li span {
    font-weight: 600;
  }

  .packing-address-label li b {
    font-weight: 800;
  }

  .packing-address-label-grid {
    border-bottom: 0.25mm solid #d8d8d8;
    border-top: 0.25mm solid #d8d8d8;
    display: grid;
    gap: 2mm;
    grid-template-columns: 1fr 1fr;
    padding: 1.5mm 0;
  }

  .packing-address-label-grid p {
    font-size: 9pt;
    font-weight: 800;
  }

  .packing-address-label footer {
    border-top: 0.35mm solid #111;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding-top: 1.5mm;
    text-align: center;
  }

  .packing-address-label.is-compact {
    gap: 1.45mm !important;
    padding: 3.5mm !important;
  }

  .packing-address-label.is-compact .packing-address-label-head {
    padding-bottom: 1.5mm;
  }

  .packing-address-label.is-compact .packing-address-label-head span {
    font-size: 11pt;
  }

  .packing-address-label.is-compact .packing-address-label-head strong {
    font-size: 15pt;
  }

  .packing-address-label.is-compact small {
    font-size: 6.1pt;
  }

  .packing-address-label.is-compact h2 {
    font-size: 13.5pt;
    line-height: 1;
  }

  .packing-address-label.is-compact p,
  .packing-address-label.is-compact li {
    font-size: 7.4pt;
    line-height: 1.16;
  }

  .packing-address-label.is-compact .packing-address-label-sender,
  .packing-address-label.is-compact .packing-address-label-sender-phone,
  .packing-address-label.is-compact .packing-address-label-grid p {
    font-size: 8pt !important;
  }

  .packing-address-label.is-compact .packing-address-label-grid,
  .packing-address-label.is-compact .packing-address-label-recipient {
    padding-bottom: 1.2mm;
  }

  .packing-address-label.is-compact footer {
    font-size: 6.5pt;
    padding-top: 1.1mm;
  }

  .packing-address-label.is-mini {
    gap: 1mm !important;
    padding: 3mm !important;
  }

  .packing-address-label.is-mini .packing-address-label-head {
    padding-bottom: 1mm;
  }

  .packing-address-label.is-mini .packing-address-label-head span {
    font-size: 10pt;
  }

  .packing-address-label.is-mini .packing-address-label-head strong {
    font-size: 13.5pt;
  }

  .packing-address-label.is-mini small {
    font-size: 5.4pt;
  }

  .packing-address-label.is-mini h2 {
    font-size: 11.5pt;
    line-height: 0.98;
  }

  .packing-address-label.is-mini p,
  .packing-address-label.is-mini li {
    font-size: 6.3pt;
    line-height: 1.1;
  }

  .packing-address-label.is-mini .packing-address-label-sender,
  .packing-address-label.is-mini .packing-address-label-sender-phone,
  .packing-address-label.is-mini .packing-address-label-grid p {
    font-size: 7pt !important;
  }

  .packing-address-label.is-mini .packing-address-label-grid,
  .packing-address-label.is-mini .packing-address-label-recipient {
    padding: 1mm 0;
  }

  .packing-address-label.is-mini footer {
    font-size: 5.7pt;
    padding-top: 0.9mm;
  }
}

.notification-modal {
  background: linear-gradient(145deg, rgba(34, 31, 27, 0.94), rgba(28, 26, 23, 0.9));
  backdrop-filter: blur(18px) saturate(1.08);
  color: #fff;
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.notification-modal-head h2,
.push-notification-card strong,
.notification-list strong,
.notification-modal-action {
  color: #fff;
}

.push-notification-card,
.notification-list a,
.notification-list article {
  background: linear-gradient(145deg, rgba(48, 42, 35, 0.92), rgba(39, 35, 30, 0.9));
  backdrop-filter: blur(12px) saturate(1.05);
  color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

.push-notification-card p,
.notification-list p,
.notification-list small {
  color: rgba(255, 255, 255, 0.82);
}

.push-notification-card button {
  color: #fff;
}
/* KSRF Custom Design Studio */
body.custom-design-page {
  background: #12100c;
}

.custom-studio {
  display: grid;
  gap: 18px;
  color: #f8fafc;
}

.custom-studio-title {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.custom-studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.custom-studio-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .95;
  letter-spacing: 0;
}

.custom-studio-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(248, 250, 252, .72);
}

.custom-studio-actions,
.custom-toolbar,
.custom-inline-controls,
.custom-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-tool-button,
.custom-toolbar button,
.custom-command,
.custom-upload,
.custom-layer-list button {
  border: 1px solid rgba(244, 197, 66, .28);
  background: rgba(255, 252, 245, .96);
  color: #15110b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.custom-tool-button,
.custom-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 8px;
}

.custom-toolbar a.custom-tool-button {
  text-decoration: none;
}

.custom-tool-button svg,
.custom-toolbar svg,
.custom-element-actions svg,
.custom-command svg,
.custom-upload svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-tool-button.is-primary {
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 14px;
  background: #f4c542;
}

.custom-studio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}

.custom-studio-layout > * {
  min-width: 0;
}

.custom-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 197, 66, .2);
  border-radius: 8px;
  background: rgba(255, 252, 245, .08);
  backdrop-filter: blur(18px);
}

.custom-control-group {
  display: grid;
  gap: 9px;
}

.custom-product-toggle,
.custom-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 252, 245, .94);
  color: #15110b;
  font: inherit;
  cursor: pointer;
}

.custom-product-toggle span,
.custom-section-toggle span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.custom-product-toggle svg,
.custom-section-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.custom-product-toggle.is-open svg,
.custom-section-toggle.is-open svg {
  transform: rotate(180deg);
}

.custom-product-options,
.custom-text-options,
.custom-image-tool-options {
  display: grid;
  gap: 7px;
}

.custom-product-options[hidden],
.custom-text-options[hidden],
.custom-image-tool-options[hidden] {
  display: none;
}

.custom-product-picker {
  display: grid;
  gap: 6px;
}

.custom-product-details {
  display: grid;
  gap: 7px;
}

.custom-select-field {
  position: relative;
  display: grid;
  gap: 3px;
}

.custom-select-field span {
  color: rgba(248, 250, 252, .62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.custom-select-field select {
  min-height: 30px;
  width: 100%;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 7px;
  padding: 0 30px 0 9px;
  background: rgba(255, 252, 245, .94);
  color: #15110b;
  font: inherit;
  font-size: .7rem;
  font-weight: 650;
}

.custom-select-field em {
  position: absolute;
  right: 28px;
  bottom: 7px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: var(--selected-color, #111111);
  pointer-events: none;
}

.custom-control-group h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .68rem;
  color: #f4c542;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.custom-control-group > label span {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}

.custom-control-group label {
  display: grid;
  gap: 5px;
  color: rgba(248, 250, 252, .76);
  font-size: .74rem;
  font-weight: 800;
}

.custom-control-group input[type="text"],
.custom-control-group input[type="number"],
.custom-control-group select {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(244, 197, 66, .24);
  border-radius: 7px;
  padding: 0 10px;
  background: #fffaf0;
  color: #15110b;
  font: inherit;
  font-weight: 800;
}

.custom-control-group input[type="color"] {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(244, 197, 66, .24);
  border-radius: 8px;
  padding: 4px;
  background: #fffaf0;
}

.custom-control-group input[type="range"] {
  width: 100%;
  accent-color: #f4c542;
}

.custom-svg-color-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.custom-svg-color-controls[hidden] {
  display: none;
}

.custom-svg-color-controls label {
  gap: 4px;
}

.custom-inline-controls {
  align-items: end;
}

.custom-inline-controls label {
  flex: 1 1 0;
}

.custom-swatches {
  flex-wrap: wrap;
}

.custom-swatches button {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.custom-command,
.custom-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 7px;
  padding: 0 10px;
  font-size: .78rem;
  color: #15110b;
}

.custom-command-ai {
  background: #e7f7ff;
  border-color: rgba(77, 190, 226, .52);
}

.custom-command:disabled {
  cursor: wait;
  opacity: .62;
}

.custom-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-design-library {
  display: grid;
  gap: 8px;
}

.custom-design-library[hidden] {
  display: none;
}

.custom-design-library button {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border: 1px solid rgba(244, 197, 66, .22);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 252, 245, .94);
  color: #15110b;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.custom-design-library button span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(0,0,0,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.08) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.custom-design-library img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.custom-design-library p {
  margin: 0;
  color: rgba(248, 250, 252, .68);
  font-size: .72rem;
}

.custom-image-tools {
  padding-top: 4px;
}

.custom-image-tool-preview {
  display: grid;
  place-items: center;
  min-height: 138px;
  border: 1px solid rgba(244, 197, 66, .2);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.06) 75%);
  background-color: rgba(255, 252, 245, .05);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  overflow: hidden;
}

.custom-image-tool-preview span,
.custom-image-tool-options p {
  margin: 0;
  color: rgba(248, 250, 252, .66);
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}

.custom-image-tool-preview img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.custom-control-group .custom-check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: rgba(248, 250, 252, .76);
  font-size: .74rem;
  font-weight: 800;
}

.custom-control-group .custom-check-field input {
  width: 16px;
  height: 16px;
  accent-color: #f4c542;
}

.custom-image-tool-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-image-tool-actions button {
  min-height: 36px;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 7px;
  background: rgba(255, 252, 245, .96);
  color: #15110b;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}

.custom-image-tool-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.custom-canvas-zone {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.custom-toolbar {
  justify-content: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(244, 197, 66, .2);
  border-radius: 8px;
  background: rgba(255, 252, 245, .08);
}

.custom-zoom-controls,
.custom-pan-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border: 1px solid rgba(244, 197, 66, .2);
  border-radius: 8px;
  background: rgba(255, 252, 245, .08);
}

.custom-zoom-controls span {
  min-width: 42px;
  color: rgba(248, 250, 252, .82);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.custom-pan-controls button {
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.custom-element-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.custom-element-actions button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 8px;
  background: rgba(255, 252, 245, .96);
  color: #15110b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.custom-canvas-wrap {
  display: grid;
  place-items: center;
  min-height: 640px;
  border: 1px solid rgba(244, 197, 66, .24);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.04) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 0 17px, 17px -17px, -17px 0;
  overflow: hidden;
}

.custom-canvas-wrap canvas {
  width: min(100%, 620px);
  max-width: none;
  height: auto;
  aspect-ratio: 9 / 11;
  display: block;
  touch-action: none;
  cursor: grab;
  border-radius: 8px;
}

.custom-canvas-wrap canvas:active {
  cursor: grabbing;
}

.custom-layer-list {
  display: grid;
  gap: 8px;
}

.custom-layer-list button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-layer-list button.is-active {
  background: #f4c542;
}

.custom-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(244, 197, 66, .12);
  color: rgba(248, 250, 252, .76);
}

.custom-note strong {
  color: #f8fafc;
}

.custom-note p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.55;
}

.custom-settings-page {
  display: grid;
  gap: 18px;
  color: #f8fafc;
}

.custom-settings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.custom-settings-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .95;
  letter-spacing: 0;
}

.custom-settings-head p:not(.settings-eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(248, 250, 252, .72);
}

.custom-settings-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 8px;
  padding: 0 14px;
  background: #f4c542;
  color: #15110b;
  font-weight: 800;
  text-decoration: none;
}

.custom-settings-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.custom-settings-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.custom-settings-menu .settings-card {
  color: #f8fafc;
  text-decoration: none;
}

.custom-catalog-form {
  display: grid;
  gap: 18px;
}

.custom-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.custom-mockup-settings {
  display: grid;
  gap: 12px;
}

.custom-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-mockup-head h2,
.custom-mockup-head p {
  margin: 0;
}

.custom-mockup-head p {
  color: rgba(248, 250, 252, .68);
}

.custom-mockup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 197, 66, .18);
  border-radius: 8px;
  background: rgba(255, 252, 245, .06);
}

.custom-mockup-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.custom-mockup-row [data-remove-custom-mockup] {
  align-self: start;
  min-height: 42px;
  border-radius: 8px;
  padding: 0;
  font-size: 1.4rem;
}

.custom-product-input-form {
  display: grid;
  gap: 18px;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.custom-form-submit-bar {
  display: grid;
  padding-top: 8px;
  background: transparent;
}

.custom-design-asset-fields .custom-form-submit-bar {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 70;
  padding: 10px 0 0;
  background: linear-gradient(180deg, rgba(31, 28, 24, 0), rgba(31, 28, 24, .96) 38%);
}

.custom-product-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.custom-design-asset-input-grid {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(360px, 1.2fr);
  align-items: start;
  gap: 18px;
}

.custom-design-asset-fields {
  display: grid;
  gap: 16px;
}

.custom-design-asset-fields label {
  display: grid;
  gap: 7px;
}

.custom-design-asset-fields select {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(244, 197, 66, .24);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #15110b;
  font: inherit;
}

.custom-design-asset-preview-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.custom-design-asset-preview-title {
  color: rgba(255, 252, 245, .78);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-design-asset-input-grid .custom-image-preview {
  min-height: 420px;
  max-height: min(58vh, 560px);
}

.custom-design-asset-input-grid .custom-image-preview img {
  width: auto;
  max-width: 100%;
  max-height: min(54vh, 520px);
}

.custom-design-preview-bg.custom-design-preview-bg {
  background: #fff;
}

.custom-design-preview-bg.custom-design-preview-bg-black {
  border-color: rgba(255, 255, 255, .28);
  background: #050505;
}

.custom-design-preview-bg.custom-design-preview-bg-white {
  border-color: rgba(0, 0, 0, .12);
  background: #fff;
}

.custom-product-input-grid label {
  display: grid;
  gap: 7px;
}

.custom-product-input-grid input[type="file"] {
  padding: 10px;
}

.custom-image-input {
  align-self: start;
}

.custom-image-input-wide {
  grid-column: span 2;
}

.custom-image-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid rgba(244, 197, 66, .18);
  border-radius: 8px;
  background: rgba(255, 252, 245, .06);
  overflow: hidden;
}

.custom-image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.custom-product-database {
  display: grid;
  gap: 12px;
}

.custom-product-table {
  display: grid;
  gap: 8px;
}

.custom-product-table-head,
.custom-product-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 160px;
  gap: 12px;
  align-items: center;
}

.custom-product-table-head {
  color: rgba(248, 250, 252, .58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.custom-product-row {
  padding: 12px;
  border: 1px solid rgba(244, 197, 66, .18);
  border-radius: 8px;
  background: rgba(255, 252, 245, .06);
}

.custom-product-row > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-product-row span,
.custom-product-images a,
.custom-product-actions a {
  color: rgba(248, 250, 252, .78);
  font-size: .84rem;
}

.custom-product-actions {
  justify-content: flex-end;
}

.custom-product-actions form {
  margin: 0;
}

.custom-product-actions a,
.custom-product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(244, 197, 66, .28);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 252, 245, .95);
  color: #15110b;
  font-weight: 800;
  text-decoration: none;
}

.custom-design-asset-table .custom-product-table-head,
.custom-design-asset-table .custom-product-row {
  grid-template-columns: 1fr 170px 160px;
}

.custom-design-asset-thumb {
  display: grid;
  place-items: center;
  width: 150px;
  height: 110px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 252, 245, .92);
}

.custom-design-asset-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .custom-studio-layout {
    grid-template-columns: 1fr;
  }

  .custom-category-grid,
  .custom-mockup-fields,
  .custom-product-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-design-asset-input-grid {
    grid-template-columns: 1fr;
  }

  .custom-design-asset-input-grid .custom-image-preview {
    min-height: 300px;
    max-height: 420px;
  }

  .custom-design-asset-input-grid .custom-image-preview img {
    max-height: 380px;
  }

  .custom-product-table-head {
    display: none;
  }

  .custom-product-row {
    grid-template-columns: 1fr;
  }

  .custom-panel {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .custom-panel-right {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1101px) {
  body.custom-design-page {
    overflow: hidden;
  }

  body.custom-design-page:has(.custom-settings-page) {
    overflow: auto;
  }

  body.custom-design-page .shell {
    height: calc(100vh - 64px);
    max-width: none;
    overflow: hidden;
    padding: 10px 36px 78px;
  }

  body.custom-design-page:has(.custom-settings-page) .shell {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  body.custom-design-page .topbar {
    min-height: 64px;
  }

  .custom-studio {
    height: 100%;
    gap: 0;
    min-height: 0;
  }

  .custom-studio-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr) minmax(260px, 350px);
    align-items: stretch;
  }

  .custom-panel {
    align-content: start;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .custom-canvas-zone {
    grid-template-rows: 58px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .custom-toolbar {
    justify-content: flex-start;
    min-height: 58px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .custom-tool-button,
  .custom-toolbar button {
    flex: 0 0 auto;
    height: 42px;
    min-width: 42px;
  }

  .custom-tool-button.is-primary {
    min-width: 104px;
  }

  .custom-zoom-controls,
  .custom-pan-controls {
    flex: 0 0 auto;
  }

  .custom-canvas-wrap {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .custom-canvas-wrap canvas {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 720px) {
  .custom-studio-head {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-settings-head,
  .custom-mockup-head {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-category-grid,
  .custom-mockup-fields,
  .custom-mockup-row,
  .custom-product-input-grid,
  .custom-design-asset-input-grid,
  .custom-settings-menu {
    grid-template-columns: 1fr;
  }

  .custom-studio-actions {
    justify-content: stretch;
  }

  .custom-tool-button {
    flex: 1 1 0;
  }

  .custom-canvas-wrap {
    min-height: 430px;
  }

  .custom-panel {
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .cashier-cash-in-page {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .cashier-cash-in-page .invoice-builder-head {
    gap: 12px;
    overflow: hidden;
    padding: 18px 14px 16px;
  }

  .cashier-cash-in-page .invoice-builder-head .auth-brand {
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.4em;
    max-width: 100%;
    padding: 5px 10px;
    white-space: normal;
    word-break: break-word;
  }

  .cashier-cash-in-page .invoice-builder-head h1 {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
    line-height: 1;
    margin-top: 8px;
    overflow-wrap: anywhere;
  }

  .cashier-cash-in-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.84rem;
    line-height: 1.42;
    max-width: 100%;
  }

  .cashier-cash-in-page .cashier-head-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .cashier-cash-out-page .cashier-head-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashier-cash-in-page .cashier-head-actions form,
  .cashier-cash-in-page .cashier-head-actions .invoice-print-button {
    min-width: 0;
    width: 100%;
  }

  .cashier-cash-in-page .cashier-head-actions .invoice-print-button {
    border-radius: 7px;
    font-size: 0.67rem;
    min-height: 34px;
    overflow: hidden;
    padding: 0 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cashier-cash-in-page .cashier-panel {
    border-radius: 8px;
    padding: 16px 14px;
  }

  .cashier-cash-in-page .packing-panel-head {
    gap: 8px;
  }

  .cashier-cash-in-page .dashboard-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    padding: 3px 6px;
  }

  .cashier-cash-in-page .packing-panel-head h2 {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .cashier-cash-in-page .packing-panel-head small {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .cashier-cash-in-page .cashier-form-grid {
    gap: 10px;
  }

  .cashier-cash-in-page .cashier-panel label {
    font-size: 0.78rem;
    gap: 6px;
  }

  .cashier-cash-in-page .cashier-panel input,
  .cashier-cash-in-page .cashier-panel select,
  .cashier-cash-in-page .cashier-panel textarea {
    border-radius: 7px;
    font-size: 0.82rem;
    min-height: 42px;
    padding: 0 11px;
  }

  .cashier-cash-in-page .cashier-cash-in-block {
    gap: 10px;
    padding: 10px;
  }

  .cashier-cash-in-page .cashier-inline-head {
    align-items: start;
    gap: 8px;
  }

  .cashier-cash-in-page .cashier-inline-head strong {
    font-size: 0.86rem;
  }

  .cashier-cash-in-page .cashier-inline-head small {
    font-size: 0.72rem;
  }

  .cashier-cash-in-page .cashier-cash-in-add-button,
  .cashier-cash-in-page .cashier-cash-in-line > button {
    border-radius: 7px;
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 9px;
  }

  .cashier-cash-in-page .cashier-cash-in-line,
  .cashier-cash-in-page .cashier-cash-in-line.is-customer-deposit,
  .cashier-cash-in-page .cashier-cash-in-line-receipt {
    column-gap: 8px;
    grid-template-columns: minmax(0, 1fr) 42px;
    margin-top: 12px;
    row-gap: 8px;
  }

  .cashier-cash-in-page .cashier-cash-in-line input:not([type="hidden"]),
  .cashier-cash-in-page .cashier-cash-in-line select {
    height: 42px;
    min-height: 42px;
  }

  .cashier-cash-in-page .cashier-cash-in-line > button {
    font-size: 1rem;
    height: 42px;
    min-height: 42px;
    width: 42px;
  }

  .cashier-cash-in-page .cashier-cash-in-total {
    font-size: 0.76rem;
    gap: 6px;
    justify-content: flex-start;
    padding: 9px;
  }

  .cashier-cash-in-page .cashier-form-actions {
    gap: 8px;
  }

  .cashier-cash-in-page .cashier-form-actions .invoice-print-button {
    border-radius: 7px;
    font-size: 0.82rem;
    min-height: 38px;
    padding: 0 12px;
  }

  .cashier-cash-in-page .cashier-cash-in-table {
    border-radius: 7px;
    overflow-x: hidden;
    width: 100%;
  }

  .cashier-cash-in-page .cashier-cash-in-row,
  .cashier-cash-in-page .cashier-cash-in-table.has-owner-actions .cashier-cash-in-row {
    gap: 4px;
    grid-template-columns: 44px minmax(72px, 0.95fr) minmax(76px, 1fr) 58px 38px;
    min-height: 46px;
    padding: 8px 6px;
  }

  .cashier-cash-in-page .cashier-cash-in-row {
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.15;
  }

  .cashier-cash-in-page .cashier-cash-in-row-head {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  .cashier-cash-in-page .cashier-cash-in-row strong,
  .cashier-cash-in-page .cashier-cash-in-row span {
    font-weight: 400;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cashier-cash-in-page .cashier-cash-in-row span small {
    font-size: 0.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin-top: 2px;
  }

  .cashier-cash-in-page .cashier-cash-in-detail-view {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px;
  }

  .cashier-cash-in-page .cashier-cash-in-detail-view section {
    border-radius: 7px;
    gap: 5px;
    padding: 9px;
  }

  .cashier-cash-in-page .cashier-cash-in-detail-view strong,
  .cashier-cash-in-page .cashier-cash-in-detail-view p,
  .cashier-cash-in-page .cashier-cash-in-detail-view b,
  .cashier-cash-in-page .cashier-cash-in-detail-view small,
  .cashier-cash-in-page .cashier-cash-in-detail-view a {
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .cashier-cash-in-page .cashier-cash-in-detail-view section > strong {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .cashier-cash-in-page .cashier-cash-in-detail-view p {
    gap: 4px;
  }

  .cashier-cash-in-page .cashier-detail-actions {
    gap: 6px;
  }

  .cashier-cash-in-page .cashier-detail-actions a,
  .cashier-cash-in-page .cashier-detail-actions button {
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 500;
    min-height: 26px;
    padding: 0 7px;
  }

  .cashier-cash-in-page .cashier-panel:first-child {
    padding: 14px 12px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .dashboard-kicker {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    padding: 3px 5px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .packing-panel-head h2 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.12;
  }

  .cashier-cash-in-page .cashier-panel:first-child .packing-panel-head small {
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.28;
  }

  .cashier-cash-in-page .cashier-panel:first-child label,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-inline-head strong,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-inline-head small {
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-inline-head strong {
    font-size: 0.72rem;
    font-weight: 500;
  }

  .cashier-cash-in-page .cashier-panel:first-child input,
  .cashier-cash-in-page .cashier-panel:first-child select,
  .cashier-cash-in-page .cashier-panel:first-child textarea {
    font-size: 0.7rem;
    font-weight: 400;
    height: 38px;
    min-height: 38px;
    padding: 0 9px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-block {
    gap: 8px;
    padding: 9px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-line,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-line.is-customer-deposit,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-line-receipt {
    margin-top: 10px;
    row-gap: 7px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-add-button,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-line > button,
  .cashier-cash-in-page .cashier-panel:first-child .cashier-form-actions .invoice-print-button {
    font-size: 0.66rem;
    font-weight: 500;
    min-height: 32px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-line > button {
    height: 38px;
    min-height: 38px;
    width: 38px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-total {
    font-size: 0.62rem;
    font-weight: 400;
    gap: 5px;
    padding: 8px;
  }

  .cashier-cash-in-page .cashier-panel:first-child .cashier-cash-in-total strong {
    font-weight: 500;
  }
}

/* Kas keluar mode selector: game-like, focused, and mobile friendly. */
@keyframes cashOutCardsFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.invoice-page .cashier-cash-out-page {
  --cashout-ink: #fff8ea;
  --cashout-muted: #d7c6a4;
  --cashout-panel: rgba(13, 13, 12, 0.5);
  --cashout-panel-soft: rgba(8, 8, 7, 0.5);
  --cashout-gold: #f0bf55;
  --cashout-cyan: #44d7d2;
  --cashout-pink: #ff4d87;
  --cashout-mobile-bg: image-set(
    url("/static/brand/ksrf-cash-out-mobile-bg-720.webp") type("image/webp"),
    url("/static/brand/ksrf-cash-out-mobile-bg.png") type("image/png")
  );
  background:
    linear-gradient(90deg, rgba(68, 215, 210, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(240, 191, 85, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 77, 135, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(68, 215, 210, 0.18), transparent 38%),
    url("/static/brand/ksrf-gta-menu-bg.png"),
    #080807 !important;
  background-position: center;
  background-size: 34px 34px, 34px 34px, auto, auto, cover, auto !important;
  border: 1px solid rgba(240, 191, 85, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.36);
}

body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
body.invoice-page .cashier-cash-out-page > .cashier-workspace {
  animation: cashOutCardsFadeIn 680ms ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

body.invoice-page .cashier-cash-out-page > .invoice-builder-head {
  animation-delay: 1s;
}

body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs {
  animation-delay: 1.22s;
}

body.invoice-page .cashier-cash-out-page > .cashier-workspace {
  animation-delay: 1.44s;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head {
  background: linear-gradient(135deg, rgba(10, 10, 9, 0.5), rgba(45, 30, 12, 0.5));
  border: 1px solid rgba(240, 191, 85, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 20px 46px rgba(0, 0, 0, 0.26);
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head h1,
body.invoice-page .cashier-cash-out-page .invoice-builder-head p:not(.auth-brand) {
  color: var(--cashout-ink);
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head .auth-brand {
  background: linear-gradient(90deg, #ffe596, #e5a936);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #181008;
}

.cash-out-mode-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cash-out-mode-tabs a {
  align-items: center;
  background: rgba(8, 8, 7, 0.5);
  border: 1px solid rgba(240, 191, 85, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.22);
  color: var(--cashout-muted);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 14px;
  position: relative;
  text-decoration: none;
}

.cash-out-mode-tabs a::before {
  background: linear-gradient(180deg, var(--cashout-cyan), var(--cashout-pink));
  border-radius: 999px;
  content: "";
  height: 28px;
  opacity: 0.72;
  width: 4px;
}

.cash-out-mode-tabs span {
  color: var(--cashout-ink);
  flex: 1;
  font-size: 0.96rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cash-out-mode-tabs small {
  color: var(--cashout-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.cash-out-mode-tabs a.active {
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.62), rgba(48, 30, 18, 0.58));
  border-color: rgba(255, 211, 107, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.28), 0 18px 38px rgba(0, 0, 0, 0.3);
  color: #ffe39a;
}

.cash-out-mode-tabs a.active::before {
  background: linear-gradient(180deg, #ffe39a, #f0bf55);
  opacity: 0.96;
}

.cash-out-mode-tabs a.active span,
.cash-out-mode-tabs a.active small {
  color: #ffe39a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.cash-out-mode-tabs a.active small {
  color: #ffd887;
}

body.invoice-page .cashier-cash-out-page .cashier-panel {
  background: var(--cashout-panel);
  background-clip: padding-box;
  border-color: rgba(240, 191, 85, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 52px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.invoice-page .cashier-cash-out-page .cashier-panel .packing-panel-head h2,
body.invoice-page .cashier-cash-out-page .cashier-inline-head strong,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row strong,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row span {
  color: var(--cashout-ink);
}

body.invoice-page .cashier-cash-out-page .cashier-panel .packing-panel-head small,
body.invoice-page .cashier-cash-out-page .cashier-inline-head small,
body.invoice-page .cashier-cash-out-page .cashier-panel label,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row span small {
  color: var(--cashout-muted);
}

body.invoice-page .cashier-cash-out-page .dashboard-kicker {
  background: linear-gradient(90deg, #ffe596, #d49328);
  border-radius: 999px;
  color: #171008;
  padding: 5px 10px;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-block,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-table,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.invoice-page .cashier-cash-out-page .cashier-panel input,
body.invoice-page .cashier-cash-out-page .cashier-panel select,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea {
  background: linear-gradient(135deg, rgba(10, 45, 48, 0.82), rgba(50, 18, 43, 0.72));
  border-color: rgba(68, 215, 210, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 225, 111, 0.14), 0 10px 24px rgba(0, 0, 0, 0.2);
  color: #fff8ea;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select {
  color-scheme: dark;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select option {
  background-color: #101719;
  color: #fff8ea;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select option:checked,
body.invoice-page .cashier-cash-out-page .cashier-panel select option:hover,
body.invoice-page .cashier-cash-out-page .cashier-panel select option:focus {
  background: linear-gradient(90deg, rgba(68, 215, 210, 0.42), rgba(240, 191, 85, 0.3));
  color: #fffdf5;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select option:disabled,
body.invoice-page .cashier-cash-out-page .cashier-panel select option[value=""] {
  color: rgba(255, 248, 234, 0.58);
}

body.invoice-page .cashier-cash-out-page .cashier-panel input::placeholder,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea::placeholder {
  color: rgba(255, 248, 234, 0.62);
}

body.invoice-page .cashier-cash-out-page .cash-out-native-select {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

body.invoice-page .cashier-cash-out-page [data-customer-deposit-field][hidden],
body.invoice-page .cashier-cash-out-page [data-investor-capital-field][hidden],
body.invoice-page .cashier-cash-out-page [data-employee-loan-field][hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox {
  display: block;
  position: relative;
  z-index: 8;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox:focus-within {
  z-index: 18;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox input {
  padding-right: 42px;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffe16f;
  content: "";
  height: 0;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-35%);
  width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list {
  background: rgba(9, 9, 8, 0.92);
  border: 1px solid rgba(240, 191, 85, 0.36);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list[hidden],
body.invoice-page .cashier-cash-out-page .cash-out-combobox-empty[hidden] {
  display: none;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--cashout-ink);
  cursor: pointer;
  font: inherit;
  padding: 10px 12px;
  text-align: left;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button:hover,
body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button:focus {
  background: linear-gradient(90deg, rgba(240, 191, 85, 0.24), rgba(68, 215, 210, 0.14));
  color: #fff8ea;
  outline: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-empty {
  background: rgba(9, 9, 8, 0.92);
  border: 1px solid rgba(240, 191, 85, 0.28);
  border-radius: 8px;
  color: var(--cashout-muted);
  left: 0;
  padding: 10px 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-panel {
  align-items: center;
  backdrop-filter: blur(18px) saturate(0.92);
  background:
    linear-gradient(135deg, rgba(11, 20, 24, 0.72), rgba(19, 31, 34, 0.58)),
    rgba(7, 15, 18, 0.66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px 22px calc(96px + env(safe-area-inset-bottom));
  position: fixed;
  z-index: 2600;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-panel[hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 254, 253, 0.96));
  border: 1px solid rgba(140, 209, 202, 0.42);
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: 0 34px 90px rgba(8, 19, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  max-height: min(82dvh, 760px);
  max-width: 860px;
  overflow-y: auto;
  width: min(100%, 860px);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-card .packing-panel-head {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(230, 249, 246, 0.94), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(140, 209, 202, 0.36);
  border-radius: 22px 22px 0 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: -24px -24px 22px;
  padding: 22px 24px 18px;
  position: sticky;
  top: -24px;
  z-index: 4;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-card .dashboard-kicker {
  background: rgba(13, 117, 110, 0.1);
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 999px;
  color: #0d756e;
  display: inline-flex;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  padding: 7px 13px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-card .packing-panel-head h2 {
  color: #152026;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  margin: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-card .packing-panel-head small {
  color: #64777f;
  display: block;
  font-size: 0.94rem;
  line-height: 1.45;
  margin-top: 8px;
  max-width: 540px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.12);
  color: #0d756e;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-close:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-account-close:focus {
  background: #0f8f86;
  border-color: #0f8f86;
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-account-close svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}

@media (min-width: 900px) {
  body.invoice-page .cashier-cash-out-page .cash-out-category-account-panel {
    align-items: center;
    background:
      linear-gradient(135deg, rgba(9, 18, 21, 0.74), rgba(25, 39, 43, 0.6)),
      rgba(7, 15, 18, 0.68);
    justify-content: center;
    padding: 34px 28px calc(104px + env(safe-area-inset-bottom));
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-account-card {
    height: auto;
    max-height: min(82dvh, 760px);
    max-width: 860px;
    width: min(860px, calc(100vw - 56px));
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-account-card .packing-panel-head {
    margin-bottom: 22px;
  }
}

body.invoice-page .cashier-cash-out-page .cashier-panel input:focus,
body.invoice-page .cashier-cash-out-page .cashier-panel select:focus,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea:focus {
  border-color: var(--cashout-cyan);
  box-shadow: 0 0 0 3px rgba(68, 215, 210, 0.2);
  outline: 0;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-add-button,
body.invoice-page .cashier-cash-out-page .cashier-form-actions .invoice-print-button,
body.invoice-page .cashier-cash-out-page .cashier-history-pager button {
  background: linear-gradient(135deg, #ffe596, #e19f2e);
  border-color: rgba(255, 255, 255, 0.24);
  color: #171008;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-line > button {
  background: rgba(255, 77, 135, 0.14);
  border-color: rgba(255, 77, 135, 0.44);
  color: #ffe4ed;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-line[hidden],
body.invoice-page .cashier-cash-out-page .cash-out-payment-line[hidden],
body.invoice-page .cashier-cash-out-page .cash-out-category-summary[hidden],
body.invoice-page .cashier-cash-out-page .cash-out-category-editor[hidden],
body.invoice-page .cashier-cash-out-page .cash-out-category-empty[hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary {
  align-items: center;
  background: rgba(8, 8, 7, 0.48);
  border: 1px solid rgba(240, 191, 85, 0.3);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--cashout-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  grid-column: 1 / -1;
  height: auto;
  justify-content: space-between;
  min-height: 54px;
  min-width: 0;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary strong {
  color: var(--cashout-ink);
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary small {
  color: rgba(255, 248, 234, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary b {
  color: #ffe596;
  flex: 0 0 auto;
  font-size: 0.9rem;
  max-width: 42%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-editor {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  min-width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-field > span {
  color: var(--cashout-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions label {
  align-items: center;
  background: rgba(8, 9, 11, 0.68);
  border: 1px solid rgba(68, 215, 210, 0.42);
  border-radius: 8px;
  color: #fff8dc;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, 78px);
  min-width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview:empty,
body.invoice-page .cashier-cash-out-page .cash-out-proof-preview[hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-item {
  min-width: 0;
  position: relative;
  width: 78px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-thumb {
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 51, 58, 0.78), rgba(78, 22, 62, 0.64));
  border: 1px solid rgba(68, 215, 210, 0.42);
  border-radius: 8px;
  color: #ffe596;
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  text-align: left;
  width: 78px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview img {
  aspect-ratio: 1;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview span {
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-remove {
  align-items: center;
  background: rgba(8, 9, 11, 0.9);
  border: 1px solid rgba(255, 229, 150, 0.7);
  border-radius: 999px;
  color: #fff8dc;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -7px;
  top: -7px;
  width: 24px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-viewer {
  padding: 14px;
  z-index: 2700;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-viewer-panel {
  display: grid;
  gap: 10px;
  max-height: min(86vh, 760px);
  max-width: min(92vw, 860px);
  outline: none;
  position: relative;
  width: 100%;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-viewer-panel img {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 229, 150, 0.36);
  border-radius: 10px;
  display: block;
  max-height: min(78vh, 680px);
  object-fit: contain;
  width: 100%;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-viewer-panel p {
  color: #ffe596;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-viewer-close {
  align-items: center;
  background: rgba(8, 9, 11, 0.92);
  border: 1px solid rgba(255, 229, 150, 0.72);
  border-radius: 999px;
  color: #fff8dc;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -10px;
  top: -12px;
  width: 40px;
  z-index: 2;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 2px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions button,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 191, 85, 0.4);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-payment],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-receipt] {
  background: linear-gradient(135deg, #ff4fa3 0%, #ff8f5f 54%, #ffe16f 100%);
  border-color: rgba(255, 231, 142, 0.58);
  box-shadow: 0 14px 28px rgba(255, 79, 163, 0.32), 0 0 18px rgba(68, 215, 210, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #1b0d18;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-payment],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-receipt] {
  background: rgba(9, 9, 8, 0.58);
  border-color: rgba(255, 77, 135, 0.52);
  color: #ffd6e5;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-empty {
  color: var(--cashout-muted);
  font-size: 0.84rem;
  font-weight: 800;
  margin: 2px 0 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
  background: linear-gradient(135deg, #ff4fa3 0%, #ff8f5f 54%, #ffe16f 100%);
  border-color: rgba(255, 231, 142, 0.58);
  box-shadow: 0 14px 28px rgba(255, 79, 163, 0.32), 0 0 18px rgba(68, 215, 210, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #1b0d18;
  margin-left: auto;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions button svg,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 18px;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions button:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions button:focus-visible,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button:focus-visible {
  transform: translateY(-1px);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-backdrop {
  background:
    radial-gradient(circle at 52% 22%, rgba(255, 79, 163, 0.28), transparent 34%),
    radial-gradient(circle at 64% 68%, rgba(68, 215, 210, 0.16), transparent 30%),
    rgba(4, 7, 11, 0.78);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal {
  background: linear-gradient(145deg, rgba(25, 10, 22, 0.96), rgba(8, 8, 7, 0.96) 68%, rgba(45, 24, 12, 0.96));
  border-color: rgba(255, 79, 163, 0.56);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54), 0 0 28px rgba(255, 79, 163, 0.2);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal::before,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-mark,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-actions button:last-child {
  background: linear-gradient(135deg, #ff4fa3 0%, #ff8f5f 54%, #ffe16f 100%);
}

body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-mark,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-actions button:last-child {
  border-color: rgba(255, 231, 142, 0.58);
  color: #1b0d18;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal strong {
  color: #ffe16f;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-button {
  background: linear-gradient(135deg, #ff4fa3 0%, #ff8f5f 54%, #ffe16f 100%);
  border-color: rgba(255, 231, 142, 0.62);
  box-shadow: 0 16px 32px rgba(255, 79, 163, 0.32), 0 0 22px rgba(68, 215, 210, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.44);
  color: #1b0d18;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-button:disabled {
  cursor: wait;
  filter: saturate(0.8);
  opacity: 0.78;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-backdrop,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal {
  background:
    radial-gradient(circle at 48% 20%, rgba(255, 79, 163, 0.28), transparent 34%),
    radial-gradient(circle at 66% 70%, rgba(68, 215, 210, 0.18), transparent 30%),
    rgba(4, 7, 11, 0.8);
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal {
  background: linear-gradient(145deg, rgba(25, 10, 22, 0.96), rgba(8, 8, 7, 0.96) 68%, rgba(45, 24, 12, 0.96));
  border-color: rgba(255, 79, 163, 0.56);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54), 0 0 28px rgba(255, 79, 163, 0.2);
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal::before,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal::before {
  background: linear-gradient(90deg, #ff4fa3, #ff8f5f 58%, #ffe16f);
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal-rank,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal button {
  background: linear-gradient(135deg, #ff4fa3 0%, #ff8f5f 54%, #ffe16f 100%);
  border-color: rgba(255, 231, 142, 0.58);
  color: #1b0d18;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal-eyebrow {
  background: linear-gradient(90deg, #fff0a8, #ffd35f);
  color: #171008;
  display: inline-flex;
  font-weight: 900;
  justify-self: center;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 10px 18px;
  text-shadow: none;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal h2 {
  color: #fff8ea;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86), 0 0 16px rgba(255, 225, 111, 0.32);
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal p:not(.game-modal-eyebrow) {
  color: #fff0c8;
  font-weight: 800;
  line-height: 1.42;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.cash-out-submit-spinner {
  animation: cashOutSubmitSpin 0.84s linear infinite;
  background: conic-gradient(from 0deg, #ff4fa3, #ff8f5f, #ffe16f, #44d7d2, #ff4fa3);
  border-radius: 999px;
  height: 42px;
  justify-self: start;
  position: relative;
  width: 42px;
}

.cash-out-submit-spinner::after {
  background: rgba(12, 9, 13, 0.96);
  border-radius: inherit;
  content: "";
  inset: 6px;
  position: absolute;
}

@keyframes cashOutSubmitSpin {
  to {
    transform: rotate(360deg);
  }
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-total {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-table {
  border-radius: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-list {
  display: grid;
  gap: 10px;
  background: transparent;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
  min-height: 40px;
  position: relative;
  z-index: 5;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter {
  position: relative;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary {
  align-items: center;
  background: linear-gradient(135deg, rgba(68, 215, 210, 0.16), rgba(245, 76, 145, 0.16));
  border: 1px solid rgba(68, 215, 210, 0.44);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff8ea;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  list-style: none;
  position: relative;
  width: 42px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary::-webkit-details-marker {
  display: none;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary span {
  background: linear-gradient(135deg, #ff4f97, #ffe16f);
  border: 1px solid rgba(255, 248, 234, 0.8);
  border-radius: 999px;
  height: 9px;
  position: absolute;
  right: 7px;
  top: 6px;
  width: 9px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter form {
  background: linear-gradient(135deg, rgba(6, 17, 22, 0.96), rgba(48, 12, 42, 0.92));
  border: 1px solid rgba(240, 191, 85, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 42px));
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter label {
  color: #fff8ea;
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 5px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter input {
  min-height: 38px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter form > div {
  display: flex;
  gap: 8px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter button,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter a {
  align-items: center;
  background: linear-gradient(135deg, #ff4f97, #ffe16f);
  border: 0;
  border-radius: 8px;
  color: #130a0d;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  text-decoration: none;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter a {
  background: rgba(68, 215, 210, 0.14);
  border: 1px solid rgba(68, 215, 210, 0.42);
  color: #fff8ea;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item {
  background: linear-gradient(135deg, rgba(6, 21, 25, 0.9), rgba(43, 13, 38, 0.78));
  border: 1px solid rgba(240, 191, 85, 0.3);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(58px, 0.72fr) minmax(0, 1.35fr) minmax(88px, 0.9fr);
  list-style: none;
  min-height: 76px;
  padding: 10px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger::-webkit-details-marker {
  display: none;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
  color: #fff8ea;
  font-size: 0.82rem;
  line-height: 1.18;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-category strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-date em {
  color: rgba(255, 248, 234, 0.86);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-total {
  text-align: right;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item[open] .cash-out-history-trigger {
  background: linear-gradient(90deg, rgba(240, 191, 85, 0.16), rgba(68, 215, 210, 0.1));
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
  background: linear-gradient(135deg, rgba(5, 11, 15, 0.94), rgba(42, 13, 38, 0.88));
  border-top: 1px solid rgba(255, 229, 150, 0.22);
  display: grid;
  gap: 12px;
  padding: 12px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-meta {
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail section {
  color: #fff8ea;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail section > strong {
  color: #ffe596;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail p,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail b,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail small {
  color: #fff8ea;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail a {
  color: #ffe596;
  font-weight: 900;
  text-decoration-color: rgba(255, 229, 150, 0.7);
}

body.invoice-page .cashier-cash-out-page .cash-out-history-category small {
  color: rgba(255, 248, 234, 0.78);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-row {
  background: transparent;
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-row-head {
  background: linear-gradient(90deg, #11100f, #3a210f 58%, #11100f);
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view a,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions a,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions button,
body.invoice-page .cashier-cash-out-page .cashier-history-pager a {
  background: rgba(68, 215, 210, 0.12);
  border-color: rgba(68, 215, 210, 0.36);
  color: var(--cashout-ink);
}

body.invoice-page .cashier-cash-out-page .cashier-empty-state {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 191, 85, 0.2);
  border-radius: 8px;
  color: var(--cashout-muted);
}

body.invoice-page .cashier-cash-out-page .cashier-empty-state strong {
  color: var(--cashout-ink);
}

body.invoice-page .cashier-cash-out-page .cashier-history-pager span,
body.invoice-page .cashier-cash-out-page .cashier-history-pager strong {
  color: var(--cashout-muted);
}

@media (min-width: 721px) {
  body.invoice-page:has(.cashier-cash-out-page) {
    background: #080807;
    overflow: hidden;
  }

  body.invoice-page:has(.cashier-cash-out-page) .shell {
    height: calc(100dvh - 68px);
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page {
    background: url("/static/brand/ksrf-cash-out-desktop-bg.png") center center / cover no-repeat !important;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 14px;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: clamp(20px, 2.2vw, 34px) clamp(24px, 4vw, 64px) 18px;
    position: relative;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    justify-self: end;
    margin-left: auto;
    width: min(560px, 42vw);
    z-index: 2;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs {
    position: relative;
    z-index: 4;
  }

  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 4px 18px 0;
    scrollbar-gutter: stable;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head {
    align-items: center;
    background: rgba(6, 8, 9, 0.42);
    border-color: rgba(255, 225, 111, 0.24);
    min-height: 112px;
    padding: 20px 22px;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head h1 {
    font-size: clamp(3.2rem, 5.2vw, 5.9rem);
    letter-spacing: 0.04em;
    line-height: 0.88;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.86), 0 0 30px rgba(255, 225, 111, 0.24);
    text-transform: uppercase;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs {
    position: relative;
  }

  body.invoice-page .cashier-cash-out-page .cashier-panel {
    background: var(--cashout-panel);
    max-height: none;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a {
    background: rgba(8, 8, 7, 0.5);
  }

  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a.active {
    background: linear-gradient(135deg, rgba(8, 8, 7, 0.62), rgba(48, 30, 18, 0.58));
  }

  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-editor,
  body.invoice-page .cashier-cash-out-page .cash-out-payment-editor {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-editor > label,
  body.invoice-page .cashier-cash-out-page .cash-out-payment-editor > label,
  body.invoice-page .cashier-cash-out-page .cash-out-proof-field {
    min-width: 0;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-actions {
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  body.invoice-page .cashier-cash-out-page {
    padding-inline: 18px;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    justify-self: center;
    width: min(620px, calc(100vw - 36px));
  }
}

@media (max-width: 720px) {
  body.invoice-page:has(.cashier-cash-out-page) {
    overflow: hidden;
  }

  body.invoice-page:has(.cashier-cash-out-page) .shell {
    height: calc(100dvh - 76px);
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 18px 10px 18px;
    position: relative;
  }

  body.invoice-page .cashier-cash-out-page::before {
    background: var(--cashout-mobile-bg) center top / cover no-repeat;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
  }

  body.invoice-page .cashier-cash-out-page > * {
    position: relative;
    z-index: 1;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs {
    flex: 0 0 auto;
    z-index: 3;
  }

  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 18px;
    scrollbar-gutter: stable;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page .cashier-panel,
  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a {
    background: rgba(8, 8, 7, 0.5);
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head {
    align-items: center;
    display: flex;
    min-height: 92px;
    overflow: visible;
    padding: 18px 16px;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head h1 {
    color: #fff8ea;
    font-size: clamp(2rem, 12vw, 3.1rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 0.95;
    margin: 0;
    overflow-wrap: normal;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.86),
      0 0 18px rgba(0, 0, 0, 0.72),
      0 0 22px rgba(240, 191, 85, 0.34);
    text-transform: uppercase;
  }

  body.invoice-page .cashier-cash-out-page .cashier-cash-in-block,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-table,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view section {
    background: transparent;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
    grid-template-columns: minmax(58px, 0.7fr) minmax(0, 1.15fr) minmax(82px, 0.9fr);
    min-height: 76px;
    padding: 9px;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
    font-size: 0.76rem;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
    font-size: 0.74rem;
  }

  .cash-out-mode-tabs {
    gap: 8px;
  }

  .cash-out-mode-tabs a {
    align-items: flex-start;
    display: grid;
    gap: 4px;
    min-height: 62px;
    padding: 9px 10px;
  }

  .cash-out-mode-tabs a::before {
    height: 3px;
    width: 100%;
  }

  .cash-out-mode-tabs span {
    font-size: 0.78rem;
  }

  .cash-out-mode-tabs small {
    font-size: 0.6rem;
    text-align: left;
  }

  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: 0;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-summary {
    align-items: flex-start;
    display: grid;
    flex-direction: column;
    gap: 6px;
    grid-column: 1 / -1 !important;
    height: auto !important;
    justify-self: stretch !important;
    line-height: 1.18;
    min-height: 72px;
    min-width: 0;
    padding: 13px 14px;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-summary span,
  body.invoice-page .cashier-cash-out-page .cash-out-category-summary b {
    max-width: 100%;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-summary b {
    text-align: left;
  }

  body.invoice-page .cashier-cash-out-page .cashier-cash-in-add-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
    grid-column: auto;
    justify-self: end;
  }
}

.cash-out-background-preview {
  display: grid;
  gap: 8px;
}

.cash-out-background-preview img {
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  display: block;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  width: min(100%, 220px);
}

.cash-out-background-preview small {
  color: #687080;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

body.invoice-page .cashier-cash-in-skin-page {
  --cashin-mobile-bg: url("/static/brand/ksrf-cash-in-mobile-bg.png");
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-autocomplete {
  z-index: 9;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-autocomplete:focus-within {
  z-index: 28;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 7%, #ffffff), #ffffff 54%),
    #ffffff;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 28%, transparent);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(38, 52, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 6px;
  max-height: 252px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 44%, #ffffff) rgba(229, 244, 242, 0.86);
  top: calc(100% + 6px);
  z-index: 40;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options[hidden],
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options button[hidden],
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel[hidden],
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-autocomplete > small[hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 143, 134, 0.1);
  border-radius: 10px;
  color: #162027;
  column-gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button span {
  color: #17242b;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:hover,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:focus-visible {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 10%, #ffffff);
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent);
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.1);
  color: #0c514d;
  outline: 0;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-add-option {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 12%, #ffffff);
  border: 1px dashed color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent);
  color: #0f5f5a;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel {
  background: #f8fbfb;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 22%, transparent);
  border-radius: 12px;
  color: #162027;
  margin-top: 4px;
  padding: 12px;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel label,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel small {
  color: #425158;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel input,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel select {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 24%, transparent);
  color: #162027;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel input::placeholder {
  color: #8a9aa0;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options small {
  color: #60747b;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:hover small,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:focus-visible small {
  color: #0f6f68;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-customer-autocomplete > small {
  background: rgba(9, 9, 8, 0.92);
  border: 1px solid rgba(240, 191, 85, 0.28);
  border-radius: 8px;
  color: var(--cashout-muted);
  top: calc(100% + 6px);
  z-index: 40;
}

@media (min-width: 721px) {
  body.invoice-page .cashier-cash-in-skin-page {
    background:
      linear-gradient(90deg, rgba(3, 5, 8, 0.32), rgba(3, 5, 8, 0.06) 48%, rgba(3, 5, 8, 0.58)),
      linear-gradient(180deg, rgba(3, 5, 8, 0.1), rgba(3, 5, 8, 0.56)),
      url("/static/brand/ksrf-cash-in-desktop-bg.png") center center / cover no-repeat !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-in-skin-page::before {
    background: var(--cashin-mobile-bg) center top / cover no-repeat;
  }
}

/* Final override: game-like product database theme. */
body.invoice-page .cashier-products-page {
  --product-neon: #24d6cd;
  --product-neon-soft: rgba(36, 214, 205, 0.18);
  --product-neon-faint: rgba(36, 214, 205, 0.075);
  --product-gold: #f6d27a;
  --product-blue: #6ea8ff;
  --product-pink: #ff4a84;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 210, 122, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 9% 0%, rgba(36, 214, 205, 0.2), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(255, 74, 132, 0.12), transparent 30%),
    linear-gradient(135deg, #050b10 0%, #0c1219 48%, #181106 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto !important;
  border: 1px solid rgba(36, 214, 205, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 24px 70px rgba(0, 0, 0, 0.36) !important;
  color: #efffff !important;
  overflow: hidden;
  padding-top: 18px;
}

body.invoice-page .cashier-products-page::before {
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(36, 214, 205, 0.1) 25%, transparent 26% 58%, rgba(246, 210, 122, 0.08) 59%, transparent 60%),
    linear-gradient(90deg, transparent, rgba(36, 214, 205, 0.12), transparent);
  content: "";
  height: 220px;
  left: -12%;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  right: -12%;
  top: 0;
  transform: skewY(-6deg);
}

body.invoice-page .cashier-products-page > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .cashier-products-page > .invoice-builder-head,
body.invoice-page .cashier-products-page .packing-panel {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.12), rgba(246, 210, 122, 0.07) 48%, rgba(255, 74, 132, 0.09)),
    linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(3, 9, 14, 0.96)) !important;
  border: 1px solid rgba(36, 214, 205, 0.32) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.09), 0 0 46px rgba(36, 214, 205, 0.1) !important;
}

body.invoice-page .cashier-products-page .invoice-builder-head h1 {
  color: #efffff !important;
  letter-spacing: 0.34em;
  text-shadow: 0 0 20px rgba(36, 214, 205, 0.44), 0 0 30px rgba(246, 210, 122, 0.18);
}

body.invoice-page .cashier-products-page .invoice-builder-head .auth-brand,
body.invoice-page .cashier-products-page .dashboard-kicker {
  background: rgba(36, 214, 205, 0.14) !important;
  border: 1px solid rgba(36, 214, 205, 0.44) !important;
  color: #9ff7f1 !important;
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.34);
}

body.invoice-page .cashier-products-page .packing-panel-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.2), rgba(246, 210, 122, 0.07) 48%, rgba(255, 74, 132, 0.12)),
    rgba(2, 8, 13, 0.78) !important;
  border: 1px solid rgba(36, 214, 205, 0.34) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 24px rgba(36, 214, 205, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24) !important;
  margin-bottom: 16px;
  padding: 16px 18px;
  position: relative;
}

body.invoice-page .cashier-products-page .packing-panel-head::after {
  background: linear-gradient(90deg, var(--product-neon), var(--product-gold), var(--product-pink));
  bottom: -1px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
}

body.invoice-page .cashier-products-page .packing-panel-head h2 {
  color: #eaffff !important;
  letter-spacing: 0.1em;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.4), 0 0 28px rgba(246, 210, 122, 0.14);
}

body.invoice-page .cashier-products-page #cashier-new-product .packing-panel-head h2::before {
  color: var(--product-neon);
  content: "LOADOUT  /  ";
  font-size: 0.72em;
}

body.invoice-page .cashier-products-page .packing-panel:not(#cashier-new-product) .packing-panel-head h2::before {
  color: var(--product-blue);
  content: "DATABASE  /  ";
  font-size: 0.72em;
}

body.invoice-page .cashier-products-page .cashier-product-form,
body.invoice-page .cashier-products-page .cashier-table-tools {
  background: rgba(2, 8, 13, 0.54) !important;
  border: 1px solid rgba(36, 214, 205, 0.22) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06), 0 16px 30px rgba(0, 0, 0, 0.16) !important;
  padding: 14px;
}

body.invoice-page .cashier-products-page label,
body.invoice-page .cashier-products-page .cashier-product-edit-body .cashier-form-grid label,
body.invoice-page .cashier-products-page .cashier-product-edit-body .cashier-form-grid small {
  color: color-mix(in srgb, var(--product-neon) 42%, #ffe6a1) !important;
  text-shadow: 0 0 13px rgba(36, 214, 205, 0.24);
}

body.invoice-page .cashier-products-page input,
body.invoice-page .cashier-products-page select,
body.invoice-page .cashier-products-page textarea,
body.invoice-page .cashier-products-page .cashier-product-edit-body .cashier-form-grid input,
body.invoice-page .cashier-products-page .cashier-product-edit-body .cashier-form-grid select,
body.invoice-page .cashier-products-page .cashier-product-edit-body .cashier-form-grid textarea {
  background: rgba(1, 7, 12, 0.82) !important;
  border-color: rgba(36, 214, 205, 0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.04), inset 0 0 18px rgba(0, 0, 0, 0.22) !important;
  color: #efffff !important;
}

body.invoice-page .cashier-products-page input[readonly],
body.invoice-page .cashier-products-page .cashier-product-form input[readonly] {
  color: #b6c4d4 !important;
}

body.invoice-page .cashier-products-page input::placeholder,
body.invoice-page .cashier-products-page textarea::placeholder {
  color: rgba(223, 248, 255, 0.55) !important;
}

body.invoice-page .cashier-products-page input:focus,
body.invoice-page .cashier-products-page select:focus,
body.invoice-page .cashier-products-page textarea:focus {
  border-color: rgba(36, 214, 205, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.16), 0 0 28px rgba(36, 214, 205, 0.2) !important;
}

body.invoice-page .cashier-products-page .cashier-head-actions .cashier-action-button,
body.invoice-page .cashier-products-page .invoice-print-button,
body.invoice-page .cashier-products-page .cashier-action-button {
  background: linear-gradient(135deg, #ffe08a, #c98b23) !important;
  border: 1px solid rgba(36, 214, 205, 0.34) !important;
  box-shadow: 0 12px 30px rgba(216, 162, 71, 0.24), 0 0 0 1px rgba(244, 209, 124, 0.12) !important;
  color: #061016 !important;
}

body.invoice-page .cashier-products-page .cashier-action-secondary {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff) !important;
  border-color: rgba(246, 210, 122, 0.32) !important;
}

body.invoice-page .cashier-products-page .cashier-action-ghost,
body.invoice-page .cashier-products-page .cashier-secondary-link {
  background: rgba(255, 250, 241, 0.08) !important;
  border-color: rgba(246, 210, 122, 0.28) !important;
  color: #f6d27a !important;
}

body.invoice-page .cashier-products-page .cashier-product-table {
  background: linear-gradient(180deg, rgba(6, 14, 21, 0.96), rgba(2, 8, 13, 0.96)) !important;
  border-color: rgba(36, 214, 205, 0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06), 0 16px 34px rgba(0, 0, 0, 0.24) !important;
}

body.invoice-page .cashier-products-page .cashier-product-row-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.26), rgba(246, 210, 122, 0.12), rgba(255, 74, 132, 0.13)),
    linear-gradient(180deg, #07111b, #030a10) !important;
  border-bottom: 1px solid rgba(36, 214, 205, 0.32) !important;
}

body.invoice-page .cashier-products-page .cashier-product-edit {
  background: rgba(4, 11, 17, 0.9) !important;
  border-top: 1px solid rgba(36, 214, 205, 0.13) !important;
}

body.invoice-page .cashier-products-page .cashier-product-edit summary.cashier-product-row {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.075), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.94), rgba(6, 14, 21, 0.94)) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.invoice-page .cashier-products-page .cashier-product-edit summary.cashier-product-row:hover,
body.invoice-page .cashier-products-page .cashier-product-edit[open] summary.cashier-product-row {
  box-shadow: inset 3px 0 0 var(--product-neon), 0 0 26px rgba(36, 214, 205, 0.13) !important;
  transform: translateX(2px);
}

body.invoice-page .cashier-products-page .cashier-product-row strong {
  color: #efffff !important;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.22);
}

body.invoice-page .cashier-products-page .cashier-product-row span,
body.invoice-page .cashier-products-page .packing-panel-head small,
body.invoice-page .cashier-products-page .invoice-builder-head p:not(.auth-brand) {
  color: #b9d0de !important;
}

body.invoice-page .cashier-products-page .cashier-product-edit-body {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), transparent 26%),
    rgba(1, 7, 12, 0.72) !important;
  border-top: 1px solid rgba(36, 214, 205, 0.22) !important;
}

body.invoice-page .cashier-products-page .cashier-product-delete-form button {
  background: linear-gradient(135deg, rgba(255, 74, 132, 0.18), rgba(255, 74, 132, 0.08)) !important;
  border-color: rgba(255, 74, 132, 0.48) !important;
  color: #ffdbe6 !important;
  box-shadow: 0 0 22px rgba(255, 74, 132, 0.12) !important;
}

body.invoice-page .cashier-products-page .cashier-page-link,
body.invoice-page .cashier-products-page .cashier-page-gap {
  background: rgba(3, 10, 15, 0.82) !important;
  border-color: rgba(36, 214, 205, 0.28) !important;
  color: #dff8ff !important;
}

body.invoice-page .cashier-products-page .cashier-page-link.is-active {
  background: linear-gradient(135deg, #24d6cd, #f6d27a) !important;
  color: #061016 !important;
}

@media (max-width: 720px) {
  body.invoice-page .cashier-products-page {
    background-size: 32px 32px, 32px 32px, auto, auto, auto !important;
    padding-top: 10px;
  }

  body.invoice-page .cashier-products-page .invoice-builder-head h1 {
    letter-spacing: 0.12em;
    text-shadow: 0 0 14px rgba(36, 214, 205, 0.34);
  }

  body.invoice-page .cashier-products-page .packing-panel-head {
    padding: 12px;
  }

  body.invoice-page .cashier-products-page .cashier-product-form,
  body.invoice-page .cashier-products-page .cashier-table-tools {
    padding: 10px;
  }

  body.invoice-page .cashier-products-page .cashier-product-edit summary.cashier-product-row:hover,
  body.invoice-page .cashier-products-page .cashier-product-edit[open] summary.cashier-product-row {
    transform: none;
  }
}

body.invoice-page .cashier-products-page [hidden] {
  display: none !important;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs {
  align-self: end;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.12), rgba(246, 210, 122, 0.08), rgba(255, 74, 132, 0.1)),
    rgba(2, 8, 13, 0.58);
  border: 1px solid rgba(36, 214, 205, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 14px 34px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  max-width: 460px;
  padding: 8px;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs .cashier-action-button {
  border-radius: 6px;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  position: relative;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs .cashier-action-button::after {
  background: linear-gradient(90deg, transparent, rgba(234, 255, 255, 0.55), transparent);
  bottom: 7px;
  content: "";
  height: 1px;
  left: 18%;
  opacity: 0;
  position: absolute;
  right: 18%;
  transition: opacity 0.18s ease;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs .cashier-action-button.is-active {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 62%, #ff4a84) !important;
  border-color: rgba(234, 255, 255, 0.5) !important;
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.14), 0 0 28px rgba(36, 214, 205, 0.18) !important;
  color: #061016 !important;
  transform: translateY(-1px);
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs .cashier-action-button.is-active::after {
  opacity: 1;
}

body.invoice-page .cashier-products-page .cashier-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.invoice-page .cashier-products-page .cashier-panel-actions form {
  margin: 0;
}

body.invoice-page .cashier-products-page .cashier-panel-actions .cashier-action-button,
body.invoice-page .cashier-products-page .cashier-panel-actions .invoice-print-button {
  min-height: 38px;
  min-width: 160px;
  padding-inline: 14px;
}

body.invoice-page .cashier-products-page[data-product-view="database"] > .invoice-builder-head .auth-brand b,
body.invoice-page .cashier-products-page[data-product-view="database"] .cashier-product-view-tabs .cashier-action-button.is-active {
  text-shadow: none;
}

body.invoice-page .cashier-products-page > .invoice-builder-head {
  align-items: center;
  display: flex;
  min-height: 96px;
  padding: 18px;
}

body.invoice-page .cashier-products-page > .invoice-builder-head .custom-order-page-title {
  color: #eaffff;
  font-size: clamp(0.76rem, 1.4vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.62em;
  margin: 0;
  max-width: none;
  text-shadow: 0 0 16px rgba(36, 214, 205, 0.44), 0 0 24px rgba(246, 210, 122, 0.14);
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs {
  align-self: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  width: 100%;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs a {
  align-items: center;
  background: rgba(4, 12, 16, 0.78);
  border: 1px solid rgba(246, 210, 122, 0.28);
  border-radius: 6px;
  color: #dff8ff;
  display: inline-flex;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.22);
  z-index: 0;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs a::before {
  background: linear-gradient(135deg, #24d6cd, #f6d27a 56%, #ff4a84);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  z-index: -1;
}

body.invoice-page .cashier-products-page .cashier-product-subtabs {
  background:
    linear-gradient(90deg, rgba(40, 86, 255, 0.2), rgba(107, 227, 255, 0.1), rgba(246, 210, 122, 0.08)),
    rgba(1, 7, 18, 0.86);
  border-color: rgba(107, 227, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(107, 227, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.22);
}

body.invoice-page .cashier-products-page .cashier-product-subtabs a {
  background: rgba(5, 14, 36, 0.92);
  border-color: rgba(107, 227, 255, 0.34);
  color: #e8f3ff;
  text-shadow: 0 0 14px rgba(107, 227, 255, 0.24);
}

body.invoice-page .cashier-products-page .cashier-product-subtabs a::before {
  background: linear-gradient(135deg, #2856ff, #6be3ff 58%, #f6d27a);
}

body.invoice-page .cashier-products-page .cashier-product-subtabs a:hover,
body.invoice-page .cashier-products-page .cashier-product-subtabs a:focus-visible,
body.invoice-page .cashier-products-page .cashier-product-subtabs a.active,
body.invoice-page .cashier-products-page .cashier-product-subtabs a.is-active {
  border-color: rgba(234, 255, 255, 0.72);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.16), 0 0 26px rgba(107, 227, 255, 0.3);
  color: #061016;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs a::after {
  background: rgba(255, 255, 255, 0.2);
  bottom: 0;
  content: "";
  height: 1px;
  left: 12%;
  opacity: 0;
  position: absolute;
  right: 12%;
  transition: opacity 0.18s ease;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs a:hover,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a:focus-visible,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.active,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.is-active {
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.08), 0 0 22px rgba(36, 214, 205, 0.16);
  color: #061016;
  text-shadow: none;
}

body.invoice-page .cashier-products-page .cashier-product-view-tabs a:hover::before,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a:focus-visible::before,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.active::before,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.is-active::before,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a:hover::after,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a:focus-visible::after,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.active::after,
body.invoice-page .cashier-products-page .cashier-product-view-tabs a.is-active::after {
  opacity: 1;
}

body.invoice-page .cashier-products-page .cashier-supplier-tabs {
  margin-bottom: 18px;
}

body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-input"]::before {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff);
}

body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-database"]::before {
  background: linear-gradient(135deg, #6ea8ff, #f6d27a 58%, #ff4a84);
}

body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-input"].active,
body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-input"].is-active {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff) !important;
}

body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-database"].active,
body.invoice-page .cashier-products-page .cashier-supplier-tabs a[href="#cashier-supplier-database"].is-active {
  background: linear-gradient(135deg, #6ea8ff, #f6d27a 58%, #ff4a84) !important;
}

body.invoice-page .cashier-products-page .cashier-supplier-view {
  position: relative;
}

body.invoice-page .cashier-products-page .cashier-supplier-database-panel {
  --supplier-accent: #6ea8ff;
  --supplier-accent-soft: rgba(110, 168, 255, 0.2);
  --supplier-accent-faint: rgba(110, 168, 255, 0.08);
  --supplier-alt: #ff4a84;
  background:
    linear-gradient(90deg, var(--supplier-accent-faint) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 210, 122, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, var(--supplier-accent-soft), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(255, 74, 132, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 27, 0.98), rgba(4, 10, 15, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  border-color: rgba(110, 168, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.1), 0 0 46px rgba(110, 168, 255, 0.1);
}

body.invoice-page .cashier-products-page .cashier-supplier-database-toolbar {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 16px;
}

body.invoice-page .cashier-products-page .cashier-supplier-database-toolbar .cashier-stat-strip {
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.16), rgba(246, 210, 122, 0.08), rgba(255, 74, 132, 0.11)),
    rgba(2, 8, 13, 0.72);
  border: 1px solid rgba(110, 168, 255, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(110, 168, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
  margin: 0;
  padding: 16px 18px;
}

body.invoice-page .cashier-products-page .cashier-supplier-database-panel .packing-panel-head {
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.22), rgba(246, 210, 122, 0.07) 48%, rgba(255, 74, 132, 0.14)),
    rgba(2, 8, 13, 0.78);
  border: 1px solid rgba(110, 168, 255, 0.36);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(110, 168, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
  margin-bottom: 16px;
  padding: 16px 18px;
}

body.invoice-page .cashier-products-page .cashier-supplier-database-panel .packing-panel-head::after {
  background: linear-gradient(90deg, #6ea8ff, #f6d27a, #ff4a84);
}

body.invoice-page .cashier-products-page #cashier-supplier-input .packing-panel-head h2::before {
  color: #24d6cd;
  content: "INPUT  /  ";
  font-size: 0.7em;
}

body.invoice-page .cashier-products-page .cashier-supplier-database-panel .packing-panel-head h2::before {
  color: #6ea8ff;
  content: "DATABASE  /  ";
  font-size: 0.7em;
}

body.invoice-page .cashier-products-page .cashier-supplier-filter {
  background: rgba(2, 8, 13, 0.5);
  border: 1px solid rgba(110, 168, 255, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06), 0 16px 30px rgba(0, 0, 0, 0.16);
  padding: 12px;
}

body.invoice-page .cashier-products-page .cashier-supplier-list {
  gap: 12px;
}

body.invoice-page .cashier-products-page .cashier-supplier-card {
  background:
    linear-gradient(90deg, rgba(110, 168, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border-color: rgba(110, 168, 255, 0.28);
  box-shadow: inset 3px 0 0 #6ea8ff, 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.invoice-page .cashier-products-page .cashier-supplier-card:hover,
body.invoice-page .cashier-products-page .cashier-supplier-card[open] {
  border-color: rgba(255, 74, 132, 0.46);
  box-shadow: inset 3px 0 0 #ff4a84, 0 0 28px rgba(110, 168, 255, 0.14), 0 14px 32px rgba(0, 0, 0, 0.24);
}

body.invoice-page .cashier-products-page .cashier-supplier-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, 0.95fr) minmax(160px, 1fr) auto auto;
}

body.invoice-page .cashier-products-page .cashier-supplier-identity strong,
body.invoice-page .cashier-products-page .cashier-supplier-card summary strong {
  color: color-mix(in srgb, #6ea8ff 42%, #ffe6a1);
  text-shadow: 0 0 13px rgba(110, 168, 255, 0.28);
}

body.invoice-page .cashier-products-page .cashier-supplier-card summary small,
body.invoice-page .cashier-products-page .cashier-supplier-contact b {
  color: #dbeafe;
}

body.invoice-page .cashier-products-page .cashier-supplier-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.invoice-page .cashier-products-page .cashier-supplier-contact small {
  color: #8fb4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.invoice-page .cashier-products-page .cashier-supplier-contact b {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

body.invoice-page .cashier-products-page .cashier-supplier-status,
body.invoice-page .cashier-products-page .cashier-supplier-card summary em,
body.invoice-page .cashier-products-page .cashier-supplier-card .cashier-base-code-meta span {
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(246, 210, 122, 0.34);
  border-radius: 999px;
  color: #f7d985;
  font-weight: 900;
  padding: 6px 10px;
  text-shadow: 0 0 12px rgba(246, 210, 122, 0.16);
  white-space: nowrap;
}

body.invoice-page .cashier-products-page .cashier-supplier-status {
  border-color: rgba(36, 214, 205, 0.38);
  color: #8ff7f1;
}

body.invoice-page .cashier-products-page .cashier-supplier-card > .cashier-form-grid {
  background: rgba(2, 8, 13, 0.5);
  border-top: 1px solid rgba(110, 168, 255, 0.22);
}

body.invoice-page .cashier-products-page .cashier-supplier-card .cashier-product-delete-form {
  border-top-color: rgba(110, 168, 255, 0.18);
}

body.invoice-page .cashier-products-page .cashier-supplier-card .cashier-product-delete-form button {
  background: rgba(255, 74, 132, 0.12);
  border-color: rgba(255, 74, 132, 0.42);
  color: #fecdd3;
}

@media (max-width: 720px) {
  body.invoice-page .cashier-products-page .cashier-product-view-tabs {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    width: 100%;
  }

  body.invoice-page .cashier-products-page .cashier-product-view-tabs .cashier-action-button {
    font-size: 0.74rem;
    min-height: 42px;
  }

  body.invoice-page .cashier-products-page .cashier-panel-actions {
    justify-content: stretch;
    width: 100%;
  }

  body.invoice-page .cashier-products-page .cashier-panel-actions .cashier-action-button,
  body.invoice-page .cashier-products-page .cashier-panel-actions .invoice-print-button,
  body.invoice-page .cashier-products-page .cashier-panel-actions form {
    width: 100%;
  }

  body.invoice-page .cashier-products-page .cashier-supplier-database-toolbar,
  body.invoice-page .cashier-products-page .cashier-supplier-summary {
    grid-template-columns: 1fr;
  }

  body.invoice-page .cashier-products-page .cashier-supplier-summary {
    align-items: stretch;
  }

  body.invoice-page .cashier-products-page .cashier-supplier-status,
  body.invoice-page .cashier-products-page .cashier-supplier-card summary em {
    justify-self: start;
  }
}

body.invoice-page .cashier-accounts-page {
  --account-hud-accent: #24d6cd;
  --account-hud-accent-soft: rgba(36, 214, 205, 0.18);
  --account-hud-faint: rgba(36, 214, 205, 0.08);
  --account-hud-alt: #6ea8ff;
  --account-hud-gold: #f6d27a;
  --account-hud-alert: #ff4a84;
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(110, 168, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(36, 214, 205, 0.22), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(255, 74, 132, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(3, 15, 24, 0.98) 0%, rgba(11, 13, 20, 0.98) 48%, rgba(25, 9, 26, 0.98) 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  border: 1px solid rgba(36, 214, 205, 0.2);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.08), 0 24px 72px rgba(0, 0, 0, 0.36);
  color: #efffff;
  overflow: hidden;
  position: relative;
}

body.invoice-page .cashier-accounts-page::before {
  background:
    linear-gradient(105deg, transparent 0%, rgba(36, 214, 205, 0.1) 42%, transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .cashier-accounts-page::after {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.9), transparent 22%) top left / 120px 120px no-repeat,
    linear-gradient(315deg, rgba(255, 74, 132, 0.72), transparent 24%) top right / 120px 120px no-repeat,
    linear-gradient(45deg, rgba(246, 210, 122, 0.74), transparent 22%) bottom left / 120px 120px no-repeat,
    linear-gradient(225deg, rgba(110, 168, 255, 0.72), transparent 24%) bottom right / 120px 120px no-repeat;
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .cashier-accounts-page > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .cashier-accounts-page > .invoice-builder-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(246, 210, 122, 0.08) 46%, rgba(255, 74, 132, 0.12)),
    linear-gradient(180deg, rgba(5, 12, 18, 0.96), rgba(8, 12, 15, 0.96));
  border-color: rgba(36, 214, 205, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.11), 0 18px 46px rgba(0, 0, 0, 0.32);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  overflow: hidden;
  position: relative;
}

body.invoice-page .cashier-accounts-page > .invoice-builder-head::before {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 214, 205, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .cashier-accounts-page > .invoice-builder-head > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .cashier-accounts-page .invoice-builder-head .auth-brand {
  background: rgba(246, 210, 122, 0.92);
  border: 1px solid rgba(234, 255, 255, 0.38);
  box-shadow: 0 0 22px rgba(246, 210, 122, 0.18), inset 0 0 0 1px rgba(36, 214, 205, 0.12);
  color: #061016;
  text-shadow: none;
}

body.invoice-page .cashier-accounts-page .invoice-builder-head h1 {
  color: #efffff;
  font-size: 4rem;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 26px rgba(246, 210, 122, 0.18);
  text-transform: uppercase;
}

body.invoice-page .cashier-accounts-page .invoice-builder-head h1::before {
  content: none;
}

body.invoice-page .cashier-accounts-page .invoice-builder-head p:not(.auth-brand) {
  color: #cfe7f2;
}

body.invoice-page .cashier-accounts-page .cashier-head-actions .cashier-action-button,
body.invoice-page .cashier-accounts-page .invoice-print-button {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff 52%, #f6d27a);
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: 0 12px 28px rgba(36, 214, 205, 0.2), 0 0 0 1px rgba(244, 209, 124, 0.12);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color: #030b12;
  text-transform: uppercase;
}

body.invoice-page .cashier-accounts-page .cashier-account-tabs {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), rgba(246, 210, 122, 0.055), rgba(255, 74, 132, 0.07)),
    rgba(4, 10, 15, 0.88);
  border-color: rgba(36, 214, 205, 0.26);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.07), 0 16px 34px rgba(0, 0, 0, 0.24);
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 8px;
}

body.invoice-page .cashier-accounts-page .cashier-account-tabs a {
  border: 1px solid rgba(36, 214, 205, 0.22);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  color: #dff8ff;
  overflow: hidden;
  position: relative;
  text-shadow: 0 0 14px rgba(36, 214, 205, 0.2);
  text-transform: uppercase;
}

body.invoice-page .cashier-accounts-page .cashier-account-tabs a.active {
  background: linear-gradient(135deg, #24d6cd, #6ea8ff 52%, #f6d27a) !important;
  border-color: rgba(234, 255, 255, 0.44);
  box-shadow: inset 0 0 24px rgba(234, 255, 255, 0.08), 0 0 22px rgba(36, 214, 205, 0.16);
  color: #061016 !important;
  font-weight: 900;
  text-shadow: none;
}

body.invoice-page .cashier-accounts-page .cashier-summary article {
  background:
    linear-gradient(90deg, var(--account-hud-faint), transparent 34%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(6, 14, 21, 0.98));
  border: 1px solid rgba(36, 214, 205, 0.24);
  box-shadow: inset 3px 0 0 var(--account-hud-accent), inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

body.invoice-page .cashier-accounts-page .cashier-summary article strong {
  color: #f7fbff;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.34);
}

body.invoice-page .cashier-accounts-page .cashier-summary article span,
body.invoice-page .cashier-accounts-page .cashier-summary article small {
  color: #bdefff;
}

body.invoice-page .cashier-accounts-page .cashier-panel {
  background:
    linear-gradient(90deg, var(--account-hud-faint) 1px, transparent 1px),
    linear-gradient(180deg, var(--account-hud-faint) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, var(--account-hud-accent-soft), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(110, 168, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(4, 10, 15, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  border-color: rgba(36, 214, 205, 0.38);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.1), inset 0 0 72px rgba(0, 0, 0, 0.18), 0 0 46px rgba(36, 214, 205, 0.1);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  position: relative;
}

body.invoice-page .cashier-accounts-page [data-account-view][hidden] {
  display: none !important;
}

body.invoice-page .cashier-accounts-page .cashier-panel::before {
  background:
    linear-gradient(90deg, transparent, rgba(36, 214, 205, 0.28), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
  content: "";
  inset: 0;
  opacity: 0.48;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .cashier-accounts-page .cashier-panel > * {
  position: relative;
  z-index: 1;
}

body.invoice-page .cashier-accounts-page .cashier-panel .packing-panel-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.22), rgba(246, 210, 122, 0.07) 48%, rgba(110, 168, 255, 0.14)),
    rgba(2, 8, 13, 0.78);
  border: 1px solid rgba(36, 214, 205, 0.36);
  border-radius: 8px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: inset 0 0 24px rgba(36, 214, 205, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
  margin-bottom: 16px;
  padding: 16px 18px;
  position: relative;
}

body.invoice-page .cashier-accounts-page .cashier-panel .packing-panel-head::after {
  background: linear-gradient(90deg, var(--account-hud-accent), var(--account-hud-gold), var(--account-hud-alt));
  bottom: -1px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
}

body.invoice-page .cashier-accounts-page .cashier-panel .dashboard-kicker {
  background: rgba(36, 214, 205, 0.14);
  border: 1px solid rgba(36, 214, 205, 0.44);
  color: #91fff8;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.38);
}

body.invoice-page .cashier-accounts-page .cashier-panel .packing-panel-head h2 {
  color: #eaffff;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(36, 214, 205, 0.42), 0 0 28px rgba(246, 210, 122, 0.16);
  text-transform: uppercase;
}

body.invoice-page .cashier-accounts-page .cashier-panel .packing-panel-head small {
  color: #c5d8e8;
}

body.invoice-page .cashier-accounts-page .cashier-account-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

body.invoice-page .cashier-accounts-page .cashier-account-panel-actions form {
  margin: 0;
}

body.invoice-page .cashier-accounts-page .cashier-form-grid,
body.invoice-page .cashier-accounts-page .cashier-account-history-list {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.1), transparent 28%),
    rgba(2, 8, 13, 0.62);
  border: 1px solid rgba(36, 214, 205, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.06), 0 16px 30px rgba(0, 0, 0, 0.16);
}

body.invoice-page .cashier-accounts-page .cashier-form-grid > label,
body.invoice-page .cashier-accounts-page .cashier-dropdown-field {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.1), transparent 36%),
    rgba(3, 10, 16, 0.58);
  border: 1px solid rgba(36, 214, 205, 0.18);
  border-left-color: rgba(36, 214, 205, 0.54);
  box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.52), inset 0 0 18px rgba(0, 0, 0, 0.16);
  padding: 10px;
}

body.invoice-page .cashier-accounts-page .cashier-form-grid > label:focus-within,
body.invoice-page .cashier-accounts-page .cashier-dropdown-field:focus-within {
  border-color: rgba(234, 255, 255, 0.5);
  box-shadow: inset 3px 0 0 var(--account-hud-accent), 0 0 24px rgba(36, 214, 205, 0.14);
}

body.invoice-page .cashier-accounts-page .cashier-panel label,
body.invoice-page .cashier-accounts-page .cashier-dropdown-field > span,
body.invoice-page .cashier-accounts-page .cashier-account-row strong {
  color: #9ffbf5;
  text-shadow: 0 0 13px rgba(36, 214, 205, 0.26);
}

body.invoice-page .cashier-accounts-page .cashier-panel input,
body.invoice-page .cashier-accounts-page .cashier-panel select,
body.invoice-page .cashier-accounts-page .cashier-panel textarea,
body.invoice-page .cashier-accounts-page .cashier-multi-dropdown summary {
  background: rgba(1, 7, 12, 0.78);
  border-color: rgba(36, 214, 205, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.04), inset 0 0 18px rgba(0, 0, 0, 0.18);
  color: #f5ffff;
}

body.invoice-page .cashier-accounts-page .cashier-panel input::placeholder,
body.invoice-page .cashier-accounts-page .cashier-panel textarea::placeholder {
  color: rgba(210, 242, 255, 0.48);
}

body.invoice-page .cashier-accounts-page .cashier-panel input:focus,
body.invoice-page .cashier-accounts-page .cashier-panel select:focus,
body.invoice-page .cashier-accounts-page .cashier-panel textarea:focus {
  border-color: rgba(234, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(36, 214, 205, 0.16), 0 0 28px rgba(36, 214, 205, 0.18);
}

body.invoice-page .cashier-accounts-page select[aria-hidden="true"][hidden] {
  display: none !important;
}

body.invoice-page .cashier-accounts-page .cashier-account-select-combo-input {
  cursor: text;
  width: 100%;
}

body.invoice-page .cashier-accounts-page .cashier-account-combo-menu {
  border-color: rgba(246, 210, 122, 0.38);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(36, 214, 205, 0.12);
  z-index: 180;
}

body.invoice-page .cashier-accounts-page .cashier-account-combo-menu .custom-order-combo-option strong {
  color: #f7d985;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown {
  z-index: 40;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown[open] {
  z-index: 260;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown summary {
  min-height: 56px;
  padding: 0 16px;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown summary::after {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  height: 7px;
  margin-left: 12px;
  transform: rotate(45deg) translateY(-2px);
  width: 7px;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.12), transparent 34%),
    rgba(1, 7, 12, 0.98);
  border-color: rgba(246, 210, 122, 0.4);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(36, 214, 205, 0.16);
  gap: 5px;
  max-height: var(--cashier-multi-menu-max, 220px);
  padding: 7px;
  z-index: 260;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown.drop-up .cashier-multi-menu {
  bottom: calc(100% + 8px);
  top: auto;
}

body.invoice-page .cashier-accounts-page .cashier-multi-dropdown:not(.drop-up) .cashier-multi-menu {
  bottom: auto;
  top: calc(100% + 8px);
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu label {
  background: rgba(8, 18, 27, 0.92);
  border-color: rgba(36, 214, 205, 0.18);
  color: #eaffff;
  min-height: 36px;
  padding: 7px 12px;
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu label:hover,
body.invoice-page .cashier-accounts-page .cashier-multi-menu label:focus-within {
  background: rgba(22, 47, 56, 0.95);
  border-color: rgba(36, 214, 205, 0.48);
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu span {
  color: #eaffff;
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu label:has(input:checked) {
  background: linear-gradient(135deg, rgba(246, 210, 122, 0.24), rgba(36, 214, 205, 0.12));
  border-color: rgba(246, 210, 122, 0.62);
  box-shadow: inset 3px 0 0 #f7d985;
}

body.invoice-page .cashier-accounts-page .cashier-multi-menu label:has(input:checked) span {
  color: #f7d985;
}

body.invoice-page .cashier-accounts-page .cashier-account-history-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

body.invoice-page .cashier-accounts-page .cashier-account-history-card {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), transparent 28%),
    rgba(6, 14, 21, 0.9);
  border-color: rgba(36, 214, 205, 0.26);
  box-shadow: inset 3px 0 0 var(--account-hud-accent), 0 14px 32px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

body.invoice-page .cashier-accounts-page .cashier-account-history-card:hover,
body.invoice-page .cashier-accounts-page .cashier-account-history-card[open] {
  border-color: rgba(110, 168, 255, 0.46);
  box-shadow: inset 3px 0 0 var(--account-hud-alt), 0 0 28px rgba(36, 214, 205, 0.12), 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.invoice-page .cashier-accounts-page .cashier-account-history-summary {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.08), transparent 28%),
    rgba(6, 14, 21, 0.9);
  border-bottom-color: rgba(36, 214, 205, 0.16);
  grid-template-columns: minmax(170px, 1.2fr) minmax(180px, 1fr) minmax(70px, 0.4fr) minmax(160px, 1fr) minmax(140px, 0.9fr) auto;
}

body.invoice-page .cashier-accounts-page .cashier-account-history-summary span,
body.invoice-page .cashier-accounts-page .cashier-account-history-summary small {
  color: #dbeafe;
}

body.invoice-page .cashier-accounts-page .cashier-account-history-summary small em {
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(246, 210, 122, 0.34);
  color: #f7d985;
  text-shadow: 0 0 12px rgba(246, 210, 122, 0.16);
}

body.invoice-page .cashier-accounts-page .cashier-account-history-card[open] .cashier-account-history-summary,
body.invoice-page .cashier-accounts-page .cashier-account-history-summary:hover {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(110, 168, 255, 0.08)),
    rgba(6, 14, 21, 0.98);
  box-shadow: inset 3px 0 0 var(--account-hud-accent), 0 0 24px rgba(36, 214, 205, 0.12);
}

body.invoice-page .cashier-accounts-page .cashier-account-history-detail {
  padding: 12px;
}

body.invoice-page .cashier-accounts-page .cashier-account-history-detail .custom-order-history-section {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.1), transparent 36%),
    rgba(3, 10, 16, 0.58);
  border: 1px solid rgba(36, 214, 205, 0.18);
  border-left-color: rgba(36, 214, 205, 0.54);
  box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.52), inset 0 0 18px rgba(0, 0, 0, 0.16);
}

body.invoice-page .cashier-accounts-page .cashier-account-edit-button {
  background: rgba(36, 214, 205, 0.12);
  border-color: rgba(36, 214, 205, 0.36);
  color: #9ffbf5;
}

body.invoice-page .cashier-accounts-page .cashier-account-edit-form {
  background:
    linear-gradient(135deg, rgba(36, 214, 205, 0.1), transparent 32%),
    rgba(2, 8, 13, 0.72);
  border-top: 1px solid rgba(36, 214, 205, 0.22);
}

@media (max-width: 720px) {
  body.invoice-page .cashier-accounts-page .invoice-builder-head h1 {
    font-size: 2.15rem;
    letter-spacing: 0;
  }

  body.invoice-page .cashier-accounts-page .invoice-builder-head h1::before {
    content: none;
  }

  body.invoice-page .cashier-accounts-page .cashier-account-tabs,
  body.invoice-page .cashier-accounts-page .cashier-account-history-summary {
    grid-template-columns: 1fr;
  }

  body.invoice-page .cashier-accounts-page .cashier-account-panel-actions,
  body.invoice-page .cashier-accounts-page .cashier-account-panel-actions form,
  body.invoice-page .cashier-accounts-page .cashier-account-panel-actions .invoice-print-button {
    width: 100%;
  }
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-table {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block !important;
  gap: 12px;
  max-height: none !important;
  overflow: visible;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-row-head {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.16), rgba(246, 210, 122, 0.07), transparent 70%),
    rgba(2, 8, 13, 0.74) !important;
  border: 1px solid rgba(36, 214, 205, 0.24) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  margin-bottom: 12px;
  position: static !important;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-edit {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.99), rgba(6, 14, 21, 0.99)) !important;
  border: 1px solid rgba(36, 214, 205, 0.3) !important;
  box-shadow: inset 3px 0 0 #24d6cd, inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.24) !important;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  display: block !important;
  margin-bottom: 12px;
  min-height: 78px;
  overflow: visible;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-edit summary.cashier-product-row {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.12), rgba(246, 210, 122, 0.055), transparent 48%),
    rgba(2, 8, 13, 0.74) !important;
  border-bottom: 1px solid rgba(36, 214, 205, 0.16) !important;
  display: grid !important;
  min-height: 76px;
  opacity: 1 !important;
  position: relative;
  visibility: visible !important;
  z-index: 1;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-edit summary.cashier-product-row > div {
  display: grid !important;
  min-width: 0;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-edit summary.cashier-product-row:hover,
body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-edit[open] summary.cashier-product-row {
  background:
    linear-gradient(90deg, rgba(36, 214, 205, 0.18), rgba(110, 168, 255, 0.08)),
    rgba(6, 14, 21, 0.98) !important;
  transform: none;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-row strong {
  color: #f7d985 !important;
}

body.invoice-page .cashier-products-page #cashier-product-database .cashier-product-row span {
  color: #dbeafe !important;
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment .cashier-inline-head {
  margin-bottom: 12px;
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment-history span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.38);
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment-history b {
  color: #e5edf6;
  font-size: 0.88rem;
}

body.invoice-page .cashier-products-page .cashier-product-stock-adjustment-history small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.78rem;
}

/* Final mobile guard for Reward Vault filter visibility. */
@media (max-width: 760px) {
  body.dashboard-page #earning-vault .earning-card {
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }

  body.dashboard-page #earning-vault .earning-card-head {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body.dashboard-page #earning-vault .earning-filter {
    align-items: stretch !important;
    background: rgba(255, 248, 234, 0.08) !important;
    border: 1px solid rgba(244, 209, 124, 0.2) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 8px !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 10px !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  body.dashboard-page #earning-vault .earning-filter label {
    color: #f1dfb9 !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    grid-column: 1 / -1 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
    white-space: normal !important;
    width: 100% !important;
  }

  body.dashboard-page #earning-vault .earning-filter select,
  body.dashboard-page #earning-vault .earning-filter button {
    box-sizing: border-box !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    min-width: 0 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  body.dashboard-page #earning-vault .earning-filter select {
    color: #24190d !important;
    padding: 10px 14px !important;
  }

  body.dashboard-page #earning-vault .earning-filter button {
    color: #17120a !important;
    justify-self: stretch !important;
    padding: 10px 16px !important;
  }
}

body.invoice-page .custom-orders-page .custom-order-sablon-subtabs.packing-tabs {
  background: linear-gradient(135deg, rgba(5, 32, 35, 0.94), rgba(21, 18, 30, 0.94)) !important;
  border: 1px solid rgba(36, 214, 205, 0.42) !important;
  box-shadow: inset 0 0 26px rgba(36, 214, 205, 0.14), 0 14px 30px rgba(0, 0, 0, 0.2) !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-subtabs.packing-tabs a {
  background: linear-gradient(135deg, rgba(13, 54, 57, 0.96), rgba(18, 22, 32, 0.96)) !important;
  border: 1px solid rgba(36, 214, 205, 0.34) !important;
  color: #e5fbff !important;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.32) !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-subtabs.packing-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-sablon-subtabs.packing-tabs a:focus-visible {
  border-color: rgba(255, 230, 161, 0.58) !important;
  color: #ffe99f !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-subtabs.packing-tabs a.active {
  background: linear-gradient(135deg, #2dd4d7 0%, #f1d985 58%, #ff5f93 100%) !important;
  border-color: rgba(255, 236, 161, 0.82) !important;
  color: #071015 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-panel {
  margin: 12px 0 18px !important;
  border: 1px solid rgba(36, 214, 205, 0.34) !important;
  background: linear-gradient(135deg, rgba(5, 32, 35, 0.92), rgba(21, 18, 30, 0.92)) !important;
  box-shadow: inset 0 0 24px rgba(36, 214, 205, 0.12), 0 12px 26px rgba(0, 0, 0, 0.18) !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-panel summary {
  list-style: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-panel summary::-webkit-details-marker {
  display: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-toggle {
  align-items: center !important;
  background: linear-gradient(135deg, rgba(13, 54, 57, 0.96), rgba(18, 22, 32, 0.96)) !important;
  border: 1px solid rgba(36, 214, 205, 0.4) !important;
  color: #e5fbff !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-weight: 900 !important;
  gap: 10px !important;
  letter-spacing: 0 !important;
  min-height: 46px !important;
  padding: 10px 16px !important;
  text-shadow: 0 0 12px rgba(36, 214, 205, 0.28) !important;
  text-transform: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-toggle:hover,
body.invoice-page .custom-orders-page .custom-order-sablon-filter-toggle:focus-visible,
body.invoice-page .custom-orders-page .custom-order-sablon-filter-panel[open] .custom-order-sablon-filter-toggle {
  background: linear-gradient(135deg, #2dd4d7 0%, #f1d985 58%, #ff5f93 100%) !important;
  border-color: rgba(255, 236, 161, 0.82) !important;
  color: #071015 !important;
  outline: none !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-toggle svg {
  fill: none !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-linejoin: round !important;
  stroke-width: 2.1 !important;
  width: 18px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-toggle b {
  align-items: center !important;
  background: rgba(7, 16, 21, 0.18) !important;
  border: 1px solid rgba(7, 16, 21, 0.18) !important;
  display: inline-flex !important;
  font-size: 0.78rem !important;
  justify-content: center !important;
  min-width: 28px !important;
  padding: 2px 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-form {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 1fr)) auto !important;
  margin-top: 12px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-form label {
  color: #b6c7d8 !important;
  display: grid !important;
  font-weight: 800 !important;
  gap: 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-form label span {
  color: #b6c7d8 !important;
  font-size: 0.86rem !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-form input,
body.invoice-page .custom-orders-page .custom-order-sablon-filter-form select {
  background: #071015 !important;
  border: 1px solid rgba(36, 214, 205, 0.34) !important;
  color: #e5fbff !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-form input:focus,
body.invoice-page .custom-orders-page .custom-order-sablon-filter-form select:focus {
  border-color: rgba(255, 230, 161, 0.78) !important;
  outline: none !important;
}

/* Pesanan custom full-background skin, aligned with the kas keluar workspace model. */
body.invoice-page .custom-orders-page {
  --custom-order-mobile-bg: image-set(
    url("/static/brand/ksrf-custom-order-mobile-bg.webp") type("image/webp"),
    url("/static/brand/ksrf-custom-order-mobile-bg.png") type("image/png")
  );
  --custom-order-mobile-bg-fallback: url("/static/brand/ksrf-custom-order-mobile-bg.png");
  --custom-order-ink: #fff8ea;
  --custom-order-muted: #d7c6a4;
  --custom-order-panel: rgba(13, 13, 12, 0.5);
  --custom-order-panel-soft: rgba(8, 8, 7, 0.5);
  --custom-order-gold: #f0bf55;
  --custom-order-cyan: #44d7d2;
  --custom-order-pink: #ff4d87;
  border-color: rgba(240, 191, 85, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.36);
}

body.invoice-page .custom-orders-page > .invoice-builder-head,
body.invoice-page .custom-orders-page > .custom-order-tabs,
body.invoice-page .custom-orders-page > .cashier-workspace {
  animation: cashOutCardsFadeIn 680ms ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  animation-delay: 0.42s;
}

body.invoice-page .custom-orders-page > .custom-order-tabs {
  animation-delay: 0.58s;
}

body.invoice-page .custom-orders-page > .cashier-workspace {
  animation-delay: 0.74s;
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  background: linear-gradient(135deg, rgba(10, 10, 9, 0.54), rgba(45, 30, 12, 0.5));
  border: 1px solid rgba(240, 191, 85, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 20px 46px rgba(0, 0, 0, 0.26);
  clip-path: none;
}

body.invoice-page .custom-orders-page > .invoice-builder-head::before {
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  color: var(--custom-order-ink);
  font-weight: 900;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.86), 0 0 30px rgba(255, 225, 111, 0.24);
}

body.invoice-page .custom-orders-page .custom-order-page-title::before {
  content: "";
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-tabs {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  align-items: center;
  background: rgba(8, 8, 7, 0.5);
  border: 1px solid rgba(240, 191, 85, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.22);
  clip-path: none;
  color: var(--custom-order-muted);
  display: flex;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 8px;
  justify-content: flex-start;
  min-height: 54px;
  padding: 10px 12px;
  text-shadow: none;
}

body.invoice-page .custom-orders-page .custom-order-tabs a::before {
  background: linear-gradient(180deg, var(--custom-order-cyan), var(--custom-order-pink));
  border-radius: 999px;
  content: "";
  flex: 0 0 4px;
  height: 26px;
  inset: auto;
  opacity: 0.72;
  position: static;
  width: 4px;
}

body.invoice-page .custom-orders-page .custom-order-tabs a::after {
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page .custom-order-tabs a.active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href].active {
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.64), rgba(48, 30, 18, 0.6)) !important;
  border-color: rgba(255, 211, 107, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.28), 0 18px 38px rgba(0, 0, 0, 0.3);
  color: #ffe39a !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover::before,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible::before,
body.invoice-page .custom-orders-page .custom-order-tabs a.active::before {
  background: linear-gradient(180deg, #ffe39a, #f0bf55);
  opacity: 0.96;
}

body.invoice-page .custom-orders-page:has(.cashier-panel[data-custom-order-view]:target) .custom-order-tabs a.active {
  background: rgba(8, 8, 7, 0.5) !important;
  border-color: rgba(240, 191, 85, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.22);
  color: var(--custom-order-muted) !important;
}

body.invoice-page .custom-orders-page:has(.cashier-panel[data-custom-order-view]:target) .custom-order-tabs a.active::before {
  background: linear-gradient(180deg, var(--custom-order-cyan), var(--custom-order-pink));
  opacity: 0.72;
}

body.invoice-page .custom-orders-page:has(#custom-order-input:target) .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page:has(#custom-order-design:target) .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has(#custom-order-history:target) .custom-order-tabs a[href="#custom-order-history"] {
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.64), rgba(48, 30, 18, 0.6)) !important;
  border-color: rgba(255, 211, 107, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.28), 0 18px 38px rgba(0, 0, 0, 0.3);
  color: #ffe39a !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-input:target) .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-history:target) .custom-order-tabs a[href="#custom-order-history"]::before {
  background: linear-gradient(180deg, #ffe39a, #f0bf55);
  opacity: 0.96;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target {
  display: grid !important;
}

body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  display: grid !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] {
  background: var(--custom-order-panel);
  border-color: rgba(240, 191, 85, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 52px rgba(0, 0, 0, 0.32);
  clip-path: none;
  scrollbar-gutter: stable;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]::before {
  display: none;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-file-panel,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-product-panel,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-filter,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-design-tabs {
  background: rgba(8, 8, 7, 0.5);
  border-color: rgba(240, 191, 85, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.2);
  clip-path: none;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-input > .packing-panel-head {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-input > .cashier-form-grid,
body.invoice-page .custom-orders-page #custom-order-input .cashier-form-grid > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-customer-picker,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-file-panel,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-file-grid > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-panel,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-card,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-card > label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-input > .cashier-form-grid {
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-input .cashier-form-grid > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-file-grid > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor > label,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-card > label {
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-input .cashier-form-grid > label:focus-within,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-customer-picker:focus-within,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-file-grid > label:focus-within,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-editor > label:focus-within,
body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-card > label:focus-within {
  border: 0 !important;
  box-shadow: none !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head::after {
  background: linear-gradient(90deg, var(--custom-order-cyan), var(--custom-order-gold), var(--custom-order-pink));
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head h2,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-file-panel strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-product-head strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-prepare-main strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-pickup-card strong,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .custom-order-history-code {
  color: var(--custom-order-ink);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] label,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] small,
body.invoice-page .custom-orders-page .custom-order-pickup-card p {
  color: var(--custom-order-muted);
}

body.invoice-page .custom-orders-page .custom-order-prepare-card,
body.invoice-page .custom-orders-page .custom-order-pickup-card,
body.invoice-page .custom-orders-page .custom-order-history-card,
body.invoice-page .custom-orders-page .custom-order-design-card,
body.invoice-page .custom-orders-page .custom-order-product-card {
  background: rgba(8, 8, 7, 0.5);
  border-color: rgba(240, 191, 85, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.2);
  clip-path: none;
}

body.invoice-page .custom-orders-page .custom-order-product-editor {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.invoice-page .custom-orders-page .custom-order-product-summary {
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.62), rgba(48, 30, 18, 0.5));
  border: 1px solid rgba(240, 191, 85, 0.3);
  box-shadow: inset 3px 0 0 rgba(68, 215, 210, 0.5), 0 14px 28px rgba(0, 0, 0, 0.18);
  color: var(--custom-order-ink);
}

body.invoice-page .custom-orders-page .custom-order-product-summary:hover,
body.invoice-page .custom-orders-page .custom-order-product-summary:focus-visible {
  border-color: rgba(255, 227, 154, 0.72);
  box-shadow: 0 0 0 2px rgba(68, 215, 210, 0.18), 0 16px 32px rgba(0, 0, 0, 0.28);
  outline: none;
}

body.invoice-page .custom-orders-page .custom-order-product-summary small {
  color: rgba(255, 248, 234, 0.7);
}

body.invoice-page .custom-orders-page .custom-order-product-summary strong {
  color: var(--custom-order-ink);
}

body.invoice-page .custom-orders-page .custom-order-product-summary b {
  color: #ffe39a;
}

body.invoice-page .custom-orders-page .custom-order-product-actions button,
body.invoice-page .custom-orders-page .custom-order-add-product {
  background: linear-gradient(135deg, rgba(10, 45, 48, 0.92), rgba(50, 18, 43, 0.82));
  border: 1px solid rgba(68, 215, 210, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 225, 111, 0.16), 0 10px 22px rgba(0, 0, 0, 0.2);
  color: var(--custom-order-ink);
}

body.invoice-page .custom-orders-page .custom-order-product-actions {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

body.invoice-page .custom-orders-page .custom-order-product-actions button {
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

body.invoice-page .custom-orders-page .custom-order-product-actions button span {
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: normal;
}

body.invoice-page .custom-orders-page .custom-order-product-actions button:hover,
body.invoice-page .custom-orders-page .custom-order-product-actions button:focus-visible,
body.invoice-page .custom-orders-page .custom-order-add-product:hover,
body.invoice-page .custom-orders-page .custom-order-add-product:focus-visible {
  border-color: var(--custom-order-cyan);
  box-shadow: 0 0 0 3px rgba(68, 215, 210, 0.2), 0 14px 30px rgba(0, 0, 0, 0.28);
  outline: none;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-save-product] {
  background: linear-gradient(135deg, rgba(22, 104, 96, 0.96), rgba(18, 55, 52, 0.92));
  border-color: rgba(145, 255, 248, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px rgba(68, 215, 210, 0.14);
  color: #d9fffb;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-remove-product] {
  background: linear-gradient(135deg, rgba(116, 30, 57, 0.96), rgba(49, 16, 38, 0.92));
  border-color: rgba(255, 154, 186, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(255, 77, 135, 0.12);
  color: #ffe4ed;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .cashier-form-grid > label,
body.invoice-page .custom-orders-page .custom-order-customer-picker,
body.invoice-page .custom-orders-page .custom-order-file-grid > label,
body.invoice-page .custom-orders-page .custom-order-product-editor > label,
body.invoice-page .custom-orders-page .custom-order-product-card > label,
body.invoice-page .custom-orders-page .custom-order-design-section,
body.invoice-page .custom-orders-page .custom-order-history-section {
  background: rgba(8, 8, 7, 0.38);
  border-color: rgba(240, 191, 85, 0.18);
  border-left-color: rgba(240, 191, 85, 0.42);
  box-shadow: inset 3px 0 0 rgba(240, 191, 85, 0.38), inset 0 0 18px rgba(0, 0, 0, 0.16);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] select,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea {
  background: linear-gradient(135deg, rgba(10, 45, 48, 0.82), rgba(50, 18, 43, 0.72));
  border-color: rgba(68, 215, 210, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 225, 111, 0.14), 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--custom-order-ink);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea::placeholder {
  color: rgba(255, 248, 234, 0.62);
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] input:focus,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] select:focus,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] textarea:focus {
  border-color: var(--custom-order-cyan);
  box-shadow: 0 0 0 3px rgba(68, 215, 210, 0.2);
}

body.invoice-page .custom-orders-page .custom-order-select {
  display: block;
  position: relative;
  width: 100%;
}

body.invoice-page .custom-orders-page .custom-order-select select {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

body.invoice-page .custom-orders-page .custom-order-select-trigger {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 45, 48, 0.92), rgba(50, 18, 43, 0.82)),
    rgba(8, 8, 7, 0.78);
  border: 1px solid rgba(68, 215, 210, 0.42);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 225, 111, 0.14), 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--custom-order-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 15px;
  text-align: left;
  width: 100%;
}

body.invoice-page .custom-orders-page .custom-order-select-trigger::after {
  border: solid var(--custom-order-ink);
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  margin-left: 14px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
  width: 8px;
}

body.invoice-page .custom-orders-page .custom-order-select-trigger[aria-expanded="true"] {
  border-color: var(--custom-order-cyan);
  box-shadow: 0 0 0 3px rgba(68, 215, 210, 0.2), 0 14px 34px rgba(0, 0, 0, 0.34);
}

body.invoice-page .custom-orders-page .custom-order-select-trigger[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

body.invoice-page .custom-orders-page .custom-order-select-menu {
  background:
    linear-gradient(135deg, rgba(9, 35, 38, 0.98), rgba(52, 17, 45, 0.96)),
    rgba(8, 8, 7, 0.98);
  border: 1px solid rgba(68, 215, 210, 0.48);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(240, 191, 85, 0.18), 0 0 28px rgba(68, 215, 210, 0.16);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: min(420px, 56vh);
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

body.invoice-page .custom-orders-page .custom-order-select-menu[hidden] {
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-select-search {
  background: linear-gradient(135deg, rgba(10, 45, 48, 0.92), rgba(50, 18, 43, 0.82));
  border: 1px solid rgba(68, 215, 210, 0.48);
  border-radius: 6px;
  color: var(--custom-order-ink);
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

body.invoice-page .custom-orders-page .custom-order-select-search::placeholder {
  color: rgba(255, 248, 234, 0.58);
}

body.invoice-page .custom-orders-page .custom-order-select-search:focus {
  border-color: var(--custom-order-cyan);
  box-shadow: 0 0 0 3px rgba(68, 215, 210, 0.18);
  outline: none;
}

body.invoice-page .custom-orders-page .custom-order-select-option {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 248, 234, 0.84);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 13px;
  text-align: left;
}

body.invoice-page .custom-orders-page .custom-order-select-option.has-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 74px;
}

body.invoice-page .custom-orders-page .custom-order-select-option.has-preview img {
  aspect-ratio: 1 / 1;
  background: rgba(8, 8, 7, 0.62);
  border: 1px solid rgba(68, 215, 210, 0.34);
  border-radius: 6px;
  height: 58px;
  object-fit: cover;
  width: 72px;
}

body.invoice-page .custom-orders-page .custom-order-select-option.has-preview span {
  align-self: center;
  color: inherit;
  font-size: 1.02rem;
  min-width: 0;
  overflow-wrap: anywhere;
}


body.invoice-page .custom-orders-page .custom-order-legacy-design-preview {
  align-items: center;
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 8px;
  padding: 8px;
}

body.invoice-page .custom-orders-page .custom-order-legacy-design-preview[hidden] {
  display: none;
}

body.invoice-page .custom-orders-page .custom-order-legacy-design-preview img {
  aspect-ratio: 1 / 1;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  height: 64px;
  object-fit: cover;
  width: 72px;
}

body.invoice-page .custom-orders-page .custom-order-legacy-design-preview small {
  color: var(--ui-text-muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.invoice-page .custom-orders-page .custom-order-select-option:hover,
body.invoice-page .custom-orders-page .custom-order-select-option:focus-visible,
body.invoice-page .custom-orders-page .custom-order-select-option.is-selected {
  background: linear-gradient(135deg, rgba(68, 215, 210, 0.22), rgba(255, 77, 135, 0.18));
  border-color: rgba(255, 227, 154, 0.42);
  color: #ffe39a;
  outline: none;
}

body.invoice-page .custom-orders-page .invoice-print-button,
body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product,
body.invoice-page .custom-orders-page .cashier-action-button {
  background: linear-gradient(135deg, #ffe596, #e19f2e);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(240, 191, 85, 0.18), 0 0 0 1px rgba(244, 209, 124, 0.12);
  clip-path: none;
  color: #171008;
}

@media (min-width: 721px) {
  body.invoice-page.custom-orders-route {
    background: #080807;
    overflow: hidden;
  }

  body.invoice-page.custom-orders-route .shell {
    height: calc(100dvh - 68px);
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  body.invoice-page .custom-orders-page {
    background: var(--custom-order-mobile-bg-fallback) center center / cover no-repeat !important;
    background: var(--custom-order-mobile-bg) center center / cover no-repeat !important;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 14px;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: 18px 22px;
    position: relative;
    width: 100%;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace {
    justify-self: end;
    margin-left: auto;
    width: min(680px, 48vw);
    z-index: 2;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs {
    position: relative;
    z-index: 4;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    min-height: 0;
    overflow: hidden;
    padding: 0 4px 18px 0;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] {
    height: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    align-items: center;
    min-height: 112px;
    padding: 20px 22px;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: clamp(3rem, 4.4vw, 5.2rem);
    letter-spacing: 0.03em;
    line-height: 0.9;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  body.invoice-page .custom-orders-page {
    padding-inline: 18px;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace {
    justify-self: center;
    width: min(620px, calc(100vw - 36px));
  }
}

@media (max-width: 720px) {
  body.invoice-page.custom-orders-route {
    overflow: hidden;
  }

  body.invoice-page.custom-orders-route .shell {
    height: calc(100dvh - 76px);
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  body.invoice-page .custom-orders-page {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: 10px 12px 0;
    position: relative;
    width: 100%;
  }

  body.invoice-page .custom-orders-page::before {
    background: var(--custom-order-mobile-bg-fallback) center top / cover no-repeat;
    background: var(--custom-order-mobile-bg) center top / cover no-repeat;
    content: "";
    inset: 0 0 76px;
    pointer-events: none;
    position: fixed;
    z-index: 0;
  }

  body.invoice-page .custom-orders-page > * {
    position: relative;
    z-index: 1;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs {
    flex: 0 0 auto;
    z-index: 3;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 16px;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] {
    height: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    align-items: center;
    display: flex;
    min-height: 92px;
    overflow: visible;
    padding: 18px 16px;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: clamp(2.05rem, 9.5vw, 3.1rem);
    letter-spacing: 0.03em;
    line-height: 0.95;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    align-items: flex-start;
    display: grid;
    font-size: 0.68rem;
    gap: 4px;
    min-height: 58px;
    padding: 8px;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a::before {
    height: 3px;
    width: 100%;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head {
    margin-bottom: 10px;
    padding: 12px;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] .packing-panel-head h2 {
    font-size: 1rem;
    line-height: 1.15;
  }
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-actions {
  align-self: end !important;
  display: flex !important;
  gap: 10px !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-actions button,
body.invoice-page .custom-orders-page .custom-order-sablon-filter-actions a {
  align-items: center !important;
  background: linear-gradient(135deg, #2dd4d7 0%, #f1d985 58%, #ff5f93 100%) !important;
  border: 1px solid rgba(255, 236, 161, 0.82) !important;
  color: #071015 !important;
  display: inline-flex !important;
  font-weight: 900 !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
}

body.invoice-page .custom-orders-page .custom-order-sablon-filter-actions a {
  background: linear-gradient(135deg, rgba(13, 54, 57, 0.96), rgba(18, 22, 32, 0.96)) !important;
  border-color: rgba(36, 214, 205, 0.34) !important;
  color: #e5fbff !important;
}

@media (max-width: 1100px) {
  body.invoice-page .custom-orders-page .custom-order-sablon-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-sablon-filter-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  body.invoice-page .custom-orders-page .custom-order-sablon-filter-form {
    grid-template-columns: 1fr !important;
  }
}
body.community-page,
body.community-detail-page {
  background: var(--ui-bg);
  color: var(--ui-text);
}

body.community-page > .shell,
body.community-detail-page > .shell {
  max-width: min(100%, 940px);
  padding: clamp(14px, 4vw, 28px) clamp(12px, 4vw, 24px) calc(var(--bottom-nav-space, 80px) + clamp(18px, 5vw, 40px));
}

body.community-detail-page > .shell {
  max-width: min(100%, 980px);
}

.community-screen,
.community-detail {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  color: var(--ui-text);
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(18px, 4vw, 34px);
}

.community-detail {
  background: var(--ui-bg);
  gap: clamp(12px, 2.5vw, 22px);
  padding: clamp(14px, 3vw, 24px);
}

.community-hub-head,
.community-game-menu,
.community-panel,
.community-banner-card,
.community-game-side article,
.community-modal {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow);
  color: var(--ui-text);
}

.community-hub-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(18px, 4vw, 34px);
  text-align: center;
}

.community-kicker,
.community-banner-info small,
.community-game-side span,
.community-officers article span,
.community-status,
.community-section-head > span {
  color: var(--ui-accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.community-hub-head h1,
.community-game-menu h1,
.community-panel h2,
.community-banner-info h2,
.community-game-briefing h2 {
  color: var(--ui-text);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.community-hub-head h1 {
  font-size: clamp(2rem, 8vw, 4.25rem);
  font-weight: 900;
}

.community-game-menu h1 {
  font-size: clamp(2rem, 8vw, 4.6rem);
  font-weight: 900;
}

.community-panel h2,
.community-banner-info h2,
.community-game-briefing h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 850;
}

.community-hub-head p,
.community-game-menu p,
.community-panel p,
.community-banner-info p,
.community-muted,
.community-request-row p,
.community-request-row small,
.community-modal p {
  color: var(--ui-text-muted);
  line-height: 1.55;
  margin: 0;
}

.community-grid {
  display: grid;
  gap: clamp(14px, 3vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.community-banner-card {
  color: var(--ui-text);
  display: grid;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.community-banner-card a {
  color: inherit;
  text-decoration: none;
}

.community-banner-card:hover {
  border-color: var(--ui-accent);
  box-shadow: var(--ui-shadow-modal);
  transform: translateY(-2px);
}

.community-banner-card:focus-visible,
.community-game-tabs a:focus-visible,
.community-game-actions a:focus-visible,
.community-join-button:focus-visible,
.community-request-row button:focus-visible,
.community-modal button:focus-visible,
.community-modal select:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}

.community-banner-media {
  aspect-ratio: 16 / 9;
  background: var(--ui-field);
  border-bottom: 1px solid var(--ui-border);
  overflow: hidden;
}

.community-banner-media img,
.community-detail-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.community-banner-info {
  display: grid;
  gap: 8px;
  padding: clamp(14px, 3vw, 20px);
}

.community-card-meta,
.community-game-stats,
.community-game-actions,
.community-member-list,
.community-join-fields {
  display: grid;
  gap: 10px;
}

.community-card-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card-meta span,
.community-game-stats span,
.community-member-list span {
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  padding: 10px 12px;
}

.community-game-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-game-stats b {
  color: var(--ui-accent);
  display: block;
  font-size: .75rem;
  letter-spacing: .06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.community-detail-media {
  aspect-ratio: 16 / 8;
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
}

.community-game-topbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-game-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-color: var(--ui-primary) var(--ui-field);
}

.community-game-tabs::-webkit-scrollbar,
.community-game-panels::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.community-game-tabs::-webkit-scrollbar-track,
.community-game-panels::-webkit-scrollbar-track {
  background: var(--ui-field);
}

.community-game-tabs::-webkit-scrollbar-thumb,
.community-game-panels::-webkit-scrollbar-thumb {
  background: var(--ui-primary);
  border-radius: 999px;
}

.community-game-tabs a,
.community-game-actions a,
.community-join-button,
.community-request-row button,
.community-modal button {
  align-items: center;
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

.community-game-tabs a:hover,
.community-game-actions a:hover,
.community-join-button:hover,
.community-request-row button:hover,
.community-modal button:hover {
  background: var(--ui-surface-soft);
  border-color: var(--ui-accent);
  color: var(--ui-text);
  transform: translateY(-1px);
}

.community-game-tabs a.is-active,
.community-game-primary,
.community-request-row button[name="decision"][value="approve"],
.community-modal button[type="submit"]:first-of-type {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  color: var(--ui-on-primary);
}

.community-game-tabs a[aria-disabled="true"],
.community-game-actions a[aria-disabled="true"],
.community-join-button:disabled,
.community-request-row button:disabled,
.community-modal button:disabled,
.community-modal select:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.community-game-hud {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.community-game-hud span,
.community-status,
.community-section-head > span {
  background: var(--ui-info-soft);
  border: 1px solid var(--ui-info);
  border-radius: 999px;
  color: var(--ui-info-strong);
  padding: 8px 12px;
}

.community-status.is-approved {
  background: var(--ui-success-soft);
  border-color: var(--ui-success);
  color: var(--ui-success-strong);
}

.community-status.is-pending {
  background: var(--ui-warning-soft);
  border-color: var(--ui-warning);
  color: var(--ui-warning-strong);
}

.community-game-layout {
  align-items: start;
  display: grid;
  gap: clamp(14px, 3vw, 24px);
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
}

.community-game-menu,
.community-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 26px);
}

.community-game-back {
  justify-self: start;
}

.community-game-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.community-game-actions .community-status,
.community-game-actions .community-game-primary {
  grid-column: 1 / -1;
}

.community-game-side {
  display: grid;
  gap: 12px;
}

.community-game-side article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.community-game-side strong,
.community-officers article strong,
.community-request-row strong {
  color: var(--ui-text);
}

.community-game-panels {
  display: grid;
  gap: clamp(14px, 3vw, 22px);
  max-height: none;
  overflow: visible;
  scrollbar-color: var(--ui-primary) var(--ui-field);
}

.community-game-briefing {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-game-briefing span {
  background: var(--ui-info-soft);
  border: 1px solid var(--ui-info);
  border-radius: 999px;
  color: var(--ui-info-strong);
  font-weight: 800;
  padding: 8px 12px;
}

.community-section-head,
.community-request-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.community-officers > div,
.community-member-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.community-officers article,
.community-request-row {
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  display: grid;
  gap: 6px;
  padding: 12px;
}

.community-request-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-request-row form,
.community-modal form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-modal-backdrop {
  align-items: center;
  background: color-mix(in srgb, var(--ui-bg) 72%, transparent);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1200;
}

.community-modal-backdrop[hidden] {
  display: none;
}

.community-modal {
  max-height: min(86dvh, 720px);
  max-width: min(100%, 560px);
  overflow: auto;
  padding: clamp(18px, 4vw, 28px);
  scrollbar-color: var(--ui-primary) var(--ui-field);
}

.community-modal form {
  display: grid;
}

.community-join-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-join-fields label {
  color: var(--ui-text);
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.community-join-fields label span {
  color: var(--ui-text-muted);
  font-size: .875rem;
}

.community-modal select {
  appearance: none;
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  min-height: 42px;
  padding: 9px 11px;
}

.community-modal select:hover {
  border-color: var(--ui-accent);
}

.community-modal option {
  background: var(--ui-surface);
  color: var(--ui-text);
}

@media (max-width: 760px) {
  body.community-page > .shell,
  body.community-detail-page > .shell {
    padding-inline: 10px;
  }

  .community-screen,
  .community-detail {
    border-radius: var(--ui-radius-md);
    padding: 12px;
  }

  .community-hub-head {
    text-align: left;
    justify-items: stretch;
  }

  .community-game-topbar,
  .community-game-layout,
  .community-game-briefing,
  .community-request-row {
    grid-template-columns: 1fr;
  }

  .community-game-topbar {
    align-items: stretch;
  }

  .community-game-hud {
    justify-content: start;
  }

  .community-card-meta,
  .community-game-stats,
  .community-join-fields {
    grid-template-columns: 1fr;
  }

  .community-detail-media {
    aspect-ratio: 16 / 10;
  }

  .community-game-actions,
  .community-request-row form,
  .community-modal form {
    grid-template-columns: 1fr;
  }

  .community-game-actions a,
  .community-join-button,
  .community-request-row button,
  .community-modal button {
    width: 100%;
  }
}

/* Keep pinned follow-up info in its own layout row above the scrollable chat. */
body.chat-page .chat-layout,
body.chat-panel-embed .chat-layout {
  display: grid;
  grid-template-areas:
    "chat-head"
    "chat-search"
    "chat-followup"
    "chat-thread"
    "chat-reply";
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

body.chat-page .chat-head,
body.chat-panel-embed .chat-head {
  grid-area: chat-head;
}

body.chat-page .chat-search-panel,
body.chat-panel-embed .chat-search-panel {
  grid-area: chat-search;
}

body.chat-page .chat-followup-pin,
body.chat-panel-embed .chat-followup-pin {
  align-self: stretch;
  border-bottom: 1px solid rgba(255, 224, 113, 0.22);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  grid-area: chat-followup;
  margin: 0;
  max-height: min(30dvh, 188px);
  overflow-y: auto;
  position: relative;
  z-index: 3;
}

body.chat-page .chat-followup-pin p,
body.chat-panel-embed .chat-followup-pin p {
  line-height: 1.35;
}

body.chat-page .thread,
body.chat-panel-embed .thread {
  grid-area: chat-thread;
}

body.chat-page .reply,
body.chat-panel-embed .reply {
  grid-area: chat-reply;
}

/* Mobile partner investment report. */
@media (max-width: 760px) {
  body.dashboard-page .partner-investment-section {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 22px 18px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-card .earning-card-head {
    display: block !important;
    flex: 0 0 auto !important;
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-card .earning-card-head > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-card .dashboard-kicker {
    display: inline-block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body.dashboard-page .partner-investment-grid {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 10px !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-group-card {
    padding: 18px 14px !important;
  }

  body.dashboard-page .partner-investment-group-head {
    align-items: start !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.dashboard-page .partner-investment-filter-icon {
    height: 40px !important;
    width: 40px !important;
  }

  body.dashboard-page .partner-investment-group-table {
    display: none !important;
  }

  body.dashboard-page .partner-investment-mobile-cards {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details {
    background: #fffdf8 !important;
    border: 1px solid rgba(216, 162, 71, 0.34) !important;
    border-radius: 12px !important;
    color: #01142f !important;
    overflow: hidden !important;
  }

  body.dashboard-page .partner-investment-mobile-cards summary {
    align-items: center !important;
    cursor: pointer !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    list-style: none !important;
    padding: 12px !important;
  }

  body.dashboard-page .partner-investment-mobile-cards summary::-webkit-details-marker {
    display: none !important;
  }

  body.dashboard-page .partner-investment-mobile-cards summary b,
  body.dashboard-page .partner-investment-mobile-cards summary strong {
    color: #01142f !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }

  body.dashboard-page .partner-investment-mobile-cards summary small {
    color: #64748b !important;
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    margin-top: 3px !important;
  }

  body.dashboard-page .partner-investment-mobile-cards summary strong {
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div {
    border-top: 1px solid rgba(216, 162, 71, 0.24) !important;
    display: grid !important;
    gap: 0 !important;
    padding: 0 12px 8px !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div > span {
    align-items: center !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 9px 0 !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div > span:last-child {
    border-bottom: 0 !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div b {
    color: #01142f !important;
    font-size: 0.82rem !important;
    min-width: 0 !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div strong {
    color: #01142f !important;
    font-size: 0.82rem !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.dashboard-page .partner-investment-mobile-cards details > div small {
    color: #64748b !important;
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
  }

  body.dashboard-page .partner-investment-grid span,
  body.dashboard-page .partner-investment-grid .earning-breakdown-trigger {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .earning-modal-backdrop {
    align-items: stretch !important;
    padding: calc(72px + env(safe-area-inset-top)) 10px calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body.dashboard-page .earning-modal {
    box-sizing: border-box !important;
    max-height: calc(100dvh - 154px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 18px 16px 24px !important;
    width: 100% !important;
  }

  body.dashboard-page .earning-modal-summary {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-page .partner-investment-modal-panel {
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-filter {
    box-sizing: border-box !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-filter input,
  body.dashboard-page .partner-investment-filter select {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-filter > div {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-filter button {
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-list article {
    box-sizing: border-box !important;
    gap: 8px 10px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-list article > span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  body.dashboard-page .partner-investment-list article > span:nth-child(2) {
    grid-column: 1 / -1 !important;
  }

  body.dashboard-page .partner-investment-list article > strong {
    font-size: 0.96rem !important;
    justify-self: start !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  body.dashboard-page .partner-investment-product-list summary,
  body.dashboard-page .partner-investment-product-history article {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-page .partner-investment-pagination {
    justify-content: center !important;
  }
}

@media (max-width: 430px) {
  body.dashboard-page .partner-investment-card {
    padding: 20px 14px !important;
  }

  body.dashboard-page .earning-modal {
    border-radius: 16px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.dashboard-page .partner-investment-list article {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-page .partner-investment-list article > strong {
    justify-self: start !important;
  }
}

/* Dashboard group investor profit chart: keep contrast and mobile layout readable. */
body.dashboard-page .partner-investment-profit-chart-card {
  align-items: stretch !important;
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16) !important;
  color: #01142f !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.dashboard-page .partner-investment-profit-chart-card .dashboard-kicker {
  background: linear-gradient(90deg, #f0c85c, #c68b27) !important;
  border: 0 !important;
  color: #1f1609 !important;
}

body.dashboard-page .partner-investment-profit-chart-card h2,
body.dashboard-page .partner-investment-profit-chart-card label,
body.dashboard-page .partner-investment-profit-bar strong {
  color: #01142f !important;
  text-shadow: none !important;
}

body.dashboard-page .partner-investment-profit-chart-card p,
body.dashboard-page .partner-investment-profit-chart-card small,
body.dashboard-page .partner-investment-profit-bar span {
  color: #53657e !important;
  text-shadow: none !important;
}

body.dashboard-page .partner-investment-chart-filter select {
  background: #fffdf8 !important;
  border-color: rgba(216, 162, 71, 0.52) !important;
  color: #20170d !important;
}

body.dashboard-page .partner-investment-chart-filter button {
  background: linear-gradient(135deg, #f2c760, #c98f2e) !important;
  border-color: rgba(130, 88, 19, 0.24) !important;
  color: #120d06 !important;
}

body.dashboard-page .partner-investment-profit-bar div {
  background: #e2e8f0 !important;
}

@media (max-width: 760px) {
  body.dashboard-page .partner-investment-profit-chart-card {
    align-items: stretch !important;
    border-radius: 16px !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 12px !important;
    overflow: hidden !important;
    padding: 16px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-chart-head {
    align-items: stretch !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-chart-head > div,
  body.dashboard-page .partner-investment-chart-head > form {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-chart-head h2 {
    font-size: 1.25rem !important;
    line-height: 1.08 !important;
    margin: 6px 0 !important;
  }

  body.dashboard-page .partner-investment-chart-head p {
    font-size: 0.9rem !important;
    line-height: 1.38 !important;
  }

  body.dashboard-page .partner-investment-chart-filter {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-chart-filter label {
    font-size: 0.72rem !important;
    gap: 5px !important;
  }

  body.dashboard-page .partner-investment-chart-filter select,
  body.dashboard-page .partner-investment-chart-filter button {
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-size: 0.92rem !important;
    min-height: 42px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-profit-chart {
    background: #fffdf8 !important;
    border: 1px solid rgba(216, 162, 71, 0.32) !important;
    border-radius: 12px !important;
    display: grid !important;
    gap: 9px !important;
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    order: 2 !important;
    padding: 10px !important;
    width: 100% !important;
  }

  body.dashboard-page .partner-investment-profit-bar {
    align-items: center !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 34px minmax(0, 1fr) 92px !important;
    min-width: 0 !important;
  }

  body.dashboard-page .partner-investment-profit-bar span {
    font-size: 0.7rem !important;
    line-height: 1 !important;
  }

  body.dashboard-page .partner-investment-profit-bar div {
    height: 10px !important;
    min-width: 0 !important;
  }

  body.dashboard-page .partner-investment-profit-bar strong {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
    white-space: normal !important;
  }
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link] {
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 5px 4px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs small {
  display: none !important;
}

@media (min-width: 981px) {
  body.invoice-page .custom-orders-page {
    align-items: stretch !important;
    gap: 16px 20px !important;
    grid-template-columns: minmax(300px, 32vw) minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    padding: 18px 26px !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace {
    justify-self: stretch !important;
    margin-left: 0 !important;
    width: auto !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 120px !important;
    padding: 20px 22px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: clamp(2.55rem, 3.4vw, 4.5rem) !important;
    line-height: 0.92 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    align-self: start !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    font-size: 0.78rem !important;
    min-height: 48px !important;
    padding: 9px 10px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a::before {
    height: 22px !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    min-height: 0 !important;
    padding: 0 0 18px !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .cashier-panel[data-custom-order-view] {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    padding: 0 18px 104px 0 !important;
    scroll-padding-bottom: 112px !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .cashier-panel[data-custom-order-view]::before {
    display: none !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .cashier-panel[data-custom-order-view] .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace .cashier-panel[data-custom-order-view] .custom-order-design-pagination,
  body.invoice-page .custom-orders-page > .cashier-workspace .cashier-panel[data-custom-order-view] .custom-order-filter {
    background:
      linear-gradient(90deg, rgba(36, 214, 205, 0.08), transparent 34%),
      linear-gradient(135deg, rgba(8, 8, 7, 0.5), rgba(48, 30, 18, 0.34)) !important;
    border: 1px solid rgba(240, 191, 85, 0.24) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.18) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs {
    padding: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link] {
    background: rgba(8, 8, 7, 0.38) !important;
    border-color: rgba(240, 191, 85, 0.26) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    color: #fff8ea !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:hover,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button:focus-visible,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:hover,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link]:focus-visible,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link].active {
    background: linear-gradient(135deg, rgba(8, 8, 7, 0.64), rgba(48, 30, 18, 0.54)) !important;
    border-color: rgba(255, 211, 107, 0.7) !important;
    box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.22), 0 16px 30px rgba(0, 0, 0, 0.24) !important;
    color: #ffe39a !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-card,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-prepare-card,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-pickup-card,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-history-card,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-product-card {
    background:
      linear-gradient(90deg, rgba(36, 214, 205, 0.1), transparent 28%),
      linear-gradient(135deg, rgba(8, 8, 7, 0.56), rgba(27, 12, 30, 0.4)) !important;
    border-color: rgba(240, 191, 85, 0.24) !important;
    box-shadow: inset 3px 0 0 rgba(36, 214, 205, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.18) !important;
    clip-path: none !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-card:hover,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-prepare-card:hover,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-pickup-card:hover,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-history-card:hover,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-product-card:hover {
    border-color: rgba(255, 211, 107, 0.48) !important;
    box-shadow: inset 3px 0 0 rgba(255, 211, 107, 0.9), 0 0 26px rgba(36, 214, 205, 0.12), 0 14px 28px rgba(0, 0, 0, 0.2) !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-summary {
    background: transparent !important;
  }
}

body.invoice-page.custom-orders-route > .topbar {
  display: none !important;
}

@media (min-width: 721px) {
  body.invoice-page.custom-orders-route .shell {
    height: 100dvh !important;
  }
}

@media (min-width: 981px) {
  body.invoice-page .custom-orders-page #custom-order-design {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 0 18px 0 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-filter {
    grid-row: 2 !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-filter {
    position: relative !important;
    top: 0 !important;
    z-index: 14 !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-pagination {
    position: relative !important;
    top: auto !important;
    z-index: 13 !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-pagination,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-filter {
    background:
      linear-gradient(180deg, rgba(4, 9, 12, 0.94), rgba(10, 12, 15, 0.86)),
      linear-gradient(90deg, rgba(36, 214, 205, 0.08), rgba(255, 79, 157, 0.08)) !important;
    backdrop-filter: blur(16px) saturate(1.35) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-tabs::after,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-design-pagination::after,
  body.invoice-page .custom-orders-page > .cashier-workspace .custom-order-filter::after {
    background: linear-gradient(180deg, rgba(4, 7, 10, 0.74), transparent) !important;
    content: "" !important;
    height: 14px !important;
    left: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
    align-content: start !important;
    display: grid !important;
    gap: 12px !important;
    grid-auto-rows: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 12px 0 124px !important;
    position: relative !important;
    scroll-padding-bottom: 132px !important;
    z-index: 1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card {
    display: block !important;
    min-height: 62px !important;
    overflow: hidden !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card[open] {
    overflow: hidden !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card[hidden] {
    display: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-summary {
    align-items: center !important;
    cursor: pointer !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(140px, 0.86fr) minmax(0, 1fr) minmax(118px, 0.46fr) minmax(34px, max-content) !important;
    min-height: 62px !important;
    padding: 12px 16px !important;
    user-select: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-summary > * {
    pointer-events: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-summary::after {
    display: none !important;
    grid-column: 4 !important;
    position: static !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-toggle {
    align-items: center !important;
    color: #ffe39a !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    grid-column: 4 !important;
    justify-content: center !important;
    min-height: 34px !important;
    min-width: 34px !important;
    pointer-events: auto !important;
    position: relative !important;
    text-shadow: 0 0 14px rgba(246, 210, 122, 0.36) !important;
    z-index: 20 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-code,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-name,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-date {
    display: block !important;
    opacity: 1 !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-code {
    color: #ffe39a !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-name {
    color: #fff8ea !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-date {
    color: #9fd9ff !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-detail {
    display: grid !important;
    gap: 14px !important;
    padding: 14px 16px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link] {
    background:
      linear-gradient(135deg, rgba(7, 17, 20, 0.78), rgba(24, 13, 22, 0.64)) !important;
    border-color: rgba(255, 248, 234, 0.18) !important;
    color: rgba(255, 248, 234, 0.82) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs a[data-design-tab-link].active {
    background:
      linear-gradient(135deg, rgba(35, 202, 194, 0.34), rgba(244, 209, 124, 0.24)) !important;
    border-color: rgba(244, 209, 124, 0.68) !important;
    color: #fff8ea !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination .custom-order-design-filter-icon {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 16 !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination button,
  body.invoice-page .custom-orders-page .custom-order-design-pagination input,
  body.invoice-page .custom-orders-page .custom-order-design-pagination output {
    position: relative !important;
    z-index: 15 !important;
  }
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-pagination,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-filter {
  position: static !important;
  top: auto !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design {
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
  align-content: start !important;
  grid-auto-rows: auto !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card {
  contain: none !important;
  height: auto !important;
  min-height: 62px !important;
  overflow: visible !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card[open] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: max-content !important;
  overflow: visible !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card[open] .custom-order-design-detail {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  min-height: max-content !important;
  position: static !important;
  visibility: visible !important;
}

body.invoice-page .custom-orders-page #custom-order-design details.custom-order-design-card:not([open]) {
  max-height: none !important;
  min-height: 62px !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-design details.custom-order-design-card:not([open]) .custom-order-design-detail {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design details.custom-order-design-card > .custom-order-design-summary {
  align-items: center !important;
  display: grid !important;
  gap: 12px !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  grid-template-columns: minmax(140px, 0.86fr) minmax(0, 1fr) minmax(118px, 0.46fr) minmax(34px, max-content) !important;
  line-height: 1.2 !important;
  min-height: 62px !important;
  padding: 12px 16px !important;
}

body.invoice-page .custom-orders-page #custom-order-design details.custom-order-design-card > .custom-order-design-summary .custom-order-design-toggle {
  align-self: center !important;
  justify-self: end !important;
}

body.invoice-page .custom-orders-page #custom-order-design {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-padding-bottom: 132px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-tabs {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
  min-height: auto !important;
  overflow: visible !important;
  padding-bottom: 132px !important;
}

body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  display: none !important;
}

body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs {
  display: grid !important;
}

@media (min-width: 981px) {
  body.invoice-page .custom-orders-page {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    align-self: start !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: calc(100dvh - 424px) !important;
    overflow: auto !important;
    padding: 0 !important;
    z-index: 3 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link] {
    min-height: 56px !important;
    padding: 10px 12px !important;
    text-align: left !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs span {
    white-space: normal !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs small {
    display: none !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    grid-row: 1 / span 3 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    padding: 0 18px 0 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-pagination,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-filter,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-sablon-filter-panel {
    grid-row: auto !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list,
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-sablon-history-list {
    align-content: start !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 0 132px !important;
  }
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 22dvh;
    overflow: auto;
    z-index: 3;
  }
}

@media (min-width: 981px) {
  body.invoice-page .custom-orders-page #custom-order-design {
    grid-template-rows: auto auto auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-pagination {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-pagination::after {
    display: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
    min-height: auto !important;
    overflow: visible !important;
  }
}

body.invoice-page .custom-orders-page:has(.cashier-panel[data-custom-order-view]:target) .cashier-panel[data-custom-order-view],
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) .cashier-panel[data-custom-order-view] {
  display: none !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-input:target) #custom-order-input,
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) #custom-order-prepare,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) #custom-order-design,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) #custom-order-sablon,
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) #custom-order-pickup,
body.invoice-page .custom-orders-page:has(#custom-order-history:target) #custom-order-history,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  display: grid !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-sablon-filter-panel {
  position: static !important;
  top: auto !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs {
  max-height: none !important;
  overflow: visible !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-sablon-history-list {
  min-height: auto !important;
  overflow: visible !important;
  padding-bottom: 132px !important;
}

body.invoice-page .custom-orders-page:not(:has(#custom-order-design:target)):not(:has([data-design-card]:target)) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:not(:has(#custom-order-design:target)):not(:has([data-design-card]:target)) #custom-order-design {
  display: none !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:has([data-design-card]:target) > .custom-order-design-tabs {
  display: grid !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  max-height: none !important;
  overflow: visible !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design:target) #custom-order-design,
body.invoice-page .custom-orders-page:has([data-design-card]:target) #custom-order-design {
  display: grid !important;
}

body.invoice-page .custom-orders-page #custom-order-design > .packing-panel-head {
  display: none !important;
}

/* Calm workspace treatment for cashier cash-in/out work pages. */
body.invoice-page .cashier-cash-out-page {
  --cashout-ink: #172126;
  --cashout-muted: #66777f;
  --cashout-panel: rgba(255, 255, 255, 0.96);
  --cashout-panel-soft: rgba(246, 249, 249, 0.98);
  --cashout-gold: #b98826;
  --cashout-cyan: #0f8f86;
  --cashout-pink: #bd6c86;
  background:
    linear-gradient(135deg, rgba(235, 244, 243, 0.96), rgba(244, 247, 249, 0.94) 42%, rgba(236, 240, 244, 0.96)),
    #eff4f3 !important;
  border-color: rgba(127, 144, 151, 0.18);
  color: var(--cashout-ink);
}

body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
body.invoice-page .cashier-cash-out-page > .cashier-workspace {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head,
body.invoice-page .cashier-cash-out-page .cashier-panel,
body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a,
body.invoice-page .cashier-cash-out-page .cash-out-history-item,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail section,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-block,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-table,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt,
body.invoice-page .cashier-cash-out-page .cash-out-category-summary {
  background: var(--cashout-panel) !important;
  border: 1px solid rgba(134, 151, 158, 0.22) !important;
  box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  color: var(--cashout-ink) !important;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head {
  border-radius: 18px;
  min-height: auto;
  padding: 22px 24px;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head h1 {
  color: #172126 !important;
  font-size: clamp(2.45rem, 4.4vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.96;
  text-shadow: none !important;
  text-transform: none;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head p:not(.auth-brand) {
  color: #66777f !important;
  font-size: 0.95rem;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head .auth-brand,
body.invoice-page .cashier-cash-out-page .dashboard-kicker {
  background: rgba(15, 143, 134, 0.1) !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  color: #0d756e !important;
  letter-spacing: 0.18em;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs {
  gap: 8px;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a {
  border-radius: 16px;
  min-height: 58px;
  padding: 11px 14px;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a::before {
  background: #cfdadd !important;
  opacity: 1;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a.active {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: 0 12px 30px rgba(15, 143, 134, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a.active::before {
  background: #0f8f86 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs span,
body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs small,
body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a.active span,
body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a.active small {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs span {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: none;
}

body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs small {
  color: #66777f !important;
  font-size: 0.72rem;
  font-weight: 700;
}

body.invoice-page .cashier-cash-out-page .cashier-panel {
  border-radius: 18px;
  padding: 22px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel .packing-panel-head h2,
body.invoice-page .cashier-cash-out-page .cashier-inline-head strong,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row strong,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row span,
body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail p,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail b,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail small {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel .packing-panel-head small,
body.invoice-page .cashier-cash-out-page .cashier-inline-head small,
body.invoice-page .cashier-cash-out-page .cashier-panel label,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-row span small,
body.invoice-page .cashier-cash-out-page .cash-out-history-category small,
body.invoice-page .cashier-cash-out-page .cash-out-history-date em {
  color: #66777f !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel input,
body.invoice-page .cashier-cash-out-page .cashier-panel select,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea,
body.invoice-page .cashier-cash-out-page .cash-out-combobox input {
  background: #f7faf9 !important;
  border: 1px solid rgba(134, 151, 158, 0.28) !important;
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(38, 52, 58, 0.04) !important;
  color: #172126 !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel input::placeholder,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea::placeholder {
  color: rgba(102, 119, 127, 0.72) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel input:focus,
body.invoice-page .cashier-cash-out-page .cashier-panel select:focus,
body.invoice-page .cashier-cash-out-page .cashier-panel textarea:focus,
body.invoice-page .cashier-cash-out-page .cash-out-combobox input:focus {
  border-color: rgba(15, 143, 134, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.14) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select {
  color-scheme: light;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select option {
  background-color: #ffffff;
  color: #172126;
}

body.invoice-page .cashier-cash-out-page .cashier-panel select option:checked,
body.invoice-page .cashier-cash-out-page .cashier-panel select option:hover,
body.invoice-page .cashier-cash-out-page .cashier-panel select option:focus {
  background: #dff2ef;
  color: #0b5853;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox::after {
  border-top-color: #66777f !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list,
body.invoice-page .cashier-cash-out-page .cash-out-combobox-empty,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter form {
  background: #ffffff !important;
  border: 1px solid rgba(134, 151, 158, 0.22) !important;
  box-shadow: 0 18px 42px rgba(38, 52, 58, 0.16) !important;
  color: #172126 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button {
  color: #172126 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button:hover,
body.invoice-page .cashier-cash-out-page .cash-out-combobox-list button:focus {
  background: #e8f5f3 !important;
  color: #0b5853 !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-add-button,
body.invoice-page .cashier-cash-out-page .cashier-form-actions .invoice-print-button,
body.invoice-page .cashier-cash-out-page .cashier-history-pager button,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter button {
  background: #0f8f86 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 143, 134, 0.18) !important;
  color: #ffffff !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-line > button,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter a,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-detail-view a,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions a,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions button,
body.invoice-page .cashier-cash-out-page .cashier-history-pager a {
  background: #f2f6f6 !important;
  border: 1px solid rgba(134, 151, 158, 0.28) !important;
  border-radius: 12px;
  color: #172126 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-list {
  gap: 12px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item {
  border-radius: 18px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
  gap: 16px;
  min-height: 74px;
  padding: 14px 16px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger span {
  gap: 4px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-category small {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-date em {
  font-size: 0.76rem;
  font-weight: 700;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
  color: #0d756e !important;
  font-size: 0.94rem;
  font-weight: 900;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item[open] .cash-out-history-trigger {
  background: #f7faf9 !important;
  border-bottom: 1px solid rgba(134, 151, 158, 0.16);
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
  border: 0 !important;
  border-radius: 0 0 18px 18px;
  box-shadow: none !important;
  gap: 14px;
  padding: 16px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail section {
  background: #f7faf9 !important;
  border-radius: 16px !important;
  gap: 8px;
  padding: 14px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail section > strong {
  color: #0d756e !important;
  font-size: 0.92rem;
  font-weight: 850;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail p,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail b,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail small,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail a {
  font-size: 0.88rem;
  line-height: 1.42;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail a {
  color: #0d756e !important;
  font-weight: 800;
  text-decoration-color: rgba(15, 143, 134, 0.38);
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-row-head {
  background: #eef4f4 !important;
  color: #66777f !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-row {
  border-top-color: rgba(134, 151, 158, 0.18) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary strong,
body.invoice-page .cashier-cash-out-page .cash-out-category-summary b {
  color: #172126 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary small {
  color: #66777f !important;
  font-weight: 650;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-summary b {
  color: #0d756e !important;
}

body.invoice-page .cashier-cash-out-page .cashier-empty-state {
  background: #ffffff !important;
  border-color: rgba(134, 151, 158, 0.22) !important;
  color: #66777f !important;
}

body.invoice-page .cashier-cash-out-page .cashier-empty-state strong {
  color: #172126 !important;
}

@media (min-width: 721px) {
  body.invoice-page:has(.cashier-cash-out-page) {
    background: #eff4f3 !important;
  }

  body.invoice-page .cashier-cash-out-page {
    background:
      linear-gradient(135deg, rgba(235, 244, 243, 0.98), rgba(247, 249, 250, 0.96) 46%, rgba(235, 239, 243, 0.98)),
      #eff4f3 !important;
    padding: clamp(18px, 2vw, 30px) clamp(22px, 4vw, 58px) 18px;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    width: min(620px, 45vw);
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page {
    background: #eff4f3 !important;
    gap: 10px;
    padding: 14px 10px 16px;
  }

  body.invoice-page .cashier-cash-out-page::before {
    background:
      linear-gradient(135deg, rgba(235, 244, 243, 0.98), rgba(247, 249, 250, 0.96)),
      #eff4f3 !important;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page .cashier-panel,
  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a {
    background: var(--cashout-panel) !important;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head {
    border-radius: 18px;
    min-height: auto;
    padding: 16px;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head h1 {
    color: #172126 !important;
    font-size: clamp(1.9rem, 10vw, 2.7rem);
    letter-spacing: 0;
    line-height: 0.98;
    text-shadow: none !important;
    text-transform: none;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a {
    border-radius: 16px;
    min-height: 58px;
    padding: 10px;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
    gap: 10px;
    grid-template-columns: minmax(58px, 0.7fr) minmax(0, 1.2fr) minmax(86px, 0.9fr);
    min-height: 72px;
    padding: 12px;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
    font-size: 0.78rem;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-category small {
    font-size: 0.66rem;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
    font-size: 0.78rem;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
    padding: 12px;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-detail section {
    padding: 12px !important;
  }
}

/* Final polish for the calm cashier workspace layout. */
body.invoice-page .cashier-cash-out-page .cashier-workspace {
  scrollbar-color: rgba(15, 143, 134, 0.36) rgba(229, 238, 238, 0.78);
  scrollbar-width: thin;
}

body.invoice-page .cashier-cash-out-page .cashier-workspace::-webkit-scrollbar,
body.invoice-page .cashier-cash-out-page .cash-out-category-account-card::-webkit-scrollbar {
  width: 10px;
}

body.invoice-page .cashier-cash-out-page .cashier-workspace::-webkit-scrollbar-track,
body.invoice-page .cashier-cash-out-page .cash-out-category-account-card::-webkit-scrollbar-track {
  background: rgba(229, 238, 238, 0.78);
  border-radius: 999px;
}

body.invoice-page .cashier-cash-out-page .cashier-workspace::-webkit-scrollbar-thumb,
body.invoice-page .cashier-cash-out-page .cash-out-category-account-card::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.36);
  border: 2px solid rgba(229, 238, 238, 0.78);
  border-radius: 999px;
}

body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav {
  background: rgba(236, 246, 245, 0.94) !important;
  border-top-color: rgba(15, 143, 134, 0.16) !important;
  box-shadow: 0 -12px 34px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav a,
body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav button {
  color: #64777f !important;
}

body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav a.active,
body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav button.active,
body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav a:hover,
body.invoice-page:has(.cashier-cash-out-page) .home-bottom-nav button:hover {
  color: #0d756e !important;
}

body.invoice-page:has(.cashier-cash-out-page) .bottom-chat-link em,
body.invoice-page:has(.cashier-cash-out-page) .bottom-dashboard-badge,
body.invoice-page:has(.cashier-cash-out-page) .bottom-notification-button em {
  background: #c9953a !important;
  border-color: #f8fbfa !important;
  color: #ffffff !important;
}

@media (min-width: 981px) {
  body.invoice-page .cashier-cash-out-page {
    grid-template-columns: minmax(260px, 0.82fr) minmax(640px, 760px) minmax(28px, 0.26fr);
    padding-inline: clamp(28px, 3vw, 54px);
  }

  body.invoice-page .cashier-cash-out-page::after {
    color: rgba(15, 143, 134, 0.06);
    content: "KSRF";
    font-size: clamp(5rem, 11vw, 12rem);
    font-weight: 900;
    left: clamp(40px, 9vw, 180px);
    letter-spacing: 0.02em;
    line-height: 1;
    pointer-events: none;
    position: fixed;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
    top: 48%;
    transform: translateY(-50%);
    z-index: 0;
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    grid-column: 2;
    justify-self: stretch;
    margin-left: 0;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head {
    padding: 18px 22px;
  }

  body.invoice-page .cashier-cash-out-page .invoice-builder-head h1 {
    font-size: clamp(2.1rem, 3.45vw, 3.55rem);
    line-height: 1;
  }
}

/* Minimal cashier refinement: centered layout, no watermark, clearer totals. */
body.invoice-page .cashier-cash-out-page::after {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .invoice-builder-head,
body.invoice-page .cashier-cash-out-page .cashier-panel,
body.invoice-page .cashier-cash-out-page .cash-out-mode-tabs a,
body.invoice-page .cashier-cash-out-page .cash-out-history-item,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail section,
body.invoice-page .cashier-cash-out-page .cash-out-category-summary {
  border-radius: 20px !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-block,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt {
  border-radius: 18px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-total {
  align-items: center;
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  color: #355059 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  padding: 12px 14px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-total strong,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-total span,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-total b {
  color: #0b5853 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions button,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-payment],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-receipt],
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
  background: #0f8f86 !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-payment],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-category],
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-receipt] {
  background: #eef3f3 !important;
  border-color: rgba(102, 119, 127, 0.22) !important;
  color: #66777f !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-category]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-out-payment]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-category]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-save-cash-in-receipt]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button:hover {
  background: #0b7f78 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-category]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-out-payment]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-category]:hover,
body.invoice-page .cashier-cash-out-page .cash-out-category-actions [data-delete-cash-in-receipt]:hover {
  background: #e2e9e9 !important;
  color: #425158 !important;
}

@media (min-width: 981px) {
  body.invoice-page .cashier-cash-out-page {
    grid-template-columns: minmax(0, 1fr) minmax(680px, 800px) minmax(0, 1fr);
    padding-inline: clamp(28px, 4vw, 72px);
  }

  body.invoice-page .cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-out-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-out-page > .cashier-workspace {
    grid-column: 2;
    justify-self: center;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cashier-workspace {
    padding-right: 10px;
  }
}

/* Cashier micro-spacing pass: calmer inner padding and less empty card height. */
body.invoice-page .cashier-cash-out-page .cashier-cash-in-block {
  align-content: start !important;
  gap: 20px !important;
  padding: 24px 26px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt {
  align-content: start !important;
  gap: 18px !important;
  margin-top: 14px !important;
  min-height: auto !important;
  padding: 20px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-editor,
body.invoice-page .cashier-cash-out-page .cash-out-payment-editor {
  gap: 18px !important;
  padding: 2px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-editor > label,
body.invoice-page .cashier-cash-out-page .cash-out-payment-editor > label,
body.invoice-page .cashier-cash-out-page .cash-out-proof-field {
  gap: 9px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-editor input,
body.invoice-page .cashier-cash-out-page .cash-out-category-editor select,
body.invoice-page .cashier-cash-out-page .cash-out-payment-editor input,
body.invoice-page .cashier-cash-out-page .cash-out-payment-editor select,
body.invoice-page .cashier-cash-out-page .cash-out-combobox input {
  min-height: 58px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions {
  gap: 12px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions label {
  background: #edf7f6 !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  color: #0d756e !important;
  font-weight: 800 !important;
  min-height: 52px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-actions label:hover,
body.invoice-page .cashier-cash-out-page .cash-out-proof-actions label:focus-within {
  background: #dff2ef !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions {
  gap: 12px !important;
  margin: 12px 0 0 auto !important;
  padding: 0 0 2px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-actions button,
body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
  height: 50px !important;
  min-height: 50px !important;
  width: 50px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-cash-in-add-row {
  padding-top: 4px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-category-empty {
  margin: 6px 0 0 !important;
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-block {
    gap: 16px !important;
    padding: 20px !important;
  }

  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line.is-customer-deposit,
  body.invoice-page .cashier-cash-out-page .cashier-cash-in-line-receipt {
    gap: 14px !important;
    padding: 16px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-category-actions button,
  body.invoice-page .cashier-cash-out-page .cash-out-category-new-button {
    height: 46px !important;
    min-height: 46px !important;
    width: 46px !important;
  }
}

/* Cashier nav badges: match the soft teal workspace theme. */
body.invoice-page:has(.cashier-cash-out-page) .bottom-chat-link em,
body.invoice-page:has(.cashier-cash-out-page) .bottom-dashboard-badge,
body.invoice-page:has(.cashier-cash-out-page) .bottom-notification-button em {
  background: #0f8f86 !important;
  border: 2px solid #f8fbfa !important;
  box-shadow: 0 5px 12px rgba(15, 143, 134, 0.24) !important;
  color: #ffffff !important;
}

/* Cash-out history polish: tighter scan rhythm and anchored controls. */
body.invoice-page .cashier-cash-out-page .cash-out-history-panel {
  display: grid !important;
  gap: 12px !important;
  padding-bottom: 14px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar {
  margin: 0 !important;
  min-height: 44px !important;
  padding-right: 8px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary {
  background: #f4fbfa !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #0f8f86 !important;
  height: 48px !important;
  width: 52px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter[open] summary {
  background: #e4f5f3 !important;
  border-color: rgba(15, 143, 134, 0.44) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter form {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  box-shadow: 0 18px 36px rgba(38, 52, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter label {
  color: #425158 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter button {
  background: #0f8f86 !important;
  color: #ffffff !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-list {
  gap: 12px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item {
  background: #ffffff !important;
  border-color: rgba(134, 151, 158, 0.18) !important;
  box-shadow: 0 12px 24px rgba(38, 52, 58, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
  grid-template-columns: minmax(92px, 0.74fr) minmax(220px, 1.44fr) minmax(130px, 0.86fr) !important;
  min-height: 84px !important;
  padding: 14px 20px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
  color: #061019 !important;
  font-size: 0.94rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-date em {
  color: #66777f !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-category strong {
  line-height: 1.28 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
  color: #00756e !important;
  font-size: 0.98rem !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-item[open] .cash-out-history-trigger {
  background: #f3faf9 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
  background: #f8fbfa !important;
  border-top-color: rgba(15, 143, 134, 0.16) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-history-pager {
  background: transparent !important;
  margin-top: 8px !important;
  padding: 0 6px 8px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-history-pager input {
  background: #ffffff !important;
  border-color: rgba(134, 151, 158, 0.22) !important;
  color: #172126 !important;
}

@media (min-width: 981px) {
  body.invoice-page .cashier-cash-out-page {
    grid-template-columns: minmax(0, 1fr) minmax(720px, 860px) minmax(0, 1fr) !important;
  }

  body.invoice-page .cashier-cash-out-page .cashier-workspace {
    padding: 0 8px 72px 0 !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar {
    min-height: 40px !important;
    padding-right: 2px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary {
    height: 42px !important;
    width: 46px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger {
    grid-template-columns: minmax(62px, 0.72fr) minmax(0, 1.12fr) minmax(88px, 0.88fr) !important;
    min-height: 74px !important;
    padding: 12px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-trigger strong {
    font-size: 0.78rem !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
    font-size: 0.8rem !important;
  }
}

/* Cash-out modal polish: align confirmations with the calm teal workspace. */
body.invoice-page .cashier-cash-out-page .cashier-confirm-backdrop {
  background:
    radial-gradient(circle at 50% 34%, rgba(15, 143, 134, 0.18), transparent 34%),
    rgba(23, 33, 38, 0.7) !important;
  backdrop-filter: blur(10px);
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 64px rgba(23, 33, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  color: #172126 !important;
  gap: 16px !important;
  max-width: min(92vw, 480px) !important;
  overflow: hidden !important;
  padding: 28px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal::before,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal::before {
  background: linear-gradient(90deg, #0f8f86, #8ccbc5) !important;
  height: 4px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-mark,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-mark {
  background: #e6f6f4 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  color: #0f8f86 !important;
  height: 44px !important;
  width: 44px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal .dashboard-kicker {
  background: #edf7f6 !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  color: #0d756e !important;
  justify-self: start;
  letter-spacing: 0.16em !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal h2 {
  color: #172126 !important;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal p:not(.dashboard-kicker) {
  color: #52646c !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
  max-width: 34ch;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-modal strong,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal strong {
  color: #0b756e !important;
  font-weight: 900 !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-actions {
  gap: 12px !important;
  justify-content: flex-end !important;
  margin-top: 8px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button {
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: 0.92rem !important;
  min-height: 46px !important;
  min-width: 96px !important;
  padding: 0 18px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button:first-child {
  background: #f4f7f7 !important;
  border: 1px solid rgba(102, 119, 127, 0.22) !important;
  color: #425158 !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button:last-child,
body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal .cashier-confirm-actions button:last-child {
  background: #0f8f86 !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button:hover,
body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cashier-confirm-modal,
  body.invoice-page .cashier-cash-out-page .cash-out-category-confirm-modal {
    padding: 24px !important;
  }

  body.invoice-page .cashier-cash-out-page .cashier-confirm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }

  body.invoice-page .cashier-cash-out-page .cashier-confirm-actions button {
    width: 100% !important;
  }
}

/* Global page transitions for smoother navigation between full pages. */
body.invoice-page:has(.cashier-cash-out-page),
body.invoice-page:has(.cashier-cash-in-skin-page) {
  background: #eff4f3 !important;
}

body > .shell {
  animation: ksrfPageFadeIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: center top;
}

body > .topbar,
body > .home-bottom-nav,
body.ksrf-page-transition-out > .topbar,
body.ksrf-page-transition-out > .home-bottom-nav {
  animation: none !important;
  opacity: 1 !important;
  transition: none !important;
}

body.ksrf-page-transition-out {
  pointer-events: none;
}

body.ksrf-page-transition-out > .shell {
  animation: ksrfPageFadeOut 360ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ksrfPageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ksrfPageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .shell,
  body.ksrf-page-transition-out > .shell {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Incoming chat toast polish. */
.notification-toast {
  align-items: center !important;
  animation: ksrfToastSlideIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 247, 0.94)),
    #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(38, 52, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  color: #172126 !important;
  display: grid !important;
  gap: 3px 12px !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  left: 50% !important;
  max-width: min(420px, calc(100vw - 28px)) !important;
  min-height: 72px !important;
  padding: 12px 16px 12px 12px !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  z-index: 2200 !important;
}

.notification-toast::before {
  align-items: center;
  background: #e2f5f3;
  border: 1px solid rgba(15, 143, 134, 0.18);
  border-radius: 14px;
  color: #0f8f86;
  content: "Chat";
  display: inline-grid;
  font-size: 0.58rem;
  font-weight: 900;
  height: 40px;
  letter-spacing: 0;
  line-height: 1;
  place-items: center;
  text-transform: uppercase;
  width: 40px;
}

.notification-toast::after {
  background: #0f8f86;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 143, 134, 0.26);
  content: "";
  height: 10px;
  left: 42px;
  position: absolute;
  top: 13px;
  width: 10px;
}

.notification-toast strong,
.notification-toast span {
  min-width: 0;
}

.notification-toast strong {
  color: #172126 !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  grid-column: 2;
  line-height: 1.16 !important;
}

.notification-toast span {
  color: #52646c !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  grid-column: 2;
  line-height: 1.28 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-toast.is-hiding {
  animation: ksrfToastSlideOut 180ms ease both !important;
}

.notification-toast[hidden] {
  display: none !important;
}

@keyframes ksrfToastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes ksrfToastSlideOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.985);
  }
}

@media (min-width: 981px) {
  body.invoice-page .notification-toast {
    top: max(18px, env(safe-area-inset-top)) !important;
  }
}

@media (max-width: 720px) {
  .notification-toast {
    border-radius: 16px !important;
    max-width: calc(100vw - 20px) !important;
    min-height: 66px !important;
    padding: 10px 13px 10px 10px !important;
  }
}

/* Cash-out submit/result popups: calm mobile-friendly finish. */
body.invoice-page .cashier-cash-out-page .cash-out-submit-backdrop,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 34%, rgba(15, 143, 134, 0.18), transparent 34%),
    rgba(23, 33, 38, 0.64) !important;
  backdrop-filter: blur(10px) !important;
  display: grid !important;
  justify-items: center !important;
  padding: 18px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-backdrop[hidden],
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal[hidden] {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal {
  animation: ksrfSubmitPopupIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 72px rgba(23, 33, 38, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  color: #172126 !important;
  gap: 16px !important;
  max-width: min(92vw, 500px) !important;
  overflow: hidden !important;
  padding: 30px !important;
  text-align: left !important;
  width: min(500px, 100%) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal::before,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal::before {
  background: linear-gradient(90deg, #0f8f86, #8ccbc5) !important;
  height: 4px !important;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal-rank {
  background: #e6f6f4 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  color: #0f8f86 !important;
  height: 54px !important;
  justify-self: start !important;
  text-shadow: none !important;
  width: 54px !important;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal-rank.is-success::after {
  display: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal .dashboard-kicker,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal-eyebrow {
  background: #edf7f6 !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  color: #0d756e !important;
  justify-self: start !important;
  letter-spacing: 0.16em !important;
  line-height: 1 !important;
  padding: 9px 14px !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal h2,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal h2 {
  color: #172126 !important;
  font-size: clamp(1.7rem, 4vw, 2.25rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  text-align: left !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-modal p:not(.dashboard-kicker),
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal p:not(.game-modal-eyebrow) {
  color: #52646c !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  max-width: 34ch !important;
  text-align: left !important;
  text-shadow: none !important;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal button {
  background: #0f8f86 !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 24px rgba(15, 143, 134, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  min-height: 52px !important;
  text-shadow: none !important;
}

body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal button:hover,
body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal button:focus-visible {
  background: #0b7f78 !important;
  transform: translateY(-1px);
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-spinner {
  background: conic-gradient(from 0deg, #0f8f86, #8ccbc5, #edf7f6, #0f8f86) !important;
  box-shadow: 0 10px 24px rgba(15, 143, 134, 0.16) !important;
  height: 50px !important;
  width: 50px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-submit-spinner::after {
  background: #ffffff !important;
  inset: 8px !important;
}

@keyframes ksrfSubmitPopupIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cash-out-submit-backdrop,
  body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal {
    align-items: center !important;
    padding: 16px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-submit-modal,
  body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal {
    border-radius: 20px !important;
    padding: 28px 24px !important;
    width: min(100%, 500px) !important;
  }

  body.invoice-page .game-modal-backdrop.cash-out-submit-result-modal .game-modal button {
    width: 100% !important;
  }
}

/* Cash-out open history refinement: compact details and clearer actions. */
body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar {
  gap: 10px !important;
  justify-content: space-between !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar-label {
  align-items: center;
  background: #f4fbfa;
  border: 1px solid rgba(15, 143, 134, 0.16);
  border-radius: 999px;
  color: #66777f;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 34px;
  padding: 0 12px;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter[open] + *,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter[open] {
  z-index: 8;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary:hover,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary:focus-visible {
  background: #e4f5f3 !important;
  border-color: rgba(15, 143, 134, 0.44) !important;
  outline: 0;
  transform: translateY(-1px);
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
  align-items: stretch !important;
  gap: 16px !important;
  grid-template-columns: minmax(280px, 0.96fr) minmax(220px, 0.74fr) !important;
  padding: 20px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-meta {
  align-content: start !important;
  background: #ffffff !important;
  border: 1px solid rgba(134, 151, 158, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  display: grid !important;
  gap: 10px !important;
  grid-column: 1 !important;
  min-height: 118px;
  padding: 18px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-meta p {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

body.invoice-page .cashier-cash-out-page .cashier-detail-actions {
  align-content: end !important;
  align-self: stretch !important;
  display: flex !important;
  gap: 10px !important;
  grid-column: 2 !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-detail-actions a,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions button {
  align-items: center !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 15px !important;
}

body.invoice-page .cashier-cash-out-page .cashier-detail-actions a {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.22) !important;
  color: #0d756e !important;
}

body.invoice-page .cashier-cash-out-page .cashier-detail-actions button {
  background: #ffffff !important;
  border-color: rgba(102, 119, 127, 0.22) !important;
  color: #425158 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta) {
  align-content: start !important;
  background: #ffffff !important;
  border: 1px solid rgba(134, 151, 158, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  display: grid !important;
  gap: 8px !important;
  min-height: 132px !important;
  padding: 18px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(2) {
  grid-column: 1 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(3) {
  grid-column: 2 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail section > strong {
  color: #00756e !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail p {
  margin: 0 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-history-detail small {
  color: #52646c !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-link {
  align-items: center !important;
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 999px !important;
  color: #0d756e !important;
  display: inline-flex !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  gap: 7px;
  justify-self: start;
  min-height: 34px;
  padding: 0 12px !important;
  text-decoration: none !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-link::before {
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
  height: 12px;
  width: 10px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-link:hover,
body.invoice-page .cashier-cash-out-page .cash-out-proof-link:focus-visible {
  background: #dff2ef !important;
  border-color: rgba(15, 143, 134, 0.36) !important;
  outline: 0;
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar-label {
    display: none;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-detail {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-meta,
  body.invoice-page .cashier-cash-out-page .cashier-detail-actions,
  body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta),
  body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(2),
  body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(3) {
    grid-column: 1 !important;
  }

  body.invoice-page .cashier-cash-out-page .cashier-detail-actions {
    justify-content: stretch !important;
  }

  body.invoice-page .cashier-cash-out-page .cashier-detail-actions a,
  body.invoice-page .cashier-cash-out-page .cashier-detail-actions button {
    flex: 1 1 0;
  }
}

/* System-managed theme colors. */
body {
  background: var(--ksrf-theme-background, #eef7f7);
  color: var(--ksrf-theme-text, #162027);
}

.topbar,
.home-bottom-nav {
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 22%, transparent) !important;
}

.brand,
.topbar-nav a:hover,
.home-bottom-nav a.active,
.home-bottom-nav button.active,
.bottom-dashboard-badge,
.bottom-chat-link em,
.bottom-notification-button em,
[data-notification-badge] {
  color: var(--ksrf-theme-primary, #008b84) !important;
}

.bottom-dashboard-badge,
.bottom-chat-link em,
.bottom-notification-button em,
[data-notification-badge] {
  background: var(--ksrf-theme-primary, #008b84) !important;
  color: #ffffff !important;
}

.settings-card,
.cashier-panel,
body.invoice-page .cashier-cash-out-page .cash-out-skin-title,
body.invoice-page .cashier-cash-out-page .cashier-mode-card,
body.invoice-page .cashier-cash-out-page .cash-out-history-trigger,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail,
body.invoice-page .cashier-cash-out-page .cash-out-history-meta,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail > section:not(.cash-out-history-meta) {
  background-color: var(--ksrf-theme-surface, #ffffff) !important;
  color: var(--ksrf-theme-text, #162027) !important;
}

.settings-card button,
.settings-link-button,
.invoice-print-button,
body.invoice-page .cashier-cash-out-page .cashier-detail-actions a,
body.invoice-page .cashier-cash-out-page .cash-out-proof-link {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 14%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 26%, transparent) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

.settings-card button[type="submit"],
.invoice-print-button[type="submit"],
body.invoice-page .cashier-cash-out-page .cash-out-submit-button {
  background: linear-gradient(135deg, var(--ksrf-theme-primary, #008b84), var(--ksrf-theme-accent, #ff4fa2)) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 36%, transparent) !important;
  color: #ffffff !important;
}

body.invoice-page .cashier-cash-out-page .cashier-mode-card.active,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary:hover,
body.invoice-page .cashier-cash-out-page .cash-out-history-filter summary:focus-visible,
body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar-label {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 10%, var(--ksrf-theme-surface, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-mode-card.active::before,
body.invoice-page .cashier-cash-out-page .cash-out-history-detail section > strong,
body.invoice-page .cashier-cash-out-page .cash-out-history-total strong {
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page .cashier-cash-out-page .cashier-mode-card::before {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 24%, #d7e1e5) !important;
}

.ui-theme-settings-card .ui-theme-heading {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.ui-theme-settings-card .ui-theme-heading h2 {
  margin-bottom: 8px;
}

.ui-theme-settings-card .ui-theme-heading p {
  margin: 0;
}

.ui-theme-status {
  border: 1px solid rgba(102, 119, 127, 0.24);
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  padding: 9px 12px;
}

.ui-theme-status.is-enabled {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 14%, #ffffff);
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 30%, transparent);
  color: var(--ksrf-theme-primary, #008b84);
}

.ui-theme-status.is-disabled {
  background: rgba(22, 32, 39, 0.08);
  color: rgba(22, 32, 39, 0.72);
}

.ui-theme-settings-card .ui-theme-preview {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-primary) 10%, var(--preview-surface)), var(--preview-surface)),
    var(--preview-background);
  border: 1px solid color-mix(in srgb, var(--preview-primary) 26%, transparent);
  border-radius: 18px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--preview-primary) 12%, transparent);
  color: var(--preview-text);
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 18px;
}

.ui-theme-settings-card .ui-theme-preview span {
  background: linear-gradient(135deg, var(--preview-primary), var(--preview-accent));
  border-radius: 999px;
  display: block;
  height: 10px;
  width: min(240px, 70%);
}

.ui-theme-settings-card .ui-theme-preview strong {
  color: var(--preview-text);
  font-size: 1.05rem;
}

.ui-theme-color-grid label {
  gap: 10px;
}

.ui-theme-color-control {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr;
}

.ui-theme-color-control input[type="color"] {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 46px;
  padding: 0;
  width: 54px;
}

.ui-theme-color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.ui-theme-color-control input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(102, 119, 127, 0.22);
  border-radius: 14px;
}

.ui-theme-color-control input[readonly] {
  font-family: inherit;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-theme-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.ui-theme-actions button {
  margin-top: 0;
}

.settings-card button.ui-theme-toggle-action {
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

@media (max-width: 640px) {
  .ui-theme-settings-card .ui-theme-heading {
    display: grid;
  }

  .ui-theme-status {
    width: fit-content;
  }

  .ui-theme-actions button {
    width: 100%;
  }
}

/* Cash-in history refinement: align filter/dropdown with cash-out polish. */
body.invoice-page .cashier-cash-in-skin-page .cash-out-history-panel {
  overflow: visible !important;
  padding-top: 0 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-toolbar {
  gap: 10px !important;
  justify-content: space-between !important;
  margin: -2px 0 8px !important;
  min-height: 42px !important;
  overflow: visible !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 30 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  position: relative !important;
  z-index: 35 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter[open] {
  z-index: 60 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter form {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 42px rgba(38, 52, 58, 0.18) !important;
  color: #162027 !important;
  min-width: min(320px, calc(100vw - 42px)) !important;
  padding: 14px !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  width: min(340px, calc(100vw - 42px)) !important;
  z-index: 70 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter label {
  color: #425158 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter input {
  background: #f8fbfb !important;
  border-color: rgba(102, 119, 127, 0.18) !important;
  color: #162027 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter button,
body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter a {
  border-radius: 12px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-list {
  gap: 10px !important;
  position: relative !important;
  z-index: 1 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-trigger {
  position: relative !important;
  z-index: 1 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-item[open] {
  overflow: visible !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail {
  align-items: stretch !important;
  gap: 16px !important;
  grid-template-columns: minmax(280px, 0.96fr) minmax(220px, 0.74fr) !important;
  padding: 20px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-detail-actions {
  grid-column: 2 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(2) {
  grid-column: 1 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(3) {
  grid-column: 2 !important;
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-toolbar-label {
    display: none;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-toolbar {
    justify-content: flex-end !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-filter form {
    right: 0 !important;
    width: min(320px, calc(100vw - 32px)) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-meta,
  body.invoice-page .cashier-cash-in-skin-page .cashier-detail-actions,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail > section:not(.cash-out-history-meta),
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(2),
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-detail > section:not(.cash-out-history-meta):nth-of-type(3) {
    grid-column: 1 !important;
  }
}

/* Custom orders cash-out inspired operational skin. */
body.invoice-page.custom-orders-route {
  background: #eef7f7 !important;
}

body.invoice-page .custom-orders-page {
  background:
    linear-gradient(180deg, rgba(6, 16, 18, 0.72), rgba(6, 16, 18, 0.55)),
    var(--custom-order-mobile-bg, var(--custom-order-mobile-bg-fallback)) center / cover fixed,
    #eef7f7 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #162027 !important;
  display: block !important;
  margin: 0 auto !important;
  min-height: calc(100vh - 122px) !important;
  overflow: visible !important;
  padding: 22px 18px 92px !important;
  position: relative !important;
}

body.invoice-page .custom-orders-page::before {
  background:
    linear-gradient(90deg, rgba(15, 143, 134, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 143, 134, 0.1) 1px, transparent 1px),
    rgba(238, 247, 247, 0.1) !important;
  background-size: 42px 42px !important;
  mix-blend-mode: normal !important;
  opacity: 0.32 !important;
  z-index: 0 !important;
}

body.invoice-page .custom-orders-page::after {
  background: linear-gradient(180deg, rgba(238, 247, 247, 0.08), rgba(238, 247, 247, 0.34)) !important;
  opacity: 1 !important;
  z-index: 0 !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head,
body.invoice-page .custom-orders-page > .custom-order-tabs,
body.invoice-page .custom-orders-page > .custom-order-design-tabs,
body.invoice-page .custom-orders-page > .cashier-workspace {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(16, 31, 36, 0.18) !important;
  clip-path: none !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  padding: 18px 20px !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head::before {
  background: linear-gradient(135deg, rgba(15, 143, 134, 0.08), rgba(255, 79, 162, 0.06)) !important;
  opacity: 1 !important;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  color: #162027 !important;
  font-size: clamp(1.85rem, 5vw, 3.6rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 0.95 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page .custom-order-page-title::before {
  content: "" !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 36px rgba(16, 31, 36, 0.16) !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin-bottom: 12px !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a,
body.invoice-page .custom-orders-page .custom-order-design-tabs button,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link] {
  background: #f8fbfb !important;
  border: 1px solid rgba(102, 119, 127, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  clip-path: none !important;
  color: #425158 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  min-height: 52px !important;
  overflow: hidden !important;
  padding: 10px 12px !important;
  position: relative !important;
  text-align: left !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a::before,
body.invoice-page .custom-orders-page .custom-order-tabs a::after,
body.invoice-page .custom-orders-page .custom-order-design-tabs button::before,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link]::before {
  display: none !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page .custom-order-tabs a.active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page .custom-order-design-tabs button:hover,
body.invoice-page .custom-orders-page .custom-order-design-tabs button:focus-visible,
body.invoice-page .custom-orders-page .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link]:hover,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link]:focus-visible,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link].active {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 12%, #ffffff) !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  color: #0f5f5a !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page .custom-order-design-tabs button.active::after,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link].active::after {
  background: linear-gradient(180deg, var(--ksrf-theme-primary, #008b84), var(--ksrf-theme-accent, #ff4fa2)) !important;
  border-radius: 999px !important;
  content: "" !important;
  display: block !important;
  inset: 10px auto 10px 8px !important;
  opacity: 1 !important;
  position: absolute !important;
  width: 4px !important;
}

body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(16, 31, 36, 0.12) !important;
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs span {
  color: inherit !important;
  font-size: 0.86rem !important;
  line-height: 1.1 !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs small {
  color: #66777f !important;
  display: block !important;
  font-size: 0.7rem !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  margin-top: 3px !important;
}

body.invoice-page .custom-orders-page .cashier-workspace {
  display: block !important;
}

body.invoice-page .custom-orders-page .cashier-panel,
body.invoice-page .custom-orders-page .custom-order-file-panel,
body.invoice-page .custom-orders-page .custom-order-product-panel,
body.invoice-page .custom-orders-page .custom-order-product-card,
body.invoice-page .custom-orders-page .custom-order-pickup-card,
body.invoice-page .custom-orders-page .custom-order-history-card,
body.invoice-page .custom-orders-page .custom-order-design-card,
body.invoice-page .custom-orders-page .custom-order-prepare-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(16, 31, 36, 0.18) !important;
  clip-path: none !important;
  color: #162027 !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view] {
  background: rgba(255, 255, 255, 0.92) !important;
  background-size: auto !important;
  padding: 20px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(16, 31, 36, 0.18) !important;
  clip-path: none !important;
  color: #162027 !important;
  padding: 20px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]::before,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]::after {
  display: none !important;
}

body.invoice-page .custom-orders-page .packing-panel-head {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 4px !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page .cashier-panel h2,
body.invoice-page .custom-orders-page .custom-order-file-panel strong,
body.invoice-page .custom-orders-page .custom-order-product-head strong,
body.invoice-page .custom-orders-page .custom-order-product-card strong,
body.invoice-page .custom-orders-page .custom-order-pickup-card strong,
body.invoice-page .custom-orders-page .custom-order-history-section strong {
  color: #162027 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page .cashier-panel .packing-panel-head h2 {
  font-size: 1.2rem !important;
  letter-spacing: 0 !important;
}

body.invoice-page .custom-orders-page .cashier-panel label,
body.invoice-page .custom-orders-page .custom-order-file-panel small,
body.invoice-page .custom-orders-page .custom-order-product-head small,
body.invoice-page .custom-orders-page .custom-order-customer-picker small,
body.invoice-page .custom-orders-page .custom-order-pickup-card small,
body.invoice-page .custom-orders-page .custom-order-pickup-card p,
body.invoice-page .custom-orders-page .custom-order-history-section p,
body.invoice-page .custom-orders-page .custom-order-history-item-list span {
  color: #425158 !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page .cashier-panel input,
body.invoice-page .custom-orders-page .cashier-panel select,
body.invoice-page .custom-orders-page .cashier-panel textarea,
body.invoice-page .custom-orders-page .custom-order-select-trigger {
  background: #f8fbfb !important;
  border: 1px solid rgba(102, 119, 127, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  color: #162027 !important;
  font-weight: 750 !important;
  min-height: 48px !important;
}

body.invoice-page .custom-orders-page .cashier-panel input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel textarea::placeholder {
  color: rgba(66, 81, 88, 0.64) !important;
}

body.invoice-page .custom-orders-page .cashier-panel input:focus,
body.invoice-page .custom-orders-page .cashier-panel select:focus,
body.invoice-page .custom-orders-page .cashier-panel textarea:focus,
body.invoice-page .custom-orders-page .custom-order-select:focus-within .custom-order-select-trigger {
  border-color: rgba(15, 143, 134, 0.54) !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.14) !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product,
body.invoice-page .custom-orders-page .cashier-action-button {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 12%, #ffffff) !important;
  border: 1px solid rgba(15, 143, 134, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #0f5f5a !important;
  font-weight: 900 !important;
  min-height: 46px !important;
}

body.invoice-page .custom-orders-page .custom-order-customer-picker .packing-secondary-action {
  align-self: end !important;
  min-height: 48px !important;
}

body.invoice-page .custom-orders-page .packing-secondary-action:hover,
body.invoice-page .custom-orders-page .packing-secondary-action:focus-visible,
body.invoice-page .custom-orders-page .custom-order-add-product:hover,
body.invoice-page .custom-orders-page .custom-order-add-product:focus-visible {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 18%, #ffffff) !important;
  color: #0c514d !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page .custom-order-file-panel,
body.invoice-page .custom-orders-page .custom-order-product-panel {
  background: #f8fbfb !important;
  box-shadow: none !important;
  padding: 16px !important;
}

body.invoice-page .custom-orders-page .custom-order-product-card,
body.invoice-page .custom-orders-page .custom-order-stock-status,
body.invoice-page .custom-orders-page .packing-quick-customer,
body.invoice-page .custom-orders-page .custom-order-combo-menu,
body.invoice-page .custom-orders-page .custom-order-select-menu {
  background: #ffffff !important;
  border-color: rgba(102, 119, 127, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 36px rgba(16, 31, 36, 0.14) !important;
  color: #162027 !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option,
body.invoice-page .custom-orders-page .custom-order-select-option {
  color: #162027 !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option:hover,
body.invoice-page .custom-orders-page .custom-order-combo-option:focus,
body.invoice-page .custom-orders-page .custom-order-select-option:hover,
body.invoice-page .custom-orders-page .custom-order-select-option:focus,
body.invoice-page .custom-orders-page .custom-order-select-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 10%, #ffffff) !important;
  color: #0f5f5a !important;
}

body.invoice-page .custom-orders-page .custom-order-product-summary,
body.invoice-page .custom-orders-page .custom-order-history-summary,
body.invoice-page .custom-orders-page .custom-order-design-summary {
  background: #ffffff !important;
  border-radius: 14px !important;
  color: #162027 !important;
}

body.invoice-page .custom-orders-page .custom-order-submit,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button,
body.invoice-page .custom-orders-page button[type="submit"][name="action"][value="save_order"] {
  background: linear-gradient(135deg, var(--ksrf-theme-primary, #008b84), var(--ksrf-theme-accent, #ff4fa2)) !important;
  border-color: rgba(15, 143, 134, 0.36) !important;
  color: #ffffff !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page {
    background:
      linear-gradient(180deg, rgba(6, 16, 18, 0.7), rgba(6, 16, 18, 0.5)),
      var(--custom-order-mobile-bg, var(--custom-order-mobile-bg-fallback)) center top / cover fixed,
      #eef7f7 !important;
    padding: 16px 12px 88px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page .cashier-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Purchase UI polish: professional cash-out parity and unambiguous controls. */
body.invoice-page .cashier-purchases-page {
  --purchase-field: #f7fbfa;
  --purchase-border: #b7d7d3;
  --purchase-focus: rgba(15, 143, 134, .28);
  --purchase-ink: #172326;
  --purchase-muted: #667a80;
}

body.invoice-page .cashier-purchases-page .dashboard-kicker {
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, .18) !important;
  border-radius: 999px !important;
  color: #0d756e !important;
  display: inline-flex;
  letter-spacing: .14em !important;
  line-height: 1.2;
  margin: 0 0 10px;
  padding: 5px 10px !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > label,
body.invoice-page .cashier-purchases-page .cashier-purchase-filter-panel label {
  color: var(--purchase-ink) !important;
  font-weight: 700 !important;
}

body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select) {
  background: var(--purchase-field) !important;
  border: 1px solid var(--purchase-border) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  color: var(--purchase-ink) !important;
  min-height: 48px !important;
}

body.invoice-page .cashier-purchases-page input::placeholder {
  color: var(--purchase-muted) !important;
  opacity: 1 !important;
}

body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select):focus,
body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select):focus-visible {
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px var(--purchase-focus) !important;
  outline: 0 !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-head-tools {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-header-add {
  background: #0f8f86 !important;
  border: 1px solid #0f8f86 !important;
  color: #fff !important;
  flex: 0 0 44px;
  min-height: 44px;
}

body.invoice-page .cashier-purchases-page .cashier-entry-actions {
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

body.invoice-page .cashier-purchases-page .cashier-entry-actions [data-save-purchase-entry] {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  color: #fff !important;
}

body.invoice-page .cashier-purchases-page .cashier-entry-actions [data-cancel-purchase-entry] {
  background: #fff !important;
  border-color: var(--purchase-border) !important;
  color: #425b61 !important;
}

body.invoice-page .cashier-purchases-page .cashier-entry-summary > button,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > [data-remove-purchase-line] {
  align-items: center;
  border-radius: 10px !important;
  display: inline-flex;
  height: 44px !important;
  justify-content: center;
  min-height: 44px !important;
  min-width: 44px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

body.invoice-page .cashier-purchases-page .cashier-entry-summary [data-edit-purchase-entry]:hover,
body.invoice-page .cashier-purchases-page .cashier-entry-summary [data-edit-purchase-entry]:focus-visible {
  background: #e8f5f3 !important;
  border-color: #7fc1bb !important;
  color: #086c65 !important;
}

body.invoice-page .cashier-purchases-page .cashier-entry-summary [data-delete-purchase-entry]:hover,
body.invoice-page .cashier-purchases-page .cashier-entry-summary [data-delete-purchase-entry]:focus-visible,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > [data-remove-purchase-line]:hover,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > [data-remove-purchase-line]:focus-visible {
  background: #fff0f1 !important;
  border-color: #dfa1aa !important;
  color: #a12536 !important;
}

body.invoice-page .cashier-purchases-page :is(button, a):focus-visible {
  box-shadow: 0 0 0 3px var(--purchase-focus) !important;
  outline: 0 !important;
}

body.invoice-page .cashier-purchases-page .cashier-tabs button.active,
body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button.active,
body.invoice-page .cashier-purchases-page [data-purchase-submit] {
  color: #fff !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-block > .cashier-form-actions {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
  max-height: calc(100vh - 32px);
  overflow: auto;
  scrollbar-width: thin;
}

body.invoice-page:has(.cashier-purchases-page) .shell {
  padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 980px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  body.invoice-page .cashier-purchases-page .cashier-inline-head {
    align-items: flex-start;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-head-tools {
    align-self: flex-start;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-row-count {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Progressive disclosure for product and payment entries. */
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="empty"] {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > label,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > .cashier-cash-in-total,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > [data-entry-actions],
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > [data-remove-purchase-line] {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="draft"] > [data-entry-summary] {
  display: none;
}

.cashier-entry-summary {
  align-items: center;
  background: #fff;
  border: 1px solid #c5e1de;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto 44px 44px;
  min-height: 58px;
  padding: 9px 10px 9px 14px;
}

.cashier-entry-summary:hover,
.cashier-entry-summary:focus-visible {
  background: #f2fbf9;
  border-color: #62b9b1;
  outline: none;
}

.cashier-entry-summary-copy { display: grid; gap: 3px; min-width: 0; }
.cashier-entry-summary-copy strong { color: #172126; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cashier-entry-summary-copy span { color: #60757b; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cashier-entry-summary-amount { color: #0b756e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cashier-entry-summary button,
.cashier-entry-empty button {
  align-items: center;
  background: #fff;
  border: 1px solid #c6dddd;
  border-radius: 10px;
  color: #0b756e;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}
.cashier-entry-summary [data-delete-purchase-entry] { color: #a12536; }
.cashier-entry-summary [data-delete-purchase-entry]:hover { background: #fff0f1; border-color: #e6abb3; }

.cashier-entry-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 2px;
}
.cashier-entry-actions span { color: #8a5c0a; flex: 1; font-size: .75rem; font-weight: 700; }
.cashier-entry-actions button {
  border: 1px solid #b9dfdc;
  border-radius: 9px;
  cursor: pointer;
  font: 800 .8rem/1 Montserrat, Arial, sans-serif;
  min-height: 40px;
  padding: 0 12px;
}
.cashier-entry-actions [data-save-purchase-entry] { background: #0f8f86; color: #fff; }
.cashier-entry-actions [data-cancel-purchase-entry] { background: #fff; color: #60757b; }

.cashier-entry-empty {
  align-items: center;
  background: #f8fcfb;
  border: 1px dashed #afd9d5;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  padding: 12px;
}
.cashier-entry-empty > span { color: #0f8f86; font-size: 1.5rem; text-align: center; }
.cashier-entry-empty > div { display: grid; gap: 2px; }
.cashier-entry-empty strong { color: #172126; font-size: .88rem; }
.cashier-entry-empty small { color: #60757b; font-size: .75rem; }
.cashier-entry-empty button { background: #0f8f86; border-color: #0f8f86; color: #fff; font-size: 1.4rem; }

.cashier-purchase-pending-help { color: #8a5c0a !important; display: block; font-size: .75rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }

@media (max-width: 820px) {
  .cashier-entry-summary { grid-template-columns: minmax(0, 1fr) auto 44px 44px; }
  .cashier-entry-actions { align-items: stretch; flex-wrap: wrap; }
  .cashier-entry-actions span { flex-basis: 100%; }
}

/* Progressive disclosure state exclusivity and single header action. */
.cashier-entry-empty[hidden],
.cashier-purchase-header-add[hidden] {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="empty"] {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="draft"] > .cashier-entry-summary {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > label,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > .cashier-cash-in-total,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > [data-entry-actions],
body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="saved"] > [data-remove-purchase-line] {
  display: none !important;
}

.cashier-purchase-head-tools {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cashier-purchase-header-add {
  align-items: center;
  background: #0f8f86;
  border: 1px solid #0f8f86;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 700 1.35rem/1 Arial, sans-serif;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.cashier-purchase-header-add:hover,
.cashier-purchase-header-add:focus-visible {
  background: #0b756e;
  outline: 3px solid rgba(15, 143, 134, .22);
  outline-offset: 2px;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-block > .cashier-form-actions {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line[data-entry-state="draft"] {
  background: #fbfefd;
  border: 1px solid #c5e1de;
  border-radius: 12px;
  padding: 12px;
}

@media (min-width: 821px) {
  body.invoice-page .cashier-purchases-page .cashier-line-field-label {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}

@media (max-width: 820px) {
  body.invoice-page .cashier-purchases-page .cashier-line-field-label {
    clip: auto !important;
    clip-path: none !important;
    display: inline !important;
    height: auto !important;
    margin: 0 0 5px !important;
    overflow: visible !important;
    position: static !important;
    white-space: normal !important;
    width: auto !important;
  }
}

/* Keep purchase-entry controls above any inherited page layers. */
body.invoice-page .cashier-purchases-page .cashier-purchase-form,
body.invoice-page .cashier-purchases-page .cashier-purchase-form .cashier-cash-in-block,
body.invoice-page .cashier-purchases-page .cashier-purchase-form [data-purchase-details],
body.invoice-page .cashier-purchases-page .cashier-purchase-form [data-purchase-payments],
body.invoice-page .cashier-purchases-page .cashier-purchase-form .cashier-cash-in-line,
body.invoice-page .cashier-purchases-page .cashier-purchase-form .cashier-cash-in-line > label {
  pointer-events: auto !important;
  position: relative;
  z-index: 12;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-form :is(input, select, button) {
  pointer-events: auto !important;
  position: relative;
  touch-action: manipulation;
  user-select: text;
  z-index: 13;
}

/* Purchase redesign: two focused pages, one document scrollbar, and fast entry density. */
body.invoice-page .cashier-purchases-page .cashier-purchase-workspace,
body.invoice-page .cashier-purchases-page .cashier-purchase-table-wrap,
body.invoice-page .cashier-purchases-page .cashier-purchase-history-table { overflow: visible !important; max-height: none !important; }

body.invoice-page .cashier-purchases-page .cashier-purchase-tabs { margin: 12px 0 16px; }
body.invoice-page .cashier-purchases-page .cashier-purchase-tabs a,
body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button { min-width: 174px; text-align: center; }
body.invoice-page .cashier-purchases-page .cashier-purchase-form { grid-template-columns: minmax(0, 65fr) minmax(290px, 35fr); }
body.invoice-page .cashier-purchases-page .cashier-purchase-form > label,
body.invoice-page .cashier-purchases-page .cashier-purchase-form > .cashier-cash-in-block { grid-column: 1; }
body.invoice-page .cashier-purchases-page .cashier-purchase-form > label:not(.cashier-span) { grid-column: auto; }
body.invoice-page .cashier-purchases-page .cashier-purchase-form > label.cashier-span { grid-column: 1; }
body.invoice-page .cashier-purchases-page .cashier-purchase-summary { grid-column: 2; grid-row: 1 / span 6; top: 12px; }
body.invoice-page .cashier-purchases-page [data-balance-state] { border-radius: 10px; font-weight: 800; padding: 10px; text-align: center; }
body.invoice-page .cashier-purchases-page [data-balance-state].is-balanced { background: #e3f5ed; color: #087353; }
body.invoice-page .cashier-purchases-page [data-balance-state].is-short { background: #fff1d8; color: #8a5c0a; }
body.invoice-page .cashier-purchases-page [data-balance-state].is-over { background: #fff0ef; color: #ae3d34; }
.cashier-purchase-history-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cashier-purchase-history-summary span { background: #eff8f6; border-radius: 12px; display: grid; gap: 2px; min-width: 145px; padding: 10px 13px; }
.cashier-purchase-history-summary small { color: #66777f; font-size: .72rem; font-weight: 700; }
.cashier-purchase-history-summary strong { color: #172126; }
.cashier-purchase-filter-panel { margin: 16px 0; }
.cashier-purchase-history-table { border: 1px solid rgba(127,144,151,.2); border-radius: 14px; }
.cashier-purchase-history-head,
.cashier-purchase-history-row > summary { align-items: center; display: grid; gap: 12px; grid-template-columns: .75fr 1.2fr 1.25fr .75fr 1fr .75fr .6fr; }
.cashier-purchase-history-head { background: #f3f8f7; border-radius: 14px 14px 0 0; color: #536b75; font-size: .72rem; font-weight: 800; padding: 12px 14px; }
.cashier-purchase-history-row { border-top: 1px solid rgba(127,144,151,.16); }
.cashier-purchase-history-row:first-of-type { border-top: 0; }
.cashier-purchase-history-row > summary { cursor: pointer; list-style: none; padding: 14px; }
.cashier-purchase-history-row > summary::-webkit-details-marker { display: none; }
.cashier-purchase-history-row > summary:hover { background: #f7fbfa; }
.cashier-purchase-history-row[open] > summary { background: #edf8f6; }
@media (max-width: 980px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-form { display: block; }
  .cashier-purchase-history-summary { margin: 12px 0 0; }
  .cashier-purchase-history-head { display: none; }
  .cashier-purchase-history-row > summary { grid-template-columns: 1fr 1fr; }
  .cashier-purchase-history-row > summary > span:nth-child(3), .cashier-purchase-history-row > summary > span:nth-child(4) { display: none; }
  .cashier-purchase-history-row > summary > strong:nth-child(5), .cashier-purchase-history-row > summary > small { grid-row: 2; }
}

/* Purchase page must always use the document scroll, never a clipped viewport. */
html:has(body.invoice-page .cashier-purchases-page),
body.invoice-page:has(.cashier-purchases-page) {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.invoice-page:has(.cashier-purchases-page) .shell {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .cashier-purchases-page {
  align-content: start;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 24px;
  width: 100% !important;
}

body.invoice-page .cashier-purchases-page > .cashier-purchases-head,
body.invoice-page .cashier-purchases-page > .cashier-purchase-tabs,
body.invoice-page .cashier-purchases-page > .cashier-purchase-workspace {
  grid-column: 1 !important;
  min-width: 0;
  width: 100% !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-tabs {
  align-items: stretch;
  display: flex !important;
  flex-wrap: wrap;
  max-width: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-tabs a,
body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  body.invoice-page:has(.cashier-purchases-page) .shell { padding: 12px 12px 104px !important; }
  body.invoice-page .cashier-purchases-page .cashier-purchases-head { padding: 16px 18px !important; }
  body.invoice-page .cashier-purchases-page .cashier-purchases-head h1 { font-size: clamp(1.9rem, 10vw, 2.55rem) !important; }
  body.invoice-page .cashier-purchases-page .cashier-purchase-tabs { flex-wrap: nowrap; }
  body.invoice-page .cashier-purchases-page .cashier-purchase-tabs a,
  body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
}

/* Keep dense purchase input rows inside the left 65% column on desktop. */
@media (min-width: 981px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-form {
    column-gap: 20px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 12px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-form > .cashier-cash-in-block,
  body.invoice-page .cashier-purchases-page .cashier-purchase-form > label.cashier-span {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin-top: 4px;
    min-width: 0;
    position: static !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-block {
    padding: 14px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-line-head,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line {
    column-gap: 8px !important;
    grid-template-columns: minmax(150px, 1.7fr) minmax(52px, .48fr) minmax(88px, .86fr) minmax(66px, .58fr) minmax(66px, .58fr) minmax(104px, .9fr) 42px !important;
    min-width: 0;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-payment-head,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line-receipt {
    column-gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .48fr) 42px !important;
    min-width: 0;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line > label,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line > .cashier-cash-in-total {
    min-width: 0;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line input,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select {
    min-width: 0;
    width: 100%;
  }

  body.invoice-page .cashier-purchases-page [data-purchase-details],
  body.invoice-page .cashier-purchases-page [data-purchase-payments],
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line {
    pointer-events: auto !important;
    position: relative;
    z-index: 3;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line input,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line button {
    pointer-events: auto !important;
    position: relative;
    z-index: 4;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select {
    appearance: none;
    background-color: #f8fcfb !important;
    background-image: linear-gradient(45deg, transparent 50%, #0f8f86 50%), linear-gradient(135deg, #0f8f86 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    border-color: rgba(15, 143, 134, 0.3) !important;
    color: #172126 !important;
    color-scheme: light;
    cursor: pointer;
    padding-right: 34px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select:focus,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line input:focus {
    border-color: #0f8f86 !important;
    box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.14) !important;
    outline: 0;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option {
    background: #ffffff;
    color: #172126;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option:checked {
    background: #dff2ef;
    color: #0b6862;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line input,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select {
    background-color: #f8fcfb !important;
    border-color: rgba(15, 143, 134, 0.3) !important;
    color: #172126 !important;
    color-scheme: light;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line input::placeholder {
    color: #80929a !important;
    opacity: 1;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button {
    min-height: 42px !important;
    width: 42px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-total {
    min-height: 42px !important;
    padding: 0 9px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-block .cashier-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 12px 0 0 !important;
    min-width: 0;
    padding: 0 !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-block .cashier-form-actions .invoice-print-button {
    min-height: 42px;
    width: auto !important;
  }
}

/* Purchase keeps the cash-out cyan and gold palette without inheriting its disabled controls. */
body.invoice-page .cashier-purchases-page {
  --purchase-teal: #44d7d2;
  --purchase-gold: #f0bf55;
  --purchase-ink: #fff8ea;
  --purchase-muted: #d7c6a4;
  background:
    linear-gradient(90deg, rgba(68, 215, 210, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(240, 191, 85, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #101817, #080807) !important;
  background-size: 34px 34px, 34px 34px, auto !important;
}

body.invoice-page .cashier-purchases-page > .cashier-purchases-head,
body.invoice-page .cashier-purchases-page .cashier-panel,
body.invoice-page .cashier-purchases-page .cashier-cash-in-block,
body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
  background: rgba(11, 18, 18, 0.9) !important;
  border-color: rgba(68, 215, 210, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.24) !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head h1,
body.invoice-page .cashier-purchases-page .cashier-panel h2,
body.invoice-page .cashier-purchases-page .cashier-panel h3,
body.invoice-page .cashier-purchases-page .cashier-panel strong,
body.invoice-page .cashier-purchases-page .cashier-panel label {
  color: #fff8ea !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head p,
body.invoice-page .cashier-purchases-page .cashier-panel small,
body.invoice-page .cashier-purchases-page .cashier-panel .cashier-inline-head small {
  color: #d7c6a4 !important;
}

body.invoice-page .cashier-purchases-page .dashboard-kicker,
body.invoice-page .cashier-purchases-page .cashier-purchase-back {
  color: #44d7d2 !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button,
body.invoice-page .cashier-purchases-page .cashier-form-actions .invoice-print-button {
  background: rgba(15, 35, 35, 0.9) !important;
  border-color: rgba(68, 215, 210, 0.38) !important;
  color: #fff8ea !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-tabs button.active,
body.invoice-page .cashier-purchases-page .cashier-form-actions .invoice-print-button:not(.cashier-action-ghost) {
  background: linear-gradient(135deg, #0f9f98, #176f6a) !important;
  border-color: #44d7d2 !important;
  box-shadow: 0 10px 22px rgba(68, 215, 210, 0.16) !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line input,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line select,
body.invoice-page .cashier-purchases-page > .cashier-purchase-workspace input,
body.invoice-page .cashier-purchases-page > .cashier-purchase-workspace select {
  background-color: #132221 !important;
  border-color: rgba(68, 215, 210, 0.36) !important;
  color: #fff8ea !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line input::placeholder,
body.invoice-page .cashier-purchases-page > .cashier-purchase-workspace input::placeholder {
  color: rgba(255, 248, 234, 0.62) !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option {
  background: #101719;
  color: #fff8ea;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-total,
body.invoice-page .cashier-purchases-page .cashier-purchase-summary .cashier-cash-in-total {
  background: rgba(16, 48, 48, 0.76) !important;
  border-color: rgba(68, 215, 210, 0.3) !important;
  color: #fff8ea !important;
}

/* Custom order sablon dense live visibility pass. */
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head {
  align-items: center !important;
  min-height: 96px !important;
  padding: 18px 24px !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) .custom-order-page-title,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] .custom-order-page-title {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem) !important;
  line-height: 1.08 !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs {
  margin-bottom: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon {
  min-height: 0 !important;
  padding: 12px 16px 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
  border-radius: 8px !important;
  font-size: 0.86rem !important;
  min-height: 34px !important;
  padding: 5px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content {
  gap: 8px !important;
  min-height: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel:not([open]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 40px !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
  background: #e8f5f3 !important;
  min-height: 38px !important;
  padding: 0 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel[open] {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.08) !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary span {
  min-height: 56px !important;
  padding: 9px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary small {
  font-size: 0.76rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary b {
  font-size: 0.94rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-list {
  gap: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
  min-height: 46px !important;
  padding: 7px 10px 7px 16px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
  padding: 8px 12px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
  gap: 6px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
  min-height: 50px !important;
  padding: 8px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid small {
  font-size: 0.74rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid b {
  font-size: 0.86rem !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head {
    min-height: 82px !important;
    padding: 14px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon {
    padding: 10px 12px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 580px) {
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: 1fr !important;
  }
}

/* Custom order sablon mobile compact final pass. */
@media (max-width: 560px) {
  body.invoice-page .custom-orders-page {
    padding: 10px 10px calc(104px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    border-color: rgba(15, 143, 134, 0.14) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(38, 52, 58, 0.07) !important;
    min-height: 96px !important;
    padding: 18px 20px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: 1.78rem !important;
    line-height: 1.1 !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    background: #ffffff !important;
    border: 1px solid rgba(15, 143, 134, 0.14) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(38, 52, 58, 0.06) !important;
    gap: 6px !important;
    margin: 8px auto !important;
    padding: 6px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    background: #ffffff !important;
    border-color: rgba(15, 143, 134, 0.14) !important;
    border-radius: 10px !important;
    color: #172126 !important;
    font-size: 0.88rem !important;
    min-height: 48px !important;
    padding: 7px 10px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a.active,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"] {
    background: #e8f5f3 !important;
    border-color: rgba(15, 143, 134, 0.34) !important;
    color: #172126 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon {
    border-radius: 14px !important;
    padding: 10px 12px 112px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
    gap: 6px !important;
    margin-bottom: 10px !important;
    padding: 4px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
    font-size: 0.86rem !important;
    min-height: 40px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel:not([open]) {
    min-height: 42px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
    min-height: 40px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary span {
    min-height: 64px !important;
    padding: 10px 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
    align-items: center !important;
    column-gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    grid-template-rows: auto auto auto !important;
    min-height: 92px !important;
    padding: 10px 12px 10px 16px !important;
    row-gap: 4px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-code {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-name {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary::after {
    align-self: center !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
    padding: 10px 12px 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid section {
    min-height: 56px !important;
    padding: 10px 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid section:nth-child(1),
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid section:nth-child(6) {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid small {
    color: #60757b !important;
    font-size: 0.76rem !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid b {
    color: #172126 !important;
    font-size: 0.88rem !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav {
    background: rgba(236, 246, 245, 0.96) !important;
    border-top: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 -10px 26px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
    min-height: 68px !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav a,
  body.invoice-page.custom-orders-route .home-bottom-nav button {
    color: #60757b !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav a.active,
  body.invoice-page.custom-orders-route .home-bottom-nav button.active {
    color: #0d756e !important;
  }

  body.invoice-page.custom-orders-route .bottom-chat-link em,
  body.invoice-page.custom-orders-route .bottom-dashboard-badge,
  body.invoice-page.custom-orders-route .bottom-notification-button em {
    background: #0f8f86 !important;
    border-color: #fbfefe !important;
    font-size: 0.64rem !important;
    min-width: 18px !important;
  }
}

/* Customer chat: light operational conversation panel. */
body.chat-page {
  background: #eef7f7 !important;
}

body.chat-page .chat-layout {
  background: #fbfefe !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  box-shadow: -14px 0 32px rgba(15, 143, 134, 0.07), 0 18px 42px rgba(38, 52, 58, 0.1) !important;
  color: #172126 !important;
}

body.chat-page .chat-head {
  background: #e8f5f3 !important;
  border-bottom: 1px solid rgba(15, 143, 134, 0.18) !important;
  color: #172126 !important;
}

/* Custom orders mobile: one natural page scroll, roomy navigation and reachable controls. */
@media (max-width: 720px) {
  html,
  body.invoice-page.custom-orders-route {
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page.custom-orders-route .shell {
    height: auto !important;
    min-height: calc(100dvh - 76px) !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: calc(100dvh - 76px) !important;
    overflow: visible !important;
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace,
  body.invoice-page .custom-orders-page .cashier-panel,
  body.invoice-page .custom-orders-page .custom-order-design-pagination {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
  body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input,
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
    scrollbar-gutter: auto !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    padding: 8px 10px 8px 18px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a::before {
    left: 10px !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination > * {
    min-width: 0 !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination output {
    flex: 1 1 88px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination input {
    max-width: 64px !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav {
    min-height: 72px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

body.chat-page .chat-head h1,
body.chat-page .contact-title {
  color: #172126 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.chat-page .chat-head p,
body.chat-page .contact-subtitle,
body.chat-page .chat-action-menu span {
  color: #60757b !important;
}

body.chat-page .back-link,
body.chat-page .chat-search-trigger,
body.chat-page .chat-search-nav,
body.chat-page .chat-search-close,
body.chat-page .chat-action-menu-trigger,
body.chat-page .chat-action-menu summary {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  color: #172126 !important;
}

body.chat-page .back-link:hover,
body.chat-page .back-link:focus-visible,
body.chat-page .chat-search-trigger:hover,
body.chat-page .chat-search-trigger:focus-visible,
body.chat-page .chat-search-nav:hover,
body.chat-page .chat-search-nav:focus-visible,
body.chat-page .chat-search-close:hover,
body.chat-page .chat-search-close:focus-visible,
body.chat-page .chat-action-menu-trigger:hover,
body.chat-page .chat-action-menu-trigger:focus-visible,
body.chat-page .chat-action-menu summary:hover,
body.chat-page .chat-action-menu summary:focus-visible {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.42) !important;
  color: #0d756e !important;
}

body.chat-page .chat-analysis-trigger,
body.chat-page .ai-icon-button,
body.chat-page .reply-foot button {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  color: #ffffff !important;
}

body.chat-page .avatar {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.38) !important;
  box-shadow: none !important;
  color: #0d756e !important;
}

body.chat-page .contact-language-badge {
  background: #eff9f1 !important;
  border-color: rgba(54, 142, 82, 0.22) !important;
  color: #237247 !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin,
body.chat-page .chat-pin-stack .chat-customer-followup-pin,
body.chat-page .chat-followup-pin,
body.chat-page .chat-customer-followup-pin {
  background: #fff6df !important;
  border-color: rgba(183, 125, 0, 0.24) !important;
  color: #725300 !important;
}

body.chat-page .chat-followup-pin span,
body.chat-page .chat-customer-followup-pin span,
body.chat-page .chat-followup-pin p,
body.chat-page .chat-customer-followup-pin p {
  color: #725300 !important;
}

body.chat-page .chat-followup-pin small,
body.chat-page .chat-customer-followup-pin small {
  color: #8d6b21 !important;
}

body.chat-page .chat-followup-pin button,
body.chat-page .chat-customer-followup-pin button {
  background: #ffffff !important;
  border-color: rgba(183, 125, 0, 0.28) !important;
  color: #725300 !important;
}

body.chat-page .thread {
  background: #f4f8f8 !important;
  border: 0 !important;
}

body.chat-page .bubble.inbound {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.14) !important;
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.07) !important;
  color: #172126 !important;
}

body.chat-page .bubble.outbound {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
}

body.chat-page .bubble.outbound small,
body.chat-page .bubble.outbound .bubble-time,
body.chat-page .bubble.outbound .message-meta {
  color: rgba(255, 255, 255, 0.76) !important;
}

body.chat-page .quoted-message {
  background: #f8fbfb !important;
  border-left-color: #d5a12d !important;
  color: #60757b !important;
}

body.chat-page .reply {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 143, 134, 0.18) !important;
}

body.chat-page .reply textarea {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.22) !important;
  color: #172126 !important;
}

body.chat-page .reply textarea::placeholder {
  color: #809298 !important;
}

body.chat-page .attach-button,
body.chat-page .sticker-mode-button {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  color: #172126 !important;
}

@media (max-width: 560px) {
  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: 2.2rem !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    grid-template-columns: 1fr !important;
  }
}

/* Custom orders polish pass: closer to the cash-out page rhythm. */
body.invoice-page .custom-orders-page {
  padding: 16px 18px calc(142px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head,
body.invoice-page .custom-orders-page > .custom-order-tabs,
body.invoice-page .custom-orders-page > .custom-order-design-tabs,
body.invoice-page .custom-orders-page > .cashier-workspace {
  max-width: min(1180px, calc(100vw - 36px)) !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  border-radius: 16px !important;
  margin-bottom: 8px !important;
  padding: 15px 18px !important;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  font-size: clamp(1.75rem, 3.8vw, 3.05rem) !important;
  line-height: 0.98 !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs {
  align-items: center !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(16, 31, 36, 0.13) !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 6px !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(102, 119, 127, 0.14) !important;
  border-radius: 12px !important;
  color: #34434a !important;
  display: flex !important;
  font-size: 0.85rem !important;
  font-weight: 850 !important;
  justify-content: center !important;
  line-height: 1.1 !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page .custom-order-tabs a:focus-visible {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.26) !important;
  box-shadow: 0 8px 18px rgba(16, 31, 36, 0.08) !important;
  color: #0f5f5a !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-input"].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-prepare"].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-design"].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-sablon"].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-pickup"].active,
body.invoice-page .custom-orders-page .custom-order-tabs a[href="#custom-order-history"].active {
  background: linear-gradient(180deg, #ffffff, #eefafa) !important;
  border-color: rgba(15, 143, 134, 0.46) !important;
  box-shadow: inset 0 -2px 0 var(--ksrf-theme-primary, #008b84), 0 9px 18px rgba(16, 31, 36, 0.08) !important;
  color: #0b625d !important;
}

body.invoice-page .custom-orders-page .custom-order-tabs a.active::before {
  background: linear-gradient(90deg, var(--ksrf-theme-primary, #008b84), var(--ksrf-theme-accent, #ff4fa2)) !important;
  border-radius: 999px !important;
  bottom: 5px !important;
  display: block !important;
  height: 3px !important;
  left: 20% !important;
  opacity: 1 !important;
  right: 20% !important;
  top: auto !important;
  width: auto !important;
}

body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(16, 31, 36, 0.11) !important;
  display: flex !important;
  gap: 5px !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
  max-width: min(680px, calc(100vw - 36px)) !important;
  padding: 5px !important;
  width: max-content !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs button,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link] {
  align-items: center !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #45555c !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 0.8rem !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs span {
  font-size: 0.8rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs small {
  display: none !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs button:hover,
body.invoice-page .custom-orders-page .custom-order-design-tabs button:focus-visible,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link]:hover,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link]:focus-visible {
  background: rgba(15, 143, 134, 0.08) !important;
  border-color: transparent !important;
  color: #0f5f5a !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link].active {
  background: linear-gradient(135deg, var(--ksrf-theme-primary, #008b84), color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 72%, #ffffff)) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.22) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .custom-order-design-tabs button.active::after,
body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link].active::after {
  display: none !important;
}

body.invoice-page .custom-orders-page .cashier-workspace {
  margin-top: 0 !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  border-radius: 16px !important;
  padding: 18px !important;
}

body.invoice-page .custom-orders-page .cashier-panel .packing-panel-head {
  margin-bottom: 0 !important;
}

body.invoice-page .custom-orders-page .cashier-form-grid {
  gap: 10px 12px !important;
}

body.invoice-page .custom-orders-page .cashier-panel input,
body.invoice-page .custom-orders-page .cashier-panel select,
body.invoice-page .custom-orders-page .cashier-panel textarea,
body.invoice-page .custom-orders-page .custom-order-select-trigger {
  min-height: 44px !important;
}

body.invoice-page.custom-orders-route .home-bottom-nav {
  backdrop-filter: blur(18px) !important;
  background: rgba(8, 13, 15, 0.86) !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page {
    padding: 12px 12px calc(136px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace {
    max-width: calc(100vw - 24px) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    min-height: 40px !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    border-radius: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page .custom-order-design-tabs a[data-design-tab-link] {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: 1.85rem !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Custom orders final layout pass: plain cash-out surface and design-only chips. */
body.invoice-page.custom-orders-route {
  background: #eef7f7 !important;
}

body.invoice-page .custom-orders-page {
  background:
    linear-gradient(180deg, rgba(248, 252, 252, 0.98), rgba(238, 247, 247, 0.98)),
    #eef7f7 !important;
  min-height: calc(100vh - 102px) !important;
  padding: 12px 18px calc(142px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .custom-orders-page::before,
body.invoice-page .custom-orders-page::after {
  display: none !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head,
body.invoice-page .custom-orders-page > .custom-order-tabs,
body.invoice-page .custom-orders-page > .custom-order-design-tabs,
body.invoice-page .custom-orders-page > .cashier-workspace {
  max-width: min(1120px, calc(100vw - 36px)) !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.14) !important;
  box-shadow: 0 10px 28px rgba(38, 52, 58, 0.1) !important;
  margin-bottom: 7px !important;
  padding: 13px 18px !important;
}

body.invoice-page .custom-orders-page > .invoice-builder-head::before {
  display: none !important;
}

body.invoice-page .custom-orders-page .custom-order-page-title {
  font-size: clamp(1.65rem, 3.2vw, 2.65rem) !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.12) !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.1) !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin-bottom: 7px !important;
  padding: 5px !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a {
  min-height: 38px !important;
  padding: 7px 9px !important;
}

body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  display: none !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs,
body.invoice-page .custom-orders-page:has([data-design-card]:target) > .custom-order-design-tabs {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(38, 52, 58, 0.1) !important;
  display: inline-flex !important;
  gap: 4px !important;
  justify-content: center !important;
  margin: 0 auto 7px !important;
  max-width: calc(100vw - 36px) !important;
  padding: 4px !important;
  width: auto !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs a[data-design-tab-link],
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs a[data-design-tab-link],
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs a[data-design-tab-link] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #4b5b62 !important;
  min-height: 30px !important;
  padding: 6px 11px !important;
  width: auto !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs a[data-design-tab-link].active,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs a[data-design-tab-link].active,
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs a[data-design-tab-link].active {
  background: var(--ksrf-theme-primary, #008b84) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page > .cashier-workspace {
  transform: translateY(-72px) !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .cashier-workspace,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .cashier-workspace,
body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .cashier-workspace,
body.invoice-page .custom-orders-page:has([data-design-card]:target) > .cashier-workspace {
  transform: none !important;
}

body.invoice-page .custom-orders-page .cashier-panel,
body.invoice-page .custom-orders-page .custom-order-file-panel,
body.invoice-page .custom-orders-page .custom-order-product-panel,
body.invoice-page .custom-orders-page .custom-order-product-card,
body.invoice-page .custom-orders-page .custom-order-pickup-card,
body.invoice-page .custom-orders-page .custom-order-history-card,
body.invoice-page .custom-orders-page .custom-order-design-card,
body.invoice-page .custom-orders-page .custom-order-prepare-card,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(38, 52, 58, 0.1) !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page {
    padding: 10px 12px calc(136px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page > .cashier-workspace {
    max-width: calc(100vw - 24px) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    transform: translateY(-54px) !important;
  }

  body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .cashier-workspace,
  body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .cashier-workspace,
  body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .cashier-workspace,
  body.invoice-page .custom-orders-page:has([data-design-card]:target) > .cashier-workspace {
    transform: none !important;
  }
}

@media (max-width: 560px) {
  body.invoice-page .custom-orders-page > .custom-order-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page:has(.custom-order-tabs a[href="#custom-order-design"].active) > .custom-order-design-tabs,
  body.invoice-page .custom-orders-page:has([data-design-card]:target) > .custom-order-design-tabs {
    border-radius: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

/* Custom orders design panel split: status on the left, work area on the right. */
body.invoice-page .custom-orders-page[data-active-custom-order-view] > .custom-order-design-tabs {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
  display: grid !important;
  grid-template-columns: minmax(176px, 248px) minmax(0, 1fr) !important;
  column-gap: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
  align-content: start !important;
  align-items: stretch !important;
  align-self: start !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  grid-column: 1 !important;
  grid-template-columns: 1fr !important;
  justify-content: stretch !important;
  justify-self: stretch !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  position: sticky !important;
  top: 12px !important;
  width: 100% !important;
  z-index: 2 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link] {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #203038 !important;
  display: flex !important;
  justify-content: flex-start !important;
  min-height: 48px !important;
  padding: 11px 12px !important;
  text-align: left !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link].active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 82%, #33413e), color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 62%, var(--ksrf-theme-accent, #ff4fa2))) !important;
  border-color: rgba(15, 143, 134, 0.48) !important;
  box-shadow: inset 0 -3px 0 var(--ksrf-theme-accent, #ff4fa2), 0 10px 22px rgba(38, 52, 58, 0.12) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs span {
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs small {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
  grid-column: 2 !important;
  justify-self: stretch !important;
  max-width: none !important;
  transform: none !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
  min-height: 520px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  margin-bottom: 10px !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
    display: block !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
    border-radius: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 auto 8px !important;
    max-width: calc(100vw - 24px) !important;
    position: static !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link] {
    justify-content: center !important;
    min-height: 42px !important;
    text-align: center !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
    max-width: calc(100vw - 24px) !important;
  }
}

/* Keep the main custom-order tabs visible above every panel. */
body.invoice-page .custom-orders-page > .cashier-workspace,
body.invoice-page .custom-orders-page[data-active-custom-order-view] > .cashier-workspace {
  margin-top: 0 !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs {
  margin-bottom: 10px !important;
  position: relative !important;
  z-index: 4 !important;
}

/* Let long custom-order forms scroll above the fixed bottom navigation. */
body.invoice-page.custom-orders-route,
body.invoice-page.custom-orders-route .shell {
  min-height: 100dvh !important;
  overflow-y: auto !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  max-height: max(470px, calc(100dvh - 286px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important;
  scrollbar-color: rgba(15, 143, 134, 0.42) rgba(238, 247, 247, 0.9) !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active::-webkit-scrollbar,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target::-webkit-scrollbar,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input::-webkit-scrollbar {
  width: 9px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active::-webkit-scrollbar-track,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target::-webkit-scrollbar-track,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input::-webkit-scrollbar-track {
  background: rgba(238, 247, 247, 0.9) !important;
  border-radius: 999px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active::-webkit-scrollbar-thumb,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target::-webkit-scrollbar-thumb,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.42) !important;
  border: 2px solid rgba(238, 247, 247, 0.9) !important;
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
  body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
    max-height: max(470px, calc(100dvh - 236px)) !important;
  }
}

/* Softer proof thumbnail preview for cashier cash in/out. */
body.invoice-page .cashier-cash-out-page .cash-out-proof-preview {
  align-items: start !important;
  gap: 12px !important;
  grid-template-columns: repeat(auto-fill, minmax(94px, 94px)) !important;
  padding-top: 4px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-item {
  width: 94px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-thumb {
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 6%, #ffffff)) !important;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 24%, transparent) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.09) !important;
  color: #48656a !important;
  gap: 7px !important;
  padding: 7px !important;
  position: relative !important;
  width: 94px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-thumb::after {
  align-items: center;
  background: var(--ksrf-theme-primary, #008b84);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(38, 52, 58, 0.14);
  color: #ffffff;
  content: "✓";
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 22px;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview img {
  border: 1px solid rgba(15, 143, 134, 0.12) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84) !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-preview span {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 8%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 16%, transparent) !important;
  border-radius: 999px !important;
  color: #557077 !important;
  display: block !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  padding: 3px 6px !important;
  text-align: center !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-remove {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(222, 82, 92, 0.28) !important;
  box-shadow: 0 8px 16px rgba(38, 52, 58, 0.13) !important;
  color: #c34f59 !important;
  font-size: 0.96rem !important;
  height: 26px !important;
  right: -8px !important;
  top: -8px !important;
  width: 26px !important;
}

body.invoice-page .cashier-cash-out-page .cash-out-proof-remove:hover,
body.invoice-page .cashier-cash-out-page .cash-out-proof-remove:focus-visible {
  background: #fff1f2 !important;
  border-color: rgba(222, 82, 92, 0.46) !important;
  outline: 0;
}

/* Custom order premium polish: lighter fields, clearer menus, calmer actions. */
body.invoice-page .custom-orders-page {
  background:
    linear-gradient(180deg, rgba(248, 253, 253, 0.98), rgba(239, 248, 248, 0.98)),
    #eef7f7 !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 143, 134, 0.16) !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.08) !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a {
  background: #ffffff !important;
  border-color: rgba(111, 132, 137, 0.18) !important;
  color: #34464d !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-input"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-prepare"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-design"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-sablon"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-pickup"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-history"].active {
  background: #0f8f86 !important;
  border-color: rgba(15, 143, 134, 0.62) !important;
  box-shadow: inset 0 -3px 0 #ff4fa2, 0 10px 20px rgba(15, 143, 134, 0.18) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active::before {
  background: linear-gradient(90deg, #38d7ce, #ff4fa2) !important;
  bottom: 5px !important;
  height: 3px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  border-color: rgba(15, 143, 134, 0.18) !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.08) !important;
  padding-top: 16px !important;
}

body.invoice-page .custom-orders-page .cashier-form-grid {
  gap: 8px 14px !important;
}

body.invoice-page .custom-orders-page .cashier-panel label {
  color: #3d5058 !important;
  font-weight: 850 !important;
}

body.invoice-page .custom-orders-page .cashier-panel input,
body.invoice-page .custom-orders-page .cashier-panel select,
body.invoice-page .custom-orders-page .cashier-panel textarea,
body.invoice-page .custom-orders-page .custom-order-select-trigger {
  background: #f8fbfb !important;
  border: 1px solid #cfe2e2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  color: #17242b !important;
}

body.invoice-page .custom-orders-page .cashier-panel input::placeholder,
body.invoice-page .custom-orders-page .cashier-panel textarea::placeholder {
  color: #87999f !important;
}

body.invoice-page .custom-orders-page .cashier-panel input:focus,
body.invoice-page .custom-orders-page .cashier-panel select:focus,
body.invoice-page .custom-orders-page .cashier-panel textarea:focus,
body.invoice-page .custom-orders-page .custom-order-select:focus-within .custom-order-select-trigger {
  background: #ffffff !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.14) !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-menu,
body.invoice-page .custom-orders-page .custom-order-select-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 143, 134, 0.18) !important;
  box-shadow: 0 18px 38px rgba(38, 52, 58, 0.14) !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option,
body.invoice-page .custom-orders-page .custom-order-select-option {
  background: #fbfefe !important;
  border-color: rgba(15, 143, 134, 0.12) !important;
  color: #132027 !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option strong,
body.invoice-page .custom-orders-page .custom-order-select-option strong {
  color: #132027 !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option small,
body.invoice-page .custom-orders-page .custom-order-select-option small,
body.invoice-page .custom-orders-page .custom-order-combo-empty {
  color: #64777b !important;
}

body.invoice-page .custom-orders-page .custom-order-combo-option:hover,
body.invoice-page .custom-orders-page .custom-order-combo-option:focus,
body.invoice-page .custom-orders-page .custom-order-select-option:hover,
body.invoice-page .custom-orders-page .custom-order-select-option:focus,
body.invoice-page .custom-orders-page .custom-order-select-option.is-selected,
body.invoice-page .custom-orders-page .custom-order-select-option[aria-selected="true"] {
  background: #e8f7f5 !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  color: #0b625d !important;
}

body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product {
  background: #e3f6f4 !important;
  border-color: rgba(15, 143, 134, 0.24) !important;
  color: #0b625d !important;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-save-product],
body.invoice-page .custom-orders-page button[type="submit"][name="action"][value="save_order"],
body.invoice-page .custom-orders-page .custom-order-submit {
  background: linear-gradient(135deg, #0f8f86, #15756f) !important;
  border-color: rgba(15, 143, 134, 0.42) !important;
  box-shadow: 0 12px 24px rgba(15, 143, 134, 0.18) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-remove-product] {
  background: linear-gradient(135deg, #8e2948, #5f1d36) !important;
  border-color: rgba(142, 41, 72, 0.42) !important;
  box-shadow: 0 12px 24px rgba(142, 41, 72, 0.14) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .custom-order-file-panel,
body.invoice-page .custom-orders-page .custom-order-product-panel,
body.invoice-page .custom-orders-page .custom-order-product-card {
  background: #fbfefe !important;
  border-color: rgba(15, 143, 134, 0.12) !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input {
  max-height: max(490px, calc(100dvh - 274px)) !important;
  padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
  scrollbar-color: rgba(15, 143, 134, 0.32) rgba(238, 247, 247, 0.72) !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active::-webkit-scrollbar,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target::-webkit-scrollbar,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input::-webkit-scrollbar {
  width: 7px !important;
}

body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active::-webkit-scrollbar-thumb,
body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target::-webkit-scrollbar-thumb,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.32) !important;
  border-color: rgba(238, 247, 247, 0.72) !important;
}

/* Final custom-order paint lock: beat legacy theme/owner overlays. */
body.invoice-page .custom-orders-page > .custom-order-tabs a::before,
body.invoice-page .custom-orders-page > .custom-order-tabs a::after {
  display: none !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-input"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-prepare"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-design"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-sablon"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-pickup"].active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href="#custom-order-history"].active {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: rgba(15, 143, 134, 0.64) !important;
  box-shadow: inset 0 -3px 0 #ff4fa2, 0 10px 20px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button[type="submit"] {
  background: linear-gradient(135deg, #0f8f86, #15756f) !important;
  border-color: rgba(15, 143, 134, 0.42) !important;
  box-shadow: 0 12px 24px rgba(15, 143, 134, 0.18) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button:hover,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button:focus-visible {
  background: linear-gradient(135deg, #128f87, #0f665f) !important;
  color: #ffffff !important;
}

/* Final custom-order target lock: hash-driven tabs override owner colors. */
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="desain-"]:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has([id^="ambil-"]:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has([id^="pesanan-"]:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="siapkan-"]:target) > .custom-order-tabs a[href="#custom-order-prepare"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: rgba(15, 143, 134, 0.64) !important;
  box-shadow: inset 0 -3px 0 #ff4fa2, 0 10px 20px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
}

/* Cash-out parity for custom orders: follow owner theme colors. */
body.invoice-page .custom-orders-page > .custom-order-tabs a,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link] {
  background: var(--ksrf-theme-surface, #ffffff) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 18%, #d7e1e5) !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.07) !important;
  color: #32454c !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a:hover,
body.invoice-page .custom-orders-page > .custom-order-tabs a:focus-visible,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button:hover,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button:focus-visible,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]:hover,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]:focus-visible {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 8%, var(--ksrf-theme-surface, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 30%, transparent) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="desain-"]:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has([id^="ambil-"]:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has([id^="pesanan-"]:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="siapkan-"]:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link].active {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 10%, var(--ksrf-theme-surface, #ffffff)) !important;
  background-image: none !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent) !important;
  box-shadow: 0 12px 26px rgba(38, 52, 58, 0.08) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"]::before,
body.invoice-page .custom-orders-page:has([id^="desain-"]:target) > .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has([id^="ambil-"]:target) > .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page:has([id^="pesanan-"]:target) > .custom-order-tabs a[href="#custom-order-history"]::before,
body.invoice-page .custom-orders-page:has([id^="siapkan-"]:target) > .custom-order-tabs a[href="#custom-order-prepare"]::before {
  background: var(--ksrf-theme-primary, #008b84) !important;
  border-radius: 999px !important;
  content: "" !important;
  display: block !important;
  height: 28px !important;
  left: 14px !important;
  opacity: 0.95 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
}

body.invoice-page .custom-orders-page .packing-secondary-action,
body.invoice-page .custom-orders-page .custom-order-add-product {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 10%, var(--ksrf-theme-surface, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 28%, transparent) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-save-product],
body.invoice-page .custom-orders-page button[type="submit"][name="action"][value="save_order"],
body.invoice-page .custom-orders-page .custom-order-submit,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button[type="submit"] {
  background: linear-gradient(135deg, var(--ksrf-theme-primary, #008b84), var(--ksrf-theme-accent, #ff4fa2)) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 36%, transparent) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 20%, transparent) !important;
  color: #ffffff !important;
}

/* Custom order exact cash-out color match. */
body.invoice-page .custom-orders-page > .custom-order-tabs a,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link] {
  background: #ffffff !important;
  border-color: rgba(207, 218, 221, 0.86) !important;
  box-shadow: 0 12px 28px rgba(38, 52, 58, 0.07) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a::before,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button::before,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]::before {
  background: #cfdadd !important;
  border-radius: 999px !important;
  content: "" !important;
  display: block !important;
  height: 28px !important;
  left: 14px !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="desain-"]:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has([id^="ambil-"]:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page:has([id^="pesanan-"]:target) > .custom-order-tabs a[href="#custom-order-history"],
body.invoice-page .custom-orders-page:has([id^="siapkan-"]:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link].active {
  background: #e8f5f3 !important;
  background-image: none !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: 0 12px 30px rgba(15, 143, 134, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"]::before,
body.invoice-page .custom-orders-page:has([id^="desain-"]:target) > .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has([id^="ambil-"]:target) > .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page:has([id^="pesanan-"]:target) > .custom-order-tabs a[href="#custom-order-history"]::before,
body.invoice-page .custom-orders-page:has([id^="siapkan-"]:target) > .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page > .custom-order-design-tabs button.active::before,
body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link].active::before {
  background: #0f8f86 !important;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-save-product],
body.invoice-page .custom-orders-page button[type="submit"][name="action"][value="save_order"],
body.invoice-page .custom-orders-page .custom-order-submit,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button[type="submit"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: rgba(15, 143, 134, 0.36) !important;
  box-shadow: 0 14px 28px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page .custom-order-product-actions [data-save-product]:hover,
body.invoice-page .custom-orders-page button[type="submit"][name="action"][value="save_order"]:hover,
body.invoice-page .custom-orders-page .custom-order-submit:hover,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button:hover,
body.invoice-page .custom-orders-page .cashier-form-actions .invoice-print-button:focus-visible {
  background: #0d7d76 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Custom order prepare polish: cash-out style cards and actions. */
body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-list {
  gap: 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-card {
  align-items: center !important;
  background: #ffffff !important;
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.075), transparent 24%) !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-left-color: rgba(15, 143, 134, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 12px 30px rgba(38, 52, 58, 0.08) !important;
  clip-path: none !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.78fr) !important;
  min-height: 0 !important;
  padding: 12px 16px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-card:hover {
  border-color: rgba(15, 143, 134, 0.34) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 16px 34px rgba(15, 143, 134, 0.12) !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-main {
  gap: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-main strong {
  color: #172126 !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  line-height: 1.22 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-main span {
  color: #24363c !important;
  font-size: 0.95rem !important;
  font-weight: 850 !important;
  line-height: 1.28 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-main small,
body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid small {
  color: #60757b !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid label {
  color: #3d5359 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  gap: 6px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid input[type="file"] {
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #172126 !important;
  min-height: 42px !important;
  padding: 6px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid input[type="file"]::file-selector-button {
  background: #0f8f86 !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-weight: 850 !important;
  margin-right: 10px !important;
  padding: 8px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: rgba(15, 143, 134, 0.36) !important;
  box-shadow: 0 14px 28px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
  min-height: 48px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button:hover,
body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button:focus-visible {
  background: #0d7d76 !important;
  background-image: none !important;
  color: #ffffff !important;
}

@media (max-width: 860px) {
  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-card {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
}

/* Custom order design polish: restore stacking and match cash-out surface. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
  display: block !important;
  grid-template-columns: none !important;
  min-height: auto !important;
  padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
  display: block !important;
  grid-column: auto !important;
  justify-self: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(1180px, calc(100vw - 36px)) !important;
  position: relative !important;
  transform: none !important;
  width: 100% !important;
  z-index: auto !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head {
  margin-bottom: 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
  margin-bottom: 8px !important;
  z-index: 4 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  z-index: 3 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link] {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(207, 218, 221, 0.86) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.06) !important;
  color: #172126 !important;
  display: grid !important;
  gap: 2px !important;
  justify-content: stretch !important;
  min-height: 48px !important;
  padding: 8px 12px 8px 18px !important;
  position: relative !important;
  text-align: left !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button::before,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link]::before {
  background: #cfdadd !important;
  border-radius: 999px !important;
  content: "" !important;
  display: block !important;
  height: 26px !important;
  left: 10px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button.active,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link].active {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: 0 12px 30px rgba(15, 143, 134, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button.active::before,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link].active::before {
  background: #0f8f86 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs span {
  color: #172126 !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  padding-left: 8px !important;
  text-transform: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs small {
  color: #60757b !important;
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  padding-left: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
  margin-top: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
  max-height: max(430px, calc(100dvh - 332px)) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .packing-panel-head {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.06) !important;
  justify-content: flex-end !important;
  margin: 0 0 10px !important;
  padding: 6px !important;
  position: static !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-filter-icon,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination button {
  background: #0f8f86 !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  height: 38px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination button:disabled {
  background: #8f9b9f !important;
  color: #edf4f4 !important;
  opacity: 0.8 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination output,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination input {
  background: #f8fbfb !important;
  border-color: rgba(15, 143, 134, 0.18) !important;
  border-radius: 12px !important;
  color: #172126 !important;
  height: 38px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-list {
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card {
  background: #ffffff !important;
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.075), transparent 24%) !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-left-color: rgba(15, 143, 134, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 10px 24px rgba(38, 52, 58, 0.07) !important;
  clip-path: none !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary {
  gap: 10px !important;
  grid-template-columns: minmax(126px, 0.9fr) minmax(0, 1.3fr) minmax(110px, 0.55fr) minmax(82px, max-content) 24px !important;
  min-height: 46px !important;
  padding: 10px 14px 10px 18px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary::after {
  content: "" !important;
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-code {
  color: #0f8f86 !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-name {
  color: #172126 !important;
  font-size: 0.94rem !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-designer,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-date {
  color: #60757b !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-date.is-deadline {
  background: #fff3f3 !important;
  border-color: rgba(220, 70, 70, 0.28) !important;
  color: #b53b3b !important;
  padding: 5px 9px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-toggle {
  background: #edf6f5 !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  font-size: 0.86rem !important;
  min-height: 24px !important;
  min-width: 24px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card[open] .custom-order-design-toggle {
  transform: rotate(90deg) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-detail {
  background: #fbfefe !important;
  border-top: 1px solid rgba(15, 143, 134, 0.12) !important;
  color: #172126 !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-name,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-designer,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-date {
    grid-column: 1 / -1 !important;
  }
}

/* Custom order design spacing tune: desktop tabs horizontal and subtabs compact. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head {
  margin-bottom: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin-bottom: 8px !important;
  max-width: min(1180px, calc(100vw - 36px)) !important;
  padding: 6px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs a {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 8px 12px 8px 20px !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs a::before {
  left: 16px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
  gap: 6px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 0 auto 8px !important;
  max-width: min(760px, calc(100vw - 36px)) !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link] {
  border-radius: 999px !important;
  min-height: 40px !important;
  padding: 7px 12px 7px 18px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button::before,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link]::before {
  height: 22px !important;
  left: 10px !important;
  width: 3px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs span {
  font-size: 0.8rem !important;
  line-height: 1.08 !important;
  padding-left: 6px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs small {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
  max-height: max(450px, calc(100dvh - 300px)) !important;
  padding-top: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  margin-bottom: 8px !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Custom order design polish: tighter header, clearer controls, stronger scan rhythm. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head {
  align-items: center !important;
  border-color: rgba(15, 143, 134, 0.13) !important;
  border-radius: 14px !important;
  min-height: 104px !important;
  padding: 20px 24px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] .custom-order-page-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
  border-color: rgba(15, 143, 134, 0.13) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 32px rgba(38, 52, 58, 0.08) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs a {
  border-radius: 10px !important;
  font-size: 0.91rem !important;
  font-weight: 900 !important;
  min-height: 42px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
  justify-content: center !important;
  margin: 0 auto 10px !important;
  max-width: min(560px, calc(100vw - 36px)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs button,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs a[data-design-tab-link] {
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.055) !important;
  min-height: 38px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
  max-width: min(1180px, calc(100vw - 36px)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
  border-color: rgba(15, 143, 134, 0.13) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 36px rgba(38, 52, 58, 0.1) !important;
  max-height: max(500px, calc(100dvh - 268px)) !important;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom)) !important;
  scrollbar-color: rgba(15, 143, 134, 0.42) rgba(230, 244, 242, 0.72) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  align-items: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 6px 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-filter-icon,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination button {
  flex: 0 0 38px !important;
  width: 38px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination output {
  min-width: 58px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination input {
  max-width: 72px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-list {
  gap: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card {
  border-left-color: rgba(15, 143, 134, 0.7) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 8px 18px rgba(38, 52, 58, 0.065) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card:hover {
  border-color: rgba(15, 143, 134, 0.3) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 14px 26px rgba(38, 52, 58, 0.09) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary {
  grid-template-columns: minmax(132px, 0.8fr) minmax(220px, 1.25fr) minmax(120px, 0.6fr) minmax(90px, max-content) 28px !important;
  min-height: 54px !important;
  padding: 12px 16px 12px 20px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-toggle {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
}

/* Cash-in success modal: align flash feedback with the current teal page theme. */
body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] {
  background: rgba(16, 31, 36, 0.42) !important;
  backdrop-filter: blur(2px);
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 7%, #ffffff), #ffffff 58%),
    var(--ksrf-theme-surface, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 24%, transparent) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 72px rgba(16, 31, 36, 0.24) !important;
  color: var(--ksrf-theme-text, #162027) !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal::before {
  background: linear-gradient(90deg, var(--ksrf-theme-primary, #008b84), color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 54%, #ffffff)) !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal-rank.is-success {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 12%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 30%, transparent) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal-rank.is-success::after {
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent) !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal-eyebrow {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 12%, #ffffff) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
  display: inline-block;
  letter-spacing: 1.8px;
  padding: 6px 14px;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal p:not(.game-modal-eyebrow) {
  color: color-mix(in srgb, var(--ksrf-theme-text, #162027) 82%, #66777f) !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal button {
  background: linear-gradient(135deg, var(--ksrf-theme-primary, #008b84), color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 72%, #ffffff)) !important;
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 36%, transparent) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 22%, transparent) !important;
  color: #ffffff !important;
}

body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal button:hover,
body.invoice-page:has(.cashier-cash-in-skin-page) .game-modal-backdrop[data-flash-modal] .game-modal button:focus-visible {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 88%, #162027), var(--ksrf-theme-primary, #008b84)) !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
    max-width: calc(100vw - 24px) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head {
    min-height: 86px !important;
    padding: 18px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] .custom-order-page-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs a {
    min-height: 40px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 24px) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
    max-height: none !important;
    padding: 10px 10px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
    gap: 6px !important;
    justify-content: center !important;
    overflow-x: auto !important;
  }
}

/* Custom order design subtabs final alignment: center even before JS marks the active view. */
body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-content: center !important;
  margin: 0 auto 10px !important;
  max-width: min(560px, calc(100vw - 36px)) !important;
  width: min(560px, calc(100vw - 36px)) !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
  }
}

/* Custom order design filter: move status controls into the toolbar filter menu. */
body.invoice-page .custom-orders-page > .custom-order-design-tabs {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  overflow: visible !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-menu {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  margin-right: auto !important;
  position: relative !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-active-filter {
  align-items: center !important;
  background: #edf6f5 !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  display: inline-flex !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dropdown {
  align-items: center !important;
  background: rgba(16, 31, 36, 0.42) !important;
  border: 0 !important;
  border-radius: 0 !important;
  bottom: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  left: 0 !important;
  padding: 18px !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2147483000 !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dropdown[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 70px rgba(16, 31, 36, 0.26) !important;
  display: grid !important;
  gap: 12px !important;
  max-width: min(360px, calc(100vw - 36px)) !important;
  padding: 14px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog header {
  align-items: center !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog header strong {
  color: #172126 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-close {
  align-items: center !important;
  background: #edf6f5 !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  height: 34px !important;
  justify-content: center !important;
  width: 34px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section {
  display: grid !important;
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog small {
  color: #60757b !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  padding: 2px 4px 4px !important;
  text-transform: uppercase !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section button,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section a {
  align-items: center !important;
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.12) !important;
  border-radius: 9px !important;
  color: #172126 !important;
  cursor: pointer !important;
  display: flex !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  justify-content: flex-start !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  text-align: left !important;
  text-decoration: none !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section button.active,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section button:hover,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section a:hover,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section button:focus-visible,
body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-dialog section a:focus-visible {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  color: #0f8f86 !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-list {
  padding-bottom: calc(156px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-pagination {
    justify-content: flex-start !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-filter-menu {
    margin-right: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-active-filter {
    max-width: 42vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Cash-in mobile polish: readable stacked customer rows and room above bottom nav. */
@media (max-width: 720px) {
  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace {
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel {
    padding: 10px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block {
    border-radius: 18px !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-payment-editor {
    border-radius: 16px !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options {
    left: 0 !important;
    max-height: min(300px, calc(100dvh - 420px)) !important;
    max-width: 100% !important;
    padding: 8px !important;
    right: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button {
    align-items: start !important;
    display: grid !important;
    gap: 5px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    min-height: 64px !important;
    padding: 12px 14px !important;
    text-align: left !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button span,
  body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button small {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button small {
    color: #60747b !important;
    font-size: 0.72rem !important;
  }
}

/* Custom order design filter modal: final body-level presentation. */
body.invoice-page .custom-order-design-filter-dropdown {
  align-items: center !important;
  background: rgba(16, 31, 36, 0.42) !important;
  border: 0 !important;
  border-radius: 0 !important;
  bottom: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  left: 0 !important;
  padding: 18px !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2147483000 !important;
}

body.invoice-page .custom-order-design-filter-dropdown[hidden] {
  display: none !important;
}

body.invoice-page .custom-order-design-filter-dialog {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 76px rgba(16, 31, 36, 0.3) !important;
  display: grid !important;
  gap: 14px !important;
  height: auto !important;
  max-height: calc(100dvh - 48px) !important;
  max-width: min(360px, calc(100vw - 36px)) !important;
  overflow: auto !important;
  padding: 14px !important;
  width: 100% !important;
}

body.invoice-page .custom-order-design-filter-dialog header {
  align-items: center !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: space-between !important;
}

body.invoice-page .custom-order-design-filter-dialog header strong {
  color: #172126 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

body.invoice-page .custom-order-design-filter-close {
  align-items: center !important;
  background: #edf6f5 !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex: 0 0 34px !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  height: 34px !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: 34px !important;
}

body.invoice-page .custom-order-design-filter-dialog section {
  display: grid !important;
  gap: 8px !important;
}

body.invoice-page .custom-order-design-filter-dialog section small {
  color: #60757b !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  padding: 0 2px 2px !important;
  text-transform: uppercase !important;
}

body.invoice-page .custom-order-design-filter-dialog section button,
body.invoice-page .custom-order-design-filter-dialog section a {
  align-items: center !important;
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 10px !important;
  color: #172126 !important;
  cursor: pointer !important;
  display: flex !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  justify-content: space-between !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  text-align: left !important;
  text-decoration: none !important;
  width: 100% !important;
}

body.invoice-page .custom-order-design-filter-dialog section button.active,
body.invoice-page .custom-order-design-filter-dialog section button:hover,
body.invoice-page .custom-order-design-filter-dialog section a:hover,
body.invoice-page .custom-order-design-filter-dialog section button:focus-visible,
body.invoice-page .custom-order-design-filter-dialog section a:focus-visible {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  color: #0f8f86 !important;
  outline: none !important;
}

body.invoice-page .custom-order-design-filter-dialog section button.active::after {
  color: #0f8f86 !important;
  content: "✓" !important;
  font-size: 0.95rem !important;
  font-weight: 950 !important;
  margin-left: 12px !important;
}

/* Cashier dashboard: match the cash-out operational skin. */
body.invoice-page .cashier-system-page {
  max-width: 1380px;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page {
  gap: 16px;
  padding-bottom: 118px;
}

body.invoice-page .cashier-system-page .invoice-builder-head {
  align-items: center;
  border-radius: 18px;
  min-height: auto;
  padding: 22px 24px;
}

body.invoice-page .cashier-system-page .invoice-builder-head h1 {
  color: var(--cashout-ink, #172126) !important;
  font-size: clamp(2.45rem, 4.4vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.96;
  text-shadow: none !important;
  text-transform: none;
}

body.invoice-page .cashier-system-page .invoice-builder-head p:not(.auth-brand) {
  color: var(--cashout-muted, #66777f) !important;
  font-size: 0.95rem;
  max-width: 760px;
}

body.invoice-page .cashier-system-page .invoice-builder-head .auth-brand {
  background: rgba(15, 143, 134, 0.1) !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px;
  color: #0d756e !important;
  letter-spacing: 0.18em;
}

body.invoice-page .cashier-system-page .invoice-builder-head .auth-brand b {
  color: var(--cashout-pink, #bd6c86) !important;
}

body.invoice-page .cashier-system-page .cashier-head-actions .invoice-print-button {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 14%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 26%, transparent) !important;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 143, 134, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: var(--ksrf-theme-primary, #008b84) !important;
}

body.invoice-page .cashier-system-page .cashier-menu-grid {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

body.invoice-page .cashier-system-page .dashboard-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 249, 0.96)),
    var(--cashout-panel, rgba(255, 255, 255, 0.96)) !important;
  border: 1px solid rgba(134, 151, 158, 0.22) !important;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  color: var(--cashout-ink, #172126) !important;
  min-height: 182px;
}

body.invoice-page .cashier-system-page .dashboard-card:hover,
body.invoice-page .cashier-system-page .dashboard-card:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(232, 245, 243, 0.96)),
    #ffffff !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: 0 16px 42px rgba(15, 143, 134, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  outline: none;
  transform: translateY(-2px);
}

body.invoice-page .cashier-system-page .dashboard-icon {
  background: var(--cashout-ink, #172126) !important;
  border: 1px solid rgba(23, 33, 38, 0.08);
  box-shadow: 0 14px 28px rgba(38, 52, 58, 0.16);
  color: #ffffff !important;
}

body.invoice-page .cashier-system-page .dashboard-icon svg {
  stroke: currentColor;
}

body.invoice-page .cashier-system-page .dashboard-status {
  background: rgba(15, 143, 134, 0.1) !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px;
  color: #0d756e !important;
  letter-spacing: 0.12em;
}

body.invoice-page .cashier-system-page .dashboard-card h3 {
  color: var(--cashout-ink, #172126) !important;
  line-height: 1.18;
}

body.invoice-page .cashier-system-page .dashboard-card p {
  color: var(--cashout-muted, #66777f) !important;
  font-weight: 500;
  line-height: 1.45;
}

body.invoice-page .cashier-system-page .dashboard-card small {
  color: var(--ksrf-theme-primary, #008b84) !important;
  font-weight: 700;
}

body.invoice-page .cashier-system-page .dashboard-arrow {
  color: var(--ksrf-theme-primary, #008b84) !important;
  font-weight: 800;
}

@media (max-width: 1180px) {
  body.invoice-page .cashier-system-page .cashier-menu-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 980px) {
  body.invoice-page .cashier-system-page .cashier-menu-grid {
    grid-template-columns: 1fr;
  }

  body.invoice-page .cashier-system-page .dashboard-card {
    min-height: 0;
  }
}

/* Cashier dashboard final layout: cash-out theme, dashboard rhythm. */
body.invoice-page:has(.cashier-system-page) > .topbar {
  display: none !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page {
  align-content: start !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(1380px, calc(100vw - 48px)) !important;
  padding: 24px 0 calc(108px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head {
  align-items: center !important;
  display: grid !important;
  gap: 18px !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 176px !important;
  padding: 24px 30px !important;
  width: 100% !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .invoice-builder-head h1 {
  font-size: clamp(2.35rem, 4.2vw, 4rem) !important;
  max-width: 760px !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .invoice-builder-head p:not(.auth-brand) {
  line-height: 1.55 !important;
  margin-top: 10px !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-head-actions {
  justify-content: end !important;
  max-width: none !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-menu-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 16px !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card {
  align-items: center !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: 54px minmax(0, 1fr) 28px !important;
  min-height: 178px !important;
  padding: 24px !important;
  width: 100% !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card-copy {
  min-width: 0 !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem) !important;
  letter-spacing: 0.05em !important;
  margin-top: 10px !important;
  overflow-wrap: anywhere !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card p {
  font-size: 0.96rem !important;
  margin-top: 8px !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card small {
  display: block !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
  margin-top: 8px !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-icon {
  height: 54px !important;
  width: 54px !important;
}

body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-arrow {
  justify-self: end !important;
}

@media (max-width: 1180px) {
  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  body.invoice-page .cashier-system-page.cashier-cash-out-page {
    max-width: min(100%, 620px) !important;
    padding: 12px 14px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head {
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 20px 18px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-head-actions,
  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-head-actions .invoice-print-button {
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-menu-grid {
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card {
    grid-template-columns: 48px minmax(0, 1fr) 24px !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-icon {
    height: 48px !important;
    width: 48px !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page:has(.cashier-system-page) {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page:has(.cashier-system-page) .shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page {
    gap: 14px !important;
    height: auto !important;
    max-width: min(100%, 560px) !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 12px 14px calc(128px + env(safe-area-inset-bottom)) !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head,
  body.invoice-page .cashier-system-page.cashier-cash-out-page > .cashier-menu-grid {
    justify-self: stretch !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head {
    align-items: start !important;
    border-radius: 16px !important;
    gap: 12px !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 16px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head::before,
  body.invoice-page .cashier-system-page.cashier-cash-out-page > .invoice-builder-head::after {
    display: none !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .invoice-builder-head .auth-brand {
    font-size: 0.62rem !important;
    margin: 0 !important;
    padding: 5px 10px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .invoice-builder-head h1 {
    font-size: clamp(2rem, 12vw, 2.9rem) !important;
    letter-spacing: 0 !important;
    line-height: 0.95 !important;
    margin: 8px 0 0 !important;
    max-width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .invoice-builder-head p:not(.auth-brand) {
    font-size: 0.86rem !important;
    line-height: 1.42 !important;
    margin: 8px 0 0 !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-head-actions {
    margin-top: 2px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-head-actions .invoice-print-button {
    min-height: 42px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .cashier-menu-grid {
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card {
    align-items: center !important;
    border-radius: 16px !important;
    gap: 14px !important;
    grid-template-columns: 48px minmax(0, 1fr) 24px !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-status {
    font-size: 0.62rem !important;
    padding: 4px 9px !important;
    width: fit-content !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card h3 {
    font-size: 1.08rem !important;
    line-height: 1.12 !important;
    margin-top: 8px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card p {
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
    margin-top: 7px !important;
  }

  body.invoice-page .cashier-system-page.cashier-cash-out-page .dashboard-card small {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    margin-top: 7px !important;
  }
}

/* Custom order design detail readability polish. */
body.invoice-page .custom-order-design-filter-dialog section button.active::after {
  content: "\2713" !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-active-filter {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-active-filter::before {
  background: #0f8f86 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.12) !important;
  content: "" !important;
  display: inline-block !important;
  height: 8px !important;
  width: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card[open] {
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.11), rgba(255, 255, 255, 0) 32%) !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 16px 36px rgba(38, 52, 58, 0.12) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card[open] > .custom-order-design-summary {
  background: linear-gradient(90deg, rgba(232, 245, 243, 0.95), rgba(255, 255, 255, 0.96)) !important;
  border-bottom: 1px solid rgba(15, 143, 134, 0.12) !important;
}

/* Cash balance status mobile: cash-out themed, compact cashier workflow. */
@media (max-width: 720px) {
  body.invoice-page:has(.cashier-cash-status-page) {
    background: #eff4f3 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page:has(.cashier-cash-status-page) .shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.invoice-page .cashier-cash-status-page {
    gap: 14px !important;
    max-width: min(100%, 560px) !important;
    padding: 12px 14px calc(260px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 249, 0.96)),
      #ffffff !important;
    border: 1px solid rgba(134, 151, 158, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
    gap: 12px !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 16px !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head::before,
  body.invoice-page .cashier-cash-status-page .invoice-builder-head::after {
    display: none !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head .auth-brand {
    background: rgba(15, 143, 134, 0.1) !important;
    border: 1px solid rgba(15, 143, 134, 0.18) !important;
    border-radius: 999px !important;
    color: #0d756e !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.18em !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    width: fit-content !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head .auth-brand b {
    color: #bd6c86 !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head h1 {
    color: #172126 !important;
    font-size: clamp(2rem, 11vw, 2.85rem) !important;
    letter-spacing: 0 !important;
    line-height: 0.98 !important;
    margin: 8px 0 0 !important;
    text-shadow: none !important;
  }

  body.invoice-page .cashier-cash-status-page .invoice-builder-head p:not(.auth-brand) {
    color: #66777f !important;
    font-size: 0.86rem !important;
    line-height: 1.42 !important;
    margin: 8px 0 0 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-head-actions {
    background: #ffffff !important;
    border: 1px solid rgba(15, 143, 134, 0.16) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(38, 52, 58, 0.07) !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 2px !important;
    padding: 6px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-head-actions .invoice-print-button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #0f8f86 !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-head-actions .invoice-print-button:hover,
  body.invoice-page .cashier-cash-status-page .cashier-head-actions .invoice-print-button:first-child,
  body.invoice-page .cashier-cash-status-page .cashier-head-actions .invoice-print-button:focus-visible {
    background: #e8f5f3 !important;
    outline: none !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary article {
    background: #ffffff !important;
    border: 1px solid rgba(134, 151, 158, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(38, 52, 58, 0.07) !important;
    min-height: 94px !important;
    padding: 12px !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary article:nth-child(3) {
    background: #e8f5f3 !important;
    border-color: rgba(15, 143, 134, 0.24) !important;
    grid-column: 1 / -1 !important;
    min-height: 74px !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary span,
  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary small {
    color: #66777f !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary strong {
    color: #172126 !important;
    font-size: 1.12rem !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary article:nth-child(3) strong,
  body.invoice-page .cashier-cash-status-page .cashier-cash-status-summary article:nth-child(3) small {
    color: #0f8f86 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-workspace,
  body.invoice-page .cashier-cash-status-page .cashier-workspace-single {
    gap: 14px !important;
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-panel {
    background: #ffffff !important;
    border: 1px solid rgba(134, 151, 158, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(38, 52, 58, 0.08) !important;
    padding: 16px !important;
  }

  body.invoice-page .cashier-cash-status-page .packing-panel-head {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body.invoice-page .cashier-cash-status-page .packing-panel-head h2 {
    color: #172126 !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.03em !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
  }

  body.invoice-page .cashier-cash-status-page .packing-panel-head small {
    color: #66777f !important;
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
  }

  body.invoice-page .cashier-cash-status-page .dashboard-kicker {
    background: #e8f5f3 !important;
    border: 1px solid rgba(15, 143, 134, 0.18) !important;
    border-radius: 999px !important;
    color: #0f8f86 !important;
    display: inline-flex !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.16em !important;
    padding: 4px 9px !important;
    width: fit-content !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-form-grid,
  body.invoice-page .cashier-cash-status-page .cashier-cash-status-form {
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-denomination-grid {
    gap: 8px !important;
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-denomination-grid label {
    align-items: center !important;
    background: #f8fbfb !important;
    border: 1px solid rgba(134, 151, 158, 0.2) !important;
    border-radius: 12px !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(82px, 0.74fr) minmax(76px, 0.8fr) minmax(80px, auto) !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-denomination-grid label > span {
    color: #172126 !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-denomination-grid input {
    background: #ffffff !important;
    border: 1px solid rgba(134, 151, 158, 0.25) !important;
    border-radius: 9px !important;
    color: #172126 !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    min-height: 40px !important;
    padding: 0 9px !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-denomination-grid small {
    color: #66777f !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    justify-self: end !important;
    line-height: 1.2 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-total {
    background: #111827 !important;
    border: 1px solid rgba(15, 143, 134, 0.28) !important;
    border-radius: 14px 14px 0 0 !important;
    bottom: calc(140px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -12px 28px rgba(38, 52, 58, 0.18) !important;
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    position: sticky !important;
    z-index: 30 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-total span,
  body.invoice-page .cashier-cash-status-page .cashier-cash-status-total strong,
  body.invoice-page .cashier-cash-status-page .cashier-cash-status-total [data-match-state] {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-cash-status-total [data-match-state] {
    color: #a7f3d0 !important;
    font-weight: 950 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-form-actions {
    background: #111827 !important;
    border: 1px solid rgba(15, 143, 134, 0.28) !important;
    border-radius: 0 0 14px 14px !important;
    border-top: 0 !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 12px 28px rgba(38, 52, 58, 0.2) !important;
    margin: -12px 0 0 !important;
    padding: 0 14px 12px !important;
    position: sticky !important;
    z-index: 30 !important;
  }

  body.invoice-page .cashier-cash-status-page .cashier-form-actions .cash-out-submit-button {
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-status-page .financial-profit-statement {
    gap: 0 !important;
    overflow: hidden !important;
  }

  body.invoice-page .cashier-cash-status-page .financial-profit-statement div {
    gap: 10px !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    min-height: 50px !important;
    padding: 11px 12px !important;
  }

  body.invoice-page .cashier-cash-status-page .financial-profit-statement span,
  body.invoice-page .cashier-cash-status-page .financial-profit-statement b {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav {
    background: rgba(236, 246, 245, 0.94) !important;
    border-top-color: rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 -12px 34px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(18px) !important;
  }

  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav a,
  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav button {
    color: #64777f !important;
  }

  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav a.active,
  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav button.active,
  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav a:hover,
  body.invoice-page:has(.cashier-cash-status-page) .home-bottom-nav button:hover {
    color: #0d756e !important;
  }

  body.invoice-page:has(.cashier-cash-status-page) .bottom-chat-link em,
  body.invoice-page:has(.cashier-cash-status-page) .bottom-dashboard-badge,
  body.invoice-page:has(.cashier-cash-status-page) .bottom-notification-button em {
    background: #c9953a !important;
    border-color: #f8fbfa !important;
    color: #ffffff !important;
  }
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head {
  align-items: stretch !important;
  background: #f7fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.12) !important;
  border-radius: 14px !important;
  gap: 14px !important;
  padding: 14px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head > div:first-child {
  align-content: center !important;
  background: linear-gradient(90deg, rgba(232, 245, 243, 0.8), rgba(255, 255, 255, 0)) !important;
  border-radius: 12px !important;
  min-width: 190px !important;
  padding: 10px 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head strong,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head span {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-grid small {
  color: #60757b !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-actions {
  flex: 1 1 520px !important;
  justify-content: stretch !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form {
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.07) !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.3fr) auto !important;
  padding: 12px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form label {
  color: #3d5157 !important;
  font-size: 0.8rem !important;
  gap: 7px !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form select,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-mockup-upload input[type="file"] {
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 10px !important;
  color: #172126 !important;
  min-height: 44px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .custom-order-design-redesign-field,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .custom-order-design-mockup-upload {
  background: #f7fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 12px !important;
  color: #172126 !important;
  min-width: 0 !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-mockup-upload > span {
  color: #172126 !important;
  font-weight: 900 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .custom-order-design-mockup-upload small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .custom-order-design-redesign-field small {
  color: #60757b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-revision-hint {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.24) !important;
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .cashier-action-button {
  align-self: end !important;
  background: #dff1ef !important;
  border: 1px solid rgba(15, 143, 134, 0.26) !important;
  border-radius: 12px !important;
  color: #0b6862 !important;
  min-height: 46px !important;
  min-width: 136px !important;
  padding: 10px 18px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-grid section,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section {
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-detail {
  background: linear-gradient(135deg, #f3fbfa, #ffffff) !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  box-shadow: inset 3px 0 0 rgba(15, 143, 134, 0.7), 0 10px 22px rgba(38, 52, 58, 0.05) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section-head strong,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-grid b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section strong {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section-head small {
  color: #60757b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-meta span {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.12) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-meta b {
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-stock-summary.is-ready b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-item-stock .is-ready {
  color: #158a51 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-stock-summary.is-partial b {
  color: #9a6a00 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-stock-summary.is-empty b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-item-stock .is-empty {
  color: #b53b3b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-stock-summary em,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-items small {
  color: #60757b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-items article,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-history-item-list > div {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.12) !important;
  border-radius: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-items b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-history-item-list b {
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-items span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-history-item-list span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section p,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section span {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-section a {
  color: #0f8f86 !important;
  font-weight: 850 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-recap,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-note {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.12) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-order-note {
  background: #fffbeb !important;
  border-color: rgba(214, 158, 46, 0.2) !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-head {
    display: grid !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form {
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-status-form .cashier-action-button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Custom order sablon: light operational theme aligned with cash-out. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  box-shadow: 0 14px 34px rgba(38, 52, 58, 0.09) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a {
  background: #ffffff !important;
  border: 1px solid rgba(96, 117, 123, 0.18) !important;
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"] {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before {
  background: #0f8f86 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon {
  background: #fbfefe !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(38, 52, 58, 0.08) !important;
  color: #172126 !important;
  padding: 22px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .packing-panel-head {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 0 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .packing-panel-head::after {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .dashboard-kicker {
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  display: inline-flex !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  margin: 0 0 10px !important;
  padding: 4px 10px !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
  width: fit-content !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .packing-panel-head h2 {
  color: #172126 !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.06) !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(96, 117, 123, 0.16) !important;
  border-radius: 9px !important;
  color: #172126 !important;
  display: inline-flex !important;
  font-size: 0.94rem !important;
  font-weight: 900 !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a:focus-visible {
  background: #f3fbfa !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  color: #0f8f86 !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a.active {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.38) !important;
  color: #0f8f86 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-list {
  gap: 10px !important;
  padding-bottom: 116px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card {
  background: #ffffff !important;
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.07), rgba(255, 255, 255, 0) 26%) !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-left-color: rgba(15, 143, 134, 0.62) !important;
  border-radius: 14px !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 10px 24px rgba(38, 52, 58, 0.07) !important;
  clip-path: none !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card:hover {
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.1), rgba(255, 255, 255, 0) 30%) !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 14px 30px rgba(38, 52, 58, 0.1) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open] {
  background-image: linear-gradient(90deg, rgba(15, 143, 134, 0.12), rgba(255, 255, 255, 0) 34%) !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 16px 36px rgba(38, 52, 58, 0.12) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  color: #172126 !important;
  gap: 12px !important;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.2fr) minmax(150px, 0.7fr) minmax(90px, max-content) 34px !important;
  min-height: 58px !important;
  padding: 12px 14px 12px 18px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-code {
  color: #0f8f86 !important;
  font-size: 0.94rem !important;
  font-weight: 950 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-name {
  color: #172126 !important;
  font-size: 0.94rem !important;
  font-weight: 880 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer {
  align-items: center !important;
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  display: inline-flex !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  justify-self: start !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  text-shadow: none !important;
  width: fit-content !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer.is-partial,
body.invoice-page .custom-orders-page #custom-order-sablon .dashboard-status.is-partial {
  background: #fff6df !important;
  border-color: rgba(194, 129, 16, 0.22) !important;
  color: #9a6a00 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer.is-ready,
body.invoice-page .custom-orders-page #custom-order-sablon .dashboard-status.is-ready {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.22) !important;
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date {
  color: #60757b !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary::after {
  align-items: center !important;
  background: #edf6f5 !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  content: ">" !important;
  display: inline-flex !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
  height: 28px !important;
  justify-content: center !important;
  justify-self: end !important;
  position: static !important;
  transform: none !important;
  width: 28px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open] .custom-order-design-summary::after {
  transform: rotate(90deg) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
  background: #fbfefe !important;
  border-top: 1px solid rgba(15, 143, 134, 0.12) !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-head,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-section,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary span {
  background: #f8fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-head strong,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-head span,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-section strong,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-section b,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid b,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary b {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-head small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-section small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary small {
  color: #60757b !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .dashboard-status {
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  color: #0f8f86 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-entry-list span,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total span,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-history-item-list > div {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.12) !important;
  border-radius: 10px !important;
  color: #172126 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-entry-list em,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-history-item-list b {
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form label {
  color: #3d5157 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form input,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form select,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-form input,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-form select {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 10px !important;
  color: #172126 !important;
  min-height: 42px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form .cashier-action-button,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-actions button {
  background: #dff1ef !important;
  border: 1px solid rgba(15, 143, 134, 0.26) !important;
  border-radius: 12px !important;
  color: #0b6862 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.06) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-radius: 10px !important;
  color: #0f8f86 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-form label,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-form label span {
  color: #3d5157 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .cashier-history-pager {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 12px !important;
  color: #60757b !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page #custom-order-sablon {
    padding: 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 64px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-name,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date {
    grid-column: 1 / -1 !important;
  }
}

/* Custom order sablon local-view UX polish. */
body.invoice-page .custom-orders-page #custom-order-sablon {
  border-color: rgba(15, 143, 134, 0.14) !important;
  overflow: auto !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-head[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
  margin-top: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
  position: relative !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a.is-loading::after {
  background: currentColor !important;
  border-radius: 999px !important;
  bottom: 8px !important;
  content: "" !important;
  height: 3px !important;
  left: 50% !important;
  opacity: 0.55 !important;
  position: absolute !important;
  transform: translateX(-50%) !important;
  width: 28px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content {
  display: grid !important;
  gap: 10px !important;
  min-height: 360px !important;
  opacity: 1 !important;
  position: relative !important;
  transform: translateY(0) !important;
  transition: opacity 140ms ease, transform 140ms ease !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content.is-loading {
  opacity: 0.72 !important;
  pointer-events: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content.is-loading::after {
  align-items: center !important;
  background: rgba(251, 254, 254, 0.78) !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(38, 52, 58, 0.11) !important;
  color: #0f8f86 !important;
  content: "Memuat data..." !important;
  display: inline-flex !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  justify-content: center !important;
  left: 50% !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  position: absolute !important;
  top: 16px !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content.is-entering {
  opacity: 0.96 !important;
  transform: translateY(4px) !important;
}

/* Custom order sablon compact cash-out alignment pass. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs {
  border-color: rgba(15, 143, 134, 0.14) !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.07) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  padding: 6px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a,
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a,
body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs a {
  border-color: rgba(96, 117, 123, 0.16) !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon {
  border-color: rgba(15, 143, 134, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(38, 52, 58, 0.07) !important;
  padding: 18px 20px 20px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon::-webkit-scrollbar {
  width: 9px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.34) !important;
  border: 2px solid rgba(251, 254, 254, 0.92) !important;
  border-radius: 999px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
  border-color: rgba(15, 143, 134, 0.14) !important;
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.045) !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 6px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
  border-color: rgba(96, 117, 123, 0.14) !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a.active {
  background: #e8f5f3 !important;
  border-color: rgba(15, 143, 134, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 134, 0.05) !important;
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content {
  gap: 10px !important;
  min-height: 320px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 143, 134, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.045) !important;
  margin: 0 !important;
  min-height: 56px !important;
  padding: 6px 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel:not([open]) {
  display: flex !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel[open] {
  display: grid !important;
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
  border-color: rgba(15, 143, 134, 0.22) !important;
  box-shadow: none !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  width: fit-content !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle b {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  display: inline-flex !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-form {
  gap: 8px !important;
  margin-top: 2px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-actions {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
  gap: 10px !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary span {
  min-height: 68px !important;
  padding: 12px 14px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary small {
  font-size: 0.82rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary b {
  font-size: 1.02rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-list {
  gap: 9px !important;
  padding-bottom: 128px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card {
  border-color: rgba(15, 143, 134, 0.14) !important;
  border-left-color: rgba(15, 143, 134, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 8px 18px rgba(38, 52, 58, 0.055) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card:hover {
  box-shadow: inset 4px 0 0 #0f8f86, 0 12px 24px rgba(38, 52, 58, 0.08) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.2fr) minmax(120px, 0.55fr) minmax(88px, max-content) 32px !important;
  min-height: 52px !important;
  padding: 9px 12px 9px 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-code,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-name {
  font-size: 0.9rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer {
  font-size: 0.76rem !important;
  min-height: 24px !important;
  padding: 3px 9px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date {
  font-size: 0.8rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary::after {
  background-color: #edf6f5 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f8f86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 15px 15px !important;
  content: "" !important;
  height: 26px !important;
  width: 26px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open] .custom-order-design-summary::after {
  transform: rotate(90deg) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
  padding: 10px 14px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
  border-color: rgba(15, 143, 134, 0.13) !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid small {
  font-size: 0.8rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid b {
  font-size: 0.92rem !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs,
  body.invoice-page .custom-orders-page:has([id^="sablon-"]:target) > .custom-order-tabs {
    gap: 6px !important;
    padding: 6px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon {
    padding: 12px 12px 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 5px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
    grid-template-columns: minmax(0, 1fr) 30px !important;
    min-height: 58px !important;
    padding: 9px 10px 9px 16px !important;
  }
}

/* Custom order sablon dense live visibility final override. */
body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head {
  align-items: center !important;
  min-height: 96px !important;
  padding: 18px 24px !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) .custom-order-page-title,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] .custom-order-page-title {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem) !important;
  line-height: 1.08 !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs,
body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs {
  margin-bottom: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon {
  min-height: 0 !important;
  padding: 12px 16px 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
  border-radius: 8px !important;
  font-size: 0.86rem !important;
  min-height: 34px !important;
  padding: 5px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content {
  gap: 8px !important;
  min-height: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel:not([open]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 40px !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
  background: #e8f5f3 !important;
  min-height: 38px !important;
  padding: 0 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-panel[open] {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(38, 52, 58, 0.08) !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary span {
  min-height: 56px !important;
  padding: 9px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary small {
  font-size: 0.76rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary b {
  font-size: 0.94rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-list {
  gap: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
  min-height: 46px !important;
  padding: 7px 10px 7px 16px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
  padding: 8px 12px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
  gap: 6px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
  min-height: 50px !important;
  padding: 8px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid small {
  font-size: 0.74rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid b {
  font-size: 0.86rem !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head {
    min-height: 82px !important;
    padding: 14px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon {
    padding: 10px 12px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 580px) {
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary {
    grid-template-columns: 1fr !important;
  }
}
/* Customer chat: share the calm cash-out workspace palette and component language. */
body.inbox-page,
body.chat-page,
body.chat-panel-embed {
  --chat-page-background: #eff4f3;
  --chat-surface-primary: rgba(255, 255, 255, 0.96);
  --chat-surface-secondary: rgba(246, 249, 249, 0.98);
  --chat-text-primary: #172126;
  --chat-text-secondary: #66777f;
  --chat-border: rgba(134, 151, 158, 0.22);
  --chat-accent: #0f8f86;
  --chat-accent-dark: #0d756e;
  --chat-accent-soft: #e8f5f3;
  --chat-warning: #b98826;
  --chat-danger: #b4233f;
  --chat-success: #0f8f86;
  background: var(--chat-page-background) !important;
  color: var(--chat-text-primary);
}

body.inbox-page::before,
body.chat-page::before,
body.chat-panel-embed::before {
  animation: none !important;
  background: none !important;
  content: none !important;
  opacity: 0 !important;
}

body.inbox-page .wa-inbox,
body.chat-page .chat-layout,
body.chat-panel-embed .chat-layout {
  animation: none !important;
  background: var(--chat-surface-primary) !important;
  border: 1px solid var(--chat-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
  transform: none !important;
}

body.inbox-page .wa-inbox-head,
body.chat-page .chat-head,
body.chat-panel-embed .chat-head {
  background: var(--chat-surface-primary) !important;
  border-bottom: 1px solid var(--chat-border) !important;
}

body.chat-page .chat-head h1,
body.chat-page .contact-title,
body.chat-panel-embed .chat-head h1,
body.chat-panel-embed .contact-title {
  color: var(--chat-text-primary) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.inbox-page .icon-button,
body.chat-page .chat-search-trigger,
body.chat-page .chat-search-nav,
body.chat-page .chat-search-close,
body.chat-page .chat-action-menu-trigger,
body.chat-page .chat-action-menu summary,
body.chat-page .back-link,
body.chat-panel-embed .chat-search-trigger,
body.chat-panel-embed .chat-search-nav,
body.chat-panel-embed .chat-search-close,
body.chat-panel-embed .chat-action-menu-trigger,
body.chat-panel-embed .chat-action-menu summary,
body.chat-panel-embed .back-link {
  background: #f7faf9 !important;
  border: 1px solid rgba(134, 151, 158, 0.28) !important;
  box-shadow: 0 8px 18px rgba(38, 52, 58, 0.07) !important;
  color: var(--chat-text-primary) !important;
}

body.inbox-page .icon-button:hover,
body.inbox-page .icon-button:focus-visible,
body.inbox-page .icon-button.primary,
body.inbox-page .icon-button.is-active,
body.chat-page .chat-search-trigger:hover,
body.chat-page .chat-search-trigger:focus-visible,
body.chat-page .chat-action-menu summary:hover,
body.chat-page .chat-action-menu summary:focus-visible,
body.chat-panel-embed .chat-search-trigger:hover,
body.chat-panel-embed .chat-search-trigger:focus-visible,
body.chat-panel-embed .chat-action-menu summary:hover,
body.chat-panel-embed .chat-action-menu summary:focus-visible {
  background: var(--chat-accent-soft) !important;
  border-color: rgba(15, 143, 134, 0.38) !important;
  color: var(--chat-accent-dark) !important;
}

body.inbox-page .toolbar-count-badge,
body.inbox-page .chat-filters span,
body.inbox-page .unread-total-badge,
body.inbox-page .customer-followup-mark,
body.inbox-page .followup-mark {
  background: var(--chat-accent) !important;
  border-color: #f8fbfa !important;
  color: #fff !important;
}

body.inbox-page .inbox-tool-panel,
body.inbox-page .label-dropdown-panel,
body.inbox-page .chat-filters,
body.inbox-page .reply-performance {
  background: var(--chat-surface-secondary) !important;
  border-color: var(--chat-border) !important;
  color: var(--chat-text-primary) !important;
}

body.inbox-page .inbox-tool-panel > span,
body.inbox-page .reply-performance summary span,
body.inbox-page .reply-performance li span {
  color: var(--chat-accent-dark) !important;
}

body.inbox-page .reply-performance .reply-performance-activity {
  color: #27383e !important;
}

body.inbox-page .reply-performance .reply-performance-seen {
  color: #52666e !important;
}

body.inbox-page .reply-performance summary strong,
body.inbox-page .reply-performance li strong {
  color: var(--chat-text-primary) !important;
}

body.inbox-page .inbox-tool-panel > a,
body.inbox-page .label-dropdown-list a,
body.inbox-page .chat-filters a {
  background: #fff !important;
  border: 1px solid var(--chat-border) !important;
  border-radius: 14px !important;
  clip-path: none !important;
  color: var(--chat-text-primary) !important;
}

body.inbox-page .inbox-tool-panel > a.selected,
body.inbox-page .label-dropdown-list a.active,
body.inbox-page .chat-filters a.active,
body.inbox-page .chat-filters a:hover,
body.inbox-page .chat-filters a:focus-visible {
  background: var(--chat-accent-soft) !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  box-shadow: 0 8px 20px rgba(15, 143, 134, 0.1) !important;
  color: var(--chat-accent-dark) !important;
}

body.inbox-page .inbox-search-form input,
body.inbox-page .label-search-field,
body.chat-page .reply textarea,
body.chat-panel-embed .reply textarea {
  background: #f7faf9 !important;
  border: 1px solid rgba(134, 151, 158, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgba(38, 52, 58, 0.04) !important;
  color: var(--chat-text-primary) !important;
}

body.inbox-page .inbox-search-form input:focus,
body.inbox-page .label-search-field:focus-within,
body.chat-page .reply textarea:focus,
body.chat-panel-embed .reply textarea:focus {
  border-color: rgba(15, 143, 134, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.14) !important;
}

body.inbox-page .wa-chat-list,
body.chat-page .thread,
body.chat-panel-embed .thread {
  background: var(--chat-surface-secondary) !important;
  backdrop-filter: none !important;
}

body.inbox-page .wa-chat-row {
  background: #fff !important;
  border-left: 4px solid transparent !important;
}

body.inbox-page .wa-chat-row:hover,
body.inbox-page .wa-chat-row:focus-visible {
  background: #f3faf9 !important;
  border-left-color: var(--chat-accent) !important;
  box-shadow: none !important;
}

body.inbox-page .wa-chat-row.unanswered {
  background: #fff7f8 !important;
  border-left-color: var(--chat-danger) !important;
}

body.inbox-page .wa-chat-row.has-followup,
body.inbox-page .wa-chat-row.has-customer-followup {
  background: #f3faf9 !important;
  border-left-color: var(--chat-accent) !important;
  box-shadow: none !important;
}

body.inbox-page .wa-chat-row + .wa-chat-row .wa-chat-main {
  border-color: var(--chat-border) !important;
}

body.inbox-page .wa-avatar,
body.chat-page .avatar,
body.chat-panel-embed .avatar {
  background: var(--chat-accent-soft) !important;
  border: 2px solid rgba(15, 143, 134, 0.3) !important;
  box-shadow: 0 8px 20px rgba(15, 143, 134, 0.12) !important;
  color: var(--chat-accent-dark) !important;
}

body.inbox-page .wa-chat-top strong {
  color: var(--chat-text-primary) !important;
}

body.inbox-page .wa-chat-top time,
body.inbox-page .wa-chat-bottom p {
  color: var(--chat-text-secondary) !important;
}

body.inbox-page .wa-chat-row.unanswered .wa-chat-top strong,
body.inbox-page .wa-chat-row.unanswered .wa-chat-top time {
  color: var(--chat-danger) !important;
}

body.inbox-page .contact-label-badge,
body.chat-page .contact-label-badge,
body.chat-panel-embed .contact-label-badge {
  background: var(--chat-accent-soft) !important;
  border-color: rgba(15, 143, 134, 0.22) !important;
  color: var(--chat-accent-dark) !important;
}

body.chat-page .bubble.inbound,
body.chat-panel-embed .bubble.inbound {
  background: #fff !important;
  border-color: var(--chat-border) !important;
  box-shadow: 0 8px 22px rgba(38, 52, 58, 0.08) !important;
  color: var(--chat-text-primary) !important;
}

body.chat-page .bubble.outbound,
body.chat-panel-embed .bubble.outbound {
  background: var(--chat-accent) !important;
  border-color: var(--chat-accent) !important;
  box-shadow: 0 10px 24px rgba(15, 143, 134, 0.16) !important;
  color: #fff !important;
}

body.chat-page .bubble.outbound small,
body.chat-page .bubble.outbound .bubble-time,
body.chat-page .bubble.outbound .message-meta,
body.chat-panel-embed .bubble.outbound small,
body.chat-panel-embed .bubble.outbound .bubble-time,
body.chat-panel-embed .bubble.outbound .message-meta {
  color: rgba(255, 255, 255, 0.76) !important;
}

body.chat-page .reply,
body.chat-panel-embed .reply {
  background: #fff !important;
  border-top: 1px solid var(--chat-border) !important;
}

body.chat-page .chat-analysis-trigger,
body.chat-page .ai-icon-button,
body.chat-page .reply-foot button,
body.chat-panel-embed .chat-analysis-trigger,
body.chat-panel-embed .ai-icon-button,
body.chat-panel-embed .reply-foot button {
  background: var(--chat-accent) !important;
  border-color: var(--chat-accent) !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.16) !important;
  color: #fff !important;
}

body.chat-page .attach-button,
body.chat-page .sticker-mode-button,
body.chat-panel-embed .attach-button,
body.chat-panel-embed .sticker-mode-button {
  background: #f7faf9 !important;
  border-color: rgba(134, 151, 158, 0.28) !important;
  color: var(--chat-text-primary) !important;
}

body.inbox-page .home-bottom-nav,
body.chat-page .home-bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top-color: var(--chat-border) !important;
  box-shadow: 0 -10px 28px rgba(38, 52, 58, 0.08) !important;
}

body.inbox-page .home-bottom-nav a,
body.inbox-page .home-bottom-nav button,
body.chat-page .home-bottom-nav a,
body.chat-page .home-bottom-nav button {
  color: var(--chat-text-secondary) !important;
}

body.inbox-page .home-bottom-nav .active,
body.chat-page .home-bottom-nav .active {
  color: var(--chat-accent) !important;
}

/* Custom order sablon history interaction and mobile navigation final pass. */
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 42px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-toolbar .custom-order-sablon-filter-panel {
  margin: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-count {
  align-items: center;
  background: #f4fbfa;
  border: 1px solid rgba(15, 143, 134, 0.16);
  border-radius: 999px;
  color: #0d756e;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  min-height: 30px;
  padding: 4px 10px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card > .custom-order-design-summary {
  cursor: pointer;
  list-style: none;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card > .custom-order-design-summary::-webkit-details-marker {
  display: none;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] {
  background: #fbfefe !important;
  box-shadow: inset 4px 0 0 #0f8f86, 0 14px 26px rgba(38, 52, 58, 0.1) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] > .custom-order-design-summary {
  background: #e8f5f3 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 4px;
  padding: 8px 0 112px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager > span {
  color: #60757b;
  font-size: 0.76rem;
  font-weight: 800;
  margin-right: auto;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-page-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.2);
  border-radius: 9px;
  color: #0d756e;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 40px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-page-icon:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-page-icon:focus-visible {
  background: #e8f5f3;
  border-color: rgba(15, 143, 134, 0.42);
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-page-icon.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager form {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin: 0;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager label,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager small {
  color: #60757b;
  font-size: 0.76rem;
  font-weight: 800;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager input {
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.2);
  border-radius: 8px;
  color: #172126;
  font-weight: 850;
  height: 40px;
  margin-left: 4px;
  padding: 0 6px;
  text-align: center;
  width: 46px;
}

@media (max-width: 560px) {
  body.invoice-page.custom-orders-route .home-bottom-nav {
    background: rgba(236, 246, 245, 0.96) !important;
    border-top: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 -10px 26px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
    min-height: 68px !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav a,
  body.invoice-page.custom-orders-route .home-bottom-nav button {
    color: #60757b !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav a.active,
  body.invoice-page.custom-orders-route .home-bottom-nav button.active {
    color: #0d756e !important;
  }

  body.invoice-page.custom-orders-route .bottom-chat-link em,
  body.invoice-page.custom-orders-route .bottom-dashboard-badge,
  body.invoice-page.custom-orders-route .bottom-notification-button em {
    background: #0f8f86 !important;
    border-color: #fbfefe !important;
    color: #ffffff !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager > span {
    flex-basis: 100%;
    margin: 0;
    text-align: center;
  }
}

/* Customer chat light panel final override. */
body.chat-page { background: #eef7f7 !important; }

body.chat-page .chat-layout {
  background: #fbfefe !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  box-shadow: -14px 0 32px rgba(15, 143, 134, 0.07), 0 18px 42px rgba(38, 52, 58, 0.1) !important;
  color: #172126 !important;
}

body.chat-page .chat-head {
  background: #e8f5f3 !important;
  border-bottom: 1px solid rgba(15, 143, 134, 0.18) !important;
  color: #172126 !important;
}

body.chat-page .chat-head h1,
body.chat-page .contact-title { color: #172126 !important; letter-spacing: 0 !important; text-shadow: none !important; text-transform: none !important; }
body.chat-page .chat-head p,
body.chat-page .contact-subtitle,
body.chat-page .chat-action-menu span { color: #60757b !important; }

body.chat-page .back-link,
body.chat-page .chat-search-trigger,
body.chat-page .chat-search-nav,
body.chat-page .chat-search-close,
body.chat-page .chat-action-menu-trigger,
body.chat-page .chat-action-menu summary {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  color: #172126 !important;
}

body.chat-page .back-link:hover,
body.chat-page .back-link:focus-visible,
body.chat-page .chat-search-trigger:hover,
body.chat-page .chat-search-trigger:focus-visible,
body.chat-page .chat-search-nav:hover,
body.chat-page .chat-search-nav:focus-visible,
body.chat-page .chat-search-close:hover,
body.chat-page .chat-search-close:focus-visible,
body.chat-page .chat-action-menu-trigger:hover,
body.chat-page .chat-action-menu-trigger:focus-visible,
body.chat-page .chat-action-menu summary:hover,
body.chat-page .chat-action-menu summary:focus-visible { background: #e8f5f3 !important; border-color: rgba(15, 143, 134, 0.42) !important; color: #0d756e !important; }

body.chat-page .chat-analysis-trigger,
body.chat-page .ai-icon-button,
body.chat-page .reply-foot button { background: #0f8f86 !important; border-color: #0f8f86 !important; color: #ffffff !important; }
body.chat-page .avatar { background: #e8f5f3 !important; border-color: rgba(15, 143, 134, 0.38) !important; box-shadow: none !important; color: #0d756e !important; }
body.chat-page .contact-language-badge { background: #eff9f1 !important; border-color: rgba(54, 142, 82, 0.22) !important; color: #237247 !important; }

body.chat-page .chat-pin-stack .chat-followup-pin,
body.chat-page .chat-pin-stack .chat-customer-followup-pin,
body.chat-page .chat-followup-pin,
body.chat-page .chat-customer-followup-pin { background: #fff6df !important; border-color: rgba(183, 125, 0, 0.24) !important; color: #725300 !important; }
body.chat-page .chat-followup-pin span,
body.chat-page .chat-customer-followup-pin span,
body.chat-page .chat-followup-pin p,
body.chat-page .chat-customer-followup-pin p { color: #725300 !important; }
body.chat-page .chat-followup-pin small,
body.chat-page .chat-customer-followup-pin small { color: #8d6b21 !important; }
body.chat-page .chat-followup-pin button,
body.chat-page .chat-customer-followup-pin button { background: #ffffff !important; border-color: rgba(183, 125, 0, 0.28) !important; color: #725300 !important; }

body.chat-page .thread { background: #f4f8f8 !important; border: 0 !important; }
body.chat-page .bubble.inbound { background: #ffffff !important; border-color: rgba(15, 143, 134, 0.14) !important; box-shadow: 0 8px 18px rgba(38, 52, 58, 0.07) !important; color: #172126 !important; }
body.chat-page .bubble.outbound { background: #0f8f86 !important; border-color: #0f8f86 !important; box-shadow: 0 8px 18px rgba(15, 143, 134, 0.16) !important; color: #ffffff !important; }
body.chat-page .bubble.outbound small,
body.chat-page .bubble.outbound .bubble-time,
body.chat-page .bubble.outbound .message-meta { color: rgba(255, 255, 255, 0.76) !important; }
body.chat-page .quoted-message { background: #f8fbfb !important; border-left-color: #d5a12d !important; color: #60757b !important; }

body.chat-page .reply { background: #ffffff !important; border-top: 1px solid rgba(15, 143, 134, 0.18) !important; }
body.chat-page .reply textarea { background: #ffffff !important; border-color: rgba(15, 143, 134, 0.22) !important; color: #172126 !important; }
body.chat-page .reply textarea::placeholder { color: #809298 !important; }
body.chat-page .attach-button,
body.chat-page .sticker-mode-button { background: #ffffff !important; border-color: rgba(15, 143, 134, 0.2) !important; color: #172126 !important; }
/* Final mobile scroll guard: overrides older fixed-height custom-order skins. */
@media (max-width: 720px) {
  html,
  body.invoice-page.custom-orders-route {
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page.custom-orders-route .shell {
    height: auto !important;
    min-height: calc(100dvh - 76px) !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page,
  body.invoice-page .custom-orders-page > .cashier-workspace,
  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view].is-active,
  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view]:target,
  body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) #custom-order-input,
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page {
    min-height: calc(100dvh - 76px) !important;
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page .custom-order-tabs a {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page .custom-order-design-pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  body.invoice-page.custom-orders-route .home-bottom-nav {
    min-height: 72px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}
/* Final mobile sticky hierarchy for the custom-orders page. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    --custom-order-sticky-title-height: 106px;
    scroll-padding-top: calc(220px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 8px 18px rgba(38, 52, 58, 0.08) !important;
    position: sticky !important;
    top: env(safe-area-inset-top) !important;
    z-index: 30 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    background: #f8fbfb !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 10px 18px rgba(38, 52, 58, 0.07) !important;
    position: sticky !important;
    top: calc(var(--custom-order-sticky-title-height) + env(safe-area-inset-top)) !important;
    z-index: 29 !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    scroll-margin-top: calc(220px + env(safe-area-inset-top)) !important;
  }
}
/* Compact the sticky stack so it never leaves a dead band above the stage tabs. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    --custom-order-sticky-title-height: 88px;
    gap: 8px !important;
    scroll-padding-top: calc(188px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    margin: 0 !important;
    min-height: 88px !important;
    padding-block: 16px !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    margin: 0 !important;
    top: calc(88px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    margin-top: 0 !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    scroll-margin-top: calc(188px + env(safe-area-inset-top)) !important;
  }
}
/* Final compact sticky offsets for custom orders on phones. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    --custom-order-sticky-title-height: 88px;
    gap: 8px !important;
    scroll-padding-top: calc(188px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    margin: 0 !important;
    min-height: 88px !important;
    padding-block: 16px !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs {
    margin: 0 !important;
    top: calc(88px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace {
    margin-top: 0 !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    scroll-margin-top: calc(188px + env(safe-area-inset-top)) !important;
  }
}
/* One sticky mobile stack prevents the title and stage tabs from drifting apart. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    gap: 8px !important;
    scroll-padding-top: calc(248px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-mobile-sticky-stack {
    background: #eef7f7 !important;
    display: grid !important;
    gap: 8px !important;
    padding: 0 0 2px !important;
    position: sticky !important;
    top: env(safe-area-inset-top) !important;
    width: 100% !important;
    z-index: 40 !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack > .invoice-builder-head {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 8px 18px rgba(38, 52, 58, 0.08) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 88px !important;
    padding: 16px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack > .custom-order-tabs {
    background: #f8fbfb !important;
    border: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 10px 18px rgba(38, 52, 58, 0.07) !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    padding: 6px !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack + .custom-order-design-tabs,
  body.invoice-page .custom-order-mobile-sticky-stack ~ .cashier-workspace {
    scroll-margin-top: calc(248px + env(safe-area-inset-top)) !important;
  }
}
/* Final mobile sticky stack: title and tabs share one scroll anchor. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page {
    gap: 8px !important;
    scroll-padding-top: calc(248px + env(safe-area-inset-top)) !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-mobile-sticky-stack {
    background: #eef7f7 !important;
    display: grid !important;
    gap: 8px !important;
    padding: 0 0 2px !important;
    position: sticky !important;
    top: env(safe-area-inset-top) !important;
    width: 100% !important;
    z-index: 40 !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack > .invoice-builder-head {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 8px 18px rgba(38, 52, 58, 0.08) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 88px !important;
    padding: 16px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack > .custom-order-tabs {
    background: #f8fbfb !important;
    border: 1px solid rgba(15, 143, 134, 0.16) !important;
    box-shadow: 0 10px 18px rgba(38, 52, 58, 0.07) !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    padding: 6px !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  body.invoice-page .custom-order-mobile-sticky-stack + .custom-order-design-tabs,
  body.invoice-page .custom-order-mobile-sticky-stack ~ .cashier-workspace {
    scroll-margin-top: calc(248px + env(safe-area-inset-top)) !important;
  }
}
/* Design statuses are first-class subtabs; the old toolbar modal is no longer used. */
body.invoice-page .custom-orders-page > .custom-order-design-tabs[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs:not([hidden]) {
  display: grid !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-pagination {
  justify-content: flex-end !important;
}

/* Keep the design status subtabs centered across block and grid page layouts. */
@media (min-width: 981px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs:not([hidden]) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Design view uses the page scrollbar so its subtabs scroll away with the list. */
@media (min-width: 721px) {
  html[data-custom-order-view="design"],
  body.invoice-page.custom-orders-route[data-custom-order-view="design"] {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
  }

  body.invoice-page.custom-orders-route[data-custom-order-view="design"] .shell,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"],
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .invoice-builder-head {
    box-sizing: border-box !important;
    height: 104px !important;
    min-height: 104px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 32 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-tabs {
    position: sticky !important;
    top: 114px !important;
    z-index: 31 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs:not([hidden]) {
    left: 50% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: min(560px, calc(100vw - 36px)) !important;
    position: relative !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: min(560px, calc(100vw - 36px)) !important;
    z-index: auto !important;
  }
}

/* Desktop design stack: pin only the page header and main tabs to the viewport. */
@media (min-width: 721px) {
  body.invoice-page.custom-orders-route[data-custom-order-view="design"] > .shell {
    animation: none !important;
    transform: none !important;
  }

  body.invoice-page .custom-orders-page:is(
    [data-active-custom-order-view="design"],
    :has(#custom-order-design:target),
    :has(#custom-order-design.is-active)
  ) {
    padding-top: 200px !important;
  }

  body.invoice-page .custom-orders-page:is(
    [data-active-custom-order-view="design"],
    :has(#custom-order-design:target),
    :has(#custom-order-design.is-active)
  )::before {
    background: #eef7f7 !important;
    content: "" !important;
    display: block !important;
    height: 200px !important;
    inset: 0 0 auto !important;
    pointer-events: none !important;
    position: fixed !important;
    z-index: 60 !important;
  }

  body.invoice-page .custom-orders-page:is(
    [data-active-custom-order-view="design"],
    :has(#custom-order-design:target),
    :has(#custom-order-design.is-active)
  ) > .invoice-builder-head {
    box-sizing: border-box !important;
    height: 104px !important;
    left: 50% !important;
    margin: 0 !important;
    max-width: min(1180px, calc(100vw - 36px)) !important;
    min-height: 104px !important;
    position: fixed !important;
    top: 16px !important;
    transform: translateX(-50%) !important;
    width: min(1180px, calc(100vw - 36px)) !important;
    z-index: 62 !important;
  }

  body.invoice-page .custom-orders-page:is(
    [data-active-custom-order-view="design"],
    :has(#custom-order-design:target),
    :has(#custom-order-design.is-active)
  ) > .custom-order-tabs {
    left: 50% !important;
    margin: 0 !important;
    max-width: min(1180px, calc(100vw - 36px)) !important;
    position: fixed !important;
    top: 130px !important;
    transform: translateX(-50%) !important;
    width: min(1180px, calc(100vw - 36px)) !important;
    z-index: 61 !important;
  }

  body.invoice-page .custom-orders-page:is(
    [data-active-custom-order-view="design"],
    :has(#custom-order-design:target),
    :has(#custom-order-design.is-active)
  ) > .custom-order-design-tabs:not([hidden]) {
    display: grid !important;
    left: auto !important;
    margin: 0 auto 10px !important;
    max-width: min(560px, calc(100vw - 36px)) !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: min(560px, calc(100vw - 36px)) !important;
    z-index: auto !important;
  }
}

/* Pickup queue: calm cash-out surface, one page scroll and high-contrast handover forms. */
body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .invoice-builder-head,
body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .invoice-builder-head {
  min-height: 84px !important;
  padding: 14px 22px !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) .custom-order-page-title,
body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] .custom-order-page-title {
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  line-height: 1 !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs,
body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .custom-order-tabs {
  gap: 6px !important;
  margin-bottom: 10px !important;
  padding: 5px !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a,
body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .custom-order-tabs a {
  min-height: 42px !important;
  padding: 7px 10px !important;
}

body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .cashier-workspace,
body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .cashier-workspace {
  overflow: visible !important;
  transform: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup {
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 14px 0 calc(112px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head {
  background: transparent !important;
  border-bottom: 2px solid rgba(15, 143, 134, 0.22) !important;
  box-shadow: none !important;
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head h2,
body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head h2::before {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head h2::before {
  color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-list {
  gap: 14px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.22) !important;
  border-left: 4px solid #0f8f86 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.08) !important;
  color: #172126 !important;
  padding: 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card > div {
  display: grid;
  gap: 4px;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card strong {
  color: #0d756e !important;
  font-size: 1.03rem !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card small,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card p {
  color: #66777f !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card p {
  color: #425158 !important;
  font-weight: 750 !important;
  margin: 12px 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form {
  background: #f4fbfa !important;
  border: 1px solid rgba(15, 143, 134, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  gap: 14px !important;
  padding: 14px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form label {
  color: #425158 !important;
  font-weight: 800 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form input,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form select {
  background: #ffffff !important;
  border: 1px solid rgba(134, 151, 158, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #172126 !important;
  min-height: 54px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form input:focus,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form select:focus {
  border-color: rgba(15, 143, 134, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.14) !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form .cashier-form-actions {
  margin: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form .invoice-print-button {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 20px rgba(15, 143, 134, 0.16) !important;
  color: #ffffff !important;
  min-height: 52px !important;
}

body.invoice-page.custom-orders-route .home-bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 1px solid rgba(15, 143, 134, 0.16) !important;
  box-shadow: 0 -10px 26px rgba(38, 52, 58, 0.08) !important;
}

body.invoice-page.custom-orders-route .home-bottom-nav a,
body.invoice-page.custom-orders-route .home-bottom-nav button {
  color: #60757b !important;
}

body.invoice-page.custom-orders-route .home-bottom-nav a.active,
body.invoice-page.custom-orders-route .home-bottom-nav button.active {
  color: #0f8f86 !important;
}

/* Design queue viewport: navigation stays put; only the order cards scroll. */
html[data-custom-order-view="design"],
body.invoice-page.custom-orders-route[data-custom-order-view="design"] {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.invoice-page.custom-orders-route[data-custom-order-view="design"] .shell {
  box-sizing: border-box !important;
  height: calc(100dvh - 68px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: calc(100dvh - 68px) !important;
  max-height: calc(100dvh - 68px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs:not([hidden]) {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace {
  grid-column: 1 / -1 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  padding-bottom: 18px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-pagination,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-sablon-filter-panel,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .cashier-history-pager {
  flex-shrink: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-sablon-history-list {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 6px 18px 0 !important;
  scrollbar-color: rgba(15, 143, 134, 0.42) rgba(238, 247, 247, 0.9) !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list::-webkit-scrollbar,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-sablon-history-list::-webkit-scrollbar {
  width: 9px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list::-webkit-scrollbar-thumb,
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-sablon-history-list::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.42) !important;
  border: 2px solid #eef7f7 !important;
  border-radius: 999px !important;
}

@media (max-width: 720px) {
  body.invoice-page.custom-orders-route[data-custom-order-view="design"] .shell {
    padding-bottom: 0 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
    display: grid !important;
    gap: 8px !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    padding-bottom: 8px !important;
    padding-top: 8px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-mobile-sticky-stack {
    position: static !important;
    top: auto !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .custom-order-design-tabs:not([hidden]) {
    margin-bottom: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
    padding: 10px !important;
  }
}

/* Design queue footer: pagination scrolls after the last card. */
body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list > .custom-order-design-pagination {
  align-self: auto !important;
  grid-column: 1 / -1 !important;
  justify-content: flex-end !important;
  margin: 10px 0 0 !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list > .custom-order-design-pagination::after {
  display: none !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list > .custom-order-design-pagination {
    justify-content: center !important;
  }
}

/* Design card detail modal. */
body.custom-order-design-modal-open {
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal {
  align-items: center !important;
  background: rgba(13, 28, 32, 0.58) !important;
  backdrop-filter: blur(8px) !important;
  border: 0 !important;
  display: grid !important;
  height: 100dvh !important;
  inset: 0 !important;
  justify-items: center !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: 24px !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 240 !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal::backdrop {
  background: transparent !important;
}

/* Custom order lifecycle status derived from real workflow activity. */
body.invoice-page .custom-orders-page .custom-order-progress-badge {
  align-items: center !important;
  background: rgba(15, 143, 134, 0.1) !important;
  border: 1px solid rgba(15, 143, 134, 0.24) !important;
  border-radius: 999px !important;
  color: #087d75 !important;
  display: inline-flex !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  padding: 7px 11px !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-complete {
  background: rgba(25, 135, 84, 0.12) !important;
  border-color: rgba(25, 135, 84, 0.26) !important;
  color: #137044 !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-cancelled {
  background: rgba(196, 55, 55, 0.1) !important;
  border-color: rgba(196, 55, 55, 0.24) !important;
  color: #b93232 !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-sewing {
  background: #eaf8f6 !important;
  border-color: #8bcfc8 !important;
  color: #087d75 !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-sewing.is-pending,
body.invoice-page .custom-orders-page .custom-order-progress-badge.is-sewing.is-purchase {
  background: #fff8e7 !important;
  border-color: #e3c364 !important;
  color: #79570b !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-sewing.is-process {
  background: #eaf3ff !important;
  border-color: #93bce8 !important;
  color: #2467a8 !important;
}

body.invoice-page .custom-orders-page .custom-order-progress-badge.is-sewing.is-sent {
  background: #eaf8f0 !important;
  border-color: #91d0aa !important;
  color: #176c43 !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle {
  background: #f7fbfb !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 16px !important;
  margin-top: 14px !important;
  padding: 16px !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle-head {
  align-items: center !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle-head strong,
body.invoice-page .custom-orders-page .custom-order-lifecycle-head span {
  color: #172126 !important;
  font-weight: 900 !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle-track {
  background: #dcebea !important;
  border-radius: 999px !important;
  height: 7px !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle-track i {
  background: linear-gradient(90deg, #12a79c, #087d75) !important;
  border-radius: inherit !important;
  display: block !important;
  height: 100% !important;
  width: var(--custom-order-progress) !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle ol {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  list-style: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle li {
  align-items: center !important;
  color: #7c8c91 !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  gap: 6px !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle li i {
  background: #d4e5e4 !important;
  border: 3px solid #f7fbfb !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 1px #c7dcda !important;
  height: 14px !important;
  width: 14px !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle li.is-done,
body.invoice-page .custom-orders-page .custom-order-lifecycle li.is-active {
  color: #087d75 !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle li.is-done i,
body.invoice-page .custom-orders-page .custom-order-lifecycle li.is-active i {
  background: #0f8f86 !important;
  box-shadow: 0 0 0 1px #0f8f86 !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle li.is-active i {
  box-shadow: 0 0 0 1px #0f8f86, 0 0 0 5px rgba(15, 143, 134, 0.12) !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle > p {
  color: #587077 !important;
  font-size: 0.78rem !important;
  margin: 12px 0 0 !important;
  text-align: center !important;
}

body.invoice-page .custom-orders-page .custom-order-lifecycle.is-cancelled .custom-order-lifecycle-track i {
  background: #c43737 !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page .custom-order-lifecycle ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    row-gap: 12px !important;
  }
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 80px rgba(20, 45, 50, 0.26) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  max-height: min(860px, calc(100dvh - 48px)) !important;
  max-width: min(1180px, calc(100vw - 48px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-header {
  align-items: center !important;
  background: #f3fbfa !important;
  border-bottom: 1px solid rgba(15, 143, 134, 0.16) !important;
  display: flex !important;
  gap: 16px !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-header strong {
  color: #172126 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-header button {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 999px !important;
  color: #0f8f86 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 1.45rem !important;
  height: 40px !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 40px !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-body {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 18px !important;
  scrollbar-color: rgba(15, 143, 134, 0.42) #eef7f7 !important;
  scrollbar-gutter: stable !important;
}

body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-body > .custom-order-design-detail {
  border: 0 !important;
  display: grid !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: static !important;
  visibility: visible !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal {
    align-items: end !important;
    padding: 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-panel {
    border-radius: 16px 16px 10px 10px !important;
    max-height: calc(100dvh - 20px) !important;
    max-width: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-design .custom-order-design-card-modal-body {
    padding: 12px !important;
  }
}

/* Dashboard light glass teal theme, aligned with Kas Keluar. */
body.dashboard-page {
  background:
    radial-gradient(circle at 22% 12%, rgba(143, 213, 209, 0.26), transparent 36%),
    linear-gradient(180deg, #f8fcfc 0%, #eef8f7 52%, #e8f4f3 100%) !important;
  color: #14222a !important;
}

body.dashboard-page .shell {
  max-width: min(1280px, calc(100vw - 44px));
}

/* History Pesanan Custom: clean operational dashboard. */
body.invoice-page.custom-orders-route[data-custom-order-view="history"] {
  overflow: hidden !important;
}

body.invoice-page.custom-orders-route[data-custom-order-view="history"] .shell {
  box-sizing: border-box !important;
  height: calc(100dvh - 68px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] {
  --history-border: #d5e5e3;
  --history-muted: #64767c;
  --history-surface: #ffffff;
  --history-soft: #f4f9f8;
  --history-teal: #0f8f86;
  box-sizing: border-box !important;
  display: block !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 18px 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .invoice-builder-head {
  align-items: center !important;
  background: var(--history-surface) !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  display: block !important;
  height: 104px !important;
  margin-bottom: 7px !important;
  max-width: min(1120px, calc(100vw - 36px)) !important;
  min-height: 104px !important;
  padding: 13px 18px !important;
  width: auto !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-page-title {
  color: #172126 !important;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  margin: 0 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs {
  background: var(--history-surface) !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  gap: 8px !important;
  margin: 0 auto 8px !important;
  max-width: min(1120px, calc(100vw - 36px)) !important;
  padding: 6px !important;
  width: auto !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a {
  background: #ffffff !important;
  border: 1px solid #dce9e7 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #263237 !important;
  font-size: 0.82rem !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a::before {
  background: #c8d8d6 !important;
  height: 22px !important;
  opacity: 1 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a[href="#custom-order-history"] {
  background: #e9f6f4 !important;
  border-color: #8fcfc9 !important;
  color: #086f68 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a[href="#custom-order-history"]::before {
  background: var(--history-teal) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .cashier-workspace {
  height: calc(100% - 181px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(1120px, calc(100vw - 36px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history {
  background: #f8fbfb !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-rows: minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body.invoice-page .custom-order-history-filter-fab {
  align-items: center !important;
  background: #0f8f86 !important;
  border: 1px solid #087d75 !important;
  border-radius: 999px !important;
  bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  box-shadow: 0 10px 24px rgba(15, 92, 87, 0.24) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: none !important;
  height: 52px !important;
  justify-content: center !important;
  padding: 0 !important;
  position: fixed !important;
  right: 24px !important;
  width: 52px !important;
  z-index: 500 !important;
}

body.invoice-page.custom-orders-route[data-custom-order-view="history"] > .custom-order-history-filter-fab {
  display: inline-flex !important;
}

body.invoice-page .custom-order-history-filter-fab:hover,
body.invoice-page .custom-order-history-filter-fab:focus-visible {
  background: #0b766f !important;
  box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.16), 0 12px 28px rgba(15, 92, 87, 0.28) !important;
  outline: none !important;
}

body.invoice-page .custom-order-history-filter-fab.is-active::after {
  background: #ff755f !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  content: "" !important;
  height: 10px !important;
  position: absolute !important;
  right: 1px !important;
  top: 1px !important;
  width: 10px !important;
}

body.invoice-page .custom-order-history-filter-fab svg {
  fill: none !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  width: 20px !important;
}

body.custom-order-history-modal-open {
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal {
  background: transparent !important;
  border: 0 !important;
  color: #172126 !important;
  height: 100dvh !important;
  margin: auto !important;
  max-height: none !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: 24px !important;
  width: 100vw !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal::backdrop {
  background: rgba(13, 28, 32, 0.58) !important;
  backdrop-filter: blur(8px) !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-panel {
  background: #f7faf9 !important;
  border: 1px solid #b9dcd8 !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 80px rgba(20, 45, 50, 0.28) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: min(900px, calc(100dvh - 48px)) !important;
  margin: auto !important;
  max-width: min(1180px, calc(100vw - 48px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-header {
  align-items: center !important;
  background: #ffffff !important;
  border-bottom: 1px solid #d5e5e3 !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-header strong {
  color: #172126 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-header button {
  align-items: center !important;
  background: #f3f9f8 !important;
  border: 1px solid #c8dfdc !important;
  border-radius: 999px !important;
  color: #087d75 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 1.45rem !important;
  height: 40px !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 40px !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 16px !important;
  scrollbar-color: rgba(15, 143, 134, 0.42) #edf5f4 !important;
  scrollbar-gutter: stable !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body > .cashier-cash-in-detail-view {
  background: #f7faf9 !important;
  border: 0 !important;
  color: #172126 !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body > .custom-order-edit-form {
  margin-top: 12px !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page .custom-order-history-card-modal {
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-history-card-modal-panel {
    border-radius: 14px !important;
    height: calc(100dvh - 16px) !important;
    max-width: none !important;
  }

  body.invoice-page .custom-orders-page .custom-order-history-card-modal-body {
    padding: 10px !important;
  }
}

body.invoice-page .custom-order-history-filter-modal {
  background: transparent !important;
  border: 0 !important;
  color: #172126 !important;
  inset: 0 !important;
  margin: auto !important;
  max-height: calc(100dvh - 24px) !important;
  max-width: min(560px, calc(100vw - 24px)) !important;
  overflow: visible !important;
  padding: 0 !important;
  width: 100% !important;
}

body.invoice-page .custom-order-history-filter-modal[open] {
  display: grid !important;
  place-items: center !important;
}

body.invoice-page .custom-order-history-filter-modal::backdrop {
  background: rgba(13, 28, 32, 0.5) !important;
  backdrop-filter: blur(7px) !important;
}

body.invoice-page .custom-order-history-filter-modal > section {
  background: #ffffff !important;
  border: 1px solid #cfe1df !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 70px rgba(16, 48, 52, 0.24) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: hidden !important;
  width: 100% !important;
}

body.invoice-page .custom-order-history-filter-modal > section > header {
  align-items: center !important;
  background: #f3f9f8 !important;
  border-bottom: 1px solid #d7e6e4 !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
}

body.invoice-page .custom-order-history-filter-modal > section > header > div {
  display: grid !important;
  gap: 2px !important;
}

body.invoice-page .custom-order-history-filter-modal > section > header small {
  color: #65777c !important;
  font-size: 0.7rem !important;
}

body.invoice-page .custom-order-history-filter-modal > section > header strong {
  color: #172126 !important;
  font-size: 1rem !important;
}

body.invoice-page .custom-order-history-filter-modal [data-close-history-filter] {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #cfe1df !important;
  border-radius: 999px !important;
  color: #087d75 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 1.4rem !important;
  height: 38px !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 38px !important;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  max-height: calc(100dvh - 112px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 16px !important;
  scrollbar-gutter: stable !important;
  -webkit-overflow-scrolling: touch;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter label {
  background: transparent !important;
  border: 0 !important;
  color: #43545a !important;
  display: grid !important;
  font-size: 0.76rem !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter input,
body.invoice-page .custom-order-history-filter-modal .custom-order-filter select {
  background: #f7faf9 !important;
  border: 1px solid #d5e4e2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #172126 !important;
  min-height: 46px !important;
  padding: 9px 12px !important;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter .custom-order-history-filter-check {
  align-items: center !important;
  display: flex !important;
  gap: 10px !important;
  min-height: 34px !important;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter .custom-order-history-filter-check input[type="checkbox"] {
  accent-color: #0f8f86 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  flex: 0 0 16px !important;
  height: 16px !important;
  margin: 1px 0 0 !important;
  min-height: 16px !important;
  padding: 0 !important;
  width: 16px !important;
}

body.invoice-page .custom-order-history-filter-modal .custom-order-filter .custom-order-history-filter-check span {
  color: #43545a !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

body.invoice-page .custom-order-history-filter-modal .cashier-form-actions {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 2px 0 0 !important;
}

body.invoice-page .custom-order-history-filter-modal .cashier-action-button {
  align-items: center !important;
  background: #edf7f6 !important;
  border: 1px solid #b9dcd8 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #086f68 !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  text-align: center !important;
  text-transform: none !important;
}

body.invoice-page .custom-order-history-filter-modal button[type="submit"] {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  color: #ffffff !important;
}

@media (max-width: 520px) {
  body.invoice-page .custom-order-history-filter-fab {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    height: 50px !important;
    justify-content: center !important;
    padding: 0 !important;
    right: 14px !important;
    width: 50px !important;
  }

  body.invoice-page .custom-order-history-filter-fab span {
    display: none !important;
  }

  body.invoice-page .custom-order-history-filter-modal .cashier-form-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (max-height: 720px) {
  body.invoice-page .custom-order-history-filter-modal,
  body.invoice-page .custom-order-history-filter-modal > section {
    max-height: calc(100dvh - 16px) !important;
  }

  body.invoice-page .custom-order-history-filter-modal > section > header {
    padding: 10px 14px !important;
  }

  body.invoice-page .custom-order-history-filter-modal .custom-order-filter {
    gap: 10px !important;
    max-height: calc(100dvh - 88px) !important;
    padding: 14px !important;
  }
}

/* Login: calm cash-out visual language without changing the authentication flow. */
body:has(.universe-login) {
  background: #f2f7f7 !important;
  color: #172326 !important;
  min-height: 100dvh;
}

body:has(.universe-login) .shell {
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 143, 134, 0.07), transparent 34%),
    linear-gradient(135deg, #eef6f5 0%, #f7f9fa 58%, #edf3f4 100%) !important;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: calc(100dvh - 68px);
  padding: clamp(24px, 5vh, 56px) 20px calc(88px + env(safe-area-inset-bottom));
}

body:has(.universe-login) .universe-login {
  animation: universe-panel-in 320ms ease both;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #dce6e7 !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 54px rgba(38, 52, 58, 0.11) !important;
  color: #172326 !important;
  height: auto !important;
  margin: 0 auto !important;
  max-width: 520px;
  min-height: 0 !important;
  overflow: visible;
  padding: clamp(26px, 4vw, 38px) !important;
  width: 100%;
}

body:has(.universe-login) .login-brand-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 18px;
}

body:has(.universe-login) .auth-brand {
  background: transparent !important;
  color: #0f8f86 !important;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0;
  padding: 0;
}

body:has(.universe-login) .login-brand-badge {
  background: #e8f5f3;
  border: 1px solid #c3e2de;
  border-radius: 999px;
  color: #0d756e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 9px;
}

body:has(.universe-login) .universe-login h1 {
  color: #172126 !important;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 8px;
}

body:has(.universe-login) .universe-login .auth-note {
  color: #5f7178 !important;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 22px;
}

body:has(.universe-login) .universe-login label {
  color: #42575e !important;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  margin: 16px 0;
}

body:has(.universe-login) .universe-login label small {
  color: #74858b !important;
  font-size: 0.72rem;
  font-weight: 600;
}

body:has(.universe-login) .universe-login input,
body:has(.universe-login) .universe-login select,
body:has(.universe-login) .universe-login .country-trigger {
  background: #f7fafb !important;
  border: 1px solid #d3dfe1 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #172326 !important;
  min-height: 50px;
}

body:has(.universe-login) .universe-login input::placeholder {
  color: #8a9a9f !important;
  opacity: 1;
}

body:has(.universe-login) .universe-login input:focus,
body:has(.universe-login) .universe-login select:focus,
body:has(.universe-login) .universe-login .country-trigger:hover,
body:has(.universe-login) .universe-login .country-trigger:focus-visible {
  background: #fff !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.13) !important;
  outline: 0;
}

body:has(.universe-login) .universe-login [data-country-code],
body:has(.universe-login) .universe-login .country-option-code,
body:has(.universe-login) .universe-login .country-caret {
  color: #315b5d !important;
}

body:has(.universe-login) .universe-login .country-menu {
  background: #fff !important;
  border-color: #cbdadb !important;
  box-shadow: 0 18px 44px rgba(38, 52, 58, 0.16) !important;
}

body:has(.universe-login) .universe-login .country-option:hover,
body:has(.universe-login) .universe-login .country-option:focus-visible,
body:has(.universe-login) .universe-login .country-option[aria-selected="true"] {
  background: #e8f5f3 !important;
}

body:has(.universe-login) .universe-login .password-toggle,
body:has(.universe-login) .universe-login .password-toggle:hover,
body:has(.universe-login) .universe-login .password-toggle:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: #60767c !important;
  transform: translateY(-50%);
}

body:has(.universe-login) .forgot-link {
  color: #0d756e !important;
  font-size: 0.78rem;
  margin-top: -2px;
}

body:has(.universe-login) .login-universe-actions {
  gap: 11px;
  margin-top: 22px;
}

body:has(.universe-login) .login-universe-actions button {
  background: #0f8f86 !important;
  border: 1px solid #0f8f86 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(15, 143, 134, 0.2) !important;
  color: #fff !important;
  font-weight: 900;
  min-height: 50px;
}

body:has(.universe-login) .login-universe-actions button:hover,
body:has(.universe-login) .login-universe-actions button:focus-visible {
  background: #0b756e !important;
  border-color: #0b756e !important;
}

body:has(.universe-login) .login-microcopy {
  color: #74858b !important;
}

body:has(.universe-login) .login-universe-actions a,
body:has(.universe-login) .login-universe-actions strong {
  color: #0d756e !important;
  font-size: 0.8rem;
  text-align: center;
}

body:has(.universe-login) .home-bottom-nav {
  background: rgba(236, 246, 245, 0.95) !important;
  border-top: 1px solid rgba(15, 143, 134, 0.16) !important;
  box-shadow: 0 -12px 34px rgba(38, 52, 58, 0.08) !important;
  backdrop-filter: blur(18px);
}

body:has(.universe-login) .home-bottom-nav a,
body:has(.universe-login) .home-bottom-nav button {
  color: #64777f !important;
}

body:has(.universe-login) .home-bottom-nav a.active,
body:has(.universe-login) .home-bottom-nav a:hover,
body:has(.universe-login) .home-bottom-nav button:hover {
  color: #0d756e !important;
}

@media (max-width: 560px) {
  body:has(.universe-login) .shell {
    align-items: flex-start;
    padding: 16px 12px calc(84px + env(safe-area-inset-bottom));
  }

  body:has(.universe-login) .universe-login {
    border-radius: 16px !important;
    padding: 22px 18px !important;
  }

  body:has(.universe-login) .phone-field {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  body:has(.universe-login) .login-brand-badge {
    font-size: 0.62rem;
  }
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .packing-panel-head {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 2px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history .dashboard-kicker {
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history .packing-panel-head h2 {
  color: #172126 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-transform: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history .packing-panel-head h2::before {
  color: var(--history-teal) !important;
  content: "History / " !important;
  font-size: inherit !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter {
  align-items: end !important;
  background: #ffffff !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(220px, 1.35fr) minmax(170px, 0.8fr) auto !important;
  margin: 0 !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #43545a !important;
  font-size: 0.72rem !important;
  gap: 4px !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter input,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter select {
  background: #f7faf9 !important;
  border: 1px solid #d6e4e2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  min-height: 40px !important;
  padding: 8px 11px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter .cashier-form-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter .cashier-action-button {
  background: #edf7f6 !important;
  border: 1px solid #b9dcd8 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #086f68 !important;
  font-size: 0.72rem !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter button[type="submit"] {
  background: var(--history-teal) !important;
  border-color: var(--history-teal) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-list {
  align-content: start !important;
  gap: 8px !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 5px 14px 0 !important;
  scrollbar-color: #80c6c0 #edf5f4 !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-card {
  background: #ffffff !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  clip-path: none !important;
  color: #172126 !important;
  display: block !important;
  min-height: 72px !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-card[open] {
  border-color: #91cbc6 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-summary {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #172126 !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(130px, 0.7fr) minmax(190px, 1.5fr) minmax(160px, 0.8fr) !important;
  height: auto !important;
  cursor: pointer !important;
  list-style: none !important;
  min-height: 72px !important;
  padding: 10px 14px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-summary::-webkit-details-marker,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-summary::after {
  content: none !important;
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-card[open] > .custom-order-history-summary::after {
  content: none !important;
  display: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-code,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-customer {
  color: #172126 !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-code {
  color: #087d75 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-customer small {
  color: var(--history-muted) !important;
  display: block !important;
  margin-top: 3px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-progress-badge {
  justify-self: start !important;
  margin-right: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-card > .cashier-cash-in-detail-view {
  background: #f7faf9 !important;
  border-top: 1px solid var(--history-border) !important;
  color: #172126 !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list {
  background: #ffffff !important;
  border: 1px solid var(--history-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #172126 !important;
  margin: 0 !important;
  padding: 14px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle-head div {
  display: grid !important;
  gap: 2px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle-head small {
  color: var(--history-muted) !important;
  font-size: 0.7rem !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section > strong,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list > strong {
  color: #172126 !important;
  font-size: 0.88rem !important;
  margin-bottom: 8px !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid {
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid > span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-payment > div > span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-item-list > div,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-item {
  background: var(--history-soft) !important;
  border: 1px solid #dde9e7 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #172126 !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-item-list small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list small {
  color: var(--history-muted) !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-item-list b,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-item-list span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section p,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section a,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list a,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list a b {
  color: #26363b !important;
  text-shadow: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-payment > div {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-payment > div > span {
  display: grid !important;
  gap: 4px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-payment b {
  color: #087d75 !important;
  font-size: 1rem !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report-list {
  display: grid !important;
  gap: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report {
  background: #f7fbfa !important;
  border: 1px solid #d7e7e4 !important;
  border-radius: 10px !important;
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report header,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report li {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report header span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report li span,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report li > b {
  background: #ffffff !important;
  border: 1px solid #dde9e7 !important;
  border-radius: 8px !important;
  color: #18252a !important;
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report ul {
  display: grid !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report li em {
  color: #26363b !important;
  font-style: normal !important;
  overflow-wrap: anywhere !important;
  text-shadow: none !important;
  white-space: pre-wrap !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-actions {
  border-top: 1px solid var(--history-border) !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-icon-button {
  background: #ffffff !important;
  border: 1px solid #b9dcd8 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #087d75 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-icon-danger {
  border-color: #ecc5c5 !important;
  color: #b93232 !important;
}

@media (max-width: 980px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter {
    grid-template-columns: 1fr 1fr !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter .cashier-form-actions {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page.custom-orders-route[data-custom-order-view="history"] .shell {
    height: calc(100dvh - 72px) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] {
    display: block !important;
    grid-template-rows: none !important;
    padding: 8px 8px 4px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .invoice-builder-head {
    height: 76px !important;
    min-height: 76px !important;
    padding: 10px 14px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .cashier-workspace {
    height: calc(100% - 218px) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a {
    font-size: 0.7rem !important;
    min-height: 38px !important;
    padding: 6px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history {
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter {
    grid-template-columns: 1fr !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history > .custom-order-filter .cashier-form-actions {
    grid-column: auto !important;
    overflow-x: auto !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-summary {
    gap: 8px !important;
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-progress-badge {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report header,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-edit-report li,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-payment > div {
    grid-template-columns: 1fr !important;
  }
}

/* Compact operational history detail modal */
body.custom-order-history-modal-open > .custom-order-history-filter-fab {
  display: none !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-panel {
  background: #f6faf9 !important;
  border-radius: 12px !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-header {
  min-height: 64px !important;
  padding: 12px 16px !important;
  position: relative !important;
  z-index: 20 !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body {
  padding: 8px !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body > .cashier-cash-in-detail-view {
  gap: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-section,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-file-list {
  border-radius: 12px !important;
  padding: 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle {
  margin-top: 0 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle-track i {
  background: #0f8f86 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-done i {
  align-items: center !important;
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 1px #0f8f86 !important;
  display: inline-flex !important;
  justify-content: center !important;
  position: relative !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-done i::after {
  color: #ffffff !important;
  content: "\2713" !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-active {
  color: #076d67 !important;
  font-weight: 900 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-active i {
  background: #ffffff !important;
  border: 4px solid #20a79d !important;
  box-shadow: 0 0 0 4px #d8f1ee !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-pending {
  color: #87979b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-lifecycle li.is-pending i {
  background: #e4eceb !important;
  border-color: #f7fbfb !important;
  box-shadow: 0 0 0 1px #c7d5d3 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid > span {
  flex: 1 1 220px !important;
  min-width: min(220px, 100%) !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock {
  background: #edf8f6 !important;
  border: 1px solid #9bd6d0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #18383a !important;
  margin-top: 8px !important;
  padding: 8px 10px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock strong,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock small {
  color: #1c4e4b !important;
  opacity: 1 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-ready {
  background: #eaf8f0 !important;
  border-color: #91d0aa !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-ready strong {
  color: #176c43 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-partial {
  background: #fff8e7 !important;
  border-color: #e8c875 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-partial strong {
  color: #79570b !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-empty {
  background: #fff1f1 !important;
  border-color: #e9aaaa !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-stock.is-empty strong {
  color: #a92f2f !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing {
  background: #eaf8f6 !important;
  border: 1px solid #8bcfc8 !important;
  border-radius: 10px !important;
  color: #18383a !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing strong,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing b {
  color: #087d75 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing small,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing em {
  color: #426563 !important;
  font-style: normal !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing.is-pending,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing.is-purchase {
  background: #fff8e7 !important;
  border-color: #e3c364 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing.is-process {
  background: #eaf3ff !important;
  border-color: #93bce8 !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-sewing.is-sent {
  background: #eaf8f0 !important;
  border-color: #91d0aa !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-link-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-link-actions > a,
body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-link-actions > button {
  align-items: center !important;
  background: #edf8f6 !important;
  border: 1px solid #a9d8d4 !important;
  border-radius: 10px !important;
  color: #076d67 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 7px 10px !important;
  text-decoration: none !important;
}

body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-link-actions svg {
  fill: none !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  width: 16px !important;
}

body.invoice-page .custom-orders-page .custom-order-history-card-modal-body .custom-order-history-actions {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #d5e5e3 !important;
  bottom: -8px !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 -8px -8px !important;
  padding: 8px 12px !important;
  position: sticky !important;
  z-index: 18 !important;
}

body.invoice-page .custom-orders-page [data-tooltip] {
  position: relative !important;
}

body.invoice-page .custom-orders-page [data-tooltip]::after {
  background: #17363a !important;
  border-radius: 6px !important;
  bottom: calc(100% + 7px) !important;
  color: #ffffff !important;
  content: attr(data-tooltip) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  left: 50% !important;
  opacity: 0 !important;
  padding: 5px 7px !important;
  pointer-events: none !important;
  position: absolute !important;
  transform: translate(-50%, 3px) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
  white-space: nowrap !important;
  z-index: 60 !important;
}

body.invoice-page .custom-orders-page [data-tooltip]:hover::after,
body.invoice-page .custom-orders-page [data-tooltip]:focus-visible::after {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-detail-grid > span {
    flex-basis: 145px !important;
    min-width: min(145px, 100%) !important;
  }

  body.invoice-page .custom-orders-page .custom-order-history-card-modal-header {
    min-height: 56px !important;
    padding: 8px 10px !important;
  }
}

body.dashboard-page .topbar {
  background: rgba(248, 253, 252, 0.86) !important;
  border-bottom: 1px solid rgba(128, 180, 177, 0.28) !important;
  box-shadow: 0 16px 42px rgba(31, 64, 70, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

body.dashboard-page .topbar a,
body.dashboard-page .topbar button,
body.dashboard-page .topbar span,
body.dashboard-page .topbar strong {
  color: #18313a !important;
}

body.dashboard-page .dashboard-home {
  padding-bottom: 92px !important;
}

body.dashboard-page .dashboard-head {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(142, 180, 181, 0.34) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(31, 64, 70, 0.1) !important;
  margin: 28px 0 18px !important;
  padding: clamp(22px, 3vw, 36px) !important;
  backdrop-filter: blur(20px) saturate(1.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

body.dashboard-page .dashboard-head h1,
body.dashboard-page .dashboard-section-head h2,
body.dashboard-page .dashboard-activity h2,
body.dashboard-page .dashboard-hero h2,
body.dashboard-page .dashboard-card h3,
body.dashboard-page .dashboard-calendar-card h2,
body.dashboard-page .earning-card-head h2,
body.dashboard-page .partner-investment-card .earning-card-head h2,
body.dashboard-page .partner-investment-profit-chart-card h2 {
  color: #14222a !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-head p:last-child,
body.dashboard-page .dashboard-card p,
body.dashboard-page .dashboard-hero p:not(.dashboard-eyebrow),
body.dashboard-page .dashboard-activity p:last-child,
body.dashboard-page .dashboard-calendar-hint,
body.dashboard-page .earning-card-head p,
body.dashboard-page .partner-investment-card .earning-card-head p,
body.dashboard-page .partner-investment-profit-chart-card p,
body.dashboard-page .partner-investment-profit-chart-card small,
body.dashboard-page .partner-investment-profit-bar span {
  color: #5f737b !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .auth-brand,
body.dashboard-page .dashboard-kicker {
  background: linear-gradient(90deg, #9adbd8, #1aa39b) !important;
  border: 0 !important;
  color: #17323a !important;
  letter-spacing: 0.36em !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-hero,
body.dashboard-page .dashboard-card,
body.dashboard-page .dashboard-activity,
body.dashboard-page .earning-card,
body.dashboard-page .partner-investment-card,
body.dashboard-page .partner-investment-profit-chart-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 252, 251, 0.72)),
    rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(142, 180, 181, 0.34) !important;
  box-shadow: 0 22px 58px rgba(31, 64, 70, 0.1) !important;
  color: #14222a !important;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

body.dashboard-page .dashboard-hero {
  grid-template-columns: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
}

body.dashboard-page .dashboard-hero::before,
body.dashboard-page .dashboard-activity::before {
  background: linear-gradient(90deg, #16a7a0, rgba(143, 213, 209, 0.85), transparent) !important;
}

body.dashboard-page .dashboard-activity {
  background:
    linear-gradient(90deg, rgba(154, 219, 216, 0.85) 0 76px, transparent 76px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 252, 251, 0.72)),
    rgba(255, 255, 255, 0.72) !important;
}

body.dashboard-page .dashboard-card:hover,
body.dashboard-page .dashboard-card:focus-visible {
  border-color: rgba(22, 167, 160, 0.5) !important;
  box-shadow: 0 26px 68px rgba(31, 64, 70, 0.14) !important;
}

body.dashboard-page .dashboard-icon,
body.dashboard-page .dashboard-hero-icon,
body.dashboard-page .dashboard-activity-icon {
  background: #f4fbfa !important;
  border: 1px solid rgba(142, 180, 181, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 30px rgba(31, 64, 70, 0.08) !important;
  color: #128d89 !important;
}

body.dashboard-page .dashboard-icon-red {
  background: linear-gradient(135deg, #9adbd8, #16a7a0) !important;
  color: #10262d !important;
}

body.dashboard-page .dashboard-arrow,
body.dashboard-page .dashboard-quick-grid svg {
  color: #128d89 !important;
}

body.dashboard-page .dashboard-player-row span,
body.dashboard-page .dashboard-stats span,
body.dashboard-page .dashboard-section-head > span,
body.dashboard-page .dashboard-status,
body.dashboard-page .attendance-mini-rank li small {
  background: rgba(244, 251, 250, 0.92) !important;
  border: 1px solid rgba(142, 180, 181, 0.34) !important;
  color: #18313a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-stats b,
body.dashboard-page .earning-grid b,
body.dashboard-page .earning-breakdown-trigger b {
  color: #0d807b !important;
}

body.dashboard-page .dashboard-progress,
body.dashboard-page .earning-meter {
  background: rgba(128, 180, 177, 0.2) !important;
}

body.dashboard-page .dashboard-progress span,
body.dashboard-page .earning-meter span {
  background: linear-gradient(90deg, #16a7a0, #87d8d4) !important;
}

body.dashboard-page .dashboard-primary-action,
body.dashboard-page .dashboard-logout button,
body.dashboard-page .earning-filter button,
body.dashboard-page .partner-investment-filter button,
body.dashboard-page .partner-investment-chart-filter button {
  background: linear-gradient(135deg, #bcefeb, #19aaa2) !important;
  border: 1px solid rgba(22, 167, 160, 0.32) !important;
  box-shadow: 0 14px 30px rgba(31, 64, 70, 0.12) !important;
  color: #10262d !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-primary-action:hover,
body.dashboard-page .dashboard-primary-action:focus-visible,
body.dashboard-page .dashboard-logout button:hover,
body.dashboard-page .dashboard-logout button:focus-visible,
body.dashboard-page .earning-filter button:hover,
body.dashboard-page .earning-filter button:focus-visible {
  background: linear-gradient(135deg, #d7fbf8, #16a7a0) !important;
  color: #10262d !important;
}

body.dashboard-page .dashboard-settings-link,
body.dashboard-page .dashboard-calendar-nav a,
body.dashboard-page .dashboard-calendar-nav button {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(142, 180, 181, 0.42) !important;
  color: #18313a !important;
  box-shadow: 0 12px 28px rgba(31, 64, 70, 0.08) !important;
}

body.dashboard-page .attendance-mini-rank {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(142, 180, 181, 0.34) !important;
  box-shadow: 0 20px 50px rgba(31, 64, 70, 0.1) !important;
}

body.dashboard-page .attendance-mini-rank li span,
body.dashboard-page .attendance-mini-rank li b {
  color: #18313a !important;
}

body.dashboard-page .attendance-mini-rank li em {
  background: #0f817b !important;
  color: #f7fffe !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .weekday,
body.dashboard-page .dashboard-month-calendar .weekday {
  color: #5f737b !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day,
body.dashboard-page .dashboard-month-calendar .day {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(142, 180, 181, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(31, 64, 70, 0.08) !important;
  color: #18313a !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day::before,
body.dashboard-page .dashboard-month-calendar .day::before {
  background: #9ab6b5 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day b,
body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .day small,
body.dashboard-page .dashboard-month-calendar .day b,
body.dashboard-page .dashboard-month-calendar .day small {
  color: #18313a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .today,
body.dashboard-page .dashboard-month-calendar .today {
  background: linear-gradient(135deg, #bff0ed, #18a9a1) !important;
  border-color: rgba(22, 167, 160, 0.58) !important;
  color: #10262d !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .outside,
body.dashboard-page .dashboard-month-calendar .outside {
  background: rgba(216, 229, 228, 0.72) !important;
  border-color: rgba(142, 180, 181, 0.2) !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .morning::before {
  background: #16a7a0 !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .afternoon::before {
  background: #0d807b !important;
}

body.dashboard-page .dashboard-calendar-card .dashboard-month-calendar .off::before {
  background: #68bfa5 !important;
}

body.dashboard-page .dashboard-quick-grid a,
body.dashboard-page .earning-grid span,
body.dashboard-page .earning-breakdown-trigger,
body.dashboard-page .partner-investment-grid span,
body.dashboard-page .partner-investment-grid .earning-breakdown-trigger,
body.dashboard-page .partner-investment-list article,
body.dashboard-page .partner-investment-product-list summary,
body.dashboard-page .partner-investment-product-history article {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(142, 180, 181, 0.34) !important;
  box-shadow: 0 14px 34px rgba(31, 64, 70, 0.08) !important;
  color: #18313a !important;
}

body.dashboard-page .earning-grid span > :not(b):not(small),
body.dashboard-page .earning-breakdown-trigger > :not(b):not(small),
body.dashboard-page .earning-grid small,
body.dashboard-page .earning-breakdown-trigger small,
body.dashboard-page .partner-investment-list article > span,
body.dashboard-page .partner-investment-list article small {
  color: #5f737b !important;
}

body.dashboard-page .earning-filter label,
body.dashboard-page .partner-investment-filter label,
body.dashboard-page .partner-investment-chart-filter label {
  color: #42616a !important;
}

body.dashboard-page .earning-filter select,
body.dashboard-page .earning-filter input,
body.dashboard-page .partner-investment-filter input,
body.dashboard-page .partner-investment-filter select,
body.dashboard-page .partner-investment-chart-filter select {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(142, 180, 181, 0.38) !important;
  color: #18313a !important;
}

body.dashboard-page .dashboard-card-badge,
body.dashboard-page .bottom-chat-link em,
body.dashboard-page .bottom-dashboard-badge,
body.dashboard-page [data-notification-badge] {
  background: #11a59f !important;
  border-color: #f7fffe !important;
  color: #f7fffe !important;
}

body.dashboard-page .home-bottom-nav {
  background: rgba(232, 246, 245, 0.88) !important;
  border-top: 1px solid rgba(128, 180, 177, 0.32) !important;
  box-shadow: 0 -16px 42px rgba(31, 64, 70, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

body.dashboard-page .home-bottom-nav a,
body.dashboard-page .home-bottom-nav button {
  color: #5f737b !important;
}

body.dashboard-page .home-bottom-nav a.active,
body.dashboard-page .home-bottom-nav button.active,
body.dashboard-page .home-bottom-nav a:hover,
body.dashboard-page .home-bottom-nav button:hover {
  color: #0f8f89 !important;
}

/* Category-account dialog is portaled to body so page sticky layers cannot overlap it. */
body.invoice-page .cash-out-category-account-panel {
  align-items: center;
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  background: rgba(8, 19, 23, 0.72);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 20px calc(88px + env(safe-area-inset-bottom));
  position: fixed;
  z-index: 5200;
}

body.invoice-page .cash-out-category-account-panel[hidden] {
  display: none !important;
}

body.invoice-page .cash-out-category-account-card {
  background: #fbfefd;
  border: 1px solid rgba(140, 209, 202, 0.48);
  border-radius: 20px;
  box-shadow: 0 32px 88px rgba(5, 18, 22, 0.36);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(78dvh, 720px);
  margin: 0;
  max-height: 78dvh;
  max-width: 860px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  width: min(860px, 100%);
}

body.invoice-page .cash-out-category-account-card .packing-panel-head {
  align-items: flex-start;
  background: linear-gradient(135deg, #e7f8f6, #ffffff 72%);
  border: 0;
  border-bottom: 1px solid rgba(140, 209, 202, 0.42);
  border-radius: 20px 20px 0 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0;
  padding: 18px 22px 16px;
  position: sticky;
  top: 0;
  z-index: 3;
}

body.invoice-page .cash-out-category-account-card .packing-panel-head h2 {
  color: #152026;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  margin: 0;
}

body.invoice-page .cash-out-category-account-card .packing-panel-head small {
  color: #63747b;
  display: block;
  line-height: 1.4;
  margin-top: 5px;
}

body.invoice-page .cash-out-category-account-card .dashboard-kicker {
  background: rgba(13, 117, 110, 0.1);
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 999px;
  color: #0d756e;
  display: inline-flex;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin: 0 0 7px;
  padding: 5px 10px;
}

body.invoice-page .cash-out-category-account-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.26);
  border-radius: 50%;
  color: #0d756e;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

body.invoice-page .cash-out-category-account-close:hover,
body.invoice-page .cash-out-category-account-close:focus-visible {
  background: #0f8f86;
  color: #ffffff;
  outline: 0;
}

body.invoice-page .cash-out-category-account-close svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
  width: 20px;
}

body.invoice-page .cash-out-category-account-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

body.invoice-page .cash-out-category-account-body {
  align-content: start;
  gap: 10px 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 22px 16px;
  scrollbar-color: rgba(15, 143, 134, 0.48) rgba(230, 247, 245, 0.78);
  scrollbar-width: thin;
}

body.invoice-page .cash-out-category-account-body::-webkit-scrollbar {
  width: 8px;
}

body.invoice-page .cash-out-category-account-body::-webkit-scrollbar-track {
  background: rgba(230, 247, 245, 0.78);
  border-radius: 999px;
}

body.invoice-page .cash-out-category-account-body::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 134, 0.44);
  border: 2px solid rgba(230, 247, 245, 0.78);
  border-radius: 999px;
}

body.invoice-page .cash-out-category-account-form > .cashier-form-actions {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(140, 209, 202, 0.38);
  margin: 0;
  padding: 14px 22px max(16px, env(safe-area-inset-bottom));
  position: sticky;
  bottom: 0;
  z-index: 2;
}

body.invoice-page .cash-out-category-account-form > .cashier-form-actions .invoice-print-button[type="submit"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 10px 22px rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .cash-out-category-account-form > .cashier-form-actions .invoice-print-button[type="submit"]:hover,
body.invoice-page .cash-out-category-account-form > .cashier-form-actions .invoice-print-button[type="submit"]:focus-visible {
  background: #0c7d75 !important;
}

@media (max-width: 640px) {
  body.invoice-page .cash-out-category-account-panel {
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top)) 12px calc(82px + env(safe-area-inset-bottom));
  }

  body.invoice-page .cash-out-category-account-card {
    border-radius: 16px;
    height: 78dvh;
    max-height: 78dvh;
  }

  body.invoice-page .cash-out-category-account-card .packing-panel-head {
    border-radius: 16px 16px 0 0;
    padding: 15px 16px 13px;
  }

  body.invoice-page .cash-out-category-account-body {
    gap: 9px;
    padding: 12px 16px 14px;
  }

  body.invoice-page .cash-out-category-account-form > .cashier-form-actions {
    gap: 8px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  body.dashboard-page .shell {
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.dashboard-page .dashboard-head {
    margin-top: 18px !important;
    padding: 20px !important;
  }

  body.dashboard-page .dashboard-head h1 {
    font-size: clamp(28px, 9vw, 38px) !important;
  }

  body.dashboard-page .dashboard-hero,
  body.dashboard-page .dashboard-card {
    border-radius: 18px !important;
  }
}

/* Final dashboard polish: make team activity and all section transitions match Kas Keluar. */
body.dashboard-page .employee-monitor-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 251, 250, 0.74)),
    rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(142, 180, 181, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 58px rgba(31, 64, 70, 0.1) !important;
  color: #14222a !important;
}

body.dashboard-page .employee-monitor-head h2,
body.dashboard-page .employee-monitor-list strong {
  color: #14222a !important;
  text-shadow: none !important;
}

body.dashboard-page .employee-monitor-head p:last-child,
body.dashboard-page .employee-monitor-list small {
  color: #5f737b !important;
  text-shadow: none !important;
}

body.dashboard-page .employee-monitor-head > span {
  background: rgba(234, 249, 248, 0.96) !important;
  border: 1px solid rgba(22, 167, 160, 0.32) !important;
  color: #0d807b !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

body.dashboard-page .employee-monitor-list article,
body.dashboard-page .employee-monitor-list article.is-live {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(142, 180, 181, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.dashboard-page .employee-monitor-list article.is-live {
  background: linear-gradient(135deg, rgba(214, 247, 244, 0.96), rgba(255, 255, 255, 0.82)) !important;
  border-color: rgba(22, 167, 160, 0.46) !important;
}

body.dashboard-page .employee-monitor-avatar {
  background: #f3fbfa !important;
  border-color: rgba(142, 180, 181, 0.42) !important;
  color: #0d807b !important;
}

body.dashboard-page .employee-monitor-list strong span,
body.dashboard-page .employee-monitor-list em {
  color: #0d807b !important;
}

body.dashboard-page .employee-monitor-list article > span {
  background: rgba(244, 251, 250, 0.96) !important;
  border-color: rgba(142, 180, 181, 0.36) !important;
  color: #5f737b !important;
}

body.dashboard-page .employee-monitor-list article.is-live > span {
  background: #d9f6f3 !important;
  border-color: rgba(22, 167, 160, 0.35) !important;
  color: #0d807b !important;
}

body.dashboard-page .dashboard-section + .dashboard-section {
  margin-top: 34px !important;
}

body.dashboard-page .dashboard-section-head-simple {
  margin-top: 6px !important;
  padding-top: 8px;
}

@media (max-width: 760px) {
  body.dashboard-page .employee-monitor-card {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  body.dashboard-page .dashboard-section + .dashboard-section {
    margin-top: 26px !important;
  }

  body.dashboard-page .dashboard-section-head-simple {
    margin-top: 4px !important;
    padding-top: 6px;
  }
}

/* Calendar controls and attendance ranking use the same light glass teal palette. */
body.dashboard-page .dashboard-calendar-card .dashboard-calendar-nav strong {
  color: #18313a !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .schedule-score-guide summary {
  background: linear-gradient(135deg, #c9f1ee, #19aaa2) !important;
  border-color: rgba(22, 167, 160, 0.38) !important;
  box-shadow: 0 12px 26px rgba(31, 64, 70, 0.1) !important;
  color: #10262d !important;
  text-shadow: none !important;
}

body.dashboard-page .dashboard-calendar-card .schedule-score-guide div {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(142, 180, 181, 0.42) !important;
  box-shadow: 0 20px 50px rgba(31, 64, 70, 0.14) !important;
  color: #18313a !important;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

body.dashboard-page .dashboard-calendar-card .schedule-score-guide strong {
  color: #18313a !important;
}

body.dashboard-page .dashboard-calendar-card .schedule-score-guide li {
  color: #5f737b !important;
}

body.dashboard-page .dashboard-calendar-card .schedule-score-guide li b {
  background: #d9f6f3 !important;
  border: 1px solid rgba(22, 167, 160, 0.3) !important;
  color: #0d807b !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(142, 180, 181, 0.4) !important;
  box-shadow: 0 18px 42px rgba(31, 64, 70, 0.1) !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li span {
  color: #18313a !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li b {
  color: #0d807b !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li em {
  background: #0f817b !important;
  color: #f7fffe !important;
}

body.dashboard-page .dashboard-calendar-card .attendance-mini-rank li small {
  background: #d9f6f3 !important;
  border-color: rgba(22, 167, 160, 0.34) !important;
  color: #0d807b !important;
}

/* Packing is a focused workspace; global navigation remains one step away via Dashboard. */
body.packing-page > .topbar {
  display: none !important;
}

body.packing-page .packing-view-content {
  min-height: 160px;
  transition: opacity 160ms ease;
}

body.packing-page .packing-board[aria-busy="true"] .packing-view-content {
  opacity: 0.58;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body.packing-page .packing-view-content {
    transition: none;
  }
}

/* Packing uses the same light teal system as Kas Masuk. */
body.packing-page {
  background: #edf7f7 !important;
  color: #15252c;
}

body.packing-page .shell {
  background: transparent;
  max-width: 1500px;
}

body.packing-page .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(112, 157, 160, 0.28) !important;
  box-shadow: 0 12px 28px rgba(31, 64, 70, 0.08) !important;
}

body.packing-page .brand,
body.packing-page .topbar-nav a,
body.packing-page .topbar form span,
body.packing-page .notification-nav-button,
body.packing-page .bottom-notification-button {
  color: #173039 !important;
}

body.packing-page .topbar-nav a:hover,
body.packing-page .topbar-nav a:focus-visible,
body.packing-page .brand:hover,
body.packing-page .brand:focus-visible {
  color: #0f8f86 !important;
}

body.packing-page .packing-board {
  gap: 20px;
  max-width: 1080px;
}

body.packing-page .invoice-builder-head {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 180, 181, 0.32);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(31, 64, 70, 0.08);
  padding: clamp(22px, 3vw, 34px);
}

body.packing-page .invoice-builder-head h1,
body.packing-page .invoice-builder-head p,
body.packing-page .back-link,
body.packing-page .packing-section h2 {
  color: #15252c !important;
  text-shadow: none;
}

body.packing-page .invoice-builder-head .auth-brand,
body.packing-page .dashboard-kicker,
body.packing-page .dashboard-status {
  background: #e1f5f3 !important;
  border: 1px solid rgba(15, 143, 134, 0.24);
  color: #0d756e !important;
  text-shadow: none;
}

body.packing-page .packing-tabs {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(142, 180, 181, 0.38) !important;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(31, 64, 70, 0.08) !important;
  gap: 4px;
  padding: 7px;
}

body.packing-page .packing-tabs a,
body.packing-page .packing-guide-tab {
  border-radius: 12px;
  color: #29424b !important;
}

body.packing-page .packing-tabs a:hover,
body.packing-page .packing-tabs a.active,
body.packing-page .packing-guide-tab:hover,
body.packing-page .packing-guide-tab:focus-visible {
  background: #e3f6f4 !important;
  border-color: rgba(15, 143, 134, 0.32) !important;
  color: #0d756e !important;
}

body.packing-page .packing-tabs em,
body.packing-page .bottom-chat-link em,
body.packing-page .bottom-dashboard-badge,
body.packing-page .bottom-notification-button em {
  background: #0f8f86 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

body.packing-page .packing-panel,
body.packing-page .packing-entry-card,
body.packing-page .packing-history-filters,
body.packing-page .packing-edit-form {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #dbe7e8 !important;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(31, 64, 70, 0.08) !important;
  color: #15252c !important;
}

body.packing-page .packing-panel-head h2,
body.packing-page .packing-entry-main h3,
body.packing-page .packing-entry-toggle-name,
body.packing-page .packing-panel label,
body.packing-page .packing-product-head strong,
body.packing-page .packing-history-filters label,
body.packing-page .packing-file-field,
body.packing-page .packing-checks span,
body.packing-page .packing-edit-form label {
  color: #1b3038 !important;
}

body.packing-page .packing-entry-card p,
body.packing-page .packing-entry-card small,
body.packing-page .packing-entry-toggle small,
body.packing-page .packing-entry-card dt,
body.packing-page .packing-checks small,
body.packing-page .packing-panel > small,
body.packing-page .packing-recipient-picker > small,
body.packing-page .packing-inline-check small,
body.packing-page .packing-delivery-note {
  color: #617780 !important;
}

body.packing-page .packing-panel input,
body.packing-page .packing-panel select,
body.packing-page .packing-panel textarea,
body.packing-page .packing-history-filters input,
body.packing-page .packing-history-filters select,
body.packing-page .packing-edit-form input,
body.packing-page .packing-edit-form select,
body.packing-page .packing-edit-form textarea,
body.packing-page .packing-shipping-trigger,
body.packing-page .country-trigger {
  background: #f7fbfb !important;
  border-color: #c9dddd !important;
  border-radius: 12px;
  color: #18313a !important;
}

body.packing-page .packing-panel input::placeholder,
body.packing-page .packing-panel textarea::placeholder,
body.packing-page .packing-history-filters input::placeholder,
body.packing-page .packing-edit-form input::placeholder,
body.packing-page .packing-edit-form textarea::placeholder {
  color: #778b91 !important;
  opacity: 1;
}

body.packing-page .packing-panel input:focus,
body.packing-page .packing-panel select:focus,
body.packing-page .packing-panel textarea:focus,
body.packing-page .packing-history-filters input:focus,
body.packing-page .packing-history-filters select:focus,
body.packing-page .packing-edit-form input:focus,
body.packing-page .packing-edit-form select:focus,
body.packing-page .packing-edit-form textarea:focus,
body.packing-page .country-trigger:focus-visible,
body.packing-page .packing-shipping-trigger:focus-visible {
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.16) !important;
  outline: 0;
}

body.packing-page .packing-panel input[readonly] {
  background: #eef5f5 !important;
  color: #5f747b !important;
}

body.packing-page .packing-inline-check,
body.packing-page .packing-checks {
  background: #f1faf9 !important;
  border-color: rgba(15, 143, 134, 0.22) !important;
}

body.packing-page .packing-checks label,
body.packing-page .packing-checks input[type="checkbox"]:not(:disabled) + span,
body.packing-page .packing-checks input[type="checkbox"]:checked + span,
body.packing-page .packing-checks input[type="checkbox"]:disabled:checked + span {
  color: #1b3038 !important;
}

body.packing-page .packing-checks input[type="checkbox"],
body.packing-page .packing-inline-check input[type="checkbox"] {
  accent-color: #0f8f86;
}

body.packing-page .packing-secondary-action,
body.packing-page .packing-product-head button,
body.packing-page .packing-product-row button,
body.packing-page .packing-file-action,
body.packing-page .packing-update-button-secondary,
body.packing-page .packing-edit-panel summary {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.38) !important;
  color: #0d756e !important;
}

body.packing-page .packing-secondary-action:hover,
body.packing-page .packing-secondary-action:focus-visible,
body.packing-page .packing-product-head button:hover,
body.packing-page .packing-product-row button:hover,
body.packing-page .packing-file-action:hover,
body.packing-page .packing-file-action:focus-within,
body.packing-page .packing-update-button-secondary:hover,
body.packing-page .packing-edit-panel summary:hover,
body.packing-page .packing-edit-panel summary:focus-visible {
  background: #e3f6f4 !important;
  color: #0b6f69 !important;
}

body.packing-page .packing-submit,
body.packing-page .packing-update-button,
body.packing-page .packing-print-address-button,
body.packing-page .packing-history-filters button,
body.packing-page .packing-edit-form button,
body.packing-page .packing-quick-customer-actions button:first-child {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 10px 22px rgba(15, 143, 134, 0.18) !important;
  color: #ffffff !important;
}

body.packing-page .packing-submit:hover,
body.packing-page .packing-submit:focus-visible,
body.packing-page .packing-update-button:hover,
body.packing-page .packing-update-button:focus-visible,
body.packing-page .packing-print-address-button:hover,
body.packing-page .packing-print-address-button:focus-visible,
body.packing-page .packing-history-filters button:hover,
body.packing-page .packing-edit-form button:hover {
  background: #0b7b74 !important;
}

body.packing-page .packing-product-head button:disabled,
body.packing-page .packing-submit:disabled,
body.packing-page .packing-update-button:disabled {
  background: #e7eeee !important;
  border-color: #d4e0e0 !important;
  box-shadow: none !important;
  color: #8a9a9f !important;
}

body.packing-page .packing-recipient-options,
body.packing-page .packing-shipping-menu {
  background: #ffffff !important;
  border-color: #c9dddd !important;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(31, 64, 70, 0.16) !important;
}

body.packing-page .packing-recipient-options button,
body.packing-page .packing-shipping-option {
  background: #ffffff !important;
  color: #18313a !important;
}

body.packing-page .packing-recipient-options button:hover,
body.packing-page .packing-recipient-options button.is-selected,
body.packing-page .packing-shipping-option:hover,
body.packing-page .packing-shipping-option:focus-visible {
  background: #e3f6f4 !important;
  color: #0d756e !important;
}

body.packing-page .packing-shipping-option.is-selected,
body.packing-page .packing-shipping-option.is-selected:hover,
body.packing-page .packing-shipping-option.is-selected:focus-visible {
  background: #0f8f86 !important;
  color: #ffffff !important;
}

body.packing-page .packing-note {
  background: #e8f8f6 !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  color: #29424b !important;
}

body.packing-page .packing-note b,
body.packing-page .packing-status-row .packing-input-badge,
body.packing-page .packing-status-row .packing-order-code-badge,
body.packing-page .packing-status-row .is-received {
  color: #0d756e !important;
}

body.packing-page .packing-status-row span {
  background: #edf4f4 !important;
  color: #587078 !important;
}

body.packing-page .packing-status-row .is-done {
  background: #e2f5ea !important;
  color: #24734b !important;
}

body.packing-page .packing-status-row .packing-input-badge,
body.packing-page .packing-status-row .packing-order-code-badge,
body.packing-page .packing-status-row .is-received {
  background: #e3f6f4 !important;
  border-color: rgba(15, 143, 134, 0.26) !important;
}

body.packing-page .packing-quick-customer {
  background: #f4fbfb !important;
  border-color: #c9dddd !important;
  color: #18313a !important;
}

body.packing-page .packing-quick-customer label,
body.packing-page .packing-quick-customer .phone-input label,
body.packing-page .packing-quick-customer small {
  color: #38535c !important;
}

body.packing-page .packing-guide-modal {
  background: rgba(13, 38, 43, 0.42);
}

body.packing-page .packing-guide-panel,
body.packing-page .packing-guide-content {
  background: #ffffff !important;
  border-color: #dbe7e8 !important;
  color: #18313a !important;
}

body.packing-page .packing-guide-panel {
  border-top: 5px solid #0f8f86;
  border-radius: 20px;
}

body.packing-page .packing-guide-panel h2,
body.packing-page .packing-guide-content {
  color: #18313a !important;
}

body.packing-page .packing-guide-panel button {
  background: #0f8f86 !important;
  color: #ffffff !important;
}

body.packing-page .packing-shipping-sale-picker {
  display: block;
  position: relative;
  z-index: 30;
}

body.packing-page .packing-shipping-sale-field {
  display: grid;
  gap: 6px;
}

body.packing-page .packing-shipping-sale-label {
  color: #1b3038;
  font-size: 13px;
  font-weight: 500;
}

body.packing-page .packing-shipping-sale-field > small {
  color: #617780 !important;
  font-size: 12px;
}

body.packing-page .packing-shipping-sale-picker::after {
  border-bottom: 2px solid #0f8f86;
  border-right: 2px solid #0f8f86;
  content: "";
  height: 8px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 17px;
  transform: rotate(45deg);
  width: 8px;
}

body.packing-page .packing-shipping-sale-picker .shipping-fee-sale-search {
  padding-right: 48px;
}

body.packing-page .packing-shipping-sale-options {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #c9dddd;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(31, 64, 70, 0.18);
  display: grid;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
}

body.packing-page .packing-shipping-sale-options[hidden] {
  display: none;
}

body.packing-page .packing-shipping-sale-options button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #18313a;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 14px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

body.packing-page .packing-shipping-sale-options button:hover,
body.packing-page .packing-shipping-sale-options button:focus-visible,
body.packing-page .packing-shipping-sale-options button.is-active {
  background: #e3f6f4;
  color: #0d756e;
  outline: 0;
}

body.packing-page .packing-shipping-sale-options strong {
  color: inherit;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

body.packing-page .packing-shipping-sale-options button small {
  color: #617780 !important;
  flex: 0 0 auto;
  font-size: 0.75rem;
  text-align: right;
}

body.packing-page .packing-shipping-sale-empty {
  color: #617780 !important;
  padding: 14px 12px;
  text-align: center;
}

body.packing-page .packing-shipping-sale-override {
  align-items: flex-start;
  background: #f4fbfa;
  border: 1px solid rgba(15, 143, 134, 0.24);
  border-radius: 13px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

body.packing-page .packing-shipping-sale-override input {
  flex: 0 0 auto;
  margin-top: 3px;
}

body.packing-page .packing-shipping-sale-override span {
  display: grid;
  gap: 3px;
}

body.packing-page .packing-shipping-sale-override strong {
  color: #173039;
  font-size: 0.86rem;
}

body.packing-page .packing-shipping-sale-override small,
body.packing-page .packing-shipping-sale-override-reason small {
  color: #617780 !important;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.packing-page .packing-shipping-sale-override-reason[hidden] {
  display: none !important;
}

body.packing-page .packing-shipping-sale-override-reason textarea {
  min-height: 76px;
  resize: vertical;
}

@media (max-width: 560px) {
  body.packing-page .packing-shipping-sale-options button {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.packing-page .packing-shipping-sale-options button small {
    text-align: left;
  }
}

body.packing-page .home-bottom-nav {
  background: rgba(247, 253, 252, 0.96) !important;
  border-top: 1px solid rgba(112, 157, 160, 0.28) !important;
  box-shadow: 0 -12px 30px rgba(31, 64, 70, 0.08) !important;
}

body.packing-page .home-bottom-nav a,
body.packing-page .home-bottom-nav button {
  color: #637b83 !important;
}

body.packing-page .home-bottom-nav a.active,
body.packing-page .home-bottom-nav button.active,
body.packing-page .home-bottom-nav a:hover,
body.packing-page .home-bottom-nav button:hover {
  color: #0f8f86 !important;
}

@media (max-width: 760px) {
  body.packing-page .shell {
    padding: 20px 14px calc(94px + env(safe-area-inset-bottom));
  }

  body.packing-page .packing-board {
    gap: 16px;
  }

  body.packing-page .invoice-builder-head {
    border-radius: 18px;
    padding: 20px;
  }

  body.packing-page .invoice-builder-head h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  body.packing-page .packing-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }

  body.packing-page .packing-tabs a,
  body.packing-page .packing-guide-tab {
    font-size: 0.84rem;
    min-height: 44px;
    padding: 0 8px;
  }

  body.packing-page .packing-panel,
  body.packing-page .packing-entry-card,
  body.packing-page .packing-history-filters {
    border-radius: 18px;
  }
}

body.dashboard-page .dashboard-calendar-card .dashboard-calendar-hint {
  color: #42616a !important;
  text-shadow: none !important;
}

/* Dense, no-reload purchase workspace. */
body:has(.cashier-purchases-page) .topbar {
  display: none;
}

body.invoice-page:has(.cashier-purchases-page) .shell {
  padding-top: 18px;
}

body.invoice-page .cashier-purchases-page .cash-out-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(127, 144, 151, 0.22);
  border-radius: 16px;
  color: #172126;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  justify-content: space-between;
  min-height: 58px;
  padding: 11px 16px;
  text-align: left;
}

body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button::before {
  background: #cfdadd;
  border-radius: 999px;
  content: "";
  height: 34px;
  width: 4px;
}

body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button.active {
  background: #e8f5f3;
  border-color: rgba(15, 143, 134, 0.32);
  box-shadow: 0 12px 30px rgba(15, 143, 134, 0.12);
}

body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button.active::before { background: #0f8f86; }
body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button span { font-weight: 800; }
body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button small { color: #66777f; font-size: 0.74rem; font-weight: 700; }

body.invoice-page .cashier-purchases-page [data-purchase-panel][hidden] { display: none !important; }
body.invoice-page .cashier-purchases-page [data-purchase-panel].is-tab-transitioning {
  animation: purchase-panel-fade-in 180ms ease-out both;
}
@keyframes purchase-panel-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
body.invoice-page .cashier-purchases-page .cashier-workspace { max-height: none !important; overflow: visible !important; }
body.invoice-page .cashier-purchases-page .cashier-purchase-form { gap: 12px; }
body.invoice-page .cashier-purchases-page .cashier-cash-in-block { padding: 14px; }

.cashier-purchase-line-head,
.cashier-purchase-payment-head {
  align-items: end;
  color: #536b75;
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 8px;
  margin: 13px 0 3px;
}

.cashier-purchase-line-head { grid-template-columns: minmax(170px, 1.45fr) minmax(58px, 0.42fr) minmax(105px, 0.75fr) minmax(85px, 0.6fr) minmax(85px, 0.6fr) minmax(112px, 0.8fr) 44px; }
.cashier-purchase-payment-head { grid-template-columns: minmax(200px, 1fr) minmax(120px, 0.55fr) 44px; }

body.invoice-page .cashier-purchases-page .cashier-cash-in-line {
  column-gap: 8px;
  grid-template-columns: minmax(170px, 1.45fr) minmax(58px, 0.42fr) minmax(105px, 0.75fr) minmax(85px, 0.6fr) minmax(85px, 0.6fr) minmax(112px, 0.8fr) 44px;
  margin-top: 6px;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line-receipt { grid-template-columns: minmax(200px, 1fr) minmax(120px, 0.55fr) 44px; }
body.invoice-page .cashier-purchases-page .cashier-cash-in-line label { font-size: 0; }
body.invoice-page .cashier-purchases-page .cashier-cash-in-line input:not([type="hidden"]),
body.invoice-page .cashier-purchases-page .cashier-cash-in-line select { height: 46px; min-height: 46px; }
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button { height: 46px; min-height: 46px; width: 44px; }
body.invoice-page .cashier-purchases-page .cashier-cash-in-total { min-height: 46px; padding: 0 10px; }

@media (max-width: 820px) {
  body.invoice-page .cashier-purchases-page .cash-out-mode-tabs { max-width: none; }
  body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button { min-height: 52px; padding: 8px 11px; }
  body.invoice-page .cashier-purchases-page .cash-out-mode-tabs button small { display: none; }
  .cashier-purchase-line-head,
  .cashier-purchase-payment-head { display: none; }
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line,
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line-receipt { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line label { font-size: 0.78rem; }
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line label:first-child { grid-column: 1 / -1; }
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line > .cashier-cash-in-total { grid-column: 1 / -1; }
  body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button { grid-column: 1 / -1; width: 100%; }
}

/* Purchase entry: fast, focused workspace with a dedicated history route. */
body.invoice-page .cashier-purchases-page {
  --purchase-teal: #0f8f86;
  --purchase-ink: #172126;
  --purchase-muted: #66777f;
  background: linear-gradient(135deg, #edf6f5, #f7f9fa 55%, #eef2f4) !important;
}

body.invoice-page .cashier-purchases-page > .cashier-purchases-head {
  min-height: 0;
  padding: 18px 26px 20px;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head h1 {
  color: var(--purchase-ink) !important;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1;
  margin: 7px 0;
  text-transform: none;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head p {
  color: var(--purchase-muted) !important;
  font-size: 0.95rem;
  margin: 0;
}

.cashier-purchase-back {
  color: #0d756e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.cashier-purchase-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.cashier-purchase-tabs a,
.cashier-purchase-tabs button {
  border: 1px solid rgba(15, 143, 134, 0.2);
  border-radius: 11px;
  color: #486067;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.cashier-purchase-tabs a.active,
.cashier-purchase-tabs button.active {
  background: var(--purchase-teal);
  border-color: var(--purchase-teal);
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.2);
  color: #fff;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-workspace {
  display: block;
  max-height: none !important;
  overflow: visible !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-table {
  max-height: none !important;
  overflow: visible !important;
}

body.invoice-page .cashier-purchases-page .cashier-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(127, 144, 151, 0.22) !important;
  box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09) !important;
}

.cashier-purchase-form {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(285px, 1fr);
}

.cashier-purchase-form > label,
.cashier-purchase-form > .cashier-cash-in-block {
  grid-column: 1 / 3;
}

.cashier-purchase-form > label:not(.cashier-span) {
  grid-column: auto;
}

.cashier-purchase-form > label.cashier-span {
  grid-column: 1 / 3;
}

.cashier-purchase-form .cashier-cash-in-block {
  background: #fbfcfc;
  border: 1px solid rgba(127, 144, 151, 0.2);
  border-radius: 14px;
  padding: 16px;
}

.cashier-purchase-form .cashier-cash-in-line {
  grid-template-columns: minmax(160px, 1.35fr) minmax(70px, 0.4fr) minmax(110px, 0.8fr) minmax(95px, 0.65fr) minmax(95px, 0.65fr) minmax(120px, 0.8fr) 46px;
  margin-top: 12px;
}

.cashier-purchase-form .cashier-cash-in-line-receipt {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.65fr) 46px;
}

.cashier-purchase-form .cashier-cash-in-line > button {
  border-radius: 9px;
  min-height: 46px;
  padding: 0;
  width: 46px;
}

.cashier-purchase-summary {
  align-self: start;
  background: #f1f8f7;
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 16px;
  grid-column: 3;
  grid-row: 1 / span 6;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.cashier-purchase-summary h3 { color: var(--purchase-ink); margin: 5px 0 14px; }
.cashier-purchase-summary .cashier-cash-in-total { display: grid; gap: 11px; }
.cashier-purchase-summary .cashier-form-actions { margin-top: 16px; }
.cashier-purchase-summary .cashier-form-actions .invoice-print-button { width: 100%; }

.cashier-purchase-status {
  background: #fff2d6;
  border-radius: 999px;
  color: #855c12;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 8px;
  text-align: center;
}
.cashier-purchase-status.is-match { background: #e3f5ed; color: #0b7256; }
.cashier-purchase-row-action { color: #0d756e; font-weight: 800; }

body.invoice-page .cashier-purchases-page[data-purchase-view="history"] .cashier-cash-in-row {
  grid-template-columns: 0.8fr 1.25fr 1fr 0.45fr 0.85fr 0.75fr 0.55fr;
}

@media (max-width: 980px) {
  .cashier-purchase-form { display: block; }
  .cashier-purchase-form > label { display: grid !important; margin-bottom: 12px; }
  .cashier-purchase-form > label.cashier-span::before { content: none; }
  .cashier-purchase-form > label.cashier-span:has(input[name="notes"]) { display: grid !important; }
  .cashier-purchase-form > label.cashier-span input[name="notes"] { grid-column: auto; }
  .cashier-purchase-summary { margin-top: 16px; position: static; }
  .cashier-purchase-form .cashier-cash-in-line,
  .cashier-purchase-form .cashier-cash-in-line-receipt { grid-template-columns: 1fr; }
  .cashier-purchase-form .cashier-cash-in-line > button { width: 100%; }
  body.invoice-page .cashier-purchases-page[data-purchase-view="history"] .cashier-cash-in-row { grid-template-columns: 1fr 1.2fr 1fr; }
  body.invoice-page .cashier-purchases-page[data-purchase-view="history"] .cashier-cash-in-row > :nth-child(n+4) { display: none; }
}

/* Final purchase controls: light cash-out visual parity, with usable fields on every device. */
body.invoice-page .cashier-purchases-page {
  background: #edf6f5 !important;
  color: #172126 !important;
}

body.invoice-page .cashier-purchases-page > .cashier-purchases-head,
body.invoice-page .cashier-purchases-page .cashier-panel,
body.invoice-page .cashier-purchases-page .cashier-cash-in-block,
body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
  background: #ffffff !important;
  border-color: rgba(15, 143, 134, 0.2) !important;
  box-shadow: 0 12px 34px rgba(38, 52, 58, 0.09) !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head h1,
body.invoice-page .cashier-purchases-page .cashier-panel h2,
body.invoice-page .cashier-purchases-page .cashier-panel h3,
body.invoice-page .cashier-purchases-page .cashier-panel strong,
body.invoice-page .cashier-purchases-page .cashier-panel label {
  color: #172126 !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head p,
body.invoice-page .cashier-purchases-page .cashier-panel small,
body.invoice-page .cashier-purchases-page .cashier-panel .cashier-inline-head small {
  color: #60757b !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-form,
body.invoice-page .cashier-purchases-page [data-purchase-details],
body.invoice-page .cashier-purchases-page [data-purchase-payments],
body.invoice-page .cashier-purchases-page .cashier-cash-in-line {
  isolation: isolate;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line input,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line select {
  background-color: #f7fbfa !important;
  border-color: rgba(15, 143, 134, 0.28) !important;
  caret-color: #0f8f86;
  color: #172126 !important;
  color-scheme: light;
  cursor: text;
  pointer-events: auto !important;
  position: relative;
  user-select: text !important;
  z-index: 4;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line select {
  cursor: pointer;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option {
  background: #ffffff;
  color: #172126;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option:checked {
  background: #dff2ef;
  color: #0b6862;
}

/* Desktop hides duplicate row labels; restore text size inside the controls. */
@media (min-width: 981px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-form .cashier-cash-in-line > label {
    font-size: 0.92rem !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-line-field-label {
    display: none;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line :is(input, select) {
    font: 500 0.92rem/1.25 Montserrat, Arial, sans-serif !important;
    font-size: 0.92rem !important;
    line-height: 1.25;
  }

  body.invoice-page .cashier-purchases-page .cashier-cash-in-line select option {
    font: 500 0.92rem/1.25 Montserrat, Arial, sans-serif !important;
    font-size: 0.92rem !important;
  }
}

body.invoice-page:has(.cashier-purchases-page) .home-bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top-color: rgba(15, 143, 134, 0.24) !important;
}

body.invoice-page:has(.cashier-purchases-page) .home-bottom-nav a,
body.invoice-page:has(.cashier-purchases-page) .home-bottom-nav button {
  color: #60757b !important;
}

body.invoice-page:has(.cashier-purchases-page) .home-bottom-nav a.active,
body.invoice-page:has(.cashier-purchases-page) .home-bottom-nav button.active {
  color: #0f8f86 !important;
}

/* Purchase audit refinements: clear hierarchy, states, focus, and safe mobile actions. */
body.invoice-page:has(.cashier-purchases-page) .shell {
  padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head {
  border-radius: 16px;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-back {
  letter-spacing: .04em;
}

body.invoice-page .cashier-purchases-page .cashier-field-help {
  color: #526a70 !important;
  display: block;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 5px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-form > label > input,
body.invoice-page .cashier-purchases-page .cashier-purchase-form > label > select {
  min-height: 48px;
}

body.invoice-page .cashier-purchases-page :is(input, select, button, a):focus-visible {
  outline: 3px solid rgba(15, 143, 134, .45) !important;
  outline-offset: 2px;
}

.cashier-purchase-summary-list {
  border-bottom: 1px solid rgba(15, 143, 134, .16);
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
}

.cashier-purchase-summary-list > span {
  align-items: center;
  color: #526a70;
  display: flex;
  font-size: .84rem;
  justify-content: space-between;
}

.cashier-purchase-summary-list strong { color: #172126; font-variant-numeric: tabular-nums; }
.cashier-purchase-summary-list .is-grand-total {
  border-top: 1px solid rgba(15, 143, 134, .14);
  color: #172126;
  font-size: .95rem;
  font-weight: 800;
  margin-top: 3px;
  padding-top: 11px;
}
.cashier-purchase-summary-list .is-grand-total strong { color: #0b756e; font-size: 1.08rem; }

.cashier-purchase-balance {
  background: #f3f7f7;
  border: 1px solid #d7e4e3;
  border-radius: 12px;
  color: #42575d;
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 11px 12px;
}
.cashier-purchase-balance strong { font-size: .9rem; }
.cashier-purchase-balance span { font-size: .76rem; line-height: 1.35; }
.cashier-purchase-balance.is-balanced { background: #e8f7ef; border-color: #a9dcbf; color: #076348; }
.cashier-purchase-balance.is-short { background: #fff5e5; border-color: #f0cc88; color: #80560c; }
.cashier-purchase-balance.is-over { background: #fcebed; border-color: #e8afb7; color: #a13343; }

@media (max-width: 980px) {
  body.invoice-page:has(.cashier-purchases-page) .shell { padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important; }
  body.invoice-page .cashier-purchases-page .cashier-purchase-summary { margin-bottom: 8px; }
  body.invoice-page .cashier-purchases-page .cashier-purchase-summary .cashier-form-actions .invoice-print-button {
    min-height: 52px;
  }
}

/* Purchase quality-audit layout: compact, legible, and transaction-focused. */
body.invoice-page .cashier-purchases-page {
  --purchase-surface: #ffffff;
  --purchase-field: #f7fbfa;
  --purchase-line: #b9dfdc;
  --purchase-teal: #0f8f86;
  --purchase-ink: #172126;
  --purchase-muted: #5e737a;
}

body.invoice-page .cashier-purchases-page > .cashier-purchases-head {
  min-height: 0;
  padding: 20px 28px;
}

body.invoice-page .cashier-purchases-page .cashier-purchases-head h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 5px 0 7px;
}

body.invoice-page .cashier-purchases-page .dashboard-kicker {
  color: #0d756e !important;
  font-size: .72rem;
  letter-spacing: .1em;
}

body.invoice-page .cashier-purchases-page .cashier-panel {
  padding: 20px 24px;
}

body.invoice-page .cashier-purchases-page .cashier-inline-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-count {
  background: #e6f5f3;
  border-radius: 999px;
  color: #0b6f68;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-form {
  align-items: start;
  display: grid !important;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 340px) !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main {
  display: grid;
  gap: 14px;
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label,
body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > .cashier-cash-in-block {
  grid-column: 1 / -1;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label:not(.cashier-span) {
  grid-column: auto;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > label {
  color: var(--purchase-ink) !important;
  font-size: .88rem !important;
  font-weight: 750;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label > input,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line :is(input, select) {
  background: var(--purchase-field) !important;
  border: 1px solid var(--purchase-line) !important;
  border-radius: 10px;
  color: var(--purchase-ink) !important;
  font: 500 .94rem/1.25 Montserrat, Arial, sans-serif !important;
  min-height: 48px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label > input::placeholder,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line input::placeholder {
  color: #687d83 !important;
  opacity: 1;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-block {
  border-radius: 14px;
  box-shadow: none !important;
  padding: 16px !important;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line {
  margin-top: 10px;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button {
  background: #fff !important;
  border-color: #d6dee0 !important;
  color: #8d3341 !important;
  min-height: 46px !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button:hover,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > button:focus-visible {
  background: #fff0f1 !important;
  border-color: #e4aab2 !important;
  color: #a12536 !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
  background: var(--purchase-surface) !important;
  box-shadow: 0 12px 28px rgba(24, 55, 58, .08) !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  padding: 20px;
  position: sticky !important;
  top: 16px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-summary h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-summary-list > span {
  font-size: .9rem;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-balance {
  font-size: .9rem;
}

body.invoice-page .cashier-purchases-page [data-purchase-submit] {
  background: #0f8f86 !important;
  color: #fff !important;
  min-height: 50px;
}

body.invoice-page .cashier-purchases-page [data-purchase-submit]:disabled {
  background: #c7d7d6 !important;
  box-shadow: none !important;
  color: #58706f !important;
  cursor: not-allowed;
  opacity: 1;
}

@media (max-width: 980px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-form,
  body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main {
    display: block !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label {
    display: grid;
    margin-bottom: 12px;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-summary {
    margin-top: 16px !important;
    position: static !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-inline-head {
    align-items: center;
  }
}

/* Final purchase tokens must win over legacy cashier theme rules. */
body.invoice-page .cashier-purchases-page .dashboard-kicker {
  background: #e8f5f3 !important;
  border: 1px solid rgba(15, 143, 134, .18) !important;
  border-radius: 999px !important;
  color: #0d756e !important;
  padding: 5px 10px !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-entry-main > label,
body.invoice-page .cashier-purchases-page .cashier-cash-in-line > label,
body.invoice-page .cashier-purchases-page .cashier-purchase-filter-panel label {
  color: #172326 !important;
}

body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select) {
  background: #f7fbfa !important;
  border: 1px solid #b7d7d3 !important;
  border-radius: 11px !important;
  color: #172326 !important;
  min-height: 48px !important;
}

body.invoice-page .cashier-purchases-page input::placeholder {
  color: #667a80 !important;
  opacity: 1 !important;
}

body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select):focus,
body.invoice-page .cashier-purchases-page :is(input:not([type="hidden"]), select):focus-visible {
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, .28) !important;
  outline: 0 !important;
}

body.invoice-page .cashier-purchases-page [data-purchase-submit],
body.invoice-page .cashier-purchases-page [data-save-purchase-entry],
body.invoice-page .cashier-purchases-page .cashier-purchase-header-add {
  color: #fff !important;
}

/* Purchase row confirmation modal: replace the unthemeable browser confirm. */
body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm {
  align-items: center;
  background: rgba(23, 35, 38, .58) !important;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm[hidden] {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-modal {
  background: #fff !important;
  border: 1px solid #b7d7d3 !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(17, 48, 51, .24) !important;
  color: #172326 !important;
  max-width: 440px;
  padding: 26px !important;
  text-align: left;
  width: min(100%, 440px);
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-mark {
  align-items: center;
  background: #e8f5f3 !important;
  border: 1px solid #9ccfc9 !important;
  border-radius: 12px !important;
  color: #0d756e !important;
  display: flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  margin-bottom: 14px;
  width: 44px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm h2 {
  color: #172326 !important;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm p:not(.dashboard-kicker) {
  color: #5b7076 !important;
  line-height: 1.55;
  margin: 0;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-actions button {
  border-radius: 11px !important;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
}

body.invoice-page .cashier-purchases-page [data-purchase-row-cancel] {
  background: #fff !important;
  border: 1px solid #b7d7d3 !important;
  color: #425b61 !important;
}

body.invoice-page .cashier-purchases-page [data-purchase-row-submit] {
  background: #0f8f86 !important;
  border: 1px solid #0f8f86 !important;
  color: #fff !important;
}

body.invoice-page .cashier-purchases-page [data-purchase-row-submit]:hover,
body.invoice-page .cashier-purchases-page [data-purchase-row-submit]:focus-visible {
  background: #0b756e !important;
  border-color: #0b756e !important;
}

/* Investor dashboard polish: align financial reports with the light glass teal system. */
body.dashboard-page .dashboard-home {
  padding-bottom: max(124px, calc(92px + env(safe-area-inset-bottom))) !important;
}

body.dashboard-page .partner-investment-section {
  margin-bottom: 42px !important;
}

body.dashboard-page .partner-investment-group-card,
body.dashboard-page .partner-investment-profit-chart-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 251, 250, 0.76)),
    rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(142, 180, 181, 0.42) !important;
  box-shadow: 0 22px 58px rgba(31, 64, 70, 0.1) !important;
  color: #14222a !important;
}

body.dashboard-page .partner-investment-group-card .dashboard-kicker,
body.dashboard-page .partner-investment-profit-chart-card .dashboard-kicker {
  background: linear-gradient(90deg, #9adbd8, #1aa39b) !important;
  color: #17323a !important;
}

body.dashboard-page .partner-investment-group-card .earning-card-head h2,
body.dashboard-page .partner-investment-profit-chart-card h2,
body.dashboard-page .partner-investment-chart-filter label,
body.dashboard-page .partner-investment-profit-bar strong {
  color: #14222a !important;
}

body.dashboard-page .partner-investment-group-card .earning-card-head p,
body.dashboard-page .partner-investment-group-card .earning-card-head small,
body.dashboard-page .partner-investment-profit-chart-card p,
body.dashboard-page .partner-investment-profit-chart-card small,
body.dashboard-page .partner-investment-profit-bar span {
  color: #5f737b !important;
}

body.dashboard-page .partner-investment-filter-icon {
  background: rgba(244, 251, 250, 0.96) !important;
  border-color: rgba(22, 167, 160, 0.34) !important;
  box-shadow: 0 12px 28px rgba(31, 64, 70, 0.08) !important;
  color: #0d807b !important;
  gap: 7px;
  height: 42px;
  padding: 0 13px;
  width: auto;
}

body.dashboard-page .partner-investment-filter-icon span {
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

body.dashboard-page .partner-investment-filter-icon:hover,
body.dashboard-page .partner-investment-filter-icon:focus-visible {
  background: #d9f6f3 !important;
  border-color: rgba(22, 167, 160, 0.52) !important;
  color: #096d68 !important;
}

body.dashboard-page .partner-investment-filter,
body.dashboard-page .partner-investment-chart-filter {
  background: rgba(248, 253, 252, 0.72);
  border: 1px solid rgba(142, 180, 181, 0.3);
  border-radius: 14px;
  padding: 10px;
}

body.dashboard-page .partner-investment-filter input,
body.dashboard-page .partner-investment-filter select,
body.dashboard-page .partner-investment-chart-filter select {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(142, 180, 181, 0.42) !important;
  color: #18313a !important;
}

body.dashboard-page .partner-investment-chart-filter button,
body.dashboard-page .partner-investment-filter button {
  background: linear-gradient(135deg, #bcefeb, #19aaa2) !important;
  border-color: rgba(22, 167, 160, 0.32) !important;
  color: #10262d !important;
}

body.dashboard-page .partner-investment-group-table,
body.dashboard-page .partner-investment-group-table .financial-journal-row {
  border-color: rgba(142, 180, 181, 0.3) !important;
}

body.dashboard-page .partner-investment-group-table .financial-journal-row-head {
  background: rgba(237, 249, 248, 0.94) !important;
  color: #42616a !important;
}

body.dashboard-page .partner-investment-group-table .financial-journal-row,
body.dashboard-page .partner-investment-group-table .financial-journal-row > span,
body.dashboard-page .partner-investment-group-table .financial-journal-row > b,
body.dashboard-page .partner-investment-group-table .financial-journal-row > strong {
  color: #18313a !important;
}

body.dashboard-page .partner-investment-group-table .financial-group-investor-total-row {
  background: rgba(230, 247, 245, 0.76) !important;
}

body.dashboard-page .partner-investment-profit-chart {
  background: rgba(248, 253, 252, 0.56);
  border: 1px solid rgba(142, 180, 181, 0.24);
  border-radius: 14px;
  padding: 14px;
}

body.dashboard-page .partner-investment-profit-bar div {
  background: #e1eeee !important;
  box-shadow: inset 0 1px 2px rgba(31, 64, 70, 0.08);
}

body.dashboard-page .partner-investment-profit-bar i {
  background: linear-gradient(90deg, #84d8d3, #14a39b 58%, #0d807b) !important;
}

body.dashboard-page .partner-investment-profit-bar strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  body.dashboard-page .partner-investment-section {
    margin-bottom: 30px !important;
  }

  body.dashboard-page .partner-investment-filter-icon span {
    font-size: 0.74rem;
  }

  body.dashboard-page .partner-investment-profit-chart {
    background: rgba(248, 253, 252, 0.8) !important;
    border-color: rgba(142, 180, 181, 0.3) !important;
  }
}

@media (max-width: 520px) {
  body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-modal {
    border-radius: 16px !important;
    padding: 22px 18px !important;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-actions {
    flex-direction: column-reverse;
  }

  body.invoice-page .cashier-purchases-page .cashier-purchase-row-confirm .cashier-confirm-actions button {
    width: 100%;
  }
}

/* Final cascade lock for the Pesanan Custom mobile polish. */
body.invoice-page .custom-orders-page #custom-order-input .custom-order-form-section {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(38, 52, 58, 0.07) !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page .custom-order-form-section[open] > summary::after {
  content: "\2212";
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page > .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page > .custom-order-tabs a[href].active::before,
body.invoice-page .custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"]::before {
  display: none !important;
}

/* Beat the later owner-theme sheet while keeping the active state teal-only. */
body.invoice-page .custom-orders-page.custom-orders-page > .custom-order-tabs a.active,
body.invoice-page .custom-orders-page.custom-orders-page > .custom-order-tabs a[href].active,
body.invoice-page .custom-orders-page.custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page.custom-orders-page > .custom-order-tabs a.active::before,
body.invoice-page .custom-orders-page.custom-orders-page > .custom-order-tabs a[href].active::before,
body.invoice-page .custom-orders-page.custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"]::before {
  display: none !important;
}

/* The mobile script moves the tabs into a sticky wrapper, so no direct-child combinator here. */
body.invoice-page .custom-orders-page.custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-input:target) .custom-order-tabs a[href="#custom-order-input"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-prepare:target) .custom-order-tabs a[href="#custom-order-prepare"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) .custom-order-tabs a[href="#custom-order-design"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) .custom-order-tabs a[href="#custom-order-sablon"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-pickup:target) .custom-order-tabs a[href="#custom-order-pickup"],
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-history:target) .custom-order-tabs a[href="#custom-order-history"] {
  background: #0f8f86 !important;
  background-image: none !important;
  border-color: #0f8f86 !important;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page.custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-input:target) .custom-order-tabs a[href="#custom-order-input"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-prepare:target) .custom-order-tabs a[href="#custom-order-prepare"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) .custom-order-tabs a[href="#custom-order-design"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) .custom-order-tabs a[href="#custom-order-sablon"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-pickup:target) .custom-order-tabs a[href="#custom-order-pickup"]::before,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-history:target) .custom-order-tabs a[href="#custom-order-history"]::before {
  display: none !important;
}

@media (max-width: 520px) {
  body.invoice-page .custom-orders-page > .invoice-builder-head {
    min-height: 72px !important;
    padding: 14px 16px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    font-size: clamp(1.35rem, 6.2vw, 1.65rem) !important;
    line-height: 1.12 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input {
    padding: 10px 10px calc(112px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input > .packing-panel-head {
    display: none !important;
  }
}

/* Pesanan Custom mobile: readable product summaries without hiding code or size. */
@media (max-width: 520px) {
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-summary {
    align-items: center !important;
    background: #ffffff !important;
    border-color: rgba(15, 143, 134, 0.24) !important;
    box-shadow: inset 3px 0 0 #62d6cf, 0 8px 20px rgba(38, 52, 58, 0.09) !important;
    gap: 10px !important;
    min-height: 76px !important;
    padding: 11px 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-summary > span {
    align-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-summary small {
    color: #526a72 !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-summary strong {
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #172126 !important;
    display: -webkit-box !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-product-summary b {
    color: #0b756f !important;
    font-size: 0.95rem !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* Pesanan Custom mobile: compact prepare cards and localized photo workflow. */
body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-main {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-code {
  align-items: center !important;
  color: #172126 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  font-size: 0.98rem !important;
  gap: 5px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-code span {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-product-name {
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  color: #25373d !important;
  display: -webkit-box !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  max-height: 3.84em !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-customer {
  color: #526a72 !important;
  font-size: 0.84rem !important;
  font-weight: 750 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges > span {
  align-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  gap: 4px !important;
  line-height: 1 !important;
  min-height: 28px !important;
  padding: 6px 9px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges > span b {
  font-weight: 950 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges .is-waiting {
  background: #fff4df !important;
  border-color: #edcf96 !important;
  color: #7a5311 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges .is-ready {
  background: #def7f2 !important;
  border-color: #96dcd4 !important;
  color: #086b64 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-badges .is-stock {
  background: #eef3f4 !important;
  border-color: #cfdbde !important;
  color: #435b62 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-field {
  display: grid !important;
  gap: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-title {
  color: #344a51 !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-title b {
  color: #bd342c !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-trigger {
  align-items: center !important;
  background: #e8f7f5 !important;
  border: 1px solid #83cec8 !important;
  border-radius: 12px !important;
  color: #087d75 !important;
  cursor: pointer !important;
  display: flex !important;
  font-size: 0.9rem !important;
  gap: 8px !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 9px 12px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-trigger > span {
  color: inherit !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid .custom-order-prepare-upload-trigger input[type="file"] {
  background: transparent !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: 0 !important;
  min-height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-trigger:focus-within {
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.18) !important;
  outline: 2px solid #0f8f86 !important;
  outline-offset: 2px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-preview {
  align-items: center !important;
  background: #f7fbfb !important;
  border: 1px solid #c7dcdf !important;
  border-radius: 12px !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-preview[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-preview img {
  background: #e5eeee !important;
  border-radius: 9px !important;
  height: 58px !important;
  object-fit: cover !important;
  width: 58px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-meta {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-meta strong {
  color: #25373d !important;
  font-size: 0.82rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-actions {
  display: flex !important;
  gap: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-actions button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #087d75 !important;
  cursor: pointer !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-actions [data-prepare-photo-remove] {
  color: #a3302a !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-upload-error {
  color: #a3302a !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-spinner {
  animation: customOrderPrepareSpin 0.75s linear infinite !important;
  border: 2px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 50% !important;
  border-top-color: #ffffff !important;
  display: none !important;
  height: 18px !important;
  width: 18px !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button.is-loading .custom-order-prepare-spinner {
  display: inline-block !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button:disabled {
  cursor: wait !important;
  opacity: 0.8 !important;
}

body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-success {
  background: #dff7f1 !important;
  border: 1px solid #8bd4ca !important;
  border-radius: 12px !important;
  color: #08665f !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  padding: 12px 14px !important;
}

@keyframes customOrderPrepareSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="prepare"] > .invoice-builder-head {
    min-height: 66px !important;
    padding: 11px 16px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="prepare"] .custom-order-page-title {
    font-size: clamp(1.25rem, 5.8vw, 1.5rem) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare {
    padding: 9px 10px calc(116px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-list {
    gap: 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-card {
    border-radius: 16px !important;
    box-shadow: inset 3px 0 0 #0f8f86, 0 8px 22px rgba(38, 52, 58, 0.08) !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-form-grid {
    gap: 9px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-preview {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-preview img {
    height: 54px !important;
    width: 54px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-photo-actions {
    grid-column: 1 / -1 !important;
    justify-content: flex-end !important;
  }

  body.invoice-page .custom-orders-page #custom-order-prepare .custom-order-prepare-button {
    align-items: center !important;
    display: inline-flex !important;
    gap: 8px !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
}

/* Pesanan Custom mobile: one natural page scroll; header, tabs, and subtabs scroll away. */
@media (max-width: 720px) {
  html.custom-orders-route,
  body.invoice-page.custom-orders-route {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
  }

  body.invoice-page.custom-orders-route .shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    scroll-padding-top: 0 !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs:not([hidden]),
  body.invoice-page .custom-orders-page > .custom-order-mobile-sticky-stack,
  body.invoice-page .custom-order-mobile-sticky-stack > .invoice-builder-head,
  body.invoice-page .custom-order-mobile-sticky-stack > .custom-order-tabs {
    inset: auto !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    z-index: auto !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head,
  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs:not([hidden]) {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace,
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-sablon-history-list {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    scrollbar-gutter: auto !important;
  }

  body.invoice-page .custom-orders-page .cashier-panel[data-custom-order-view],
  body.invoice-page .custom-orders-page #custom-order-design,
  body.invoice-page .custom-orders-page #custom-order-sablon {
    scroll-margin-top: 0 !important;
  }
}

/* Specificity lock: retire legacy fixed-height/sticky design rules on phones. */
@media (max-width: 720px) {
  html.custom-orders-route,
  body.invoice-page.custom-orders-route {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page.custom-orders-route .shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 10px 10px calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .invoice-builder-head {
    height: auto !important;
    min-height: 60px !important;
    position: static !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-design-tabs:not([hidden]) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 10px 0 0 !important;
    max-width: none !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-tabs a,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-design-tabs a[data-design-tab-link] {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbdcda !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #26363b !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-tabs a.active,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:not(:has(.cashier-panel[data-custom-order-view]:target)) > .custom-order-tabs a[href="#custom-order-input"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-input:target) > .custom-order-tabs a[href="#custom-order-input"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-prepare:target) > .custom-order-tabs a[href="#custom-order-prepare"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-tabs a[href="#custom-order-design"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a[href="#custom-order-sablon"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a[href="#custom-order-pickup"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-history:target) > .custom-order-tabs a[href="#custom-order-history"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .custom-order-design-tabs a[data-design-tab-link].active {
    background: #0f8f86 !important;
    background-image: none !important;
    border-color: #0f8f86 !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page > .cashier-workspace,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] > .cashier-workspace,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] #custom-order-design,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] #custom-order-design > .custom-order-design-list {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
}

/* Pesanan Custom mobile: compact teal navigation and one calm page scroll. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] {
    gap: 10px !important;
    padding: 10px 10px calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page > .invoice-builder-head {
    background: #ffffff !important;
    border: 1px solid rgba(15, 143, 134, 0.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(38, 52, 58, 0.06) !important;
    clip-path: none !important;
    margin: 0 !important;
    min-height: 60px !important;
    padding: 12px 16px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    color: #172126 !important;
    font-size: clamp(1.35rem, 6vw, 1.6rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    text-shadow: none !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs:not([hidden]) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs a,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link] {
    align-items: center !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbdcda !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #26363b !important;
    display: flex !important;
    font-size: 0.88rem !important;
    font-weight: 850 !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    min-height: 44px !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs a::before,
  body.invoice-page .custom-orders-page > .custom-order-tabs a::after,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs button::before,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]::before {
    content: none !important;
    display: none !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-tabs a:hover,
  body.invoice-page .custom-orders-page > .custom-order-tabs a:focus-visible,
  body.invoice-page .custom-orders-page > .custom-order-tabs a.active,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs button:hover,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs button:focus-visible,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]:hover,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link]:focus-visible,
  body.invoice-page .custom-orders-page > .custom-order-design-tabs a[data-design-tab-link].active {
    background: #0f8f86 !important;
    background-image: none !important;
    border-color: #0f8f86 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: none !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs span {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
  }

  body.invoice-page .custom-orders-page > .custom-order-design-tabs small {
    display: none !important;
  }

  body.invoice-page .custom-orders-page > .cashier-workspace,
  body.invoice-page .custom-orders-page #custom-order-design {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-list {
    gap: 10px !important;
    padding: 0 0 4px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-card {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(15, 143, 134, 0.24) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(38, 52, 58, 0.055) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary {
    align-items: center !important;
    background: #ffffff !important;
    gap: 6px 10px !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    min-height: 104px !important;
    padding: 12px 12px 12px 16px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-code,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-name,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-designer,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-date {
    grid-column: 1 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-toggle {
    align-self: center !important;
    grid-column: 2 !important;
    grid-row: 1 / span 4 !important;
    min-height: 44px !important;
    min-width: 44px !important;
  }

  body.invoice-page .custom-orders-page button,
  body.invoice-page .custom-orders-page a.cashier-action-button,
  body.invoice-page .custom-orders-page .cashier-action-button,
  body.invoice-page .custom-orders-page .packing-secondary-action,
  body.invoice-page .custom-orders-page .custom-order-select-trigger {
    min-height: 44px;
  }

  body.invoice-page .custom-orders-page .custom-order-design-list > :last-child,
  body.invoice-page .custom-orders-page .custom-order-prepare-list > :last-child,
  body.invoice-page .custom-orders-page .custom-order-pickup-list > :last-child,
  body.invoice-page .custom-orders-page .custom-order-history-list > :last-child {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs:not([hidden]),
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs:not([hidden]) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 10px 0 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs a[data-design-tab-link],
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs a[data-design-tab-link] {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbdcda !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #26363b !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs a[data-design-tab-link].active,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs button.active,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs a[data-design-tab-link].active {
    background: #0f8f86 !important;
    background-image: none !important;
    border-color: #0f8f86 !important;
    color: #ffffff !important;
  }
}

/* Pesanan Custom mobile: swipeable design status rail and full-card disclosure. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs:not([hidden]),
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs:not([hidden]) {
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin: 8px 0 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    padding: 0 2px 2px !important;
    scroll-padding-inline: 2px !important;
    scroll-snap-type: inline proximity !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs:not([hidden])::-webkit-scrollbar,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs:not([hidden])::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design.is-active) > .custom-order-design-tabs a[data-design-tab-link],
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs button,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-design:target) > .custom-order-design-tabs a[data-design-tab-link] {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    min-width: max-content !important;
    padding: 8px 14px !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-summary {
    cursor: pointer !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding-right: 16px !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="design"] #custom-order-design .custom-order-design-toggle {
    display: none !important;
  }
}

/* Kode induk: compact, accessible master-data workspace. */
body.invoice-page .cashier-products-page > .base-code-navigation {
  background: #ffffff !important;
  border: 1px solid #d8e4e6 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(15, 58, 61, 0.08) !important;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

body.invoice-page .base-code-navigation-top {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

body.invoice-page .base-code-breadcrumb,
body.invoice-page .base-code-related-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.invoice-page .base-code-breadcrumb {
  color: #6d7e86;
  font-size: 0.82rem;
  font-weight: 700;
}

body.invoice-page .base-code-breadcrumb a,
body.invoice-page .base-code-related-links a {
  color: #087f78 !important;
  text-decoration: none;
}

body.invoice-page .base-code-breadcrumb a:hover,
body.invoice-page .base-code-breadcrumb a:focus-visible,
body.invoice-page .base-code-related-links a:hover,
body.invoice-page .base-code-related-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.invoice-page .base-code-breadcrumb strong {
  color: #16242b;
}

body.invoice-page .base-code-related-links a {
  background: #f0f8f7;
  border: 1px solid #cae4e1;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 10px;
}

body.invoice-page .base-code-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.invoice-page .base-code-stepper > a {
  align-items: center;
  background: #f5f9f9 !important;
  border: 1px solid #d9e5e6 !important;
  border-radius: 12px !important;
  color: #5f7078 !important;
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.invoice-page .base-code-stepper > a > span:first-child {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbdadc;
  border-radius: 50%;
  color: #52656d;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 0.78rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
}

body.invoice-page .base-code-stepper > a > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.invoice-page .base-code-stepper small,
body.invoice-page .base-code-stepper strong {
  line-height: 1.25;
}

body.invoice-page .base-code-stepper small {
  color: #829198;
  font-size: 0.68rem;
  font-weight: 700;
}

body.invoice-page .base-code-stepper strong {
  color: #32444b;
  font-size: 0.92rem;
}

body.invoice-page .base-code-stepper > a:hover,
body.invoice-page .base-code-stepper > a:focus-visible {
  border-color: #72b9b4 !important;
  box-shadow: 0 0 0 3px rgba(20, 148, 138, 0.1) !important;
}

body.invoice-page .base-code-stepper > a.active,
body.invoice-page .base-code-stepper > a.is-active {
  background: linear-gradient(135deg, #16998f, #087f78) !important;
  border-color: #087f78 !important;
  box-shadow: 0 9px 22px rgba(8, 127, 120, 0.2) !important;
  color: #ffffff !important;
}

body.invoice-page .base-code-stepper > a.active > span:first-child,
body.invoice-page .base-code-stepper > a.is-active > span:first-child {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.44);
  color: #ffffff;
}

body.invoice-page .base-code-stepper > a.active small,
body.invoice-page .base-code-stepper > a.active strong,
body.invoice-page .base-code-stepper > a.is-active small,
body.invoice-page .base-code-stepper > a.is-active strong {
  color: #ffffff !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel {
  background: #ffffff !important;
  border: 1px solid #d8e4e6 !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 42px rgba(15, 58, 61, 0.08) !important;
  margin-bottom: 18px !important;
  padding: 18px !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel > .packing-panel-head {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 0 12px !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel > .packing-panel-head > div {
  min-width: 0;
}

body.invoice-page .base-code-panel-toggle {
  align-items: center;
  background: #eff8f7;
  border: 1px solid #b8d8d5;
  border-radius: 10px;
  color: #087f78;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.invoice-page .base-code-panel-toggle:hover,
body.invoice-page .base-code-panel-toggle:focus-visible {
  background: #e1f2f0;
  border-color: #15978e;
  box-shadow: 0 0 0 3px rgba(21, 151, 142, 0.12);
  outline: 0;
}

body.invoice-page .base-code-panel-toggle > span {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  display: block;
  height: 7px;
  transform: rotate(135deg) translateY(-1px);
  transition: transform 0.18s ease;
  width: 7px;
}

body.invoice-page .base-code-panel-toggle strong {
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 14px !important;
  padding-top: 14px !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed > .packing-panel-head {
  margin-bottom: 0;
  padding-bottom: 0 !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed > .packing-panel-head::after {
  content: none;
}

body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed .packing-panel-head small {
  display: none !important;
}

body.invoice-page .base-code-create-panel.is-collapsed .base-code-panel-toggle > span {
  transform: rotate(-45deg) translateY(-2px);
}

body.invoice-page .cashier-products-page .base-code-create-panel > .packing-panel-head::after {
  background: #dce8e9 !important;
  bottom: 0;
  left: 0;
  right: 0;
}

body.invoice-page .cashier-products-page .base-code-create-panel .packing-panel-head h2 {
  color: #17232a !important;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.025em !important;
  line-height: 1.1;
  margin-top: 8px;
  text-shadow: none !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel .packing-panel-head h2::before {
  content: none !important;
}

body.invoice-page .cashier-products-page .base-code-create-panel .packing-panel-head small {
  color: #71838b !important;
  display: block;
  font-size: 0.9rem;
  margin-top: 7px;
}

body.invoice-page .cashier-products-page .base-code-create-panel .dashboard-kicker {
  background: transparent !important;
  border: 0 !important;
  color: #087f78 !important;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  padding: 0 !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-products-page .base-code-create-form {
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.invoice-page .cashier-products-page .base-code-create-form[hidden] {
  display: none !important;
}

body.invoice-page .base-code-form-section {
  background: #f8fbfb;
  border: 1px solid #dce8e9;
  border-radius: 13px;
  box-sizing: border-box;
  display: block !important;
  grid-column: 1 / -1 !important;
  margin: 0;
  max-width: none !important;
  min-width: 0;
  padding: 14px;
  width: 100% !important;
}

body.invoice-page .base-code-form-section legend {
  align-items: center;
  color: #1b2a31;
  display: flex;
  gap: 10px;
  background: #f8fbfb;
  margin: 0 0 10px;
  max-width: 100%;
  padding: 0 10px 0 0;
  width: auto;
}

body.invoice-page .base-code-form-section legend > span:first-child {
  align-items: center;
  background: #dff2f0;
  border-radius: 8px;
  color: #087f78;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 0.7rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
}

body.invoice-page .base-code-form-section legend > span:last-child {
  display: grid;
  gap: 2px;
}

body.invoice-page .base-code-form-section legend strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

body.invoice-page .base-code-form-section legend small {
  color: #76878e;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
}

body.invoice-page .base-code-fields {
  align-items: start;
  display: grid !important;
  gap: 11px !important;
  width: 100%;
}

body.invoice-page .base-code-fields-identity {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.invoice-page .base-code-fields-relations,
body.invoice-page .base-code-fields-prices {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.invoice-page .cashier-products-page .base-code-fields label {
  align-items: stretch !important;
  color: #25353c !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 7px;
  grid-column: auto !important;
  margin: 0;
  max-width: none !important;
  min-width: 0;
  text-shadow: none !important;
  width: 100% !important;
}

body.invoice-page .base-code-field-label {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  min-height: 22px;
  width: 100%;
}

body.invoice-page .base-code-field-label em {
  color: #86959b;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.invoice-page .base-code-field-label em.is-required {
  color: #087f78;
}

body.invoice-page .cashier-products-page .base-code-fields input,
body.invoice-page .cashier-products-page .base-code-fields select,
body.invoice-page .cashier-products-page .base-code-fields .cashier-select-combo-input {
  background: #ffffff !important;
  border: 1px solid #cbdcdf !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #17252b !important;
  font-size: 0.9rem;
  max-width: none !important;
  min-height: 44px;
  min-width: 0 !important;
  padding: 10px 12px;
  width: 100% !important;
}

body.invoice-page .cashier-products-page .base-code-fields input::placeholder {
  color: #8b9aa0 !important;
}

body.invoice-page .cashier-products-page .base-code-fields input:focus,
body.invoice-page .cashier-products-page .base-code-fields select:focus,
body.invoice-page .cashier-products-page .base-code-fields .cashier-select-combo-input:focus {
  border-color: #15978e !important;
  box-shadow: 0 0 0 3px rgba(21, 151, 142, 0.13) !important;
  outline: 0;
}

body.invoice-page .cashier-products-page .base-code-fields input:invalid:not(:placeholder-shown) {
  border-color: #c95d5d !important;
}

body.invoice-page .base-code-field-hint {
  color: #788a91 !important;
  font-size: 0.69rem;
  font-weight: 500;
  margin-top: -2px;
}

body.invoice-page .base-code-money-field {
  align-items: center;
  background: #edf5f4;
  border: 1px solid #cbdcdf;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

body.invoice-page .base-code-money-field:focus-within {
  border-color: #15978e;
  box-shadow: 0 0 0 3px rgba(21, 151, 142, 0.13);
}

body.invoice-page .base-code-money-field > span {
  color: #087f78;
  font-size: 0.78rem;
  font-weight: 900;
  padding-left: 12px;
}

body.invoice-page .cashier-products-page .base-code-money-field input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}

body.invoice-page .base-code-action-bar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: #f7fbfb;
  border: 1px solid #d4e1e2;
  border-radius: 14px;
  bottom: auto;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(17, 62, 64, 0.1);
  display: flex;
  gap: 16px;
  grid-column: 1 / -1 !important;
  justify-content: space-between;
  margin-top: 2px;
  max-width: none !important;
  padding: 11px 12px 11px 16px;
  position: static;
  width: 100% !important;
  z-index: auto;
}

body.invoice-page .base-code-action-bar p {
  display: grid;
  gap: 2px;
  margin: 0;
}

body.invoice-page .base-code-action-bar p strong {
  color: #1d2b31;
  font-size: 0.82rem;
}

body.invoice-page .base-code-action-bar p small {
  color: #718187;
  font-size: 0.7rem;
}

body.invoice-page .base-code-action-bar > div {
  display: flex;
  gap: 8px;
}

body.invoice-page .base-code-cancel-button,
body.invoice-page .cashier-products-page .base-code-action-bar .invoice-print-button {
  border-radius: 10px !important;
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 44px;
  padding: 10px 18px;
}

body.invoice-page .base-code-cancel-button {
  background: #ffffff;
  border: 1px solid #cbd9db;
  color: #44565d;
}

body.invoice-page .base-code-cancel-button:hover,
body.invoice-page .base-code-cancel-button:focus-visible {
  background: #f1f6f6;
  border-color: #91aaa9;
}

body.invoice-page .cashier-products-page .base-code-action-bar .invoice-print-button {
  background: linear-gradient(135deg, #16998f, #087f78) !important;
  border-color: #087f78 !important;
  box-shadow: 0 8px 18px rgba(8, 127, 120, 0.2) !important;
  color: #ffffff !important;
}

@media (max-width: 980px) {
  body.invoice-page .base-code-fields-identity,
  body.invoice-page .base-code-fields-relations,
  body.invoice-page .base-code-fields-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-products-page > .base-code-navigation {
    border-radius: 14px !important;
    padding: 12px;
  }

  body.invoice-page .base-code-navigation-top,
  body.invoice-page .base-code-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  body.invoice-page .base-code-related-links {
    display: none;
  }

  body.invoice-page .base-code-stepper > a {
    min-height: 50px;
    padding: 7px 9px;
  }

  body.invoice-page .base-code-stepper > a > span:first-child {
    flex-basis: 28px;
    height: 28px;
  }

  body.invoice-page .base-code-stepper small {
    display: none;
  }

  body.invoice-page .base-code-stepper strong {
    font-size: 0.78rem;
  }

  body.invoice-page .cashier-products-page .base-code-create-panel {
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    padding: 14px !important;
  }

  body.invoice-page .cashier-products-page .base-code-create-panel > .packing-panel-head {
    align-items: flex-start;
    gap: 12px;
  }

  body.invoice-page .base-code-panel-toggle {
    min-height: 40px;
    padding: 8px 11px;
  }

  body.invoice-page .base-code-panel-toggle strong {
    font-size: 0.72rem;
  }

  body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed {
    padding: 13px 14px !important;
  }

  body.invoice-page .cashier-products-page .base-code-create-panel.is-collapsed .packing-panel-head small {
    display: none;
  }

  body.invoice-page .base-code-fields-identity,
  body.invoice-page .base-code-fields-relations,
  body.invoice-page .base-code-fields-prices {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.invoice-page .base-code-form-section {
    padding: 12px;
  }

  body.invoice-page .base-code-action-bar {
    bottom: auto;
    gap: 9px;
    padding: 11px;
  }

  body.invoice-page .base-code-action-bar p {
    display: none;
  }

  body.invoice-page .base-code-action-bar > div,
  body.invoice-page .base-code-cancel-button,
  body.invoice-page .cashier-products-page .base-code-action-bar .invoice-print-button {
    width: 100%;
  }

  body.invoice-page .base-code-action-bar > div {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.invoice-page .base-code-stepper > a {
    transition: none;
  }
}

/* Kode induk database: compact summary and calmer edit workspace. */
body.invoice-page .cashier-products-page #cashier-base-code-database {
  padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .cashier-base-code-list {
  display: grid !important;
  gap: 12px !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card {
  background: var(--ui-surface-soft) !important;
  border: 1px solid var(--ui-primary-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--ui-shadow) !important;
  clip-path: none !important;
  margin: 0 !important;
  overflow: clip !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card:hover,
body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card[open] {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--ui-primary) 15%, transparent) !important;
  transform: none !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card > summary {
  align-items: center !important;
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-hover)) !important;
  border: 0 !important;
  color: var(--ui-on-primary) !important;
  cursor: pointer;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 82px !important;
  padding: 14px 16px !important;
  transition: background 0.18s ease;
}

body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card > summary:hover,
body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card > summary:focus-visible,
body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card[open] > summary {
  background: linear-gradient(135deg, var(--ui-primary-hover), var(--ui-accent)) !important;
  outline: 0;
}

body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card > summary:focus-visible {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ui-focus) 48%, transparent) !important;
}

body.invoice-page .base-code-summary-copy {
  display: grid !important;
  gap: 4px !important;
  min-width: 0;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-summary-copy strong {
  color: var(--ui-on-primary) !important;
  font-size: 1rem !important;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-shadow: none !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-summary-copy small {
  color: color-mix(in srgb, var(--ui-on-primary) 82%, transparent) !important;
  font-size: 0.8rem !important;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .base-code-summary-actions {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-summary-actions em {
  background: color-mix(in srgb, var(--ui-on-primary) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--ui-on-primary) 38%, transparent) !important;
  border-radius: 999px !important;
  color: var(--ui-on-primary) !important;
  font-size: 0.76rem !important;
  font-style: normal;
  font-weight: 850;
  padding: 7px 11px !important;
  white-space: nowrap;
}

body.invoice-page .base-code-summary-open-label {
  color: color-mix(in srgb, var(--ui-on-primary) 82%, transparent);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

body.invoice-page .base-code-summary-chevron {
  border-bottom: 2px solid var(--ui-on-primary);
  border-right: 2px solid var(--ui-on-primary);
  display: block !important;
  flex: 0 0 9px;
  height: 9px;
  margin-left: 2px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
  width: 9px;
}

body.invoice-page .cashier-base-code-card[open] .base-code-summary-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-form {
  align-items: stretch !important;
  background: var(--ui-surface-soft) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 14px !important;
  width: 100% !important;
}

body.invoice-page .base-code-edit-section {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-sizing: border-box;
  display: block !important;
  grid-column: 1 / -1 !important;
  margin: 0;
  min-width: 0;
  padding: 12px;
  width: 100%;
}

body.invoice-page .base-code-edit-section legend {
  align-items: center;
  color: var(--ui-text) !important;
  display: flex;
  gap: 9px;
  margin: 0 0 10px;
  padding: 0;
  width: 100%;
}

body.invoice-page .base-code-edit-section legend > span:first-child {
  align-items: center;
  background: var(--ui-primary-soft);
  border-radius: 7px;
  color: var(--ui-primary);
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 0.66rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
}

body.invoice-page .base-code-edit-section legend > span:last-child {
  display: grid;
  gap: 1px;
}

body.invoice-page .base-code-edit-section legend strong {
  color: var(--ui-text) !important;
  font-size: 0.88rem;
  line-height: 1.2;
}

body.invoice-page .base-code-edit-section legend small {
  color: var(--ui-text-muted) !important;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
}

body.invoice-page .base-code-edit-fields {
  align-items: start;
  display: grid !important;
  gap: 11px !important;
  width: 100%;
}

body.invoice-page .base-code-edit-fields-identity {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.invoice-page .base-code-edit-fields-relations,
body.invoice-page .base-code-edit-fields-prices {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields label {
  align-items: stretch !important;
  color: var(--ui-text) !important;
  display: flex !important;
  flex-direction: column !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  gap: 6px !important;
  grid-column: auto !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  text-shadow: none !important;
  width: 100% !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields input,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields select,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields .cashier-select-combo-input {
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: var(--ui-text) !important;
  font-size: 0.84rem !important;
  max-width: none !important;
  min-height: 42px !important;
  min-width: 0 !important;
  padding: 8px 11px !important;
  width: 100% !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields input[readonly] {
  background: var(--ui-surface-soft) !important;
  color: var(--ui-text-muted) !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields input:focus,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields select:focus,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields .cashier-select-combo-input:focus {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 12%, transparent) !important;
  outline: 0;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields .base-code-money-field {
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  box-sizing: border-box;
  min-height: 42px;
  width: 100%;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-fields .base-code-money-field input {
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 40px !important;
}

body.invoice-page .base-code-edit-actions {
  align-items: center;
  display: flex !important;
  gap: 8px;
  grid-column: 1 / -1 !important;
  justify-content: flex-end;
  padding-top: 2px;
  width: 100%;
}

body.invoice-page .base-code-form-status {
  align-items: center;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 6px;
  margin-right: auto;
  min-height: 32px;
  padding: 6px 9px;
}

body.invoice-page .base-code-form-status[hidden] {
  display: none !important;
}

body.invoice-page .base-code-page-status {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 11px 13px;
}

body.invoice-page .base-code-page-status strong {
  font-size: 0.8rem;
}

body.invoice-page .base-code-page-status span {
  font-size: 0.72rem;
  line-height: 1.35;
}

body.invoice-page .base-code-edit-cancel,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-actions .invoice-print-button {
  border-radius: 9px !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
}

body.invoice-page .base-code-edit-cancel {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-muted);
}

body.invoice-page .base-code-edit-cancel:hover,
body.invoice-page .base-code-edit-cancel:focus-visible {
  background: var(--ui-primary-soft);
  border-color: var(--ui-focus);
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-actions .invoice-print-button {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-accent)) !important;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--ui-primary) 16%, transparent) !important;
  color: var(--ui-on-primary) !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .cashier-base-code-meta {
  background: var(--ui-primary-soft) !important;
  border: 0 !important;
  border-top: 1px solid var(--ui-primary-border) !important;
  display: flex !important;
  gap: 7px !important;
  padding: 11px 14px !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .cashier-base-code-meta > span {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-primary-border) !important;
  border-radius: 9px !important;
  display: grid !important;
  gap: 2px !important;
  padding: 6px 9px !important;
  text-shadow: none !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .cashier-base-code-meta small {
  color: var(--ui-text-muted) !important;
  font-size: 0.58rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .cashier-base-code-meta strong {
  color: var(--ui-primary) !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
  white-space: nowrap;
}

body.invoice-page .base-code-danger-zone {
  align-items: center;
  background: var(--ui-danger-soft);
  border-top: 1px solid color-mix(in srgb, var(--ui-danger) 30%, var(--ui-border));
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 14px;
}

body.invoice-page .base-code-danger-zone > span {
  display: grid !important;
  gap: 2px !important;
}

body.invoice-page .base-code-danger-zone > span strong {
  color: var(--ui-danger) !important;
  font-size: 0.75rem;
}

body.invoice-page .base-code-danger-zone > span small {
  color: color-mix(in srgb, var(--ui-danger) 72%, var(--ui-text-muted)) !important;
  font-size: 0.66rem;
  line-height: 1.3;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form {
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form button {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-danger) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  color: var(--ui-danger) !important;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
  min-height: 38px !important;
  padding: 7px 13px !important;
  white-space: nowrap;
}

body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form button:hover,
body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form button:focus-visible {
  background: var(--ui-danger) !important;
  color: var(--ui-on-primary) !important;
}

@media (max-width: 980px) {
  body.invoice-page .base-code-edit-fields-identity,
  body.invoice-page .base-code-edit-fields-relations,
  body.invoice-page .base-code-edit-fields-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-products-page #cashier-base-code-database {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card > summary {
    gap: 10px !important;
    min-height: 76px !important;
    padding: 12px !important;
  }

  body.invoice-page .base-code-summary-open-label {
    display: none !important;
  }

  body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-summary-actions em {
    font-size: 0.68rem !important;
    padding: 6px 8px !important;
  }

  body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-form {
    padding: 10px !important;
  }

  body.invoice-page .base-code-edit-fields-identity,
  body.invoice-page .base-code-edit-fields-relations,
  body.invoice-page .base-code-edit-fields-prices {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.invoice-page .base-code-edit-section {
    padding: 10px;
  }

  body.invoice-page .base-code-edit-actions,
  body.invoice-page .base-code-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  body.invoice-page .base-code-edit-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) !important;
  }

  body.invoice-page .base-code-form-status {
    grid-column: 1 / -1 !important;
    margin-right: 0;
    width: 100%;
  }

  body.invoice-page .base-code-edit-cancel,
  body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-edit-actions .invoice-print-button,
  body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form,
  body.invoice-page .cashier-products-page #cashier-base-code-database .base-code-danger-zone .cashier-product-delete-form button {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.invoice-page .cashier-products-page #cashier-base-code-database details.cashier-base-code-card,
  body.invoice-page .base-code-summary-chevron {
    transition: none;
  }
}

/* System settings control room: light workspace aligned with Kas Keluar. */
body:has(.system-settings-page) {
  background: #edf3f4;
}

body:has(.system-settings-page) .shell {
  background: #edf3f4;
}

.system-settings-page.system-settings-page {
  --system-accent: #0f8f86;
  --system-accent-strong: #087d75;
  --system-accent-soft: #e8f7f5;
  --system-bg: #f1f6f7;
  --system-panel: #ffffff;
  --system-field: #f8fbfb;
  --system-border: #d8e3e5;
  --system-border-strong: #c7d8da;
  --system-ink: #182126;
  --system-muted: #667980;
  background: var(--system-bg);
  background-image: none;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  color: var(--system-ink);
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 120px);
  overflow: visible;
  padding: clamp(14px, 2vw, 24px) clamp(12px, 2.3vw, 28px) calc(120px + env(safe-area-inset-bottom));
}

.system-settings-page.system-settings-page::before,
.system-settings-page.system-settings-page .settings-card::before,
.system-settings-page.system-settings-page .settings-head::before {
  content: none;
}

.system-settings-page.system-settings-page .settings-head {
  background: var(--system-panel);
  border: 1px solid var(--system-border);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(38, 52, 58, 0.08);
  clip-path: none;
  gap: 6px;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
}

.system-settings-page.system-settings-page .settings-head .auth-brand {
  color: var(--system-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-shadow: none;
  text-transform: uppercase;
}

.system-settings-page.system-settings-page .settings-head .auth-brand::before {
  content: none;
}

.system-settings-page.system-settings-page .settings-head h1 {
  color: var(--system-ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: none;
  text-transform: none;
}

.system-settings-page.system-settings-page .settings-head > p:last-child {
  color: var(--system-muted);
  font-weight: 600;
  margin: 6px 0 0;
}

.system-settings-page .settings-sticky-tools {
  background: rgba(241, 246, 247, 0.94);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 8px;
  margin: 0 -4px;
  padding: 8px 4px;
  position: sticky;
  top: 0;
  z-index: 120;
}

.system-settings-page .settings-command-bar {
  align-items: center;
  background: var(--system-panel);
  border: 1px solid var(--system-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(38, 52, 58, 0.06);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  padding: 8px;
}

.system-settings-page .settings-search-field {
  align-items: center;
  background: var(--system-field);
  border: 1px solid var(--system-border);
  border-radius: 13px;
  color: var(--system-muted);
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 0 12px;
  text-shadow: none;
}

.system-settings-page .settings-search-field:focus-within {
  border-color: rgba(15, 143, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.12);
}

.system-settings-page .settings-search-field svg {
  fill: none;
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 20px;
}

.system-settings-page.system-settings-page .settings-search-field input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 44px;
  padding: 0;
}

.system-settings-page.system-settings-page .settings-search-field input:focus {
  box-shadow: none;
  outline: 0;
}

.system-settings-page .settings-search-status {
  color: var(--system-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.system-settings-page .settings-command-actions {
  display: flex;
  gap: 6px;
}

.system-settings-page.system-settings-page button.settings-quiet-button {
  background: var(--system-accent-soft);
  border: 1px solid #c9e6e2;
  border-radius: 12px;
  box-shadow: none;
  clip-path: none;
  color: var(--system-accent-strong);
  font-size: 0.75rem;
  min-height: 40px;
  padding: 0 12px;
  text-transform: none;
}

.system-settings-page.system-settings-page button.settings-quiet-button:hover {
  background: #d8efec;
  transform: none;
}

.system-settings-page.system-settings-page button.settings-quiet-button.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.system-settings-page.system-settings-page button.settings-quiet-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.system-settings-page .whatsapp-notification-actions > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-settings-page .whatsapp-notification-actions form {
  margin: 0;
}

.system-settings-page .whatsapp-notification-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-width: 72px;
  padding: 7px 10px;
}

.system-settings-page .whatsapp-notification-status.is-active {
  background: #dcfce7;
  color: #166534;
}

.system-settings-page .whatsapp-notification-status.is-stopped {
  background: #ffe4e6;
  color: #be123c;
}

.system-settings-page .whatsapp-template-preview,
.system-settings-page .whatsapp-template-editor {
  border-top: 1px solid var(--system-border);
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 14px;
}

.system-settings-page .whatsapp-template-preview > span {
  color: var(--system-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.system-settings-page .whatsapp-template-preview article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--system-border);
  border-radius: 12px;
  margin-top: 8px;
  padding: 10px;
}

.system-settings-page .whatsapp-template-preview pre,
.system-settings-page .whatsapp-template-form pre {
  color: var(--system-ink);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 8px 0 0;
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
}

.system-settings-page .whatsapp-template-editor {
  background: #f8fbfb;
  border: 1px solid #c9e6e2;
  border-radius: 14px;
  display: none;
  margin-top: 16px;
  padding: 14px;
}

.system-settings-page .whatsapp-template-editor:target {
  display: grid;
  gap: 12px;
}

.system-settings-page .whatsapp-template-editor > div p {
  color: var(--system-muted);
  margin: 5px 0 0;
}

.system-settings-page .whatsapp-template-form {
  background: #fff;
  border: 1px solid var(--system-border);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.system-settings-page .whatsapp-template-form textarea {
  min-height: 132px;
  resize: vertical;
}

.system-settings-page .whatsapp-template-form button {
  justify-self: start;
}

.system-settings-page.system-settings-page .settings-menu {
  background: var(--system-panel);
  border: 1px solid var(--system-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(38, 52, 58, 0.06);
  display: flex;
  gap: 7px;
  margin: 0;
  overflow-x: auto;
  padding: 7px;
  scrollbar-width: thin;
}

.system-settings-page.system-settings-page .settings-menu a {
  background: #f8fbfb;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
  clip-path: none;
  color: #4f6269;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 9px 12px;
  text-shadow: none;
  text-transform: none;
}

.system-settings-page.system-settings-page .settings-menu a::before {
  content: none;
}

.system-settings-page.system-settings-page .settings-menu a:hover,
.system-settings-page.system-settings-page .settings-menu a:focus-visible {
  background: var(--system-accent-soft);
  border-color: #c9e6e2;
  box-shadow: none;
  color: var(--system-accent-strong);
  transform: none;
}

.system-settings-page.system-settings-page .settings-menu a.active,
.system-settings-page.system-settings-page .settings-menu a[aria-current="location"] {
  background: var(--system-accent);
  border-color: var(--system-accent);
  color: #ffffff;
}

.system-settings-page.system-settings-page .settings-menu svg {
  height: 18px;
  width: 18px;
}

.system-settings-page.system-settings-page .settings-menu a span {
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.system-settings-page.system-settings-page .settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.system-settings-page.system-settings-page .settings-card,
.system-settings-page.system-settings-page .settings-card-wide {
  background: var(--system-panel);
  background-image: none;
  border: 1px solid var(--system-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(38, 52, 58, 0.055);
  clip-path: none;
  color: var(--system-ink);
  grid-column: 1 / -1;
  overflow: visible;
  padding: 0;
  scroll-margin-top: 148px;
}

.system-settings-page.system-settings-page .settings-card[hidden] {
  display: none !important;
}

.system-settings-page.system-settings-page .settings-card:hover {
  border-color: var(--system-border-strong);
}

.system-settings-page.system-settings-page .settings-accordion-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  clip-path: none;
  color: var(--system-ink);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 78px;
  padding: 15px 18px;
  text-align: left;
  text-transform: none;
  width: 100%;
}

.system-settings-page.system-settings-page .settings-accordion-toggle:hover,
.system-settings-page.system-settings-page .settings-accordion-toggle:focus-visible {
  background: #f8fbfb;
  box-shadow: none;
  transform: none;
}

.system-settings-page.system-settings-page .settings-accordion-toggle[aria-expanded="true"] {
  border-bottom: 1px solid #e5edef;
  border-radius: 20px 20px 0 0;
}

.system-settings-page .settings-accordion-toggle > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.system-settings-page .settings-accordion-toggle strong {
  color: var(--system-ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.system-settings-page .settings-accordion-toggle small {
  color: var(--system-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 780px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-settings-page .settings-accordion-toggle svg {
  fill: none;
  flex: 0 0 22px;
  height: 22px;
  stroke: var(--system-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.18s ease;
  width: 22px;
}

.system-settings-page .settings-accordion-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.system-settings-page .settings-card-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.system-settings-page .settings-card-content[hidden] {
  display: none !important;
}

.system-settings-page .settings-card-content > .settings-eyebrow,
.system-settings-page .settings-card-content > h2,
.system-settings-page .settings-card-content > p:not(.settings-eyebrow) {
  display: none;
}

.system-settings-page.system-settings-page .settings-card h2 {
  color: var(--system-ink);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  text-shadow: none;
  text-transform: none;
}

.system-settings-page.system-settings-page .settings-card > p:not(.settings-eyebrow),
.system-settings-page.system-settings-page .system-monitor-head p:not(.settings-eyebrow),
.system-settings-page.system-settings-page .settings-card small {
  color: var(--system-muted);
}

.system-settings-page.system-settings-page .settings-eyebrow {
  color: var(--system-accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.system-settings-page.system-settings-page label,
.system-settings-page.system-settings-page .settings-form-grid > div > strong,
.system-settings-page.system-settings-page .settings-form-grid > div > label {
  color: #43565c;
  text-shadow: none;
}

.system-settings-page.system-settings-page input,
.system-settings-page.system-settings-page select,
.system-settings-page.system-settings-page textarea,
.system-settings-page.system-settings-page .country-trigger {
  background: var(--system-field);
  border: 1px solid #cfdddf;
  border-radius: 13px;
  box-shadow: none;
  color: var(--system-ink);
  color-scheme: light;
  min-height: 48px;
}

.system-settings-page.system-settings-page input::placeholder,
.system-settings-page.system-settings-page textarea::placeholder {
  color: #94a5aa;
}

.system-settings-page.system-settings-page input:focus,
.system-settings-page.system-settings-page select:focus,
.system-settings-page.system-settings-page textarea:focus,
.system-settings-page.system-settings-page .country-trigger:focus-visible {
  border-color: rgba(15, 143, 134, 0.62);
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.12);
  outline: 0;
}

.system-settings-page.system-settings-page select option {
  background: #ffffff;
  color: var(--system-ink);
}

.system-settings-page.system-settings-page .settings-form-grid > label,
.system-settings-page.system-settings-page .settings-form-grid > div,
.system-settings-page.system-settings-page .feature-access-dropdowns > label,
.system-settings-page.system-settings-page .shipping-service-row,
.system-settings-page.system-settings-page .shipping-service-add-row,
.system-settings-page.system-settings-page .attendance-setting-panel,
.system-settings-page.system-settings-page .attendance-grade-list,
.system-settings-page.system-settings-page .notification-rule,
.system-settings-page.system-settings-page .webhook-help,
.system-settings-page.system-settings-page .packing-edit-form,
.system-settings-page.system-settings-page .employee-empty {
  background: #fbfdfd;
  background-image: none;
  border: 1px solid var(--system-border);
  border-left-color: var(--system-border);
  border-radius: 15px;
  box-shadow: none;
}

.system-settings-page.system-settings-page .system-monitor-head {
  background: #f8fbfb;
  background-image: none;
  border: 1px solid var(--system-border);
  border-radius: 16px;
  box-shadow: none;
  clip-path: none;
  padding: 14px 16px;
}

.system-settings-page.system-settings-page .system-monitor-head::after {
  content: none;
}

.system-settings-page.system-settings-page .system-monitor-head h2,
.system-settings-page.system-settings-page .system-monitor-head .settings-eyebrow {
  display: none;
}

.system-settings-page.system-settings-page .system-monitor-badge,
.system-settings-page.system-settings-page .visitor-analytics-head > span {
  background: var(--system-accent-soft);
  border: 1px solid #bfe1dc;
  box-shadow: none;
  color: var(--system-accent-strong);
}

.system-settings-page.system-settings-page .google-sync-paused {
  background: #fff1f1;
  border-color: #f1caca;
  color: #b33a3a;
}

.system-settings-page.system-settings-page .system-health-report,
.system-settings-page.system-settings-page .system-monitor-tile,
.system-settings-page.system-settings-page .system-monitor-audit,
.system-settings-page.system-settings-page .visitor-analytics,
.system-settings-page.system-settings-page .google-sheet-sync-grid article,
.system-settings-page.system-settings-page .google-sheet-sync-error,
.system-settings-page.system-settings-page .formula-notes-grid article,
.system-settings-page.system-settings-page .visitor-analytics-grid article,
.system-settings-page.system-settings-page .visitor-live-grid section,
.system-settings-page.system-settings-page .visitor-live-grid span,
.system-settings-page.system-settings-page .system-monitor-audit span {
  background: #f8fbfb;
  background-image: none;
  border: 1px solid var(--system-border);
  border-radius: 14px;
  box-shadow: none;
  color: var(--system-ink);
}

.system-settings-page.system-settings-page .system-health-healthy {
  background: #f0fbf6;
  border-color: #b9e4cc;
  box-shadow: inset 3px 0 0 #2ea86b;
}

.system-settings-page.system-settings-page .system-health-warning {
  background: #fff9e9;
  border-color: #eed89a;
  box-shadow: inset 3px 0 0 #d39a18;
}

.system-settings-page.system-settings-page .system-health-danger {
  background: #fff2f2;
  border-color: #efc3c3;
  box-shadow: inset 3px 0 0 #d45252;
}

.system-settings-page.system-settings-page .system-health-report span,
.system-settings-page.system-settings-page .system-health-report b,
.system-settings-page.system-settings-page .system-monitor-tile span,
.system-settings-page.system-settings-page .system-monitor-audit > strong,
.system-settings-page.system-settings-page .visitor-analytics-head strong,
.system-settings-page.system-settings-page .visitor-live-grid strong,
.system-settings-page.system-settings-page .google-sheet-sync-grid span,
.system-settings-page.system-settings-page .google-sheet-sync-error strong,
.system-settings-page.system-settings-page .formula-notes-grid span,
.system-settings-page.system-settings-page .attendance-grade-list b,
.system-settings-page.system-settings-page .notification-rule > strong {
  color: var(--system-accent-strong);
}

.system-settings-page.system-settings-page .system-health-report strong,
.system-settings-page.system-settings-page .system-monitor-tile strong,
.system-settings-page.system-settings-page .system-monitor-audit b,
.system-settings-page.system-settings-page .visitor-analytics-grid b,
.system-settings-page.system-settings-page .visitor-live-grid b,
.system-settings-page.system-settings-page .google-sheet-sync-grid strong,
.system-settings-page.system-settings-page .formula-notes-grid strong,
.system-settings-page.system-settings-page .shipping-service-row label,
.system-settings-page.system-settings-page .shipping-service-row strong,
.system-settings-page.system-settings-page .attendance-setting-panel strong,
.system-settings-page.system-settings-page .notification-rule h3,
.system-settings-page.system-settings-page .webhook-help strong,
.system-settings-page.system-settings-page .employee-empty strong {
  color: var(--system-ink);
}

.system-settings-page.system-settings-page .system-health-report small,
.system-settings-page.system-settings-page .system-monitor-tile small,
.system-settings-page.system-settings-page .system-monitor-audit small,
.system-settings-page.system-settings-page .visitor-analytics small,
.system-settings-page.system-settings-page .visitor-analytics-grid span,
.system-settings-page.system-settings-page .visitor-live-grid small,
.system-settings-page.system-settings-page .google-sheet-sync-grid small,
.system-settings-page.system-settings-page .google-sheet-sync-error small,
.system-settings-page.system-settings-page .formula-notes-grid small,
.system-settings-page.system-settings-page .shipping-service-row small,
.system-settings-page.system-settings-page .attendance-setting-panel small,
.system-settings-page.system-settings-page .attendance-grade-list span,
.system-settings-page.system-settings-page .notification-rule p,
.system-settings-page.system-settings-page .webhook-help small,
.system-settings-page.system-settings-page .employee-empty {
  color: var(--system-muted);
}

.system-settings-page.system-settings-page a,
.system-settings-page.system-settings-page .google-sheet-sync-grid a {
  color: var(--system-accent-strong);
}

.system-settings-page.system-settings-page .formula-notes-grid code,
.system-settings-page.system-settings-page code {
  background: #f5f9f9;
  border-color: var(--system-border);
  color: #31565a;
}

.system-settings-page.system-settings-page button,
.system-settings-page.system-settings-page .settings-link-button {
  background: var(--system-accent);
  border: 1px solid var(--system-accent);
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 143, 134, 0.17);
  clip-path: none;
  color: #ffffff;
  min-height: 46px;
  text-transform: none;
}

.system-settings-page.system-settings-page button:hover,
.system-settings-page.system-settings-page .settings-link-button:hover {
  background: var(--system-accent-strong);
  border-color: var(--system-accent-strong);
  transform: translateY(-1px);
}

.system-settings-page.system-settings-page button.secondary-action {
  background: #edf7f6;
  border-color: #c9e3df;
  box-shadow: none;
  color: var(--system-accent-strong);
}

.system-settings-page.system-settings-page button.secondary-action.danger {
  background: #fff2f2;
  border-color: #efc3c3;
  box-shadow: none;
  color: #b33a3a;
}

.system-settings-page.system-settings-page button.secondary-action.danger:hover {
  background: #fce3e3;
  border-color: #df9f9f;
}

.system-settings-page .settings-access-search {
  background: #f8fbfb;
  border: 1px solid var(--system-border);
  border-radius: 15px;
  display: grid;
  gap: 7px;
  padding: 13px;
}

.system-settings-page .settings-access-search > span {
  font-size: 0.8rem;
  font-weight: 800;
}

.system-settings-page .settings-access-search small {
  color: var(--system-muted);
}

.system-settings-page.system-settings-page .feature-access-dropdowns {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.system-settings-page.system-settings-page .settings-access-group {
  background: #f8fbfb;
  border: 1px solid var(--system-border);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 13px;
}

.system-settings-page.system-settings-page .settings-access-group[hidden] {
  display: none !important;
}

.system-settings-page.system-settings-page .settings-access-group h3 {
  color: var(--system-accent-strong);
  font-size: 0.94rem;
  margin: 0;
}

.system-settings-page.system-settings-page .settings-access-group-items {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-settings-page.system-settings-page .settings-access-group-items > label {
  background: #fbfdfd;
  border: 1px solid var(--system-border);
  border-radius: 15px;
  color: #43565c;
  display: grid;
  gap: 7px;
  padding: 11px;
}

.system-settings-page.system-settings-page .settings-access-group-items > label[hidden] {
  display: none !important;
}

.system-settings-page.system-settings-page .notification-role-dropdown {
  background: transparent;
  border: 0;
}

.system-settings-page.system-settings-page .notification-role-dropdown summary {
  background: #ffffff;
  border: 1px solid #cfdddf;
  border-radius: 11px;
  color: var(--system-ink);
  min-height: 44px;
  padding: 11px 12px;
}

.system-settings-page.system-settings-page .notification-role-dropdown[open] summary {
  border-color: rgba(15, 143, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.1);
}

.system-settings-page.system-settings-page .notification-role-dropdown > div {
  background: #ffffff;
  border: 1px solid var(--system-border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(38, 52, 58, 0.14);
  color: var(--system-ink);
}

.system-settings-page .settings-detail-disclosure {
  margin-top: 6px;
}

.system-settings-page .settings-detail-disclosure summary {
  color: var(--system-accent-strong);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-settings-page .settings-detail-disclosure small {
  display: block;
  line-height: 1.55;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.system-settings-page.system-settings-page details.system-monitor-audit {
  display: block;
  padding: 0;
}

.system-settings-page.system-settings-page details.system-monitor-audit > summary {
  align-items: center;
  color: var(--system-ink);
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 14px 16px;
}

.system-settings-page.system-settings-page details.system-monitor-audit > summary::-webkit-details-marker {
  display: none;
}

.system-settings-page.system-settings-page details.system-monitor-audit > summary span {
  color: var(--system-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.system-settings-page.system-settings-page .system-monitor-audit .settings-detail-body {
  border-top: 1px solid var(--system-border);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.system-settings-page.system-settings-page audio {
  filter: none;
  width: 100%;
}

@media (max-width: 900px) {
  .system-settings-page .settings-command-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .system-settings-page .settings-search-status {
    display: none;
  }

  .system-settings-page.system-settings-page .settings-access-group-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:has(.system-settings-page) .shell {
    padding-left: 0;
    padding-right: 0;
  }

  .system-settings-page.system-settings-page {
    border-radius: 0;
    padding: 10px 10px calc(112px + env(safe-area-inset-bottom));
  }

  .system-settings-page.system-settings-page .settings-head {
    border-radius: 18px;
    padding: 20px 18px;
  }

  .system-settings-page .settings-sticky-tools {
    margin: 0 -2px;
    padding: 6px 2px;
  }

  .system-settings-page .settings-command-bar {
    border-radius: 15px;
    grid-template-columns: minmax(0, 1fr);
    padding: 6px;
  }

  .system-settings-page .settings-command-actions {
    display: none;
  }

  .system-settings-page.system-settings-page .settings-menu {
    border-radius: 15px;
  }

  .system-settings-page.system-settings-page .settings-menu a {
    min-height: 40px;
    padding: 8px 10px;
  }

  .system-settings-page.system-settings-page .settings-menu svg {
    height: 16px;
    width: 16px;
  }

  .system-settings-page.system-settings-page .settings-card {
    border-radius: 17px;
    scroll-margin-top: 126px;
  }

  .system-settings-page.system-settings-page .settings-accordion-toggle {
    border-radius: 17px;
    min-height: 70px;
    padding: 13px 14px;
  }

  .system-settings-page .settings-accordion-toggle small {
    max-width: calc(100vw - 92px);
  }

  .system-settings-page .settings-card-content {
    gap: 13px;
    padding: 14px;
  }

  .system-settings-page.system-settings-page .feature-access-dropdowns,
  .system-settings-page.system-settings-page .settings-access-group-items,
  .system-settings-page.system-settings-page .settings-form-grid,
  .system-settings-page.system-settings-page .settings-grid-two,
  .system-settings-page.system-settings-page .google-sheet-sync-grid,
  .system-settings-page.system-settings-page .system-monitor-grid,
  .system-settings-page.system-settings-page .visitor-analytics-grid,
  .system-settings-page.system-settings-page .visitor-live-grid,
  .system-settings-page.system-settings-page .notification-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-settings-page.system-settings-page .google-sheet-sync-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .system-settings-page.system-settings-page .google-sheet-sync-actions button {
    width: 100%;
  }
}

/* System settings navigation refinement: one light workspace, no duplicate desktop nav. */
body:has(.system-settings-page) > .topbar {
  display: none !important;
}

body:has(.system-settings-page) > .shell {
  margin-top: 0;
  padding-top: clamp(10px, 1.5vw, 18px);
}

body:has(.system-settings-page) > .home-bottom-nav {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(236, 246, 245, 0.96) !important;
  border-top: 1px solid rgba(15, 143, 134, 0.16) !important;
  box-shadow: 0 -12px 34px rgba(38, 52, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 72px;
}

body:has(.system-settings-page) > .home-bottom-nav a,
body:has(.system-settings-page) > .home-bottom-nav button {
  color: #64777f !important;
}

body:has(.system-settings-page) > .home-bottom-nav a.active,
body:has(.system-settings-page) > .home-bottom-nav button.active,
body:has(.system-settings-page) > .home-bottom-nav a:hover,
body:has(.system-settings-page) > .home-bottom-nav button:hover,
body:has(.system-settings-page) > .home-bottom-nav a:focus-visible,
body:has(.system-settings-page) > .home-bottom-nav button:focus-visible {
  color: #0d756e !important;
}

body:has(.system-settings-page) > .home-bottom-nav .bottom-chat-link em,
body:has(.system-settings-page) > .home-bottom-nav .bottom-dashboard-badge,
body:has(.system-settings-page) > .home-bottom-nav .bottom-notification-button em {
  background: #0f8f86 !important;
  border-color: #f8fbfa !important;
  box-shadow: 0 4px 12px rgba(15, 143, 134, 0.24);
  color: #ffffff !important;
}

.system-settings-page.system-settings-page {
  gap: 10px;
  padding-top: clamp(10px, 1.5vw, 18px);
}

.system-settings-page.system-settings-page .settings-head {
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(38, 52, 58, 0.065);
  gap: 4px;
  padding: clamp(18px, 2.3vw, 26px);
}

.system-settings-page.system-settings-page .settings-head .auth-brand {
  align-self: start;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--system-accent-strong) !important;
  display: inline-flex;
  padding: 0 !important;
  width: auto !important;
}

.system-settings-page.system-settings-page .settings-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-top: 2px;
}

.system-settings-page.system-settings-page .settings-head > p:last-child {
  font-size: 0.9rem;
  margin-top: 4px;
}

.system-settings-page .settings-sticky-tools {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--system-border);
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(38, 52, 58, 0.075);
  gap: 0;
  margin: 0;
  overflow: hidden;
  padding: 7px;
}

.system-settings-page .settings-command-bar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e6edef;
  border-radius: 0;
  box-shadow: none;
  padding: 1px 1px 7px;
}

.system-settings-page.system-settings-page .settings-menu {
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  margin: 0;
  overscroll-behavior-inline: contain;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.system-settings-page .settings-menu-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding-top: 7px;
}

.system-settings-page.system-settings-page button.settings-menu-scroll {
  align-items: center;
  background: #edf7f6;
  border: 1px solid #c9e3df;
  border-radius: 11px;
  box-shadow: none;
  clip-path: none;
  color: var(--system-accent-strong);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  width: 42px;
}

.system-settings-page.system-settings-page button.settings-menu-scroll:hover,
.system-settings-page.system-settings-page button.settings-menu-scroll:focus-visible {
  background: #dcefed;
  border-color: #a9d5d0;
  transform: none;
}

.system-settings-page button.settings-menu-scroll svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.system-settings-page.system-settings-page .settings-menu::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.system-settings-page.system-settings-page .settings-menu a {
  background: #f7fafb;
  border-color: #edf2f3;
}

.system-settings-page.system-settings-page .settings-menu a.active,
.system-settings-page.system-settings-page .settings-menu a[aria-current="location"] {
  background: #0f8f86;
  border-color: #0f8f86;
  color: #ffffff;
}

.system-settings-page.system-settings-page .settings-grid {
  gap: 10px;
  margin-top: 2px;
}

.system-settings-page.system-settings-page .settings-card {
  border-radius: 17px;
  box-shadow: 0 7px 20px rgba(38, 52, 58, 0.05);
}

.system-settings-page.system-settings-page .settings-accordion-toggle {
  background: #ffffff !important;
  border-radius: 17px;
  min-height: 70px;
  padding: 13px 16px;
}

.system-settings-page.system-settings-page .settings-accordion-toggle:hover,
.system-settings-page.system-settings-page .settings-accordion-toggle:focus-visible {
  background: #f2f9f8 !important;
}

.system-settings-page.system-settings-page .settings-accordion-toggle[aria-expanded="true"] {
  background: #f8fbfb !important;
  border-radius: 17px 17px 0 0;
}

@media (max-width: 640px) {
  body:has(.system-settings-page) > .shell {
    padding-top: 0;
  }

  body:has(.system-settings-page) > .home-bottom-nav {
    min-height: 68px;
  }

  body:has(.system-settings-page) > .home-bottom-nav a,
  body:has(.system-settings-page) > .home-bottom-nav button {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .system-settings-page.system-settings-page {
    gap: 8px;
    padding-top: 8px;
  }

  .system-settings-page.system-settings-page .settings-head {
    border-radius: 17px;
    padding: 16px;
  }

  .system-settings-page.system-settings-page .settings-head h1 {
    font-size: 1.9rem;
  }

  .system-settings-page .settings-sticky-tools {
    border-radius: 16px;
    padding: 6px;
  }

  .system-settings-page .settings-command-bar {
    padding-bottom: 6px;
  }

  .system-settings-page.system-settings-page .settings-menu {
    padding-top: 0;
  }

  .system-settings-page .settings-menu-row {
    gap: 5px;
    padding-top: 6px;
  }

  .system-settings-page.system-settings-page button.settings-menu-scroll {
    height: 38px;
    min-height: 38px;
    width: 38px;
  }
}

/* Pesanan Custom pickup: compact mobile queue, filters, payment summary, and audited handover. */
body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head {
  align-items: center !important;
  display: flex !important;
  justify-content: space-between !important;
  position: relative !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head > div > p {
  color: #60757b !important;
  font-size: 0.78rem !important;
  margin: 3px 0 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head::after {
  background: #0f8f86 !important;
  content: "" !important;
  height: 2px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter {
  margin-left: auto !important;
  position: relative !important;
  z-index: 25 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter > summary {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #b9d1ce !important;
  border-radius: 10px !important;
  color: #0b6862 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  gap: 6px !important;
  justify-content: center !important;
  list-style: none !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter > summary::-webkit-details-marker {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter > summary svg {
  fill: none !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-width: 2 !important;
  width: 19px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter > summary b {
  align-items: center !important;
  background: #0f8f86 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  height: 19px !important;
  justify-content: center !important;
  min-width: 19px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter > summary b[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter.has-active-filter > summary,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter[open] > summary {
  background: #e8f5f3 !important;
  border-color: #0f8f86 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(38, 52, 58, 0.16) !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 7px) !important;
  width: min(330px, calc(100vw - 38px)) !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter-panel label {
  color: #425158 !important;
  display: grid !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  gap: 5px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter-panel input,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-filter-panel select {
  background: #ffffff !important;
  border: 1px solid #b9c9cd !important;
  border-radius: 9px !important;
  color: #172126 !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup [data-reset-pickup-filter] {
  background: #eef6f5 !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #0b6862 !important;
  font-weight: 800 !important;
  min-height: 42px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card-head {
  align-items: flex-start !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card-head > div {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card-head > div > span {
  color: #425158 !important;
  font-size: 0.83rem !important;
  font-weight: 750 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card-head .custom-order-pickup-card-tools {
  align-items: flex-end !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup {
  aspect-ratio: 1 / 1 !important;
  background: #eef6f5 !important;
  border: 1px solid #b9d1ce !important;
  border-radius: 10px !important;
  cursor: zoom-in !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: 58px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  width: 58px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup img {
  display: block !important;
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup > span {
  align-items: center !important;
  background: rgba(11, 104, 98, 0.84) !important;
  border-radius: 6px 0 0 0 !important;
  bottom: 0 !important;
  color: #ffffff !important;
  display: flex !important;
  height: 22px !important;
  justify-content: center !important;
  position: absolute !important;
  right: 0 !important;
  width: 22px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup svg {
  fill: none !important;
  height: 13px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  width: 13px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup:hover,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-mockup:focus-visible {
  border-color: #0f8f86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.16) !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-badge {
  border-radius: 999px !important;
  flex: 0 0 auto !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.035em !important;
  padding: 5px 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-badge.is-paid {
  background: #daf3e5 !important;
  color: #17653d !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-badge.is-unpaid {
  background: #fff0dc !important;
  color: #8a4b08 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-badge.is-saved {
  background: #daf3e5 !important;
  color: #17653d !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-meta {
  display: grid !important;
  gap: 8px 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 12px 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-meta div,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary div {
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-meta dt,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary small,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-products > small {
  color: #60757b !important;
  display: block !important;
  font-size: 0.69rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  margin: 0 0 3px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-meta dd {
  color: #26363b !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-products {
  border-top: 1px solid #dce9e7 !important;
  padding: 11px 0 2px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-products p {
  color: #34454b !important;
  font-size: 0.84rem !important;
  font-weight: 720 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  white-space: pre-line !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary {
  background: #eef8f6 !important;
  border: 1px solid #cfe5e1 !important;
  border-radius: 12px !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 12px 0 !important;
  padding: 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary div {
  border-left: 1px solid #cfe1de !important;
  padding: 3px 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary div:first-child {
  border-left: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary b {
  color: #173d3a !important;
  display: block !important;
  font-size: 0.78rem !important;
  overflow-wrap: anywhere !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-payment-summary > p {
  background: #fff4e5 !important;
  border-radius: 8px !important;
  color: #72410c !important;
  font-size: 0.75rem !important;
  grid-column: 1 / -1 !important;
  margin: 8px 0 0 !important;
  padding: 7px 9px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover {
  background: #f4fbfa !important;
  border: 1px solid rgba(15, 143, 134, 0.18) !important;
  border-radius: 12px !important;
  margin-top: 12px !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary {
  align-items: center !important;
  background: #f4fbfa !important;
  color: #173d3a !important;
  cursor: pointer !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
  list-style: none !important;
  min-height: 52px !important;
  padding: 8px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary::-webkit-details-marker {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary span {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary b {
  color: #0b6862 !important;
  font-size: 0.84rem !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary small {
  color: #60757b !important;
  font-size: 0.69rem !important;
  font-weight: 700 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover > summary svg {
  fill: none !important;
  flex: 0 0 auto !important;
  height: 22px !important;
  stroke: #0f8f86 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  transition: transform 160ms ease !important;
  width: 22px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover[open] > summary svg {
  transform: rotate(180deg) !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover[open] > summary {
  border-bottom: 1px solid rgba(15, 143, 134, 0.14) !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-handover .custom-order-pickup-form {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-saved-state {
  align-items: center !important;
  background: #e8f7ee !important;
  border: 1px solid #bde2ca !important;
  border-radius: 11px !important;
  color: #17653d !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 3px 8px !important;
  justify-content: space-between !important;
  margin-top: 12px !important;
  padding: 10px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-saved-state strong {
  color: #17653d !important;
  font-size: 0.8rem !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-saved-state span {
  color: #346d4d !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card.is-focused-result {
  animation: custom-order-pickup-focus 1.2s ease both !important;
  outline: none !important;
}

@keyframes custom-order-pickup-focus {
  0%, 100% { box-shadow: 0 5px 14px rgba(38, 52, 58, 0.06); }
  35% { box-shadow: 0 0 0 4px rgba(15, 143, 134, 0.2), 0 10px 24px rgba(15, 143, 134, 0.14); }
}

body.invoice-page .custom-order-toast {
  align-items: flex-start !important;
  animation: custom-order-toast-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-md) !important;
  bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  box-shadow: var(--ui-shadow-modal) !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  left: 50% !important;
  max-width: min(430px, calc(100vw - 24px)) !important;
  padding: 11px !important;
  position: fixed !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  z-index: 4500 !important;
}

body.invoice-page .custom-order-toast > span {
  align-items: center !important;
  background: var(--ui-success-soft) !important;
  border-radius: 50% !important;
  color: var(--ui-success-strong) !important;
  display: inline-flex !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

body.invoice-page .custom-order-toast.is-error > span {
  background: var(--ui-danger-soft) !important;
  color: var(--ui-danger-strong) !important;
}

body.invoice-page .custom-order-toast > div {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-order-toast strong {
  color: var(--ui-text) !important;
  font-size: 0.8rem !important;
}

body.invoice-page .custom-order-toast p {
  color: var(--ui-text-muted) !important;
  font-size: 0.73rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

body.invoice-page .custom-order-toast button {
  background: transparent !important;
  border: 0 !important;
  color: var(--ui-text-muted) !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  min-height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
}

body.invoice-page .custom-order-toast.is-hiding {
  animation: custom-order-toast-out 180ms ease both !important;
}

@keyframes custom-order-toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes custom-order-toast-out {
  to { opacity: 0; transform: translate(-50%, 12px); }
}

body.invoice-page .custom-order-pickup-confirm {
  background: #ffffff !important;
  border: 1px solid #d7e5e3 !important;
  border-radius: 16px !important;
  box-shadow: 0 22px 60px rgba(24, 42, 47, 0.24) !important;
  color: #26363b !important;
  max-width: min(390px, calc(100vw - 28px)) !important;
  padding: 0 !important;
  width: 100% !important;
}

body.invoice-page .custom-order-pickup-confirm::backdrop {
  backdrop-filter: blur(3px) !important;
  background: rgba(17, 34, 39, 0.48) !important;
}

body.invoice-page .custom-order-pickup-confirm form {
  align-items: center !important;
  display: grid !important;
  gap: 10px !important;
  justify-items: center !important;
  padding: 20px !important;
  text-align: center !important;
}

body.invoice-page .custom-order-pickup-confirm-icon {
  align-items: center !important;
  background: #fff0dc !important;
  border-radius: 50% !important;
  color: #8a4b08 !important;
  display: inline-flex !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  height: 42px !important;
  justify-content: center !important;
  width: 42px !important;
}

body.invoice-page .custom-order-pickup-confirm h2 {
  color: #26363b !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
}

body.invoice-page .custom-order-pickup-confirm p {
  color: #52666d !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body.invoice-page .custom-order-pickup-confirm p strong {
  color: #8a4b08 !important;
}

body.invoice-page .custom-order-pickup-confirm form > div {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: 4px !important;
  width: 100% !important;
}

body.invoice-page .custom-order-pickup-confirm button {
  border: 1px solid #b9d1ce !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
}

body.invoice-page .custom-order-pickup-confirm [data-cancel-pickup-confirm] {
  background: #ffffff !important;
  color: #425158 !important;
}

body.invoice-page .custom-order-pickup-confirm [data-accept-pickup-confirm] {
  background: #0f8f86 !important;
  border-color: #0f8f86 !important;
  color: #ffffff !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form input[readonly] {
  background: #edf5f4 !important;
  border-color: #c4d8d5 !important;
  color: #34454b !important;
  cursor: default !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form > label {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form label > small {
  color: #60757b !important;
  font-size: 0.69rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  margin-top: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup [data-pickup-submit] {
  align-items: center !important;
  display: inline-flex !important;
  gap: 8px !important;
  justify-content: center !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup [data-pickup-submit] i {
  animation: custom-order-pickup-spin 0.7s linear infinite !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 50% !important;
  border-top-color: #ffffff !important;
  display: none !important;
  height: 16px !important;
  width: 16px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup [data-pickup-submit][aria-busy="true"] i {
  display: block !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup [data-pickup-submit]:disabled {
  cursor: wait !important;
  opacity: 0.78 !important;
}

@keyframes custom-order-pickup-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="pickup"] {
    padding-bottom: calc(168px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .invoice-builder-head,
  body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .invoice-builder-head {
    min-height: 52px !important;
    padding: 10px 14px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] .custom-order-page-title,
  body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) .custom-order-page-title {
    font-size: 1.2rem !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .custom-order-tabs,
  body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs {
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="pickup"] > .custom-order-tabs a,
  body.invoice-page .custom-orders-page:has(#custom-order-pickup:target) > .custom-order-tabs a {
    border-radius: 10px !important;
    font-size: 0.72rem !important;
    min-height: 40px !important;
    padding: 6px 5px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup {
    padding: 8px 0 calc(168px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head {
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .packing-panel-head h2 {
    font-size: 1rem !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-list {
    gap: 10px !important;
    padding-bottom: calc(44px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-card {
    border-left-width: 3px !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 14px rgba(38, 52, 58, 0.06) !important;
    padding: 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form {
    gap: 10px !important;
    padding: 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form input,
  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form select,
  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-form .invoice-print-button {
    border-radius: 10px !important;
    min-height: 46px !important;
  }
}

/* Pesanan Custom Sablon: per-product quantities and attached print history. */
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-remaining {
  color: #0b746d !important;
  display: block !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  margin-top: 4px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress {
  background: #eaf6f4 !important;
  border: 1px solid rgba(15, 143, 134, 0.14) !important;
  border-radius: 9px !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 8px !important;
  overflow: hidden !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress > span {
  border-left: 1px solid rgba(15, 143, 134, 0.14) !important;
  color: #60757b !important;
  display: grid !important;
  font-size: 0.74rem !important;
  gap: 2px !important;
  padding: 7px 8px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress > span:first-child {
  border-left: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress b {
  color: #172126 !important;
  font-size: 0.9rem !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-log {
  border-top: 1px dashed rgba(15, 143, 134, 0.18) !important;
  display: grid !important;
  gap: 4px !important;
  margin-top: 8px !important;
  padding-top: 7px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-log small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched > small {
  color: #60757b !important;
  display: block !important;
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched {
  background: #fff8e8 !important;
  border-color: rgba(185, 119, 0, 0.22) !important;
  display: grid !important;
  gap: 5px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched > b {
  color: #8a5b00 !important;
  font-size: 0.8rem !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress > span {
    padding: 6px !important;
  }
}

/* Pesanan Custom Sablon history: compact mobile hierarchy and readable accordion. */
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filter-label,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-chip,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-reset {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filter-label {
  color: #60757b;
  padding: 5px 2px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-chip {
  background: #e8f5f3;
  border: 1px solid rgba(15, 143, 134, 0.2);
  color: #0d756e;
  min-height: 32px;
  padding: 6px 10px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-reset {
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.28);
  color: #0d756e;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  text-decoration: none;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-summary {
  grid-template-columns: minmax(0, 1fr) auto 44px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main {
  align-items: center;
  display: grid;
  gap: 5px 10px;
  grid-template-columns: auto minmax(90px, 0.7fr) minmax(120px, 1fr);
  min-width: 0;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-product {
  color: #60757b;
  font-size: 0.78rem;
  font-weight: 750;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-quantity {
  color: #26363b;
  font-size: 0.78rem;
  font-weight: 850;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-chevron {
  align-self: center;
  background: #f4fbfa;
  border: 1px solid rgba(15, 143, 134, 0.18);
  border-radius: 50%;
  box-sizing: border-box;
  height: 34px;
  justify-self: center;
  padding: 7px;
  transition: transform 160ms ease, background-color 160ms ease;
  width: 34px;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-chevron path {
  fill: none;
  stroke: #0d756e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] .custom-order-sablon-summary-chevron {
  background: #d8eeeb;
  transform: rotate(180deg);
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head {
    border-radius: 12px !important;
    min-height: 48px !important;
    padding: 8px 12px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] .custom-order-page-title,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) .custom-order-page-title {
    font-size: 1.18rem !important;
    line-height: 1 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs {
    gap: 6px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a,
  body.invoice-page .custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a {
    border-radius: 10px !important;
    font-size: 0.72rem !important;
    min-height: 44px !important;
    padding: 6px 5px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
    background: #edf7f6 !important;
    border: 1px solid rgba(15, 143, 134, 0.13) !important;
    border-radius: 12px !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
    border-color: transparent !important;
    border-radius: 9px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-toolbar {
    gap: 6px;
    min-height: 44px;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-toggle {
    min-height: 44px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filters {
    flex-wrap: nowrap;
    margin: 0 -2px 2px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filters::-webkit-scrollbar {
    display: none;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filter-label,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-chip,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-reset {
    flex: 0 0 auto;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-list {
    gap: 8px !important;
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] {
    border-radius: 12px !important;
    box-shadow: inset 3px 0 0 #0f8f86, 0 4px 12px rgba(38, 52, 58, 0.05) !important;
    overflow: hidden !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-summary {
    align-items: center !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    min-height: 64px !important;
    padding: 9px 8px 9px 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main {
    gap: 6px;
    grid-template-columns: auto minmax(54px, 0.65fr) minmax(64px, 1fr);
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-meta {
    gap: 7px;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-meta .custom-order-design-designer {
    display: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-quantity {
    font-size: 0.72rem !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-chevron {
    height: 32px;
    width: 32px;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
    padding: 6px 9px 9px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
    gap: 2px 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
    min-height: 48px !important;
    padding: 6px 5px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid small {
    font-size: 0.7rem !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid b {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-pager {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 420px) {
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main .custom-order-design-name {
    display: none !important;
  }
}

/* Pesanan Custom Sablon: searchable product picker and compact mobile disclosure. */
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-field,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-picker {
  min-width: 0 !important;
  position: relative !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon [data-sablon-product-search] {
  box-sizing: border-box !important;
  display: block !important;
  font: inherit !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
  min-height: 52px !important;
  overflow: hidden !important;
  padding: 7px 12px !important;
  resize: none !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options {
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 134, 0.24) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px rgba(38, 52, 58, 0.14) !important;
  box-sizing: border-box !important;
  display: grid !important;
  gap: 2px !important;
  left: 0 !important;
  max-height: min(240px, 42vh) !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 4px !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 4px) !important;
  width: 100% !important;
  z-index: 30 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options[hidden] {
  display: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button {
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #172126 !important;
  display: -webkit-box !important;
  font: inherit !important;
  line-height: 1.25 !important;
  min-height: 44px !important;
  overflow: hidden !important;
  padding: 7px 10px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button:focus-visible {
  background: #e8f5f3 !important;
  color: #0b6862 !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-empty {
  color: #60757b !important;
  padding: 10px !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"],
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) {
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page #custom-order-sablon,
  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] #custom-order-sablon {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(15, 143, 134, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    gap: 8px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a {
    background: #ffffff !important;
    border: 1px solid #cbdcda !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #26363b !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a.active {
    background: #0f8f86 !important;
    border-color: #0f8f86 !important;
    color: #ffffff !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-view-content,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list {
    gap: 8px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-list {
    padding-bottom: 108px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open] {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(15, 143, 134, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: inset 3px 0 0 #0f8f86 !important;
    overflow: visible !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary {
    cursor: pointer !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 88px !important;
    padding: 10px 12px 10px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-summary::after {
    content: none !important;
    display: none !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-code,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-name {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-designer {
    grid-column: 1 !important;
    margin-top: 2px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-date {
    align-self: center !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
    background: #fbfefe !important;
    padding: 8px 10px 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid {
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(15, 143, 134, 0.12) !important;
    border-radius: 0 !important;
    min-height: 50px !important;
    padding: 6px 4px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin-top: 8px !important;
    padding: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form > form > div {
    background: transparent !important;
    border: 0 !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-field {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form input,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form textarea,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form button {
    min-height: 44px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-detail-form .cashier-action-button {
    margin-top: 8px !important;
    min-height: 44px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total {
    background: #eaf6f4 !important;
    border: 1px solid rgba(15, 143, 134, 0.15) !important;
    border-radius: 10px !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 8px !important;
    padding: 6px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total span {
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid rgba(15, 143, 134, 0.14) !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 5px 7px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total span:first-child {
    border-left: 0 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total small,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total b {
    overflow-wrap: anywhere !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:last-child {
    margin-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

/* Keep the history-specific compact layout above generic sablon card rules. */
@media (max-width: 720px) {
  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] > .invoice-builder-head,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .invoice-builder-head {
    min-height: 48px !important;
    padding: 8px 12px !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] .custom-order-page-title,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) .custom-order-page-title {
    font-size: 1.18rem !important;
    line-height: 1 !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs,
  body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs {
    gap: 6px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] > .custom-order-tabs a,
body.invoice-page .custom-orders-page.custom-orders-page:has(#custom-order-sablon:target) > .custom-order-tabs a {
    font-size: 0.72rem !important;
    min-height: 44px !important;
    padding: 6px 5px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] {
    box-shadow: inset 3px 0 0 #0f8f86, 0 4px 12px rgba(38, 52, 58, 0.05) !important;
    overflow: hidden !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-summary {
    align-items: center !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    min-height: 64px !important;
    padding: 9px 8px 9px 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main .custom-order-design-code,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-main .custom-order-design-name {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-detail {
    padding: 6px 9px 9px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid {
    gap: 2px 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card .custom-order-design-grid section {
    min-height: 48px !important;
    padding: 6px 5px !important;
  }
}

/* Contextual guides are globally disabled while their markup stays available for a future re-enable. */
.page-guide-fab,
[data-page-guide-trigger],
.custom-order-guide-dialog,
.packing-guide-modal,
.system-issue-guide-dialog,
.sewing-guide-dialog,
.schedule-score-guide {
  display: none !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-submit-feedback {
  border-radius: 10px;
  display: block;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.4;
  padding: 9px 10px;
  white-space: normal;
  width: 100%;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-submit-feedback[data-kind="error"] {
  background: #fcebed;
  color: #a13343 !important;
}

body.invoice-page .cashier-purchases-page .cashier-purchase-submit-feedback[data-kind="progress"] {
  background: #e8f7ef;
  color: #076348 !important;
}

/* Contextual page guide launcher shared by every role-aware page guide. */
.page-guide-fab {
  position: fixed;
  z-index: 1180;
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ui-primary, #0f958c) 54%, #ffffff) !important;
  border-radius: 50%;
  background: var(--ui-primary, #0f958c) !important;
  box-shadow: 0 12px 30px rgba(8, 62, 60, 0.28), 0 0 0 5px rgba(255, 255, 255, 0.82);
  color: var(--ui-on-primary, #ffffff) !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-guide-fab[hidden] {
  display: none !important;
}

.page-guide-fab:hover,
.page-guide-fab:focus-visible {
  border-color: var(--ui-focus, #0b736c) !important;
  background: var(--ui-primary-hover, #087d75) !important;
  box-shadow: 0 14px 34px rgba(8, 62, 60, 0.34), 0 0 0 6px color-mix(in srgb, var(--ui-focus, #0b736c) 20%, #ffffff);
  outline: 0;
  transform: translateY(-1px);
}

.page-guide-fab.is-dragging {
  cursor: grabbing;
  opacity: 0.92;
  transform: scale(1.05);
  transition: none;
}

.page-guide-fab svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-guide-fab-label {
  position: absolute;
  right: 4px;
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(20, 35, 40, 0.9);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.page-guide-fab:hover .page-guide-fab-label,
.page-guide-fab:focus-visible .page-guide-fab-label {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .page-guide-fab {
    width: 54px;
    height: 54px;
    box-shadow: 0 10px 26px rgba(8, 62, 60, 0.26), 0 0 0 4px rgba(255, 255, 255, 0.8);
  }

  .page-guide-fab svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-guide-fab,
  .page-guide-fab-label {
    transition: none;
  }
}

/* Riwayat Pesanan mobile: one document scroller, no viewport-locked containers. */
@media (max-width: 720px) {
  html[data-custom-order-view="history"],
  body.invoice-page.custom-orders-route[data-custom-order-view="history"] {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }

  body.invoice-page.custom-orders-route[data-custom-order-view="history"] .shell,
  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="history"],
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .cashier-workspace,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-list {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    scrollbar-gutter: auto !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page.custom-orders-page[data-active-custom-order-view="history"] {
    display: block !important;
    padding: 8px 8px calc(112px + env(safe-area-inset-bottom)) !important;
    touch-action: pan-y !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .invoice-builder-head {
    height: auto !important;
    margin: 0 0 6px !important;
    min-height: 48px !important;
    padding: 8px 12px !important;
    position: static !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-page-title {
    font-size: 1.18rem !important;
    line-height: 1.1 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs {
    gap: 6px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    position: static !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a {
    border-radius: 10px !important;
    font-size: 0.68rem !important;
    min-height: 38px !important;
    padding: 5px 4px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a:not(.active) {
    background: #ffffff !important;
    border-color: #cbdcda !important;
    color: #26363b !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a.active,
  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] > .custom-order-tabs a[aria-current="page"] {
    background: #0f8f86 !important;
    border-color: #0f8f86 !important;
    color: #ffffff !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] #custom-order-history {
    display: block !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-results {
    align-items: center !important;
    background: #edf8f6 !important;
    border: 1px solid #c7e3df !important;
    border-radius: 10px !important;
    color: #31565a !important;
    display: flex !important;
    font-size: 0.74rem !important;
    justify-content: space-between !important;
    margin: 0 0 8px !important;
    padding: 7px 10px !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-results strong {
    color: #087d75 !important;
    font-size: 0.76rem !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-list {
    display: grid !important;
    gap: 8px !important;
    padding: 0 !important;
    touch-action: pan-y !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-card {
    min-height: 0 !important;
  }

  body.invoice-page .custom-orders-page[data-active-custom-order-view="history"] .custom-order-history-summary {
    min-height: 68px !important;
    padding: 9px 10px !important;
  }

  body.invoice-page.custom-orders-route[data-custom-order-view="history"] > .custom-order-history-filter-fab {
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    position: fixed !important;
    right: 14px !important;
    z-index: 500 !important;
  }
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--ui-shadow-soft) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress strong,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty strong {
  color: var(--ui-text) !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress p,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty > small,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress li,
body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row small {
  color: var(--ui-text-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress ul {
  display: grid !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-progress li {
  background: var(--ui-primary-soft) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 10px !important;
  color: var(--ui-text) !important;
  padding: 8px 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row {
  align-items: center !important;
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 12px !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.22fr) !important;
  padding: 10px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row span {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row b {
  color: var(--ui-text) !important;
  font-size: 0.86rem !important;
  overflow-wrap: anywhere !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row label {
  color: var(--ui-text-muted) !important;
  display: grid !important;
  font-size: 0.72rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  gap: 5px !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row em {
  color: var(--ui-text-muted) !important;
  font-style: normal !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row input[type="number"] {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 10px !important;
  color: var(--ui-text) !important;
  font-weight: 850 !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row input[type="number"]:focus {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 0 0 3px var(--ui-primary-soft) !important;
  outline: none !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page #custom-order-pickup .custom-order-pickup-qty-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 720px) {
  body.invoice-page .cashier-cash-out-page .cash-out-history-toolbar {
    justify-content: center !important;
    padding-right: 0 !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-filter {
    margin-left: 0 !important;
  }

  body.invoice-page .cashier-cash-out-page .cash-out-history-filter form {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 32px)) !important;
  }
}

/* Pesanan Custom: force product editor modal onto viewport. Colors remain theme-token driven. */
body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open],
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  height: auto !important;
  inset: 50% auto auto 50% !important;
  margin: 0 !important;
  max-height: calc(100dvh - 24px) !important;
  max-width: calc(100vw - 24px) !important;
  min-width: min(680px, calc(100vw - 24px)) !important;
  overflow: visible !important;
  padding: 0 !important;
  position: fixed !important;
  transform: translate(-50%, -50%) !important;
  width: min(680px, calc(100vw - 24px)) !important;
  z-index: 2147483647 !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open]::backdrop,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open]::backdrop {
  background: var(--ui-overlay) !important;
  backdrop-filter: blur(4px) !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-dialog,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-dialog {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: var(--ui-shadow-modal) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: auto !important;
  max-height: calc(100dvh - 24px) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-head,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-head {
  background: var(--ui-surface) !important;
  border-bottom: 1px solid var(--ui-border) !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 14px 16px !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body {
  background: var(--ui-surface) !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 14px 16px 18px !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body > *,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body > * {
  min-width: 0 !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-filter-results,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-filter-results {
  max-height: min(280px, 38dvh) !important;
  overflow: auto !important;
}

body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-actions,
html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-actions {
  background: var(--ui-surface) !important;
  border-top: 1px solid var(--ui-border) !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) !important;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 620px) {
  body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open],
  html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] {
    max-height: calc(100dvh - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
  }

  body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-dialog,
  html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-dialog {
    border-radius: var(--ui-radius-md) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body,
  html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-modal-body {
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 12px 14px 16px !important;
  }

  body.invoice-page.custom-orders-route .custom-orders-page .custom-order-product-editor[open] .custom-order-product-actions,
  html.custom-orders-route body.invoice-page .custom-orders-page .custom-order-product-editor[open] .custom-order-product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom)) !important;
  }
}

/* Chat message note anchors. */
body.chat-page .chat-note-jump,
body.chat-panel-embed .chat-note-jump {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

body.chat-page .chat-note-jump:disabled,
body.chat-panel-embed .chat-note-jump:disabled {
  cursor: default;
}

body.chat-page .chat-customer-followup-pin.has-message-target,
body.chat-panel-embed .chat-customer-followup-pin.has-message-target {
  cursor: pointer;
}

body.chat-page .chat-customer-followup-pin.has-message-target:focus-within,
body.chat-panel-embed .chat-customer-followup-pin.has-message-target:focus-within {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

body.chat-page .chat-message-note-form,
body.chat-panel-embed .chat-message-note-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

body.chat-page .bubble.inbound .chat-message-note-form,
body.chat-panel-embed .bubble.inbound .chat-message-note-form {
  justify-content: flex-start;
}

body.chat-page .chat-message-note-form button,
body.chat-panel-embed .chat-message-note-form button {
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-primary);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 28px;
  padding: 4px 10px;
}

body.chat-page .chat-message-note-form button:hover,
body.chat-page .chat-message-note-form button:focus-visible,
body.chat-panel-embed .chat-message-note-form button:hover,
body.chat-panel-embed .chat-message-note-form button:focus-visible {
  background: var(--ui-primary-soft);
  border-color: var(--ui-primary-border);
  color: var(--ui-primary-hover);
  outline: 0;
}


/* Chat bubble contextual actions. */
body.chat-page .chat-bubble-action-menu,
body.chat-panel-embed .chat-bubble-action-menu {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  box-shadow: var(--ui-shadow-modal);
  display: flex;
  gap: 6px;
  left: 0;
  padding: 6px;
  position: fixed;
  top: 0;
  z-index: 90;
}

body.chat-page .chat-bubble-action-menu[hidden],
body.chat-panel-embed .chat-bubble-action-menu[hidden],
body.chat-page .chat-bubble-action[hidden],
body.chat-panel-embed .chat-bubble-action[hidden] {
  display: none !important;
}

body.chat-page .chat-bubble-action,
body.chat-panel-embed .chat-bubble-action {
  align-items: center;
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-text);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
}

body.chat-page .chat-bubble-action svg,
body.chat-panel-embed .chat-bubble-action svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

body.chat-page .chat-bubble-action span,
body.chat-panel-embed .chat-bubble-action span {
  font-size: 0.78rem;
  font-weight: 800;
}

body.chat-page .chat-bubble-action:disabled,
body.chat-panel-embed .chat-bubble-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

body.chat-page .chat-bubble-action:hover,
body.chat-page .chat-bubble-action:focus-visible,
body.chat-panel-embed .chat-bubble-action:hover,
body.chat-panel-embed .chat-bubble-action:focus-visible {
  background: var(--ui-primary-soft);
  border-color: var(--ui-primary-border);
  color: var(--ui-primary-hover);
  outline: 0;
}

body.chat-page .bubble.bubble-action-active,
body.chat-panel-embed .bubble.bubble-action-active {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}

body.chat-page .chat-note-modal-backdrop,
body.chat-panel-embed .chat-note-modal-backdrop {
  align-items: center;
  background: var(--ui-overlay);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  position: fixed;
  z-index: 100;
}

body.chat-page .chat-note-modal-backdrop[hidden],
body.chat-panel-embed .chat-note-modal-backdrop[hidden] {
  display: none !important;
}

body.chat-page .chat-note-modal,
body.chat-panel-embed .chat-note-modal {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-modal);
  color: var(--ui-text);
  display: grid;
  gap: 14px;
  max-height: min(88dvh, 620px);
  max-width: min(440px, calc(100vw - 28px));
  overflow: auto;
  padding: 18px;
  width: 100%;
}

body.chat-page .chat-note-modal-head,
body.chat-panel-embed .chat-note-modal-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

body.chat-page .chat-note-modal-head span,
body.chat-panel-embed .chat-note-modal-head span {
  color: var(--ui-primary);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.chat-page .chat-note-modal-head h2,
body.chat-panel-embed .chat-note-modal-head h2 {
  color: var(--ui-text);
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 3px 0 0;
}

body.chat-page .chat-note-modal-close,
body.chat-panel-embed .chat-note-modal-close {
  align-items: center;
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-primary);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.35rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

body.chat-page .chat-note-field,
body.chat-panel-embed .chat-note-field {
  display: grid;
  gap: 7px;
}

body.chat-page .chat-note-field span,
body.chat-panel-embed .chat-note-field span {
  color: var(--ui-text);
  font-size: 0.84rem;
  font-weight: 800;
}

body.chat-page .chat-note-field textarea,
body.chat-panel-embed .chat-note-field textarea {
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text);
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

body.chat-page .chat-note-field textarea:focus,
body.chat-panel-embed .chat-note-field textarea:focus {
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 3px var(--ui-focus);
  outline: 0;
}

body.chat-page .chat-note-source,
body.chat-panel-embed .chat-note-source {
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-height: 118px;
  overflow: auto;
  padding: 10px 12px;
}

body.chat-page .chat-note-actions,
body.chat-panel-embed .chat-note-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

body.chat-page .chat-note-actions button,
body.chat-panel-embed .chat-note-actions button {
  border-radius: var(--ui-radius-md);
  cursor: pointer;
  font-weight: 850;
  min-height: 42px;
  padding: 10px 12px;
}

body.chat-page .chat-note-cancel,
body.chat-panel-embed .chat-note-cancel {
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
}

body.chat-page .chat-note-save,
body.chat-panel-embed .chat-note-save {
  background: var(--ui-primary);
  border: 1px solid var(--ui-primary-border);
  color: var(--ui-on-primary);
}

body.chat-page .chat-note-actions button:hover,
body.chat-page .chat-note-actions button:focus-visible,
body.chat-page .chat-note-modal-close:hover,
body.chat-page .chat-note-modal-close:focus-visible,
body.chat-panel-embed .chat-note-actions button:hover,
body.chat-panel-embed .chat-note-actions button:focus-visible,
body.chat-panel-embed .chat-note-modal-close:hover,
body.chat-panel-embed .chat-note-modal-close:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
  outline: 0;
}

body.chat-page .chat-message-note-form,
body.chat-panel-embed .chat-message-note-form,
body.chat-page .translate-message-button,
body.chat-panel-embed .translate-message-button {
  display: none !important;
}

@media (max-width: 520px) {
  body.chat-page .chat-bubble-action-menu,
  body.chat-panel-embed .chat-bubble-action-menu {
    gap: 5px;
    max-width: calc(100vw - 20px);
  }

  body.chat-page .chat-bubble-action,
  body.chat-panel-embed .chat-bubble-action {
    min-height: 42px;
    padding: 8px 10px;
  }

  body.chat-page .chat-bubble-action span,
  body.chat-panel-embed .chat-bubble-action span {
    font-size: 0.74rem;
  }

  body.chat-page .chat-note-modal,
  body.chat-panel-embed .chat-note-modal {
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }

  body.chat-page .chat-note-actions,
  body.chat-panel-embed .chat-note-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Chat pin compact polish. */
body.chat-page .chat-pin-stack,
body.chat-panel-embed .chat-pin-stack {
  background: var(--ui-warning-soft) !important;
  border-bottom: 1px solid var(--ui-primary-border) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 0 !important;
  grid-area: chat-followup !important;
  max-height: min(30dvh, 168px) !important;
  min-width: 0 !important;
  overflow: hidden auto !important;
  position: relative !important;
  scrollbar-color: var(--ui-primary) var(--ui-surface-soft) !important;
  z-index: 4 !important;
}

body.chat-page .chat-pin-stack::-webkit-scrollbar,
body.chat-panel-embed .chat-pin-stack::-webkit-scrollbar {
  width: 8px !important;
}

body.chat-page .chat-pin-stack::-webkit-scrollbar-track,
body.chat-panel-embed .chat-pin-stack::-webkit-scrollbar-track {
  background: var(--ui-surface-soft) !important;
}

body.chat-page .chat-pin-stack::-webkit-scrollbar-thumb,
body.chat-panel-embed .chat-pin-stack::-webkit-scrollbar-thumb {
  background: var(--ui-primary) !important;
  border-radius: 999px !important;
}

body.chat-page .chat-pin-collapse,
body.chat-panel-embed .chat-pin-collapse {
  align-items: center !important;
  background: var(--ui-warning-soft) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-primary-border) !important;
  border-radius: 0 !important;
  color: var(--ui-warning-strong) !important;
  cursor: pointer !important;
  display: flex !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  gap: 8px !important;
  justify-content: space-between !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  min-height: 34px !important;
  padding: 8px 16px !important;
  text-align: left !important;
  text-transform: uppercase !important;
  width: 100% !important;
}

body.chat-page .chat-pin-collapse svg,
body.chat-panel-embed .chat-pin-collapse svg {
  fill: none !important;
  flex: 0 0 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  transition: transform 160ms ease !important;
  width: 18px !important;
}

body.chat-page .chat-pin-stack.is-collapsed .chat-pin-collapse svg,
body.chat-panel-embed .chat-pin-stack.is-collapsed .chat-pin-collapse svg {
  transform: rotate(180deg) !important;
}

body.chat-page .chat-pin-content,
body.chat-panel-embed .chat-pin-content {
  display: grid !important;
  min-width: 0 !important;
}

body.chat-page .chat-pin-stack.is-collapsed .chat-pin-content,
body.chat-panel-embed .chat-pin-stack.is-collapsed .chat-pin-content {
  display: none !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin,
body.chat-page .chat-pin-stack .chat-customer-followup-pin,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin {
  align-items: center !important;
  background: var(--ui-warning-soft) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-primary-border) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 10px 16px !important;
}

body.chat-page .chat-pin-stack .chat-note-jump,
body.chat-panel-embed .chat-pin-stack .chat-note-jump {
  align-items: start !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer !important;
  display: grid !important;
  gap: 3px !important;
  height: auto !important;
  justify-content: stretch !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  width: 100% !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin > div,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin > div {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin span,
body.chat-page .chat-pin-stack .chat-customer-followup-pin span,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin span,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin span {
  color: var(--ui-warning-strong) !important;
  display: block !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin p,
body.chat-page .chat-pin-stack .chat-customer-followup-pin p,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin p,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin p {
  color: var(--ui-text) !important;
  display: -webkit-box !important;
  font-size: 0.92rem !important;
  font-weight: 780 !important;
  line-height: 1.28 !important;
  margin: 0 !important;
  max-height: 2.6em !important;
  min-width: 0 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin small,
body.chat-page .chat-pin-stack .chat-customer-followup-pin small,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin small,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin small {
  color: var(--ui-text-muted) !important;
  display: block !important;
  font-size: 0.74rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin form,
body.chat-page .chat-pin-stack .chat-customer-followup-pin form,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin form,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin form {
  margin: 0 !important;
}

body.chat-page .chat-pin-stack .chat-followup-pin > form > button,
body.chat-page .chat-pin-stack .chat-customer-followup-pin > form > button,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin > form > button,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin > form > button {
  align-items: center !important;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-primary-border) !important;
  border-radius: 999px !important;
  color: var(--ui-warning-strong) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  font-size: 1.16rem !important;
  font-weight: 900 !important;
  height: 38px !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 38px !important;
}

body.chat-page .chat-pin-collapse:hover,
body.chat-page .chat-pin-collapse:focus-visible,
body.chat-page .chat-pin-stack .chat-note-jump:hover,
body.chat-page .chat-pin-stack .chat-note-jump:focus-visible,
body.chat-page .chat-pin-stack .chat-followup-pin > form > button:hover,
body.chat-page .chat-pin-stack .chat-followup-pin > form > button:focus-visible,
body.chat-page .chat-pin-stack .chat-customer-followup-pin > form > button:hover,
body.chat-page .chat-pin-stack .chat-customer-followup-pin > form > button:focus-visible,
body.chat-panel-embed .chat-pin-collapse:hover,
body.chat-panel-embed .chat-pin-collapse:focus-visible,
body.chat-panel-embed .chat-pin-stack .chat-note-jump:hover,
body.chat-panel-embed .chat-pin-stack .chat-note-jump:focus-visible,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin > form > button:hover,
body.chat-panel-embed .chat-pin-stack .chat-followup-pin > form > button:focus-visible,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin > form > button:hover,
body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin > form > button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline: 0 !important;
}

@media (max-width: 640px) {
  body.chat-page .chat-pin-stack,
  body.chat-panel-embed .chat-pin-stack {
    max-height: min(28dvh, 132px) !important;
  }

  body.chat-page .chat-pin-collapse,
  body.chat-panel-embed .chat-pin-collapse {
    min-height: 32px !important;
    padding: 7px 14px !important;
  }

  body.chat-page .chat-pin-stack .chat-followup-pin,
  body.chat-page .chat-pin-stack .chat-customer-followup-pin,
  body.chat-panel-embed .chat-pin-stack .chat-followup-pin,
  body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin {
    gap: 8px !important;
    padding: 8px 12px !important;
  }

  body.chat-page .chat-pin-stack .chat-followup-pin p,
  body.chat-page .chat-pin-stack .chat-customer-followup-pin p,
  body.chat-panel-embed .chat-pin-stack .chat-followup-pin p,
  body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin p {
    font-size: 0.86rem !important;
    -webkit-line-clamp: 1 !important;
  }

  body.chat-page .chat-pin-stack .chat-followup-pin > form > button,
  body.chat-page .chat-pin-stack .chat-customer-followup-pin > form > button,
  body.chat-panel-embed .chat-pin-stack .chat-followup-pin > form > button,
  body.chat-panel-embed .chat-pin-stack .chat-customer-followup-pin > form > button {
    flex-basis: 34px !important;
    height: 34px !important;
    width: 34px !important;
  }
}


/* Chat bubble action menu translation visibility. */
body.chat-page .chat-bubble-action-menu,
body.chat-panel-embed .chat-bubble-action-menu {
  flex-wrap: wrap !important;
  max-width: min(360px, calc(100vw - 20px)) !important;
}

body.chat-page .chat-bubble-action,
body.chat-panel-embed .chat-bubble-action {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

@media (max-width: 420px) {
  body.chat-page .chat-bubble-action-menu,
  body.chat-panel-embed .chat-bubble-action-menu {
    border-radius: var(--ui-radius-md) !important;
  }

  body.chat-page .chat-bubble-action,
  body.chat-panel-embed .chat-bubble-action {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
  }
}


/* Chat customer info in action menu. */
body.chat-page .chat-customer-info-section,
body.chat-panel-embed .chat-customer-info-section {
  gap: 10px !important;
}

body.chat-page .chat-customer-info-grid,
body.chat-panel-embed .chat-customer-info-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-width: 0 !important;
}

body.chat-page .chat-customer-info-grid .chat-customer-info-card,
body.chat-panel-embed .chat-customer-info-grid .chat-customer-info-card {
  background: var(--ui-surface-soft) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-md) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 12px !important;
  text-decoration: none !important;
}

body.chat-page .chat-customer-info-grid a.chat-customer-info-card,
body.chat-panel-embed .chat-customer-info-grid a.chat-customer-info-card {
  cursor: pointer !important;
  transition: background var(--ui-transition-fast), border-color var(--ui-transition-fast), box-shadow var(--ui-transition-fast), transform var(--ui-transition-fast) !important;
}

body.chat-page .chat-customer-info-grid a.chat-customer-info-card:hover,
body.chat-panel-embed .chat-customer-info-grid a.chat-customer-info-card:hover,
body.chat-page .chat-customer-info-grid a.chat-customer-info-card:focus-visible,
body.chat-panel-embed .chat-customer-info-grid a.chat-customer-info-card:focus-visible {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

body.chat-page .chat-customer-info-grid .chat-customer-info-card > span,
body.chat-panel-embed .chat-customer-info-grid .chat-customer-info-card > span {
  color: var(--ui-text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.chat-page .chat-customer-info-grid strong,
body.chat-panel-embed .chat-customer-info-grid strong {
  color: var(--ui-primary-hover) !important;
  font-size: clamp(1rem, 2vw, 1.24rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

body.chat-page .chat-customer-info-grid small,
body.chat-panel-embed .chat-customer-info-grid small {
  color: var(--ui-text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 680px) {
  body.chat-page .chat-customer-info-grid,
  body.chat-panel-embed .chat-customer-info-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Kas Masuk compact cashier workflow polish. */
body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page{gap:12px!important;padding-top:28px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head{align-items:center!important;display:flex!important;gap:18px!important;justify-content:space-between!important;min-height:0!important;padding:18px 28px!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title{align-items:center!important;display:flex!important;gap:14px!important;min-width:0!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title>div{display:grid!important;gap:2px!important;min-width:0!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title h1{font-size:clamp(2rem,4vw,3.05rem)!important;line-height:1!important;margin:0!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title p{color:#5b6d73!important;font-size:.9rem!important;font-weight:700!important;margin:0!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary{display:grid!important;flex:0 1 520px!important;gap:8px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary span{background:#f4faf9!important;border:1px solid #d7e8e5!important;border-radius:10px!important;display:grid!important;gap:3px!important;min-width:0!important;padding:10px 12px!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary small{color:#61737a!important;font-size:.72rem!important;font-weight:800!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary b{color:#0b7e76!important;font-size:.98rem!important;overflow-wrap:anywhere!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs{background:#fff!important;border:1px solid #d7e8e5!important;border-radius:14px!important;box-shadow:0 12px 28px rgba(21,79,82,.08)!important;display:grid!important;gap:6px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:6px!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a{align-items:center!important;border-radius:10px!important;box-shadow:none!important;display:flex!important;gap:8px!important;justify-content:center!important;min-height:48px!important;padding:8px 10px!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a::before{display:none!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs span{font-size:.95rem!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs small{color:inherit!important;font-size:.72rem!important;opacity:.72!important;white-space:nowrap!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a.active{background:#e9f8f6!important;border-color:#8fd1cb!important;color:#087d75!important}body.invoice-page .cashier-cash-in-skin-page .cashier-workspace-single,body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{margin-top:0!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{padding:18px 22px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form{gap:12px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form>label{gap:7px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form>label:has(:required)::after,body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor label:has(:required)::after{background:#e9f8f6!important;border:1px solid #a9deda!important;border-radius:999px!important;color:#087d75!important;content:"Wajib"!important;display:inline-flex!important;font-size:.66rem!important;font-weight:900!important;justify-self:start!important;line-height:1!important;padding:4px 7px!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-form-status{margin:0!important;padding:10px 12px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block{border-radius:12px!important;gap:12px!important;min-height:0!important;padding:16px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head{margin-bottom:2px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head strong{font-size:1.05rem!important}body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head small{font-size:.84rem!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-line{margin-top:8px!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor{gap:10px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor>:is([data-receipt-proof-wrap],.cash-out-category-actions,.cash-out-payment-actions,.cash-in-order-code-field){grid-column:1/-1!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor :is(input,select,.cash-out-combobox-trigger){min-height:44px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row{align-items:center!important;display:flex!important;justify-content:flex-end!important;min-height:0!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button{align-items:center!important;border-radius:10px!important;display:inline-flex!important;gap:8px!important;height:auto!important;min-height:44px!important;padding:10px 14px!important;width:auto!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button svg{flex:0 0 18px!important;height:18px!important;width:18px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button span{font-size:.88rem!important;font-weight:900!important;white-space:nowrap!important}@media (max-width:900px){body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head{align-items:stretch!important;flex-direction:column!important;padding:16px!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary{flex-basis:auto!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (max-width:560px){body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page{padding:8px 8px 76px!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title{align-items:flex-start!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title h1{font-size:2rem!important}body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary,body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor{grid-template-columns:1fr!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a{flex-direction:column!important;gap:2px!important;min-height:52px!important}body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{padding:12px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block{padding:12px!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row,body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button{width:100%!important}body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button{justify-content:center!important}}
/* Kas Masuk final mobile and desktop workflow correction. */
body.invoice-page .cashier-cash-in-skin-page > .invoice-builder-head,
body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs,
body.invoice-page .cashier-cash-in-skin-page .cashier-workspace-single,
body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{
  position: static !important;
  top: auto !important;
  inset: auto !important;
  transform: none !important;
}
body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page{
  gap: 10px !important;
  padding-top: 18px !important;
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head{
  align-items: center !important;
  border-radius: 16px !important;
  gap: 14px !important;
  padding: 14px 18px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title h1{
  font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title p{
  max-width: 36rem !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 520px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary span{
  border-radius: 9px !important;
  padding: 8px 10px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs{
  border-radius: 13px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 5px !important;
  z-index: auto !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a{
  min-height: 42px !important;
  overflow: hidden !important;
  padding: 8px 6px !important;
  text-align: center !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs span{
  display: block !important;
  font-size: .9rem !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs small{
  display: none !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{
  border-radius: 15px !important;
  padding: 14px 18px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor{
  gap: 10px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form > label,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor label{
  align-items: center !important;
  column-gap: 8px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  row-gap: 6px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form > label :is(input, select, textarea, .cash-out-combobox-trigger, .cashier-customer-autocomplete),
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor label :is(input, select, textarea, .cash-out-combobox-trigger, .cashier-customer-autocomplete, span){
  grid-column: 1 / -1 !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form > label:has(:required)::after,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor label:has(:required)::after{
  align-self: center !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-in-form-status{
  border-radius: 10px !important;
  font-size: .92rem !important;
  line-height: 1.35 !important;
  padding: 9px 11px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block{
  border-radius: 12px !important;
  padding: 14px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button{
  min-height: 42px !important;
}
@media (max-width: 640px){
  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page{
    gap: 8px !important;
    padding: 8px 8px calc(96px + env(safe-area-inset-bottom)) !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head{
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title{
    align-items: center !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title h1{
    font-size: 1.72rem !important;
    line-height: 1.05 !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title p{
    font-size: .78rem !important;
    line-height: 1.25 !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .ksrf-back-button{
    min-height: 38px !important;
    min-width: 38px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary{
    gap: 6px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: none !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary span{
    min-height: 58px !important;
    padding: 7px 6px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary small{
    font-size: .62rem !important;
    line-height: 1.15 !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary b{
    font-size: .76rem !important;
    line-height: 1.18 !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    padding: 5px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs a{
    flex-direction: row !important;
    min-height: 42px !important;
    padding: 8px 6px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs span{
    font-size: .86rem !important;
    white-space: normal !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel,
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block{
    padding: 11px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form > label,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor label{
    font-size: .82rem !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-form-status{
    font-size: .82rem !important;
  }
}
/* Kas Masuk compact empty state and receipt action. */
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-category-block,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block{
  gap: 8px !important;
}
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block .cashier-inline-head{
  margin-bottom: 0 !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty[data-cash-in-receipt-empty]{
  color: #5f7178 !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  margin: 2px 0 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row{
  justify-content: stretch !important;
  margin-top: 8px !important;
  width: 100% !important;
}
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button{
  align-items: center !important;
  align-self: stretch !important;
  aspect-ratio: auto !important;
  background: #169f96 !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 18px rgba(14, 128, 121, .16) !important;
  display: inline-flex !important;
  font-size: .92rem !important;
  font-weight: 900 !important;
  gap: 8px !important;
  height: auto !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  max-width: none !important;
  min-height: 42px !important;
  padding: 10px 14px !important;
  width: 100% !important;
}
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button svg{
  flex: 0 0 18px !important;
  height: 18px !important;
  width: 18px !important;
}
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button span{
  display: inline !important;
  font-size: .92rem !important;
  font-weight: 900 !important;
  white-space: normal !important;
}
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor{
  align-items: start !important;
}
@media (min-width: 641px){
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row{
    max-width: 280px !important;
  }
}
@media (max-width: 640px){
  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page{
    gap: 7px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head{
    gap: 8px !important;
    padding: 10px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary span{
    min-height: 50px !important;
    padding: 6px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-mode-tabs{
    margin-top: 0 !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel{
    padding-top: 10px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block{
    min-height: 0 !important;
    padding-bottom: 10px !important;
  }
  body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button{
    min-height: 42px !important;
    padding: 10px 12px !important;
  }
}
/* Global save confirmation modal. */
.global-save-confirm-open {
  overflow: hidden !important;
}
.global-save-confirm-backdrop {
  align-items: center;
  background: rgba(18, 31, 36, 0.56);
  backdrop-filter: blur(8px);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 260;
}
.global-save-confirm-backdrop[hidden] {
  display: none !important;
}
.global-save-confirm-modal {
  animation: ksrfSubmitPopupIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 20px;
  box-shadow: 0 28px 76px rgba(13, 28, 34, 0.28);
  color: #172126;
  display: grid;
  gap: 12px;
  max-height: min(82vh, 680px);
  max-width: min(94vw, 560px);
  overflow: hidden;
  padding: 24px;
  width: 100%;
}
.global-save-confirm-eyebrow {
  align-self: start;
  background: #edf7f6;
  border: 1px solid rgba(15, 143, 134, 0.16);
  border-radius: 999px;
  color: #0d756e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0;
  padding: 8px 12px;
  text-transform: uppercase;
  width: max-content;
}
.global-save-confirm-modal h2 {
  color: #172126;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
  margin: 0;
}
.global-save-confirm-modal p:not(.global-save-confirm-eyebrow) {
  color: #52646c;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}
.global-save-confirm-summary {
  background: #f6fbfa;
  border: 1px solid #d9e9e7;
  border-radius: 14px;
  max-height: min(42vh, 330px);
  overflow: auto;
  padding: 12px;
}
.global-save-confirm-context {
  color: #0d756e;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.global-save-confirm-summary dl {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  margin: 0;
}
.global-save-confirm-summary dt,
.global-save-confirm-summary dd {
  border-bottom: 1px solid rgba(15, 143, 134, 0.1);
  margin: 0;
  padding-bottom: 8px;
}
.global-save-confirm-summary dt {
  color: #60747c;
  font-size: 0.78rem;
  font-weight: 850;
}
.global-save-confirm-summary dd {
  color: #172126;
  font-size: 0.88rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}
.global-save-confirm-empty {
  display: grid;
  gap: 6px;
}
.global-save-confirm-empty strong {
  color: #0d756e;
}
.global-save-confirm-empty span {
  color: #52646c;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}
.global-save-confirm-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.global-save-confirm-actions button {
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 46px;
  padding: 11px 14px;
}
.global-save-confirm-secondary {
  background: #ffffff;
  border: 1px solid #cfe2df;
  color: #52646c;
}
.global-save-confirm-primary {
  background: #0f8f86;
  border: 1px solid rgba(15, 143, 134, 0.28);
  box-shadow: 0 12px 24px rgba(15, 143, 134, 0.18);
  color: #ffffff;
}
.global-save-confirm-actions button:hover,
.global-save-confirm-actions button:focus-visible {
  outline: 2px solid rgba(15, 143, 134, 0.25);
  outline-offset: 2px;
}
.global-save-confirm-primary:hover,
.global-save-confirm-primary:focus-visible {
  background: #0b7f78;
}
@media (max-width: 560px) {
  .global-save-confirm-backdrop {
    align-items: end;
    padding: 10px;
  }
  .global-save-confirm-modal {
    border-radius: 18px;
    gap: 10px;
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
  .global-save-confirm-summary {
    max-height: 40vh;
    padding: 10px;
  }
  .global-save-confirm-summary dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .global-save-confirm-summary dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .global-save-confirm-summary dd {
    padding-bottom: 8px;
  }
  .global-save-confirm-actions {
    grid-template-columns: 1fr;
  }
}

/* Kas Masuk should scroll as one normal page; the header and mode tabs are not sticky. */
body.invoice-page:has(.cashier-cash-in-skin-page),
body.invoice-page:has(.cashier-cash-in-skin-page) .shell,
body.invoice-page .cashier-cash-in-skin-page,
body.invoice-page .cashier-cash-in-skin-page > .invoice-builder-head,
body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs,
body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace,
body.invoice-page .cashier-cash-in-skin-page .cashier-workspace-single,
body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel,
body.invoice-page .cashier-cash-in-skin-page .cash-out-history-panel {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  overscroll-behavior-y: auto !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

body.invoice-page .cashier-cash-in-skin-page > .invoice-builder-head,
body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs {
  inset: auto !important;
  transform: none !important;
}

body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace {
  padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
}

/* Compact Kas Masuk add buttons after the empty-state cards. */
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row {
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  width: auto !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block .cashier-cash-in-add-button,
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button,
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-detail].cashier-cash-in-add-button {
  border-radius: 10px !important;
  gap: 6px !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 92px !important;
  padding: 8px 14px !important;
  width: auto !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button svg {
  flex: 0 0 16px !important;
  height: 16px !important;
  width: 16px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button span {
  font-size: .86rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty + .cashier-cash-in-add-row,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row {
  max-width: none !important;
  min-height: 0 !important;
  padding-top: 8px !important;
  width: auto !important;
}

@media (max-width: 560px) {
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row,
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button {
    width: auto !important;
  }
}

/* Final Kas Masuk empty-state button alignment: compact, left-aligned, no floating square. */
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block {
  align-content: start !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-category-block,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block {
  min-height: 0 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty {
  margin: 2px 0 0 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty + .cashier-cash-in-add-row,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-receipt-block .cash-out-category-empty[data-cash-in-receipt-empty] + .cashier-cash-in-add-row,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row {
  align-items: center !important;
  display: flex !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 6px 0 0 !important;
  width: auto !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block .cashier-cash-in-add-button,
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-detail].cashier-cash-in-add-button,
body.invoice-page .cashier-cash-in-skin-page [data-add-cash-in-receipt].cashier-cash-in-add-button {
  align-items: center !important;
  align-self: flex-start !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 7px !important;
  height: auto !important;
  justify-content: center !important;
  justify-self: start !important;
  line-height: 1 !important;
  min-height: 38px !important;
  min-width: 92px !important;
  padding: 9px 14px !important;
  width: auto !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block .cashier-cash-in-add-button svg {
  flex: 0 0 16px !important;
  height: 16px !important;
  width: 16px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block .cashier-cash-in-add-button span {
  font-size: .86rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-total {
  margin-top: 4px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-form-actions {
  margin-top: 2px !important;
}

/* Cashier sales settlement and history theme contract */
.cashier-sales-page .cashier-sales-history-card,
.cashier-sales-page .cashier-sales-history-card:hover {
  background: var(--ui-surface);
  border-color: var(--ui-border);
  box-shadow: none;
  color: var(--ui-text);
}

.cashier-sales-page .cashier-sales-history-summary,
.cashier-sales-page .cashier-sales-history-card > .cashier-cash-in-detail-view,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid span,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list > div,
.cashier-sales-edit-form,
.cashier-sales-settlement-form {
  background: var(--ui-surface);
  border-color: var(--ui-border);
  color: var(--ui-text);
}

.cashier-sales-page .cashier-sales-history-summary .custom-order-history-code,
.cashier-sales-page .cashier-sales-history-summary .custom-order-history-customer,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid b,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section strong,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list b,
.cashier-sales-settlement-head strong {
  color: var(--ui-text);
  text-shadow: none;
}

.cashier-sales-page .cashier-sales-history-summary .custom-order-history-customer small,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-detail-grid small,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section small,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list small,
.cashier-sales-settlement-head small,
.cashier-sales-settlement-head span {
  color: var(--ui-text-muted);
}

.cashier-sales-page .cashier-sales-history-card .custom-order-history-item-list span,
.cashier-sales-page .cashier-sales-history-card .custom-order-history-section p,
.cashier-sales-edit-form label,
.cashier-sales-settlement-form label {
  color: var(--ui-text);
}

.cashier-sales-edit-form input,
.cashier-sales-edit-form select,
.cashier-sales-edit-form textarea,
.cashier-sales-settlement-form input,
.cashier-sales-settlement-form select {
  background: var(--ui-surface-soft);
  border-color: var(--ui-border);
  color: var(--ui-text);
}

.cashier-sales-edit-form input:focus,
.cashier-sales-edit-form select:focus,
.cashier-sales-edit-form textarea:focus,
.cashier-sales-settlement-form input:focus,
.cashier-sales-settlement-form select:focus {
  border-color: var(--ui-primary-border);
  outline: 2px solid var(--ui-primary-border);
  outline-offset: 2px;
}

.cashier-sales-icon-button.is-danger {
  background: var(--ui-danger-soft);
  border-color: var(--ui-danger-strong);
  color: var(--ui-danger-strong);
}

.cashier-sales-icon-button.is-danger:hover,
.cashier-sales-icon-button.is-danger:focus-visible {
  background: var(--ui-danger-strong);
  border-color: var(--ui-danger-strong);
  color: var(--ui-on-primary);
}

.cashier-sales-settlement-panel {
  position: relative;
}

.cashier-sales-settlement-panel summary {
  list-style: none;
}

.cashier-sales-settlement-panel summary::-webkit-details-marker {
  display: none;
}

.cashier-sales-settlement-trigger {
  background: var(--ui-success-soft);
  border-color: var(--ui-success-strong);
  color: var(--ui-success-strong);
}

.cashier-sales-settlement-trigger:hover,
.cashier-sales-settlement-trigger:focus-visible {
  background: var(--ui-success-strong);
  border-color: var(--ui-success-strong);
  color: var(--ui-on-primary);
}

.cashier-sales-settlement-form {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  max-width: min(560px, calc(100vw - 44px));
  padding: 12px;
  position: absolute;
  right: 0;
  top: 48px;
  width: 520px;
  z-index: 13;
}

.cashier-sales-settlement-head,
.cashier-sales-settlement-form button {
  grid-column: 1 / -1;
}

.cashier-sales-settlement-head {
  display: grid;
  gap: 3px;
}

.cashier-sales-settlement-form label {
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 5px;
}

.cashier-sales-settlement-form input,
.cashier-sales-settlement-form select {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
}

.cashier-sales-status.is-lunas {
  background: var(--ui-success-soft);
  border-color: var(--ui-success-strong);
  color: var(--ui-success-strong);
}

.cashier-sales-status.is-dp {
  background: var(--ui-warning-soft);
  border-color: var(--ui-warning-strong);
  color: var(--ui-warning-strong);
}

.cashier-sales-status.is-piutang {
  background: var(--ui-danger-soft);
  border-color: var(--ui-danger-strong);
  color: var(--ui-danger-strong);
}

@media (max-width: 760px) {
  .cashier-sales-settlement-form {
    grid-template-columns: 1fr;
    max-width: 100%;
    position: static;
    width: 100%;
  }
}

/* Clipboard paste support for cashier proof uploads. */
body.invoice-page .cashier-cash-out-page .cash-out-proof-field[data-receipt-proof-paste-zone]:focus-visible,
body.invoice-page .cashier-cash-out-page .cash-out-proof-field[data-payment-proof-paste-zone]:focus-visible {
  border-radius: 14px;
  outline: 3px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 34%, transparent);
  outline-offset: 4px;
}
/* Kas Masuk mobile final: match Kas Keluar structure while using the global --ui-* theme contract. */
body.invoice-page .cashier-cash-in-skin-page {
  color: var(--ui-text) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-menu,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-quick-panel {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-md) !important;
  box-shadow: var(--ui-shadow-modal) !important;
  color: var(--ui-text) !important;
  scrollbar-color: var(--ui-primary) var(--ui-surface-soft) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal header,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal footer,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-option,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-option,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options .cashier-customer-add-option {
  background: var(--ui-surface-soft) !important;
  border-color: var(--ui-border) !important;
  color: var(--ui-text) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-in-order-option:hover,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-option:focus-visible,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-option:hover,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-option:focus-visible,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:hover,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options > button:focus-visible {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-primary-hover) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline-offset: 2px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal :is(h2, strong, b),
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-option strong,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-option strong,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options strong,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options span {
  color: var(--ui-text) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal :is(small, p),
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-option small,
body.invoice-page .cashier-cash-in-skin-page .cash-in-qris-source-option small,
body.invoice-page .cashier-cash-in-skin-page .cashier-customer-options small,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-empty {
  color: var(--ui-text-muted) !important;
}

body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, .cash-out-combobox-trigger, .cash-in-order-code-trigger, .cash-in-qris-source-trigger) {
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
}

body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, .cash-out-combobox-trigger, .cash-in-order-code-trigger, .cash-in-qris-source-trigger):focus,
body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, .cash-out-combobox-trigger, .cash-in-order-code-trigger, .cash-in-qris-source-trigger):focus-visible {
  border-color: var(--ui-focus) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline-offset: 2px !important;
}

body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, button):disabled,
body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, button)[disabled] {
  background: var(--ui-surface-soft) !important;
  border-color: var(--ui-border) !important;
  color: var(--ui-text-muted) !important;
  cursor: not-allowed !important;
  opacity: .72 !important;
}

body.invoice-page .cashier-cash-in-skin-page ::placeholder {
  color: var(--ui-text-muted) !important;
  opacity: .82 !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-total,
body.invoice-page .cashier-cash-in-skin-page .ui-status-info,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal-status {
  background: var(--ui-info-soft) !important;
  border: 1px solid color-mix(in srgb, var(--ui-info) 32%, var(--ui-border)) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-info-strong) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button,
body.invoice-page .cashier-cash-in-skin-page .cash-out-submit-button,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal footer button:not([data-close-custom-order-modal]) {
  background: var(--ui-primary) !important;
  border: 1px solid var(--ui-primary) !important;
  color: var(--ui-on-primary) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button:hover,
body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-button:focus-visible,
body.invoice-page .cashier-cash-in-skin-page .cash-out-submit-button:hover,
body.invoice-page .cashier-cash-in-skin-page .cash-out-submit-button:focus-visible {
  background: var(--ui-primary-hover) !important;
  border-color: var(--ui-primary-hover) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline-offset: 2px !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-category-actions button,
body.invoice-page .cashier-cash-in-skin-page .cashier-action-ghost,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal [data-close-custom-order-modal] {
  background: var(--ui-surface-soft) !important;
  border: 1px solid var(--ui-border) !important;
  color: var(--ui-text) !important;
}

body.invoice-page .cashier-cash-in-skin-page .cash-out-category-actions button:hover,
body.invoice-page .cashier-cash-in-skin-page .cash-out-category-actions button:focus-visible,
body.invoice-page .cashier-cash-in-skin-page .cashier-action-ghost:hover,
body.invoice-page .cashier-cash-in-skin-page .cashier-action-ghost:focus-visible,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal [data-close-custom-order-modal]:hover,
body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal [data-close-custom-order-modal]:focus-visible {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-primary-hover) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline-offset: 2px !important;
}

@media (max-width: 720px) {
  body.invoice-page:has(.cashier-cash-in-skin-page) {
    background: var(--ui-bg) !important;
    color: var(--ui-text) !important;
    overflow: hidden !important;
  }

  body.invoice-page:has(.cashier-cash-in-skin-page) .shell {
    height: calc(100dvh - 76px) !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page {
    background: var(--ui-bg) !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--ui-text) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    height: 100% !important;
    margin: 0 auto !important;
    max-width: 560px !important;
    overflow: hidden !important;
    padding: 14px 10px 16px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page::before,
  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page::after {
    display: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .invoice-builder-head,
  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs,
  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace {
    animation: none !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    order: initial !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-compact-head {
    align-items: center !important;
    background: var(--ui-surface) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow) !important;
    display: flex !important;
    gap: 14px !important;
    justify-content: flex-start !important;
    min-height: 86px !important;
    overflow: visible !important;
    padding: 16px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title {
    align-items: center !important;
    display: flex !important;
    gap: 14px !important;
    min-width: 0 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title > div {
    display: block !important;
    min-width: 0 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title h1 {
    color: var(--ui-text) !important;
    font-size: clamp(1.9rem, 10vw, 2.7rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: .98 !important;
    margin: 0 !important;
    text-shadow: none !important;
    text-transform: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-title p,
  body.invoice-page .cashier-cash-in-skin-page .cash-in-head-summary {
    display: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs {
    background: var(--ui-surface) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow) !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 6px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a {
    align-items: flex-start !important;
    background: var(--ui-surface) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-md) !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    display: grid !important;
    gap: 4px !important;
    justify-content: stretch !important;
    min-height: 74px !important;
    padding: 10px 12px !important;
    text-decoration: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a::before {
    background: var(--ui-border) !important;
    border-radius: 999px !important;
    content: "" !important;
    display: block !important;
    height: 3px !important;
    opacity: 1 !important;
    width: 56% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs span {
    color: var(--ui-text) !important;
    font-size: .9rem !important;
    font-weight: 900 !important;
    text-align: left !important;
    text-shadow: none !important;
    text-transform: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs small {
    color: var(--ui-text) !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    text-align: left !important;
    text-shadow: none !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a.active {
    background: var(--ui-primary-soft) !important;
    border-color: var(--ui-primary-border) !important;
    color: var(--ui-primary-hover) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a.active::before {
    background: var(--ui-primary) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a.active span,
  body.invoice-page .cashier-cash-in-skin-page > .cash-out-mode-tabs a.active small {
    color: var(--ui-primary-hover) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 12px 0 18px !important;
    scrollbar-color: var(--ui-primary) var(--ui-surface-soft) !important;
    scrollbar-gutter: stable !important;
    scrollbar-width: thin !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace::-webkit-scrollbar,
  body.invoice-page .cashier-cash-in-skin-page :is(.cash-in-order-modal, .cash-in-qris-source-menu, .cashier-customer-options)::-webkit-scrollbar {
    height: 10px !important;
    width: 10px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace::-webkit-scrollbar-track,
  body.invoice-page .cashier-cash-in-skin-page :is(.cash-in-order-modal, .cash-in-qris-source-menu, .cashier-customer-options)::-webkit-scrollbar-track {
    background: var(--ui-surface-soft) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace::-webkit-scrollbar-thumb,
  body.invoice-page .cashier-cash-in-skin-page :is(.cash-in-order-modal, .cash-in-qris-source-menu, .cashier-customer-options)::-webkit-scrollbar-thumb {
    background: var(--ui-primary) !important;
    border: 2px solid var(--ui-surface-soft) !important;
    border-radius: var(--ui-radius-sm) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-workspace-single,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel {
    margin: 0 !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-input-panel,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-history-panel {
    background: var(--ui-surface) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow) !important;
    color: var(--ui-text) !important;
    padding: 16px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-form > label,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor > label,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-proof-field > span {
    color: var(--ui-text-muted) !important;
    display: grid !important;
    font-size: .82rem !important;
    font-weight: 850 !important;
    gap: 7px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-form-status {
    margin: 0 !important;
    padding: 10px 12px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-block,
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-line,
  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-line-receipt {
    background: var(--ui-surface) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    display: grid !important;
    gap: 14px !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 14px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-line {
    border-radius: var(--ui-radius-md) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head {
    display: flex !important;
    margin: 0 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head strong {
    color: var(--ui-text) !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-inline-head small {
    color: var(--ui-text-muted) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-payment-editor {
    display: grid !important;
    gap: 12px !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-editor > :is([data-receipt-proof-wrap], .cash-out-category-actions, .cash-out-payment-actions, .cash-in-order-code-field, .cash-in-source-code-field) {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .cashier-cash-in-skin-page :is(input, select, textarea, .cash-out-combobox-trigger, .cash-in-order-code-trigger, .cash-in-qris-source-trigger) {
    min-height: 48px !important;
    padding: 10px 12px !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-actions,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-payment-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-category-actions button,
  body.invoice-page .cashier-cash-in-skin-page .cash-out-payment-actions button {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-add-row,
  body.invoice-page .cashier-cash-in-skin-page .cashier-form-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    width: 100% !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-total {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 12px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cashier-cash-in-total :is(span, strong, b) {
    color: var(--ui-info-strong) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-proof-field {
    background: var(--ui-surface-soft) !important;
    border: 1px dashed var(--ui-border) !important;
    border-radius: var(--ui-radius-md) !important;
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-proof-actions {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-out-proof-actions label {
    align-items: center !important;
    background: var(--ui-field) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-sm) !important;
    color: var(--ui-text) !important;
    display: inline-flex !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
  }
}

/* Kas Masuk mobile scroll fix: let the page itself scroll under the fixed bottom nav. */
@media (max-width: 720px) {
  body.invoice-page:has(.cashier-cash-in-skin-page) {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.invoice-page:has(.cashier-cash-in-skin-page) .shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.invoice-page .cashier-cash-in-skin-page.cashier-cash-in-page {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page > .cashier-workspace {
    flex: 0 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
}


/* Cashier sales settlement modal center override. Keep this after legacy settlement popover rules. */
body.cashier-sales-route dialog.cashier-sales-settlement-dialog[open],
body.cashier-sales-route dialog.cashier-sales-confirm-dialog[open] {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
  display: flex !important;
  inset: 0 !important;
  justify-content: center !important;
  margin: auto !important;
  max-height: none !important;
  max-width: none !important;
  overflow: visible !important;
  padding: clamp(12px, 2vw, 22px) !important;
  position: fixed !important;
  transform: none !important;
  width: auto !important;
  z-index: 1400 !important;
}

body.cashier-sales-route dialog.cashier-sales-settlement-dialog::backdrop,
body.cashier-sales-route dialog.cashier-sales-confirm-dialog::backdrop {
  background: var(--ui-overlay) !important;
}

body.cashier-sales-route dialog.cashier-sales-settlement-dialog .cashier-sales-settlement-form,
body.cashier-sales-route dialog.cashier-sales-confirm-dialog .cashier-sales-confirm-panel {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: var(--ui-shadow-modal) !important;
  color: var(--ui-text) !important;
  left: auto !important;
  margin: 0 auto !important;
  max-height: min(760px, calc(100dvh - 44px - env(safe-area-inset-bottom))) !important;
  max-width: min(760px, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  overflow: auto !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(760px, calc(100vw - 28px)) !important;
}

body.cashier-sales-route dialog.cashier-sales-settlement-dialog .cashier-sales-settlement-actions,
body.cashier-sales-route dialog.cashier-sales-confirm-dialog .cashier-sales-confirm-actions {
  background: var(--ui-surface) !important;
  bottom: 0 !important;
}

@media (max-width: 720px) {
  body.cashier-sales-route dialog.cashier-sales-settlement-dialog[open],
  body.cashier-sales-route dialog.cashier-sales-confirm-dialog[open] {
    align-items: center !important;
    padding: 10px !important;
  }

  body.cashier-sales-route dialog.cashier-sales-settlement-dialog .cashier-sales-settlement-form,
  body.cashier-sales-route dialog.cashier-sales-confirm-dialog .cashier-sales-confirm-panel {
    border-radius: var(--ui-radius-md) !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
  }
}

/* Global drawer navigation for dense operational menus. */
.mobile-global-navbar {
  display: none;
}

.mobile-global-navbar button {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-primary-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  cursor: pointer;
  display: grid;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 36px;
}

.mobile-global-navbar button:hover,
.mobile-global-navbar button:focus-visible {
  border-color: var(--ui-focus);
  color: var(--ui-primary-hover);
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 22%, transparent);
  outline-offset: 1px;
}

.mobile-global-navbar svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 21px;
}

.mobile-global-navbar em {
  align-items: center;
  background: var(--ui-primary);
  border: 2px solid var(--ui-surface);
  border-radius: 999px;
  color: var(--ui-on-primary);
  display: inline-flex;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 17px;
  min-width: 17px;
  padding: 2px 5px;
  position: absolute;
  right: -8px;
  top: -7px;
}

.mobile-global-navbar em[hidden] {
  display: none;
}

.mobile-global-navbar strong {
  color: var(--ui-text);
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-menu-toggle {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-primary-border);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow);
  color: var(--ui-text);
  cursor: pointer;
  display: grid;
  height: 44px;
  justify-content: center;
  left: max(14px, env(safe-area-inset-left));
  padding: 0;
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  width: 44px;
  z-index: 170;
}

.global-menu-toggle:hover,
.global-menu-toggle:focus-visible {
  border-color: var(--ui-focus);
  color: var(--ui-primary-hover);
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent);
  outline-offset: 2px;
}

.global-menu-toggle svg,
.global-menu-head button svg,
.global-menu-search svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.global-menu-toggle svg {
  height: 24px;
  width: 24px;
}

.global-menu-toggle em,
.global-menu-list em {
  align-items: center;
  background: var(--ui-primary);
  border-radius: 999px;
  color: var(--ui-on-primary);
  display: inline-flex;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 20px;
  min-width: 20px;
  padding: 3px 6px;
}

.global-menu-toggle em {
  border: 2px solid var(--ui-surface);
  position: absolute;
  right: -7px;
  top: -7px;
}

.global-menu-toggle em[hidden],
.global-menu-list em[hidden] {
  display: none;
}

.global-menu-backdrop {
  background: var(--ui-overlay);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 155;
}

.global-menu-drawer {
  background: var(--ui-surface);
  border-right: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-modal);
  color: var(--ui-text);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100dvh;
  left: 0;
  max-width: min(380px, calc(100vw - 28px));
  opacity: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  transform: translateX(-104%);
  transition: transform 220ms ease, opacity 220ms ease;
  width: 360px;
  z-index: 160;
}

body.global-menu-open .global-menu-backdrop {
  opacity: 1;
}

body.global-menu-open .global-menu-drawer {
  opacity: 1;
  transform: translateX(0);
}

body.global-menu-open {
  overflow: hidden;
}

.global-menu-head {
  align-items: center;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 18px 16px;
}

.global-menu-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.global-menu-head strong {
  color: var(--ui-primary-hover);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0;
}

.global-menu-head span {
  color: var(--ui-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-menu-head button {
  align-items: center;
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-primary-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-primary-hover);
  cursor: pointer;
  display: grid;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.global-menu-head button:hover,
.global-menu-head button:focus-visible {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  color: var(--ui-on-primary);
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 24%, transparent);
  outline-offset: 2px;
}

.global-menu-head button svg {
  height: 20px;
  width: 20px;
}

.global-menu-search {
  align-items: center;
  background: var(--ui-field);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  display: flex;
  gap: 10px;
  margin: 14px 16px 10px;
  padding: 0 12px;
}

.global-menu-search:focus-within {
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 22%, transparent);
}

.global-menu-search svg {
  color: var(--ui-text-muted);
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.global-menu-search input {
  background: transparent;
  border: 0;
  color: var(--ui-text);
  flex: 1;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 44px;
  min-width: 0;
  outline: 0;
}

.global-menu-search input::placeholder {
  color: var(--ui-text-muted);
}

.global-menu-list {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 14px 24px;
  scrollbar-color: var(--ui-primary-border) var(--ui-surface-soft);
  scrollbar-width: thin;
}

.global-menu-list::-webkit-scrollbar {
  width: 11px;
}

.global-menu-list::-webkit-scrollbar-track {
  background: var(--ui-surface-soft);
}

.global-menu-list::-webkit-scrollbar-thumb {
  background: var(--ui-primary-border);
  border: 3px solid var(--ui-surface-soft);
  border-radius: var(--ui-radius-sm);
}

.global-menu-list::-webkit-scrollbar-thumb:hover {
  background: var(--ui-primary);
}

.global-menu-list section {
  display: grid;
  gap: 6px;
}

.global-menu-list h2 {
  color: var(--ui-text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  padding: 0 8px 2px;
  text-transform: uppercase;
}

.global-menu-list a,
.global-menu-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.global-menu-list a:hover,
.global-menu-list a:focus-visible,
.global-menu-list button:hover,
.global-menu-list button:focus-visible,
.global-menu-list .active {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-hover);
  outline: 0;
}

.global-menu-list a:focus-visible,
.global-menu-list button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 22%, transparent);
}

.global-menu-list span {
  font-size: 0.92rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}
.global-menu-list button small {
  color: var(--ui-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.global-menu-list .global-submenu {
  display: grid;
  gap: 3px;
  margin: -2px 0 4px 12px;
  padding-left: 10px;
}

.global-menu-list .global-submenu a {
  border-left: 2px solid var(--ui-primary-border);
  border-radius: 0 var(--ui-radius-sm) var(--ui-radius-sm) 0;
  color: var(--ui-text-muted);
  min-height: 34px;
  padding: 7px 10px 7px 14px;
}

.global-menu-list .global-submenu a:hover,
.global-menu-list .global-submenu a:focus-visible,
.global-menu-list .global-submenu a.active {
  border-left-color: var(--ui-primary);
  color: var(--ui-primary-hover);
}

.global-menu-list .global-submenu span {
  font-size: 0.8rem;
  font-weight: 800;
}

.global-menu-empty {
  color: var(--ui-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  padding: 0 22px 24px;
}

body:has(.global-menu-toggle) > .topbar {
  padding-left: max(72px, calc(28px + env(safe-area-inset-left)));
}

@media (max-width: 720px) {
  .mobile-global-navbar {
    align-items: center;
    background: color-mix(in srgb, var(--ui-surface) 94%, transparent);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 8px 20px rgba(20, 44, 48, 0.08);
    display: grid;
    gap: 8px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: calc(44px + env(safe-area-inset-top));
    padding: calc(5px + env(safe-area-inset-top)) 12px 5px;
    position: sticky;
    top: 0;
    z-index: 145;
  }

  body.inbox-page .mobile-global-navbar,
  body.chat-page .mobile-global-navbar,
  body.chat-panel-embed .mobile-global-navbar {
    display: none;
  }

  .global-menu-toggle {
    display: none;
  }

  body:has(.global-menu-toggle) > .topbar {
    padding-left: 28px;
  }

  .global-menu-drawer {
    max-width: min(342px, calc(100vw - 18px));
    width: 342px;
  }
}
/* Drawer replaces the old fixed bottom navigation globally. */
.home-bottom-nav {
  display: none !important;
}
/* Mobile navbar refinement: back left, title center, menu right without boxed chrome. */
.mobile-global-navbar button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.mobile-global-navbar button:hover,
.mobile-global-navbar button:focus-visible {
  background: var(--ui-primary-soft) !important;
  border-color: transparent !important;
  color: var(--ui-primary-hover);
}

.mobile-global-navbar em {
  right: -4px;
  top: -5px;
}

@media (max-width: 720px) {
  .mobile-global-navbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  }

  body.invoice-page .sewing-system-page > .invoice-builder-head {
    display: none !important;
  }

  body.invoice-page:has(.sewing-system-page) .shell {
    padding-top: 8px !important;
  }
}

body.packing-page .packing-status-row .is-cancelled {
  background: #ffe8e3 !important;
  border: 1px solid rgba(190, 65, 44, 0.32) !important;
  color: #9f2f22 !important;
}

body.packing-page .packing-cancel-note {
  background: #fff0ec !important;
  border-color: rgba(190, 65, 44, 0.28) !important;
  color: #5f2c25 !important;
}

body.packing-page .packing-cancel-note b {
  color: #9f2f22 !important;
}

body.packing-page .packing-cancel-panel {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}

body.packing-page .packing-cancel-panel summary {
  align-items: center;
  background: #fff0ec;
  border: 1px solid rgba(190, 65, 44, 0.36);
  border-radius: 8px;
  color: #9f2f22;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
}

body.packing-page .packing-cancel-panel summary::-webkit-details-marker {
  display: none;
}

body.packing-page .packing-cancel-panel summary:hover,
body.packing-page .packing-cancel-panel summary:focus-visible {
  background: #ffe0d8;
  border-color: rgba(190, 65, 44, 0.5);
}

body.packing-page .packing-cancel-panel svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

body.packing-page .packing-cancel-panel form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(190, 65, 44, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

body.packing-page .packing-cancel-panel label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

body.packing-page .packing-cancel-panel textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

body.packing-page .packing-cancel-submit {
  background: #9f2f22;
  border: 1px solid #9f2f22;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

body.packing-page .packing-cancel-submit:hover,
body.packing-page .packing-cancel-submit:focus-visible {
  background: #7f241b;
  border-color: #7f241b;
}

.cashier-product-bulk-size-panel {
  border: 1px solid rgba(11, 128, 128, 0.18);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cashier-product-bulk-size-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cashier-product-bulk-size-actions small,
.cashier-product-bulk-size-panel > small {
  color: var(--muted-text, #64748b);
}

.cashier-product-bulk-size-list {
  display: grid;
  gap: 8px;
}

.cashier-product-bulk-size-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 180px) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #fff;
}

.cashier-product-bulk-size-row > span {
  display: grid;
  gap: 2px;
}

.cashier-product-bulk-size-row small {
  color: var(--muted-text, #64748b);
}

.cashier-product-bulk-size-row [data-bulk-size-duplicate] {
  color: #b42318;
  font-weight: 700;
}

.cashier-product-bulk-size-row label {
  margin: 0;
}

@media (max-width: 720px) {
  .cashier-product-bulk-size-row {
    grid-template-columns: 1fr;
  }
}
.global-menu-list section[hidden],
.global-menu-list [data-global-menu-item][hidden],
.global-menu-list [data-global-submenu][hidden] {
  display: none !important;
}
/* Public event lottery */
.public-event-lottery-card {
  border: 1px solid rgba(18, 31, 42, .12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}
.public-event-lottery-card > span,
.public-event-lottery-live .public-event-lottery-stage > span {
  color: #d90000;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.public-event-lottery-card strong { color: #162028; font-size: 1.15rem; }
.public-event-lottery-card p { color: #5e7380; font-size: .9rem; line-height: 1.45; margin: 0; }
.public-event-lottery-lock[hidden] { display: none !important; }
.public-event-lottery-lock {
  align-items: center;
  background: #162028;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
}
.public-event-lottery-lock:hover { color: #fff; }
.public-event-lottery-cta,
.public-event-lottery-admin button,
.public-event-auth-form button {
  background: #d90000;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
}
.public-event-lottery-cta:disabled { background: #d8e0e5; color: #43515a; cursor: default; }
.public-event-lottery-live-link { color: #162028; font-size: .86rem; font-weight: 800; text-decoration: none; }
.public-event-lottery-admin-tools { display: grid; gap: 12px; margin-top: 14px; }
.public-event-lottery-manual {
  background: #fff;
  border: 1px solid rgba(18, 31, 42, .12);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 33, 40, .06);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}
.public-event-lottery-manual label { color: #526773; display: grid; font-size: .78rem; font-weight: 800; gap: 6px; }
.public-event-lottery-manual label small { color: #7b8e98; font-size: .72rem; font-weight: 800; }
.public-event-lottery-manual input,
.public-event-lottery-manual select {
  border: 1px solid rgba(18, 31, 42, .16);
  border-radius: 8px;
  color: #162028;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}
.public-event-lottery-manual-note,
.public-event-lottery-manual button,
.public-event-lottery-manual [data-lottery-manual-status] { grid-column: 1 / -1; }
.public-event-lottery-manual [data-lottery-manual-status] { color: #d90000; font-size: .8rem; font-weight: 800; min-height: 1.15em; }
.public-event-lottery-form { display: grid; gap: 10px; }
.public-event-lottery-form label { color: #526773; display: grid; font-size: .78rem; font-weight: 800; gap: 6px; }
.public-event-lottery-form input,
.public-event-lottery-form select {
  border: 1px solid rgba(18, 31, 42, .16);
  border-radius: 8px;
  color: #162028;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}
.public-event-lottery-phone-row { display: grid; gap: 10px; grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr); }
.public-event-lottery-form small { color: #d90000; font-size: .8rem; font-weight: 800; min-height: 1.15em; }
.public-event-lottery-form[hidden] { display: none !important; }
.public-event-lottery-live { scroll-margin-top: 88px; }
.public-event-lottery-stage {
  align-items: center;
  background: #111b23;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(24px, 8vw, 52px) 16px;
  text-align: center;
}
.public-event-lottery-stage strong {
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .92;
  min-height: 1em;
}
.public-event-lottery-stage p { color: #dbe7ed; font-size: clamp(1rem, 4vw, 1.35rem); font-weight: 800; margin: 0; }
.public-event-lottery-live-ticket[hidden] { display: none !important; }
.public-event-lottery-live-ticket {
  background: #fff;
  border: 1px solid rgba(216, 0, 0, .16);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 33, 40, .08);
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
}
.public-event-lottery-live-ticket span {
  color: #d90000;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.public-event-lottery-live-ticket strong {
  color: #162028;
  font-size: clamp(1.5rem, 7vw, 2.45rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}
.public-event-lottery-live-ticket small {
  color: #d90000;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}
.public-event-lottery-live-ticket.is-confirmed small { color: #168342; }
.public-event-lottery-live-ticket p {
  color: #5e7380;
  font-size: .88rem;
  line-height: 1.35;
  margin: 0;
}
.public-event-lottery-live-ticket .public-event-lottery-lock { justify-self: start; margin-top: 4px; }
.public-event-lottery-admin { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.public-event-lottery-admin label { color: #536976; display: grid; font-size: .78rem; font-weight: 800; gap: 6px; }
.public-event-lottery-admin input,
.public-event-auth-form input,
.public-event-auth-form select {
  border: 1px solid rgba(18, 31, 42, .16);
  border-radius: 8px;
  color: #162028;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}
.public-event-auth-form .password-field { display: block; position: relative; }
.public-event-auth-form .password-field input { padding-right: 48px; }
.public-event-auth-form .password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #536976;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}
.public-event-auth-form .password-toggle:hover { color: #162028; }
.public-event-forgot-link {
  color: #0d756e;
  font-size: .8rem;
  font-weight: 900;
  margin-top: -4px;
  text-align: right;
  text-decoration: none;
}
.public-event-forgot-link:hover { text-decoration: underline; }
.public-event-lottery-winners { display: grid; gap: 8px; }
.public-event-lottery-winners article {
  align-items: center;
  border: 1px solid rgba(18, 31, 42, .1);
  border-radius: 8px;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px 12px;
}
.public-event-lottery-winners strong { color: #d90000; font-size: 1.05rem; grid-row: span 2; }
.public-event-lottery-winners span { color: #172126; font-weight: 900; }
.public-event-lottery-winners small { color: #6b7f8a; }
.public-event-auth-open { overflow: hidden; }
.public-event-auth-modal[hidden] { display: none; }
.public-event-auth-modal { inset: 0; position: fixed; z-index: 1000; }
.public-event-auth-backdrop { background: rgba(14, 24, 31, .56); border: 0; inset: 0; position: absolute; }
.public-event-auth-dialog {
  background: #fff;
  border-radius: 8px 8px 0 0;
  bottom: 0;
  box-shadow: 0 -22px 70px rgba(13, 25, 34, .28);
  display: grid;
  gap: 14px;
  left: 50%;
  max-height: min(88vh, 760px);
  max-width: 520px;
  overflow: auto;
  padding: 18px;
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 520px);
}
.public-event-auth-head { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.public-event-auth-head span { color: #d90000; font-size: .76rem; font-weight: 950; text-transform: uppercase; }
.public-event-auth-head h2 { color: #152029; font-size: 1.35rem; line-height: 1.15; margin: 4px 0 0; }
.public-event-auth-head button { background: #eef3f5; border: 0; border-radius: 50%; color: #162028; font-size: 1.4rem; height: 34px; width: 34px; }
.public-event-auth-tabs { background: #eef3f5; border-radius: 8px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; padding: 4px; }
.public-event-auth-tabs button { background: transparent; border: 0; border-radius: 6px; color: #516671; font-weight: 900; min-height: 36px; }
.public-event-auth-tabs button.is-active { background: #fff; color: #162028; }
.public-event-auth-status { color: #d90000; font-size: .9rem; font-weight: 800; margin: 0; min-height: 1.2em; }
.public-event-auth-form { display: none; gap: 10px; }
.public-event-auth-form.is-active { display: grid; }
.public-event-auth-form label { color: #526773; display: grid; font-size: .78rem; font-weight: 800; gap: 6px; }
@media (max-width: 620px) {
  .public-event-lottery-admin { grid-template-columns: 1fr; }
  .public-event-auth-dialog { border-radius: 8px 8px 0 0; }
}
.public-event-lottery-winners button {
  align-self: center;
  background: #fff;
  border: 1px solid rgba(217, 0, 0, .22);
  border-radius: 8px;
  color: #d90000;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  grid-row: span 2;
  min-height: 34px;
  padding: 7px 10px;
}
.public-event-lottery-winners button:disabled { opacity: .62; }
@media (min-width: 521px) {
  .public-event-lottery-winners article:has(button) { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 520px) {
  .public-event-lottery-winners article:has(button) { grid-template-columns: auto minmax(0, 1fr); }
  .public-event-lottery-winners button { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
}
.public-event-lottery-card.is-floating {
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 25, 34, .22);
  left: 50%;
  max-height: calc(100vh - 104px);
  max-width: min(420px, calc(100vw - 32px));
  overflow: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  z-index: 90;
}
.public-event-lottery-card.is-floating .public-event-lottery-cta { width: 100%; }
@media (max-width: 520px) {
  .public-event-lottery-card.is-floating {
    max-height: calc(100vh - 92px);
    width: calc(100vw - 28px);
  }
}

/* Keep lottery prompt and event auth modal centered in the viewport while scrolling. */
.public-event-lottery-card.is-floating {
  bottom: auto !important;
  left: 50% !important;
  margin: 0 !important;
  position: fixed !important;
  right: auto !important;
  top: 50% !important;
  transform: translate3d(-50%, -50%, 0) !important;
  z-index: 950 !important;
}
.public-event-auth-modal {
  align-items: center !important;
  display: grid !important;
  justify-items: center !important;
  padding: 16px !important;
}
.public-event-auth-modal[hidden] { display: none !important; }
.public-event-auth-backdrop { position: fixed !important; }
.public-event-auth-dialog {
  border-radius: 8px !important;
  bottom: auto !important;
  left: auto !important;
  max-height: calc(100dvh - 32px) !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(520px, calc(100vw - 32px)) !important;
}
@supports not (height: 100dvh) {
  .public-event-auth-dialog { max-height: calc(100vh - 32px) !important; }
}
@media (max-width: 520px) {
  .public-event-auth-modal { padding: 14px !important; }
  .public-event-auth-dialog {
    max-height: calc(100dvh - 28px) !important;
    width: calc(100vw - 28px) !important;
  }
}

/* Mobile navigation shell: keep a thin page bar on top and restore bottom navigation for touch workflows. */
@media (min-width: 721px) {
  body > .home-bottom-nav.home-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 720px) {
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .topbar {
    display: none !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .mobile-global-navbar.mobile-global-navbar {
    backdrop-filter: blur(14px);
    min-height: calc(42px + env(safe-area-inset-top)) !important;
    padding: calc(4px + env(safe-area-inset-top)) 12px 4px !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .mobile-global-navbar strong {
    font-size: .86rem !important;
    text-align: center;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .mobile-global-navbar button {
    height: 34px !important;
    width: 34px !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav {
    align-items: stretch !important;
    background: color-mix(in srgb, var(--ui-surface, #fff) 96%, transparent) !important;
    border-top: 1px solid var(--ui-border, #d7e5e7) !important;
    box-shadow: 0 -10px 28px rgba(20, 44, 48, .12) !important;
    display: flex !important;
    gap: 2px !important;
    justify-content: flex-start !important;
    min-height: calc(64px + env(safe-area-inset-bottom)) !important;
    overflow-x: auto !important;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
    scrollbar-width: none;
    z-index: 146 !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button {
    border-radius: 12px !important;
    color: var(--ui-text-muted, #65747b) !important;
    flex: 1 0 64px !important;
    font-size: 1rem !important;
    gap: 3px !important;
    min-height: 52px !important;
    min-width: 58px !important;
    padding: 5px 6px !important;
    position: relative !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a.active,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button.active,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a:hover,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button:hover,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a:focus-visible,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button:focus-visible {
    background: var(--ui-primary-soft, #eaf8f6) !important;
    color: var(--ui-primary, #0b8f87) !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav small {
    font-size: .64rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav svg {
    height: 20px !important;
    width: 20px !important;
  }

  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav em,
  body:not(.inbox-page):not(.chat-page):not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav .bottom-dashboard-badge {
    right: 7px !important;
    top: 3px !important;
  }

  body.invoice-page > .shell,
  body.dashboard-page > .shell,
  body.packing-page > .shell,
  body.public-reviews-route > .shell,
  body.public-catalog-route > .shell,
  body.public-event-route > .shell,
  body.community-page > .shell {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
}

/* Bottom navigation is now the persistent primary shortcut bar on desktop and mobile. */
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav {
  align-items: stretch !important;
  background: color-mix(in srgb, var(--ui-surface, #fff) 96%, transparent) !important;
  border-top: 1px solid var(--ui-border, #d7e5e7) !important;
  bottom: 0 !important;
  box-shadow: 0 -12px 30px rgba(20, 44, 48, .12) !important;
  display: flex !important;
  gap: 4px !important;
  justify-content: center !important;
  left: 0 !important;
  min-height: calc(68px + env(safe-area-inset-bottom)) !important;
  overflow-x: auto !important;
  padding: 7px max(14px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
  position: fixed !important;
  right: 0 !important;
  scrollbar-width: none;
  z-index: 146 !important;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav::-webkit-scrollbar {
  display: none;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--ui-text-muted, #65747b) !important;
  cursor: pointer !important;
  display: grid !important;
  flex: 0 1 112px !important;
  font: inherit !important;
  gap: 4px !important;
  justify-items: center !important;
  min-height: 54px !important;
  min-width: 76px !important;
  padding: 6px 10px !important;
  position: relative !important;
  text-decoration: none !important;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a.active,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button.active,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a:hover,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button:hover,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a:focus-visible,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button:focus-visible {
  background: var(--ui-primary-soft, #eaf8f6) !important;
  color: var(--ui-primary, #0b8f87) !important;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav small {
  font-size: .68rem !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav svg {
  height: 21px !important;
  width: 21px !important;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav em,
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav .bottom-dashboard-badge {
  align-items: center;
  background: var(--ui-primary, #0b8f87);
  border: 2px solid var(--ui-surface, #fff);
  border-radius: 999px;
  color: var(--ui-on-primary, #fff);
  display: inline-flex;
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 18px;
  min-width: 18px;
  padding: 2px 5px;
  position: absolute;
  right: 12px !important;
  top: 4px !important;
}

body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav em[hidden],
body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav .bottom-dashboard-badge[hidden] {
  display: none !important;
}

body:not(.chat-panel-embed) > .shell {
  padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 720px) {
  body:not(.chat-panel-embed) > .mobile-global-navbar.mobile-global-navbar {
    display: none !important;
  }

  body:not(.chat-panel-embed) > .topbar {
    display: none !important;
  }

  body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav {
    gap: 2px !important;
    justify-content: flex-start !important;
    min-height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
  }

  body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav a,
  body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav button {
    flex: 1 0 58px !important;
    min-height: 52px !important;
    min-width: 52px !important;
    padding: 5px 5px !important;
  }

  body:not(.chat-panel-embed) > .home-bottom-nav.home-bottom-nav small {
    font-size: .62rem !important;
  }
}

/* Kas Masuk deposit order modal: keep the sheet above the fixed bottom nav on mobile. */
@media (max-width: 640px) {
  body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal-backdrop {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  body.invoice-page .cashier-cash-in-skin-page .cash-in-order-modal {
    max-height: calc(100dvh - 108px - env(safe-area-inset-bottom)) !important;
  }
}

.public-event-lottery-success-modal[hidden] { display: none !important; }
.public-event-lottery-success-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}
.public-event-lottery-success-backdrop {
  background: rgba(12, 20, 26, .58);
  border: 0;
  inset: 0;
  position: fixed;
}
.public-event-lottery-success-dialog {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(216, 0, 0, .16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(14, 24, 31, .28);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 440px;
  padding: 22px;
  position: relative;
  width: min(100%, 440px);
}
.public-event-lottery-success-mark {
  align-items: center;
  background: #e8f6ef;
  border: 1px solid rgba(13, 117, 110, .18);
  border-radius: 50%;
  color: #0d756e;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 950;
  height: 54px;
  justify-content: center;
  width: 54px;
}
.public-event-lottery-success-modal.is-error .public-event-lottery-success-dialog {
  border-color: rgba(217, 0, 0, .28);
}
.public-event-lottery-success-modal.is-error .public-event-lottery-success-mark {
  background: #fff0f0;
  border-color: rgba(217, 0, 0, .22);
  color: #d90000;
}
.public-event-lottery-success-modal.is-error .public-event-lottery-success-copy span {
  color: #9d1111;
}
.public-event-lottery-success-copy { display: grid; gap: 6px; min-width: 0; }
.public-event-lottery-success-copy span {
  color: #d90000;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.public-event-lottery-success-copy h2 {
  color: #162028;
  font-size: 1.28rem;
  line-height: 1.15;
  margin: 0;
}
.public-event-lottery-success-copy p {
  color: #5e7380;
  font-size: .95rem;
  line-height: 1.45;
  margin: 0;
}
.public-event-lottery-success-close {
  background: #d90000;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 12px 18px;
}
.public-event-lottery-success-close:hover,
.public-event-lottery-success-close:focus-visible { background: #b80000; outline: 3px solid rgba(216, 0, 0, .18); }
body.public-event-lottery-success-open { overflow: hidden; }
@media (max-width: 520px) {
  .public-event-lottery-success-modal { align-items: center; padding: 14px; }
  .public-event-lottery-success-dialog { grid-template-columns: 1fr; padding: 20px; }
  .public-event-lottery-success-mark { height: 50px; width: 50px; }
}

/* Chat pages own their viewport; do not reserve space for the global bottom nav. */
body.inbox-page > .shell,
body.chat-page > .shell {
  padding-bottom: 0 !important;
}

body.inbox-page > .home-bottom-nav.home-bottom-nav,
body.chat-page > .home-bottom-nav.home-bottom-nav {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.inbox-page .wa-inbox {
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) !important;
  min-height: 0 !important;
}

body.inbox-page .wa-chat-list {
  box-sizing: border-box;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  scroll-padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 981px) {
  body.inbox-page > .shell,
  body.chat-page > .shell {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding-bottom: 0 !important;
  }

  body.inbox-page .inbox-desktop-split {
    height: min(100%, calc(100dvh - 40px)) !important;
    min-height: 0 !important;
  }

  body.inbox-page .wa-inbox {
    height: 100% !important;
    max-height: 100% !important;
  }
}

/* Pesanan Custom Sablon ready search: fast lookup and global UI color contract. */
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search {
  align-items: end !important;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-md) !important;
  box-shadow: var(--ui-shadow) !important;
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin: 0 !important;
  padding: 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search:has(a) {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search label {
  color: var(--ui-text) !important;
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search label > span {
  color: var(--ui-text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search input {
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
  font: inherit !important;
  min-height: 46px !important;
  min-width: 0 !important;
  padding: 0 13px !important;
  width: 100% !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search input::placeholder {
  color: var(--ui-text-muted) !important;
  opacity: 1 !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search input:focus {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a {
  align-items: center !important;
  border-radius: var(--ui-radius-sm) !important;
  display: inline-flex !important;
  font: inherit !important;
  font-weight: 900 !important;
  gap: 8px !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button {
  background: var(--ui-primary) !important;
  border: 1px solid var(--ui-primary) !important;
  color: var(--ui-on-primary) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a {
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  color: var(--ui-text) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button:focus-visible {
  background: var(--ui-primary-hover) !important;
  border-color: var(--ui-primary-hover) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent) !important;
  outline: none !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a:focus-visible {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-primary-hover) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 22%, transparent) !important;
  outline-offset: 2px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search svg {
  fill: none !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2.1 !important;
  width: 19px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-result {
  background: var(--ui-info-soft) !important;
  border: 1px solid color-mix(in srgb, var(--ui-info) 28%, var(--ui-border)) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-info-strong) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  padding: 9px 12px !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-result b {
  color: var(--ui-text) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-remaining,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-product,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-log small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched > small,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-active-filter-label,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-empty {
  color: var(--ui-text-muted) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress > span,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total span,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-log,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-grid section {
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-text-muted) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-progress b,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-quantity,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-total b {
  color: var(--ui-text) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched {
  background: var(--ui-warning-soft) !important;
  border-color: color-mix(in srgb, var(--ui-warning) 32%, var(--ui-border)) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-unmatched > b {
  color: var(--ui-warning-strong) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-chip {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-primary-hover) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-reset,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-chevron,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button {
  background: var(--ui-surface) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--ui-text) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-filter-reset,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-summary-chevron path {
  color: var(--ui-primary-hover) !important;
  stroke: var(--ui-primary-hover) !important;
}

body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] .custom-order-sablon-summary-chevron,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button:hover,
body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-product-options button:focus-visible {
  background: var(--ui-primary-soft) !important;
  color: var(--ui-primary-hover) !important;
}

@media (max-width: 720px) {
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search {
    border-radius: var(--ui-radius-sm) !important;
    box-shadow: none !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    padding: 10px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search:has(a) {
    grid-template-columns: minmax(0, 1fr) 46px 46px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search label {
    grid-column: 1 / -1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button {
    grid-column: 2 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a {
    grid-column: 3 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a {
    min-height: 46px !important;
    padding: 0 !important;
    width: 46px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search button span,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-ready-search a span {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
  }

  body.invoice-page .custom-orders-page.custom-orders-page #custom-order-sablon,
  body.invoice-page .custom-orders-page.custom-orders-page[data-active-custom-order-view="sablon"] #custom-order-sablon,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-detail {
    background: color-mix(in srgb, var(--ui-surface) 72%, transparent) !important;
    border-color: var(--ui-primary-border) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open] {
    background: var(--ui-surface) !important;
    border-color: var(--ui-primary-border) !important;
    color: var(--ui-text) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-subtabs.packing-tabs a.active {
    background: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
    color: var(--ui-on-primary) !important;
  }

  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-design-card[open],
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card:hover,
  body.invoice-page .custom-orders-page #custom-order-sablon .custom-order-sablon-history-card[open] {
    box-shadow: inset 3px 0 0 var(--ui-primary) !important;
  }
}

/* Global drawer module card search pass. */
.global-menu-drawer {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  max-width: min(430px, calc(100vw - 28px));
  width: 390px;
}

.global-menu-module-head {
  align-items: center;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 16px 6px;
}

.global-menu-module-head span {
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-primary-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-primary-hover);
  font-size: 0.7rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0;
  padding: 3px 8px;
  text-transform: uppercase;
}

.global-menu-module-head strong {
  color: var(--ui-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.08;
}

.global-menu-module-head em {
  align-self: center;
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 5px 8px;
  white-space: nowrap;
}

.global-menu-search-feedback {
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-primary-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 16px 8px;
  padding: 7px 9px;
}

.global-menu-search-feedback[hidden] {
  display: none;
}

.global-menu-list {
  gap: 10px;
  padding: 4px 14px calc(32px + env(safe-area-inset-bottom));
}

.global-menu-list section {
  gap: 7px;
}

.global-menu-list h2 {
  color: var(--ui-text-muted);
  font-size: 0.76rem;
  padding: 0 2px;
}

.global-menu-list section > [data-global-menu-item],
.global-menu-list .global-submenu [data-global-menu-item] {
  color: var(--ui-text);
  text-decoration: none;
}

.global-menu-list section > [data-global-menu-item] {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow);
  display: grid;
  gap: 3px 8px;
  grid-template-areas:
    "title count action"
    "desc count action";
  grid-template-columns: minmax(0, 1fr) auto 24px;
  min-height: 58px;
  padding: 9px 10px;
  position: relative;
}

.global-menu-list section > [data-global-menu-item]::before,
.global-menu-list section > [data-global-menu-item]::after {
  content: none;
}

.global-menu-list [data-global-menu-item] > span {
  color: var(--ui-text);
  font-size: 0.92rem;
  font-weight: 900;
  grid-area: title;
  line-height: 1.12;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-menu-list [data-global-menu-item] mark {
  background: var(--ui-warning-soft);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-warning-strong);
  font: inherit;
  padding: 0 2px;
}

.global-menu-card-desc {
  color: var(--ui-text-muted);
  display: -webkit-box;
  font-size: 0.76rem;
  font-weight: 720;
  grid-area: desc;
  line-height: 1.22;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.global-menu-list [data-global-menu-item] > em {
  align-self: center;
  grid-area: count;
  justify-self: end;
  margin: 0;
  position: relative;
  z-index: 1;
}

.global-menu-action-label,
.global-menu-card-arrow {
  align-self: center;
  color: var(--ui-primary-hover);
  font-size: 0.78rem;
  font-weight: 900;
  grid-area: action;
  justify-self: end;
  margin: 0;
  position: relative;
  text-align: right;
  z-index: 1;
}

.global-menu-action-label {
  font-size: 0.68rem;
}

.global-menu-list section > [data-global-menu-item]:hover,
.global-menu-list section > [data-global-menu-item]:focus-visible {
  background: var(--ui-primary-soft);
  border-color: var(--ui-primary-border);
  box-shadow: var(--ui-shadow-modal);
  color: var(--ui-primary-hover);
  outline: 0;
  transform: translateY(-1px);
}

.global-menu-list section > [data-global-menu-item]:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent), var(--ui-shadow-modal);
}

.global-menu-list .global-submenu {
  border-left: 1px solid var(--ui-primary-border);
  display: grid;
  gap: 6px;
  margin: 2px 0 8px 10px;
  padding-left: 8px;
}

.global-menu-list .global-submenu [data-global-menu-item] {
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  box-shadow: none;
  display: grid;
  gap: 2px 8px;
  grid-template-areas:
    "title count action"
    "desc count action";
  grid-template-columns: minmax(0, 1fr) auto 22px;
  min-height: 50px;
  padding: 8px 9px;
}

.global-menu-list .global-submenu [data-global-menu-item]::before,
.global-menu-list .global-submenu [data-global-menu-item]::after {
  content: none;
}

.global-menu-list .global-submenu [data-global-menu-item]:hover,
.global-menu-list .global-submenu [data-global-menu-item]:focus-visible {
  background: var(--ui-primary-soft);
  border-color: var(--ui-primary-border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 24%, transparent);
  outline: 0;
}

.global-menu-empty {
  background: var(--ui-surface-soft);
  border-color: var(--ui-border);
  color: var(--ui-text-muted);
  margin-bottom: calc(28px + env(safe-area-inset-bottom));
}

.global-menu-drawer.is-searching .global-menu-list {
  align-content: start;
  gap: 8px;
  grid-auto-rows: max-content;
}

.global-menu-drawer.is-searching .global-menu-list section {
  gap: 6px;
}

.global-menu-drawer.is-searching .global-menu-list h2 {
  margin-bottom: 0;
}

.global-menu-drawer.is-searching .global-menu-list section > [data-global-menu-item] {
  min-height: 52px;
  padding: 8px 10px;
}

.global-menu-drawer.is-searching .global-menu-card-desc {
  -webkit-line-clamp: 1;
}

@media (max-width: 720px) {
  .global-menu-drawer {
    max-width: min(430px, calc(100vw - 20px));
    width: min(430px, calc(100vw - 20px));
  }

  .global-menu-module-head {
    margin: 0 12px 5px;
  }

  .global-menu-search-feedback {
    margin: 0 12px 7px;
    padding: 6px 8px;
  }

  .global-menu-list {
    gap: 8px;
    padding: 3px 12px calc(40px + env(safe-area-inset-bottom));
  }

  .global-menu-list section > [data-global-menu-item] {
    grid-template-columns: minmax(0, 1fr) auto 22px;
    min-height: 54px;
    padding: 8px 9px;
  }

  .global-menu-list [data-global-menu-item] > span {
    font-size: 0.9rem;
  }

  .global-menu-card-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
  }
}


/* Custom-order flash modal: optional empty-stock WhatsApp follow-up. */
.flash-stock-options {
  background: color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 7%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--ksrf-theme-primary, #008b84) 24%, transparent);
  border-radius: 14px;
  color: var(--ksrf-theme-text, #172126);
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
  padding: 14px;
  text-align: left;
}

.flash-stock-options strong {
  color: var(--ksrf-theme-primary, #008b84);
  font-size: 0.95rem;
  font-weight: 850;
}

.flash-stock-options p,
.flash-stock-options ul,
.flash-stock-options ol {
  margin: 0;
  max-width: none !important;
  text-align: left !important;
}

.flash-stock-options ul,
.flash-stock-options ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.flash-stock-options li {
  color: color-mix(in srgb, var(--ksrf-theme-text, #172126) 82%, #66777f);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.flash-stock-options form {
  margin-top: 2px;
}

.flash-stock-options form button {
  width: 100%;
}


/* Pesanan Custom input mobile: lighter hierarchy and compact form controls. */
@media (max-width: 520px) {
  body.invoice-page .custom-orders-page > .invoice-builder-head {
    min-height: 60px !important;
    padding: 12px 14px !important;
  }

  body.invoice-page .custom-orders-page .custom-order-page-title {
    color: var(--ui-primary) !important;
    font-size: 1.08rem !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
  }

  body.invoice-page .custom-orders-page .custom-order-section-title {
    color: var(--ui-text) !important;
    font-size: clamp(1.85rem, 10vw, 2.55rem) !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    line-height: 1.04 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .cashier-form-grid {
    gap: 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-form-section {
    background: var(--ui-surface) !important;
    border-color: var(--ui-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ui-text) 7%, transparent) !important;
    overflow: hidden !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-form-section > summary {
    min-height: 58px !important;
    padding: 14px 16px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-form-section > summary span {
    color: var(--ui-text) !important;
    font-size: 1.2rem !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-form-section > summary small {
    color: var(--ui-text-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 520 !important;
    line-height: 1.2 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-section-grid,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-file-grid {
    gap: 12px !important;
    padding: 14px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input label,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-customer-picker > span {
    color: var(--ui-text) !important;
    font-size: 0.94rem !important;
    font-weight: 650 !important;
    gap: 7px !important;
    line-height: 1.25 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input label > small,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-field-note,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-local-date,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-money-preview {
    color: var(--ui-text-muted) !important;
    font-size: 0.79rem !important;
    font-weight: 500 !important;
    line-height: 1.28 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-money-preview {
    color: var(--ui-primary-hover) !important;
    font-weight: 650 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input input,
  body.invoice-page .custom-orders-page #custom-order-input select,
  body.invoice-page .custom-orders-page #custom-order-input textarea,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-select-trigger {
    background: var(--ui-field) !important;
    border-color: var(--ui-border) !important;
    color: var(--ui-text) !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    min-height: 46px !important;
    padding: 11px 13px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input textarea {
    min-height: 86px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input input::placeholder,
  body.invoice-page .custom-orders-page #custom-order-input textarea::placeholder {
    color: var(--ui-text-muted) !important;
    font-weight: 430 !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input input:focus-visible,
  body.invoice-page .custom-orders-page #custom-order-input select:focus-visible,
  body.invoice-page .custom-orders-page #custom-order-input textarea:focus-visible,
  body.invoice-page .custom-orders-page #custom-order-input .custom-order-select-trigger:focus-visible {
    border-color: var(--ui-focus) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 22%, transparent) !important;
    outline: 2px solid var(--ui-focus) !important;
    outline-offset: 1px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input input[type="file"] {
    min-height: 48px !important;
    padding: 8px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input input[type="file"]::file-selector-button {
    background: var(--ui-primary) !important;
    border: 1px solid var(--ui-primary) !important;
    border-radius: 10px !important;
    color: var(--ui-primary-contrast, var(--ui-surface)) !important;
    font-weight: 700 !important;
    margin-right: 10px !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-submit-actions {
    gap: 10px !important;
    padding-top: 4px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-hold-button {
    background: var(--ui-primary-soft) !important;
    border-color: var(--ui-primary-border) !important;
    box-shadow: none !important;
    color: var(--ui-primary-hover) !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    min-height: 46px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .invoice-print-button {
    background: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ui-primary) 22%, transparent) !important;
    color: var(--ui-primary-contrast, var(--ui-surface)) !important;
    font-size: 1rem !important;
    font-weight: 780 !important;
    min-height: 50px !important;
  }

  body.invoice-page .custom-orders-page #custom-order-input .custom-order-submit-actions button:disabled {
    background: var(--ui-surface-soft) !important;
    border-color: var(--ui-border) !important;
    box-shadow: none !important;
    color: var(--ui-text-muted) !important;
  }
}

/* Packing input mobile product-bottom fix v1. */
body.packing-page,
body.packing-page * {
  box-sizing: border-box;
}

body.packing-page {
  overflow-x: hidden;
}

body.packing-page .shell,
body.packing-page .packing-board,
body.packing-page .packing-view-content,
body.packing-page .packing-section,
body.packing-page .packing-form,
body.packing-page .packing-panel,
body.packing-page .packing-order-picker,
body.packing-page .packing-product-editor,
body.packing-page .packing-product-row,
body.packing-page .packing-form-row,
body.packing-page .packing-form-final-action,
body.packing-page .packing-panel label {
  max-width: 100%;
  min-width: 0;
}

body.packing-page .packing-panel input,
body.packing-page .packing-panel select,
body.packing-page .packing-panel textarea,
body.packing-page .packing-shipping-trigger,
body.packing-page .country-trigger,
body.packing-page .packing-submit {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

body.packing-page .packing-panel .packing-inline-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

body.packing-page .packing-panel .packing-inline-check input[type="checkbox"] {
  flex: 0 0 18px;
  height: 18px;
  margin: 2px 0 0;
  max-width: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

body.packing-page .packing-panel .packing-inline-check span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.packing-page .packing-panel .packing-inline-check small {
  display: block;
  line-height: 1.35;
  white-space: normal;
}

body.packing-page .packing-file-preview {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  max-width: 100%;
}

body.packing-page .packing-file-preview figure,
body.packing-page .packing-file-preview figure a {
  min-width: 0;
}

body.packing-page .packing-file-preview img {
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 132px;
  object-fit: cover;
  width: 100%;
}

body.packing-page .packing-panel textarea[name="notes"] {
  min-height: 86px;
  resize: vertical;
}

body.packing-page .packing-form-final-action {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  body.packing-page > .shell,
  body.packing-page .shell {
    overflow-x: hidden;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
  }

  body.packing-page .packing-board {
    gap: 14px;
    width: 100%;
  }

  body.packing-page .packing-section,
  body.packing-page .packing-panel {
    border-radius: 16px !important;
    overflow: hidden;
  }

  body.packing-page .packing-panel {
    gap: 13px !important;
    padding: 16px 14px !important;
  }

  body.packing-page .packing-panel label {
    font-size: 0.95rem !important;
    gap: 7px !important;
    margin: 10px 0 !important;
  }

  body.packing-page .packing-panel input,
  body.packing-page .packing-panel select,
  body.packing-page .packing-panel textarea,
  body.packing-page .packing-shipping-trigger,
  body.packing-page .country-trigger {
    font-size: 1rem !important;
    min-height: 48px !important;
    padding: 11px 13px !important;
  }

  body.packing-page .packing-panel input[type="file"] {
    min-height: 46px !important;
    padding: 8px !important;
  }

  body.packing-page .packing-panel input[type="file"]::file-selector-button {
    background: #0f8f86;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    margin-right: 10px;
    min-height: 32px;
    padding: 6px 11px;
  }

  body.packing-page .packing-file-preview {
    gap: 8px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.packing-page .packing-file-preview img {
    max-height: 112px;
  }

  body.packing-page .packing-product-row {
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) 92px 42px !important;
  }

  body.packing-page .packing-product-row button {
    min-height: 42px !important;
    padding: 0 !important;
    width: 42px !important;
  }

  body.packing-page .packing-panel textarea[name="notes"] {
    min-height: 78px !important;
  }

  body.packing-page .packing-form-final-action {
    margin-top: 4px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }

  body.packing-page .packing-submit {
    border-radius: 14px !important;
    font-size: 1.05rem !important;
    min-height: 54px !important;
  }
}

@media (max-width: 420px) {
  body.packing-page .packing-product-row {
    grid-template-columns: minmax(0, 1fr) 78px 40px !important;
  }

  body.packing-page .packing-file-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Inbox reply performance: keep the expanded team activity panel scrollable. */
body.inbox-page .reply-performance[open] ol {
  max-height: min(52dvh, 560px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding-right: 8px !important;
  scrollbar-color: #0aa39d #edf6f5;
  scrollbar-width: thin;
}

@media (max-width: 760px) {
  body.inbox-page .reply-performance[open] ol {
    max-height: min(46dvh, 420px) !important;
  }
}
body.invoice-page .sewing-system-page .sewing-job-main .dashboard-kicker.sewing-urgent-kicker {
  color: #dc2626 !important;
}

body.community-page .community-create-button,
body.community-detail-page .community-create-actions .community-join-button {
  align-items: center;
  align-self: center;
  background: #0f8f86;
  border: 1px solid rgba(15, 143, 134, 0.28);
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

body.community-page .community-create-button:hover,
body.community-detail-page .community-create-actions .community-join-button:hover {
  background: #0d756e;
  transform: translateY(-1px);
}

body.community-detail-page .community-create-screen {
  gap: 18px;
}

body.community-detail-page .community-create-head {
  margin-bottom: 0;
}

body.community-detail-page .community-create-form {
  display: grid;
  gap: 14px;
}

body.community-detail-page .community-create-form label {
  color: #60717a;
  display: grid;
  font-size: .8rem;
  font-weight: 850;
  gap: 7px;
}

body.community-detail-page .community-create-form input,
body.community-detail-page .community-create-form textarea {
  background: #ffffff;
  border: 1px solid rgba(15, 143, 134, 0.2);
  border-radius: 8px;
  color: #172126;
  font: inherit;
  font-weight: 400;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

body.community-detail-page .community-create-form input[type="file"] {
  cursor: pointer;
  padding: 8px;
}

body.community-detail-page .community-create-form input[type="file"]::file-selector-button {
  background: #0f8f86;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-right: 10px;
  padding: 8px 12px;
}

body.community-detail-page .community-banner-upload-field small {
  color: #7a8991;
  font-size: .74rem;
  font-weight: 400;
}

body.community-detail-page .community-create-form input::placeholder,
body.community-detail-page .community-create-form textarea::placeholder {
  font-weight: 400;
}

body.community-detail-page .community-create-form textarea {
  line-height: 1.5;
  resize: vertical;
}

body.community-detail-page .community-create-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.community-detail-page .community-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.community-detail-page .community-create-actions .community-join-button:not(.community-game-primary) {
  background: #ffffff;
  color: #0d756e !important;
}

@media (max-width: 720px) {
  body.community-detail-page .community-create-fields {
    grid-template-columns: 1fr;
  }
}


/* Chat mark modal and visible mark note, using the global UI color contract. */
body.chat-page .chat-note-helper,
body.chat-panel-embed .chat-note-helper,
body.chat-page .chat-note-visibility-picker legend,
body.chat-panel-embed .chat-note-visibility-picker legend {
  color: var(--ui-text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

body.chat-page .chat-note-visibility-options,
body.chat-panel-embed .chat-note-visibility-options {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.chat-page .chat-note-visibility-option,
body.chat-panel-embed .chat-note-visibility-option {
  align-items: flex-start !important;
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
  cursor: pointer !important;
  display: flex !important;
  gap: 9px !important;
  min-width: 0 !important;
  padding: 10px !important;
}

body.chat-page .chat-note-visibility-option:has(input:checked),
body.chat-panel-embed .chat-note-visibility-option:has(input:checked) {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  box-shadow: inset 3px 0 0 var(--ui-primary) !important;
}

body.chat-page .chat-note-visibility-option strong,
body.chat-panel-embed .chat-note-visibility-option strong {
  color: var(--ui-text) !important;
  display: block !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
}

body.chat-page .chat-note-visibility-option small,
body.chat-panel-embed .chat-note-visibility-option small {
  color: var(--ui-text-muted) !important;
  display: block !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
  margin-top: 2px !important;
}

body.chat-page .chat-note-source-card,
body.chat-panel-embed .chat-note-source-card,
body.chat-page .chat-message-mark-note,
body.chat-panel-embed .chat-message-mark-note {
  background: var(--ui-surface-soft) !important;
  border: 1px solid var(--ui-primary-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
}

body.chat-page .chat-note-source-card,
body.chat-panel-embed .chat-note-source-card {
  align-items: center !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  padding: 10px !important;
}

body.chat-page .chat-note-source-card svg,
body.chat-panel-embed .chat-note-source-card svg {
  fill: none !important;
  height: 20px !important;
  stroke: var(--ui-primary) !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2 !important;
  width: 20px !important;
}

body.chat-page .chat-note-source-card strong,
body.chat-panel-embed .chat-note-source-card strong,
body.chat-page .chat-message-mark-note strong,
body.chat-panel-embed .chat-message-mark-note strong {
  color: var(--ui-primary-hover) !important;
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.chat-page .chat-note-source-card span,
body.chat-panel-embed .chat-note-source-card span,
body.chat-page .chat-message-mark-note span,
body.chat-panel-embed .chat-message-mark-note span {
  color: var(--ui-text-muted) !important;
  display: block !important;
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body.chat-page .chat-message-mark-note,
body.chat-panel-embed .chat-message-mark-note {
  display: grid !important;
  gap: 3px !important;
  margin-top: 8px !important;
  padding: 8px 10px !important;
}

@media (max-width: 520px) {
  body.chat-page .chat-note-visibility-options,
  body.chat-panel-embed .chat-note-visibility-options {
    grid-template-columns: 1fr !important;
  }
}


/* Chat mark mobile polish. */ body.chat-page .chat-message-mark-note strong, body.chat-panel-embed .chat-message-mark-note strong { color: var(--ui-danger-strong) !important; } @media (max-width: 640px) { body.chat-page .chat-message-mark-note, body.chat-panel-embed .chat-message-mark-note { align-self: stretch !important; background: var(--ui-danger-soft) !important; border-color: color-mix(in srgb, var(--ui-danger) 32%, var(--ui-border)) !important; gap: 2px !important; margin: 8px 0 0 !important; max-width: 100% !important; padding: 7px 9px !important; width: 100% !important; } body.chat-page .chat-message-mark-note strong, body.chat-panel-embed .chat-message-mark-note strong { color: var(--ui-danger-strong) !important; font-size: 0.68rem !important; line-height: 1.1 !important; } body.chat-page .chat-message-mark-note span, body.chat-panel-embed .chat-message-mark-note span { color: var(--ui-text) !important; font-size: 0.8rem !important; line-height: 1.25 !important; } }


/* Employee performance report */
.employee-performance-filters {
  grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 1fr) minmax(220px, auto);
}

.employee-performance-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-performance-panel {
  margin: 0;
}

.employee-performance-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 14px;
}

.employee-performance-list li {
  background: #f7faf9;
  border: 1px solid #dbe8e6;
  border-radius: 8px;
  color: #172126;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
}

.performance-delta {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
  padding: 4px 8px;
  width: fit-content;
}

.performance-delta-better {
  background: #e6f7ef;
  color: #087344;
}

.performance-delta-worse {
  background: #fff1f1;
  color: #b42318;
}

.performance-delta-same {
  background: #eef4f6;
  color: #53656a;
}

.employee-performance-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.7fr));
  min-width: 820px;
  padding: 12px 14px;
}

.employee-performance-team-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(230px, 1.2fr) repeat(5, minmax(120px, 0.7fr));
  min-width: 980px;
  padding: 12px 14px;
  text-decoration: none;
}

.employee-performance-row:not(.salary-team-row-head),
.employee-performance-team-row:not(.salary-team-row-head) {
  background: #fff;
  border-top: 1px solid #edf0f5;
}

.employee-performance-row:not(.salary-team-row-head):hover,
.employee-performance-team-row:not(.salary-team-row-head):hover {
  background: #f8fafc;
}

.employee-performance-row span,
.employee-performance-team-row span {
  color: #111827;
  display: block;
  font-size: 0.84rem;
  font-weight: 750;
  min-width: 0;
}

.salary-team-row-head.employee-performance-row span,
.salary-team-row-head.employee-performance-team-row span {
  color: #fff7dc;
}

.employee-performance-team-row b {
  color: #111827;
  font-weight: 900;
}

.employee-performance-row small,
.employee-performance-team-row small {
  color: #687080;
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .employee-performance-filters,
  .employee-performance-grid {
    grid-template-columns: 1fr;
  }
}


/* Public custom order history: summary/detail layout on the global UI contract. */
body:has(.public-confirm-page) .public-confirm-card {
  background: var(--ui-surface) !important;
  border-color: var(--ui-border) !important;
  color: var(--ui-text) !important;
}
body:has(.public-confirm-page) .public-confirm-card .auth-brand {
  background: var(--ui-primary-soft) !important;
  border: 1px solid var(--ui-primary-border) !important;
  border-radius: 999px;
  color: var(--ui-primary-hover) !important;
  display: inline-flex;
  padding: 6px 10px;
}
body:has(.public-confirm-page) .public-confirm-card .auth-brand b,
body:has(.public-confirm-page) .public-confirm-card h1,
body:has(.public-confirm-page) .public-confirm-summary b,
body:has(.public-confirm-page) .public-order-history-item strong,
body:has(.public-confirm-page) .public-order-product-item p,
body:has(.public-confirm-page) .public-order-detail-section h2 {
  color: var(--ui-text) !important;
}
body:has(.public-confirm-page) .public-confirm-card p:not(.auth-brand),
body:has(.public-confirm-page) .public-confirm-summary small,
body:has(.public-confirm-page) .public-order-history-item small,
body:has(.public-confirm-page) .public-order-history-recap,
body:has(.public-confirm-page) .public-history-counts small {
  color: var(--ui-text-muted) !important;
}
body:has(.public-confirm-page) .public-history-card { max-width: min(820px, calc(100vw - 24px)); }
body:has(.public-confirm-page) .public-history-hero { align-items: start; display: grid; gap: 16px; }
body:has(.public-confirm-page) .public-history-counts { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:has(.public-confirm-page) .public-history-counts span,
body:has(.public-confirm-page) .public-confirm-summary span,
body:has(.public-confirm-page) .public-order-history-recap,
body:has(.public-confirm-page) .public-order-product-item,
body:has(.public-confirm-page) .public-order-mockup-grid a,
body:has(.public-confirm-page) .public-order-mockup-thumb {
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-sm) !important;
}
body:has(.public-confirm-page) .public-history-counts span { display: grid; gap: 2px; padding: 9px 10px; }
body:has(.public-confirm-page) .public-history-counts b { color: var(--ui-text) !important; font-size: 1.05rem; line-height: 1; }
body:has(.public-confirm-page) .public-history-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
body:has(.public-confirm-page) .public-history-filters button {
  align-items: center;
  background: var(--ui-field) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 999px;
  color: var(--ui-text) !important;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
}
body:has(.public-confirm-page) .public-history-filters button span { color: var(--ui-text-muted); font-size: 0.76rem; }
body:has(.public-confirm-page) .public-history-filters button:hover,
body:has(.public-confirm-page) .public-history-filters button:focus-visible,
body:has(.public-confirm-page) .public-history-filters button.is-active {
  background: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
  color: var(--ui-on-primary) !important;
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 22%, transparent);
  outline-offset: 2px;
}
body:has(.public-confirm-page) .public-history-filters button:hover span,
body:has(.public-confirm-page) .public-history-filters button:focus-visible span,
body:has(.public-confirm-page) .public-history-filters button.is-active span { color: var(--ui-on-primary) !important; }

body:has(.public-confirm-page) .public-confirm-summary { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
body:has(.public-confirm-page) .public-confirm-summary span { display: grid; gap: 3px; padding: 10px 12px; }
body:has(.public-confirm-page) .public-order-history-list { display: grid; gap: 14px; margin-top: 18px; }
body:has(.public-confirm-page) .public-order-history-item {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-md) !important;
  box-shadow: var(--ui-shadow) !important;
  overflow: hidden;
}
body:has(.public-confirm-page) .public-order-history-item[hidden] { display: none; }
body:has(.public-confirm-page) .public-order-summary-card {
  align-items: stretch;
  background: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 14px;
  position: relative;
}
body:has(.public-confirm-page) .public-order-summary-card::-webkit-details-marker { display: none; }
body:has(.public-confirm-page) .public-order-summary-card::after { align-self: center; color: var(--ui-primary); content: '+'; font-size: 1.35rem; font-weight: 900; grid-column: 2; line-height: 1; }
body:has(.public-confirm-page) .public-order-history-item[open] .public-order-summary-card::after { content: '-'; }
body:has(.public-confirm-page) .public-order-summary-main { align-items: center; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr); min-width: 0; }
body:has(.public-confirm-page) .public-order-mockup-thumb { aspect-ratio: 1; display: block; height: 68px; overflow: hidden; width: 68px; }
body:has(.public-confirm-page) .public-order-mockup-thumb img,
body:has(.public-confirm-page) .public-order-mockup-grid img { display: block; height: 100%; object-fit: cover; width: 100%; }
body:has(.public-confirm-page) .public-order-summary-copy { display: grid; gap: 6px; min-width: 0; }
body:has(.public-confirm-page) .public-order-summary-copy > span,
body:has(.public-confirm-page) .public-order-summary-side { display: grid; gap: 4px; }
body:has(.public-confirm-page) .public-order-summary-side { justify-items: end; min-width: 118px; padding-right: 26px; }
body:has(.public-confirm-page) .public-order-history-recap { margin: 0; padding: 12px; white-space: pre-wrap; word-break: break-word; }
body:has(.public-confirm-page) .public-order-detail-panel { background: var(--ui-surface-soft); border-top: 1px solid var(--ui-border); display: grid; gap: 14px; padding: 0 14px 14px; }
body:has(.public-confirm-page) .public-order-detail-section { display: grid; gap: 10px; }
body:has(.public-confirm-page) .public-order-detail-section h2 { font-size: 0.92rem; line-height: 1.25; margin: 0; }
body:has(.public-confirm-page) .public-order-mockup-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:has(.public-confirm-page) .public-order-mockup-grid a { aspect-ratio: 4 / 3; display: block; overflow: hidden; }
body:has(.public-confirm-page) .public-order-product-list { display: grid; gap: 10px; }
body:has(.public-confirm-page) .public-order-product-item { display: grid; gap: 8px; padding: 12px; }
body:has(.public-confirm-page) .public-order-product-item p { font-weight: 800; line-height: 1.35; margin: 2px 0; }

body:has(.public-confirm-page) .public-history-badge {
  align-items: center;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  padding: 6px 9px;
  width: max-content;
}
body:has(.public-confirm-page) .public-history-badge.is-clear { background: var(--ui-success-soft); border-color: color-mix(in srgb, var(--ui-success) 34%, var(--ui-border)); color: var(--ui-success-strong) !important; }
body:has(.public-confirm-page) .public-history-badge.is-pending,
body:has(.public-confirm-page) .public-history-badge.is-warning { background: var(--ui-warning-soft); border-color: color-mix(in srgb, var(--ui-warning) 34%, var(--ui-border)); color: var(--ui-warning-strong) !important; }
body:has(.public-confirm-page) .public-history-badge.is-info { background: var(--ui-info-soft); border-color: color-mix(in srgb, var(--ui-info) 34%, var(--ui-border)); color: var(--ui-info-strong) !important; }
body:has(.public-confirm-page) .public-confirm-card label { color: var(--ui-text) !important; opacity: 1; }
body:has(.public-confirm-page) .public-confirm-card select,
body:has(.public-confirm-page) .public-confirm-card textarea { background: var(--ui-field) !important; border-color: var(--ui-border) !important; color: var(--ui-text) !important; }
body:has(.public-confirm-page) .public-confirm-card textarea::placeholder { color: var(--ui-text-muted) !important; opacity: 1; }
body:has(.public-confirm-page) .public-confirm-card button { background: var(--ui-primary) !important; border-color: var(--ui-primary) !important; color: var(--ui-on-primary) !important; font-weight: 800; }
body:has(.public-confirm-page) .home-bottom-nav a,
body:has(.public-confirm-page) .home-bottom-nav button { color: var(--ui-text-muted) !important; }
@media (min-width: 720px) { body:has(.public-confirm-page) .public-history-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr); } }
@media (max-width: 560px) {
  body:has(.public-confirm-page) .public-confirm-summary,
  body:has(.public-confirm-page) .public-history-counts,
  body:has(.public-confirm-page) .public-order-mockup-grid { grid-template-columns: 1fr; }
  body:has(.public-confirm-page) .public-order-summary-card { grid-template-columns: 1fr; }
  body:has(.public-confirm-page) .public-order-summary-card::after { position: absolute; right: 14px; top: 18px; }
  body:has(.public-confirm-page) .public-order-summary-side { justify-items: start; padding-right: 0; }
}
