:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --accent: #f97316;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --border: #dbe3ee;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --shadow: 0 16px 44px rgba(15, 23, 42, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.hidden { display: none !important; }

/* Login */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, .22), transparent 32%),
    linear-gradient(135deg, #0f766e 0%, #155e75 52%, #172554 100%);
}
.login-hero {
  padding: 60px clamp(28px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.brand-line { display: flex; align-items: center; gap: 15px; margin-bottom: 38px; }
.brand-line img { width: 70px; height: 70px; object-fit: contain; background: white; border-radius: 18px; padding: 5px; }
.brand-line strong { display: block; font-size: 21px; }
.brand-line span { display: block; margin-top: 5px; color: rgba(255,255,255,.78); font-size: 14px; }
.login-hero h1 { margin: 0; max-width: 760px; font-size: clamp(39px, 5vw, 67px); line-height: 1.05; letter-spacing: -1.8px; }
.login-hero p { max-width: 660px; margin: 23px 0 0; color: rgba(255,255,255,.82); line-height: 1.75; font-size: 17px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-points span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.11); border-radius: 999px; font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 28px; background: rgba(248,250,252,.97); }
.login-card { width: min(100%, 460px); padding: 36px; background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0; font-size: 28px; }
.login-card > p { color: var(--muted); line-height: 1.55; }

/* Common controls */
.field { display: block; margin-bottom: 16px; }
.field > span, .field > label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 13px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  color: var(--text);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.11); }
.input-help { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.icon-btn { border: 0; background: transparent; padding: 7px; color: var(--muted); }
.password-wrap .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecdca; }
.btn-warning { background: var(--warning-soft); color: var(--warning); border-color: #fedf89; }
.btn-success { background: var(--success-soft); color: var(--success); border-color: #abefc6; }
.btn-sm { min-height: 34px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

.alert { padding: 12px 14px; border-radius: 11px; margin: 12px 0; font-size: 13px; line-height: 1.5; border: 1px solid; }
.alert-error { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }
.alert-success { color: var(--success); background: var(--success-soft); border-color: #abefc6; }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: #fedf89; }
.alert-info { color: var(--info); background: var(--info-soft); border-color: #b2ddff; }

/* Shell */
.app-shell { min-height: 100vh; }
.topbar {
  height: 70px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 11px; }
.topbar-brand strong, .topbar-brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-brand small { margin-top: 3px; color: var(--muted); }
.user-area { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; font-size: 12px; }
.user-chip strong, .user-chip small { display: block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { margin-top: 2px; color: var(--muted); }
.role-select { width: auto; min-width: 150px; min-height: 38px; padding: 7px 10px; }

.shell-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { padding: 18px 13px; background: #0f172a; color: white; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.sidebar-section { margin: 9px 9px 8px; color: #94a3b8; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; }
.nav-button { width: 100%; min-height: 44px; margin-bottom: 5px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: #cbd5e1; }
.nav-button:hover { background: rgba(255,255,255,.08); color: white; }
.nav-button.active { background: var(--primary); color: white; }
.nav-icon { width: 24px; text-align: center; font-size: 18px; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 36px) 55px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); }
.page-header p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

/* Cards and dashboard */
.hero-card { padding: 25px; border-radius: 20px; color: white; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.2), transparent 30%), linear-gradient(120deg, #0f766e, #155e75); box-shadow: 0 15px 34px rgba(15,118,110,.2); }
.hero-card h2 { margin: 0; font-size: 29px; }
.hero-card p { max-width: 800px; margin: 10px 0 0; color: rgba(255,255,255,.82); line-height: 1.55; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.meta-pill { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: 0 7px 20px rgba(15,23,42,.04); }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 7px; font-size: 28px; }
.card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(15,23,42,.045); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.form-grid .span-2 { grid-column: span 2; }
.section-title { margin: 27px 0 12px; font-size: 19px; }
.empty { padding: 34px; border: 1px dashed #b8c4d4; border-radius: 15px; text-align: center; color: var(--muted); background: rgba(255,255,255,.65); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 13px; }
th { background: #f8fafc; color: #475569; text-transform: uppercase; letter-spacing: .35px; font-size: 11px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 170px; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-weight: 750; font-size: 11px; white-space: nowrap; }
.status-green { color: var(--success); background: var(--success-soft); }
.status-orange { color: var(--warning); background: var(--warning-soft); }
.status-red { color: var(--danger); background: var(--danger-soft); }
.status-blue { color: var(--info); background: var(--info-soft); }
.status-gray { color: #475467; background: #f2f4f7; }

/* Observation */
.observation-row { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: white; margin-bottom: 10px; }
.observation-row h4 { margin: 0 0 6px; }
.observation-row .indicator-meta { color: var(--muted); font-size: 12px; }
.observation-controls { display: grid; grid-template-columns: 150px 120px minmax(240px, 1fr); gap: 10px; margin-top: 12px; }
.criteria-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 12px; line-height: 1.5; }
.score-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.score-chip { min-width: 120px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.score-chip small { display: block; color: var(--muted); }
.score-chip strong { display: block; margin-top: 4px; font-size: 21px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.58); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: white; border-radius: 18px; box-shadow: var(--shadow); }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 20px; }
.modal-foot { padding: 15px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }

/* Loading / toast */
.center-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 13px; padding: 24px; text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid #dbeafe; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(248,250,252,.76); backdrop-filter: blur(3px); }
.busy-card { min-width: 210px; padding: 20px; display: flex; gap: 12px; align-items: center; justify-content: center; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: min(400px, calc(100% - 44px)); padding: 13px 16px; border-radius: 11px; color: white; background: #1e293b; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }

/* Report */
.report-screen { background: #e5e7eb; min-height: 100vh; padding: 18px; }
.report-toolbar { width: min(210mm, 100%); margin: 0 auto 12px; display: flex; justify-content: space-between; gap: 10px; }
.report-paper { position: relative; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 14mm 15mm 18mm; background: white; color: #111827; box-shadow: 0 12px 35px rgba(0,0,0,.16); font-family: "Times New Roman", Times, serif; }
.report-watermark { position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); z-index: 0; font: 800 72pt Arial, sans-serif; color: rgba(180,35,24,.09); pointer-events: none; }
.letterhead { position: relative; z-index: 1; display: grid; grid-template-columns: 28mm 1fr 28mm; align-items: center; gap: 4mm; padding-bottom: 3mm; border-bottom: 3px double #111; }
.letterhead img { width: 25mm; height: 25mm; object-fit: contain; justify-self: center; }
.letterhead-text { text-align: center; }
.letterhead-text h1, .letterhead-text h2, .letterhead-text h3, .letterhead-text p { margin: 0; }
.letterhead-text h1 { font-size: 13pt; }
.letterhead-text h2 { font-size: 15pt; }
.letterhead-text h3 { font-size: 16pt; }
.letterhead-text .accreditation { margin-top: 1mm; font-weight: 700; font-size: 11pt; }
.letterhead-text p { margin-top: 1.5mm; font-size: 9pt; }
.report-title { position: relative; z-index: 1; text-align: center; margin: 7mm 0 5mm; }
.report-title h1 { margin: 0; font-size: 14pt; text-decoration: underline; }
.report-title p { margin: 2mm 0 0; font-size: 11pt; }
.report-section { position: relative; z-index: 1; margin-top: 5mm; }
.report-section h2 { margin: 0 0 2.5mm; padding: 1.5mm 2mm; background: #e5e7eb; border: 1px solid #111; font-size: 11pt; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 1.8mm 2mm; border: 1px solid #111; font-size: 9.5pt; line-height: 1.3; }
.report-table th { background: #f3f4f6; color: #111; text-transform: none; font-size: 9.5pt; letter-spacing: 0; }
.report-kv td:first-child { width: 34%; font-weight: 700; }
.report-text { padding: 2mm; border: 1px solid #111; white-space: pre-wrap; font-size: 10pt; line-height: 1.4; }
.signature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10mm 18mm; margin-top: 8mm; text-align: center; font-size: 10pt; }
.signature-box { min-height: 42mm; display: flex; flex-direction: column; justify-content: space-between; }
.signature-space { min-height: 22mm; }
.signature-name { font-weight: 700; text-decoration: underline; }
.report-footer { position: relative; z-index: 1; margin-top: 7mm; text-align: right; font-size: 8.5pt; color: #4b5563; }
.page-break { break-before: page; page-break-before: always; }
.avoid-break { break-inside: avoid; page-break-inside: avoid; }

@page { size: A4 portrait; margin: 0; }
@media print {
  body { background: white; }
  .no-print, .report-toolbar, .toast, .busy-overlay { display: none !important; }
  .report-screen { padding: 0; background: white; }
  .report-paper { width: 210mm; min-height: 297mm; margin: 0; box-shadow: none; }
  .report-watermark { position: fixed; }
  a { color: #111; text-decoration: none; }
}

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell-body { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding: 16px 9px; }
  .sidebar-section, .nav-label { display: none; }
  .nav-button { justify-content: center; padding: 8px; }
}
@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-hero { padding: 40px 24px 30px; }
  .login-hero h1 { font-size: 36px; }
  .login-panel { padding: 22px 16px 42px; }
  .topbar { padding: 9px 12px; }
  .topbar-brand small, .user-chip div:not(.avatar), .role-select { display: none; }
  .shell-body { display: block; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; height: 66px; display: flex; padding: 7px; overflow-x: auto; background: #0f172a; }
  .sidebar-section { display: none; }
  .nav-button { min-width: 60px; height: 52px; margin: 0 2px; }
  .main { padding: 20px 12px 85px; }
  .page-header { display: block; }
  .page-header .button-row { margin-top: 12px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .observation-controls { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .report-paper { width: 100%; min-height: auto; padding: 10mm 8mm; }
  .letterhead { grid-template-columns: 20mm 1fr 20mm; gap: 2mm; }
  .letterhead img { width: 18mm; height: 18mm; }
  .letterhead-text h1 { font-size: 9pt; }
  .letterhead-text h2 { font-size: 10pt; }
  .letterhead-text h3 { font-size: 11pt; }
  .letterhead-text p { font-size: 7pt; }
  .signature-grid { grid-template-columns: 1fr; }
}


/* v3.2.1 — Ringkasan persiapan pada akun Supervisor */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.detail-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
  min-width: 0;
}
.detail-item.span-2 {
  grid-column: span 2;
}
.detail-item > span,
.attachment-card > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.detail-item strong,
.detail-item div {
  overflow-wrap: anywhere;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.attachment-card {
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: #f0fdfa;
  padding: 14px;
}
.text-muted {
  color: var(--muted);
}
@media (max-width: 820px) {
  .detail-grid,
  .attachment-grid {
    grid-template-columns: 1fr;
  }
  .detail-item.span-2 {
    grid-column: auto;
  }
}


/* v3.3.0 — Metode supervisi langsung, video, dan hybrid */
.method-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.method-direct { background: #dcfce7; color: #166534; }
.method-video { background: #dbeafe; color: #1d4ed8; }
.method-hybrid { background: #ffedd5; color: #c2410c; }
.form-section {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 18px;
}
.section-label, .eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  line-height: 1.45;
}
.checkbox-field input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}
.video-evidence-card {
  margin-top: 18px;
  border: 1px solid #93c5fd;
  border-radius: 16px;
  background: #eff6ff;
  padding: 16px;
}
.video-evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.video-evidence-head h3 { margin: 5px 0 0; }
@media (max-width: 680px) {
  .video-evidence-head { flex-direction: column; }
}


/* v3.3.1 — Susunan pengesahan dua tingkat */
.signature-grid-approval {
  row-gap: 12mm;
  column-gap: 20mm;
  align-items: start;
}
.signature-heading {
  min-height: 11mm;
  line-height: 1.35;
}
.signature-approval {
  margin-bottom: 1mm;
}
.signature-role {
  font-weight: 500;
}
@media print {
  .signature-grid-approval {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 11mm;
    column-gap: 18mm;
  }
}


/* v3.4.5 - Tata letak cetak laporan yang lebih ringkas dan rapi */
.report-paper {
  padding: 11mm 13mm 16mm;
  font-size: 9.4pt;
  line-height: 1.3;
}
.letterhead {
  grid-template-columns: 23mm minmax(0, 1fr) 23mm;
  gap: 3mm;
  padding-bottom: 2.2mm;
  border-bottom: 3px double #111;
}
.letterhead img {
  width: 20mm;
  height: 20mm;
}
.letterhead-text h1 { font-size: 10.5pt; line-height: 1.12; }
.letterhead-text h2 { font-size: 12pt; line-height: 1.12; }
.letterhead-text h3 { font-size: 13.5pt; line-height: 1.12; text-transform: uppercase; }
.letterhead-text .accreditation { margin-top: .7mm; font-size: 9.5pt; }
.letterhead-text p { margin-top: 1mm; font-size: 7.5pt; line-height: 1.2; }
.report-title { margin: 4.5mm 0 3.5mm; }
.report-title h1 { font-size: 13.5pt; letter-spacing: .02em; }
.report-title p { margin-top: 1.2mm; font-size: 9.5pt; }
.report-section { margin-top: 3.2mm; }
.report-section h2 {
  margin-bottom: 1.5mm;
  padding: 1.2mm 2mm;
  background: #edf1f4;
  border: 1px solid #4b5563;
  font-size: 10pt;
  line-height: 1.2;
}
.report-table {
  table-layout: fixed;
  border-collapse: collapse;
}
.report-table th,
.report-table td {
  padding: 1.25mm 1.6mm;
  border: .75px solid #4b5563;
  font-size: 8.6pt;
  line-height: 1.28;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: pre-wrap;
}
.report-table th {
  background: #f6f7f8;
  font-weight: 700;
  text-align: left;
}
.report-table thead { display: table-header-group; }
.report-table tfoot { display: table-footer-group; }
.report-table tr { break-inside: avoid; page-break-inside: avoid; }
.report-center { text-align: center !important; vertical-align: middle !important; }
.report-status {
  display: inline-block;
  padding: .5mm 1.5mm;
  border: .75px solid #6b7280;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 7.8pt;
  font-weight: 700;
  white-space: nowrap;
}
.report-identity col.label,
.report-preparation col.label { width: 19%; }
.report-identity col.value,
.report-preparation col.value { width: 31%; }
.report-identity th,
.report-preparation th { vertical-align: middle; }
.report-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5mm;
}
.report-link-chip {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: .3mm;
  padding: 1.2mm 1.5mm;
  border: .75px solid #64748b;
  border-radius: 2mm;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  line-height: 1.15;
}
.report-link-chip span { font-weight: 700; font-size: 8pt; }
.report-link-chip small { color: #475569; font-size: 6.8pt; overflow-wrap: anywhere; }
.report-link-chip.is-empty { border-style: dashed; color: #6b7280; }
.report-observation col.c-no { width: 5%; }
.report-observation col.c-aspect { width: 15%; }
.report-observation col.c-indicator { width: 49%; }
.report-observation col.c-status { width: 10%; }
.report-observation col.c-score { width: 6%; }
.report-observation col.c-notes { width: 15%; }
.report-observation th,
.report-observation td { font-size: 7.9pt; padding: 1.15mm 1.3mm; }
.report-observation .report-num,
.report-observation .report-score { text-align: center; vertical-align: middle; }
.report-observation .report-aspect { font-weight: 700; }
.report-observation tr.aspect-start td { border-top-width: 1.4px; }
.report-score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5mm;
  margin-bottom: 1.8mm;
}
.report-score-strip > div {
  border: .75px solid #64748b;
  background: #f8fafc;
  padding: 1.5mm;
  text-align: center;
}
.report-score-strip span { display: block; font-size: 7.2pt; color: #475569; }
.report-score-strip strong { display: block; margin-top: .3mm; font-size: 11pt; }
.report-score-table .report-total th { background: #e9eef2; }
.report-narrative th { width: 29%; vertical-align: top; }
.report-narrative td { min-height: 8mm; }
.report-followup th { width: 31%; }
.report-place-date { margin: 4mm 0 0; text-align: right; font-size: 9.5pt; }
.signature-grid {
  margin-top: 6mm;
  gap: 7mm 18mm;
  font-size: 9.2pt;
}
.signature-grid-approval { row-gap: 8mm; }
.signature-box { min-height: 35mm; }
.signature-heading { min-height: 8mm; }
.signature-space { min-height: 17mm; }
.signature-name { white-space: nowrap; }
.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  margin-top: 5mm;
  padding-top: 1.5mm;
  border-top: .5px solid #9ca3af;
  text-align: center;
  font-size: 7pt;
}
.report-footer span:first-child { text-align: left; }
.report-footer span:last-child { text-align: right; }
.report-footer span { flex: 1; }

@media print {
  .report-paper {
    padding: 10mm 12mm 15mm;
  }
  .report-section,
  .report-table,
  .report-score-strip {
    orphans: 3;
    widows: 3;
  }
  .report-footer {
    position: fixed;
    left: 12mm;
    right: 12mm;
    bottom: 5mm;
    margin: 0;
    background: white;
  }
  .report-approval-section { min-height: 245mm; }
  a.report-link-chip { color: #111827; }
}

@media (max-width: 760px) {
  .report-link-list,
  .report-score-strip { grid-template-columns: 1fr 1fr; }
  .report-identity col.label,
  .report-preparation col.label { width: 24%; }
  .report-identity col.value,
  .report-preparation col.value { width: 26%; }
}
