.teacher-report-print-tab-v190 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.teacher-report-print-v190 {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  color: #1e293b;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.teacher-report-print-v190[hidden] {
  display: none !important;
}

.report-v190-header {
  min-height: 72px;
  padding: 14px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.report-v190-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.report-v190-title p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.report-v190-header-actions,
.report-v190-export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.report-v190-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 11px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition: 0.18s ease;
}

.report-v190-button:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}

.report-v190-button.primary {
  border-color: #059669;
  background: #059669;
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}

.report-v190-button.danger {
  border-color: transparent;
  background: #f1f5f9;
  color: #475569;
}

.report-v190-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(720px, 1fr);
  overflow: hidden;
}

.report-v190-settings {
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid #dbe4ee;
  background: #fff;
}

.report-v190-section {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.report-v190-section h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.report-v190-section-note {
  margin: -6px 0 12px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.55;
}

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

.report-v190-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-v190-field.full {
  grid-column: 1 / -1;
}

.report-v190-field > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.report-v190-field input,
.report-v190-field select,
.report-v190-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  resize: vertical;
}

.report-v190-field input:focus,
.report-v190-field select:focus,
.report-v190-field textarea:focus {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.report-v190-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-v190-chip {
  position: relative;
}

.report-v190-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-v190-chip span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.report-v190-chip input:checked + span {
  border-color: #10b981;
  color: #047857;
  background: #d1fae5;
}

.report-v190-description-list {
  display: grid;
  gap: 9px;
}

.report-v190-description-item {
  padding: 10px;
  border-radius: 11px;
  background: #f8fafc;
}

.report-v190-description-item b {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
}

.report-v190-description-item textarea {
  width: 100%;
  min-height: 66px;
  padding: 8px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  resize: vertical;
}

.report-v190-preview-wrap {
  overflow: auto;
  padding: 28px;
  background: #e9eef4;
}

.report-v190-sheet {
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 12mm 13mm;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
  line-height: 1.35;
}

.report-v190-document-head {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px double #111827;
  text-align: center;
}

.report-v190-document-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.report-v190-document-head h1,
.report-v190-document-head h2,
.report-v190-document-head p {
  margin: 0;
}

.report-v190-document-head h1 {
  font-size: 14pt;
  text-transform: uppercase;
}

.report-v190-document-head h2 {
  margin-top: 3px;
  font-size: 11.5pt;
}

.report-v190-document-head p {
  margin-top: 3px;
  font-size: 8.5pt;
}

.report-v190-document-title {
  margin: 12px 0 9px;
  text-align: center;
}

.report-v190-document-title h3 {
  margin: 0;
  font-size: 12pt;
  text-decoration: underline;
  text-transform: uppercase;
}

.report-v190-document-title p {
  margin: 4px 0 0;
  font-size: 9pt;
}

.report-v190-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 24px;
  margin-bottom: 10px;
  font-size: 9pt;
}

.report-v190-identity-row {
  display: grid;
  grid-template-columns: 92px 8px 1fr;
  gap: 3px;
}

.report-v190-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8.6pt;
}

.report-v190-table th,
.report-v190-table td {
  padding: 5px 6px;
  border: 1px solid #111827;
  vertical-align: top;
}

.report-v190-table th {
  background: #eef6f3;
  text-align: center;
  font-weight: 800;
}

.report-v190-table .number {
  text-align: center;
}

.report-v190-subtitle {
  margin: 12px 0 5px;
  font-size: 9.5pt;
  font-weight: 800;
}

.report-v190-note-box {
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid #111827;
  font-size: 8.7pt;
  white-space: pre-wrap;
}

.report-v190-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
  text-align: center;
  font-size: 8.6pt;
}

.report-v190-signature-space {
  height: 54px;
}

.report-v190-empty {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.report-v190-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.report-v190-status.error {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 1100px) {
  .report-v190-body {
    grid-template-columns: 340px minmax(680px, 1fr);
  }
}

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

  .report-v190-body {
    display: block;
    overflow-y: auto;
  }

  .report-v190-settings {
    overflow: visible;
    border-right: 0;
  }

  .report-v190-preview-wrap {
    overflow: auto;
    padding: 14px;
  }
}

@media print {
  body > *:not(.teacher-report-print-v190) {
    display: none !important;
  }

  .report-v190-header,
  .report-v190-settings {
    display: none !important;
  }

  .teacher-report-print-v190,
  .report-v190-body,
  .report-v190-preview-wrap {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .report-v190-sheet {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}
