:root {
  --pontech-primary: #336dff;
  --pontech-text: #262626;
  --pontech-muted: #8a8a8a;
  --pontech-border: #808080;
  --pontech-border-strong: #333333;
}

body {
  background: #ffffff;
  color: var(--pontech-text);
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.required-star {
  color: #dc3545;
}

.page {
  max-width: 1440px;
  padding: 28px 41px 90px;
  margin: 0 auto;
}

.page-title {
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.175;
  color: #191919;
}

.page-subtitle {
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.18125;
  color: var(--pontech-muted);
}

.section-label {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.18125;
  color: #000000;
}

.dropzone {
  margin-top: 20px;
  width: 100%;
  min-height: 206px;
  border-radius: 8px;
  border: 1px dashed var(--pontech-border-strong);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.dropzone-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.dropzone.is-dragging {
  outline: 2px solid rgba(51, 109, 255, 0.35);
  outline-offset: 2px;
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #000000;
}

.dropzone-hint {
  font-size: 12px;
  line-height: 1.171875;
  color: var(--pontech-text);
}

.dropzone-file {
  font-size: 12px;
  line-height: 1.171875;
  color: #4c4c4c;
}

.btn-choose {
  width: 280px;
  border-radius: 4px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pontech-primary);
  border-color: var(--pontech-primary);
}

.checks-header {
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checks-header .section-label {
  margin-top: 0;
}

.select-all {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.171875;
  color: var(--pontech-text);
  text-decoration: none;
}

.select-all:hover {
  text-decoration: underline;
}

.checks {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-card {
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  padding: 14px 16px;
  background: #ffffff;
}

.check-card.is-checked {
  border-color: rgba(51, 109, 255, 0.55);
}

.check-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.check-title .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 0;
  border-radius: 2px;
}

.check-title .form-check-input:checked {
  background-color: var(--pontech-primary);
  border-color: var(--pontech-primary);
}

.check-title .form-check-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.171875;
  color: var(--pontech-text);
}

.check-fields {
  margin-top: 12px;
}

.field-label {
  font-size: 12px;
  line-height: 1.171875;
  color: var(--pontech-text);
  margin-bottom: 8px;
}

.field-sub {
  font-size: 12px;
  line-height: 1.171875;
  color: #4c4c4c;
  margin-bottom: 6px;
}

.actions {
  margin-top: 36px;
  display: flex;
  justify-content: flex-end;
}

.btn-export {
  width: 280px;
  border-radius: 4px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pontech-primary);
  border-color: var(--pontech-primary);
}

.multiselect-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
  background-image: none;
}

.multiselect-toggle::after {
  display: none;
}

.multiselect-text {
  flex: 1;
  text-align: left;
  font-size: 12px;
  line-height: 1.171875;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multiselect-toggle.is-has-value .multiselect-text {
  color: var(--pontech-text);
}

.multiselect-menu {
  max-height: 240px;
  overflow: auto;
}

.multiselect-options .dropdown-item {
  padding: 6px 8px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.result-area {
  margin-top: 28px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 16px;
}

.result-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.171875;
  margin-bottom: 10px;
}

.result-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(51, 109, 255, 0.35);
  background: rgba(51, 109, 255, 0.08);
  color: var(--pontech-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.171875;
}

.result-link:hover {
  background: rgba(51, 109, 255, 0.12);
}

.result-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.report-output {
  margin-top: 20px;
}

.report {
  width: 100%;
  max-width: 794px;
  margin: 0 auto;
  background: #ffffff;
  padding: 22px 26px 28px;
  border: 1px solid #d9d9d9;
}

.report-title {
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  color: #000000;
  letter-spacing: 0.4px;
}

.report-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.report-meta-label {
  font-size: 12px;
  line-height: 1.2;
  color: #4c4c4c;
}

.report-meta-value {
  margin-top: 2px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  color: #000000;
}

.report-divider {
  margin-top: 14px;
  height: 1px;
  background: #000000;
}

.report-legend {
  margin-top: 18px;
  border: 1px solid #0d6efd;
}

.report-legend-head {
  background: #e7f1ff;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  color: #000000;
}

.report-legend-body {
  padding: 10px;
}

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

.report-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #000000;
  white-space: nowrap;
}

.report-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}


.report-table-wrap {
  margin-top: 18px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.25;
}

.report-table thead th {
  background: #d9d9d9;
}

.report-table-caption {
  text-align: left;
  font-weight: 600;
}

.report-cell-center {
  text-align: center;
}

.report-table th,
.report-table td {
  border: 1px solid #333333;
  padding: 8px 10px;
  vertical-align: top;
}

.report-table th {
  background: #f2f2f2;
  font-weight: 600;
  text-align: center;
}

.report-group-row td {
  background: #ffffff;
  font-weight: 600;
}

.report-danger {
  color: #dc3545;
  font-weight: 600;
}


@media print {
  .report,
  .report * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-sizing: border-box;
  }

  html,
  body {
    width: 210mm;
  }

  body {
    background: #ffffff;
  }

  .page,
  #loadingOverlay {
    display: none !important;
  }

  .report {
    border: none;
    padding: 0;
    width: 186mm;
    max-width: 186mm;
    margin: 0 auto;
  }

  .report-legend {
    border: 1pt solid #0d6efd;
  }

  .report-table th,
  .report-table td {
    border: 1pt solid #333333;
  }

  .report-table tr {
    break-inside: avoid;
  }
}
