@font-face {
  font-family: "Source Sans 3";
  src: url("/public/fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/public/fonts/SourceSans3-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/public/fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  min-height: 100vh;
  background: #f4f5f7;
  color: #06101f;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
}

.navbar.sticky-top {
  z-index: 1030;
}

.navbar {
  min-height: 55px;
}

.navbar.sgd-navbar {
  background-color: #123538;
}

.sgd-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sgd-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background-color: #daf1ed;
  color: #123538;
}

.sgd-brand-icon .lucide-icon {
  width: 22px;
  height: 22px;
}

.sgd-navbar .nav-link {
  color: #ffffff;
  font-weight: 700;
}

.sgd-navbar .nav-link:hover,
.sgd-navbar .nav-link:focus {
  color: #ffffff;
}

.navbar-brand,
h1,
h2,
h3,
h4,
h5,
h6,
.page-subtitle,
.form-label,
th {
  font-weight: 700;
}

.nav-link {
  color: rgba(255, 255, 255, 0.68);
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

.btn {
  border-radius: 5px;
  font-weight: 700;
}

/* Paleta compartida: variantes sólidas pastel con borde y texto contrastantes. */
.btn-primary, .btn-outline-primary, .btn-link, .swal2-confirm {
  --bs-btn-color: #244b84;
  --bs-btn-bg: #c6daf8;
  --bs-btn-border-color: #9bbbe9;
  --bs-btn-hover-color: #1d3e70;
  --bs-btn-hover-bg: #afcbf2;
  --bs-btn-hover-border-color: #7fa5da;
  --bs-btn-active-color: #1d3e70;
  --bs-btn-active-bg: #9ebfe9;
  --bs-btn-active-border-color: #6b96cf;
  --bs-btn-focus-shadow-rgb: 36, 75, 132;
}

.btn-success, .btn-outline-success {
  --bs-btn-color: #245d3c;
  --bs-btn-bg: #c1e4cf;
  --bs-btn-border-color: #93c7a8;
  --bs-btn-hover-color: #194d30;
  --bs-btn-hover-bg: #aed9bf;
  --bs-btn-hover-border-color: #77b88f;
  --bs-btn-active-color: #194d30;
  --bs-btn-active-bg: #9bcfaf;
  --bs-btn-active-border-color: #66a87e;
  --bs-btn-focus-shadow-rgb: 36, 93, 60;
}

.btn-warning, .btn-outline-warning {
  --bs-btn-color: #72561a;
  --bs-btn-bg: #f8dda0;
  --bs-btn-border-color: #dfbf75;
  --bs-btn-hover-color: #614710;
  --bs-btn-hover-bg: #f2d187;
  --bs-btn-hover-border-color: #cea953;
  --bs-btn-active-color: #614710;
  --bs-btn-active-bg: #ebc573;
  --bs-btn-active-border-color: #bd9844;
  --bs-btn-focus-shadow-rgb: 114, 86, 26;
}

.btn-danger, .btn-outline-danger, .swal2-deny, .swal2-confirm.sgd-confirm-danger {
  --bs-btn-color: #8b3440;
  --bs-btn-bg: #efc4cb;
  --bs-btn-border-color: #d8a0aa;
  --bs-btn-hover-color: #772733;
  --bs-btn-hover-bg: #e7b0ba;
  --bs-btn-hover-border-color: #c98794;
  --bs-btn-active-color: #772733;
  --bs-btn-active-bg: #dea0ac;
  --bs-btn-active-border-color: #b97381;
  --bs-btn-focus-shadow-rgb: 139, 52, 64;
}

.btn-secondary, .btn-outline-secondary, .swal2-cancel {
  --bs-btn-color: #485767;
  --bs-btn-bg: #d5dde5;
  --bs-btn-border-color: #b2bfcc;
  --bs-btn-hover-color: #354554;
  --bs-btn-hover-bg: #c5d0db;
  --bs-btn-hover-border-color: #99aabb;
  --bs-btn-active-color: #354554;
  --bs-btn-active-bg: #b7c5d3;
  --bs-btn-active-border-color: #899dad;
  --bs-btn-focus-shadow-rgb: 72, 87, 103;
}

.btn-dark, .btn-outline-dark {
  --bs-btn-color: #303f50;
  --bs-btn-bg: #c5cfdc;
  --bs-btn-border-color: #9eafc3;
  --bs-btn-hover-color: #253243;
  --bs-btn-hover-bg: #b3c1d2;
  --bs-btn-hover-border-color: #859cb6;
  --bs-btn-active-color: #253243;
  --bs-btn-active-bg: #a4b5ca;
  --bs-btn-active-border-color: #768faa;
  --bs-btn-focus-shadow-rgb: 48, 63, 80;
}

.btn-info, .btn-outline-info {
  --bs-btn-color: #225966;
  --bs-btn-bg: #c4e5eb;
  --bs-btn-border-color: #95c5d0;
  --bs-btn-hover-color: #194a56;
  --bs-btn-hover-bg: #aed9e2;
  --bs-btn-hover-border-color: #77b3c0;
  --bs-btn-active-color: #194a56;
  --bs-btn-active-bg: #9acdd8;
  --bs-btn-active-border-color: #65a1af;
  --bs-btn-focus-shadow-rgb: 34, 89, 102;
}

.btn-light, .btn-outline-light {
  --bs-btn-color: #485767;
  --bs-btn-bg: #e4e9ef;
  --bs-btn-border-color: #bbc7d3;
  --bs-btn-hover-color: #354554;
  --bs-btn-hover-bg: #d4dee7;
  --bs-btn-hover-border-color: #a3b3c3;
  --bs-btn-active-color: #354554;
  --bs-btn-active-bg: #c6d3df;
  --bs-btn-active-border-color: #92a5b7;
  --bs-btn-focus-shadow-rgb: 72, 87, 103;
}

.btn[class*="btn-"], .btn-link {
  --bs-btn-disabled-color: var(--bs-btn-color);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: var(--bs-btn-border-color);
}

.btn-link {
  text-decoration: none;
}

.swal2-actions .swal2-styled {
  background-color: var(--bs-btn-bg) !important;
  color: var(--bs-btn-color) !important;
  border: 1px solid var(--bs-btn-border-color) !important;
  border-radius: 5px;
  font-weight: 700;
}

.swal2-actions .swal2-styled:hover {
  background-color: var(--bs-btn-hover-bg) !important;
  background-image: none !important;
  color: var(--bs-btn-hover-color) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
}

.swal2-actions .swal2-styled:focus-visible {
  outline: 2px solid var(--bs-btn-color);
  outline-offset: 3px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
}

.edit-action-btn {
  align-self: center;
  flex: 0 0 auto;
  line-height: 1;
}

.lucide-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

.icon-action-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  white-space: nowrap;
}

.document-coverage-badge {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.document-coverage-badge-complete {
  background: #d9f2e5;
  border-color: #9fdabb;
  color: #00683d;
}

.document-coverage-badge-pending {
  background: #fff2cc;
  border-color: #f0d47a;
  color: #7a5700;
}

.document-coverage-modal-header {
  position: relative;
  display: block;
}

.document-coverage-modal-header .modal-heading-text {
  width: 100%;
  padding: 0 42px;
  text-align: center;
}

.document-coverage-modal-header .btn-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.document-coverage-table {
  width: 100%;
  table-layout: fixed;
}

.document-coverage-table th,
.document-coverage-table td {
  width: 33.333%;
  white-space: normal;
  text-align: center;
}

.document-coverage-table td .small {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.document-coverage-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  color: #0d6efd;
  font-weight: 600;
  white-space: normal;
  text-decoration: none;
}

.document-coverage-link i {
  flex: 0 0 auto;
}

.document-coverage-link span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.document-coverage-link:hover,
.document-coverage-link:focus {
  color: #084298;
  text-decoration: underline;
}

.history-version-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
}

.history-heading {
  min-width: 0;
}

.history-summary-body {
  padding: 14px 16px;
}

.history-summary-line,
.history-row-details,
.history-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.history-summary-line-top {
  margin-bottom: 6px;
}

.history-inline-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.history-inline-item strong {
  font-weight: 700;
}

.history-card-body {
  padding: 14px 16px;
}

.history-meta {
  font-size: 0.88rem;
  line-height: 1.2;
}

.history-meta-inline {
  margin-left: 8px;
  color: #3f4856;
  font-size: 0.88rem;
  font-weight: 600;
}

.history-row-line {
  margin-bottom: 8px;
}

.history-row-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.history-row-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.history-row-details {
  flex: 1 1 540px;
  min-width: 0;
}

.history-row-actions {
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

.history-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
}

.history-card .text-wrap {
  min-width: 0;
}

.history-card .small {
  margin-bottom: 1px;
  line-height: 1.1;
}

.history-card .fw-bold {
  line-height: 1.2;
}

.history-card-muted {
  background: #eef1f4;
  border-color: #d6dde6;
}

.history-card-muted .card-body {
  color: #6f7a88;
}

.history-card-muted .history-version-title,
.history-card-muted .history-inline-item strong,
.history-card-muted .fw-bold {
  color: #4d5866;
}

.history-card-muted .small,
.history-card-muted .history-meta-inline {
  color: #7c8794;
}

.history-card-muted .badge {
  opacity: 0.72;
}

.history-card-muted .btn {
  opacity: 1;
}

.history-summary-line .small,
.history-row-details .small {
  white-space: nowrap;
}

.form-control,
.form-check-input {
  border-radius: 5px;
}

.form-control:focus {
  border-color: #b9c7dc;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.min-vh-75 {
  min-height: 75vh;
}

.app-main {
  width: min(90vw, 1680px);
  margin: 0 auto;
}

.auth-page {
  background: #f4f5f7;
}

.auth-main {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  padding: 22px 28px;
}

.two-factor-card {
  width: min(100%, 520px);
  padding: 24px 48px 34px;
}

.two-factor-login-card {
  width: min(100%, 480px);
  padding: 24px 28px;
}

.two-factor-login-help {
  margin-bottom: 12px;
  color: #344054;
  font-size: 1rem;
  text-align: center;
}

.two-factor-login-account {
  margin-bottom: 22px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.two-factor-method-form {
  margin-bottom: 12px;
}

.two-factor-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 16px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #fff;
  color: #06101f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.two-factor-method:hover {
  background: #f4faf6;
  border-color: #90bba0;
}

.two-factor-method:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 3px;
}

.two-factor-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3f3e8;
  color: #20ad4d;
}

.two-factor-method-icon .lucide-icon {
  width: 21px;
  height: 21px;
}

.two-factor-method-copy {
  flex: 1;
  min-width: 0;
}

.two-factor-method-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.two-factor-method-copy > span {
  display: block;
  color: #65758a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.two-factor-method .two-factor-method-arrow {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #8fa3bd;
}

.two-factor-login-card .two-factor-exit-form {
  margin-top: 18px;
}

.two-factor-verification {
  padding: 20px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
}

.two-factor-verification-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.two-factor-verification-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.two-factor-verification-heading .lucide-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #20ad4d;
}

.two-factor-active {
  padding: 5px 16px;
  border-radius: 999px;
  background: #d2eedb;
  color: #16813b;
  font-size: 0.85rem;
  font-weight: 700;
}

.two-factor-verification-help {
  margin-bottom: 20px;
  color: #65758a;
  line-height: 1.5;
}

.two-factor-verification .two-factor-code-input {
  min-height: 46px;
  background: #fff;
  border-color: #9bbfff;
  letter-spacing: 0.18em;
}

.two-factor-code-input::placeholder {
  color: #98a4b5;
  opacity: 1;
}

.two-factor-login-card .two-factor-verify-button {
  --bs-btn-color: #fff;
  --bs-btn-bg: #087cff;
  --bs-btn-border-color: #087cff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0668d8;
  --bs-btn-hover-border-color: #0668d8;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #055bbd;
  --bs-btn-active-border-color: #055bbd;
  min-height: 42px;
}

.two-factor-login-card .btn-link {
  --bs-btn-color: #087cff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #0668d8;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #055bbd;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
}

@media (max-width: 575.98px) {
  .two-factor-verification {
    padding: 16px;
  }

  .two-factor-verification-heading {
    flex-wrap: wrap;
  }

  .two-factor-method {
    min-height: 80px;
    gap: 12px;
    padding: 16px 12px;
  }

  .two-factor-method-icon {
    flex-basis: 36px;
    height: 36px;
  }

  .two-factor-method-copy strong {
    font-size: 1rem;
  }

  .two-factor-method-copy > span {
    font-size: 0.9rem;
  }
}

.two-factor-help-text {
  margin: 0 auto 20px;
  color: #344054;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  max-width: 430px;
}

.two-factor-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 16px;
}

.two-factor-qr {
  width: min(100%, 236px);
  height: auto;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
}

.two-factor-account {
  margin-bottom: 26px;
  color: #526071;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.two-factor-account strong {
  display: block;
  color: #06101f;
  font-weight: 700;
}

.two-factor-code-input {
  letter-spacing: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.document-expiry-preview {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.document-expiry-preview.is-expired {
  color: #dc3545;
}

.document-expiry-preview.is-soon {
  color: #b58105;
}

.document-expiry-preview.is-current {
  color: #198754;
}

.two-factor-exit-form {
  margin-top: 18px;
  text-align: center;
}

.login-logo {
  width: 92px;
  height: auto;
}

.forbidden-page,
.not-found-page {
  width: min(100%, 720px);
  margin: 0 auto;
}

.forbidden-page-image,
.not-found-page-image {
  display: block;
  width: min(100%, 680px);
  max-height: 475px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .forbidden-page-image,
  .not-found-page-image {
    width: min(100%, 390px);
    max-height: 305px;
    margin-bottom: 1rem;
  }
}

.login-card h1 {
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 18px !important;
}

.login-card .form-control {
  background: #eaf1fb;
  min-height: 38px;
}

.password-toggle {
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-footer {
  margin-top: 16px;
  text-align: center;
  color: #4b5563;
  font-weight: 700;
}

.login-footer small {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

.swal2-container {
  z-index: 2000;
}

.sgd-swal-toast {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-family: "Source Sans 3", Arial, sans-serif;
}

.sgd-swal-toast .swal2-title {
  font-size: 0.96rem;
  font-weight: 700;
}

.page-heading {
  margin-bottom: 26px;
}

.page-subtitle {
  color: #3f4856;
}

.componentes-page-title {
  color: #06101f;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.componentes-summary-card {
  height: 100%;
  padding: 18px 20px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.componentes-summary-label {
  color: #526071;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.accreditation-summary-detail {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.accreditation-summary-caption {
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
}

.componentes-summary-value {
  margin-top: 8px;
  color: #06101f;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.card {
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dashboard-metrics-grid > [class*="col-"] {
  display: flex;
}

.dashboard-metrics-grid > [class*="col-"] > .metric-card {
  width: 100%;
  flex: 1 1 auto;
}

.metric-card.dashboard-compliance-card {
  color: #514371;
  background-color: #e1d5f5;
  border: 1px solid #c4afe7;
}

.dashboard-compliance-card:hover,
.dashboard-compliance-card:focus {
  color: #514371;
  background-color: #d7c8ef;
}

.dashboard-metrics-grid .dashboard-compliance-card .card-body {
  padding: 1rem;
}

.dashboard-compliance-detail {
  font-size: 0.75rem;
  font-weight: 600;
  color: #586575;
  margin-top: 4px;
}

@media (min-width: 1200px) {
  .dashboard-metrics-grid.has-accreditation-summary > .dashboard-metric-global {
    flex: 0 0 28%;
    width: 28%;
  }
  .dashboard-metrics-grid.has-accreditation-summary > .dashboard-metric-main {
    flex: 0 0 16%;
    width: 16%;
  }
  .dashboard-metrics-grid.has-accreditation-summary > .dashboard-metric-compact {
    flex: 0 0 13.333333%;
    width: 13.333333%;
  }
  .dashboard-metric-compact .metric-icon {
    width: 2rem;
    height: 2rem;
    right: 0.75rem;
  }
  .dashboard-metric-compact .metric-card .card-body {
    padding-right: 3rem;
  }
  .dashboard-metric-compact .metric-card .display-6 {
    font-size: 1.8rem;
  }
}

.metric-card {
  min-height: 110px;
  border: 0;
  color: #ffffff;
}

.metric-card .card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  overflow: hidden;
  padding-right: 5.25rem;
}

.metric-content {
  position: relative;
  z-index: 1;
}

.metric-card .display-6 {
  font-weight: 700;
  line-height: 1;
}

.metric-card .small {
  font-weight: 700;
}

.metric-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  line-height: 1;
  color: currentColor;
  opacity: 0.65;
  pointer-events: none;
}

.metric-card-pending {
  animation: metric-card-pending-pulse 1.9s ease-in-out infinite;
}

@keyframes metric-card-pending-pulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 0 0 0 rgba(220, 53, 69, 0);
  }

  50% {
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.14), 0 0 0 3px rgba(220, 53, 69, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card-pending {
    animation: none;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.14), 0 0 0 3px rgba(220, 53, 69, 0.24);
  }
}

.metric-green {
  background: #c1e4cf;
  color: #245d3c;
}

.metric-card.metric-green {
  border: 1px solid #93c7a8;
}

.metric-blue {
  background: #c6daf8;
  color: #244b84;
}

.metric-card.metric-blue {
  border: 1px solid #9bbbe9;
}

.metric-yellow {
  background: #f8dda0;
  color: #72561a;
}

.metric-card.metric-yellow {
  border: 1px solid #dfbf75;
}

.metric-dark {
  background: #d5dde5;
  color: #485767;
}

.metric-card.metric-dark {
  border: 1px solid #b2bfcc;
}

.metric-red {
  background: #efc4cb;
  color: #8b3440;
}

.metric-card.metric-red {
  border: 1px solid #d8a0aa;
}

.dashboard-section {
  position: relative;
}

.dashboard-document-search,
.documents-search-form {
  position: relative;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dashboard-explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-document-search.dashboard-document-search-compact {
  flex: 0 1 48%;
  width: 48%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-document-search-compact .dashboard-search-results {
  top: calc(100% + 6px);
  right: 0;
  left: 0;
}

@media (max-width: 991.98px) {
  .dashboard-explorer-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-document-search.dashboard-document-search-compact {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }
}

.dashboard-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% - 8px);
  right: 14px;
  left: 14px;
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.dashboard-search-result {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f4;
  color: #172033;
  text-decoration: none;
}

.dashboard-search-result:hover,
.dashboard-search-result:focus {
  background: #f5f8ff;
  color: #172033;
}

.dashboard-search-result-code {
  color: #1769f6;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-search-result-title {
  font-weight: 700;
}

.dashboard-search-result-context,
.dashboard-search-result-date,
.dashboard-search-message {
  color: #6b7280;
  font-size: 0.82rem;
}

.dashboard-search-result-date {
  margin-top: 2px;
  font-weight: 600;
}

.dashboard-search-message,
.dashboard-search-all {
  display: block;
  padding: 11px 12px;
}

.dashboard-search-all {
  background: #f8fafc;
  color: #1769f6;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-folder-col {
  flex: 0 0 50%;
  width: 50%;
}

@media (min-width: 768px) {
  .dashboard-folder-col {
    flex: 0 0 33.333333%;
    width: 33.333333%;
  }
}

@media (max-width: 575.98px) {
  .dashboard-metrics-grid .metric-card {
    min-height: 96px;
  }

  .dashboard-metrics-grid .metric-card .card-body {
    min-height: 96px;
    padding: 0.75rem 3.25rem 0.75rem 0.75rem;
  }

  .dashboard-metrics-grid .metric-card .display-6 {
    font-size: 1.45rem;
  }

  .dashboard-metrics-grid .metric-card .small {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .dashboard-metrics-grid .metric-icon {
    right: 0.7rem;
    width: 2.35rem;
    height: 2.35rem;
  }

}

@media (max-width: 319.98px) {
  .dashboard-metrics-grid > *,
  .dashboard-folder-col {
    flex: 0 0 100%;
    width: 100%;
  }
}

.dashboard-folder-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 140px;
  padding: 7px 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffef7 0%, #fffaf0 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  color: #06101f;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-folder-card:hover,
.dashboard-folder-card:focus {
  color: #06101f;
  border-color: #d4b164;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.dashboard-folder-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 88px;
  padding: 0;
}

.dashboard-folder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 21px;
  background: #f2d386;
  color: #8b5e11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 24px rgba(184, 142, 55, 0.18);
}

.dashboard-folder-icon-svg {
  width: 36px;
  height: 36px;
  display: block;
}

.dashboard-folder-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-folder-badge.is-empty {
  background: #6c757d;
}

.dashboard-folder-badge.has-documents {
  background: #28a745;
}

.dashboard-folder-content {
  text-align: center;
  padding-top: 0;
}

.dashboard-folder-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.dashboard-folder-meta {
  margin-top: 1px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .dashboard-folder-col {
    flex: 0 0 20%;
    width: 20%;
  }
}

@media (min-width: 1400px) {
  .dashboard-folder-col {
    flex: 0 0 11.111111%;
    width: 11.111111%;
  }

  .dashboard-folder-card {
    width: 100%;
    max-width: 172px;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 8px 9px 10px;
  }

  .dashboard-folder-visual {
    min-height: 78px;
  }

  .dashboard-folder-icon {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .dashboard-folder-icon-svg {
    width: 32px;
    height: 32px;
  }

  .dashboard-folder-badge {
    min-height: 21px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .dashboard-folder-title {
    font-size: 0.8rem;
    line-height: 1.12;
  }

  .dashboard-folder-meta {
    font-size: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .dashboard-folder-card {
    min-height: 150px;
    padding: 7px 7px 10px;
  }

  .dashboard-folder-visual {
    min-height: 76px;
  }

  .dashboard-folder-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .dashboard-folder-icon-svg {
    width: 30px;
    height: 30px;
  }
}

.table-responsive {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.table {
  margin-bottom: 0;
}

.table td,
.table th {
  white-space: nowrap;
  vertical-align: middle;
}

.table tbody tr:nth-child(odd) td {
  background: #eeeeee;
}

.report-table {
  width: 100%;
  table-layout: fixed;
}

.report-table th,
.report-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.report-pending-table .report-col-unit {
  width: 17%;
}

.report-pending-table .report-col-document {
  width: 27%;
}

.report-pending-table .report-col-scope {
  width: 18%;
}

.report-pending-table .report-col-requirement {
  width: 25%;
}

.report-pending-table .report-col-date {
  width: 13%;
}

.report-matrix-table .report-col-hierarchy {
  width: 23%;
}

.report-matrix-table .report-col-characteristic {
  width: 25%;
}

.report-matrix-table .report-col-verifier {
  width: 22%;
}

.report-matrix-table .report-col-units {
  width: 20%;
}

.report-matrix-table .report-col-status {
  width: 10%;
}

.report-date-cell,
.report-table .badge {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .report-table {
    min-width: 760px;
    table-layout: auto;
  }
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.badge.text-bg-primary, .badge.bg-primary {
  --sgd-badge-bg: #c6daf8;
  --sgd-badge-color: #244b84;
  --sgd-badge-border: #9bbbe9;
}

.badge.text-bg-success, .badge.bg-success {
  --sgd-badge-bg: #c1e4cf;
  --sgd-badge-color: #245d3c;
  --sgd-badge-border: #93c7a8;
}

.badge.text-bg-warning, .badge.bg-warning {
  --sgd-badge-bg: #f8dda0;
  --sgd-badge-color: #72561a;
  --sgd-badge-border: #dfbf75;
}

.badge.text-bg-danger, .badge.bg-danger {
  --sgd-badge-bg: #efc4cb;
  --sgd-badge-color: #8b3440;
  --sgd-badge-border: #d8a0aa;
}

.badge.text-bg-secondary, .badge.bg-secondary {
  --sgd-badge-bg: #d5dde5;
  --sgd-badge-color: #485767;
  --sgd-badge-border: #b2bfcc;
}

.badge.text-bg-dark, .badge.bg-dark {
  --sgd-badge-bg: #c5cfdc;
  --sgd-badge-color: #303f50;
  --sgd-badge-border: #9eafc3;
}

.badge.text-bg-info, .badge.bg-info {
  --sgd-badge-bg: #c4e5eb;
  --sgd-badge-color: #225966;
  --sgd-badge-border: #95c5d0;
}

.badge.text-bg-light, .badge.bg-light {
  --sgd-badge-bg: #e4e9ef;
  --sgd-badge-color: #485767;
  --sgd-badge-border: #bbc7d3;
}

.badge[class*="text-bg-"], .badge[class*=" bg-"] {
  background-color: var(--sgd-badge-bg) !important;
  color: var(--sgd-badge-color) !important;
  border: 1px solid var(--sgd-badge-border) !important;
}

.white-tooltip {
  --bs-tooltip-bg: #ffffff;
  --bs-tooltip-color: #06101f;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-padding-x: 0.75rem;
  --bs-tooltip-padding-y: 0.5rem;
  --bs-tooltip-max-width: 420px;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}

.white-tooltip .tooltip-inner {
  border: 1px solid #e5e7eb;
  text-align: left;
}

.assigned-user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 360px;
}

.establishment-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(340px, 1fr) 92px;
  gap: 16px;
  align-items: end;
}

.establishment-field {
  min-width: 0;
}

.establishment-field .form-label {
  min-height: 24px;
  margin-bottom: 6px;
}

.establishment-create-action {
  min-width: 0;
}

.establishment-create-action .btn {
  height: 38px;
}

.assignment-form {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 420px;
}

.user-picker {
  min-width: 0;
}

.user-picker-control {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.user-picker-control .form-select {
  min-width: 220px;
}

.user-picker-control .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.modal .user-picker-control {
  align-items: stretch;
}

.modal .user-picker-control .form-select {
  min-width: 0;
}

.modal-heading-text {
  min-width: 0;
}

.modal-context-text {
  overflow-wrap: anywhere;
  white-space: normal;
}

.compact-edit-modal {
  max-width: 560px;
}

.compact-edit-modal .modal-header {
  padding: 0.9rem 1rem 0.75rem;
}

.compact-edit-modal .modal-title {
  font-size: 1.15rem;
  line-height: 1.2;
}

.compact-edit-modal .modal-context-text {
  margin-top: 0.1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.compact-edit-body {
  padding: 0.9rem 1rem 1rem;
}

.compact-edit-body .mb-3 {
  margin-bottom: 0.85rem !important;
}

.compact-edit-body .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.94rem;
  line-height: 1.2;
}

.compact-edit-body .form-control,
.compact-edit-body .form-select {
  min-height: 38px;
  font-size: 0.96rem;
}

.compact-edit-body textarea.form-control {
  min-height: 88px;
}

.compact-edit-body .form-check {
  margin-top: 0.25rem;
}

.compact-edit-body .form-check-label {
  font-size: 0.94rem;
  font-weight: 600;
}

.compact-edit-footer {
  padding: 0.8rem 1rem 1rem;
  gap: 0.5rem;
}

.user-picker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.user-picker-list:empty {
  display: none;
  margin-top: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8fafc;
  color: #06101f;
  font-size: 0.86rem;
  font-weight: 700;
}

.user-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font: inherit;
  line-height: 1;
}

.destination-units-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.destination-units-form .modal-header,
.destination-units-form .modal-footer {
  flex-shrink: 0;
}

.destination-units-form .modal-body {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.destination-unit-picker {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.destination-unit-picker > .form-control,
.destination-unit-picker > .form-label,
.destination-unit-picker > [data-destination-count] {
  flex-shrink: 0;
}

.destination-unit-list {
  max-height: min(360px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
  min-height: 0;
}

.destination-unit-list .is-selected {
  border-color: #198754;
  background-color: #eef8f2;
}

.establishment-check-list {
  display: grid;
  gap: 8px;
}

.establishment-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  font-weight: 700;
}

.reception-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  border: 1px solid transparent;
  text-decoration: none;
}

.reception-badge:hover,
.reception-badge:focus {
  text-decoration: none;
}

.reception-badge-pending {
  background: #fff3cd;
  border-color: #ffe69c;
  color: #664d03;
}

.reception-badge-verified {
  background: #d1e7dd;
  border-color: #a3cfbb;
  color: #0f5132;
}

.reception-badge-none {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #4b5563;
}

@media (max-width: 991.98px) {
  .establishment-create-form {
    grid-template-columns: 1fr;
  }

  .establishment-create-action .btn {
    width: auto !important;
    min-width: 120px;
  }
}

.sgd-accordion {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sgd-accordion .accordion-item {
  border-color: #e5e7eb;
}

.sgd-accordion .accordion-button {
  font-weight: 700;
  gap: 0.25rem;
}

.accordion-heading-row {
  display: flex;
  align-items: stretch;
  background: #ffffff;
}

.accordion-heading-row .accordion-button {
  min-width: 0;
}

.accordion-heading-row > .edit-action-btn {
  margin: 0 16px 0 0;
}

.accordion-heading-row .state-form {
  display: flex;
  align-items: center;
  padding: 0 16px 0 0;
  border-bottom: 1px solid #e5e7eb;
}

.sgd-accordion .accordion-button:not(.collapsed) {
  color: #06101f;
  background: #ffffff;
  box-shadow: inset 0 -1px 0 #e5e7eb;
}

.accordion-title {
  min-width: 0;
}

.accordion-meta {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  color: #4b5563;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  flex: 0 0 auto;
}

.info-dot:hover {
  color: #06101f;
  border-color: #06101f;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: #c5cfdc;
  color: #303f50;
  border: 1px solid #9eafc3;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.code-badge-soft {
  background: #eaf1fb;
  color: #172033;
  border: 1px solid #cfd9e8;
}

.component-block {
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
}

[data-state-scope="ambito"].is-disabled > .accordion-header .accordion-title,
[data-state-scope="componente"].is-disabled > .component-header .component-heading,
tr[data-state-scope="caracteristica"].is-disabled > td:not(.characteristic-action-cell) {
  opacity: 0.72;
}

[data-state-scope="ambito"].is-disabled > .accordion-header .accordion-button,
[data-state-scope="ambito"].is-disabled > .accordion-collapse {
  background: #f3f4f6;
}

[data-state-scope="componente"].is-disabled {
  background: #f8f9fa;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 7px;
}

tr[data-state-scope].is-disabled td {
  color: #6b7280;
}

.component-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.component-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.component-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.component-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.component-title .text-muted {
  flex: 1 1 320px;
  min-width: 0;
}

.component-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.state-form {
  margin: 0;
}

.state-form .btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-slider {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}

.switch-control input:checked + .switch-slider {
  background: #198754;
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(18px);
}

.switch-control input:disabled + .switch-slider {
  background: #e5e7eb;
}

.switch-label {
  min-width: 76px;
  color: #374151;
  font-weight: 700;
}

.component-table {
  padding: 0;
  box-shadow: none;
}

.component-table > .table {
  table-layout: fixed;
}

.component-table > .table > thead > tr > th:nth-child(1),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(1) {
  width: 140px;
}

.component-table > .table > thead > tr > th:nth-child(3),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(3) {
  width: 120px;
}

.component-table > .table > thead > tr > th:nth-child(4),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(4) {
  width: 170px;
}

.component-table > .table > thead > tr > th:nth-child(5),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(5) {
  width: 145px;
  text-align: center;
}

.threshold-column-title {
  display: inline-block;
  line-height: 1.15;
}

.component-table > .table > thead > tr > th:nth-child(6),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(6) {
  width: 120px;
  text-align: center;
}

.component-table > .table > thead > tr > th:nth-child(7),
.component-table > .table > tbody > tr:not(.verifier-row) > td:nth-child(7) {
  width: 75px;
  text-align: center;
}

.component-table > .table > thead > tr > th:last-child,
.component-table > .table > tbody > tr:not(.verifier-row) > td:last-child {
  width: 365px;
}

.component-table > .table > thead > tr > th:last-child {
  text-align: center;
}

.characteristic-action-cell {
  text-align: center;
}

.compliance-missing-badge {
  white-space: nowrap;
}

.missing-verifiers-link {
  cursor: pointer;
}

.missing-verifiers-link:focus-visible {
  outline: 2px solid #b02a37;
  outline-offset: 3px;
}

.component-table > .table > tbody > tr.characteristic-missing-highlight > td {
  box-shadow: inset 0 2px #dc3545, inset 0 -2px #dc3545;
}

.component-table > .table > tbody > tr.characteristic-missing-highlight > td:first-child {
  box-shadow: inset 2px 0 #dc3545, inset 0 2px #dc3545, inset 0 -2px #dc3545;
}

.component-table > .table > tbody > tr.characteristic-missing-highlight > td:last-child {
  box-shadow: inset -2px 0 #dc3545, inset 0 2px #dc3545, inset 0 -2px #dc3545;
}

.component-table > .table > tbody > tr.characteristic-row-odd > td {
  background: #eeeeee;
}

.component-table > .table > tbody > tr.characteristic-row-even > td {
  background: #ffffff;
}

.characteristic-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.verifier-row > td {
  background: #f8fafc;
  padding: 12px 16px;
}

.verifier-panel {
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px 16px 14px;
}

.verifier-table {
  table-layout: fixed;
}

.verifier-table th,
.verifier-table td {
  vertical-align: middle;
}

.verifier-table th {
  color: #172033;
  font-size: 0.86rem;
}

.verifier-title-cell {
  width: 48%;
}

.verifier-type-cell {
  width: 150px;
}

.verifier-load-cell {
  width: 120px;
}

.verifier-count-cell {
  width: 95px;
  text-align: center;
}

.verifier-table th:nth-child(4),
.verifier-table th:nth-child(5) {
  text-align: center;
}

.verifier-action-cell {
  width: 1%;
  text-align: center;
}

.verifier-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.verifier-actions .btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.verifier-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f4577;
  box-shadow: none;
}

.verifier-toggle-btn:hover,
.verifier-toggle-btn:focus {
  background: transparent;
  color: #1f4577;
  box-shadow: none;
  outline: 0;
}

.verifier-toggle-btn:focus-visible {
  outline: 0;
  box-shadow: none;
}

.verifier-toggle-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.verifier-toggle-btn i {
  transition: transform 0.18s ease;
}

.component-table > .table > tbody > tr:not(.verifier-row) > td:last-child .btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.document-upload-body {
  padding: 16px;
}

.document-upload-body .form-label {
  margin-bottom: 0.25rem;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 12px 14px;
  border: 2px dashed #9ca3af;
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus,
.upload-dropzone.is-dragover {
  border-color: #1769f6;
  background: #eef5ff;
  box-shadow: 0 0 0 0.2rem rgba(23, 105, 246, 0.1);
  outline: 0;
}

.upload-dropzone.has-file {
  border-color: #28a745;
  background: #f0fbf4;
}

.upload-dropzone.has-error {
  border-color: #dc3545;
  background: #fff5f5;
}

.upload-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #212529;
  color: #ffffff;
  font-weight: 700;
  flex: 0 0 auto;
}

.upload-dropzone.has-file .upload-dropzone-icon {
  background: #28a745;
}

.upload-dropzone.has-error .upload-dropzone-icon {
  background: #dc3545;
}

.upload-dropzone-body {
  min-width: 0;
}

.upload-dropzone-title {
  font-weight: 700;
  color: #06101f;
}

.upload-dropzone-hint,
.upload-file-info,
.upload-file-error {
  color: #4b5563;
}

.upload-file-info {
  margin-top: 4px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.upload-file-error {
  margin-top: 4px;
  color: #b42318;
  font-weight: 700;
}

.document-code-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background: #eaf1fb;
}

.document-code-preview span {
  color: #4b5563;
  font-weight: 700;
}

.document-code-preview strong {
  color: #06101f;
  overflow-wrap: anywhere;
  text-align: right;
}

.document-code-preview .input-group {
  max-width: 620px;
}

.document-code-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.document-code-preview > small {
  display: none;
}

.missing-document-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 155px);
}

.missing-document-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: min(100%, 760px);
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.missing-document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  background: #eaf1fb;
  color: #1769f6;
  font-size: 1.5rem;
}

.audit-details {
  max-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.missing-document-content {
  min-width: 0;
}

.missing-document-eyebrow {
  color: #526071;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.missing-document-title {
  margin: 4px 0 8px;
  color: #06101f;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
}

.missing-document-text {
  margin: 0;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.4;
}

.missing-document-details {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f8fafc;
}

.missing-document-details span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  color: #06101f;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.missing-document-details strong {
  color: #526071;
  min-width: 64px;
}

.missing-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.text-wrap {
  white-space: normal !important;
  min-width: 320px;
}

.table th.documents-componente-cell,
.table td.documents-componente-cell {
  white-space: normal;
  min-width: 220px;
  max-width: 260px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 22px;
  }

  .accordion-meta {
    display: none;
  }

  .accordion-heading-row {
    display: block;
  }

  .accordion-heading-row .state-form {
    justify-content: flex-start;
    padding: 0 16px 12px 16px;
  }

  .component-header {
    display: block;
  }

  .component-status {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .upload-dropzone {
    align-items: flex-start;
    min-height: 112px;
  }

  .document-code-preview {
    display: block;
  }

  .document-code-preview strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .missing-document-shell {
    align-items: flex-start;
    min-height: auto;
  }

  .missing-document-card {
    display: block;
    padding: 20px;
  }

  .missing-document-icon {
    margin-bottom: 14px;
  }
}
/* Biblioteca independiente de formatos institucionales. */
.format-list-card {
  overflow: hidden;
}

.format-name-cell {
  min-width: 250px;
  max-width: 420px;
}

.format-description,
.format-file-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.format-file-name {
  min-width: 180px;
  max-width: 300px;
}

.format-actions-dropdown .dropdown-menu {
  min-width: 180px;
}

.format-actions-dropdown .dropdown-item {
  font-weight: 600;
}
