:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --line: #dfe7e2;
  --text: #17221d;
  --muted: #68766f;
  --green: #1f9d63;
  --green-dark: #137547;
  --green-soft: #e8f6ef;
  --shadow: 0 18px 40px rgba(27, 45, 36, 0.08);
}

.raw-ai-response-panel {
  overflow: hidden;
}

.raw-ai-response {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7faf8;
  color: #26352e;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #6b1d1d;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-switch:hover {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff5f5;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(180deg, #f5faf7 0%, #eef6f1 100%);
}

.auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-brand {
  min-height: auto;
  padding: 0;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  border-color: rgba(31, 157, 99, 0.25);
  background: var(--green-soft);
  color: var(--green-dark);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.logout-link {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: var(--green-soft);
  color: var(--green-dark);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sidebar-user-card {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(18, 128, 83, 0.14);
  border-radius: 14px;
  background: #f7fbf8;
  color: #20342a;
}

.sidebar-user-logo {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 128, 83, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-user-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-card strong {
  overflow: hidden;
  color: #16261e;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-card small,
.sidebar-user-salon {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-salon {
  color: var(--green-dark);
  font-weight: 750;
}

.settings-logo-preview {
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

.settings-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logout-link:hover {
  background: var(--green-dark);
  color: #fff;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #405047;
  font-weight: 650;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.sidebar .logout-link:hover {
  background: var(--green-dark);
  color: #fff;
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(27, 45, 36, 0.12);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--green-dark);
}

.firm-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.firm-sidebar .nav {
  display: grid;
  gap: 8px;
}

.firm-brand {
  align-items: center;
}

.firm-brand span:last-child {
  min-width: 0;
}

.firm-brand strong,
.firm-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.firm-brand-logo {
  overflow: hidden;
}

.firm-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.firm-sidebar .nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #405047;
  font-weight: 750;
}

.firm-sidebar .nav a:hover,
.firm-sidebar .nav a.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.firm-sidebar .logout-button {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.firm-sidebar .logout-button:hover {
  background: var(--green-dark);
  color: #fff;
}

.sidebar-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
  flex: 0 0 auto;
}

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

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

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

.compact-table th,
.compact-table td {
  padding: 13px 10px;
}

.main {
  width: 100%;
  max-width: 1240px;
  padding: 32px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.page-header p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.eyebrow {
  color: var(--green-dark) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel,
.stat-card,
.score-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-action-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-action-bar .button {
  min-width: 160px;
}

.section-title h2,
.step-content h2,
.empty-state h2 {
  margin: 0;
  font-size: 19px;
}

.muted {
  color: var(--muted);
}

.stats-grid,
.score-grid,
.upload-grid,
.form-grid,
.customer-summary,
.two-column {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.stat-card {
  padding: 22px;
}

.stat-card span,
.score-card span,
.customer-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 34px;
}

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

.score-card {
  padding: 18px;
}

.score-card strong {
  display: block;
  margin: 9px 0 14px;
  font-size: 24px;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
.table-action:hover {
  background: var(--green-dark);
}

.button.ghost {
  background: var(--green-soft);
  color: var(--green-dark);
}

.button.secondary {
  background: #17221d;
}

.button.large {
  min-height: 50px;
  padding-inline: 24px;
}

.button:disabled,
.disabled-button {
  cursor: not-allowed;
  opacity: 0.72;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

td {
  font-weight: 600;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.status.pending {
  background: #fff4dd;
  color: #8a5a12;
}

.status.inactive {
  background: #eef1ef;
  color: #66736c;
}

.table-action {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 13px;
}

.table-action.muted-action {
  background: var(--green-soft);
  color: var(--green-dark);
}

.table-action.danger-action {
  background: #fee2e2;
  color: #991b1b;
}

.table-action.danger-action:hover {
  background: #fecaca;
  color: #7f1d1d;
}

.table-action.success-action {
  background: var(--green-soft);
  color: var(--green-dark);
}

.table-action.success-action:hover {
  background: var(--green);
  color: #fff;
}

tr.product-row-passive td {
  background: rgba(239, 68, 68, 0.1);
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.table-action-group {
  display: flex;
  gap: 8px;
}

.customer-form,
.analysis-flow {
  display: grid;
  gap: 16px;
}

.analysis-wizard {
  display: grid;
  gap: 18px;
}

.wizard-reset-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: -8px 0 18px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step {
  display: grid;
  min-height: 82px;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.wizard-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf1ef;
  color: #506158;
  font-size: 13px;
  font-weight: 900;
}

.wizard-step strong {
  font-size: 13px;
  line-height: 1.25;
}

.wizard-step.active,
.wizard-step.done {
  border-color: rgba(31, 157, 99, 0.35);
  background: var(--green-soft);
  color: var(--green-dark);
}

.wizard-step.active span,
.wizard-step.done span {
  background: var(--green);
  color: #fff;
}

.wizard-panel {
  margin-bottom: 0;
}

.customer-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.customer-search-box label {
  display: grid;
  gap: 8px;
}

.customer-search-box span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.customer-search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.customer-search-box input:focus {
  border-color: rgba(31, 157, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.12);
}

.customer-search-box small {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.customer-search-box [data-customer-search-results] {
  grid-column: 1 / -1;
}

.customer-search-results {
  display: grid;
  gap: 8px;
  margin-top: -2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 48, 35, 0.08);
}

.report-customer-filter {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-bottom: 16px;
}

.report-customer-filter[hidden],
.customer-search-results[hidden],
.selected-customer-chip[hidden] {
  display: none;
}

.customer-search-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.customer-search-control input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.customer-search-control input:focus {
  border-color: rgba(31, 157, 99, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.1);
  outline: none;
}

.selected-customer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 157, 99, 0.25);
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.customer-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fbfcfb;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-search-result:hover,
.customer-search-result.selected {
  border-color: rgba(31, 157, 99, 0.35);
  background: var(--green-soft);
}

.customer-search-result strong,
.customer-search-result span,
.customer-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-search-result span,
.customer-search-result small {
  color: var(--muted);
}

.customer-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.selected-customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
}

.customer-search-empty {
  display: grid;
  min-height: 140px;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed rgba(31, 157, 99, 0.35);
  border-radius: 16px;
  background: #fbfcfb;
}

.customer-search-empty.compact {
  min-height: 64px;
  padding: 12px;
}

.customer-search-empty strong {
  color: var(--green-dark);
}

.customer-search-empty span {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop[hidden] {
  display: none;
}

.empty-state[hidden] {
  display: none;
}

.customer-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(220, 229, 224, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 4px 0 0;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(31, 157, 99, 0.35);
  background: var(--green-soft);
  color: var(--green-dark);
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

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

.detail-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-item strong {
  color: var(--text);
  font-size: 15px;
}

.choice-card {
  min-height: 140px;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
  cursor: pointer;
}

.choice-card input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.choice-card strong,
.choice-card span,
.choice-card small {
  display: block;
}

.choice-card strong {
  color: var(--text);
  font-size: 16px;
}

.choice-card span,
.choice-card small {
  color: var(--muted);
}

.choice-card.selected {
  border-color: rgba(31, 157, 99, 0.45);
  background: var(--green-soft);
}

.inline-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.muted-form {
  opacity: 0.62;
}

.consent-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.consent-box strong {
  display: block;
  margin-bottom: 8px;
}

.consent-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.consent-check {
  margin-top: 16px;
}

.wizard-upload-grid .upload-box.uploaded {
  border-color: rgba(31, 157, 99, 0.55);
  background: var(--green-soft);
}

.upload-box em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(31, 157, 99, 0.22);
  border-radius: 12px;
  background: #fff;
}

.form-warning {
  padding: 13px 15px;
  border: 1px solid #f1c98b;
  border-radius: 14px;
  background: #fff8ed;
  color: #8a5a12;
  font-weight: 800;
}

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

.summary-grid article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.summary-grid span,
.report-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.summary-grid strong,
.report-facts strong {
  display: block;
  color: var(--text);
}

.summary-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-facts {
  display: grid;
  gap: 14px;
}

.report-facts p {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fbfcfb;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 180px minmax(0, 1.4fr);
  align-items: center;
  gap: 20px;
}

.report-hero h2 {
  margin: 8px 0;
  font-size: 28px;
}

.report-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.report-score-ring {
  position: relative;
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  place-content: center;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score, 0) * 1%), var(--green-soft) 0);
  text-align: center;
}

.report-score-ring::before {
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.report-score-ring span,
.report-score-ring small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-score-ring strong {
  position: relative;
  z-index: 1;
  color: var(--green-dark);
  font-size: 42px;
  line-height: 1;
}

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

.report-summary-grid article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.report-summary-grid span,
.protocol-lines span,
.product-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-summary-grid strong,
.protocol-lines strong {
  display: block;
}

.ai-comment p {
  margin: 0;
  color: #35443b;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.75;
}

.protocol-card {
  margin-bottom: 0;
}

.protocol-lines {
  display: grid;
  gap: 12px;
}

.protocol-lines p {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fbfcfb;
}

.protocol-warning {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(31, 157, 99, 0.18);
  border-radius: 12px;
  background: #f4fbf7;
  color: #466257;
  font-size: 13px;
  line-height: 1.55;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.analysis-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-section-title {
  margin: 16px 0 10px;
  font-size: 15px;
}

.photo-section-note {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.55;
}

.analysis-photo-card {
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.analysis-photo-card:hover {
  border-color: rgba(31, 157, 99, 0.35);
  box-shadow: 0 16px 34px rgba(27, 45, 36, 0.1);
}

.analysis-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef4f0;
}

.analysis-photo-card strong {
  display: block;
  padding: 12px;
  color: #24342c;
  font-size: 13px;
}

.photo-modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.photo-modal {
  display: grid;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.photo-modal img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 14px;
  background: #0c1110;
}

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

.product-stat-card strong {
  font-size: 30px;
}

.product-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.product-card strong {
  color: var(--green-dark);
  font-size: 18px;
}

.product-card p {
  margin: 0;
  color: #33443a;
  line-height: 1.45;
}

.product-form {
  max-width: none;
}

.product-form .checkbox-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--text);
  cursor: pointer;
}

.product-form .checkbox-line input[type="checkbox"] {
  appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  place-content: center;
  border: 1.5px solid rgba(31, 157, 99, 0.45);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.product-form .checkbox-line input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  transform: scale(0);
  transition: 140ms transform ease;
  background: var(--green);
}

.product-form .checkbox-line input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.product-form .checkbox-line span {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

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

.settings-section {
  margin-bottom: 18px;
}

.settings-form {
  display: grid;
  gap: 0;
}

.settings-checkbox {
  align-self: end;
  min-height: 44px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

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

.file-field input[type="file"] {
  padding: 8px;
  border-style: dashed;
  background: #f7fbf9;
}

.success-message {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 157, 99, 0.35);
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.table-search {
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.table-search input:focus {
  border-color: rgba(31, 157, 99, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.1);
  outline: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-button {
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.pagination-button.active {
  border-color: rgba(31, 157, 99, 0.55);
  background: var(--green);
  color: #fff;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.error-message {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff5f5;
  color: #991b1b;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.subscription-card {
  display: grid;
  gap: 16px;
}

.subscription-main,
.usage-metrics {
  display: grid;
  gap: 14px;
}

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

.subscription-main strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
}

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

.usage-metrics article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.usage-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.usage-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 24px;
}

.usage-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.usage-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.billing-grid {
  align-items: stretch;
}

.billing-usage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.package-comparison-card {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.package-comparison-card.current {
  border-color: rgba(31, 157, 99, 0.45);
}

.package-comparison-card > strong {
  color: var(--green-dark);
  font-size: 28px;
}

.package-comparison-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.package-comparison-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: #33443a;
}

.report-preview-panel {
  background: #f7faf8;
}

.printable-report {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #d9e2dd;
  border-radius: 8px;
  background: #fff;
  color: #17221d;
  box-shadow: 0 12px 30px rgba(23, 34, 29, 0.06);
}

.print-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8e4;
}

.print-logo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e2dd;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.print-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.print-header p,
.print-title-row p,
.print-section p,
.print-footer p {
  margin: 0;
  color: #536159;
  line-height: 1.55;
}

.print-title-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.print-title-row div,
.print-score-grid article {
  padding: 13px;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  background: #fbfcfb;
}

.print-title-row span,
.print-score-grid span {
  display: block;
  margin-bottom: 6px;
  color: #6c7871;
  font-size: 12px;
  font-weight: 800;
}

.print-title-row strong,
.print-score-grid strong {
  display: block;
}

.print-section {
  padding: 18px 0;
  border-top: 1px solid #edf1ef;
}

.print-section h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 16px;
}

.print-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.print-product-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.print-product-list li {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f4f8f6;
}

.print-product-list span {
  color: #6c7871;
  font-size: 13px;
}

.print-footer {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e2e8e4;
}

.customer-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.customer-detail-hero h2 {
  margin: 8px 0;
  font-size: 28px;
}

.customer-detail-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.customer-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 8px;
}

.customer-profile-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.customer-profile-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.customer-profile-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

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

.reminder-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.reminder-card strong {
  color: var(--text);
  font-size: 17px;
}

.reminder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.followup-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.followup-list strong {
  color: var(--text);
}

.followup-list span {
  color: var(--green-dark);
  font-weight: 800;
}

.crm-message {
  line-height: 1.5;
}

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

.limit-warning {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f1c98b;
  border-radius: 14px;
  background: #fff8ed;
  color: #8a5a12;
  font-weight: 850;
  line-height: 1.5;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.role-card h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 17px;
}

.role-count {
  margin: -6px 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.role-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: #33443a;
  line-height: 1.45;
}

.admin-shell {
  background: #f3f6f4;
}

.admin-sidebar {
  background: #111d18;
  border-right: 0;
}

.admin-sidebar .brand,
.admin-sidebar .brand small,
.admin-sidebar .sidebar-link {
  color: #dfeee6;
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar .sidebar-link.active {
  background: rgba(31, 157, 99, 0.2);
  color: #ffffff;
}

.admin-mark {
  background: #ffffff;
  color: #111d18;
}

.admin-back-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #dfeee6;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-main {
  max-width: 1320px;
}

.admin-header .eyebrow {
  color: #0f6b42 !important;
}

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

.admin-stat strong {
  font-size: 30px;
}

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

.admin-package-card {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.admin-package-card > strong {
  color: var(--green-dark);
  font-size: 30px;
}

.admin-package-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

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

label {
  display: grid;
  gap: 7px;
  color: #2e3d35;
  font-weight: 750;
}

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--text);
  outline: 0;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

input[type="file"] {
  min-height: 48px;
  padding: 8px;
  border: 1px dashed #a9cabe;
  background: #f7fbf9;
  color: var(--muted);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: var(--green-dark);
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.12);
}

.step-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.step-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.step-content {
  display: grid;
  gap: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcfb;
}

summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 850;
}

details .customer-form {
  margin-top: 16px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

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

.upload-box {
  min-height: 150px;
  place-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed #a9cabe;
  border-radius: 16px;
  background: #f7fbf9;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box strong {
  color: var(--text);
}

.upload-box span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

.upload-box:hover,
.upload-box.uploaded {
  border-color: var(--green);
  background: var(--green-soft);
}

.upload-box:hover {
  transform: translateY(-1px);
}

.upload-box.uploaded span {
  background: var(--green-dark);
}

.upload-box em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}

.action-step p {
  margin: 0;
  color: var(--muted);
}

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

.customer-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
}

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

.recommendation strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.recommendation p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.product-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.empty-state {
  min-height: 240px;
  display: grid;
  align-content: center;
}

.empty-state p {
  color: var(--muted);
}

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

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.5);
  }

  .mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 75;
    width: min(82vw, 300px);
    height: 100vh;
    padding: 76px 16px 16px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 22px 0 50px rgba(27, 45, 36, 0.16);
  }

  .mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-link {
    justify-content: flex-start;
  }

  .main {
    padding: 76px 20px 20px;
  }

  .stats-grid,
  .score-grid,
  .upload-grid,
  .customer-summary,
  .two-column,
  .customer-choice-grid,
  .summary-grid,
  .product-card-grid,
  .product-stats,
  .settings-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .customer-search-box {
    grid-template-columns: 1fr;
  }

  .selected-customer-row {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid,
  .admin-package-grid,
  .package-comparison-grid,
  .usage-metrics,
  .print-score-grid,
  .print-title-row,
  .customer-profile-grid,
  .crm-summary-grid,
  .reminder-grid,
  .team-stats,
  .role-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-hero {
    grid-template-columns: 1fr;
  }

  .report-score-ring {
    justify-self: start;
  }

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

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

  .page-header h1 {
    font-size: 26px;
  }

  .sidebar nav,
  .stats-grid,
  .score-grid,
  .upload-grid,
  .form-grid,
  .customer-summary,
  .two-column,
  .customer-choice-grid,
  .summary-grid,
  .wizard-progress,
  .product-card-grid,
  .product-stats,
  .settings-stats,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions .button {
    width: 100%;
  }

  .admin-summary-grid,
  .admin-package-grid,
  .package-comparison-grid,
  .usage-metrics,
  .subscription-main,
  .print-score-grid,
  .print-title-row,
  .customer-profile-grid,
  .crm-summary-grid,
  .reminder-grid,
  .team-stats,
  .role-card-grid {
    grid-template-columns: 1fr;
  }

  .customer-detail-hero {
    grid-template-columns: 1fr;
  }

  .customer-badge-row,
  .followup-list a,
  .table-action-group {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .printable-report {
    padding: 20px;
  }

  .customer-search-box {
    grid-template-columns: 1fr;
  }

  .customer-search-box small {
    white-space: normal;
  }

  .customer-search-result {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .customer-modal {
    max-height: 92vh;
    padding: 18px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .print-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-actions {
    width: 100%;
    justify-content: stretch;
  }

  .report-actions .button {
    width: 100%;
  }

  .dashboard-list-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-link {
    justify-content: flex-start;
  }

  .step-card {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar,
  .page-header .button {
    display: none;
  }

  .shell {
    display: block;
  }

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

  .panel,
  .score-card {
    box-shadow: none;
  }

  body.printing-report .page-header,
  body.printing-report #report-action-message,
  body.printing-report #report-detail-api-message,
  body.printing-report #report-detail-root > :not(.report-preview-panel) {
    display: none !important;
  }

  body.printing-report .report-preview-panel {
    display: block !important;
    border: 0;
    padding: 0;
  }

  body.printing-report .report-preview-panel > .section-title {
    display: none;
  }

  body.printing-report .printable-report {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    border: 0;
    box-shadow: none;
  }
}
