/* Adaptaciones mínimas de integración; base visual conservada desde el ZIP. */
.login-shell {
  min-height: 100svh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.login-art h1 {
  max-width: none;
  font-size: clamp(54px, 6vw, 82px);
  margin: 28px 0 18px;
}
.login-art .champion {
  margin-top: 24px;
}
.login-form > .badge,
.login-form > .textlink {
  align-self: flex-start;
}
@media (max-width: 600px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-form {
    min-height: 100svh;
  }
}
.top form {
  margin: 0;
  display: flex;
  align-items: center;
}
[hidden] {
  display: none !important;
}
.geo-fields small {
  grid-column: 1/-1;
}
.geo-fields .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 600;
}
.table-scroll td:last-child {
  min-width: 160px;
  white-space: normal;
}
.table-scroll td:last-child form {
  margin-top: 10px;
  max-width: 230px;
}
.table-scroll td:last-child input,
.table-scroll td:last-child select,
.table-scroll td:last-child textarea {
  margin-bottom: 8px;
}
.table-scroll td:last-child input[type='hidden'] {
  display: none;
}
.form-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
  margin-top: 24px;
  max-width: 850px;
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
}
.qr img {
  width: 100%;
  height: 100%;
}
@media (max-width: 600px) {
  .system-grid {
    grid-template-columns: 1fr;
  }
}

.chart-bar {
  width: 100%;
  max-width: 45px;
  min-height: 3px;
  fill: #286ab1;
  flex-shrink: 0;
}
.chart-col:last-child .chart-bar {
  fill: var(--yellow);
}

.list-actions {
  margin: 0 0 18px;
}
.record-detail h2 {
  margin-bottom: 22px;
}
.record-detail p {
  margin: 14px 0;
}
.record-detail .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.record-detail .facts strong {
  display: block;
  overflow-wrap: anywhere;
}
.record-detail .certificate-preview {
  width: 100%;
  height: auto;
}
.record-detail form {
  margin-top: 24px;
}
.record-detail textarea {
  min-height: 90px;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 28px;
  color: #012b6f;
}
.error:not(:empty) {
  background: #fff0ee;
  color: #9b1732;
  padding: 12px;
  margin: 16px 0;
  border-radius: 4px;
}
.config-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
.providers-panel {
  margin-bottom: 22px;
}
@media (max-width: 600px) {
  .record-detail .facts {
    grid-template-columns: 1fr;
  }
}

.aggregate-bar {
  display: block;
  width: 100%;
  height: 10px;
  fill: #286ab1;
}
.aggregate-bar .bar-background {
  fill: #e6edf5;
}
@font-face {
  font-family: Diploma;
  src: url(/assets/diploma-name.ttf);
}
@font-face {
  font-family: DiplomaNumber;
  src: url(/assets/diploma-number.ttf);
}

.tabs a {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 13px 20px;
  font-weight: 700;
  color: var(--muted);
}
.tabs a.active {
  border-color: var(--yellow);
  color: var(--blue);
}
.config-submit {
  margin-top: 20px;
}
.role-description {
  margin-bottom: 22px;
}
.confirmation-list {
  margin: 20px 0;
}
.confirmation-list dt {
  font-weight: 700;
}
.confirmation-list dd {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.media-preview-image {
  display: block;
  max-height: 520px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 24px;
}
.media-preview-image.landscape {
  width: 100%;
  height: auto;
}
.media-info .actions form {
  display: flex;
  gap: 6px;
  margin: 0;
}
.record-detail .mono {
  font-size: 12px;
}

.current-operator {
  border: 1px solid #ffffff25;
  background: #ffffff12;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.top-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.top-right form {
  margin: 0;
}
@media (max-width: 600px) {
  .current-operator {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
}

/* Cola local de impresion */
.lab-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px;margin:24px 0}.lab-package{padding:24px;overflow-wrap:anywhere}.lab-package p,.lab-package form{margin:16px 0}.lab-light{display:inline-block;padding:6px 12px;border-radius:18px;font-weight:700}.lab-light.red{background:#ffe4e4;color:#9b2020}.lab-light.yellow{background:#fff0be;color:#715300}.lab-light.green{background:#d8f5e3;color:#135d36}.lab-package .actions{display:flex;flex-wrap:wrap;gap:12px}
