:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --card-border: #e8dfe3;
  --text: #192245;
  --field-border: #e4d8dd;
  --primary: #192245;
  --primary-hover: #131B36;
  --accent: #192245;
  --accent-soft: rgba(25, 34, 69, 0.18);
  --accent-faint: rgba(25, 34, 69, 0.08);
  --shadow: 0 18px 36px rgba(25, 34, 69, 0.12);
}

.rewards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(55, 105, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(29, 191, 151, 0.18), transparent 28%),
    linear-gradient(135deg, #11213f 0%, #183660 54%, #24507f 100%);
  color: #fff;
  box-shadow: 0 22px 45px rgba(12, 24, 46, 0.2);
}

.rewards-hero h2,
.rewards-hero p {
  margin: 0;
}

.rewards-hero h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.rewards-hero p {
  margin-top: 12px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.rewards-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rewards-search {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(7, 16, 33, 0.24);
  backdrop-filter: blur(10px);
}

.rewards-search label {
  font-size: 0.85rem;
  font-weight: 700;
}

.rewards-search-row {
  display: flex;
  gap: 10px;
}

.rewards-search-row input,
.rewards-search-row select,
.rewards-search-row button,
.rewards-form input,
.rewards-form button,
.client-login-form input,
.client-login-form button {
  font: inherit;
}

.rewards-search-row input,
.rewards-search-row select,
.rewards-form input,
.client-login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(14, 36, 66, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #12243f;
}

.rewards-search-row select {
  appearance: none;
}

.rewards-search-row button,
.client-login-submit,
.client-dashboard-logout {
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8d41 0%, #ff5e4d 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

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

.rewards-summary-grid-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rewards-summary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 34, 63, 0.08);
}

.rewards-summary-card span,
.rewards-summary-card small {
  color: #61708a;
}

.rewards-summary-card strong {
  color: #12243f;
  font-size: 1.9rem;
  letter-spacing: -0.06em;
}

.rewards-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rewards-page-main {
  --rewards-main-pad: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 var(--rewards-main-pad) 18px;
}

.rewards-page-topbar {
  top: 0;
  z-index: 16;
  min-height: 54px;
  padding: 0 var(--rewards-main-pad);
  margin: 0 calc(-1 * var(--rewards-main-pad));
  border-radius: 0;
  box-shadow: none;
}

.rewards-page-topbar .dashboard-title {
  color: #ffffff;
}

.rewards-topbar-actions {
  justify-content: flex-end;
}

.rewards-client-panel,
.rewards-editor-panel,
.rewards-section-card,
.client-panel-card,
.client-login-card,
.client-login-showcase {
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 34, 63, 0.08);
}

.rewards-client-panel,
.rewards-editor-panel {
  padding: 22px;
}

.rewards-panel-head,
.rewards-section-head,
.client-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rewards-panel-head h3,
.rewards-section-head h4,
.client-panel-head h2 {
  margin: 0;
  color: #12243f;
}

.rewards-panel-head span,
.rewards-section-head span,
.client-panel-head span {
  color: #6e7c94;
  font-size: 0.88rem;
}

.rewards-editor-head {
  padding: 4px 2px 0;
}

.rewards-client-list,
.rewards-history-list,
.client-prize-list,
.client-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rewards-client-list {
  margin-top: 18px;
}

.rewards-client-card,
.rewards-history-item,
.client-prize-item,
.client-order-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 18px;
  background: #f8fbff;
  color: #314158;
  text-decoration: none;
}

.rewards-client-card:hover,
.rewards-client-card.is-selected {
  border-color: rgba(37, 92, 202, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
}

.rewards-client-card-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.rewards-client-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.rewards-client-card-head,
.client-order-item,
.client-dashboard-topbar,
.client-dashboard-brand,
.client-fridge-meta,
.client-contract-meta,
.client-wheel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rewards-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff2d8;
  color: #9b640c;
  font-size: 0.78rem;
  font-weight: 800;
}

.rewards-status-badge.is-success {
  background: #e8fff6;
  color: #0b8d61;
}

.rewards-status-badge.is-info {
  background: #edf4ff;
  color: #315ea8;
}

.rewards-client-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rewards-client-actions form {
  margin: 0;
}

.rewards-client-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 38, 66, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #243d68;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rewards-client-action:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 92, 202, 0.28);
  box-shadow: 0 12px 22px rgba(18, 34, 63, 0.08);
}

.rewards-client-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rewards-client-action.is-danger {
  color: #bf3e37;
}

.rewards-client-meta,
.rewards-inline-metrics,
.client-dashboard-contact,
.client-login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rewards-client-meta span,
.rewards-inline-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3fb;
  color: #4a5e7d;
  font-size: 0.82rem;
  font-weight: 700;
}

.rewards-contract-banner,
.client-award-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #17355f 0%, #1d4a7f 100%);
  color: #fff;
}

.client-award-banner {
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #115d5f 0%, #1ea488 100%);
}

.rewards-banner-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rewards-progress,
.client-contract-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-contract-document {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.rewards-progress-track,
.client-contract-track {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.client-contract-track {
  background: #e7edf7;
}

.rewards-progress-track span,
.client-contract-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffbc52 0%, #ff6e50 100%);
}

.rewards-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rewards-editor-toggle {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.rewards-editor-toggle summary {
  list-style: none;
}

.rewards-editor-toggle summary::-webkit-details-marker {
  display: none;
}

.rewards-editor-button {
  align-self: flex-start;
  cursor: pointer;
}

.rewards-section-card,
.client-panel-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

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

.rewards-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rewards-form label,
.client-login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334766;
  font-size: 0.9rem;
  font-weight: 700;
}

.rewards-photo-preview {
  overflow: hidden;
  max-width: 360px;
  border-radius: 20px;
  border: 1px solid rgba(20, 38, 66, 0.08);
}

.rewards-photo-preview img,
.client-fridge-media img {
  display: block;
  width: 100%;
  height: auto;
}

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

.rewards-prize-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 18px;
  background: #f8fbff;
}

.rewards-prize-title {
  color: #13253f;
  font-weight: 800;
}

.rewards-prize-card small,
.rewards-empty-state span,
.client-fridge-placeholder {
  color: #6f7d95;
}

.rewards-form-actions {
  display: flex;
  justify-content: flex-end;
}

.contract-preview-shell,
.client-contract-frame-shell {
  overflow: hidden;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.client-contract-frame-shell.is-hidden {
  display: none;
}

.contract-preview-frame,
.client-contract-frame {
  display: block;
  width: 100%;
  min-height: 440px;
  border: 0;
  background: #fff;
}

.contract-preview-actions,
.client-contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rewards-winners-panel {
  gap: 14px;
}

.rewards-winner-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.rewards-winner-item small {
  display: block;
}

.rewards-winner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.rewards-inline-link {
  min-height: 38px;
  padding: 0 16px;
}

.rewards-empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px dashed rgba(20, 38, 66, 0.16);
  border-radius: 18px;
  background: #fbfdff;
}

.rewards-empty-state.compact {
  padding: 16px;
}

.rewards-online-toasts {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.rewards-online-toast {
  min-width: 260px;
  max-width: 320px;
  padding: 16px 18px;
  border: 1px solid rgba(30, 164, 136, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 38px rgba(18, 34, 63, 0.14);
  color: #17345d;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rewards-online-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rewards-online-toast strong,
.rewards-online-toast span {
  display: block;
}

.rewards-online-toast strong {
  margin-bottom: 4px;
  color: #0b8d61;
}

@media (max-width: 767px) {
  .rewards-client-card-toolbar,
  .rewards-winner-item {
    grid-template-columns: 1fr;
  }

  .rewards-client-actions,
  .rewards-winner-meta {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .rewards-online-toasts {
    top: 78px;
    right: 14px;
    left: 14px;
  }

  .rewards-online-toast {
    min-width: 0;
    max-width: none;
  }
}

.client-portal-screen {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(62, 121, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(30, 184, 154, 0.12), transparent 26%),
    linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  font-family: "Manrope", sans-serif;
  color: #14253f;
}

.client-login-shell {
  display: flex;
  justify-content: center;
  max-width: 620px;
  padding: 36px 24px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: center;
}

.client-login-showcase {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(80, 142, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #0f213e 0%, #1c4370 52%, #1c6b74 100%);
  color: #fff;
}

.client-login-card {
  width: min(100%, 440px);
  padding: 30px;
}

.client-login-logo {
  display: block;
  width: 108px;
  margin-bottom: 20px;
}

.client-login-head h2,
.client-login-head p,
.client-login-showcase h1,
.client-login-showcase p {
  margin: 0;
}

.client-login-showcase h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.client-login-showcase p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.client-login-highlights {
  margin-top: 28px;
}

.client-login-highlights article {
  flex: 1 1 180px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.client-login-highlights strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.client-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.client-login-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-login-card .client-login-pill {
  background: #eef4ff;
  color: #2a5ca9;
}

.client-login-submit {
  min-height: 52px;
}

.client-login-back {
  display: inline-flex;
  margin-top: 18px;
  color: #3e5f93;
  font-weight: 700;
  text-decoration: none;
}

.client-dashboard-shell {
  max-width: 1280px;
  padding: 26px 24px 40px;
  margin: 0 auto;
}

.client-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(18, 34, 63, 0.08);
  margin-bottom: 20px;
}

.client-dashboard-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.client-dashboard-brand img {
  width: 184px;
  max-width: min(40vw, 184px);
  height: auto;
  flex: 0 0 auto;
}

.client-dashboard-brand > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.client-dashboard-brand span,
.client-dashboard-contact span {
  color: #63758f;
  font-size: 0.9rem;
}

.client-dashboard-brand strong {
  display: block;
  color: #10213c;
  line-height: 1.08;
  font-size: clamp(1.45rem, 3.1vw, 2.15rem);
  overflow-wrap: anywhere;
}

.client-dashboard-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 98px;
  white-space: nowrap;
}

.client-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.client-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 158, 72, 0.18), transparent 26%),
    linear-gradient(135deg, #10213f 0%, #1a3e6d 58%, #1e7982 100%);
  color: #fff;
}

.client-dashboard-hero h1,
.client-dashboard-hero p {
  margin: 0;
}

.client-dashboard-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  letter-spacing: -0.06em;
}

.client-dashboard-hero p {
  margin-top: 14px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.client-dashboard-contact {
  align-content: start;
  justify-content: flex-end;
}

.client-dashboard-contact span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.client-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(20, 38, 66, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 34, 63, 0.08);
}

.client-stat-card strong {
  color: #11233f;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.client-stat-card span,
.client-stat-card small,
.client-order-item span,
.client-prize-item span,
.rewards-history-item span {
  color: #6d7a90;
}

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

.client-panel-card-photo {
  min-height: 100%;
}

.client-fridge-media {
  overflow: hidden;
  border-radius: 20px;
  background: #eef4fb;
  min-height: 260px;
}

.client-vertical-fridge-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  min-height: 360px;
  background:
    radial-gradient(circle at top left, rgba(91, 177, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #f6fbff 0%, #e7eff9 100%);
}

.client-vertical-fridge-stage {
  position: relative;
  height: 300px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.88), transparent 52%),
    linear-gradient(180deg, #d8e4f3 0%, #c8d8ea 100%);
  box-shadow: inset 0 18px 30px rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.client-vertical-fridge-shell {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 176px;
  height: 248px;
  transform: translateX(-50%);
}

.client-vertical-fridge-top,
.client-vertical-fridge-body,
.client-vertical-fridge-side,
.client-vertical-fridge-base,
.client-vertical-fridge-door,
.client-vertical-fridge-control,
.client-vertical-fridge-evaporator,
.client-vertical-fridge-fan,
.client-vertical-fridge-fan-guard,
.client-vertical-fridge-fan-rotor,
.client-vertical-fridge-fan-core,
.client-vertical-fridge-fan-blade,
.client-vertical-fridge-shelves span,
.client-vertical-fridge-storage,
.client-vertical-fridge-storage-fill,
.client-vertical-fridge-bag,
.client-vertical-fridge-frost {
  position: absolute;
}

.client-vertical-fridge-top {
  left: 12px;
  right: 18px;
  top: 0;
  height: 26px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #fafdff, #c6d5e3);
  transform: skewX(-18deg);
  box-shadow: inset 0 -4px 6px rgba(72, 91, 112, 0.18);
}

.client-vertical-fridge-body {
  left: 0;
  top: 18px;
  width: 150px;
  height: 216px;
  border-radius: 18px 10px 16px 16px;
  background: linear-gradient(180deg, #f6fbff 0%, #c9d8e8 100%);
  border: 1px solid rgba(83, 103, 125, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 24px 28px rgba(31, 53, 84, 0.16);
}

.client-vertical-fridge-side {
  right: 0;
  top: 26px;
  width: 28px;
  height: 208px;
  border-radius: 0 16px 14px 0;
  background: linear-gradient(180deg, #b8cbdd 0%, #879bb0 100%);
  transform: skewY(34deg);
  transform-origin: top;
  box-shadow: inset -3px 0 6px rgba(255, 255, 255, 0.18);
}

.client-vertical-fridge-base {
  left: 4px;
  right: 10px;
  bottom: 0;
  height: 16px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #8fa4ba, #667a8f);
}

.client-vertical-fridge-door {
  left: 16px;
  top: 32px;
  width: 112px;
  height: 184px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(190, 216, 239, 0.3));
  border: 2px solid rgba(246, 250, 255, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(109, 144, 177, 0.25),
    inset 0 -18px 24px rgba(65, 117, 174, 0.14);
  overflow: hidden;
}

.client-vertical-fridge-door-glass {
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(185, 228, 255, 0.2)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 40%, rgba(80, 130, 184, 0.18) 100%);
}

.client-vertical-fridge-door-handle {
  position: absolute;
  top: 24px;
  right: 8px;
  width: 8px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fefefe, #8ca4bd);
  box-shadow: inset 0 -3px 5px rgba(76, 96, 118, 0.2);
}

.client-vertical-fridge-control {
  left: 20px;
  top: 12px;
  min-width: 42px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #10213b, #31527d);
  box-shadow: 0 6px 12px rgba(17, 33, 59, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-vertical-fridge-control span {
  color: #c9f7ff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.client-vertical-fridge-evaporator {
  left: 50%;
  top: 42px;
  width: 112px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(204, 221, 238, 0.94)),
    repeating-linear-gradient(90deg, rgba(114, 136, 162, 0.12) 0 10px, transparent 10px 20px);
  border: 1px solid rgba(129, 149, 173, 0.26);
  box-shadow: 0 10px 22px rgba(84, 106, 131, 0.18);
  z-index: 2;
}

.client-vertical-fridge-evaporator-mark {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  color: #3b6c93;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-vertical-fridge-fan {
  top: 8px;
  width: 24px;
  height: 24px;
}

.client-vertical-fridge-fan-1 {
  left: 22px;
}

.client-vertical-fridge-fan-2 {
  right: 22px;
}

.client-vertical-fridge-fan-guard,
.client-vertical-fridge-fan-rotor,
.client-vertical-fridge-fan-core,
.client-vertical-fridge-fan-blade {
  left: 50%;
  top: 50%;
}

.client-vertical-fridge-fan-guard {
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 78, 102, 0.44);
}

.client-vertical-fridge-fan-guard::before,
.client-vertical-fridge-fan-guard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  margin-left: -0.5px;
  background: rgba(56, 78, 102, 0.34);
}

.client-vertical-fridge-fan-guard::after {
  transform: rotate(90deg);
  transform-origin: center;
}

.client-vertical-fridge-fan-rotor {
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  animation: stock-cold-room-spin 1.1s linear infinite;
}

.client-vertical-fridge-fan-core {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: linear-gradient(180deg, #213141, #51697d);
  z-index: 4;
}

.client-vertical-fridge-fan-blade {
  width: 7px;
  height: 11px;
  margin-left: -3.5px;
  margin-top: -11px;
  border-radius: 999px 999px 8px 8px;
  transform-origin: center 11px;
  background: linear-gradient(180deg, rgba(57, 78, 100, 0.94), rgba(196, 214, 226, 0.96));
}

.client-vertical-fridge-fan-blade.blade-a {
  transform: rotate(0deg);
}

.client-vertical-fridge-fan-blade.blade-b {
  transform: rotate(120deg);
}

.client-vertical-fridge-fan-blade.blade-c {
  transform: rotate(240deg);
}

.client-vertical-fridge-airflow {
  position: absolute;
  border: 4px solid rgba(73, 199, 244, 0.28);
  border-color: rgba(73, 199, 244, 0.28) transparent transparent transparent;
  border-radius: 50%;
  opacity: 0.88;
}

.client-vertical-fridge-airflow::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(73, 199, 244, 0.5);
}

.client-vertical-fridge-airflow.airflow-a {
  left: 96px;
  top: 66px;
  width: 54px;
  height: 100px;
  transform: rotate(108deg);
}

.client-vertical-fridge-airflow.airflow-a::after {
  right: 6px;
  top: 24px;
  transform: rotate(58deg);
}

.client-vertical-fridge-airflow.airflow-b {
  left: 102px;
  top: 112px;
  width: 46px;
  height: 84px;
  transform: rotate(82deg);
}

.client-vertical-fridge-airflow.airflow-b::after {
  right: 5px;
  top: 18px;
  transform: rotate(40deg);
}

.client-vertical-fridge-airflow.airflow-c {
  left: 94px;
  top: 150px;
  width: 58px;
  height: 84px;
  transform: rotate(252deg);
}

.client-vertical-fridge-airflow.airflow-c::after {
  left: 6px;
  top: 20px;
  transform: rotate(164deg);
}

.client-vertical-fridge-shelves {
  position: absolute;
  left: 48px;
  top: 94px;
  width: 72px;
  height: 124px;
  z-index: 1;
}

.client-vertical-fridge-shelves span {
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(180, 201, 220, 0.95), rgba(118, 138, 155, 0.95));
}

.client-vertical-fridge-shelves span:nth-child(1) { top: 0; }
.client-vertical-fridge-shelves span:nth-child(2) { top: 34px; }
.client-vertical-fridge-shelves span:nth-child(3) { top: 68px; }
.client-vertical-fridge-shelves span:nth-child(4) { top: 102px; }

.client-vertical-fridge-storage {
  left: 54px;
  top: 84px;
  width: 60px;
  height: 136px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.client-vertical-fridge-storage-fill {
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(180deg, rgba(148, 228, 255, 0.72), rgba(70, 164, 227, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 10px, transparent 10px 20px);
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(43, 89, 137, 0.12);
}

.client-vertical-fridge-bag-grid {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 5px;
  align-items: end;
}

.client-vertical-fridge-bag {
  height: 18px;
  border-radius: 7px 7px 5px 5px;
  border: 1px dashed rgba(99, 124, 150, 0.34);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -4px 7px rgba(255, 255, 255, 0.1);
}

.client-vertical-fridge-bag.is-filled {
  border-style: solid;
  border-color: rgba(241, 250, 255, 0.95);
  background:
    linear-gradient(180deg, rgba(253, 255, 255, 0.99), rgba(184, 227, 248, 0.95)),
    repeating-linear-gradient(90deg, rgba(87, 167, 209, 0.16) 0 5px, transparent 5px 10px);
  box-shadow:
    0 6px 12px rgba(30, 72, 113, 0.14),
    inset 0 -7px 10px rgba(77, 153, 194, 0.24);
}

.client-vertical-fridge-frost {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0.42;
}

.client-vertical-fridge-frost.frost-a {
  left: 22%;
  top: 18%;
}

.client-vertical-fridge-frost.frost-b {
  right: 18%;
  top: 28%;
  width: 30px;
  height: 30px;
}

.client-vertical-fridge-frost.frost-c {
  right: 24%;
  bottom: 18%;
  width: 36px;
  height: 36px;
}

.client-vertical-fridge-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #5f7290;
  font-size: 0.82rem;
  font-weight: 700;
}

.client-vertical-fridge-caption strong {
  color: #12243f;
  font-size: 1.15rem;
  font-weight: 800;
}

.client-vertical-fridge-progress {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8eef6, #dce5ef);
  box-shadow: inset 0 1px 2px rgba(22, 35, 65, 0.08);
}

.client-vertical-fridge-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bb5d6, #308ce0 52%, #4f46e5);
}

.client-vertical-fridge-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #5f7290;
  font-size: 0.8rem;
  font-weight: 700;
}

.client-vertical-freezer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  min-height: 360px;
  background:
    radial-gradient(circle at top left, rgba(136, 169, 211, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.client-vertical-freezer-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 40% 14%, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #eef3f8 0%, #dde6ef 100%);
}

.client-vertical-freezer-shadow {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 220px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 34, 50, 0.34) 0%, rgba(23, 34, 50, 0) 72%);
  filter: blur(8px);
}

.client-vertical-freezer-unit {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 248px;
  height: 286px;
  transform: translateX(-50%);
}

.client-vertical-freezer-roof-unit,
.client-vertical-freezer-top-cap,
.client-vertical-freezer-front,
.client-vertical-freezer-side,
.client-vertical-freezer-header,
.client-vertical-freezer-strip,
.client-vertical-freezer-header-text,
.client-vertical-freezer-header-badge,
.client-vertical-freezer-display,
.client-vertical-freezer-door,
.client-vertical-freezer-door-edge,
.client-vertical-freezer-handle,
.client-vertical-freezer-base,
.client-vertical-freezer-foot {
  position: absolute;
}

.client-vertical-freezer-roof-unit {
  top: 0;
  left: 128px;
  width: 56px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #0c0f14 0%, #212833 100%);
  transform: skewX(-20deg);
  box-shadow: 0 4px 10px rgba(9, 12, 18, 0.24);
}

.client-vertical-freezer-top-cap {
  left: 32px;
  top: 16px;
  width: 164px;
  height: 28px;
  background: linear-gradient(180deg, #fbfdff 0%, #edf2f7 100%);
  transform: skewX(-32deg);
  border-radius: 4px 4px 0 0;
}

.client-vertical-freezer-front {
  left: 24px;
  top: 28px;
  width: 154px;
  height: 238px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f6f9 62%, #eef2f6 100%);
  box-shadow:
    inset -18px 0 28px rgba(196, 204, 214, 0.26),
    inset 0 0 0 1px rgba(226, 231, 238, 0.86);
}

.client-vertical-freezer-side {
  left: 178px;
  top: 28px;
  width: 86px;
  height: 238px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 60%, #eef2f6 100%);
  transform: skewY(-34deg);
  transform-origin: top left;
  box-shadow: inset 12px 0 20px rgba(221, 228, 236, 0.62);
}

.client-vertical-freezer-header {
  left: 74px;
  top: 60px;
  width: 110px;
  height: 22px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(180deg, #fdfefe 0%, #e7ebef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(195, 203, 211, 0.72),
    0 3px 6px rgba(88, 101, 117, 0.14);
}

.client-vertical-freezer-strip {
  inset: 0;
  background:
    linear-gradient(90deg, #d95b44 0 14%, #f39a56 14% 30%, #f7cf72 30% 48%, #6b9d67 48% 62%, #8db1d6 62% 78%, #f0ede7 78% 100%);
  opacity: 0.92;
}

.client-vertical-freezer-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.client-vertical-freezer-header-text {
  left: 6px;
  bottom: 1px;
  z-index: 1;
  color: #202429;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.client-vertical-freezer-header-badge {
  right: 6px;
  bottom: 1px;
  z-index: 1;
  color: #1b66b1;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-vertical-freezer-display {
  left: 122px;
  top: 38px;
  width: 22px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #172232 0%, #314764 100%);
  box-shadow: 0 2px 4px rgba(16, 25, 38, 0.16);
}

.client-vertical-freezer-display span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7f9ff;
  font-size: 0.34rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.client-vertical-freezer-door {
  left: 54px;
  top: 82px;
  width: 110px;
  height: 192px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow:
    inset -14px 0 18px rgba(205, 214, 224, 0.28),
    inset 0 0 0 1px rgba(227, 232, 238, 0.84);
}

.client-vertical-freezer-door-edge {
  left: 164px;
  top: 82px;
  width: 4px;
  height: 192px;
  background: linear-gradient(180deg, rgba(214, 220, 228, 0.9), rgba(247, 249, 252, 0.98));
}

.client-vertical-freezer-handle {
  left: 68px;
  top: 172px;
  width: 5px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e242b 0%, #454d56 100%);
  box-shadow: 0 2px 4px rgba(14, 18, 24, 0.18);
}

.client-vertical-freezer-base {
  left: 26px;
  bottom: 18px;
  width: 148px;
  height: 8px;
  background: linear-gradient(180deg, #d3d9df 0%, #bcc3cb 100%);
}

.client-vertical-freezer-foot {
  bottom: 4px;
  width: 18px;
  height: 16px;
  background: linear-gradient(180deg, #bfc5cd 0%, #959da7 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.44);
}

.client-vertical-freezer-foot.foot-front-left {
  left: 52px;
  transform: skewX(-12deg);
}

.client-vertical-freezer-foot.foot-front-right {
  left: 158px;
  transform: skewX(12deg);
}

.client-vertical-freezer-foot.foot-back-right {
  left: 220px;
  width: 14px;
  height: 12px;
  transform: skewX(14deg);
  opacity: 0.86;
}

.client-vertical-freezer-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #5f7290;
  font-size: 0.82rem;
  font-weight: 700;
}

.client-vertical-freezer-caption strong {
  color: #12243f;
  font-size: 1.15rem;
  font-weight: 800;
}

.client-vertical-freezer-progress {
  position: relative;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8eef6, #dce5ef);
  box-shadow: inset 0 1px 2px rgba(22, 35, 65, 0.08);
}

.client-vertical-freezer-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bb5d6, #308ce0 52%, #4f46e5);
}

.client-vertical-freezer-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #5f7290;
  font-size: 0.8rem;
  font-weight: 700;
}

.client-display-cooler-card,
.client-double-freezer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  min-height: 360px;
  background:
    radial-gradient(circle at top left, rgba(136, 169, 211, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.client-display-cooler-stage,
.client-double-freezer-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 40% 14%, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #eef3f8 0%, #dde6ef 100%);
}

.client-display-cooler-shadow,
.client-double-freezer-shadow {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 220px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 34, 50, 0.28) 0%, rgba(23, 34, 50, 0) 72%);
  filter: blur(8px);
}

.client-display-cooler-unit,
.client-double-freezer-unit {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.client-display-cooler-unit {
  width: 210px;
  height: 274px;
}

.client-display-cooler-top,
.client-display-cooler-body,
.client-display-cooler-side,
.client-display-cooler-door,
.client-display-cooler-glass,
.client-display-cooler-handle,
.client-display-cooler-header,
.client-display-cooler-shelves,
.client-display-cooler-shelves span,
.client-display-cooler-bags,
.client-display-cooler-bags span,
.client-double-freezer-body,
.client-double-freezer-top,
.client-double-freezer-side,
.client-double-freezer-door,
.client-double-freezer-handle,
.client-double-freezer-header {
  position: absolute;
}

.client-display-cooler-top {
  left: 22px;
  top: 0;
  width: 136px;
  height: 24px;
  background: linear-gradient(180deg, #fafdff, #e0e6ee);
  transform: skewX(-24deg);
}

.client-display-cooler-body {
  left: 10px;
  top: 20px;
  width: 126px;
  height: 232px;
  background: linear-gradient(180deg, #ffffff, #eef2f6);
}

.client-display-cooler-side {
  left: 136px;
  top: 20px;
  width: 60px;
  height: 232px;
  background: linear-gradient(180deg, #f8fafc, #e8edf4);
  transform: skewY(-32deg);
  transform-origin: top left;
}

.client-display-cooler-door {
  left: 26px;
  top: 44px;
  width: 92px;
  height: 184px;
  background: #fefefe;
  border: 3px solid rgba(244, 248, 252, 0.94);
}

.client-display-cooler-glass {
  left: 34px;
  top: 52px;
  width: 76px;
  height: 168px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(176, 222, 255, 0.2)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 40%, rgba(80, 130, 184, 0.18) 100%);
}

.client-display-cooler-handle {
  left: 108px;
  top: 114px;
  width: 6px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #232933, #515a64);
}

.client-display-cooler-header {
  left: 34px;
  top: 28px;
  width: 76px;
  height: 16px;
  background: linear-gradient(90deg, #1f5fa7 0%, #4fc3f7 100%);
}

.client-display-cooler-shelves {
  left: 38px;
  top: 76px;
  width: 68px;
  height: 128px;
}

.client-display-cooler-shelves span {
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(167, 181, 197, 0.94);
}

.client-display-cooler-shelves span:nth-child(1) { top: 0; }
.client-display-cooler-shelves span:nth-child(2) { top: 34px; }
.client-display-cooler-shelves span:nth-child(3) { top: 68px; }
.client-display-cooler-shelves span:nth-child(4) { top: 102px; }

.client-display-cooler-bags {
  left: 40px;
  top: 84px;
  width: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
}

.client-display-cooler-bags span {
  position: relative;
  height: 18px;
  border-radius: 6px;
  border: 1px dashed rgba(99, 124, 150, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.client-display-cooler-bags span.is-filled {
  border-style: solid;
  border-color: rgba(241, 250, 255, 0.95);
  background: linear-gradient(180deg, rgba(253, 255, 255, 0.99), rgba(184, 227, 248, 0.95));
}

.client-double-freezer-unit {
  width: 250px;
  height: 274px;
}

.client-double-freezer-top {
  left: 30px;
  top: 0;
  width: 156px;
  height: 26px;
  background: linear-gradient(180deg, #fafdff, #e0e6ee);
  transform: skewX(-28deg);
}

.client-double-freezer-body {
  left: 16px;
  top: 22px;
  width: 154px;
  height: 228px;
  background: linear-gradient(180deg, #ffffff, #edf2f7);
}

.client-double-freezer-side {
  left: 170px;
  top: 22px;
  width: 66px;
  height: 228px;
  background: linear-gradient(180deg, #f8fafc, #e8edf4);
  transform: skewY(-32deg);
  transform-origin: top left;
}

.client-double-freezer-door {
  top: 54px;
  width: 58px;
  height: 168px;
  background: linear-gradient(180deg, #ffffff, #fafbfd);
}

.client-double-freezer-door.door-left { left: 34px; }
.client-double-freezer-door.door-right { left: 96px; }

.client-double-freezer-handle {
  top: 116px;
  width: 5px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #232933, #515a64);
}

.client-double-freezer-handle.handle-left { left: 82px; }
.client-double-freezer-handle.handle-right { left: 100px; }

.client-double-freezer-header {
  left: 44px;
  top: 34px;
  width: 88px;
  height: 14px;
  background: linear-gradient(90deg, #1f5fa7 0%, #ff8d41 50%, #5ec27d 100%);
}

.client-fridge-meta,
.client-contract-meta {
  align-items: flex-start;
}

.client-fridge-meta div,
.client-contract-meta div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-contract-copy {
  margin: 0;
  color: #5f6f87;
  line-height: 1.7;
}

.client-order-item {
  flex-direction: row;
  align-items: center;
}

.client-order-item > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-order-actions {
  flex: 0 0 auto !important;
  align-items: flex-end !important;
}

.client-order-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7f45 0%, #ff5f57 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(255, 95, 87, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-order-pdf-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 95, 87, 0.28);
}

.client-wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 18, 34, 0.54);
  backdrop-filter: blur(10px);
}

.client-wheel-modal.is-hidden {
  display: none;
}

.client-wheel-fireworks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.client-wheel-firework,
.client-wheel-confetti {
  position: absolute;
  pointer-events: none;
}

.client-wheel-firework {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  animation: client-wheel-firework-burst 1.9s ease-out infinite;
}

.client-wheel-firework::before,
.client-wheel-firework::after {
  content: "";
  position: absolute;
  inset: -54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 50% 0, rgba(255, 208, 84, 0.92) 0 9%, transparent 10% 100%),
    radial-gradient(circle at 100% 50%, rgba(255, 119, 71, 0.9) 0 8%, transparent 9% 100%),
    radial-gradient(circle at 50% 100%, rgba(83, 225, 191, 0.9) 0 8%, transparent 9% 100%),
    radial-gradient(circle at 0 50%, rgba(132, 129, 255, 0.88) 0 8%, transparent 9% 100%);
  animation: client-wheel-firework-rays 1.9s ease-out infinite;
}

.client-wheel-firework::after {
  inset: -74px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 238, 154, 0.82) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 86% 18%, rgba(255, 137, 79, 0.78) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.78) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 82% 82%, rgba(115, 236, 199, 0.78) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 18% 82%, rgba(152, 149, 255, 0.78) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 0 50%, rgba(255, 255, 255, 0.78) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 16% 16%, rgba(255, 211, 102, 0.78) 0 4%, transparent 5% 100%);
}

.firework-1 { top: 12%; left: 16%; animation-delay: 0s; }
.firework-2 { top: 16%; right: 18%; animation-delay: 0.3s; }
.firework-3 { top: 28%; left: 8%; animation-delay: 0.6s; }
.firework-4 { top: 32%; right: 10%; animation-delay: 0.8s; }
.firework-5 { bottom: 20%; left: 18%; animation-delay: 1.1s; }
.firework-6 { bottom: 18%; right: 16%; animation-delay: 1.35s; }

.client-wheel-confetti {
  top: -14px;
  width: 10px;
  height: 20px;
  border-radius: 999px;
  opacity: 0;
  animation: client-wheel-confetti-fall 3.1s linear infinite;
}

.client-wheel-confetti:nth-child(odd) {
  width: 8px;
  height: 16px;
}

.confetti-1 { left: 6%; background: #ffcf59; animation-delay: 0.05s; }
.confetti-2 { left: 12%; background: #ff7f45; animation-delay: 0.22s; }
.confetti-3 { left: 18%; background: #8a7eff; animation-delay: 0.48s; }
.confetti-4 { left: 24%; background: #56d2b1; animation-delay: 0.14s; }
.confetti-5 { left: 30%; background: #ffffff; animation-delay: 0.67s; }
.confetti-6 { left: 38%; background: #ffcf59; animation-delay: 0.34s; }
.confetti-7 { left: 46%; background: #ff7f45; animation-delay: 0.9s; }
.confetti-8 { left: 54%; background: #8a7eff; animation-delay: 0.18s; }
.confetti-9 { left: 60%; background: #56d2b1; animation-delay: 0.56s; }
.confetti-10 { left: 66%; background: #ffffff; animation-delay: 0.74s; }
.confetti-11 { left: 72%; background: #ffcf59; animation-delay: 0.27s; }
.confetti-12 { left: 78%; background: #ff7f45; animation-delay: 0.96s; }
.confetti-13 { left: 84%; background: #8a7eff; animation-delay: 0.42s; }
.confetti-14 { left: 90%; background: #56d2b1; animation-delay: 0.12s; }
.confetti-15 { left: 15%; background: #ffffff; animation-delay: 1.14s; }
.confetti-16 { left: 44%; background: #ffcf59; animation-delay: 1.32s; }
.confetti-17 { left: 63%; background: #ff7f45; animation-delay: 1.54s; }
.confetti-18 { left: 88%; background: #56d2b1; animation-delay: 1.7s; }

.client-wheel-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: 32px 32px 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(255, 220, 125, 0.24), transparent 30%),
    linear-gradient(180deg, #fffef9 0%, #fffaf0 100%);
  box-shadow: 0 30px 80px rgba(13, 23, 41, 0.34);
  text-align: center;
  overflow: hidden;
}

.client-wheel-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(216, 170, 75, 0.28);
  pointer-events: none;
}

.client-wheel-card .client-login-pill {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding-inline: 18px;
  border-color: rgba(218, 166, 54, 0.32);
  background: linear-gradient(135deg, rgba(255, 243, 189, 0.95), rgba(255, 226, 138, 0.78));
  color: #8d5314;
  font-weight: 900;
}

.client-wheel-card h2,
.client-wheel-card p {
  margin: 0;
}

.client-wheel-card h2 {
  margin-top: 12px;
  color: #8d5314;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.client-wheel-card p {
  margin-top: 10px;
  color: #725f58;
  line-height: 1.75;
  max-width: 560px;
  margin-inline: auto;
}

.client-wheel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
}

.client-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  margin-left: -15px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 34px solid #cf2f23;
  filter: drop-shadow(0 10px 16px rgba(111, 21, 16, 0.24));
}

.client-wheel-pointer::after {
  content: "";
  position: absolute;
  top: -34px;
  left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2bd 0%, #f0bc54 48%, #b66f1c 100%);
}

.client-wheel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 175, 0.92), rgba(255, 215, 98, 0.74) 25%, rgba(198, 126, 33, 0.98) 74%, rgba(120, 64, 8, 1) 100%);
  box-shadow:
    inset 0 0 0 4px rgba(96, 49, 7, 0.78),
    inset 0 0 0 20px rgba(252, 217, 114, 0.88),
    inset 0 0 0 24px rgba(56, 35, 12, 0.88),
    0 30px 70px rgba(72, 42, 12, 0.22);
}

.client-wheel-bolt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fffefb;
  box-shadow:
    inset 0 0 0 2px rgba(127, 89, 33, 0.24),
    0 2px 5px rgba(0, 0, 0, 0.2);
  transform: rotate(var(--wheel-bolt-angle)) translateY(-202px);
}

.client-wheel-disc {
  position: relative;
  z-index: 2;
  width: 376px;
  height: 376px;
  border: 4px solid #1f1f1f;
  border-radius: 50%;
  background:
    conic-gradient(
      #fffdf8 0deg 60deg,
      #ffeb2b 60deg 120deg,
      #b04f97 120deg 180deg,
      #f57a00 180deg 240deg,
      #9690d8 240deg 300deg,
      #2b7241 300deg 360deg
    );
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.34),
    0 16px 36px rgba(19, 34, 58, 0.18);
  transition: transform 2.2s cubic-bezier(0.12, 0.78, 0.18, 1);
}

.client-wheel-segment {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 132px;
  margin-left: -66px;
  transform-origin: 50% 0;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.client-wheel-segment:nth-child(1),
.client-wheel-segment:nth-child(2) {
  color: #202020;
  text-shadow: none;
}

.client-wheel-segment-0 { transform: rotate(0deg) translateY(-168px); }
.client-wheel-segment-1 { transform: rotate(60deg) translateY(-168px); }
.client-wheel-segment-2 { transform: rotate(120deg) translateY(-168px); }
.client-wheel-segment-3 { transform: rotate(180deg) translateY(-168px); }
.client-wheel-segment-4 { transform: rotate(240deg) translateY(-168px); }
.client-wheel-segment-5 { transform: rotate(300deg) translateY(-168px); }

.client-wheel-center {
  position: absolute;
  z-index: 3;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffefba 0%, #e0a93a 48%, #9d5f14 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 246, 205, 0.48),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.client-wheel-later {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(20, 38, 66, 0.12);
  border-radius: 16px;
  background: #fff7eb;
  color: #354966;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .rewards-summary-grid,
  .client-dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewards-prize-grid,
  .rewards-summary-grid-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .rewards-hero,
  .rewards-layout,
  .client-login-shell,
  .client-dashboard-hero,
  .client-dashboard-grid,
  .rewards-contract-banner,
  .client-award-banner {
    grid-template-columns: 1fr;
  }

  .rewards-form-grid,
  .rewards-form-grid-3,
  .rewards-prize-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rewards-summary-grid,
  .client-dashboard-cards,
  .rewards-summary-grid-inline {
    grid-template-columns: 1fr;
  }

  .client-order-item,
  .rewards-client-card-head,
  .rewards-panel-head,
  .rewards-section-head,
  .client-panel-head,
  .client-dashboard-topbar,
  .client-fridge-meta,
  .client-contract-meta,
  .client-wheel-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-order-actions {
    width: 100%;
    align-items: stretch !important;
  }

  .client-order-pdf-link {
    width: 100%;
  }

  .client-wheel-disc {
    width: 316px;
    height: 316px;
  }

  .client-wheel-stage {
    width: 370px;
    height: 370px;
  }

  .client-wheel-bolt {
    transform: rotate(var(--wheel-bolt-angle)) translateY(-170px);
  }

  .client-wheel-center {
    width: 58px;
    height: 58px;
  }

  .client-wheel-segment-0 { transform: rotate(0deg) translateY(-140px); }
  .client-wheel-segment-1 { transform: rotate(60deg) translateY(-140px); }
  .client-wheel-segment-2 { transform: rotate(120deg) translateY(-140px); }
  .client-wheel-segment-3 { transform: rotate(180deg) translateY(-140px); }
  .client-wheel-segment-4 { transform: rotate(240deg) translateY(-140px); }
  .client-wheel-segment-5 { transform: rotate(300deg) translateY(-140px); }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.login-screen {
  overflow: hidden;
}

.dashboard-screen {
  overflow-x: hidden;
  overflow-y: auto;
  background: #f6f0f2;
}

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

button,
input {
  font: inherit;
}

.login-page {
  position: relative;
  height: 100vh;
  padding: 36px 48px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(19, 27, 54, 0.08), transparent 28%),
    #EDF1F9;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 96px 18px 48px;
  text-align: center;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 980px);
  margin: 0 auto;
}

.corner-logo {
  position: absolute;
  top: 54px;
  left: 250px;
  z-index: 3;
  display: block;
  width: min(100%, 355px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(25, 34, 69, 0.18));
}

.hero h1 {
  margin: 0 0 80px;
  max-width: 980px;
  font-size: clamp(1.7rem, 1.9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.18;
  color: #192245;
}

.typing-title {
  position: relative;
  display: inline-block;
  width: min(100%, 980px);
}

.typing-title::before {
  content: attr(data-text);
  visibility: hidden;
}

.typing-title-text {
  position: absolute;
  inset: 0;
}

.typing-title-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.96em;
  margin-left: 7px;
  background: #192245;
  vertical-align: -0.08em;
  animation: blink-caret 0.8s step-end infinite;
}

.login-panel {
  width: min(100%, 386px);
  overflow: hidden;
  border: 1px solid rgba(226, 212, 217, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.panel-heading {
  padding: 12px 18px;
  border-bottom: 1px solid #eadfe3;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #192245;
}

.panel-body {
  padding: 16px 20px 8px;
  text-align: left;
}

.status-message {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
}

.status-success {
  border-color: rgba(31, 167, 88, 0.22);
  background: rgba(31, 167, 88, 0.1);
  color: #177546;
}

.status-error {
  border-color: rgba(214, 39, 64, 0.18);
  background: rgba(25, 34, 69, 0.08);
  color: #192245;
}

.auth-user {
  margin: 8px 0 0;
  color: #192245;
  font-size: 0.97rem;
  line-height: 1.5;
}

.auth-user strong {
  font-weight: 800;
}

.field-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #192245;
  font-size: 0.97rem;
  font-weight: 800;
}

.text-field {
  width: 100%;
  height: 34px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: #192245;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-field:focus {
  border-color: rgba(25, 34, 69, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 34, 69, 0.12);
}

.password-wrap {
  position: relative;
}

.password-input {
  padding-right: 42px;
  margin-bottom: 12px;
}

.toggle-password {
  position: absolute;
  top: 2px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #9d6b74;
  cursor: pointer;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.forgot-link {
  display: block;
  margin-bottom: 16px;
  text-align: center;
  color: #192245;
  font-size: 0.92rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.panel-footer {
  padding: 12px 20px 10px;
  border-top: 4px solid #f0e1e5;
  background: rgba(255, 250, 251, 0.98);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 202px);
  height: 35px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.submit-button.secondary {
  width: auto;
  min-width: 164px;
  padding: 0 18px;
  background: linear-gradient(135deg, #eef4fb, #dfe9f5);
  color: #192245;
  box-shadow: inset 0 0 0 1px rgba(25, 34, 69, 0.08);
}

.submit-button.secondary:hover {
  background: linear-gradient(135deg, #f5f9ff, #e6eef8);
}

.submit-button.secondary.danger {
  background: linear-gradient(135deg, #fff0f3, #ffd8df);
  color: #b02048;
}

.logout-button {
  background: #192245;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #dde4ee;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #1a2342;
  color: #fff8f9;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.sidebar-brand img {
  display: block;
  width: 144px;
  max-width: 100%;
  margin: 0;
  filter: brightness(0) invert(1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.97rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: #202a50;
  color: #ffffff;
}

.sidebar-group {
  display: block;
}

.sidebar-group summary {
  list-style: none;
}

.sidebar-group summary::-webkit-details-marker {
  display: none;
}

.sidebar-link-summary {
  position: relative;
  border-left: 4px solid transparent;
}

.sidebar-caret {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sidebar-group[open] .sidebar-caret {
  transform: rotate(225deg);
}

.sidebar-group[open] .sidebar-link-summary {
  background: #131c37;
  border-left-color: #19c2b0;
}

.sidebar-submenu {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px 10px 14px;
  border-left: 0;
  background: #131c37;
}

.sidebar-sublink {
  display: block;
  position: relative;
  margin: 3px 0;
  padding: 9px 18px 9px 44px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-sublink.is-active {
  color: #ffffff;
  background: #16213d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.sidebar-link-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #192245;
  box-shadow: 0 0 0 4px rgba(25, 34, 69, 0.15);
}

.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.sidebar-link-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-link-footer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px 20px;
  background: linear-gradient(90deg, #1dbba8 0%, #22caa6 100%);
  color: #ffffff;
}

.sidebar-trial-banner strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.sidebar-trial-banner span {
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: #1cb29f;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-main {
  min-width: 0;
  background: #dde4ee;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 0 18px;
  background: #15203d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-topbar > div {
  min-width: 0;
}

.dashboard-topbar-start {
  display: flex;
  align-items: center;
}

.dashboard-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #20c9b0;
  cursor: pointer;
}

.dashboard-menu-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dashboard-eyebrow {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.92rem, 1.2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-alert {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 167, 88, 0.14);
  color: #1a9a5c;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(31, 167, 88, 0.22);
}

.dashboard-alert.success {
  background: rgba(31, 167, 88, 0.14);
  color: #1a9a5c;
  border-color: rgba(31, 167, 88, 0.22);
}

.dashboard-alert.error {
  background: rgba(239, 71, 111, 0.14);
  color: #b02048;
  border-color: rgba(239, 71, 111, 0.24);
}

.dashboard-alert.is-toast-hidden {
  display: none;
}

.app-feedback-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 24px 26px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 64px rgba(12, 24, 46, 0.18);
  border: 1px solid rgba(209, 220, 236, 0.9);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.app-feedback-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.app-feedback-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(34, 197, 94, 0.2));
  color: #11a468;
  box-shadow: inset 0 0 0 1px rgba(17, 164, 104, 0.14);
}

.app-feedback-toast-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-feedback-toast-message {
  margin: 0;
  color: #1b3259;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

.dashboard-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 188px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dashboard-datetime-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-datetime-value {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.dashboard-userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.dashboard-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.dashboard-icon-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.dashboard-userbar-divider {
  width: 2px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.dashboard-user-menu {
  position: relative;
  min-width: 0;
}

.dashboard-user-menu summary {
  list-style: none;
}

.dashboard-user-menu summary::-webkit-details-marker {
  display: none;
}

.dashboard-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
}

.dashboard-user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #192245;
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-user-name {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-user-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}

.dashboard-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 162px;
  padding: 8px 0 0;
  border-radius: 0 0 4px 4px;
  background: #192245;
  box-shadow: 0 18px 36px rgba(8, 12, 27, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dashboard-user-dropdown a {
  display: block;
  padding: 9px 20px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-user-dropdown-footer {
  margin-top: 8px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-user-dropdown-footer a {
  position: relative;
  padding-left: 42px;
}

.dashboard-user-dropdown-footer a::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: currentColor;
  clip-path: polygon(0 35%, 56% 35%, 56% 0, 100% 50%, 56% 100%, 56% 65%, 0 65%);
}

.dashboard-mobile-nav-toggle,
.dashboard-mobile-nav-overlay,
.dashboard-mobile-nav {
  display: none;
}

.dashboard-mobile-nav-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(21, 32, 61, 0.96);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(9, 16, 33, 0.24);
  cursor: pointer;
}

.dashboard-mobile-nav-toggle svg,
.dashboard-mobile-nav-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dashboard-mobile-nav {
  color: #ffffff;
}

.dashboard-mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-mobile-nav-brand {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.dashboard-mobile-nav-brand img {
  display: block;
  width: 138px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.dashboard-mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.dashboard-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.dashboard-mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-mobile-nav-link:hover,
.dashboard-mobile-nav-link.is-active {
  background: #202a50;
  transform: translateX(2px);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 54px);
  padding: 16px;
  background: #dde4ee;
}

.client-content {
  gap: 20px;
  background: transparent;
  min-height: auto;
}

.client-header-card,
.client-table-card {
  border: 0;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(12, 24, 46, 0.12);
}

.client-header-card {
  padding: 22px 26px 28px;
}

.client-header-card h1 {
  margin: 0 0 8px;
  color: #28446f;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.client-header-card p {
  margin: 0;
  color: #6f7f95;
  font-size: 0.9rem;
}

.client-header-card p span {
  margin-inline: 6px;
}

.client-table-card {
  position: relative;
  margin: 0;
  padding: 16px;
}

.employee-list-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.employee-toolbar-card {
  margin: 0 0 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(12, 24, 46, 0.12);
}

.employee-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
}

.employee-table-head,
.employee-table-row {
  display: grid;
  grid-template-columns: 30px minmax(220px, 1.6fr) minmax(120px, 1fr) minmax(120px, 1fr) 110px 96px;
  gap: 14px;
  align-items: center;
}

.employee-table-head {
  min-height: 38px;
  padding: 10px 14px;
  margin-top: 0;
  border-radius: 2px;
  background: #eef3f9;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
  color: #57708f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-table-row {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
}

.employee-table-row.is-hidden {
  display: none;
}

.employee-table-row.is-selected {
  background: rgba(25, 34, 69, 0.04);
}

.employee-main-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.employee-main-cell strong {
  color: #1b3259;
  font-size: 0.95rem;
}

.employee-main-cell small {
  color: #7890aa;
  font-size: 0.8rem;
}

.employee-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-row-actions form {
  margin: 0;
}

.employee-empty-state {
  margin-top: 14px;
  padding: 56px 24px 42px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(12, 24, 46, 0.12);
}

.employee-modal {
  width: min(100%, 900px);
  max-width: 900px;
  --modal-section-gutter: 16px;
}

.employee-modal .client-modal-header {
  padding: 34px 34px 32px;
  border-bottom: 1px solid #e4ebf4;
}

.employee-modal .client-modal-header h2 {
  color: #2f476f;
  font-size: 1.1rem;
  font-weight: 800;
}

.employee-modal .client-modal-close {
  color: #d1d7e0;
  font-size: 1.55rem;
}

.employee-modal .client-modal-body {
  max-height: calc(100vh - 230px);
  padding: 20px;
  background: #f4f8fc;
}

.employee-modal .client-modal-card {
  margin-bottom: 18px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(19, 27, 54, 0.12);
}

.employee-modal .client-modal-field {
  gap: 7px;
}

.employee-modal .client-modal-field span {
  color: #24395c;
  font-size: 0.74rem;
  font-weight: 800;
}

.employee-modal .client-modal-field input,
.employee-modal .client-modal-field select {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d9e1ec;
  border-radius: 0;
  background: #ffffff;
  color: #39506f;
  font-size: 0.9rem;
}

.employee-modal .client-modal-field input::placeholder {
  color: #95a4b8;
}

.employee-modal .client-modal-select-wrap::after {
  right: 14px;
}

.employee-modal .client-modal-inline-action {
  width: 38px;
  height: 32px;
  border-left: 1px solid #d9e1ec;
  border-radius: 0;
  color: #2f4668;
}

.employee-modal .client-modal-inline-action svg {
  width: 15px;
  height: 15px;
}

.employee-modal .client-modal-address-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 14px var(--modal-section-gutter) 16px;
}

.employee-modal .client-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
  padding: 14px var(--modal-section-gutter) 10px;
  border-top: 1px solid #dfe7f1;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(19, 27, 54, 0.12);
}

.employee-modal .client-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 40px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
}

.employee-modal .client-modal-button.secondary {
  border-color: #afbacb;
}

.employee-modal .client-modal-button.info {
  background: #2d96e7;
}

.employee-modal .client-modal-button.success {
  background: #28b592;
}

.employee-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.employee-sector-field {
  grid-column: 1 / span 2;
}

.employee-switch-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 27px;
  color: #29456f;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.employee-switch-label {
  color: #2e507d;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
}

.employee-switch {
  position: relative;
  width: 54px;
  height: 18px;
}

.employee-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.employee-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid #d6dde8;
  background: #ffffff;
  transition: background 0.2s ease;
}

.employee-switch-slider::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(27, 50, 89, 0.18);
  transition: transform 0.2s ease;
}

.employee-switch input:checked + .employee-switch-slider {
  background: #1eb79f;
  border-color: #1eb79f;
}

.employee-switch input:checked + .employee-switch-slider::before {
  transform: translateX(36px);
}

.employee-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #203961;
  font-size: 0.92rem;
  font-weight: 800;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px var(--modal-section-gutter) 4px;
}

.employee-photo-field {
  gap: 10px;
}

.employee-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.employee-photo-dropzone {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding: 14px;
  border: 1px dashed #c7d4e2;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7fb 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.employee-photo-dropzone:hover {
  border-color: #17b69f;
  box-shadow: 0 10px 24px rgba(18, 62, 96, 0.08);
  transform: translateY(-1px);
}

.employee-photo-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.employee-photo-preview {
  width: 110px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #d7e1ec;
  background: #ffffff;
}

.employee-photo-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f93ab;
}

.employee-photo-preview-placeholder svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.employee-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.employee-photo-copy strong {
  color: #203961;
  font-size: 0.98rem;
  font-weight: 800;
}

.employee-photo-copy span {
  color: #58708d;
  font-size: 0.9rem;
  font-weight: 600;
}

.employee-photo-copy small {
  color: #7890aa;
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-word;
}

.employee-photo-badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8fbf6;
  color: #109d87;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-photo-link {
  display: inline-flex;
}

.employee-photo-link a {
  color: #1a7fce;
  font-weight: 700;
  text-decoration: none;
}

.employee-photo-link a:hover {
  text-decoration: underline;
}

.employee-accordion {
  padding: 0 !important;
}

.employee-accordion[open] {
  padding: 0 !important;
}

.employee-accordion summary {
  list-style: none;
}

.employee-accordion summary::-webkit-details-marker {
  display: none;
}

.employee-accordion-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 var(--modal-section-gutter);
  color: #10b59a;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.employee-accordion:not([open]) .employee-accordion-summary {
  color: #203961;
}

.employee-accordion-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.employee-accordion[open] .employee-accordion-caret,
.employee-accordion-caret.is-open {
  transform: rotate(225deg);
}

.employee-accordion-content {
  border-top: 1px solid #dfe7f1;
}

.employee-accordion-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px var(--modal-section-gutter) 0;
}

.employee-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--modal-section-gutter);
  border-top: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
}

.employee-address-add {
  width: 38px;
  height: 34px;
  flex: 0 0 auto;
  margin-right: 0;
  border-color: #d5dfeb;
  font-size: 1.6rem;
  font-weight: 500;
}

.employee-modal-tab-strip {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--modal-section-gutter);
  border-bottom: 1px solid #dfe7f1;
}

.employee-modal-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #17b69f;
  font-size: 0.8rem;
  font-weight: 800;
}

.employee-modal-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: #17b69f;
}

.employee-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px var(--modal-section-gutter) 16px;
}

.employee-contact-item {
  position: relative;
  padding: 0 46px 0 0;
  border-top: 0;
}

.employee-contact-item:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.employee-remove-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #d8e2ee;
  border-radius: 2px;
  background: #ffffff;
  color: #29456f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.employee-address-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 14px 6px 12px 0;
  border-bottom: 3px solid #21c5a8;
  color: #1fbe9d;
  font-size: 0.78rem;
  font-weight: 800;
}

.employee-address-tag span {
  font-size: 1rem;
  line-height: 1;
}

.employee-address-description {
  grid-column: span 6;
}

.employee-address-country {
  grid-column: span 4;
}

.employee-address-zipcode {
  grid-column: span 2;
}

.employee-address-street {
  grid-column: span 6;
}

.employee-address-number {
  grid-column: span 2;
}

.employee-address-complement {
  grid-column: span 2;
}

.employee-address-district {
  grid-column: span 4;
}

.employee-address-state {
  grid-column: span 2;
}

.employee-address-city {
  grid-column: span 4;
}

.employee-address-type {
  grid-column: span 2;
}

.employee-commission-card {
  padding: 0 !important;
}

.employee-commission-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 var(--modal-section-gutter);
  color: #203961;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.employee-commission-summary::-webkit-details-marker {
  display: none;
}

.employee-commission-content {
  padding: 16px var(--modal-section-gutter) 10px;
  border-top: 1px solid #dfe7f1;
}

.employee-commission-plan-field {
  width: min(100%, 398px);
}

.employee-commission-checkbox {
  margin-left: 2px;
  cursor: pointer;
}

.employee-commission-checkbox span {
  width: 14px;
  height: 14px;
  border: 1px solid #cfd9e6;
  border-radius: 2px;
  background: #ffffff;
}

.employee-commission-checkbox input:checked + span {
  border-color: #2aa383;
  background: #2aa383;
}

.employee-commission-checkbox input:checked + span::after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
}

.employee-check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1fbe9d;
  font-size: 0.88rem;
  font-weight: 800;
}

.client-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.employee-toolbar-card .client-toolbar {
  min-height: 38px;
}

.client-search {
  display: flex;
  align-items: stretch;
  width: min(100%, 384px);
  min-height: 36px;
  border: 1px solid #d7dce7;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-search:focus-within {
  border-color: rgba(25, 34, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(25, 34, 69, 0.12);
}

.client-search input {
  width: 100%;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #44566f;
  background: transparent;
  font-size: 0.92rem;
}

.client-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  border: 0;
  border-left: 1px solid #d7dce7;
  background: #ffffff;
  color: #71829a;
  cursor: pointer;
}

.client-search svg,
.client-action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.client-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.client-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #c8d2e0;
  border-radius: 2px;
  background: #ffffff;
  color: #314c72;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.client-action-button:hover {
  box-shadow: 0 8px 18px rgba(25, 34, 69, 0.08);
}

.client-action-button.disabled,
.client-action-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
  background: #eef2f8;
  color: #6c7a96;
  border-color: #d5dde9;
  box-shadow: none;
}

.client-action-button.warning {
  border-color: #f1ab38;
  color: #d98900;
}

.client-action-button.success {
  border-color: #2ebd84;
  background: #2ebd84;
  color: #ffffff;
}

.client-action-button.is-active,
.client-action-button:focus-visible {
  outline: none;
  border-color: #1cc9c5;
  box-shadow: 0 0 0 3px rgba(28, 201, 197, 0.18);
}

.client-filters {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  margin: 14px 0 12px;
  padding: 10px 14px;
  border-top: 1px solid #dde3ee;
  border-bottom: 1px solid #dde3ee;
  background: #ffffff;
}

.client-filters.is-hidden,
.client-options-menu.is-hidden {
  display: none;
}

.client-filter-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid #23c3a5;
  border-radius: 6px;
  background: #27c4a8;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.client-filter-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffffff;
  color: #27b99f;
  font-size: 0.76rem;
  font-weight: 800;
}

.client-filter-close {
  border: 0;
  background: transparent;
  color: #314c72;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.client-filter-popover {
  position: absolute;
  top: calc(100% - 2px);
  left: 14px;
  z-index: 6;
  width: 200px;
  border: 1px solid #24c7bb;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 20px rgba(25, 34, 69, 0.12);
  overflow: hidden;
}

.client-filter-popover.is-hidden {
  display: none;
}

.client-filter-popover-head {
  padding: 16px 14px;
  border-bottom: 1px solid #ebeff5;
  color: #3b4f6f;
  font-size: 0.92rem;
}

.client-filter-popover-search {
  position: relative;
  padding: 14px;
  border-bottom: 1px solid #ebeff5;
}

.client-filter-popover-search svg {
  position: absolute;
  top: 50%;
  left: 26px;
  width: 18px;
  height: 18px;
  fill: #7b8ba3;
  transform: translateY(-50%);
}

.client-filter-popover-search input {
  width: 100%;
  height: 30px;
  padding: 0 12px 0 36px;
  border: 1px solid #23c6ba;
  border-radius: 4px;
  outline: none;
  color: #4a5e7f;
}

.client-filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 10px;
  border-bottom: 1px solid #ebeff5;
}

.client-filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #3d4f6d;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
}

.client-filter-option.is-hidden {
  display: none;
}

.client-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-filter-check {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #d2d8e4;
  background: #ffffff;
}

.client-filter-option input:checked + .client-filter-check {
  border-color: #34b39f;
  background: #34b39f;
}

.client-filter-option input:checked + .client-filter-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.client-filter-popover-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.client-filter-submit,
.client-filter-clear {
  height: 30px;
  border: 0;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.client-filter-submit {
  min-width: 86px;
  background: #27c4a8;
  color: #ffffff;
}

.client-filter-clear {
  background: transparent;
  color: #4b5d77;
}

.client-options-menu {
  position: absolute;
  top: 60px;
  right: 54px;
  z-index: 7;
  width: 202px;
  padding: 8px 0;
  border: 1px solid #24c7bb;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 20px rgba(25, 34, 69, 0.12);
}

.client-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  color: #223b63;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.client-option-item:hover:not(:disabled) {
  background: rgba(25, 34, 69, 0.05);
}

.client-option-item:disabled {
  color: #d5d9e2;
  cursor: not-allowed;
}

.client-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.client-option-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.client-option-item-export {
  margin-top: 4px;
  color: #223b63;
}

.client-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dde3ee;
  background: #ffffff;
}

.client-table-head,
.client-table-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0 14px;
}

.client-table-head {
  min-height: 38px;
  border-bottom: 1px solid #dde3ee;
  background: #ffffff;
  color: #2d4368;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-table-row {
  min-height: 44px;
  background: #ffffff;
  border-bottom: 1px solid #dde3ee;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.client-table-row:last-child {
  border-bottom: 0;
}

.client-table-row:hover {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #1cc3aa;
}

.client-table-row strong {
  color: #223b63;
  font-size: 0.92rem;
}

.client-table-row.is-hidden {
  display: none;
}

.client-table-row.is-selected {
  background: rgba(25, 34, 69, 0.04);
}

.client-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-checkbox span {
  width: 16px;
  height: 16px;
  border: 1px solid #d0d8e5;
  background: #ffffff;
}

.client-checkbox input:checked + span {
  position: relative;
  border-color: #192245;
  background: #192245;
}

.client-checkbox input:checked + span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.client-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.client-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.client-row-info strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-row-name-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.client-row-name-button strong {
  transition: color 0.2s ease;
}

.client-table-row:hover .client-row-name-button strong,
.client-table-row:hover .client-row-info strong {
  color: #192245;
}

.client-row-name-button:hover strong {
  color: #192245;
}

.client-row-name-button:focus-visible {
  outline: none;
}

.client-row-name-button:focus-visible strong {
  color: #192245;
  text-decoration: underline;
}

.client-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.client-table-row:hover .client-row-actions {
  opacity: 1;
}

.client-row-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #314c72;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.client-row-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.client-row-icon-button:hover {
  color: #192245;
  transform: translateY(-1px);
}

.client-row-icon-button.danger {
  color: #ce233c;
}

.client-row-icon-button.favorite {
  color: #d18c08;
}

.client-row-icon-button.favorite.is-active {
  color: #b97900;
}

.client-status-badge,
.client-favorite-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-status-badge.active {
  background: rgba(39, 196, 168, 0.16);
  color: #1f9d86;
}

.client-status-badge.inactive {
  background: rgba(201, 128, 35, 0.16);
  color: #b67512;
}

.client-favorite-badge {
  background: rgba(241, 171, 56, 0.18);
  color: #d98900;
}

.delete-confirm-backdrop,
.app-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 28, 45, 0.22);
  backdrop-filter: blur(3px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.delete-confirm-backdrop.is-leaving,
.app-confirm-backdrop.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.delete-confirm-backdrop.is-entering,
.app-confirm-backdrop.is-entering {
  animation: client-modal-fade-in 0.22s ease forwards;
}

.delete-confirm-backdrop.is-entering .delete-confirm-dialog,
.app-confirm-backdrop.is-entering .app-confirm-dialog {
  animation: client-modal-panel-in 0.24s ease forwards;
}

.delete-confirm-backdrop.is-leaving .delete-confirm-dialog,
.app-confirm-backdrop.is-leaving .app-confirm-dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.delete-confirm-dialog,
.app-confirm-dialog {
  width: min(100%, 420px);
  padding: 28px 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(209, 220, 236, 0.95);
  box-shadow: 0 24px 54px rgba(25, 34, 69, 0.16);
  text-align: center;
}

.delete-confirm-icon,
.app-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 215, 128, 0.2), rgba(255, 237, 196, 0.52));
  color: #d89a1f;
}

.delete-confirm-icon svg,
.app-confirm-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.delete-confirm-dialog h2,
.app-confirm-dialog h2 {
  margin: 0;
  color: #1b3259;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
}

.delete-confirm-dialog p,
.app-confirm-dialog p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.delete-confirm-actions,
.app-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.delete-confirm-button,
.app-confirm-button {
  min-width: 132px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.delete-confirm-button:hover,
.app-confirm-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.delete-confirm-button.cancel,
.app-confirm-button.cancel {
  background: #eef3f9;
  color: #355070;
}

.delete-confirm-button.confirm,
.app-confirm-button.confirm {
  min-width: 108px;
  background: linear-gradient(135deg, #192245, #284774);
  color: #ffffff;
}

.client-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: start center;
  padding: 132px 28px 36px;
  background: rgba(22, 28, 45, 0.42);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.client-modal {
  width: min(100%, 980px);
  max-height: calc(100vh - 150px);
  --modal-section-gutter: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(11, 16, 30, 0.26);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}

.client-modal-backdrop.is-entering {
  animation: client-modal-fade-in 0.22s ease forwards;
}

.client-modal-backdrop.is-entering .client-modal {
  animation: client-modal-panel-in 0.24s ease forwards;
}

.client-modal-backdrop.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.client-modal-backdrop.is-leaving .client-modal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.client-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 34px;
  border-bottom: 1px solid #edf1f7;
}

.client-modal-header h2 {
  margin: 0;
  color: #314c72;
  font-size: 1.06rem;
  font-weight: 800;
}

.client-modal-close {
  border: 0;
  background: transparent;
  color: #c6cbd5;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.client-modal-body {
  max-height: calc(100vh - 244px);
  padding: 10px 10px 0;
  overflow-y: auto;
}

.client-modal-card {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e2e8f1;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(19, 27, 54, 0.08);
}

.client-modal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px 14px;
}

.client-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-modal-field span {
  color: #24395c;
  font-size: 0.78rem;
  font-weight: 800;
}

.client-modal-field input,
.client-modal-field select {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #3d5070;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-date-field {
  padding-right: 40px !important;
}

.client-date-field::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  margin-right: 2px;
  cursor: pointer;
  opacity: 0.78;
}

.client-modal-field-span-2 {
  grid-column: span 2;
}

.client-modal-field input:focus,
.client-modal-field select:focus {
  border-color: rgba(25, 34, 69, 0.5);
  box-shadow: 0 0 0 3px rgba(25, 34, 69, 0.12);
}

.client-modal-collapse {
  padding: 0;
}

.client-modal-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 0 var(--modal-section-gutter);
  border: 0;
  background: #ffffff;
  color: #24395c;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.client-modal-collapse-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.client-modal-collapse-trigger[aria-expanded="true"] .client-modal-collapse-caret {
  transform: rotate(225deg);
}

.client-modal-collapse-content {
  padding: 0 var(--modal-section-gutter) 16px;
  border-top: 1px solid #edf1f7;
}

.client-modal-collapse-trigger,
.client-modal-section-title,
.client-modal-collapse-trigger-section {
  font-size: 0.95rem;
}

.client-modal-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px var(--modal-section-gutter) 12px;
  border-bottom: 1px solid #e7edf5;
}

.client-modal-tab {
  position: relative;
  border: 0;
  padding: 0 0 3px;
  background: transparent;
  color: #24395c;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.client-modal-tab.is-active {
  color: #18b39a;
}

.client-modal-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: #18b39a;
}

.client-modal-general-grid,
.client-modal-address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 12px var(--modal-section-gutter) 20px;
}

.client-modal-tab-panel {
  padding-top: 2px;
}

.client-management-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 4px;
}

.client-management-card {
  border: 1px solid #e2e8f1;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(19, 27, 54, 0.05);
}

.client-credit-grid {
  display: grid;
  gap: 14px;
  padding: 14px 12px 16px;
}

.client-credit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-credit-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e2e8f1;
  background: #f9fbff;
}

.client-credit-metric span {
  color: #6c7e98;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.client-credit-metric strong {
  color: #24395c;
  font-size: 1.15rem;
  font-weight: 800;
}

.client-credit-metric strong.is-negative {
  color: #ce233c;
}

.client-purchase-chart-card {
  border: 1px solid #e2e8f1;
  background: #fbfdff;
}

.client-purchase-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf5;
}

.client-purchase-chart-head strong {
  color: #24395c;
  font-size: 0.84rem;
  font-weight: 800;
}

.client-purchase-chart-head span {
  color: #6d7f99;
  font-size: 0.75rem;
  font-weight: 700;
}

.client-purchase-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  padding: 18px 14px 14px;
}

.client-purchase-chart-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  grid-column: 1 / -1;
  color: #6d7f99;
  font-size: 0.83rem;
  font-weight: 700;
}

.client-purchase-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 172px;
}

.client-purchase-bar-value {
  color: #24395c;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.client-purchase-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 120px;
  padding: 0 8px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(59, 141, 221, 0.08), rgba(39, 184, 154, 0.04));
}

.client-purchase-bar-fill {
  width: min(42px, 100%);
  min-height: 4px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #3b8ddd 0%, #27b89a 100%);
}

.client-purchase-bar-label {
  color: #6d7f99;
  font-size: 0.72rem;
  font-weight: 700;
}

.client-management-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #e7edf5;
}

.client-management-head h3 {
  margin: 0;
  color: #24395c;
  font-size: 0.82rem;
  font-weight: 800;
}

.client-management-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7b93;
  font-size: 0.75rem;
  font-weight: 700;
}

.client-management-head-meta strong {
  padding: 3px 10px;
  border: 1px solid #cfd8e6;
  color: #3b547a;
  font-weight: 800;
}

.client-management-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  padding: 18px 16px;
  text-align: center;
}

.client-management-empty strong {
  color: #24395c;
  font-size: 0.96rem;
  font-weight: 800;
}

.client-management-empty p {
  margin: 0;
  color: #68809f;
  font-size: 0.84rem;
}

.client-management-empty.is-unavailable {
  min-height: 180px;
}

.client-management-key-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #3b8ddd;
  color: #ffffff;
}

.client-management-key-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.client-management-link-button {
  min-width: 74px;
  height: 28px;
  border: 1px solid #3b8ddd;
  background: #ffffff;
  color: #3b8ddd;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.client-management-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e7edf5;
}

.client-management-action {
  min-width: 136px;
  height: 30px;
  border: 0;
  background: #27b89a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.client-management-text-button {
  border: 0;
  background: transparent;
  color: #6b7b93;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.client-management-table-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf5;
  color: #24395c;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 14px 12px 16px;
}

.client-management-grid-single {
  grid-template-columns: 1fr;
}

.client-commission-list {
  display: flex;
  flex-direction: column;
}

.client-commission-item {
  padding: 12px;
  border-top: 1px solid #e7edf5;
}

.client-commission-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 12px 14px;
}

.client-commission-percentage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
}

.client-commission-percentage-wrap .client-modal-select-wrap {
  min-width: 0;
}

.client-modal-select-wrap,
.client-modal-input-action {
  position: relative;
}

.client-modal-select-wrap.has-flag select {
  padding-left: 42px;
}

.client-modal-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(25, 34, 69, 0.18);
  border-radius: 2px;
  background: #1b9448 url("./bandeira-brasil.svg") center / cover no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: hidden;
}

.client-modal-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #314c72;
  border-bottom: 2px solid #314c72;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.client-modal-select-wrap select {
  width: 100%;
  padding-right: 34px;
  appearance: none;
}

.client-modal-input-action input {
  width: 100%;
  padding-right: 42px;
}

.client-modal-inline-action {
  position: absolute;
  top: 1px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 0;
  border-left: 1px solid #d8deea;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  color: #6a7a93;
  cursor: pointer;
}

.client-modal-inline-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.client-modal-section {
  padding: 0;
}

.client-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 var(--modal-section-gutter);
  border-bottom: 1px solid #e7edf5;
}

.client-modal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24395c;
  font-weight: 800;
}

.client-modal-collapse-caret-static {
  width: 8px;
  height: 8px;
}

.client-modal-collapse-trigger-section {
  min-height: 46px;
  padding: 0;
  background: transparent;
}

.client-modal-square-action {
  width: 22px;
  height: 22px;
  border: 1px solid #d6dfeb;
  background: #ffffff;
  color: #24395c;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.client-modal-square-action.danger {
  border-color: #efc5cb;
  background: #fff7f8;
  color: #ce233c;
}

.client-modal-section-content {
  overflow: hidden;
  padding-bottom: 10px;
}

.client-modal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px var(--modal-section-gutter);
}

.client-modal-contact-item {
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #fbfdff;
}

.client-modal-contact-item-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

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

.client-modal-address-tag {
  padding: 10px var(--modal-section-gutter);
  color: #18b39a;
  font-size: 0.76rem;
  font-weight: 800;
  border-bottom: 1px solid #e7edf5;
}

.client-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px var(--modal-section-gutter) 14px;
}

.client-modal-button {
  min-width: 106px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.client-modal-button.secondary {
  border-color: #b8c3d4;
  background: #ffffff;
  color: #2f4667;
}

.client-modal-button.info {
  background: #2f95e5;
  color: #ffffff;
}

.client-modal-button.success {
  background: #27b89a;
  color: #ffffff;
}

.is-hidden {
  display: none !important;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

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

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

.dash-card {
  border: 1px solid rgba(223, 209, 214, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(111, 19, 39, 0.08);
  overflow: hidden;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(236, 223, 227, 0.95);
}

.dash-card-head h2 {
  margin: 0;
  color: #192245;
  font-size: 0.95rem;
  font-weight: 800;
}

.dash-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #192245;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.dash-card-body {
  padding: 18px 16px;
}

.dash-card-body.center {
  text-align: center;
}

.dash-metric {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dash-metric-success {
  color: #1c9d60;
}

.dash-metric-danger {
  color: #192245;
}

.dash-metric-neutral {
  color: #192245;
}

.dash-meta {
  margin: 6px 0 0;
  color: #8f6771;
  font-size: 0.82rem;
  font-weight: 700;
}

.cashflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.cashflow-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff9fa;
}

.cashflow-item span {
  color: #82606b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cashflow-item strong {
  font-size: 1rem;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefe, #f4ecef);
  border: 1px solid rgba(232, 220, 224, 0.95);
  color: #192245;
  font-size: 0.88rem;
  font-weight: 800;
}

.account-pill span {
  color: #8f6670;
}

.funnel-layout {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: end;
  min-height: 230px;
  padding: 18px 16px;
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #74515d;
  font-size: 0.8rem;
  font-weight: 700;
}

.funnel-placeholder {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 170px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(228, 213, 218, 0.95);
}

.funnel-bar {
  width: 42px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(25, 34, 69, 0.92), rgba(25, 34, 69, 0.3));
}

.funnel-bar-1 { height: 22%; }
.funnel-bar-2 { height: 36%; }
.funnel-bar-3 { height: 52%; }
.funnel-bar-4 { height: 70%; }
.funnel-bar-5 { height: 84%; }

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #75525d;
  font-size: 0.8rem;
  font-weight: 700;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}

.legend-dot.gained {
  background: #1ca563;
}

.legend-dot.open {
  background: #192245;
}

.switch-group {
  display: inline-flex;
  border: 1px solid rgba(225, 211, 216, 0.95);
  border-radius: 999px;
  overflow: hidden;
}

.switch-group span {
  padding: 5px 10px;
  color: #7d5a64;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
}

.switch-group span:nth-child(2) {
  background: #f8eef1;
  color: #192245;
}

.line-chart {
  min-height: 230px;
  padding: 16px;
}

.line-chart-grid {
  position: relative;
  height: 150px;
  border-left: 1px solid rgba(230, 216, 220, 0.95);
  border-bottom: 1px solid rgba(230, 216, 220, 0.95);
  background:
    linear-gradient(rgba(240, 228, 232, 0.55) 1px, transparent 1px) 0 0 / 100% 37px;
}

.line-chart-svg {
  position: relative;
  margin-top: -151px;
  height: 150px;
}

.line-chart-svg::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 32px;
  top: 78px;
  height: 2px;
  background: linear-gradient(90deg, rgba(25, 34, 69, 0.22), rgba(25, 34, 69, 0.92));
  clip-path: polygon(0 54%, 18% 40%, 42% 62%, 69% 28%, 100% 45%, 100% 60%, 69% 43%, 42% 77%, 18% 55%, 0 69%);
}

.chart-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #192245;
  box-shadow: 0 0 0 6px rgba(25, 34, 69, 0.12);
}

.chart-point-1 { left: 14%; top: 68px; }
.chart-point-2 { left: 39%; top: 82px; }
.chart-point-3 { left: 64%; top: 54px; }
.chart-point-4 { left: 86%; top: 72px; }

.line-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #82626b;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-table {
  padding: 0 0 16px;
}

.dashboard-table-head {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.4fr 0.8fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(236, 223, 227, 0.95);
  color: #85656e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  text-align: center;
}

.dashboard-empty.small {
  min-height: 122px;
}

.dashboard-empty strong {
  color: #76535e;
  font-size: 0.95rem;
}

.empty-illustration {
  width: 134px;
  height: 134px;
  background: url("./logo.png") center / contain no-repeat;
}

.crm-dashboard-content {
  gap: 18px;
}

.crm-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 196px;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.24), transparent 32%),
    radial-gradient(circle at left center, rgba(30, 200, 165, 0.18), transparent 28%),
    linear-gradient(135deg, #162341 0%, #22335f 52%, #1e4f7b 100%);
  box-shadow: 0 22px 45px rgba(12, 24, 46, 0.2);
  color: #ffffff;
}

.crm-hero-card h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.crm-hero-eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crm-hero-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.6;
}

.crm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.crm-hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.crm-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 136px;
  padding: 18px;
  overflow: hidden;
}

.crm-kpi-card::before,
.crm-insight-card::before,
.crm-finance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.crm-tone-cyan::before {
  background: linear-gradient(135deg, rgba(64, 206, 255, 0.14), rgba(21, 32, 61, 0));
}

.crm-tone-orange::before {
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.16), rgba(21, 32, 61, 0));
}

.crm-tone-violet::before {
  background: linear-gradient(135deg, rgba(110, 86, 255, 0.14), rgba(21, 32, 61, 0));
}

.crm-tone-emerald::before {
  background: linear-gradient(135deg, rgba(30, 200, 165, 0.16), rgba(21, 32, 61, 0));
}

.crm-tone-navy::before {
  background: linear-gradient(135deg, rgba(25, 34, 69, 0.18), rgba(76, 201, 240, 0.1));
}

.crm-tone-rose::before {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.18), rgba(21, 32, 61, 0));
}

.crm-kpi-icon,
.crm-kpi-copy,
.crm-insight-card span,
.crm-insight-card strong,
.crm-insight-card small {
  position: relative;
  z-index: 1;
}

.crm-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 242, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(25, 34, 69, 0.06);
}

.crm-kpi-icon svg,
.crm-card-title-icon svg {
  width: 24px;
  height: 24px;
  fill: #192245;
}

.crm-kpi-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.crm-kpi-label {
  display: block;
  color: #6f7e96;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crm-kpi-copy strong {
  display: block;
  color: #172347;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.crm-kpi-copy small {
  display: block;
  color: #7d6a73;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

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

.crm-finance-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
}

.crm-finance-card .dash-card-head,
.crm-finance-card .dash-card-body {
  position: relative;
  z-index: 1;
}

.crm-card-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crm-card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(25, 34, 69, 0.08);
}

.crm-finance-value {
  display: block;
  color: #162341;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.crm-highlight-grid,
.crm-bottom-grid {
  grid-template-columns: 1.45fr 1fr;
}

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

.crm-insight-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(230, 220, 225, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 244, 0.92));
  overflow: hidden;
}

.crm-insight-card span {
  display: block;
  color: #6d7a92;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crm-insight-card strong {
  display: block;
  margin-top: 10px;
  color: #162341;
  font-size: 1.1rem;
  font-weight: 800;
}

.crm-insight-card small {
  display: block;
  margin-top: 6px;
  color: #7f6871;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.crm-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f0f2);
  border: 1px solid rgba(230, 220, 225, 0.95);
}

.crm-client-row strong {
  display: block;
  color: #162341;
  font-size: 0.95rem;
}

.crm-client-row small,
.crm-client-row span {
  color: #7c6670;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.crm-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 20px;
}

.crm-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-bar-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.crm-bar-copy strong {
  color: #172347;
  font-size: 0.92rem;
}

.crm-bar-copy span {
  color: #7d6771;
  font-size: 0.8rem;
  font-weight: 700;
}

.crm-bar-track {
  position: relative;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f8, #f7eff2);
}

.crm-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 8px 16px rgba(21, 32, 61, 0.12);
}

.crm-bar-fill-cyan {
  background: linear-gradient(90deg, #1ec8a5, #4cc9f0);
}

.crm-bar-fill-violet {
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
}

.crm-column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 280px;
  padding: 18px 16px 20px;
}

.crm-column-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crm-column-value {
  color: #6a778d;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.crm-column-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 170px;
  padding: 10px 0 0;
  border-radius: 16px 16px 12px 12px;
  background:
    linear-gradient(rgba(227, 215, 221, 0.5) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(180deg, #f8fbff, #eef3f9);
}

.crm-column-fill {
  width: 60px;
  max-width: 78%;
  min-height: 8px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #1ec8a5, #4f46e5);
  box-shadow: 0 12px 18px rgba(79, 70, 229, 0.18);
}

.crm-column-item strong {
  color: #7d6771;
  font-size: 0.8rem;
  font-weight: 800;
}

.crm-compare-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  min-height: 320px;
  padding: 18px 16px 8px;
}

.crm-compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crm-compare-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.crm-compare-sales-value,
.crm-compare-payables-value {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.crm-compare-sales-value {
  color: #1d9d87;
}

.crm-compare-payables-value {
  color: #c26d26;
}

.crm-compare-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 180px;
  padding: 10px 10px 0;
  border-radius: 16px 16px 12px 12px;
  background:
    linear-gradient(rgba(227, 215, 221, 0.5) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(180deg, #f8fbff, #eef3f9);
}

.crm-compare-fill {
  width: 28px;
  max-width: 44%;
  min-height: 8px;
  border-radius: 14px 14px 10px 10px;
  box-shadow: 0 12px 18px rgba(21, 32, 61, 0.12);
}

.crm-compare-fill-sales {
  background: linear-gradient(180deg, #1ec8a5, #4cc9f0);
}

.crm-compare-fill-payables {
  background: linear-gradient(180deg, #f59e0b, #fb7185);
}

.crm-compare-item strong {
  color: #7d6771;
  font-size: 0.8rem;
  font-weight: 800;
}

.crm-compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 0 16px 18px;
  color: #6e768b;
  font-size: 0.82rem;
  font-weight: 700;
}

.crm-compare-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crm-compare-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.crm-compare-dot.sales {
  background: linear-gradient(180deg, #1ec8a5, #4cc9f0);
}

.crm-compare-dot.payables {
  background: linear-gradient(180deg, #f59e0b, #fb7185);
}

.planning-hero-card {
  align-items: flex-start;
}

.planning-hero-badges {
  justify-content: flex-end;
}

.planning-layout-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.25fr);
  align-items: start;
}

.planning-card {
  padding: 0;
  overflow: hidden;
}

.planning-card .dash-card-head {
  padding: 18px 22px;
}

.planning-copy-block {
  padding: 0 22px 8px;
}

.planning-copy-block strong {
  display: block;
  color: #172347;
  font-size: 1rem;
  font-weight: 800;
}

.planning-copy-block p {
  margin: 8px 0 0;
  color: #6c758d;
  line-height: 1.6;
}

.planning-question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 22px;
}

.planning-question-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
  border: 1px solid rgba(34, 58, 104, 0.08);
}

.planning-question-bullet {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1ec8a5, #4f46e5);
}

.planning-question-item p {
  margin: 0;
  color: #243452;
  line-height: 1.55;
  font-weight: 600;
}

.planning-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px 22px;
}

.planning-section {
  border: 1px solid rgba(34, 58, 104, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  overflow: hidden;
}

.planning-section[open] {
  box-shadow: 0 12px 28px rgba(25, 34, 69, 0.08);
}

.planning-section-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.planning-section-summary::-webkit-details-marker {
  display: none;
}

.planning-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1f3a5f, #3557a6);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.planning-section-summary strong {
  display: block;
  color: #172347;
  font-size: 1rem;
}

.planning-section-summary small {
  display: block;
  margin-top: 4px;
  color: #7b8195;
  font-size: 0.8rem;
  font-weight: 700;
}

.planning-section-body {
  padding: 0 18px 18px 70px;
}

.planning-list {
  margin: 0;
  padding-left: 18px;
  color: #243452;
}

.planning-list li {
  margin: 0 0 10px;
  line-height: 1.55;
}

.planning-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7e7, #fff1d6);
  color: #7a5417;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.planning-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.planning-dynamic-hero {
  align-items: center;
}

.planning-strategy-grid,
.planning-charts-grid,
.planning-insights-grid,
.planning-modules-grid {
  display: grid;
  gap: 18px;
}

.planning-strategy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.planning-insights-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.planning-modules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planning-progress-card {
  overflow: hidden;
}

.planning-progress-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
}

.planning-progress-body strong {
  color: #172347;
  font-size: 1.7rem;
  line-height: 1.1;
}

.planning-progress-body span,
.planning-progress-body small {
  color: #6d7488;
}

.planning-progress-body small {
  font-weight: 700;
}

.planning-progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #edf2f8, #f5eef5);
}

.planning-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ec8a5, #3557a6);
}

.planning-tone-emerald .planning-progress-fill {
  background: linear-gradient(90deg, #1ec8a5, #3ddbb6);
}

.planning-tone-violet .planning-progress-fill {
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
}

.planning-tone-orange .planning-progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fb7185);
}

.planning-chart-card {
  overflow: hidden;
}

.planning-chart-shell {
  position: relative;
  min-height: 320px;
  padding: 0 16px 18px;
}

.planning-chart-shell.compact {
  min-height: 300px;
}

.planning-insight-card {
  overflow: hidden;
}

.planning-insight-list {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.planning-insight-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #eff4fb);
  border: 1px solid rgba(35, 53, 91, 0.08);
}

.planning-insight-list strong {
  color: #172347;
  font-size: 0.96rem;
}

.planning-insight-list span {
  color: #3557a6;
  font-size: 0.92rem;
  font-weight: 800;
}

.planning-invest-form {
  display: grid;
  gap: 14px;
  padding: 0 20px 18px;
}

.planning-invest-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-invest-form span {
  color: #243452;
  font-size: 0.82rem;
  font-weight: 800;
}

.planning-invest-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: #ffffff;
  color: #162341;
  font: inherit;
}

.planning-decision-card {
  margin: 0 20px 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f5f8fd, #edf3fb);
  border: 1px solid rgba(35, 53, 91, 0.08);
}

.planning-decision-card strong {
  display: block;
  color: #172347;
  font-size: 1rem;
}

.planning-decision-card p {
  margin: 8px 0 0;
  color: #647089;
  line-height: 1.55;
}

.planning-decision-card.good {
  background: linear-gradient(180deg, #edfdf7, #dbf7ee);
  border-color: rgba(30, 200, 165, 0.22);
}

.planning-decision-card.warning {
  background: linear-gradient(180deg, #fff9eb, #fff0d2);
  border-color: rgba(245, 158, 11, 0.24);
}

.planning-decision-card.danger {
  background: linear-gradient(180deg, #fff3f3, #ffe1e1);
  border-color: rgba(244, 63, 94, 0.24);
}

.planning-module-card {
  padding-bottom: 6px;
}

.planning-module-card p {
  margin: 0;
  padding: 0 20px 20px;
  color: #647089;
  line-height: 1.6;
}

.graphs-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.graphs-hero {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.graphs-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.graphs-filter-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.graphs-filter-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.graphs-filter-button.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #172347;
  box-shadow: 0 12px 28px rgba(11, 23, 48, 0.16);
}

.graphs-summary-grid,
.graphs-chart-grid,
.graphs-insight-grid {
  display: grid;
  gap: 18px;
}

.graphs-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.graphs-summary-card {
  padding: 22px;
  border-radius: 28px;
}

.graphs-summary-card span {
  display: block;
  color: #5d6880;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.graphs-summary-card strong {
  display: block;
  margin-top: 10px;
  color: #162341;
  font-size: 1.9rem;
  line-height: 1.08;
}

.graphs-summary-card small {
  display: block;
  margin-top: 8px;
  color: #79839b;
  line-height: 1.5;
}

.graphs-summary-card.tone-blue {
  background: linear-gradient(180deg, #eef5ff, #ffffff);
}

.graphs-summary-card.tone-emerald {
  background: linear-gradient(180deg, #ecfffa, #ffffff);
}

.graphs-summary-card.tone-orange {
  background: linear-gradient(180deg, #fff7ea, #ffffff);
}

.graphs-summary-card.tone-violet {
  background: linear-gradient(180deg, #f5efff, #ffffff);
}

.graphs-summary-card.tone-indigo {
  background: linear-gradient(180deg, #edf2ff, #ffffff);
}

.graphs-summary-card.tone-red {
  background: linear-gradient(180deg, #fff0f3, #ffffff);
}

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

.graphs-chart-card,
.graphs-insight-card,
.graphs-info-card {
  overflow: hidden;
}

.graphs-chart-shell {
  min-height: 330px;
}

.graphs-insight-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.graphs-info-list {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.graphs-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #eff4fb);
  border: 1px solid rgba(35, 53, 91, 0.08);
}

.graphs-info-list strong {
  color: #172347;
  font-size: 0.96rem;
}

.graphs-info-list span {
  color: #3557a6;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: right;
}

.typing-title-static {
  margin: 0;
  color: #192245;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.app-install-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  padding: 20px 18px;
  gap: 16px;
}

.app-install-page {
  overflow: auto;
}

.app-install-hero {
  padding-top: 42px;
  padding-bottom: 42px;
}

.app-install-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 24px rgba(25, 34, 69, 0.14));
}

.app-install-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(25, 34, 69, 0.14);
  border-radius: 18px;
  background: #f7f9fd;
  color: #192245;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.app-install-android-button {
  font: inherit;
}

.app-install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.app-install-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f9fd;
  border: 1px solid rgba(25, 34, 69, 0.08);
  text-align: left;
}

.app-install-step strong {
  color: #192245;
  font-size: 0.94rem;
}

.app-install-step span {
  color: #5f6d86;
  line-height: 1.55;
}

.ios-install-hint {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 35, 71, 0.96);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 23, 48, 0.26);
  backdrop-filter: blur(10px);
}

.ios-install-hint__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-install-hint__content strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.ios-install-hint__content span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ios-install-hint__close {
  min-width: 82px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .crm-compare-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planning-layout-grid {
    grid-template-columns: 1fr;
  }

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

  .planning-insights-grid {
    grid-template-columns: 1fr;
  }

  .graphs-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .graphs-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 839px) {
  .crm-compare-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .crm-compare-track {
    height: 150px;
  }

  .planning-card .dash-card-head,
  .planning-copy-block,
  .planning-question-list,
  .planning-sections {
    padding-left: 18px;
    padding-right: 18px;
  }

  .planning-section-body {
    padding: 0 16px 16px 16px;
  }

  .planning-charts-grid,
  .planning-strategy-grid,
  .planning-modules-grid {
    grid-template-columns: 1fr;
  }

  .planning-chart-shell,
  .planning-chart-shell.compact {
    min-height: 280px;
  }

  .graphs-hero {
    align-items: flex-start;
  }

  .graphs-summary-grid,
  .graphs-chart-grid {
    grid-template-columns: 1fr;
  }

  .graphs-chart-shell {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .crm-compare-chart {
    grid-template-columns: 1fr;
  }

  .crm-compare-values {
    align-items: flex-start;
    text-align: left;
  }

  .crm-compare-track {
    justify-content: flex-start;
  }

  .planning-section-summary {
    align-items: flex-start;
  }

  .planning-insight-list div {
    flex-direction: column;
    align-items: flex-start;
  }

  .graphs-filter-button {
    width: 100%;
  }

  .graphs-summary-card {
    padding: 18px;
    border-radius: 24px;
  }

  .graphs-summary-card strong {
    font-size: 1.55rem;
  }

  .graphs-info-list div {
    flex-direction: column;
    align-items: flex-start;
  }

  .graphs-info-list span {
    text-align: left;
  }

  .ios-install-hint {
    flex-direction: column;
    align-items: flex-start;
  }

  .ios-install-hint__close {
    width: 100%;
  }
}

.crm-donut-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 16px 22px;
}

.crm-donut-wrap {
  display: flex;
  justify-content: center;
}

.crm-donut {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(25, 34, 69, 0.04);
}

.crm-donut-hole {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(12, 24, 46, 0.12);
  text-align: center;
}

.crm-donut-hole strong {
  color: #162341;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.crm-donut-hole span {
  display: block;
  margin-top: 6px;
  color: #7a6470;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crm-status-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f0f2);
  border: 1px solid rgba(230, 220, 225, 0.95);
}

.crm-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 12px;
}

.crm-status-row strong {
  display: block;
  color: #162341;
  font-size: 0.88rem;
}

.crm-status-row small {
  color: #7a6470;
  font-size: 0.78rem;
  font-weight: 700;
}

.crm-balance-panel,
.crm-summary-grid {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

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

.crm-balance-block,
.crm-summary-pill {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(230, 220, 225, 0.95);
  background: linear-gradient(180deg, #ffffff, #f6f0f2);
}

.crm-balance-block span,
.crm-summary-pill span {
  display: block;
  color: #7a6470;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crm-balance-block strong,
.crm-summary-pill strong {
  display: block;
  margin-top: 8px;
  color: #162341;
  font-size: 1.12rem;
  font-weight: 800;
}

.crm-summary-pill small {
  display: block;
  margin-top: 6px;
  color: #7c6670;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-dashboard-content {
  gap: 18px;
}

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

.stock-stat-card .dash-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stock-stat-card strong {
  color: #162341;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.stock-stat-card span {
  color: #7a6470;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.stock-risk-grid {
  grid-template-columns: 1.25fr 1fr;
}

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

.stock-projection-pill,
.stock-risk-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(230, 220, 225, 0.95);
  background: linear-gradient(180deg, #ffffff, #f6f0f2);
}

.stock-projection-pill span,
.stock-risk-item span {
  display: block;
  color: #7a6470;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-projection-pill strong,
.stock-risk-item strong {
  display: block;
  margin-bottom: 6px;
  color: #162341;
  font-size: 1rem;
  font-weight: 800;
}

.stock-risk-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.stock-form-card {
  overflow: visible;
}

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

.stock-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stock-form-field span {
  color: #192245;
  font-size: 0.88rem;
  font-weight: 800;
}

.stock-form-field input,
.stock-form-field select,
.stock-form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(221, 208, 214, 0.95);
  border-radius: 12px;
  background: #ffffff;
  color: #192245;
}

.stock-form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.stock-form-field input:focus,
.stock-form-field select:focus,
.stock-form-field textarea:focus {
  outline: none;
  border-color: rgba(25, 34, 69, 0.4);
  box-shadow: 0 0 0 4px rgba(25, 34, 69, 0.08);
}

.stock-form-field-span-2 {
  grid-column: 1 / -1;
}

.stock-form-actions {
  display: flex;
  justify-content: flex-end;
}

.stock-list-head,
.stock-list-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 90px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.stock-list-head {
  border-bottom: 1px solid rgba(236, 223, 227, 0.95);
  color: #85656e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-list-row {
  border-bottom: 1px solid rgba(243, 236, 239, 0.95);
  color: #162341;
  font-size: 0.88rem;
}

.stock-list-row:last-child {
  border-bottom: 0;
}

.stock-list-row form {
  margin: 0;
}

.stock-cold-room-card {
  overflow: hidden;
}

.stock-cold-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.28fr) minmax(0, 0.88fr);
  gap: 20px;
  padding: 16px;
}

.stock-cold-room-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(202, 223, 238, 0.95);
  background:
    radial-gradient(circle at top left, rgba(122, 211, 255, 0.15), transparent 34%),
    linear-gradient(180deg, #fbfdff, #eef5fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stock-cold-room-summary strong {
  color: #162341;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stock-cold-room-capacity-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.stock-cold-room-capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stock-cold-room-capacity-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #edf6ff, #d7ebff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(39, 91, 139, 0.14);
  color: #1d5f97;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.stock-cold-room-capacity-edit:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 22px rgba(39, 91, 139, 0.18);
}

.stock-cold-room-capacity-edit:focus-visible {
  outline: 2px solid rgba(33, 131, 230, 0.34);
  outline-offset: 2px;
}

.stock-cold-room-capacity-edit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.stock-cold-room-capacity-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.stock-cold-room-capacity-actions.is-hidden {
  display: none;
}

.stock-cold-room-capacity-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(152, 190, 220, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #162341;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(36, 64, 102, 0.06);
}

.stock-cold-room-capacity-input:focus {
  outline: none;
  border-color: rgba(53, 135, 222, 0.92);
  box-shadow:
    inset 0 1px 2px rgba(36, 64, 102, 0.06),
    0 0 0 4px rgba(53, 135, 222, 0.16);
}

.stock-cold-room-capacity-save {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1fb3d8, #356df3);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(53, 109, 243, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.stock-cold-room-capacity-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(53, 109, 243, 0.24);
  filter: saturate(1.05);
}

.stock-cold-room-capacity-save:focus-visible {
  outline: 2px solid rgba(53, 109, 243, 0.32);
  outline-offset: 2px;
}

.stock-cold-room-summary span {
  color: #275a83;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stock-cold-room-summary small {
  color: #7d6a76;
  font-size: 0.82rem;
  line-height: 1.5;
}

.stock-cold-room-progress-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 14px 0;
}

.stock-cold-room-visual-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stock-cold-room-scene {
  position: relative;
  min-height: 410px;
  padding: 18px 18px 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(205, 223, 239, 0.92);
  background:
    radial-gradient(circle at 22% 14%, rgba(167, 223, 255, 0.48), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(180deg, #f9fcff 0%, #edf5fb 44%, #d7e5f0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    inset 0 -22px 36px rgba(63, 103, 141, 0.12),
    0 20px 40px rgba(28, 52, 87, 0.08);
}

.stock-cold-room-scene::before,
.stock-cold-room-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stock-cold-room-scene::before {
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 35%);
}

.stock-cold-room-scene::after {
  inset: auto 44px 10px;
  height: 28px;
  border-radius: 999px;
  background: rgba(20, 39, 68, 0.16);
  filter: blur(16px);
}

.stock-cold-room-stage {
  position: absolute;
  inset: 0;
}

.stock-cold-room-shell {
  position: absolute;
  inset: 16px 18px 36px;
}

.stock-cold-room-roof {
  position: absolute;
  left: 78px;
  right: 92px;
  top: 2px;
  height: 62px;
  border-radius: 16px 18px 8px 8px;
  transform: skewX(-30deg);
  transform-origin: left center;
  background:
    linear-gradient(180deg, #98a5b2, #6b7681),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 16px, transparent 16px 32px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 24px rgba(31, 52, 81, 0.16);
}

.stock-cold-room-back-wall {
  position: absolute;
  left: 52px;
  right: 116px;
  top: 50px;
  bottom: 54px;
  border-radius: 12px 0 0 10px;
  background:
    repeating-linear-gradient(90deg, rgba(170, 188, 201, 0.26) 0 2px, transparent 2px 20px),
    linear-gradient(180deg, #f7fbff, #dde7ef 88%);
  box-shadow:
    inset 0 0 0 1px rgba(190, 207, 221, 0.9),
    inset 0 -28px 34px rgba(85, 119, 154, 0.12);
}

.stock-cold-room-side-wall {
  position: absolute;
  top: 42px;
  right: 18px;
  bottom: 56px;
  width: 126px;
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 92%);
  background:
    repeating-linear-gradient(90deg, rgba(173, 192, 205, 0.18) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, #fbfdff, #e3ebf2 92%);
  box-shadow:
    inset 0 0 0 1px rgba(194, 210, 223, 0.9),
    inset 14px 0 18px rgba(150, 169, 184, 0.16);
}

.stock-cold-room-floor {
  position: absolute;
  left: 56px;
  right: 86px;
  bottom: 0;
  height: 88px;
  clip-path: polygon(0 18%, 100% 0, 88% 100%, 0 100%);
  background:
    repeating-linear-gradient(90deg, rgba(167, 184, 197, 0.2) 0 18px, transparent 18px 36px),
    linear-gradient(180deg, #ccd8e2, #eef4f8 32%, #b6c6d2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 18px rgba(27, 47, 76, 0.12);
}

.stock-cold-room-door {
  position: absolute;
  top: 134px;
  right: 26px;
  width: 78px;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-cold-room-door-panel {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fdfefe, #dce8f1);
  box-shadow:
    inset 0 0 0 2px rgba(154, 173, 188, 0.72),
    0 10px 18px rgba(41, 64, 92, 0.16);
}

.stock-cold-room-door-handle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f3b48, #11151a);
}

.stock-cold-room-control {
  position: absolute;
  right: 0;
  top: 152px;
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #273342, #111821);
  box-shadow: 0 8px 16px rgba(22, 31, 48, 0.14);
}

.stock-cold-room-control span {
  color: #7cf5ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.stock-cold-room-evaporator {
  position: absolute;
  left: 146px;
  top: 92px;
  width: 220px;
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #dce8f1);
  box-shadow:
    inset 0 0 0 1px rgba(190, 206, 219, 0.94),
    0 14px 22px rgba(39, 64, 95, 0.12);
}

.stock-cold-room-evaporator::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(86, 105, 121, 0.45), rgba(86, 105, 121, 0.08));
}

.stock-cold-room-evaporator-mark {
  position: absolute;
  left: 14px;
  top: 10px;
  color: #267fbe;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-cold-room-fan {
  position: absolute;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(154, 173, 189, 0.75);
}

.stock-cold-room-fan-1 {
  left: 24px;
}

.stock-cold-room-fan-2 {
  left: 88px;
}

.stock-cold-room-fan-3 {
  left: 152px;
}

.stock-cold-room-fan-guard,
.stock-cold-room-fan-rotor,
.stock-cold-room-fan-core,
.stock-cold-room-fan-blade {
  position: absolute;
  left: 50%;
  top: 50%;
}

.stock-cold-room-fan-guard {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  border: 2px solid rgba(35, 52, 73, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 2px rgba(238, 246, 252, 0.75);
}

.stock-cold-room-fan-guard::before,
.stock-cold-room-fan-guard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgba(34, 50, 69, 0.45);
}

.stock-cold-room-fan-guard::after {
  transform: rotate(90deg);
  transform-origin: center;
}

.stock-cold-room-fan-rotor {
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  animation: stock-cold-room-spin 1.1s linear infinite;
}

.stock-cold-room-fan-core {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #213141, #51697d);
  z-index: 4;
}

.stock-cold-room-fan-blade {
  width: 12px;
  height: 18px;
  margin-left: -6px;
  margin-top: -18px;
  border-radius: 999px 999px 12px 12px;
  transform-origin: center 18px;
  background: linear-gradient(180deg, rgba(57, 78, 100, 0.94), rgba(196, 214, 226, 0.96));
  box-shadow: inset 0 -3px 5px rgba(255, 255, 255, 0.18);
}

.stock-cold-room-fan-blade.blade-a {
  transform: rotate(0deg);
}

.stock-cold-room-fan-blade.blade-b {
  transform: rotate(120deg);
}

.stock-cold-room-fan-blade.blade-c {
  transform: rotate(240deg);
}

.stock-cold-room-airflow {
  position: absolute;
  border: 5px solid rgba(73, 199, 244, 0.32);
  border-color: rgba(73, 199, 244, 0.32) transparent transparent transparent;
  border-radius: 50%;
  opacity: 0.9;
}

.stock-cold-room-airflow::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(73, 199, 244, 0.54);
}

.stock-cold-room-airflow.airflow-a {
  left: 108px;
  top: 118px;
  width: 156px;
  height: 120px;
  transform: rotate(9deg);
}

.stock-cold-room-airflow.airflow-a::after {
  left: 6px;
  top: 72px;
  transform: rotate(168deg);
}

.stock-cold-room-airflow.airflow-b {
  left: 178px;
  top: 122px;
  width: 96px;
  height: 156px;
  transform: rotate(74deg);
}

.stock-cold-room-airflow.airflow-b::after {
  right: 10px;
  top: 54px;
  transform: rotate(46deg);
}

.stock-cold-room-airflow.airflow-c {
  left: 234px;
  top: 116px;
  width: 132px;
  height: 156px;
  transform: rotate(24deg);
}

.stock-cold-room-airflow.airflow-c::after {
  right: 10px;
  top: 84px;
  transform: rotate(82deg);
}

.stock-cold-room-airflow.airflow-d {
  left: 134px;
  bottom: 84px;
  width: 194px;
  height: 112px;
  transform: rotate(184deg);
}

.stock-cold-room-airflow.airflow-d::after {
  right: 8px;
  top: 40px;
  transform: rotate(12deg);
}

.stock-cold-room-rack {
  position: absolute;
  bottom: 74px;
  width: 58px;
  height: 126px;
  border-left: 3px solid rgba(122, 143, 159, 0.72);
  border-right: 3px solid rgba(122, 143, 159, 0.72);
  z-index: 1;
}

.stock-cold-room-rack span {
  position: absolute;
  left: -3px;
  right: -3px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(158, 177, 193, 0.95), rgba(118, 138, 155, 0.95));
}

.stock-cold-room-rack span:nth-child(1) {
  top: 18px;
}

.stock-cold-room-rack span:nth-child(2) {
  top: 58px;
}

.stock-cold-room-rack span:nth-child(3) {
  top: 98px;
}

.stock-cold-room-rack.rack-left {
  left: 86px;
}

.stock-cold-room-rack.rack-right {
  right: 150px;
}

.stock-cold-room-storage {
  position: absolute;
  left: 138px;
  right: 132px;
  bottom: 76px;
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.stock-cold-room-storage-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(148, 228, 255, 0.72), rgba(70, 164, 227, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 14px, transparent 14px 28px);
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(43, 89, 137, 0.12);
}

.stock-cold-room-bag-grid {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 6px;
  align-items: end;
}

.stock-cold-room-bag {
  height: 30px;
  border-radius: 9px 9px 7px 7px;
  border: 1px dashed rgba(99, 124, 150, 0.34);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -5px 8px rgba(255, 255, 255, 0.1);
}

.stock-cold-room-bag.is-filled {
  border-style: solid;
  border-color: rgba(241, 250, 255, 0.95);
  background:
    linear-gradient(180deg, rgba(253, 255, 255, 0.99), rgba(184, 227, 248, 0.95)),
    repeating-linear-gradient(90deg, rgba(87, 167, 209, 0.16) 0 6px, transparent 6px 12px);
  box-shadow:
    0 8px 16px rgba(30, 72, 113, 0.14),
    inset 0 -9px 14px rgba(77, 153, 194, 0.24);
}

.stock-cold-room-frost {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.4;
  filter: blur(0.2px);
}

.stock-cold-room-frost.frost-a {
  left: 20%;
  top: 28%;
}

.stock-cold-room-frost.frost-b {
  left: 52%;
  top: 22%;
  width: 52px;
  height: 52px;
}

.stock-cold-room-frost.frost-c {
  right: 12%;
  top: 52%;
  width: 60px;
  height: 60px;
}

.stock-cold-room-scene-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #6d5f70;
  font-size: 0.82rem;
  font-weight: 700;
}

.stock-cold-room-scene-caption strong {
  color: #162341;
  font-size: 1.15rem;
  font-weight: 800;
}

.stock-cold-room-progress {
  position: relative;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #ebeff5, #dfe8f0);
  box-shadow: inset 0 1px 2px rgba(22, 35, 65, 0.08);
}

.stock-cold-room-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bb5d6, #308ce0 52%, #4f46e5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.stock-cold-room-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #6d5f70;
  font-size: 0.82rem;
  font-weight: 700;
}

.stock-cold-room-metrics {
  padding: 0 16px 16px;
}

.order-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-hero-card {
  align-items: flex-start;
}

.order-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.order-dashboard-grid > :only-child {
  grid-column: 1 / -1;
}

.order-list-card {
  padding: 0;
  overflow-x: auto;
}

.order-list-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-list-head,
.order-list-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(220px, 1.35fr) minmax(110px, 0.8fr) minmax(120px, 0.9fr) minmax(130px, 0.9fr) 170px;
  gap: 14px;
  align-items: center;
}

.order-list-head {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 2px;
  background: #eef3f9;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
  color: #57708f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-list-row {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
}

.order-list-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.order-list-main strong {
  color: #1b3259;
  font-size: 0.95rem;
}

.order-list-main small,
.order-list-row > span {
  color: #7890aa;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-list-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.order-list-actions form {
  margin: 0;
}

.order-list-no-action {
  color: #94a3b8;
  font-weight: 700;
}

.order-bulk-actions {
  position: relative;
}

.order-bulk-actions summary {
  list-style: none;
}

.order-bulk-actions summary::-webkit-details-marker {
  display: none;
}

.order-bulk-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(209, 220, 236, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 34px rgba(12, 24, 46, 0.14);
}

.order-bulk-actions-menu a,
.order-bulk-actions-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1b3259;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.order-bulk-actions-menu a:hover,
.order-bulk-actions-menu button:hover {
  background: #eef3f9;
}

.order-form-shell.is-readonly {
  opacity: 0.92;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status-success {
  background: rgba(16, 185, 129, 0.16);
  color: #0f8b63;
}

.order-status-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b96d07;
}

.order-status-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #c23a3a;
}

.order-form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(25, 34, 69, 0.08);
}

.order-form-panel-head h2 {
  margin: 0 0 4px;
  color: #162341;
  font-size: 1.1rem;
}

.order-form-panel-head p {
  margin: 0;
  color: #7c6670;
  font-size: 0.88rem;
  font-weight: 700;
}

.order-form-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finance-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.finance-page [data-finance-panel] {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finance-hero-card {
  align-items: center;
}

.finance-hero-card .dash-meta {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.finance-hero-value {
  min-width: 280px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
}

.finance-hero-value span,
.finance-hero-value small {
  display: block;
}

.finance-hero-value span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.finance-hero-value strong {
  display: block;
  margin: 8px 0 4px;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.finance-hero-value small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.finance-summary-grid {
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-filter-card {
  padding: 18px 20px;
}

.finance-search-form {
  display: flex;
  align-items: end;
  gap: 14px;
}

.finance-search-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finance-search-field span {
  color: #7a6470;
  font-size: 0.8rem;
  font-weight: 700;
}

.finance-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d8dfea;
  border-radius: 14px;
  background: #ffffff;
  color: #162341;
  font: inherit;
}

.finance-search-actions {
  display: flex;
  gap: 10px;
}

.finance-search-actions .submit-button {
  text-decoration: none;
}

.finance-list-card {
  padding: 18px;
  overflow-x: auto;
}

.finance-list-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 1120px;
}

.finance-list-head,
.finance-list-row {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(260px, 1.45fr) minmax(110px, 0.75fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(110px, 0.8fr) 230px;
  gap: 14px;
  align-items: center;
}

.finance-list-head {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 2px;
  background: #eef3f9;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
  color: #57708f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-list-row {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(12, 24, 46, 0.08);
}

.finance-open-value {
  color: #162341 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
}

.finance-list-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.finance-list-actions form {
  margin: 0;
}

@media (max-width: 1100px) {
  .finance-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-hero-value {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .finance-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-search-actions {
    justify-content: flex-end;
  }
}

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

.company-profile-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.company-profile-hero p {
  margin: 6px 0 0;
  color: #6d7288;
  font-size: 0.94rem;
}

.company-profile-panel {
  overflow: hidden;
}

.company-profile-form {
  gap: 18px;
}

.company-profile-actions {
  display: flex;
  justify-content: flex-end;
}

.company-profile-form .order-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.company-profile-form .order-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-profile-form .order-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-profile-form .order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.company-profile-form .order-field span {
  display: block;
  line-height: 1.35;
}

.company-profile-form .order-field input,
.company-profile-form .order-field select,
.company-profile-form .order-field textarea {
  width: 100%;
}

.company-profile-form .order-field textarea {
  min-height: 124px;
}

.company-profile-form .order-field-span-2 {
  grid-column: span 2;
}

.company-profile-form .order-field-span-3 {
  grid-column: span 3;
}

.company-profile-form .order-field-span-4 {
  grid-column: span 4;
}

.company-profile-actions .submit-button {
  width: auto;
  min-width: 220px;
  min-height: 46px;
  margin: 0;
  padding: 0 24px;
}

.order-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-side-card {
  overflow: hidden;
}

.order-section-card {
  overflow: visible;
}

.order-section-head {
  align-items: flex-start;
}

.order-section-head .dash-meta {
  margin: 4px 0 0;
}

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

.order-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
}

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

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

.order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-field span {
  color: #192245;
  font-size: 0.86rem;
  font-weight: 800;
}

.order-field span em {
  font-style: normal;
  color: #16a34a;
}

.order-field input,
.order-field select,
.order-field textarea,
.order-select-inline {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 205, 211, 0.95);
  border-radius: 14px;
  background: #ffffff;
  color: #192245;
  font-size: 0.94rem;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.order-field textarea {
  min-height: 124px;
  resize: vertical;
}

.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus,
.order-select-inline:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.order-field-span-2 {
  grid-column: span 2;
}

.order-field-span-3 {
  grid-column: span 3;
}

.order-field-span-4 {
  grid-column: span 4;
}

.order-boleto-preview {
  margin: 0 16px 16px;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(234, 242, 252, 0.96));
}

.order-boleto-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.order-boleto-preview-head strong {
  display: block;
  color: #192245;
  font-size: 1rem;
}

.order-boleto-preview-head span {
  color: #5b6b90;
  font-size: 0.88rem;
}

.order-boleto-preview-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 800;
  white-space: nowrap;
}

.order-boleto-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.order-boleto-preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.order-boleto-preview-card strong {
  color: #192245;
  font-size: 1rem;
}

.order-boleto-preview-card span {
  color: #60729a;
  font-size: 0.92rem;
}

.order-boleto-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #192245, #2b4d90);
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800;
}

.order-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 16px 16px;
}

.order-alert-banner {
  margin: 0 16px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(38, 127, 190, 0.12), rgba(56, 189, 248, 0.08));
  color: #1b4c73;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(38, 127, 190, 0.18);
}

.order-alert-banner.danger {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.14), rgba(255, 232, 237, 0.8));
  color: #b02048;
  border-color: rgba(239, 71, 111, 0.2);
}

.order-inline-history {
  margin: 0 16px 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef4fb);
  border: 1px solid rgba(211, 223, 236, 0.92);
}

.order-inline-history strong {
  display: block;
  margin-bottom: 12px;
  color: #192245;
  font-size: 0.92rem;
  font-weight: 800;
}

.order-inline-history-list,
.order-history-list {
  display: grid;
  gap: 12px;
}

.order-history-empty {
  color: #7d6a73;
  font-size: 0.84rem;
  font-weight: 700;
}

.order-mini-history-item,
.order-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 223, 228, 0.9);
}

.order-mini-history-item strong,
.order-history-item strong {
  display: block;
  color: #192245;
  font-size: 0.88rem;
  font-weight: 800;
}

.order-mini-history-item span,
.order-history-item small,
.order-history-item span {
  color: #7d6a73;
  font-size: 0.8rem;
  font-weight: 700;
}

.order-history-item {
  align-items: flex-start;
}

.order-history-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.order-items-table-wrap {
  padding: 0 16px 16px;
  overflow-x: auto;
}

.order-items-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  border-spacing: 0;
}

.order-items-table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(233, 223, 228, 0.95);
  color: #7d6a73;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
}

.order-items-table thead th em {
  font-style: normal;
  color: #16a34a;
}

.order-items-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(244, 236, 240, 0.95);
  vertical-align: top;
}

.order-items-table input,
.order-items-table select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 209, 214, 0.95);
  border-radius: 12px;
  font-family: inherit;
  color: #192245;
}

.order-items-summary-grid,
.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.order-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 22px;
  padding: 8px 16px 16px;
}

.order-stock-alert {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 200, 165, 0.12), rgba(219, 246, 238, 0.8));
  border: 1px solid rgba(30, 200, 165, 0.16);
  color: #177a5e;
}

.order-stock-alert.warning {
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.14), rgba(255, 243, 224, 0.9));
  border-color: rgba(255, 159, 28, 0.2);
  color: #b66a10;
}

.order-stock-alert.danger {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.16), rgba(255, 232, 237, 0.92));
  border-color: rgba(239, 71, 111, 0.22);
  color: #b02048;
}

.order-stock-alert strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.order-stock-alert span {
  font-size: 0.8rem;
  font-weight: 700;
}

.order-stock-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.order-print-layout {
  display: none;
}

.order-print-layout.is-measuring {
  display: block;
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  padding: 0;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.order-print-layout.is-measuring .order-print-copy,
.order-print-layout.is-measuring .order-print-copy-pro,
.order-print-layout.is-measuring .order-print-report,
.order-print-layout.is-measuring .order-print-report * {
  box-sizing: border-box;
}

.order-print-layout.is-measuring .order-print-copy-pro {
  position: relative;
  width: 196mm;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
}

.order-print-layout.is-measuring .order-print-report {
  width: 196mm;
  padding: 8px 12px 10px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.order-print-layout.is-measuring .order-print-report-header {
  display: grid;
  grid-template-columns: 240px minmax(0, 1.2fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #666;
}

.order-print-layout.is-measuring .order-print-report-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 96px;
  width: 240px;
}

.order-print-layout.is-measuring .order-print-report-logo {
  display: block;
  width: 220px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.order-print-layout.is-measuring .order-print-report-company {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.58rem;
  line-height: 1.35;
  color: #1d1d1d;
}

.order-print-layout.is-measuring .order-print-report-company strong {
  font-size: 0.64rem;
}

.order-print-layout.is-measuring .order-print-report-company span {
  font-weight: 700;
}

.order-print-layout.is-measuring .order-print-report-meta {
  text-align: right;
  font-size: 0.52rem;
  line-height: 1.4;
  color: #222;
}

.order-print-layout.is-measuring .order-print-report-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 0.63rem;
}

.order-print-layout.is-measuring .order-print-report-meta span {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 700;
}

.order-print-layout.is-measuring .order-print-report-client,
.order-print-layout.is-measuring .order-print-report-charges,
.order-print-layout.is-measuring .order-print-report-transport,
.order-print-layout.is-measuring .order-print-report-notes {
  padding: 7px 0;
  border-bottom: 1px solid #888;
  font-size: 0.61rem;
  line-height: 1.45;
}

.order-print-layout.is-measuring .order-print-report-section-title {
  margin-bottom: 5px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #111;
}

.order-print-layout.is-measuring .order-print-report-products {
  padding: 7px 0 4px;
  border-bottom: 1px solid #888;
}

.order-print-layout.is-measuring .order-print-report-table,
.order-print-layout.is-measuring .order-print-report-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.order-print-layout.is-measuring .order-print-report-table {
  font-size: 0.56rem;
  color: #111;
}

.order-print-layout.is-measuring .order-print-report-table th {
  padding: 4px 4px 5px;
  border-bottom: 1px dashed #666;
  text-align: left;
  font-weight: 700;
}

.order-print-layout.is-measuring .order-print-report-table td {
  padding: 5px 4px;
  border-bottom: 1px dashed #999;
  vertical-align: top;
}

.order-print-layout.is-measuring .order-print-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-print-layout.is-measuring .order-print-report-table td:nth-child(1),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(2),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(4),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(5),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(6),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(7),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(8),
.order-print-layout.is-measuring .order-print-report-table td:nth-child(9) {
  white-space: nowrap;
}

.order-print-layout.is-measuring .order-print-report-table td.tax {
  text-align: right;
  white-space: normal;
  line-height: 1.25;
  font-size: 0.52rem;
}

.order-print-layout.is-measuring .order-print-report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.7fr);
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #888;
}

.order-print-layout.is-measuring .order-print-report-mini-table {
  font-size: 0.58rem;
}

.order-print-layout.is-measuring .order-print-report-mini-table td {
  padding: 2px 0;
}

.order-print-layout.is-measuring .order-print-report-mini-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.order-print-layout.is-measuring .order-print-report-mini-table .total td {
  padding-top: 4px;
  font-weight: 700;
}

.order-print-layout.is-measuring .order-print-report-mini-table.tax td:nth-child(2),
.order-print-layout.is-measuring .order-print-report-mini-table.tax td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.order-print-layout.is-measuring .order-print-report-transport-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 14px;
  font-size: 0.58rem;
}

.order-print-layout.is-measuring .order-print-report-notes div:last-child {
  min-height: 26px;
  font-size: 0.58rem;
}

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

  html,
  body {
    margin: 0 !important;
    background: #ffffff;
  }

  body > *:not(#order-print-layout) {
    display: none !important;
  }

  .dashboard-shell,
  .dashboard-sidebar,
  .dashboard-topbar,
  .dashboard-main,
  .order-page {
    display: none !important;
  }

  #order-print-layout {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0 !important;
  }

  .order-print-copy {
    page-break-inside: avoid;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    padding: 20px;
    color: #192245;
  }

  .order-print-copy header,
  .order-print-copy footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .order-print-copy table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
  }

  .order-print-copy th,
  .order-print-copy td {
    padding: 8px 10px;
    border: 1px solid #dbe5ef;
    text-align: left;
  }

  .order-print-grid,
  .order-print-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .order-print-copy-pro {
    position: relative;
    width: 196mm;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid #d2dcf0;
    border-radius: 22px;
    padding: 5mm 5mm 4.5mm;
    background:
      linear-gradient(180deg, rgba(235, 242, 255, 0.65), rgba(255, 255, 255, 0.96) 22%),
      #ffffff;
    box-shadow: none;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    font-family: "Segoe UI", Arial, sans-serif;
    isolation: isolate;
  }

  .order-print-copy-pro * {
    box-sizing: border-box;
  }

  .order-print-copy-pro::before,
  .order-print-copy-pro::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    opacity: 0.7;
  }

  .order-print-copy-pro::before {
    width: 170px;
    height: 170px;
    top: -85px;
    right: -52px;
    background: radial-gradient(circle, rgba(31, 88, 184, 0.16) 0%, rgba(31, 88, 184, 0) 72%);
  }

  .order-print-copy-pro::after {
    width: 220px;
    height: 220px;
    left: -110px;
    bottom: -118px;
    background: radial-gradient(circle, rgba(11, 43, 102, 0.1) 0%, rgba(11, 43, 102, 0) 72%);
  }

  .order-print-copy-pro > * {
    position: relative;
    z-index: 1;
  }

  .order-print-watermark {
    position: absolute;
    inset: 128px 0 auto;
    height: 250px;
    background: url('./logob.png') center/240px auto no-repeat;
    opacity: 0.035;
    z-index: 0;
    pointer-events: none;
  }

  .order-print-accent {
    display: none;
  }

  .order-print-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr) minmax(210px, 0.88fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 9px;
  }

  .order-print-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 94px;
    padding: 12px 14px;
    border: 1px solid #d7e3f6;
    border-radius: 16px;
    border-left: 6px solid #0f4fb4;
    background: linear-gradient(140deg, #ffffff 0%, #f4f8ff 100%);
  }

  .order-print-brand::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 10px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 88, 184, 0.08), rgba(31, 88, 184, 0));
  }

  .order-print-brand-logo {
    width: 78px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(15, 79, 180, 0.12));
  }

  .order-print-brand-copy strong {
    display: block;
    color: #0b2b66;
    font-size: 1.56rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .order-print-brand-copy span {
    display: block;
    margin-top: 5px;
    color: #315388;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .order-print-brand-copy small {
    display: inline-flex;
    margin-top: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0f4fb4;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .order-print-company-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 94px;
    padding: 10px 12px;
    border: 1px solid #d7e3f6;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  }

  .order-print-company-item {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(102, 132, 185, 0.2);
  }

  .order-print-company-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .order-print-company-item small {
    display: block;
    margin-bottom: 3px;
    color: #5570a1;
    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .order-print-company-item strong {
    display: block;
    color: #183462;
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .order-print-company-item-full {
    grid-column: 1 / -1;
  }

  .order-print-header-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 94px;
    padding: 14px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #082a63 0%, #103f93 58%, #1759c0 100%);
    color: #ffffff;
    text-align: right;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .order-print-header-panel span,
  .order-print-header-panel small,
  .order-print-header-panel em {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .order-print-header-panel small,
  .order-print-header-panel span:first-of-type {
    text-transform: uppercase;
    font-size: 0.56rem;
  }

  .order-print-header-panel strong {
    margin: 5px 0 6px;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .order-print-header-panel span:last-of-type {
    font-size: 1.34rem;
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #ffffff;
  }

  .order-print-header-panel em {
    margin-top: 5px;
    font-size: 0.6rem;
    font-style: normal;
  }

  .order-print-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .order-print-meta-card {
    padding: 8px 10px;
    border: 1px solid #d7e2f4;
    border-radius: 14px;
    border-top: 4px solid #1f58b8;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  }

  .order-print-meta-card span,
  .order-print-client-grid span,
  .order-print-total-box span {
    display: block;
    margin-bottom: 3px;
    color: #3d5d93;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .order-print-meta-card strong,
  .order-print-client-grid strong {
    color: #152d58;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .order-print-meta-card:nth-child(6) {
    background: linear-gradient(135deg, #0d316f 0%, #1e59bd 100%);
    border-color: #0d316f;
    border-top-color: #82b5ff;
  }

  .order-print-meta-card:nth-child(6) span,
  .order-print-meta-card:nth-child(6) strong {
    color: #ffffff;
  }

  .order-print-meta-card:nth-child(6) strong {
    font-size: 1rem;
  }

  .order-print-block {
    margin-bottom: 8px;
    border: 1px solid #d4def0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
  }

  .order-print-block-title {
    padding: 7px 10px;
    background: linear-gradient(135deg, #0c2d67, #18479a);
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .order-print-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .order-print-client-grid > div {
    min-height: 38px;
    padding: 8px 10px;
    border-right: 1px solid #e2e9f5;
    border-bottom: 1px solid #e2e9f5;
    background: rgba(255, 255, 255, 0.92);
  }

  .order-print-client-grid > div:nth-child(odd) {
    background: rgba(249, 252, 255, 0.96);
  }

  .order-print-client-grid > div:nth-child(3n) {
    border-right: 0;
  }

  .order-print-client-grid > div.full {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .order-print-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
  }

  .order-print-table th {
    padding: 7px 8px;
    border: 0;
    background: linear-gradient(135deg, #0b2b66, #17479c);
    color: #ffffff;
    text-align: left;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .order-print-table td {
    padding: 7px 8px;
    border: 0;
    border-bottom: 1px solid #e4eaf6;
    color: #1d3057;
    font-size: 0.66rem;
  }

  .order-print-table tbody tr:nth-child(even) td {
    background: #f8fbff;
  }

  .order-print-table tbody td:first-child {
    font-weight: 700;
    color: #18386d;
  }

  .order-print-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .order-print-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 8px;
    margin-bottom: 9px;
  }

  .order-print-notes {
    min-height: 88px;
    border: 1px solid #d4def0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
  }

  .order-print-notes p {
    min-height: 58px;
    margin: 0;
    padding: 10px 12px;
    color: #2b416b;
    line-height: 1.4;
    font-size: 0.66rem;
    white-space: pre-wrap;
  }

  .order-print-total-box {
    border: 1px solid #d4def0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-total-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-bottom: 1px solid #e4eaf6;
  }

  .order-print-total-box > div:last-child {
    border-bottom: 0;
  }

  .order-print-total-box strong {
    color: #152d58;
    font-size: 0.78rem;
  }

  .order-print-total-box .grand-total {
    background: linear-gradient(135deg, #0b2b66, #18479a);
  }

  .order-print-total-box .grand-total span,
  .order-print-total-box .grand-total strong {
    color: #ffffff;
  }

  .order-print-total-box .grand-total strong {
    font-size: 1.34rem;
    line-height: 1;
  }

  .order-print-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .order-print-signature {
    min-height: 65px;
    padding: 10px 12px;
    border: 1px solid #d4def0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-signature strong {
    display: block;
    color: #173d77;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .order-print-signature span {
    display: block;
    margin-top: 26px;
    border-bottom: 1px solid #7e93b8;
  }

  .order-print-thankyou {
    margin-top: 9px;
    text-align: center;
    color: #163d7d;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .order-print-art {
    padding: 0;
    border: 1px solid #cfdbef;
    border-radius: 0;
    background:
      linear-gradient(135deg, rgba(11, 43, 102, 0.08) 0, rgba(11, 43, 102, 0.08) 36px, transparent 36px),
      linear-gradient(315deg, rgba(11, 43, 102, 0.08) 0, rgba(11, 43, 102, 0.08) 36px, transparent 36px),
      linear-gradient(135deg, transparent calc(100% - 44px), rgba(11, 43, 102, 0.08) calc(100% - 44px)),
      linear-gradient(315deg, transparent calc(100% - 44px), rgba(11, 43, 102, 0.08) calc(100% - 44px)),
      #ffffff;
  }

  .order-print-art::before,
  .order-print-art::after,
  .order-print-art .order-print-watermark,
  .order-print-art .order-print-accent,
  .order-print-art .order-print-header,
  .order-print-art .order-print-meta-grid,
  .order-print-art .order-print-block,
  .order-print-art .order-print-bottom-grid,
  .order-print-art .order-print-footer,
  .order-print-art .order-print-thankyou {
    display: none !important;
  }

  .order-print-art-hero,
  .order-print-art-info-strip,
  .order-print-art-section,
  .order-print-art-table-panel,
  .order-print-art-bottom,
  .order-print-art-signatures,
  .order-print-art-footer {
    position: relative;
    z-index: 1;
  }

  .order-print-art-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.88fr);
    min-height: 140px;
    margin-bottom: 7px;
    overflow: hidden;
    border-bottom: 1px solid #d6e1f3;
    background:
      linear-gradient(135deg, rgba(14, 65, 146, 0.12), rgba(255, 255, 255, 0) 28%),
      linear-gradient(315deg, rgba(14, 65, 146, 0.12), rgba(255, 255, 255, 0) 22%),
      #ffffff;
  }

  .order-print-art-hero-left {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
    gap: 12px;
    padding: 14px 18px 10px 18px;
  }

  .order-print-art-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
  }

  .order-print-art-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 98px;
  }

  .order-print-art .order-print-brand-logo {
    width: 92px;
  }

  .order-print-art .order-print-brand-copy strong {
    font-size: 1.65rem;
    line-height: 0.92;
    letter-spacing: -0.05em;
  }

  .order-print-art .order-print-brand-copy span {
    margin-top: 7px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  .order-print-art .order-print-brand-copy small {
    display: none;
  }

  .order-print-art-company {
    display: grid;
    gap: 6px;
    align-content: center;
    padding-top: 6px;
  }

  .order-print-art-company-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
  }

  .order-print-art-company-row i,
  .order-print-art-ribbon i,
  .order-print-art-sign-box i,
  .order-print-art-info-icon {
    color: #0d3d8f;
  }

  .order-print-art-company-row i svg,
  .order-print-art-ribbon i svg,
  .order-print-art-sign-box i svg,
  .order-print-art-info-icon svg {
    width: 16px;
    height: 16px;
    display: block;
  }

  .order-print-art-company-row span {
    display: block;
    margin-bottom: 1px;
    color: #274a82;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .order-print-art-company-row strong {
    display: block;
    color: #1a325f;
    font-size: 0.67rem;
    line-height: 1.25;
    font-weight: 700;
  }

  .order-print-art-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 14px 20px 14px 28px;
    color: #ffffff;
    background:
      linear-gradient(125deg, transparent 0 9%, #0a2d67 9% 100%);
    overflow: hidden;
  }

  .order-print-art-title::before,
  .order-print-art-title::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
  }

  .order-print-art-title::before {
    inset: 0 auto 0 18px;
    width: 2px;
    transform: skewX(-24deg);
  }

  .order-print-art-title::after {
    right: 16px;
    left: 34px;
    bottom: 12px;
    height: 1px;
    opacity: 0.4;
  }

  .order-print-art-title small {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.92;
  }

  .order-print-art-title strong {
    margin: 8px 0 10px;
    font-size: 1.95rem;
    line-height: 0.93;
    font-weight: 900;
    text-align: right;
    letter-spacing: -0.06em;
  }

  .order-print-art-title span {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .order-print-art-info-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 16px 8px;
    border: 1px solid #cfdbef;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
  }

  .order-print-art-info-card {
    padding: 10px 8px 12px;
    text-align: center;
    border-right: 1px solid #dfe7f3;
  }

  .order-print-art-info-card:last-child {
    border-right: 0;
  }

  .order-print-art-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 7px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    background: linear-gradient(135deg, #0b2f6e, #1653b6);
    box-shadow: 0 0 0 1px #b8cbed;
    color: #ffffff;
  }

  .order-print-art-info-icon svg {
    width: 17px;
    height: 17px;
  }

  .order-print-art-info-card span {
    display: block;
    margin-bottom: 3px;
    color: #173f81;
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .order-print-art-info-card strong {
    display: block;
    color: #1a2f57;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .order-print-art-section,
  .order-print-art-table-panel,
  .order-print-art-bottom,
  .order-print-art-signatures {
    margin-left: 16px;
    margin-right: 16px;
  }

  .order-print-art-section {
    margin-bottom: 8px;
    border: 1px solid #cdd9ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
  }

  .order-print-art-ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    height: 34px;
    padding: 0 18px 0 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0a2d67, #18489d);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  }

  .order-print-art-ribbon.compact {
    min-width: 180px;
  }

  .order-print-art-ribbon span {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .order-print-art-ribbon i {
    color: #ffffff;
  }

  .order-print-art-ribbon i svg {
    width: 17px;
    height: 17px;
  }

  .order-print-art-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-print-art-client-grid > div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    min-height: 53px;
    padding: 10px 12px;
    border-right: 1px solid #e2e9f5;
    border-top: 1px solid #e2e9f5;
    align-items: start;
  }

  .order-print-art-client-grid > div:nth-child(3n) {
    border-right: 0;
  }

  .order-print-art-client-grid > div.full {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .order-print-art-client-grid i {
    margin-top: 1px;
    color: #18489d;
  }

  .order-print-art-client-grid i svg {
    width: 16px;
    height: 16px;
  }

  .order-print-art-client-grid span {
    display: block;
    margin-bottom: 3px;
    color: #21457f;
    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .order-print-art-client-grid strong {
    display: block;
    color: #1d325b;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .order-print-art-table-panel {
    margin-bottom: 8px;
    border: 1px solid #cdd9ee;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-art-table {
    width: 100%;
    border-collapse: collapse;
  }

  .order-print-art-table th {
    padding: 8px 7px;
    background: linear-gradient(135deg, #0a2d67, #18489d);
    color: #ffffff;
    font-size: 0.57rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }

  .order-print-art-table th:last-child {
    border-right: 0;
  }

  .order-print-art-table td {
    padding: 8px 7px;
    color: #1f345b;
    font-size: 0.67rem;
    border-top: 1px solid #e4eaf6;
    border-right: 1px solid #eef3fa;
  }

  .order-print-art-table td:last-child {
    border-right: 0;
  }

  .order-print-art-table tbody tr:nth-child(even) td {
    background: #fbfdff;
  }

  .order-print-art-table tbody td:nth-child(1),
  .order-print-art-table tbody td:nth-child(3),
  .order-print-art-table tbody td:nth-child(4),
  .order-print-art-table tbody td:nth-child(5),
  .order-print-art-table tbody td:nth-child(6),
  .order-print-art-table tbody td:nth-child(7) {
    text-align: center;
  }

  .order-print-art-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
    gap: 10px;
    margin-bottom: 8px;
  }

  .order-print-art-notes {
    position: relative;
    min-height: 130px;
    border: 1px solid #cdd9ee;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-art-notes::after {
    content: "";
    position: absolute;
    inset: 24px 0 0;
    background: url('./logob.png') center 62px / 140px auto no-repeat;
    opacity: 0.045;
    pointer-events: none;
  }

  .order-print-art-notes-body {
    min-height: 92px;
    padding: 14px 14px 10px;
    color: #2d446e;
    font-size: 0.67rem;
    line-height: 1.55;
  }

  .order-print-art-notes-body br {
    line-height: 2.2;
  }

  .order-print-art-totals {
    border: 1px solid #cdd9ee;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-art-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-top: 1px solid #e4eaf6;
  }

  .order-print-art-totals > div:first-child {
    border-top: 0;
  }

  .order-print-art-totals span {
    color: #163f81;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .order-print-art-totals strong {
    color: #1b325d;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .order-print-art-totals .grand {
    background: linear-gradient(135deg, #0a2d67, #18489d);
  }

  .order-print-art-totals .grand span,
  .order-print-art-totals .grand strong {
    color: #ffffff;
  }

  .order-print-art-totals .grand strong {
    font-size: 1.42rem;
    letter-spacing: -0.03em;
  }

  .order-print-art-signatures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
  }

  .order-print-art-sign-box {
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #cdd9ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
  }

  .order-print-art-sign-box i {
    display: inline-block;
    margin-bottom: 6px;
    color: #18489d;
  }

  .order-print-art-sign-box i svg {
    width: 18px;
    height: 18px;
  }

  .order-print-art-sign-box strong {
    display: block;
    color: #163d79;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .order-print-art-sign-box span {
    display: block;
    margin-top: 28px;
    border-bottom: 1px solid #7f94b8;
  }

  .order-print-art-sign-box small {
    display: block;
    margin-top: 8px;
    color: #36548b;
    font-size: 0.58rem;
    font-weight: 700;
  }

  .order-print-art-footer {
    margin-top: 2px;
    padding: 10px 16px 12px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0a2d67, #18489d);
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
  }

  .order-print-report {
    padding: 8px 12px 10px;
    border: 1px solid #777;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
  }

  .order-print-report::before,
  .order-print-report::after,
  .order-print-report .order-print-watermark,
  .order-print-report .order-print-accent,
  .order-print-report .order-print-header,
  .order-print-report .order-print-meta-grid,
  .order-print-report .order-print-block,
  .order-print-report .order-print-bottom-grid,
  .order-print-report .order-print-footer,
  .order-print-report .order-print-thankyou {
    display: none !important;
  }

  .order-print-report-header {
    display: grid;
    grid-template-columns: 240px minmax(0, 1.2fr) auto;
    align-items: start;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #666;
  }

  .order-print-report-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-height: 96px;
    width: 240px;
  }

  .order-print-report-logo {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .order-print-report-brand-copy strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
  }

  .order-print-report-brand-copy span {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    color: #333;
  }

  .order-print-report-company {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.58rem;
    line-height: 1.35;
    color: #1d1d1d;
  }

  .order-print-report-company strong {
    font-size: 0.64rem;
  }

  .order-print-report-company span {
    font-weight: 700;
  }

  .order-print-report-meta {
    text-align: right;
    font-size: 0.52rem;
    line-height: 1.4;
    color: #222;
  }

  .order-print-report-meta strong {
    display: block;
    margin-top: 8px;
    font-size: 0.63rem;
  }

  .order-print-report-meta span {
    display: block;
    margin-top: 3px;
    font-size: 0.66rem;
    font-weight: 700;
  }

  .order-print-report-client,
  .order-print-report-charges,
  .order-print-report-transport,
  .order-print-report-notes {
    padding: 7px 0;
    border-bottom: 1px solid #888;
    font-size: 0.61rem;
    line-height: 1.45;
  }

  .order-print-report-section-title {
    margin-bottom: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #111;
  }

  .order-print-report-products {
    padding: 7px 0 4px;
    border-bottom: 1px solid #888;
  }

  .order-print-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.56rem;
    color: #111;
  }

  .order-print-report-table th {
    padding: 4px 4px 5px;
    border-bottom: 1px dashed #666;
    text-align: left;
    font-weight: 700;
  }

  .order-print-report-table td {
    padding: 5px 4px;
    border-bottom: 1px dashed #999;
    vertical-align: top;
  }

  .order-print-report-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .order-print-report-table td:nth-child(1),
  .order-print-report-table td:nth-child(2),
  .order-print-report-table td:nth-child(4),
  .order-print-report-table td:nth-child(5),
  .order-print-report-table td:nth-child(6),
  .order-print-report-table td:nth-child(7),
  .order-print-report-table td:nth-child(8),
  .order-print-report-table td:nth-child(9) {
    white-space: nowrap;
  }

  .order-print-report-table td.tax {
    text-align: right;
    white-space: normal;
    line-height: 1.25;
    font-size: 0.52rem;
  }

  .order-print-report-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.7fr);
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid #888;
  }

  .order-print-report-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.58rem;
  }

  .order-print-report-mini-table td {
    padding: 2px 0;
  }

  .order-print-report-mini-table td:last-child {
    text-align: right;
    white-space: nowrap;
  }

  .order-print-report-mini-table .total td {
    padding-top: 4px;
    font-weight: 700;
  }

  .order-print-report-mini-table.tax td:nth-child(2),
  .order-print-report-mini-table.tax td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
  }

  .order-print-report-transport-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 14px;
    font-size: 0.58rem;
  }

  .order-print-report-notes div:last-child {
    min-height: 26px;
    font-size: 0.58rem;
  }
}

@keyframes stock-cold-room-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

  .dashboard-grid-cashflow,
  .dashboard-grid-charts {
    grid-template-columns: 1fr;
  }

  .crm-finance-grid,
  .crm-highlight-grid,
  .crm-bottom-grid,
  .crm-chart-grid,
  .crm-donut-layout,
  .stock-summary-grid,
  .stock-risk-grid {
    grid-template-columns: 1fr;
  }

  .stock-cold-room-grid {
    grid-template-columns: 1fr;
  }

  .order-dashboard-grid,
  .order-actions-grid,
  .order-stock-timeline,
  .order-summary-grid,
  .order-items-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stock-cold-room-capacity-head {
    align-items: flex-start;
  }

  .stock-cold-room-capacity-actions {
    grid-template-columns: 1fr;
  }

  .stock-cold-room-capacity-save {
    width: 100%;
  }

  .stock-cold-room-scene {
    min-height: 332px;
  }

  .stock-cold-room-stage {
    transform: scale(0.76);
    transform-origin: top left;
  }

  .stock-cold-room-scene-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-search-bar {
    grid-template-columns: 1fr;
  }

  .order-list-head,
  .order-list-row {
    min-width: 960px;
  }

  .order-form-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 14;
    gap: 0;
    padding: 0;
  }

  .sidebar-nav,
  .sidebar-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .sidebar-group,
  .sidebar-footer > .sidebar-link,
  .sidebar-nav > .sidebar-link {
    min-width: 0;
    flex: 1 1 220px;
  }

  .sidebar-link,
  .sidebar-link-summary {
    min-height: 56px;
  }

  .sidebar-footer {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  .dashboard-topbar {
    position: static;
    padding: 12px 16px;
  }

  .dashboard-content {
    padding: 12px;
  }

  .crm-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .crm-hero-badges {
    justify-content: flex-start;
  }

  .crm-metric-grid,
  .crm-finance-grid,
  .crm-insight-grid,
  .crm-summary-grid,
  .crm-balance-panel,
  .crm-column-chart,
  .stock-projection-grid,
  .stock-form-grid,
  .order-grid-4,
  .order-grid-3 {
    grid-template-columns: 1fr;
  }

  .client-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .client-search {
    width: 100%;
  }

  .employee-table-head,
  .employee-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-profile-form .order-grid-4,
  .company-profile-form .order-grid-3 {
    grid-template-columns: 1fr;
  }

  .company-profile-form .order-field-span-2,
  .company-profile-form .order-field-span-3,
  .company-profile-form .order-field-span-4 {
    grid-column: span 1;
  }

  .employee-summary-grid,
  .employee-form-grid,
  .employee-contact-grid {
    grid-template-columns: 1fr;
  }

  .employee-sector-field {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .dashboard-grid-metrics {
    grid-template-columns: 1fr;
  }

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

  .funnel-layout {
    grid-template-columns: 1fr;
  }

  .crm-donut {
    width: 160px;
    height: 160px;
  }

  .crm-donut-hole {
    width: 98px;
    height: 98px;
  }

  .stock-list-head,
  .stock-list-row {
    grid-template-columns: 1fr;
  }

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

  .dashboard-topbar-actions {
    justify-content: flex-start;
  }

  .dashboard-datetime {
    align-items: flex-start;
    min-width: 0;
  }

  .client-modal-grid {
    grid-template-columns: 1fr;
  }

  .client-modal-general-grid,
  .client-modal-address-grid,
  .client-modal-table-head-contacts,
  .client-modal-contacts-grid,
  .client-management-grid,
  .client-commission-grid,
  .client-management-table-head {
    grid-template-columns: 1fr;
  }

  .client-modal-field-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .dashboard-topbar {
    padding: 16px 14px;
  }

  .dashboard-datetime {
    width: 100%;
  }

  .dashboard-datetime-value {
    font-size: 0.8rem;
  }

  .dashboard-content {
    padding: 12px;
  }

  .cashflow-grid {
    grid-template-columns: 1fr;
  }

  .account-row {
    flex-direction: column;
  }

  .dashboard-userbar {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.background-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-corner,
.bg-corner-shadow,
.bg-outline-square,
.bg-dots,
.bg-line,
.bg-circle,
.bg-circle-fill,
.bg-circle-dot,
.bg-plus,
.bg-orbit,
.bg-orbit-dot,
.bg-striped-circle,
.bg-triangles {
  position: absolute;
  pointer-events: none;
  will-change: translate;
  transition: translate 220ms ease-out;
}

.bg-corner {
  background: linear-gradient(145deg, #1d2851 0%, #131B36 100%);
  border-radius: 34px;
  box-shadow: 0 18px 36px rgba(19, 27, 54, 0.18);
}

.bg-corner::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
}

.bg-corner-top-left {
  top: -118px;
  left: -150px;
  width: 290px;
  height: 290px;
  transform: rotate(45deg);
}

.bg-corner-top-right {
  top: 126px;
  right: -18px;
  width: 170px;
  height: 170px;
  background: linear-gradient(145deg, rgba(19, 27, 54, 0.12), rgba(19, 27, 54, 0.06));
  box-shadow: none;
  transform: rotate(45deg);
}

.bg-corner-top-right::after {
  display: none;
}

.bg-corner-bottom-right {
  right: -18px;
  bottom: -52px;
  width: 284px;
  height: 284px;
  transform: rotate(45deg);
}

.bg-corner-shadow {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19, 27, 54, 0.18), rgba(19, 27, 54, 0.08));
}

.bg-corner-shadow-left {
  top: 132px;
  left: 58px;
  width: 88px;
  height: 34px;
  transform: rotate(-45deg);
}

.bg-corner-shadow-right {
  right: 190px;
  bottom: 120px;
  width: 430px;
  height: 76px;
  transform: rotate(-45deg);
  opacity: 0.52;
}

.bg-outline-square {
  border: 2px solid rgba(19, 27, 54, 0.9);
  transform: rotate(45deg);
  border-radius: 34px;
}

.bg-outline-square-left {
  top: 98px;
  left: -168px;
  width: 360px;
  height: 360px;
  opacity: 0.92;
}

.bg-outline-square-right {
  top: 18px;
  right: 98px;
  width: 124px;
  height: 124px;
  border-width: 0;
}

.bg-dots {
  background-image: radial-gradient(circle, rgba(19, 27, 54, 0.95) 2px, transparent 2.2px);
  background-size: 20px 20px;
}

.bg-dots-top-left {
  display: none;
}

.bg-dots-top-center {
  bottom: 46px;
  left: 360px;
  width: 74px;
  height: 96px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  opacity: 0.62;
}

.bg-dots-top-right {
  top: 420px;
  right: 34px;
  width: 56px;
  height: 96px;
  opacity: 0.22;
}

.bg-dots-bottom-left {
  right: 464px;
  bottom: 38px;
  width: 72px;
  height: 42px;
  opacity: 0.28;
}

.bg-dots-bottom-center {
  display: none;
}

.bg-dots-bottom-right-line {
  display: none;
}

.bg-line {
  width: 2px;
  background: rgba(19, 27, 54, 0.4);
}

.bg-line-left-top {
  top: 685px;
  right: 316px;
  height: 320px;
  opacity: 0.32;
  box-shadow:
    28px 0 0 rgba(19, 27, 54, 0.28),
    56px 0 0 rgba(19, 27, 54, 0.22);
  transform: rotate(45deg);
}

.bg-line-left-top::after {
  content: "";
  position: absolute;
  top: 196px;
  left: -34px;
  width: 24px;
  height: 2px;
  background: rgba(19, 27, 54, 0.22);
  box-shadow: 72px -2px 0 rgba(19, 27, 54, 0.22);
  transform: rotate(0deg);
}

.bg-line-right-top {
  top: -18px;
  right: 246px;
  height: 218px;
  opacity: 0.28;
  box-shadow:
    16px 0 0 rgba(19, 27, 54, 0.22),
    32px 0 0 rgba(19, 27, 54, 0.22),
    48px 0 0 rgba(19, 27, 54, 0.22),
    64px 0 0 rgba(19, 27, 54, 0.18);
  transform: rotate(45deg);
}

.bg-line-left-bottom {
  top: 118px;
  left: 104px;
  height: 260px;
  background: rgba(19, 27, 54, 0.92);
  transform: rotate(45deg);
}

.bg-circle {
  border: 2px solid rgba(19, 27, 54, 0.33);
  border-radius: 50%;
}

.bg-circle-small-left {
  top: 590px;
  left: -18px;
  width: 76px;
  height: 76px;
  opacity: 0.34;
}

.bg-orbit {
  top: -86px;
  right: -96px;
  width: 312px;
  height: 312px;
  border: 2px solid rgba(19, 27, 54, 0.9);
  border-radius: 50%;
}

.bg-orbit-dot {
  top: 260px;
  right: 102px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #34457f, #131B36);
  box-shadow: 0 0 0 10px rgba(19, 27, 54, 0.08);
}

.bg-circle-bottom-left {
  left: -258px;
  bottom: -262px;
  width: 578px;
  height: 578px;
  border-color: rgba(19, 27, 54, 0.9);
}

.bg-circle-fill {
  left: -88px;
  bottom: -154px;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.5), rgba(19, 27, 54, 0.16) 52%, rgba(19, 27, 54, 0.08) 100%);
}

.bg-circle-dot {
  left: 132px;
  bottom: 218px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a396d, #131B36);
}

.bg-plus {
  width: 34px;
  height: 34px;
}

.bg-plus::before,
.bg-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(19, 27, 54, 0.32);
  transform: translate(-50%, -50%);
}

.bg-plus::before {
  width: 34px;
  height: 2px;
}

.bg-plus::after {
  width: 2px;
  height: 34px;
}

.bg-plus-solid::before,
.bg-plus-solid::after {
  background: #131B36;
}

.bg-plus-top-right {
  top: 312px;
  right: 238px;
}

.bg-plus-bottom-left {
  left: 72px;
  bottom: 358px;
}

.bg-plus-mid-right {
  display: none;
}

.bg-plus-bottom-right {
  display: none;
}

.bg-striped-circle {
  display: none;
}

.bg-triangles {
  left: 274px;
  bottom: 220px;
  width: 76px;
  height: 22px;
}

.bg-triangles::before,
.bg-triangles::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.bg-triangles::before {
  left: 0;
  border-left: 18px solid rgba(19, 27, 54, 0.96);
  box-shadow:
    24px 0 0 -2px rgba(35, 52, 104, 0.82),
    48px 0 0 -2px rgba(35, 52, 104, 0.72);
}

.bg-triangles::after {
  display: none;
}

@media (max-width: 1080px) {
  .login-page {
    padding-inline: 28px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero h1 {
    margin-bottom: 54px;
  }

  .bg-corner-bottom-right {
    right: -66px;
    bottom: -84px;
  }

  .bg-corner-shadow-right {
    right: 120px;
    bottom: 92px;
  }
}

@media (max-width: 820px) {
  .login-page {
    padding: 24px 18px 42px;
  }

  .hero {
    height: 100%;
    padding: 98px 16px 40px;
  }

  .corner-logo {
    top: 42px;
    left: 176px;
    width: 456px;
  }

  .hero h1 {
    margin-bottom: 36px;
    font-size: clamp(1.55rem, 5.1vw, 2.1rem);
  }

  .login-panel {
    width: min(100%, 390px);
  }

  .bg-line-right-top,
  .bg-corner-shadow-right,
  .bg-outline-square-left {
    display: none;
  }

  .bg-corner-top-left {
    left: -188px;
    top: -136px;
  }

  .bg-corner-top-right {
    top: 106px;
    right: -48px;
    width: 136px;
    height: 136px;
  }

  .bg-corner-bottom-right {
    right: -84px;
    bottom: -118px;
    width: 232px;
    height: 232px;
  }

  .bg-orbit {
    top: -118px;
    right: -158px;
    width: 298px;
    height: 298px;
  }

  .bg-orbit-dot {
    top: 236px;
    right: 64px;
  }

  .bg-line-left-top {
    right: 198px;
    height: 248px;
  }

  .bg-circle-bottom-left {
    width: 438px;
    height: 438px;
    left: -234px;
    bottom: -206px;
  }

  .bg-circle-fill {
    width: 184px;
    height: 184px;
  }
}

@media (max-width: 520px) {
  .hero {
    height: 100%;
    padding: 88px 12px 30px;
  }

  .app-install-hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .app-install-card {
    width: min(100%, 360px);
    padding: 16px 12px;
  }

  .app-install-logo {
    width: min(100%, 230px);
  }

  .corner-logo {
    top: 26px;
    left: 118px;
    width: 360px;
  }

  .panel-body,
  .panel-footer {
    padding-inline: 16px;
  }

  .login-page {
    padding: 22px 16px 36px;
  }

  .bg-line-left-top,
  .bg-line-left-bottom,
  .bg-dots-bottom-left,
  .bg-plus-bottom-left,
  .bg-circle-small-left,
  .bg-striped-circle,
  .bg-corner-shadow-left {
    display: none;
  }

  .bg-corner-top-left {
    top: -172px;
    left: -204px;
    width: 256px;
    height: 256px;
  }

  .bg-orbit {
    top: -140px;
    right: -210px;
    width: 296px;
    height: 296px;
  }

  .bg-orbit-dot {
    top: 252px;
    right: 28px;
    width: 20px;
    height: 20px;
  }

  .bg-plus-top-right {
    right: 92px;
    top: 312px;
  }

  .bg-circle-bottom-left {
    width: 356px;
    height: 356px;
    left: -234px;
    bottom: -164px;
  }

  .bg-circle-fill {
    width: 154px;
    height: 154px;
    left: -82px;
    bottom: -102px;
  }

  .bg-circle-dot {
    left: 134px;
    bottom: 158px;
    width: 20px;
    height: 20px;
  }

  .bg-corner-top-right {
    width: 108px;
    height: 108px;
    right: -42px;
    top: 156px;
  }

  .bg-corner-bottom-right {
    width: 184px;
    height: 184px;
    right: -72px;
    bottom: -74px;
  }

  .bg-triangles {
    left: 120px;
    bottom: 192px;
  }
}

@keyframes blink-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes client-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes client-modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes client-wheel-firework-burst {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  18% {
    opacity: 1;
  }

  58% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes client-wheel-firework-rays {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  24% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.16) rotate(28deg);
  }
}

@keyframes client-wheel-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(18px, 110vh, 0) rotate(420deg);
  }
}

/* Responsive calibration map
   320, 360, 375, 390, 393, 414, 430, 440, 480, 600, 768, 820, 834,
   1024, 1200, 1366, 1440, 1536, 1600, 1920, 2560, 3840
*/

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

textarea,
input,
select,
button {
  max-width: 100%;
}

@media (min-width: 1440px) {
  .dashboard-content,
  .rewards-page-main {
    padding: 22px;
  }

  .dashboard-content > *,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell,
  .crm-dashboard-content {
    width: min(100%, 1520px);
    margin-inline: auto;
  }

  .client-dashboard-shell {
    max-width: 1520px;
  }

  .client-login-shell {
    max-width: 1440px;
    grid-template-columns: minmax(0, 1.3fr) minmax(420px, 500px);
  }
}

@media (min-width: 1600px) {
  .dashboard-shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .dashboard-content > *,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell,
  .crm-dashboard-content {
    width: min(100%, 1700px);
  }

  .client-dashboard-shell {
    max-width: 1700px;
    padding-top: 30px;
  }
}

@media (min-width: 1920px) {
  .dashboard-content,
  .rewards-page-main {
    padding: 26px;
  }

  .rewards-page-main {
    --rewards-main-pad: 26px;
    padding: 0 var(--rewards-main-pad) 26px;
  }

  .dashboard-content > *,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell,
  .crm-dashboard-content {
    width: min(100%, 1840px);
  }

  .dashboard-topbar {
    padding-inline: 26px;
  }
}

@media (min-width: 2560px) {
  body {
    font-size: 17px;
  }

  .dashboard-content > *,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell,
  .crm-dashboard-content {
    width: min(100%, 2160px);
  }
}

@media (min-width: 3840px) {
  body {
    font-size: 18px;
  }

  .dashboard-content > *,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell,
  .crm-dashboard-content {
    width: min(100%, 2640px);
  }
}

@media (max-width: 1366px) {
  .dashboard-content,
  .rewards-page-main {
    padding: 14px;
  }

  .rewards-page-main {
    --rewards-main-pad: 14px;
    padding: 0 var(--rewards-main-pad) 14px;
  }

  .dashboard-topbar-actions {
    gap: 10px;
  }

  .cashflow-grid,
  .crm-summary-grid,
  .crm-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-table-head,
  .employee-table-row {
    grid-template-columns: 30px minmax(200px, 1.5fr) minmax(120px, 1fr) minmax(110px, 1fr) 100px 90px;
  }
}

@media (max-width: 1199px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell {
    padding-inline: 18px;
  }

  .rewards-page-main {
    --rewards-main-pad: 18px;
    padding-top: 0;
  }

  .client-login-shell {
    padding-inline: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  }

  .dashboard-grid-metrics,
  .rewards-summary-grid,
  .client-dashboard-cards,
  .cashflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-layout,
  .crm-hero-card,
  .crm-highlight-grid,
  .crm-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
  }

  .dashboard-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .dashboard-topbar-start,
  .dashboard-topbar-actions {
    width: 100%;
  }

  .dashboard-topbar-actions {
    justify-content: flex-start;
  }

  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .client-login-shell,
  .pedido-pdf-shell {
    padding-inline: 14px;
  }

  .rewards-page-main {
    --rewards-main-pad: 14px;
    padding-top: 0;
  }

  .dashboard-content > * {
    width: 100%;
  }

  .employee-table,
  .dashboard-table,
  .order-list-table,
  .client-orders-list {
    overflow-x: auto;
  }

  .employee-table-head,
  .employee-table-row,
  .order-list-head,
  .order-list-row {
    min-width: 920px;
  }

  .client-login-shell,
  .rewards-layout,
  .client-dashboard-hero,
  .client-dashboard-grid,
  .rewards-contract-banner,
  .crm-finance-grid,
  .crm-insight-grid,
  .crm-chart-grid,
  .company-profile-form .order-grid-4,
  .company-profile-form .order-grid-3 {
    grid-template-columns: 1fr;
  }

  .client-modal-grid,
  .dashboard-grid-cashflow,
  .dashboard-grid-charts,
  .order-grid-4,
  .order-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 839px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell {
    padding-inline: 12px;
  }

  .rewards-hero,
  .client-dashboard-hero,
  .client-login-showcase,
  .client-login-card,
  .client-panel-card,
  .rewards-client-panel,
  .rewards-editor-panel,
  .rewards-section-card {
    padding: 20px;
    border-radius: 20px;
  }

  .client-dashboard-brand,
  .client-dashboard-contact,
  .rewards-client-meta,
  .rewards-inline-metrics {
    width: 100%;
  }

  .dashboard-datetime,
  .dashboard-userbar {
    min-width: 0;
  }

  .client-modal-grid,
  .order-grid-4,
  .order-grid-3,
  .dashboard-grid-metrics,
  .rewards-summary-grid,
  .rewards-summary-grid-inline,
  .client-dashboard-cards,
  .cashflow-grid,
  .crm-summary-grid,
  .crm-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dashboard-screen.has-mobile-admin-nav.is-mobile-nav-open {
    overflow: hidden;
  }

  .dashboard-screen.has-mobile-admin-nav .dashboard-sidebar {
    display: none;
  }

  .dashboard-screen.has-mobile-admin-nav .dashboard-topbar {
    position: static;
    padding: 14px 12px 16px 68px;
  }

  .rewards-page-topbar {
    position: sticky;
  }

  .dashboard-screen.has-mobile-admin-nav .dashboard-menu-button {
    display: none;
  }

  .dashboard-mobile-nav-toggle {
    position: fixed;
    top: max(12px, calc(env(safe-area-inset-top) + 8px));
    left: 12px;
    z-index: 42;
    display: inline-flex;
  }

  .dashboard-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgba(7, 12, 24, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .dashboard-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 41;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(82vw, 308px);
    padding: max(18px, calc(env(safe-area-inset-top) + 12px)) 16px 24px;
    background: linear-gradient(180deg, #15203d 0%, #1b2445 100%);
    box-shadow: 24px 0 40px rgba(7, 12, 24, 0.28);
    transform: translateX(-104%);
    transition: transform 0.22s ease;
  }

  .dashboard-screen.has-mobile-admin-nav.is-mobile-nav-open .dashboard-mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dashboard-screen.has-mobile-admin-nav.is-mobile-nav-open .dashboard-mobile-nav {
    transform: translateX(0);
  }

  .sidebar-brand {
    min-height: 58px;
    padding-inline: 16px;
  }

  .sidebar-nav,
  .sidebar-footer {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .sidebar-group,
  .sidebar-link,
  .sidebar-footer > .sidebar-link,
  .sidebar-link-summary,
  .sidebar-submenu {
    width: 100%;
  }

  .sidebar-link,
  .sidebar-sublink {
    padding-inline: 16px;
  }

  .sidebar-link {
    min-height: 52px;
  }

  .sidebar-submenu {
    padding: 8px 12px 12px;
  }

  .sidebar-sublink {
    padding: 10px 14px 10px 36px;
  }

  .client-login-shell {
    min-height: auto;
    padding: 18px 12px 28px;
    gap: 16px;
  }

  .client-dashboard-shell {
    padding: 18px 12px 28px;
  }

  .client-dashboard-topbar,
  .rewards-panel-head,
  .rewards-section-head,
  .client-panel-head,
  .dashboard-topbar-actions,
  .pedido-pdf-actions,
  .rewards-form-actions,
  .rewards-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rewards-topbar-actions {
    width: 100%;
  }

  .client-dashboard-brand {
    width: 100%;
  }

  .client-dashboard-hero h1,
  .client-login-showcase h1,
  .rewards-hero h2 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .client-dashboard-contact {
    justify-content: flex-start;
  }

  .dashboard-topbar-actions {
    gap: 10px;
  }

  .client-dashboard-contact span,
  .dashboard-alert,
  .dashboard-datetime,
  .client-order-pdf-link,
  .pedido-pdf-action,
  .rewards-search-row button,
  .client-dashboard-logout {
    width: 100%;
  }

  .pedido-pdf-actions {
    gap: 10px;
  }

  .dashboard-datetime {
    align-items: flex-start;
  }

  .dashboard-userbar {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .dashboard-user-menu {
    margin-left: auto;
  }

  .dashboard-user-trigger {
    gap: 8px;
  }

  .dashboard-user-name {
    max-width: min(42vw, 170px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-user-dropdown {
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .order-list-head,
  .order-list-row,
  .employee-table-head,
  .employee-table-row,
  .dashboard-table-head {
    min-width: 900px;
  }
}

@media (max-width: 599px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell {
    padding: 12px;
  }

  .rewards-page-main {
    --rewards-main-pad: 12px;
    padding-top: 0;
  }

  .client-login-shell {
    padding: 16px 12px 24px;
  }

  .client-login-card,
  .client-login-showcase,
  .client-panel-card,
  .rewards-client-panel,
  .rewards-editor-panel,
  .rewards-section-card,
  .pedido-pdf-paper {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .dashboard-title,
  .client-panel-head h2,
  .rewards-panel-head h3,
  .rewards-section-head h4 {
    word-break: break-word;
  }

  .dash-card-head,
  .client-fridge-meta,
  .client-contract-meta,
  .client-wheel-actions,
  .account-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-order-item {
    padding: 14px;
  }

  .funnel-layout,
  .pedido-pdf-grid,
  .pedido-pdf-summary {
    grid-template-columns: 1fr;
  }

  .funnel-placeholder {
    min-height: 120px;
  }

  .dashboard-user-name {
    max-width: 132px;
  }
}

@media (max-width: 480px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell {
    padding: 10px;
  }

  .rewards-page-main {
    --rewards-main-pad: 10px;
    padding-top: 0;
  }

  .dashboard-topbar,
  .client-dashboard-topbar {
    gap: 12px;
  }

  .client-dashboard-topbar {
    padding: 14px;
    border-radius: 18px;
  }

  .client-dashboard-brand {
    align-items: flex-start;
  }

  .client-dashboard-hero,
  .rewards-hero,
  .client-login-showcase {
    padding: 18px;
  }

  .client-wheel-card {
    padding: 22px 16px;
  }

  .client-wheel-stage {
    width: 334px;
    height: 334px;
  }

  .client-wheel-disc {
    width: 282px;
    height: 282px;
    border-width: 4px;
  }

  .client-wheel-bolt {
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
    transform: rotate(var(--wheel-bolt-angle)) translateY(-153px);
  }

  .client-wheel-center {
    width: 54px;
    height: 54px;
  }

  .client-wheel-segment {
    width: 104px;
    margin-left: -52px;
    font-size: 0.75rem;
  }

  .client-wheel-segment-0 { transform: rotate(0deg) translateY(-126px); }
  .client-wheel-segment-1 { transform: rotate(60deg) translateY(-126px); }
  .client-wheel-segment-2 { transform: rotate(120deg) translateY(-126px); }
  .client-wheel-segment-3 { transform: rotate(180deg) translateY(-126px); }
  .client-wheel-segment-4 { transform: rotate(240deg) translateY(-126px); }
  .client-wheel-segment-5 { transform: rotate(300deg) translateY(-126px); }

  .client-dashboard-brand img {
    width: min(170px, 48vw);
    max-width: min(170px, 48vw);
  }

  .client-login-logo {
    width: 96px;
  }

  .dashboard-user-name {
    max-width: 96px;
  }
}

@media (max-width: 440px) {
  .client-dashboard-hero h1,
  .client-login-showcase h1,
  .rewards-hero h2 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .client-panel-card,
  .client-login-card,
  .client-login-showcase,
  .rewards-client-panel,
  .rewards-editor-panel,
  .rewards-section-card {
    padding: 16px 14px;
  }
}

@media (max-width: 430px) {
  .dashboard-topbar,
  .client-dashboard-topbar,
  .rewards-page-topbar {
    padding-inline: 12px;
  }

  .dashboard-screen.has-mobile-admin-nav .dashboard-topbar {
    padding-left: 64px;
  }

  .dashboard-userbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dashboard-userbar-divider {
    display: none;
  }

  .dashboard-user-menu {
    margin-left: 0;
  }

  .client-wheel-disc {
    width: 264px;
    height: 264px;
  }

  .client-wheel-stage {
    width: 314px;
    height: 314px;
  }

  .client-wheel-bolt {
    transform: rotate(var(--wheel-bolt-angle)) translateY(-143px);
  }

  .client-wheel-segment {
    width: 96px;
    margin-left: -48px;
  }

  .client-wheel-segment-0 { transform: rotate(0deg) translateY(-118px); }
  .client-wheel-segment-1 { transform: rotate(60deg) translateY(-118px); }
  .client-wheel-segment-2 { transform: rotate(120deg) translateY(-118px); }
  .client-wheel-segment-3 { transform: rotate(180deg) translateY(-118px); }
  .client-wheel-segment-4 { transform: rotate(240deg) translateY(-118px); }
  .client-wheel-segment-5 { transform: rotate(300deg) translateY(-118px); }
}

@media (max-width: 414px) {
  .dashboard-title {
    font-size: 0.92rem;
  }

  .client-dashboard-brand strong,
  .dash-metric,
  .client-stat-card strong {
    font-size: 1.6rem;
  }
}

@media (max-width: 393px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell,
  .client-login-shell {
    padding-inline: 10px;
  }

  .client-dashboard-hero h1,
  .client-login-showcase h1,
  .rewards-hero h2 {
    font-size: clamp(1.36rem, 6.8vw, 1.82rem);
  }

  .client-wheel-card {
    padding: 20px 14px;
  }

  .client-wheel-stage {
    width: 296px;
    height: 296px;
  }
}

@media (max-width: 389px) {
  .client-order-item,
  .client-prize-item,
  .rewards-history-item,
  .rewards-client-card {
    padding: 14px 12px;
  }

  .dashboard-user-name {
    display: none;
  }
}

@media (max-width: 374px) {
  .client-dashboard-brand,
  .dashboard-userbar,
  .dashboard-topbar-start {
    gap: 10px;
  }

  .client-dashboard-brand img {
    width: min(148px, 44vw);
    max-width: min(148px, 44vw);
  }

  .client-login-logo {
    width: 86px;
  }

  .client-wheel-disc {
    width: 246px;
    height: 246px;
  }

  .client-wheel-stage {
    width: 288px;
    height: 288px;
  }

  .client-wheel-bolt {
    transform: rotate(var(--wheel-bolt-angle)) translateY(-130px);
  }

  .client-wheel-segment {
    width: 90px;
    margin-left: -45px;
    font-size: 0.68rem;
  }

  .client-wheel-segment-0 { transform: rotate(0deg) translateY(-110px); }
  .client-wheel-segment-1 { transform: rotate(60deg) translateY(-110px); }
  .client-wheel-segment-2 { transform: rotate(120deg) translateY(-110px); }
  .client-wheel-segment-3 { transform: rotate(180deg) translateY(-110px); }
  .client-wheel-segment-4 { transform: rotate(240deg) translateY(-110px); }
  .client-wheel-segment-5 { transform: rotate(300deg) translateY(-110px); }
}

@media (max-width: 359px) {
  .dashboard-content,
  .rewards-page-main,
  .client-dashboard-shell,
  .pedido-pdf-shell,
  .client-login-shell {
    padding-inline: 8px;
  }

  .client-dashboard-hero,
  .rewards-hero,
  .client-login-showcase,
  .client-login-card,
  .client-panel-card,
  .rewards-client-panel,
  .rewards-editor-panel,
  .rewards-section-card,
  .pedido-pdf-paper {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .client-dashboard-hero h1,
  .client-login-showcase h1,
  .rewards-hero h2 {
    font-size: 1.28rem;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 14px;
  }

  .dashboard-topbar,
  .client-dashboard-topbar,
  .rewards-page-topbar {
    padding-inline: 10px;
  }

  .client-wheel-disc {
    width: 222px;
    height: 222px;
    border-width: 4px;
  }

  .client-wheel-stage {
    width: 260px;
    height: 260px;
  }

  .client-wheel-bolt {
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    transform: rotate(var(--wheel-bolt-angle)) translateY(-117px);
  }

  .client-wheel-center {
    width: 46px;
    height: 46px;
  }

  .client-wheel-segment {
    width: 82px;
    margin-left: -41px;
    font-size: 0.64rem;
  }

  .client-wheel-segment-0 { transform: rotate(0deg) translateY(-98px); }
  .client-wheel-segment-1 { transform: rotate(60deg) translateY(-98px); }
  .client-wheel-segment-2 { transform: rotate(120deg) translateY(-98px); }
  .client-wheel-segment-3 { transform: rotate(180deg) translateY(-98px); }
  .client-wheel-segment-4 { transform: rotate(240deg) translateY(-98px); }
  .client-wheel-segment-5 { transform: rotate(300deg) translateY(-98px); }
}
