/* Sistema compartido de lectura, iconos y controles para los ocho destinos. */
:root { font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
body,
body.r1-standalone,
.auth-app { font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif !important; }

.r1-nav-icon,
.r1-main-sidebar .nav-symbol,
.r1-case-tabs button span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.r1-nav-icon svg,
.r1-main-sidebar .nav-symbol svg,
.r1-case-tabs button span[aria-hidden] svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.r1-main-sidebar .nav-symbol svg { width: 18px; height: 18px; }
.r1-case-tabs button span[aria-hidden] svg { width: 15px; height: 15px; }
.b3-module-tab .av-section-icon svg,.b3-metric-icon svg { display: block; width: 17px; height: 17px; }
.auth-field-icon svg { display: block; width: 18px; height: 18px; }
.auth-card-heading p { max-width: 42ch; }
#filter-count:not(:empty) {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eaf1f8;
  color: #305777;
  font-size: 11px;
  font-weight: 700;
}

.r1-nav-heading,
.r1-main-sidebar .menu-name { font-size: 11px; letter-spacing: .085em; }
.r1-nav-link { font-size: 12.5px; }
.r1-trail { font-size: 12px; }

body[data-b3-active="true"] .b3-kri-stat > span,
body[data-b3-active="true"] .b3-kri-bar > span,
body[data-b3-active="true"] .b3-kri-surface-head > div > span,
body[data-b3-active="true"] .b3-kri-meta { font-size: 12px; }
body[data-b3-active="true"] .b3-kri-stat > small,
body[data-b3-active="true"] .b3-kri-table td,
body[data-b3-active="true"] .b3-kri-table th { font-size: 12px; }
body[data-b3-active="true"] .b3-kri-stat strong,
body[data-b3-active="true"] .b3-kri-bar strong { font-variant-numeric: tabular-nums; }
body[data-b3-active="true"] .b3-kri-state--observed {
  background: #eaf1f9;
  border-color: #bfd1e5;
  color: #234d77;
}
body[data-b3-active="true"] .b3-kri-stat--universe {
  background: #f3f7fb;
  border-style: dashed;
}
body[data-b3-active="true"] .b3-kri-stat--universe strong { color: #486681; }
body[data-b3-active="true"] .b3-kri-stat--observed { border-top: 2px solid #426c9c; }
body[data-b3-active="true"] .b3-kri-stat--follow { border-top: 2px solid #c59637; }
.b3-kri-stat-link { color: #285a86; font-size: 12px; font-weight: 700; text-decoration: none; }
.b3-kri-stat-link:hover { text-decoration: underline; }
.b3-kri-bar > button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #295985;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #a9bfd4;
  text-underline-offset: 3px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b3-kri-bar > button:hover { color: #163d62; text-decoration-color: currentColor; }
.b3-kri-bar > strong { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.b3-kri-bar > strong small { color: #788fa5; font-size: 10px; font-weight: 600; }
.b3-kri-condition { margin-top: 17px; padding-top: 15px; border-top: 1px solid #dce6f0; }
.b3-kri-condition > span { display: block; margin-bottom: 11px; color: #7b632f; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.r4-main .r4-section-heading p,
.r4-main .r4-hint,
.r4-main .r4-output,
.r4-main .r4-next p,
.r5-view .r5-section-heading p,
.r5-view .r5-subtle,
.r5-view .r5-small,
.r5-view .r5-note,
.main .section-head p,
.main .heading p { font-size: 13px; line-height: 1.55; }
.r4-main label,
.r5-view label,
.main .toolbar label,
.main .form-grid label { font-size: 12px; }
.r4-deep-search { margin-top: 14px; border: 1px solid #dce6f0; border-radius: 9px; background: #f8fafc; }
.r4-deep-search summary { cursor: pointer; padding: 11px 13px; color: #2d5479; font-size: 12px; font-weight: 750; }
.r4-deep-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 2px 13px 13px; }
.r4-deep-grid label { display: grid; gap: 7px; min-width: 0; color: #466380; font-weight: 700; }
.r4-deep-grid input,.r4-deep-grid select { min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #cdd9e5; border-radius: 8px; background: #fff; color: #1c4168; }
.r4-form-actions .r4-btn-primary { font-size: 13px; }
.r4-table th small { display: block; margin-top: 3px; color: #758ca3; font-size: 10px; letter-spacing: 0; font-weight: 600; }
.r4-copy-key { display: inline-flex; margin-left: 8px; min-height: 24px !important; padding: 2px 6px; border: 1px solid #cbd9e6; border-radius: 5px; background: #f5f8fb; color: #315b80; font-size: 10px; font-weight: 700; }
.r4-table td:first-child { min-width: 150px; white-space: nowrap; }
.r4-copy-key { flex: 0 0 auto; white-space: nowrap; word-break: normal; }
.r4-copy-key:hover { background: #e9f1f9; }
.r4-table-scroll-hint { margin: 13px 0 -7px; color: #71879d; font-size: 11px; text-align: right; }
.r4-table-scroll { scrollbar-color: #9aafc2 #f1f5f8; scrollbar-width: thin; }
.r4-main input,
.r4-main select,
.r5-view input,
.r5-view select,
.main input,
.main select,
.main textarea { font-size: 13px; }
.r4-main button,
.r4-main .r4-btn,
.r5-view button,
.r5-view .r5-action,
.main button,
.main .primary,
.main .outline { min-height: 42px; }
.main .metrics small,
.r5-view .r5-metrics article > span { font-size: 12px; }
.b5-empty-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid #dbe7f2;
  border-left: 4px solid #bd9444;
  border-radius: 12px;
  background: #f8fbfe;
}
.b5-empty-panel h2 { margin: 7px 0; color: #173759; font-size: 22px; }
.b5-empty-panel p { margin: 0; color: #607991; font-size: 13px; line-height: 1.5; }
.b5-is-empty .main > .metrics { display: none; }
.b5-form-section { padding: 18px 0; border-top: 1px solid #e7eef5; }
.b5-form-section:first-child { border-top: 0; padding-top: 0; }
.b5-form-section h3 { margin: 0 0 14px; color: #284b6e; font-size: 14px; }
.b5-form-section h3 small { color: #7b91a5; font-size: 11px; font-weight: 600; }
.b5-form-section .form-grid label { line-height: 1.35; }
.b5-detail-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 13px 0 18px; }
.b5-detail-summary > div { min-width: 0; padding: 12px; border: 1px solid #dce6f0; border-radius: 8px; background: #f7fafc; }
.b5-detail-summary small { display: block; color: #6d8298; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.b5-detail-summary strong { display: block; margin-top: 5px; color: #214565; font-size: 12px; overflow-wrap: anywhere; }
.modal-body .event-row { position: relative; margin-left: 8px; border-left-color: #b5c9dc; }
.modal-body .event-row::before { content: ""; position: absolute; left: -5px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #4a759e; }
#r5-panel-fuentes .r5-cols > article:first-child { order: 2; }
#r5-panel-fuentes .r5-cols > article:nth-child(2) { order: 1; }
.r5-path-detail { margin-top: 11px; }
.r5-path-detail summary { cursor: pointer; color: #315b80; font-size: 12px; font-weight: 750; }
.r5-path-detail .r5-action { margin-top: 10px; }
#r5-panel-diccionario .r5-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
#r5-panel-diccionario .r5-filters label { min-width: 0; }
.r5-fields-table td small { display: block; margin-top: 4px; color: #7990a6; font-size: 10px; }
.r5-table-hint { display: none; color: #71879d; font-size: 11px; }
#r5-panel-servicios .r5-cols,
#r5-panel-usuarios .r5-cols { grid-template-columns: 1fr; }
.r5-service-summary { margin: 0 0 12px; color: #385e7e; font-size: 12px; font-weight: 750; }
.r5-service-state { text-align: right; }
.r5-service-state--blocked { color: #8d641f; }
.r5-service-tech summary { cursor: pointer; color: #254b70; font-size: 14px; font-weight: 800; }
.r5-service-tech-body { padding-top: 15px; }
.r5-user-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.r5-user-toolbar label { display: grid; gap: 6px; width: min(400px,100%); color: #536d89; font-weight: 750; }
.r5-user-toolbar input,.r5-user-fields input,.r5-user-fields select { min-height: 42px; padding: 9px 11px; border: 1px solid #ccd9e8; border-radius: 8px; background: #fff; color: #284967; }
.r5-user-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.r5-user-fields label { display: grid; gap: 7px; min-width: 0; color: #536d89; font-size: 12px; font-weight: 750; }
.r5-user-fields input,.r5-user-fields select { width: 100%; min-width: 0; }
#r5-panel-usuarios .r5-table-wrap table { min-width: 690px; }
#r5-panel-usuarios .r5-policy { grid-template-columns: repeat(3,minmax(0,1fr)); }
.r5-table-action:disabled { opacity: .45; cursor: not-allowed; }
.r5-confirm { width: min(430px,calc(100vw - 30px)); border: 1px solid #dce6f0; border-radius: 12px; padding: 22px; box-shadow: 0 24px 70px #10284335; }
.r5-confirm::backdrop { background: #0b213a91; }
.r5-confirm h2 { margin: 0 0 9px; color: #173759; font-size: 20px; }
.r5-confirm p { color: #56728e; line-height: 1.5; font-size: 13px; }
.r5-confirm form > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.r5-confirm #r5-confirm-accept { background: #234c74; color: #fff; border-color: #234c74; }
.r5-confirm #r5-confirm-accept:hover { background: #183b60; }
.r5-service-tech { min-width: 0; }
.r5-service-tech > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
.r5-service-tech > summary::-webkit-details-marker { display: none; }
.r5-service-tech > summary::after { content: "+"; color: #9a742f; font-size: 20px; }
.r5-service-tech[open] > summary::after { content: "−"; }
.r5-path-detail[open] { padding-bottom: 4px; }
.r5-user-form[hidden] { display: none !important; }

@media (max-width: 700px) {
  .r4-table-scroll-hint { text-align: left; }
  #r5-panel-diccionario .r5-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .r5-table-hint { display: block; }
  .r5-user-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #r5-panel-usuarios .r5-policy { grid-template-columns: 1fr; }
  body[data-r1-page="/gobierno"] #r5-panel-usuarios tbody td:last-child { grid-column: 1 / -1; }
  body[data-r1-page="/gobierno"] #r5-panel-usuarios tbody td:last-child::before { content: none; }
  body[data-r1-page="/gobierno"] #r5-panel-usuarios tbody td:last-child .r5-table-action { width: 100%; }
  .b5-empty-panel { flex-direction: column; align-items: stretch; padding: 18px; }
  .b5-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .r4-deep-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .r1-trail { font-size: 11px; }
  .r4-main .r4-form-actions > *,
  .main .heading-actions > *,
  .main .toolbar button { min-height: 44px; }
  body[data-b3-active="true"] .b3-kri-stat > span,
  body[data-b3-active="true"] .b3-kri-stat > small { font-size: 11.5px; }
}
@media (max-width: 430px) {
  .r4-deep-grid,#r5-panel-diccionario .r5-filters,.r5-user-fields { grid-template-columns: 1fr; }
  .r5-user-toolbar { align-items: stretch; flex-direction: column; }
  .r5-user-toolbar label,.r5-user-toolbar button { width: 100%; }
}
