:root {
  color-scheme: light;
  --primary: #4c872b;
  --primary-dark: #080a08;
  --accent: #4c872b;
  --surface: #f7f9f6;
  --card: #ffffff;
  --text: #111311;
  --muted: #5c655b;
  --line: #dae2d8;
  --shadow: 0 16px 40px rgba(8, 10, 8, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 246, 0.96)),
    var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(76, 135, 43, 0.22);
  box-shadow: 0 8px 28px rgba(8, 10, 8, 0.07);
  color: var(--text);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand-lockup img {
  display: block;
  height: 54px;
  max-width: min(360px, 48vw);
  object-fit: contain;
}

.app-header h1 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
}

.app-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}

main {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

.narrow {
  margin: 48px auto;
  max-width: 460px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(8, 10, 8, 0.05);
  margin-bottom: 16px;
  padding: 18px;
}

.panel h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.admin-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: 300px minmax(0, 1fr);
  margin: 0;
  max-width: none;
  padding: 22px 28px;
  transition: grid-template-columns 0.24s ease, gap 0.24s ease;
  width: 100%;
}

.admin-shell.nav-collapsed {
  gap: 0;
  grid-template-columns: 0 minmax(0, 1fr);
}

.admin-content {
  min-width: 0;
  width: 100%;
}

.admin-content-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(76, 135, 43, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(8, 10, 8, 0.06);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 12px;
  position: sticky;
  top: 88px;
  z-index: 25;
}

.active-page-title {
  display: grid;
  gap: 2px;
  text-align: right;
}

.active-page-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.active-page-title strong {
  font-size: 18px;
  line-height: 1.1;
}

.admin-nav {
  background: linear-gradient(180deg, #111311, #1a2118 68%, #111311);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: white;
  height: calc(100vh - 118px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  position: sticky;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  scrollbar-width: thin;
  top: 94px;
  transition: opacity 0.22s ease, padding 0.22s ease, transform 0.22s ease, width 0.22s ease;
  z-index: 20;
}

.admin-nav::-webkit-scrollbar {
  width: 8px;
}

.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar.collapsed {
  border-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
  transform: translateX(-18px);
  width: 0;
}

.sidebar-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px 4px 14px;
}

.sidebar-title span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-title strong {
  color: white;
  font-size: 22px;
  line-height: 1.05;
}

.sidebar-title small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.admin-nav-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-width: 92px;
}

.admin-nav-toggle-icon {
  border-bottom: 2px solid currentColor;
  border-top: 2px solid currentColor;
  display: inline-block;
  height: 14px;
  position: relative;
  transition: transform 0.2s ease;
  width: 18px;
}

.admin-nav-toggle-icon::before {
  background: currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 18px;
}

.admin-shell.nav-collapsed .admin-nav-toggle-icon {
  transform: rotate(90deg);
}

.admin-shell.nav-collapsed .admin-nav-toggle-icon::before {
  opacity: 0;
  transform: scaleX(0);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.admin-tabs {
  flex-direction: column;
  margin: 0;
  max-height: none;
  opacity: 1;
  overflow: visible;
  padding: 0 2px 2px;
  transform: translateY(0);
  transition: max-height 0.24s ease, opacity 0.18s ease, padding 0.24s ease, transform 0.24s ease;
}

.admin-nav.collapsed .admin-tabs {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
  padding-top: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.mode-switch {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(8, 10, 8, 0.05);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px;
}

.mode-button {
  background: white;
  border-color: var(--line);
  color: var(--primary);
}

.mode-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.preset-bar,
.accordion-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tab,
button {
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 14px;
}

button.compact {
  min-height: 34px;
  padding: 0 11px;
}

.tab {
  align-items: center;
  background: white;
  border-color: rgba(76, 135, 43, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(76, 135, 43, 0.08);
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-tabs .tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
  gap: 10px;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 10px;
  position: relative;
  width: 100%;
}

.admin-tabs .tab::before {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  height: 24px;
  left: -7px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleY(0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 4px;
}

.tab-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  line-height: 1;
}

.tab:hover {
  box-shadow: 0 8px 18px rgba(76, 135, 43, 0.13);
  transform: translateY(-1px);
}

.admin-tabs .tab:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: white;
  transform: translateX(2px);
}

.tab.active {
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(76, 135, 43, 0.24);
  color: white;
}

.admin-tabs .tab.active {
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(76, 135, 43, 0.28);
  color: white;
}

.admin-tabs .tab.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.admin-tabs .tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.mode-button {
  background: white;
  border-radius: 999px;
  border-color: var(--line);
  color: var(--primary);
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mode-button:hover {
  box-shadow: 0 7px 16px rgba(76, 135, 43, 0.12);
  transform: translateY(-1px);
}

.mode-button.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(76, 135, 43, 0.22);
  color: white;
}

.ghost {
  background: white;
  border-color: var(--line);
  color: var(--primary);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.sync-status {
  background: #f2f6f0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  padding: 12px;
}

.sync-status.running {
  background: #fff8e1;
  border-color: #eed37a;
  color: #6b5600;
}

.sync-status.completed {
  background: #eef8ea;
  border-color: rgba(76, 135, 43, 0.35);
  color: var(--primary);
}

.sync-status.failed {
  background: #fff0f0;
  border-color: rgba(167, 43, 43, 0.35);
  color: #8f2424;
}

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

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

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(76, 135, 43, 0.72);
  box-shadow: 0 0 0 3px rgba(76, 135, 43, 0.13);
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

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

.metric {
  background: linear-gradient(180deg, white, #fbfcfa);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(8, 10, 8, 0.05);
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.metric::before {
  background: var(--primary);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0.9;
  position: absolute;
  top: 0;
  width: 4px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

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

.panel-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-bottom: 4px;
}

.control-table {
  min-width: 1080px;
}

.control-table.wide {
  min-width: 1320px;
}

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

.action-item {
  align-items: flex-start;
  background: #f7faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 32px 1fr;
  padding: 12px;
}

.action-item strong {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.action-item .severity-dot-high {
  background: #9b2020;
}

.action-item .severity-dot-medium {
  background: #83570d;
}

.action-item .severity-dot-low {
  background: var(--primary);
}

.summary-grid .table-wrap table {
  min-width: 620px;
}

.risk-reason {
  color: var(--muted);
  line-height: 1.35;
  max-width: 320px;
}

.alert-reason {
  align-items: flex-start;
  color: var(--muted);
  display: grid;
  gap: 7px;
  line-height: 1.35;
  max-width: 360px;
}

.severity-high {
  background: rgba(174, 43, 43, 0.12);
  border-color: rgba(174, 43, 43, 0.3);
  color: #9b2020;
}

.severity-medium {
  background: rgba(192, 138, 32, 0.14);
  border-color: rgba(192, 138, 32, 0.32);
  color: #83570d;
}

.severity-low {
  background: rgba(76, 135, 43, 0.12);
  border-color: rgba(76, 135, 43, 0.28);
  color: var(--primary);
}

.score-badge,
.potential-badge {
  min-width: 74px;
  text-align: center;
}

.score-good,
.potential-high {
  background: rgba(76, 135, 43, 0.16);
  border-color: rgba(76, 135, 43, 0.36);
  color: #2f6e19;
}

.score-watch,
.potential-medium {
  background: rgba(192, 138, 32, 0.15);
  border-color: rgba(192, 138, 32, 0.34);
  color: #83570d;
}

.score-risk,
.potential-low {
  background: rgba(174, 43, 43, 0.12);
  border-color: rgba(174, 43, 43, 0.28);
  color: #9b2020;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.scroll-table {
  max-height: 430px;
  overflow: auto;
}

.scroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

th {
  background: #f2f6f0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: #f8fbf6;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  background: rgba(17, 94, 89, 0.12);
  border: 1px solid rgba(17, 94, 89, 0.28);
  border-radius: 999px;
  color: var(--primary);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.growth-positive {
  background: rgba(76, 135, 43, 0.14);
  border-color: rgba(76, 135, 43, 0.32);
  color: #2f6e19;
}

.growth-negative {
  background: rgba(174, 43, 43, 0.12);
  border-color: rgba(174, 43, 43, 0.28);
  color: #9b2020;
}

.growth-neutral {
  background: rgba(92, 101, 91, 0.12);
  border-color: rgba(92, 101, 91, 0.28);
  color: var(--muted);
}

.growth-new {
  background: rgba(27, 95, 168, 0.12);
  border-color: rgba(27, 95, 168, 0.28);
  color: #1b5fa8;
}

.tier-badge {
  text-transform: uppercase;
}

.compact-table {
  margin-top: 12px;
}

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

.monthly-comparison-table {
  min-width: 920px;
}

.monthly-product-comparison-table {
  min-width: 1220px;
}

.legacy-monthly-product-wrap {
  display: none;
}

.monthly-product-groups {
  display: grid;
  gap: 10px;
}

.monthly-product-group {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.monthly-product-group[open] {
  border-color: rgba(76, 135, 43, 0.36);
  box-shadow: 0 8px 18px rgba(8, 10, 8, 0.04);
}

.monthly-product-group summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  list-style: none;
  padding: 12px 14px;
}

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

.monthly-product-group summary::before {
  background: rgba(76, 135, 43, 0.12);
  border: 1px solid rgba(76, 135, 43, 0.28);
  border-radius: 999px;
  color: var(--primary);
  content: "+";
  display: inline-grid;
  font-weight: 800;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  width: 24px;
}

.monthly-product-group[open] summary::before {
  content: "-";
}

.monthly-product-group summary > span:first-child {
  align-items: center;
  display: flex;
  min-width: 0;
}

.monthly-product-group summary strong,
.monthly-product-group summary small {
  display: block;
}

.monthly-product-group summary small {
  color: var(--muted);
  font-size: 12px;
  margin-left: 10px;
}

.monthly-product-group .table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.comparison-result-box {
  background: linear-gradient(180deg, rgba(76, 135, 43, 0.06), rgba(255, 255, 255, 0));
  border: 1px solid rgba(76, 135, 43, 0.2);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.print-heading h2 {
  margin-bottom: 8px;
}

.detail-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.modal {
  align-items: center;
  background: rgba(8, 10, 8, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 40;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  max-height: min(860px, calc(100vh - 36px));
  max-width: 1040px;
  overflow: auto;
  padding: 16px;
  width: min(1040px, 100%);
}

.comparison-modal-card {
  max-width: min(1320px, calc(100vw - 36px));
  width: min(1320px, 100%);
}

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

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.modal-head h2 {
  margin: 0;
}

.detail-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.detail-chip span,
.invoice-card summary span,
.invoice-meta {
  color: var(--muted);
}

.detail-chip span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.detail-chip strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

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

.invoice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.invoice-open,
.invoice-partial {
  border-color: rgba(167, 43, 43, 0.35);
}

.invoice-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.invoice-card summary strong,
.invoice-card summary span {
  display: block;
}

.invoice-amounts {
  align-items: flex-end;
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 150px;
}

.invoice-meta {
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 0;
}

.mini-table {
  min-width: 0;
}

.mini-table th,
.mini-table td {
  font-size: 13px;
  padding: 8px 6px;
}

.catalog-thumb {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: 74px;
  object-fit: contain;
  padding: 6px;
  width: 74px;
}

.recommendation-list {
  display: grid;
  gap: 12px;
}

.recommendation {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.coach-warning {
  background: #fff8e1;
  border: 1px solid #f0d47a;
  border-radius: 8px;
  color: #6b5600;
  margin: 0;
  padding: 10px 12px;
}

.recommendation h3 {
  font-size: 17px;
  margin: 10px 0 8px;
}

.recommendation p,
#customerDetailContent li {
  color: var(--muted);
  line-height: 1.45;
}

#customerDetailContent h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}

.toast {
  background: var(--primary-dark);
  border-radius: 8px;
  bottom: 20px;
  color: white;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  position: fixed;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .admin-shell,
  .admin-shell.nav-collapsed {
    display: block;
    padding: 14px;
  }

  .admin-content-bar {
    top: 86px;
  }

  .admin-sidebar {
    bottom: 14px;
    height: auto;
    left: 14px;
    max-width: 320px;
    position: fixed;
    top: 96px;
    transform: translateX(0);
    width: calc(100vw - 28px);
    z-index: 60;
  }

  .admin-sidebar.collapsed {
    opacity: 0;
    padding-left: 14px;
    padding-right: 14px;
    pointer-events: none;
    transform: translateX(calc(-100% - 24px));
    width: calc(100vw - 28px);
  }

  .admin-tabs {
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: 0;
  }

  .brand-lockup img {
    height: 44px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  .admin-nav {
    border-radius: 14px;
    top: 132px;
  }

  .tab {
    justify-content: center;
    width: 100%;
  }

  .admin-content-bar {
    align-items: flex-start;
    flex-direction: column;
    top: 120px;
  }

  .active-page-title {
    text-align: left;
  }

  .mode-switch {
    display: flex;
  }

  .mode-button {
    flex: 1 1 180px;
  }

  .form-grid,
  .metric-grid,
  .summary-grid,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .monthly-product-group summary {
    grid-template-columns: auto 1fr;
  }

  .monthly-product-group summary > span:not(:first-child) {
    grid-column: 2;
  }

  .span-2 {
    grid-column: span 1;
  }
}

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

  body.print-comparison {
    background: white;
  }

  body.print-comparison .app-header,
  body.print-comparison .tabs,
  body.print-comparison .no-print,
  body.print-comparison .toast,
  body.print-comparison .tab-panel:not(#comparison),
  body.print-comparison #comparison .no-print {
    display: none !important;
  }

  body.print-comparison main {
    max-width: none;
    padding: 0;
  }

  body.print-comparison .admin-shell,
  body.print-comparison .admin-content {
    display: block !important;
    max-width: none;
    padding: 0;
  }

  body.print-comparison #comparison,
  body.print-comparison #comparisonResultModal,
  body.print-comparison #comparisonPrintArea {
    display: block !important;
  }

  body.print-comparison.print-monthly-comparison #comparisonPrintArea {
    display: none !important;
  }

  body.print-comparison.print-monthly-comparison #monthlyComparisonPanel {
    display: block !important;
  }

  body.print-comparison #monthlyComparisonPanel {
    display: none !important;
  }

  body.print-comparison .modal {
    background: white;
    inset: auto;
    padding: 0;
    position: static;
  }

  body.print-comparison .modal-card {
    border: 0;
    box-shadow: none;
    max-height: none;
    max-width: none;
    overflow: visible;
    padding: 0;
    width: auto;
  }

  body.print-comparison .panel,
  body.print-comparison .metric {
    border-color: #b9b9b9;
    box-shadow: none;
  }

  body.print-comparison .panel {
    margin-bottom: 8px;
    padding: 9px 12px;
  }

  body.print-comparison .print-heading,
  body.print-comparison .metric {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-comparison .metric-grid {
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  body.print-comparison .metric {
    min-height: 0;
    padding: 9px 10px;
  }

  body.print-comparison .metric span {
    font-size: 10px;
  }

  body.print-comparison .metric strong {
    font-size: 20px;
    line-height: 1.1;
    margin-top: 4px;
    white-space: nowrap;
  }

  body.print-comparison .print-heading h2 {
    font-size: 17px;
    margin-bottom: 5px;
  }

  body.print-comparison .print-heading .muted-copy {
    font-size: 11px;
    margin-bottom: 0;
  }

  body.print-comparison #comparisonPrintArea > .panel:last-child {
    break-inside: auto;
    page-break-inside: auto;
  }

  body.print-comparison #comparisonPrintArea > .panel:last-child h2 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  body.print-comparison .table-wrap {
    overflow: visible;
  }

  body.print-comparison .accordion-actions,
  body.print-comparison .legacy-monthly-product-wrap {
    display: none !important;
  }

  body.print-comparison .monthly-product-groups {
    gap: 6px;
  }

  body.print-comparison .monthly-product-group {
    border-color: #b9b9b9;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-comparison .monthly-product-group summary {
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(110px, 1fr));
    padding: 7px 9px;
  }

  body.print-comparison .monthly-product-group summary::before {
    display: none;
  }

  body.print-comparison .monthly-product-group:not([open]) .table-wrap {
    display: none;
  }

  body.print-comparison table,
  body.print-comparison .comparison-table {
    min-width: 0;
  }

  body.print-comparison th,
  body.print-comparison td {
    font-size: 9px;
    padding: 4px 4px;
  }

  body.print-comparison thead {
    display: table-header-group;
  }

  body.print-comparison tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-comparison .badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
