:root {
  --emerald: #047857;
  --teal: #0f766e;
  --turquoise: #2dd4bf;
  --sky: #0284c7;
  --amber: #f59e0b;
  --coral: #ef4444;
  --leaf: #65a30d;
  --light-bg: #f2fbfb;
  --border: #d6e3e1;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #15803d;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --shadow: 0 14px 38px rgba(15, 118, 110, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0 16%, transparent 16% 100%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.08) 0 13%, transparent 13% 100%),
    linear-gradient(180deg, #f8fffd 0%, var(--light-bg) 44%, #ffffff 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

.top-ribbon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 24px 12px 292px;
  color: #ffffff;
  background: linear-gradient(105deg, #065f46 0%, var(--teal) 42%, var(--sky) 78%, var(--turquoise) 100%);
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.22);
}

.ribbon-title {
  font-size: 18px;
  font-weight: 700;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.sidebar {
  position: fixed;
  z-index: 70;
  inset: 0 auto 0 0;
  width: 268px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 68%, #f0fdfa 100%);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-brand strong {
  color: #0f3f3b;
  font-size: 18px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.nav-link {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #334155;
  text-align: left;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  outline: none;
  color: var(--emerald);
  background: linear-gradient(90deg, #e9fbf7, #eff6ff);
  border-color: #67e8f9;
  box-shadow: inset 4px 0 0 var(--amber);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 8px 2px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.sidebar-footer small {
  font-size: 11px;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.main-content {
  min-height: 100vh;
  margin-left: 268px;
  padding: 96px 24px 48px;
}

.app-section {
  display: none;
  max-width: 1260px;
  margin: 0 auto;
}

.app-section.active {
  display: block;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6, 95, 70, 0.96), rgba(15, 118, 110, 0.92) 45%, rgba(2, 132, 199, 0.88)),
    linear-gradient(45deg, rgba(245, 158, 11, 0.2), transparent 42%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.17;
}

.hero-copy p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions,
.button-row,
.reten-actions,
.action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-score-card {
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-illustration {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.18));
}

.hero-score-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(6, 78, 59, 0.28);
}

.hero-score-card span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-score-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.feature-grid,
.summary-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.summary-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}

.auth-card h2 {
  margin-top: 0;
}

.auth-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.auth-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.auth-form .btn {
  white-space: nowrap;
}

.password-input-wrap {
  display: grid;
  gap: 6px;
}

.password-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #0f766e;
  background: #f8fafc;
  font-weight: 800;
  white-space: nowrap;
}

.password-toggle:hover {
  background: #ecfeff;
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

.admin-card {
  grid-column: 1 / -1;
}

.card,
.section-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.card {
  padding: 22px;
}

.feature-card h2,
.card h2,
.subsection h2 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 19px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--teal);
}

.feature-card:nth-child(2) {
  border-top-color: var(--amber);
}

.feature-card:nth-child(3) {
  border-top-color: var(--sky);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: 16px;
  width: 132px;
  height: 28px;
  background: rgba(45, 212, 191, 0.14);
  transform: rotate(-28deg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.feature-icon-teal {
  background: linear-gradient(135deg, var(--teal), var(--turquoise));
}

.feature-icon-amber {
  background: linear-gradient(135deg, var(--amber), #f97316);
}

.feature-icon-coral {
  background: linear-gradient(135deg, var(--sky), var(--coral));
}

.feature-card p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.section-heading h1 {
  margin: 0 0 6px;
  color: #0f3f3b;
  font-size: 28px;
  line-height: 1.2;
}

.score-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 10px 12px;
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  background: #ecfeff;
  font-weight: 800;
}

.btn {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal) 58%, var(--sky));
  box-shadow: 0 10px 22px rgba(4, 120, 87, 0.2);
}

.btn.secondary {
  color: var(--emerald);
  background: linear-gradient(135deg, #e9fbf7, #eff6ff);
  border-color: #99f6e4;
}

.btn.ghost {
  color: #0f766e;
  background: #ffffff;
  border-color: var(--border);
}

.btn.danger {
  color: #ffffff;
  background: var(--danger);
}

.alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #991b1b;
  background: #fef2f2;
  font-weight: 700;
}

.autosave-status {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
}

.section-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  background: linear-gradient(90deg, #ecfeff, #ffffff 55%, #fff7ed);
  color: #0f3f3b;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
}

.section-score,
.question-score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: var(--teal);
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  font-size: 12px;
  font-weight: 800;
}

.section-score {
  margin-left: auto;
  white-space: nowrap;
}

.accordion-icon {
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion:not(.open) .accordion-icon {
  transform: rotate(-45deg);
}

.accordion-panel {
  display: block;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.accordion:not(.open) .accordion-panel {
  display: none;
}

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

.verification-grid {
  margin-top: 16px;
}

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

.field span,
.question-title,
.checkbox-card span {
  color: #24413f;
  font-size: 13px;
  font-weight: 800;
}

.field.full-width,
.field.textarea-field {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea,
.reten-table input,
.reten-table textarea,
.editable-table input,
.editable-table textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
}

.field textarea,
.editable-table textarea,
.reten-table textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.editable-table input:focus,
.editable-table textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(45, 212, 191, 0.22);
}

.reten-table input[readonly] {
  cursor: default;
  background: #f8fafc;
}

.reten-risk-input {
  text-align: center;
  font-weight: 800;
}

.reten-risk-input.risk-rendah,
.reten-risk-input.risk-sederhana,
.reten-risk-input.risk-tinggi {
  color: #ffffff;
  border-color: transparent;
}

.reten-risk-input.risk-rendah {
  background: var(--success);
}

.reten-risk-input.risk-sederhana {
  background: var(--warning);
}

.reten-risk-input.risk-tinggi {
  background: var(--danger);
}

.reten-table input.reten-risk-input.risk-rendah,
.risk-badge.risk-rendah {
  color: #ffffff !important;
  background: #15803d !important;
  border-color: #15803d !important;
}

.reten-table input.reten-risk-input.risk-sederhana,
.risk-badge.risk-sederhana {
  color: #111827 !important;
  background: #fbbf24 !important;
  border-color: #f59e0b !important;
}

.reten-table input.reten-risk-input.risk-tinggi,
.risk-badge.risk-tinggi {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.subsection {
  margin-top: 22px;
}

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

.checkbox-card,
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.checkbox-card input,
.radio-card input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--teal) #e2e8f0;
}

.mobile-table-hint {
  display: none;
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

#cadanganTable {
  min-width: 980px;
}

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

.data-table th,
.data-table td {
  padding: 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.reten-table {
  min-width: 1320px;
}

.data-table th {
  color: #ffffff;
  background: var(--teal);
}

.data-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.matrix-card {
  margin-bottom: 18px;
}

.matrix-card h2 {
  color: #000000;
  font-size: 14px;
  text-transform: uppercase;
}

.risk-matrix-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #ffffff;
  color: #000000;
  table-layout: fixed;
}

.risk-matrix-table th,
.risk-matrix-table td {
  padding: 6px 7px;
  border: 2px solid #111111;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
}

.risk-matrix-table th {
  background: #ffd11a;
  color: #000000;
  text-align: center;
  font-weight: 900;
}

.risk-matrix-table th:nth-child(1),
.risk-matrix-table td:nth-child(1) {
  width: 52px;
}

.risk-matrix-table th:nth-child(2),
.risk-matrix-table td:nth-child(2) {
  width: 260px;
}

.risk-matrix-table th:nth-child(3),
.risk-matrix-table td:nth-child(3) {
  width: 240px;
}

.risk-matrix-table th:nth-child(4),
.risk-matrix-table td:nth-child(4),
.risk-matrix-table th:nth-child(5),
.risk-matrix-table td:nth-child(5),
.risk-matrix-table th:nth-child(6),
.risk-matrix-table td:nth-child(6),
.risk-matrix-table th:nth-child(7),
.risk-matrix-table td:nth-child(7) {
  width: 92px;
}

.matrix-center {
  text-align: center;
  font-weight: 800;
}

.matrix-component-total td {
  background: #d9d9d9;
  font-weight: 900;
}

.matrix-grand-total td {
  background: #f58ac2 !important;
  font-weight: 900;
}

.risk-matrix-table tfoot td {
  text-align: center;
  font-weight: 800;
}

.matrix-grade-title,
.matrix-grade-heading {
  background: #d9d9d9;
}

.matrix-risk-low {
  background: #d9ead3;
}

.matrix-risk-medium {
  background: #ffe599;
}

.matrix-risk-high {
  background: #ff1f1f;
  color: #000000;
}

.water-table {
  min-width: 820px;
}

.water-table th,
.water-table td {
  text-align: center;
}

.question-card {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.question-score {
  margin-bottom: 10px;
}

.question-title {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.print-document-title {
  display: none;
}

.official-print-form {
  display: none;
}

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

.radio-card {
  min-height: 56px;
}

.radio-text {
  display: grid;
  gap: 3px;
}

.radio-text strong {
  color: #0f3f3b;
  font-size: 14px;
}

.radio-text small {
  color: var(--muted);
  font-weight: 800;
}

.question-notes {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(260px, 0.6fr);
  gap: 10px;
  margin-top: 12px;
}

.special-rule {
  margin: 0 0 14px;
  border-color: #5eead4;
  background: #ecfeff;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.risk-rendah {
  background: var(--success);
}

.risk-sederhana {
  background: var(--warning);
}

.risk-tinggi {
  background: var(--danger);
}

.result-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.result-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.result-card dt {
  color: var(--muted);
  font-weight: 700;
}

.result-card dd {
  margin: 0;
  color: #0f3f3b;
  font-weight: 900;
}

.action-panel {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.sticky-mobile-summary {
  display: none;
}

.placeholder-box {
  min-height: 58px;
  padding: 12px;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
}

.small-action {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.reten-row-actions {
  display: grid;
  gap: 6px;
  min-width: 96px;
}

.reten-row-actions .small-action {
  width: 100%;
}

.small-action.action-download {
  color: #0f766e;
  border-color: #99f6e4;
  background: #ecfeff;
}

.small-action.action-delete {
  color: #ffffff;
  border-color: var(--danger);
  background: var(--danger);
}


@media (max-width: 980px) {
  .top-ribbon {
    padding-left: 16px;
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

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

  .main-content {
    margin-left: 0;
    padding: 86px 16px 92px;
  }

  .hero-panel,
  .feature-grid,
  .auth-layout,
  .summary-layout {
    grid-template-columns: 1fr;
  }

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

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

  .section-heading {
    flex-direction: column;
  }

  .score-pill {
    min-width: 0;
    width: 100%;
  }

  .action-panel {
    position: static;
  }

  .sticky-mobile-summary {
    position: fixed;
    z-index: 55;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.12);
  }

  .sticky-mobile-summary strong,
  .sticky-mobile-summary span {
    display: block;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .top-ribbon {
    min-height: 58px;
    padding-right: 12px;
  }

  .ribbon-title {
    font-size: 14px;
    line-height: 1.25;
  }

  .main-content {
    padding: 76px 10px 108px;
  }

  .hero-panel {
    gap: 14px;
    padding: 16px;
  }

  .hero-copy h1,
  .section-heading h1 {
    font-size: 22px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-score-card {
    grid-template-rows: auto;
    min-height: 0;
    padding: 14px;
  }

  .hero-illustration {
    max-height: 118px;
  }

  .hero-score-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-score-panel strong {
    grid-row: span 2;
    font-size: 34px;
  }

  .form-grid,
  .officer-grid,
  .verification-grid,
  .checkbox-grid,
  .radio-grid,
  .question-notes {
    grid-template-columns: 1fr;
  }

  .accordion-panel {
    padding: 14px;
  }

  .section-card,
  .card {
    border-radius: 6px;
  }

  .accordion-toggle {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 54px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .section-score {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .sticky-mobile-summary .btn {
    width: auto;
    min-width: 142px;
    padding-inline: 10px;
  }

  .hero-actions .btn,
  .button-row .btn,
  .reten-actions .btn,
  .action-panel .btn {
    width: 100%;
  }

  .data-table th,
  .data-table td {
    font-size: 12.5px;
  }

  .risk-matrix-table th,
  .risk-matrix-table td {
    padding: 5px;
    font-size: 10.5px;
  }

  .risk-matrix-table {
    min-width: 820px;
  }

  .matrix-card {
    padding: 14px;
  }

  .matrix-card h2 {
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-table-hint {
    display: block;
  }

  .table-scroll {
    margin-inline: -2px;
    padding-bottom: 8px;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    background:
      linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0)),
      linear-gradient(90deg, rgba(15,118,110,0.08), rgba(15,118,110,0));
  }

  .field input,
  .field select,
  .field textarea,
  .reten-table input,
  .reten-table textarea,
  .editable-table input,
  .editable-table textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .checkbox-card,
  .radio-card {
    min-height: 52px;
    padding: 12px;
  }

  .checkbox-card input,
  .radio-card input {
    width: 22px;
    height: 22px;
  }

  .question-card {
    padding: 12px;
  }

  .sticky-mobile-summary {
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  }

  .sticky-mobile-summary .btn {
    min-height: 44px;
  }
}

@media print {
  .top-ribbon,
  .sidebar,
  .sidebar-backdrop,
  .btn,
  .action-panel,
  .sticky-mobile-summary,
  .main-content {
    display: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5px;
    line-height: 1.18;
  }

  .official-print-form {
    display: block !important;
  }

  .official-page {
    break-after: page;
  }

  .official-page:last-child {
    break-after: auto;
  }

  .official-print-form h1 {
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.18;
    text-align: center;
    text-transform: uppercase;
  }

  .official-print-form h2 {
    margin: 5px 0 3px;
    padding: 2px 3px;
    border: 1px solid #000000;
    background: #eeeeee;
    color: #000000;
    font-size: 9.5px;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .official-table {
    width: 100%;
    margin: 0 0 4px;
    border-collapse: collapse;
    table-layout: fixed;
    break-inside: auto;
  }

  .official-table th,
  .official-table td {
    padding: 2px 3px;
    border: 1px solid #000000;
    color: #000000;
    vertical-align: top;
    font-size: 8.2px;
    line-height: 1.14;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .official-table th {
    font-weight: 700;
    background: #f3f3f3;
  }

  .official-info-table th {
    width: 17%;
  }

  .official-info-table td {
    width: 33%;
    min-height: 16px;
  }

  .official-option-table th:first-child,
  .official-water-table th:first-child {
    width: 18%;
  }

  .official-checklist-table {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .official-checklist-table th:nth-child(1),
  .official-checklist-table td:nth-child(1) {
    width: 4%;
  }

  .official-checklist-table th:nth-child(2),
  .official-checklist-table td:nth-child(2) {
    width: 25%;
  }

  .official-checklist-table th:nth-child(3),
  .official-checklist-table td:nth-child(3) {
    width: 31%;
  }

  .official-checklist-table th:nth-child(4),
  .official-checklist-table td:nth-child(4),
  .official-checklist-table th:nth-child(5),
  .official-checklist-table td:nth-child(5),
  .official-checklist-table th:nth-child(7),
  .official-checklist-table td:nth-child(7) {
    width: 7%;
  }

  .official-checklist-table th:nth-child(6),
  .official-checklist-table td:nth-child(6) {
    width: 19%;
  }

  .official-center {
    text-align: center;
    vertical-align: middle !important;
  }

  .official-note {
    margin: 2px 0 4px;
    font-size: 8px;
  }

  .official-improvement-table td {
    height: 30px;
  }

  .official-sign-table td {
    height: 78px;
  }

  .official-matrix-table th,
  .official-matrix-table td,
  .official-grade-table th,
  .official-grade-table td {
    font-size: 8px;
  }
}
