/* Global Styles & Reset */
:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --border-color: #000000;
  --bg-banner: #b0bec5;
  --bg-header: #cfd8dc;
  --bg-sub: #eceff1;
  --bg-skor: #dbeafe;
  --primary-blue: #1d4ed8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #f1f5f9;
  color: #000000;
  line-height: 1.4;
  padding: 0 0 40px 0;
}

/* Sticky Header Container (Locks on scroll down) */
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(241, 245, 249, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* Top App Bar (Hidden in Print) */
.top-nav-bar {
  max-width: 1060px;
  margin: 0 auto 10px;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-csv {
  background: #059669;
  color: #ffffff;
}

.btn-csv:hover {
  background: #047857;
}

.btn-gas {
  background: #0d9488;
  color: #ffffff;
}

.btn-gas:hover {
  background: #0f766e;
}

.btn-settings {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
}

.btn-settings:hover {
  background: #e2e8f0;
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 16px 20px;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  color: #334155;
  font-size: 0.9rem;
}

.modal-desc {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}

.modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 8px;
}

.modal-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.modal-help {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Nav Tab Strip (Centered buttons from Utama to 4.6.1) */
.nav-tab-strip {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.tab-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Date Picker Component with Malay Display */
.date-input-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 550px;
}

.date-input-container.inline-date {
  max-width: 200px;
}

.date-picker-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.date-picker-icon {
  position: absolute;
  right: 8px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.7;
}

/* Paper Page Container */
.page-container {
  max-width: 1060px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.official-paper {
  background: #ffffff;
  border: 1px solid #94a3b8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 36px 36px 48px;
  border-radius: 4px;
  min-height: 1100px;
}

/* Page 1: Main Title Box */
.skpm-main-title-box {
  background: #b0bec5;
  border: 1px solid #000000;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 8px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

/* Metadata Form Lines */
.skpm-meta-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.meta-row {
  display: flex;
  align-items: center;
}

.meta-label {
  width: 150px;
  font-weight: 700;
  color: #000000;
}

.meta-colon {
  width: 20px;
  font-weight: 700;
  color: #000000;
}

.meta-value {
  flex: 1;
  display: flex;
  align-items: center;
}

.input-line {
  width: 100%;
  max-width: 550px;
  border: none;
  border-bottom: 1px solid #000000;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 4px 6px;
  background: transparent;
  outline: none;
  color: #000000;
  height: 32px;
  line-height: 1.4;
  box-sizing: border-box;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.input-line {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  background-color: transparent;
}

select.input-line option {
  background-color: #ffffff;
  color: #000000;
  font-weight: normal;
}

.input-line::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.input-line:focus {
  border-bottom: 2px solid #2563eb;
  background: #f8fafc;
}

.input-line-short {
  width: 170px;
  border: none;
  border-bottom: 1px dotted #000000;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 3px 4px;
  background: transparent;
  outline: none;
  color: #000000;
  box-sizing: border-box;
  text-align: center; /* Nombor/teks tarikh center */
}

/* Summary Table Page 1 */
.skpm-summary-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.skpm-summary-table th {
  background: #cfd8dc;
  border: 1px solid #000000;
  padding: 8px 10px;
  font-weight: 700;
  text-align: center;
}

.skpm-summary-table td {
  border: 1px solid #000000;
  padding: 8px 10px;
  vertical-align: middle;
}

.col-score-val {
  background: #ffcdd2;
  color: #000000;
}

.summary-taraf-col {
  background: #cfd8dc;
  width: 110px;
  padding: 10px 4px;
}

.taraf-vert-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 auto;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: #000000;
}

.row-grand-total {
  background: #eceff1;
}

/* Signatures */
.skpm-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 30px;
  font-size: 0.9rem;
}

.sig-column {
  display: flex;
  flex-direction: column;
}

.sig-heading {
  font-weight: 600;
  margin-bottom: 20px;
}

.sig-space {
  height: 40px;
}

.sig-line {
  width: 100%;
  border-bottom: 1px solid #000000;
  margin-bottom: 6px;
}

.sig-name-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 0;
  color: #000000;
  outline: none;
  width: 100%;
}

.sig-name-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 0;
  color: #000000;
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 18px;
}

.sig-name-select option {
  font-weight: normal;
  text-transform: none;
  background: #ffffff;
}

.sig-role-text {
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: #000000;
}

.sig-date-line {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  width: 100%;
}

/* ==================================================== */
/* EXACT ASPEC 4.1 RUBRIC & HEADER TABLE STYLES (PDF MATCH) */
/* ==================================================== */

.skpm-header-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  margin-bottom: 8px;
}

.skpm-header-table th, 
.skpm-header-table td {
  border: 1px solid #000000;
  padding: 5px 8px;
}

.row-standard-statement th {
  background: #90a4ae;
  font-size: 0.95rem;
  font-weight: 800;
}

.row-standard-desc td {
  background: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.row-aspect-title th {
  background: #90a4ae;
  font-size: 0.95rem;
  font-weight: 800;
}

.row-tums-code th {
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.row-header-label th {
  background: #ffe082;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.row-header-content td {
  background: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Main Rubric Table */
.skpm-rubric-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.skpm-rubric-table th,
.skpm-rubric-table td {
  border: 1px solid #000000;
  padding: 6px 8px;
  vertical-align: top;
}

.row-table-headers th {
  background: #ffe082;
  font-weight: 800;
  font-size: 0.85rem;
}

.row-sub-headers th {
  background: #ffe082;
  font-weight: 800;
  font-size: 0.85rem;
}

.row-item-body td {
  background: #ffffff;
  line-height: 1.35;
}

.col-item-title {
  font-weight: 500;
}

.col-rubric {
  font-size: 0.76rem;
}

/* SKOR SEKOLAH Row (The selector row) */
.row-skor-sekolah td {
  background: #cfd8dc;
  vertical-align: middle;
  padding: 4px 6px;
}

.col-skor-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000000;
}

/* Square Interactive Checkbox UI matching PDF [ ] */
.skpm-checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  -webkit-tap-highlight-color: transparent;
}

.skpm-radio {
  display: none;
}

.skpm-box-ui {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.8px solid #000000;
  background: #ffffff;
  position: relative;
  transition: all 0.15s ease;
  border-radius: 1px;
}

.skpm-checkbox-label:hover .skpm-box-ui {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.skpm-radio:checked + .skpm-box-ui {
  background: #2563eb;
  border-color: #1d4ed8;
}

.skpm-radio:checked + .skpm-box-ui::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

/* Summary Rows in Rubric Table */
.row-summary-freq td {
  background: #eceff1;
  font-size: 0.82rem;
}

.row-summary-score td {
  background: #eceff1;
  font-size: 0.82rem;
}

.row-summary-total td {
  background: #cfd8dc;
  font-size: 0.88rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Aspect Score Calculation Strip */
.aspect-stats-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 12px 18px;
  border-radius: 4px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stat-lbl {
  color: #475569;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.font-sm { font-size: 0.8rem; }
.font-md { font-size: 0.95rem; }
.font-lg { font-size: 1.1rem; }
.font-mono { font-family: var(--font-mono); }
.text-primary { color: #1d4ed8; }

/* ==================================================== */
/* SCREEN RESPONSIVENESS & MOBILE-FRIENDLY OPTIMIZATIONS */
/* ==================================================== */
@media screen and (max-width: 768px) {
  body {
    padding: 0;
  }

  .sticky-nav-wrapper {
    padding: 6px 12px 8px;
  }

  .top-nav-bar {
    padding: 8px 12px;
    margin: 0 auto 8px;
    gap: 12px;
  }

  .brand-title {
    font-size: 0.86rem;
    font-weight: 800;
  }

  .nav-actions {
    gap: 8px;
    margin-left: auto;
  }

  .btn-text {
    display: none;
  }

  .control-btn {
    padding: 7px 12px;
    min-width: 40px;
    min-height: 38px;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .control-btn .btn-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
  }

  .nav-tab-strip {
    justify-content: flex-start;
    padding: 4px 2px;
    gap: 4px;
    scrollbar-width: thin;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
    min-height: 34px;
  }

  .page-container {
    padding: 8px 8px 30px 8px;
  }

  .official-paper {
    padding: 16px 12px;
    min-height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .skpm-main-title-box {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 14px;
    line-height: 1.35;
  }

  .skpm-meta-section {
    gap: 8px;
    margin-bottom: 18px;
  }

  .meta-row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .meta-label {
    width: 120px;
    font-size: 0.84rem;
  }

  .meta-colon {
    display: inline-block;
  }

  .meta-value {
    flex: 1;
    min-width: 180px;
  }

  .input-line {
    font-size: 0.86rem;
    min-height: 34px;
  }

  .skpm-summary-table {
    min-width: 520px;
    font-size: 0.82rem;
  }

  .skpm-header-table {
    min-width: 520px;
    font-size: 0.82rem;
  }

  .skpm-rubric-table {
    min-width: 560px;
    font-size: 0.82rem;
  }

  .col-rubric {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .skpm-signatures-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .sig-column {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
  }

  .sig-heading {
    margin-bottom: 12px;
  }

  .sig-space {
    height: 24px;
  }

  .aspect-stats-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }
}

@media screen and (max-width: 480px) {
  .top-nav-bar {
    padding: 7px 10px;
  }

  .brand-title {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .control-btn {
    padding: 6px 10px;
    min-width: 36px;
    min-height: 36px;
  }

  .control-btn .btn-icon {
    font-size: 1.05rem;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .meta-colon {
    display: none;
  }

  .meta-label {
    width: 100%;
    font-weight: 700;
  }

  .meta-value {
    width: 100%;
  }

  .input-line-short {
    width: 150px;
    font-size: 0.82rem;
  }
}

/* Print Optimizations (Guaranteed Exactly 1 Section per 1 A4 Page) */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 8mm 6mm 8mm;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 8pt;
    width: 100%;
  }
  
  .top-nav-bar,
  .sticky-nav-wrapper,
  .nav-tab-strip,
  .aspect-stats-strip,
  .date-picker-icon,
  .date-picker-input {
    display: none !important;
  }
  
  .page-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .tab-pane {
    display: block !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .official-paper {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: 284mm !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  /* Standard Header Table (4.1.1, 4.2.1, 4.2.2, 4.4.2) */
  .skpm-header-table {
    width: 100% !important;
    margin-bottom: 4px !important;
  }

  .skpm-header-table th,
  .skpm-header-table td {
    padding: 2.5px 5px !important;
    font-size: 7.4pt !important;
    line-height: 1.25 !important;
  }

  .row-standard-statement th {
    font-size: 8pt !important;
    padding: 2.5px 5px !important;
  }

  .row-aspect-title th {
    font-size: 8pt !important;
    padding: 2.5px 5px !important;
  }

  .row-tums-code th {
    font-size: 8.5pt !important;
    padding: 2px 5px !important;
  }

  .row-header-label th {
    font-size: 7.4pt !important;
    padding: 2px 5px !important;
  }

  /* Standard Rubric Table (4.1.1, 4.2.1, 4.2.2, 4.4.2) */
  .skpm-rubric-table {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .skpm-rubric-table th {
    padding: 2.5px 4px !important;
    font-size: 7.4pt !important;
    line-height: 1.22 !important;
  }

  .skpm-rubric-table td {
    padding: 2.5px 4px !important;
    font-size: 7.2pt !important;
    line-height: 1.2 !important;
  }

  .col-item-title {
    font-size: 7.2pt !important;
  }

  .col-rubric {
    font-size: 6.9pt !important;
  }

  .skpm-rubric-table .row-skor-sekolah td {
    padding: 1.5px 4px !important;
  }

  .skpm-box-ui {
    width: 12px !important;
    height: 12px !important;
    border-width: 1.2px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skpm-radio:checked + .skpm-box-ui::after {
    font-size: 10px !important;
  }

  .row-summary-freq td,
  .row-summary-score td,
  .row-summary-total td {
    font-size: 7.4pt !important;
    padding: 2.5px 4px !important;
  }

  /* Summary Table on Page 1 (Utama) */
  .skpm-summary-table {
    margin-bottom: 16px !important;
  }

  .skpm-summary-table th,
  .skpm-summary-table td {
    padding: 4px 6px !important;
    font-size: 7.8pt !important;
  }

  .skpm-main-title-box {
    padding: 4px !important;
    margin-bottom: 12px !important;
    font-size: 9pt !important;
  }

  .skpm-meta-section {
    gap: 3px !important;
    margin-bottom: 14px !important;
    font-size: 8pt !important;
  }

  .input-line {
    height: 24px !important;
    font-size: 8pt !important;
    padding: 1px 4px !important;
  }

  .skpm-signatures-grid {
    margin-top: 16px !important;
    gap: 40px !important;
  }

  .sig-heading {
    margin-bottom: 14px !important;
    font-size: 8pt !important;
  }

  .sig-space {
    height: 22px !important;
  }

  .sig-name-input,
  .sig-name-select {
    font-size: 8pt !important;
    padding: 1px 0 !important;
  }

  .sig-role-text {
    font-size: 7.2pt !important;
    margin-bottom: 6px !important;
  }

  .sig-date-line {
    font-size: 7.5pt !important;
  }

  .input-line-short {
    font-size: 7.5pt !important;
  }

  /* ======================================================= */
  /* 5-ITEM SECTIONS: 4.3.1 & 4.5.1 (EXACT 1 PAGE EACH)     */
  /* ======================================================= */
  #tab-tums-431 .skpm-header-table,
  #tab-tums-451 .skpm-header-table {
    margin-bottom: 3px !important;
  }

  #tab-tums-431 .skpm-header-table th,
  #tab-tums-431 .skpm-header-table td,
  #tab-tums-451 .skpm-header-table th,
  #tab-tums-451 .skpm-header-table td {
    padding: 2px 4px !important;
    font-size: 7pt !important;
    line-height: 1.2 !important;
  }

  #tab-tums-431 .skpm-rubric-table th,
  #tab-tums-451 .skpm-rubric-table th {
    padding: 2px 3.5px !important;
    font-size: 7pt !important;
  }

  #tab-tums-431 .skpm-rubric-table td,
  #tab-tums-451 .skpm-rubric-table td {
    padding: 1.8px 3.5px !important;
    font-size: 6.6pt !important;
    line-height: 1.18 !important;
  }

  #tab-tums-431 .col-item-title,
  #tab-tums-451 .col-item-title {
    font-size: 6.6pt !important;
  }

  #tab-tums-431 .col-rubric,
  #tab-tums-451 .col-rubric {
    font-size: 6.3pt !important;
  }

  #tab-tums-431 .skpm-rubric-table .row-skor-sekolah td,
  #tab-tums-451 .skpm-rubric-table .row-skor-sekolah td {
    padding: 1px 3px !important;
  }

  /* ======================================================= */
  /* 7-ITEM SECTIONS: 4.4.1 & 4.6.1 (EXACT 1 PAGE EACH)     */
  /* ======================================================= */
  #tab-tums-441 .skpm-header-table,
  #tab-tums-461 .skpm-header-table {
    margin-bottom: 2px !important;
  }

  #tab-tums-441 .skpm-header-table th,
  #tab-tums-441 .skpm-header-table td,
  #tab-tums-461 .skpm-header-table th,
  #tab-tums-461 .skpm-header-table td {
    padding: 1.2px 4px !important;
    font-size: 6.2pt !important;
    line-height: 1.15 !important;
  }

  #tab-tums-441 .row-standard-statement th,
  #tab-tums-461 .row-standard-statement th,
  #tab-tums-441 .row-aspect-title th,
  #tab-tums-461 .row-aspect-title th {
    font-size: 6.8pt !important;
    padding: 1.5px 4px !important;
  }

  #tab-tums-441 .row-tums-code th,
  #tab-tums-461 .row-tums-code th {
    font-size: 7pt !important;
    padding: 1px 4px !important;
  }

  #tab-tums-441 .row-header-label th,
  #tab-tums-461 .row-header-label th {
    font-size: 6.2pt !important;
    padding: 1px 4px !important;
  }

  #tab-tums-441 .skpm-rubric-table th,
  #tab-tums-461 .skpm-rubric-table th {
    padding: 1.5px 3px !important;
    font-size: 6.2pt !important;
    line-height: 1.15 !important;
  }

  #tab-tums-441 .skpm-rubric-table td,
  #tab-tums-461 .skpm-rubric-table td {
    padding: 1px 3px !important;
    font-size: 5.8pt !important;
    line-height: 1.12 !important;
  }

  #tab-tums-441 .col-item-title,
  #tab-tums-461 .col-item-title {
    font-size: 5.8pt !important;
  }

  #tab-tums-441 .col-rubric,
  #tab-tums-461 .col-rubric {
    font-size: 5.6pt !important;
  }

  #tab-tums-441 .skpm-rubric-table .row-skor-sekolah td,
  #tab-tums-461 .skpm-rubric-table .row-skor-sekolah td {
    padding: 0.5px 2px !important;
  }

  #tab-tums-441 .col-skor-label,
  #tab-tums-461 .col-skor-label {
    font-size: 5.8pt !important;
  }

  #tab-tums-441 .skpm-box-ui,
  #tab-tums-461 .skpm-box-ui {
    width: 10px !important;
    height: 10px !important;
    border-width: 1px !important;
  }

  #tab-tums-441 .skpm-radio:checked + .skpm-box-ui::after,
  #tab-tums-461 .skpm-radio:checked + .skpm-box-ui::after {
    font-size: 8px !important;
  }

  #tab-tums-441 .row-summary-freq td,
  #tab-tums-441 .row-summary-score td,
  #tab-tums-441 .row-summary-total td,
  #tab-tums-461 .row-summary-freq td,
  #tab-tums-461 .row-summary-score td,
  #tab-tums-461 .row-summary-total td {
    font-size: 6.2pt !important;
    padding: 1.5px 3px !important;
  }

  .col-score-val,
  .row-standard-statement th,
  .row-aspect-title th,
  .row-header-label th,
  .row-table-headers th,
  .row-sub-headers th,
  .row-skor-sekolah td,
  .summary-taraf-col,
  .skpm-main-title-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
