:root {
  --navy: #022346;
  --navy-2: #0a3158;
  --red: #f50a30;
  --ink: #102033;
  --muted: #657386;
  --line: #dfe5ec;
  --surface: #fff;
  --bg: #f4f7fa;
  --success: #16794d;
  --warning: #946200;
  --danger: #b42318;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(10, 35, 63, .08)
}

* {
  box-sizing: border-box
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg)
}

body {
  margin: 0
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

.muted {
  color: var(--muted)
}

.guest-body {
  min-height: 100vh;
  background: #eef3f7
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 42%) 1fr
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 110px);
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #06182b)
}

.auth-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 470px
}

.auth-brand-copy img {
  width: min(100%, 390px);
  filter: brightness(0) invert(1)
}

.auth-brand-copy p {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
  color: #d8e4ef;
  margin-top: 28px
}

.auth-decoration span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1)
}

.auth-decoration span:nth-child(1) {
  width: 420px;
  height: 420px;
  right: -170px;
  top: -100px
}

.auth-decoration span:nth-child(2) {
  width: 270px;
  height: 270px;
  right: -20px;
  bottom: -100px
}

.auth-decoration span:nth-child(3) {
  width: 16px;
  height: 110px;
  border: 0;
  background: var(--red);
  left: 0;
  top: 42%
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px
}

.auth-card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid rgba(2, 35, 70, .08);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow)
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -.025em
}

.auth-card>p {
  color: var(--muted);
  margin: 0 0 30px
}

.auth-footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 26px
}

.form-stack {
  display: grid;
  gap: 18px
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 650
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  outline: 0;
  transition: .15s
}

input:focus,
select:focus {
  border-color: #6a8bac;
  box-shadow: 0 0 0 3px rgba(2, 35, 70, .08)
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: .15s
}

.button:hover {
  background: var(--navy-2);
  transform: translateY(-1px)
}

.button-secondary {
  background: #eef2f6;
  color: var(--navy)
}

.button-secondary:hover {
  background: #e3e9ef
}

.link-button {
  border: 0;
  background: none;
  color: var(--navy);
  padding: 0;
  font-weight: 750;
  cursor: pointer
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px
}

.form-meta a {
  font-weight: 700;
  color: var(--navy)
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500
}

.check-row input {
  width: auto
}

.alert {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 18px;
  font-size: 14px
}

.alert-success {
  background: #eaf7f0;
  color: var(--success)
}

.alert-error {
  background: #fff0ef;
  color: var(--danger)
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #dce7f1;
  padding: 25px 18px
}

.brand {
  display: block;
  padding: 8px 12px 30px
}

.brand img {
  width: 190px;
  max-width: 100%;
  filter: brightness(0) invert(1)
}

.sidebar nav {
  display: grid;
  gap: 5px
}

.sidebar nav a {
  padding: 11px 13px;
  border-radius: 10px;
  color: #c8d6e3;
  font-weight: 650;
  font-size: 14px
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff
}

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #7f98af;
  padding: 20px 13px 6px
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 12px 0;
  display: grid;
  gap: 4px
}

.sidebar-foot span {
  font-size: 13px;
  font-weight: 700
}

.sidebar-foot small {
  color: #8ea5ba
}

.main-column {
  min-width: 0
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px)
}

.topbar-spacer {
  flex: 1
}

.icon-button {
  display: none;
  border: 0;
  background: none;
  font-size: 24px
}

.profile-menu {
  position: relative
}

.profile-menu>button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7eef5;
  color: var(--navy);
  font-weight: 800
}

.profile-copy {
  display: grid;
  text-align: left
}

.profile-copy strong {
  font-size: 13px
}

.profile-copy small {
  font-size: 11px;
  color: var(--muted)
}

.profile-popover {
  position: absolute;
  right: 0;
  top: 50px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 7px
}

.profile-popover a,
.profile-popover button {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer
}

.profile-popover a:hover,
.profile-popover button:hover {
  background: #f1f4f7
}

.content {
  padding: clamp(22px, 4vw, 44px);
  max-width: 1480px;
  margin: auto
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px
}

.page-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.04em;
  margin: 3px 0 8px
}

.page-heading p {
  margin: 0;
  color: var(--muted)
}

.eyebrow {
  text-transform: uppercase !important;
  letter-spacing: .13em;
  font-size: 11px !important;
  font-weight: 800;
  color: var(--red) !important
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.metric-card,
.section-card,
.upload-card {
  background: #fff;
  border: 1px solid rgba(2, 35, 70, .08);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(10, 35, 63, .045)
}

.metric-card {
  padding: 25px;
  display: grid;
  gap: 8px;
  min-height: 170px
}

.metric-card>span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 800
}

.metric-card strong {
  font-size: 22px
}

.metric-card small {
  color: var(--muted)
}

.metric-card a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 750
}

.metric-card.accent {
  border-top: 3px solid var(--red)
}

.section-card,
.upload-card {
  padding: 24px;
  margin-bottom: 22px
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px
}

.section-title h2 {
  margin: 3px 0 0
}

.table-wrap {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px
}

th,
td {
  padding: 14px 13px;
  text-align: left;
  border-bottom: 1px solid #e9edf2;
  font-size: 13px
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted)
}

td strong,
td small {
  display: block
}

td small {
  color: var(--muted);
  margin-top: 4px
}

.status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em
}

.status-processed,
.status-delivered {
  background: #eaf7f0;
  color: var(--success)
}

.status-delivery_failed,
.status-processing_failed,
.status-rejected {
  background: #fff0ef;
  color: var(--danger)
}

.status-pending_delivery,
.status-downloading,
.status-processing {
  background: #fff7df;
  color: var(--warning)
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 45px
}

.error-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--danger)
}

.drop-zone {
  width: 100%;
  min-height: 230px;
  border: 1.5px dashed #9dafc1;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--navy);
  background: #f2f6fa
}

.drop-zone strong {
  font-size: 18px;
  color: var(--ink)
}

.drop-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #e5edf5;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 27px
}

.upload-list {
  display: grid;
  gap: 9px;
  margin-top: 18px
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px
}

.upload-row-copy {
  min-width: 0
}

.upload-row strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.upload-row small {
  color: var(--muted)
}

.upload-progress {
  height: 4px;
  background: #e7ecf1;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 8px
}

.upload-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--navy);
  transition: width .1s
}

.upload-actions,
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px
}

.form-error {
  color: var(--danger);
  font-size: 13px
}

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

.form-grid .form-actions,
.form-grid .check-row {
  grid-column: 1/-1
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 31, .45);
  z-index: 29
}

@media(max-width:980px) {
  .auth-shell {
    grid-template-columns: 1fr
  }

  .auth-brand-panel {
    min-height: 230px;
    padding: 40px
  }

  .auth-brand-copy img {
    width: 280px
  }

  .auth-brand-copy p {
    font-size: 17px;
    margin: 16px 0 0
  }

  .app-shell {
    display: block
  }

  .sidebar {
    position: fixed;
    left: -280px;
    z-index: 30;
    width: 260px;
    transition: left .2s
  }

  .sidebar.open {
    left: 0
  }

  .icon-button {
    display: block
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr
  }

  .profile-copy {
    display: none
  }
}

@media(max-width:640px) {
  .auth-brand-panel {
    min-height: 190px
  }

  .auth-form-panel {
    padding: 18px
  }

  .auth-card {
    padding: 28px 22px
  }

  .content {
    padding: 20px 16px
  }

  .topbar {
    padding: 0 16px
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr
  }

  .section-card,
  .upload-card {
    padding: 17px
  }

  .upload-actions {
    flex-direction: column
  }

  .upload-actions .button {
    width: 100%
  }
}

.auth-heading {
  margin-bottom: 28px
}

.auth-heading h1 {
  margin: 4px 0 8px
}

.auth-heading p {
  color: var(--muted);
  margin: 0
}

.button-primary {
  background: var(--navy);
  color: #fff
}

.button-full {
  width: 100%
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px
}

.auth-links a,
.auth-links button {
  color: var(--navy);
  font-weight: 750
}

.recaptcha-note {
  font-size: 10px !important;
  text-align: center;
  margin-top: 18px !important
}

.password-wrap {
  position: relative
}

.password-wrap input {
  padding-right: 60px
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer
}

.code-input {
  font-size: 25px;
  text-align: center;
  letter-spacing: .3em
}

.page-header {
  margin-bottom: 28px
}

.page-header h1 {
  margin: 4px 0 8px
}

.page-header p {
  color: var(--muted);
  margin: 0
}

.settings-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px
}

.panel {
  background: #fff;
  border: 1px solid rgba(2, 35, 70, .08);
  border-radius: var(--radius);
  padding: 24px
}

.panel h2 {
  margin-top: 0
}

.panel-copy {
  color: var(--muted)
}

.panel-muted {
  background: #f8fafc
}

.narrow-form {
  max-width: 620px
}

.upload-failed {
  border-color: #f3aaa5;
  background: #fff8f7
}

@media(max-width:800px) {
  .settings-grid {
    grid-template-columns: 1fr
  }
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical
}

.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center
}

.danger-link {
  color: var(--danger) !important
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.material-card {
  background: #fff;
  border: 1px solid rgba(2, 35, 70, .08);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px
}

.material-card h2 {
  margin: 7px 0
}

.material-card p {
  color: var(--muted)
}

.material-card>div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.quick-action {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.quick-action h2 {
  margin: 4px 0
}

.quick-action p {
  margin: 0;
  color: var(--muted)
}

@media(max-width:980px) {
  .material-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .material-grid {
    grid-template-columns: 1fr
  }

  .quick-action {
    align-items: flex-start;
    flex-direction: column
  }
}

.partner-brand {
  max-height: 42px;
  max-width: 190px;
  object-fit: contain;
  margin-left: 18px
}

.profile-summary {
  margin-top: 22px
}

.profile-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.profile-summary dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px
}

.profile-summary dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800
}

.profile-summary dd {
  margin: 6px 0 0;
  font-weight: 700
}

.search-bar {
  display: flex;
  align-items: end;
  gap: 12px
}

.search-bar label {
  flex: 1
}

.form-section-title {
  grid-column: 1/-1;
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px
}

.compact-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px
}

.compact-file input {
  max-width: 170px;
  padding: 6px
}

.recent-licenses {
  margin-top: 22px
}

.status-active {
  background: #eaf7f0;
  color: var(--success)
}

.status-paused {
  background: #fff7df;
  color: var(--warning)
}

.status-cancelled {
  background: #fff0ef;
  color: var(--danger)
}

.status-delivery_error,
.status-ocr_error,
.status-injection_error {
  background: #fff0ef;
  color: var(--danger)
}

@media(max-width:800px) {
  .profile-summary dl {
    grid-template-columns: 1fr
  }

  .search-bar {
    align-items: stretch;
    flex-direction: column
  }

  .partner-brand {
    max-width: 130px
  }
}


.entity-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.entity-choice {
  display: grid;
  gap: .55rem;
  min-height: 180px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease;
}

.entity-choice:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.entity-choice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.entity-choice strong {
  font-size: 1.25rem;
}

.entity-choice small {
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .65rem;
}

.checkbox-row input {
  width: auto;
}

@media (max-width:720px) {
  .entity-choice-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px 8px 0
}

.sidebar-company-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 112px;
  object-fit: contain
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45
}

.optional-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500
}

.compact-file+.link-button {
  margin-left: 4px
}

.alert-warning {
  background: #fff7df;
  color: var(--warning)
}

.pairing-panel {
  border-top: 3px solid var(--red)
}

.secret-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc
}

.secret-code code {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: .04em;
  overflow-wrap: anywhere
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0
}

.connection-grid div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.connection-grid dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800
}

.connection-grid dd {
  margin: 7px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere
}

@media(max-width:700px) {
  .secret-code {
    align-items: stretch;
    flex-direction: column
  }

  .connection-grid {
    grid-template-columns: 1fr
  }
}

/* ÁgoraScan v2.0.6 */
.form-grid>.form-pair {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start
}

.form-grid>.form-span-full {
  grid-column: 1/-1
}

.form-pair>label,
.form-pair>.form-pair-placeholder {
  min-width: 0
}

.form-pair select,
.form-pair input {
  min-height: 46px
}

.form-pair-aligned>label {
  display: grid;
  grid-template-rows: auto 46px auto;
  align-content: start
}

.field-help-placeholder {
  visibility: hidden
}

.connector-summary-card .section-title {
  align-items: flex-start;
  gap: 18px
}

.compact-connection-grid {
  margin-top: 4px
}

@media(max-width:640px) {
  .form-grid>.form-pair {
    grid-template-columns: 1fr
  }

  .form-pair-placeholder {
    display: none
  }

  .connector-summary-card .section-title {
    align-items: flex-start;
    flex-direction: column
  }

  .connector-summary-card .button {
    width: 100%
  }
}


/* ÁgoraScan v2.0.8 */
.status {
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s
}

.status-active,
.status-approved,
.status-completed,
.status-online,
.status-linked,
.status-delivered,
.status-processed {
  background: #e8f7ef;
  color: #126b43;
  border-color: #c8ead8
}

.status-pending,
.status-in_review,
.status-pending_delivery,
.status-delivering,
.status-processing,
.status-paused,
.status-degraded {
  background: #fff5d8;
  color: #825700;
  border-color: #f1dda4
}

.status-cancelled,
.status-superseded,
.status-package_retired,
.status-rejected,
.status-delivery_error,
.status-ocr_error,
.status-injection_error,
.status-revoked {
  background: #fff0ef;
  color: #a61b12;
  border-color: #f2c5c1
}

.status-disabled,
.status-suspended,
.status-archived,
.status-offline,
.status-unlinked,
.status-unknown {
  background: #eef2f6;
  color: #566477;
  border-color: #dce3ea
}

.status-conflict {
  background: #f3eefe;
  color: #5a3ba6;
  border-color: #ddd1fa
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 18, 32, .55);
  backdrop-filter: blur(2px)
}

.modal-card {
  width: min(100%, 390px);
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  text-align: center
}

.modal-card h2 {
  margin: 10px 0 8px;
  font-size: 22px
}

.modal-card p {
  margin: 0 0 22px;
  color: var(--muted)
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff0ef;
  color: var(--danger);
  font-size: 25px;
  font-weight: 900
}

.logo-manager {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
  align-items: center
}

.logo-preview {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 360/112;
  min-height: 112px;
  padding: 10px;
  border: 1px dashed #b7c4d1;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted)
}

.logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain
}

.logo-manager-controls {
  display: grid;
  gap: 12px
}

.logo-upload-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.logo-file-button {
  cursor: pointer
}

.logo-file-name {
  max-width: 310px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.button-danger-outline {
  background: #fff;
  color: var(--danger);
  border: 1px solid #efc1bd
}

.button-danger-outline:hover {
  background: #fff0ef;
  color: var(--danger)
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0
}

.profile-detail-grid div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.profile-detail-grid dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800
}

.profile-detail-grid dd {
  margin: 7px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere
}

.profile-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #f4f7fa;
  color: var(--muted)
}

.profile-notice a {
  color: var(--navy);
  font-weight: 750
}

@media(max-width:760px) {
  .logo-manager {
    grid-template-columns: 1fr
  }

  .profile-detail-grid {
    grid-template-columns: 1fr
  }
}


/* ÁgoraScan v2.0.10 */
.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  background: #64748b
}

.rate-limit-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -7px 0 22px;
  padding: 13px 15px;
  border: 1px solid #f1dda4;
  border-radius: 12px;
  background: #fff7df;
  color: #735000;
  text-align: left
}

.rate-limit-countdown span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35
}

.rate-limit-countdown strong {
  min-width: 68px;
  font-size: 22px;
  letter-spacing: .04em;
  text-align: right;
  font-variant-numeric: tabular-nums
}

@media(max-width:420px) {
  .rate-limit-countdown {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px
  }

  .rate-limit-countdown strong {
    text-align: left
  }
}

/* ÁgoraScan 2.0.11 · menú lateral plegable */
.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  transition: grid-template-columns .22s ease
}

.sidebar {
  width: 260px;
  transition: width .22s ease, padding .22s ease;
  overflow: visible
}

.brand {
  min-height: 66px;
  display: flex;
  align-items: center
}

.brand-full {
  display: block;
  transition: opacity .15s ease
}

.brand-mark {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 13px;
  place-items: center;
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  line-height: 1;
  background: rgba(255, 255, 255, .08)
}

.sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, padding .22s ease
}

.sidebar-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  width: 21px;
  height: 21px
}

.sidebar-nav-icon svg {
  display: block;
  width: 21px;
  height: 21px
}

.sidebar-nav-label {
  overflow: hidden;
  opacity: 1;
  transition: opacity .12s ease
}

.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease
}

.sidebar-toggle:hover {
  background: #f4f7fa;
  border-color: #cbd6e1
}

.sidebar-toggle-lines {
  display: grid;
  gap: 4px;
  width: 18px
}

.sidebar-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width .2s ease, transform .2s ease
}

.sidebar-toggle-lines span:nth-child(2) {
  width: 14px
}

.sidebar-collapsed .app-shell {
  grid-template-columns: 76px minmax(0, 1fr)
}

.sidebar-collapsed .sidebar {
  width: 76px;
  padding-left: 10px;
  padding-right: 10px
}

.sidebar-collapsed .brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0
}

.sidebar-collapsed .brand-full {
  display: none
}

.sidebar-collapsed .brand-mark {
  display: grid
}

.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  padding-left: 0;
  padding-right: 0
}

.sidebar-collapsed .sidebar-nav-label {
  display: none;
  opacity: 0
}

.sidebar-collapsed .sidebar-nav a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 80;
  transform: translate(5px, -50%);
  padding: 8px 10px;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(2, 20, 38, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease
}

.sidebar-collapsed .sidebar-nav a::before {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  z-index: 81;
  transform: translate(5px, -50%);
  border: 6px solid transparent;
  border-right-color: #102033;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease
}

.sidebar-collapsed .sidebar-nav a:hover::after,
.sidebar-collapsed .sidebar-nav a:focus-visible::after,
.sidebar-collapsed .sidebar-nav a:hover::before,
.sidebar-collapsed .sidebar-nav a:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%)
}

.sidebar-collapsed .sidebar-branding {
  min-height: 62px;
  padding: 13px 0 0
}

.sidebar-collapsed .sidebar-company-logo {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain
}

.sidebar-collapsed .sidebar-toggle-lines span:first-child {
  width: 12px;
  transform: translateX(6px)
}

.sidebar-collapsed .sidebar-toggle-lines span:nth-child(2) {
  width: 18px
}

.sidebar-collapsed .sidebar-toggle-lines span:last-child {
  width: 12px;
  transform: translateX(6px)
}

@media(max-width:980px) {

  .app-shell,
  .sidebar-collapsed .app-shell {
    display: block
  }

  .sidebar,
  .sidebar-collapsed .sidebar {
    width: 260px;
    padding: 25px 18px
  }

  .sidebar-collapsed .brand {
    justify-content: flex-start;
    padding: 8px 12px 30px
  }

  .sidebar-collapsed .brand-full {
    display: block
  }

  .sidebar-collapsed .brand-mark {
    display: none
  }

  .sidebar-collapsed .sidebar-nav a {
    justify-content: flex-start;
    padding: 11px 13px
  }

  .sidebar-collapsed .sidebar-nav-label {
    display: inline;
    opacity: 1
  }

  .sidebar-collapsed .sidebar-nav a::after,
  .sidebar-collapsed .sidebar-nav a::before {
    display: none
  }

  .sidebar-collapsed .sidebar-branding {
    min-height: 88px;
    padding: 16px 8px 0
  }

  .sidebar-collapsed .sidebar-company-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 360px;
    max-height: 112px
  }

  .sidebar-toggle {
    display: grid
  }

  .sidebar-collapsed .sidebar-toggle-lines span {
    width: 18px !important;
    transform: none !important
  }
}

@media(prefers-reduced-motion:reduce) {

  .app-shell,
  .sidebar,
  .sidebar-nav a,
  .sidebar-nav-label,
  .sidebar-toggle,
  .sidebar-toggle-lines span {
    transition: none !important
  }
}

.connector-agents-title {
  margin-top: 28px;
  margin-bottom: 12px
}

.connector-agents-title h3 {
  margin: 3px 0 0;
  font-size: 18px
}

.field-label-with-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted)
}

.inline-check input,
.visibility-check input,
.preference-check input {
  width: auto
}

.local-inline-form {
  display: grid;
  gap: 7px;
  min-width: 180px
}

.local-inline-form input {
  min-width: 170px;
  padding: 8px 10px
}

.connector-table-wrap {
  overflow-x: auto
}

.connector-equipment-table {
  min-width: 1450px
}

.connector-equipment-table td {
  vertical-align: top
}

.visibility-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap
}

.connector-actions {
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 120px
}

.downloads-table {
  min-width: 980px
}

.download-title-link {
  font-weight: 800;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: .15s
}

.download-title-link:hover {
  text-decoration-color: currentColor
}

.download-description {
  max-width: 420px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45
}

.button-compact {
  padding: 9px 13px
}

.preference-modal {
  text-align: left
}

.preference-modal .modal-icon,
.preference-modal h2 {
  text-align: center
}

.preference-modal>p {
  text-align: center
}

.preference-check {
  margin: 0 0 18px;
  justify-content: center
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px
}

.profile-notice p {
  margin: 7px 0 12px
}

.form-span-full {
  grid-column: 1/-1
}

@media(max-width:640px) {
  .field-label-with-option {
    align-items: flex-start;
    flex-direction: column
  }

  .modal-actions {
    flex-direction: column-reverse
  }

  .modal-actions .button {
    width: 100%
  }
}

.connector-conflict {
  display: block;
  margin-top: 8px;
  color: var(--danger) !important;
  font-weight: 700;
  line-height: 1.35
}


/* ÁgoraScan 2.1.1 · alineación CIF/DNI/NIE */
.form-pair-aligned>.form-field {
  display: grid;
  grid-template-rows: auto 46px auto;
  gap: 8px;
  align-content: start;
  min-width: 0
}

.form-pair-aligned>.form-field>input {
  min-height: 46px
}

.tax-id-other-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 1px;
  font-weight: 500
}

.tax-id-other-row input {
  width: auto;
  min-height: 0 !important;
  margin: 0;
  flex: 0 0 auto
}

.tax-id-other-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap
}

.tax-id-other-row .field-help {
  display: inline;
  margin: 0;
  font-size: 11px;
  line-height: 1.35
}

@media(max-width:640px) {
  .form-pair-aligned>.form-field {
    grid-template-rows: auto 46px auto
  }

  .tax-id-other-row {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .tax-id-other-row .field-help {
    flex-basis: calc(100% - 28px);
    margin-left: 28px
  }
}

/* ÁgoraScan 3.0: Partners, Cuentas cliente, Grupos, matriz de Locales y buscador global */
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(46vw, 620px);
  max-width: 620px;
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  margin-left: 18px
}

.global-search input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  box-shadow: none
}

.global-search input:focus {
  box-shadow: none
}

.global-search kbd {
  white-space: nowrap;
  border: 1px solid #d6dee7;
  border-bottom-width: 2px;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 11px
}

.global-search-page {
  max-width: none
}

.global-search-page label {
  flex: 1
}

.metric-text {
  font-size: 24px !important
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px
}

.group-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff
}

.group-card h3 {
  margin: 0 0 6px
}

.group-card p {
  margin: 0;
  color: var(--muted)
}

.group-card details {
  margin-top: 16px
}

.group-card summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--navy)
}

.group-card-new {
  background: #f8fafc
}

.group-local-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px
}

.group-local-list a {
  background: #eef3f7;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--navy)
}

.compact-form {
  margin-top: 14px
}

.compact-form input,
.compact-form select {
  padding: 9px 11px
}

.access-matrix-wrap {
  max-height: 620px
}

.access-matrix th,
.access-matrix td {
  text-align: center;
  vertical-align: middle;
  min-width: 92px
}

.access-matrix th:first-child,
.access-matrix td:first-child {
  text-align: left;
  min-width: 180px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2
}

.access-matrix thead th {
  position: sticky;
  top: 0;
  background: #f7f9fb;
  z-index: 3
}

.access-matrix thead th:first-child {
  z-index: 4;
  background: #f7f9fb
}

.access-matrix input[type=checkbox] {
  width: 19px;
  height: 19px;
  accent-color: var(--navy)
}

.matrix-actions {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-width: 105px
}

.access-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.choice-card {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  background: #fff;
  cursor: pointer
}

.choice-card:has(input:checked) {
  border-color: #6a8bac;
  background: #f4f8fc;
  box-shadow: 0 0 0 3px rgba(2, 35, 70, .06)
}

.choice-card input {
  width: auto;
  margin-top: 4px
}

.choice-card span {
  display: grid;
  gap: 5px
}

.choice-card small,
.checkbox-row small {
  color: var(--muted);
  font-weight: 500
}

.access-selection-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: #f8fafc
}

.access-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  font-weight: 500
}

.checkbox-row input {
  width: auto;
  margin-top: 3px
}

.checkbox-row span {
  display: grid;
  gap: 3px
}

.password-field-row {
  display: flex;
  gap: 7px;
  align-items: center
}

.password-field-row input {
  min-width: 0;
  flex: 1
}

.button-compact {
  padding: 11px 10px;
  white-space: nowrap
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px
}

.search-result-group {
  padding: 20px
}

.search-result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line)
}

.search-result-item:last-child {
  border-bottom: 0
}

.search-result-item strong {
  color: var(--navy)
}

.search-result-item span {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px
}

.search-result-item b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center
}

.upload-destination-label {
  max-width: 520px;
  margin-bottom: 20px
}

.connector-equipment-table .local-inline-form {
  display: grid;
  gap: 7px;
  min-width: 210px
}

.connector-equipment-table .local-inline-form select,
.connector-equipment-table .local-inline-form input {
  min-width: 160px;
  padding: 8px
}

.credential-password-fields[hidden],
.access-selection-panel[hidden],
[data-role-destination][hidden] {
  display: none !important
}

@media(max-width:1100px) {
  .global-search {
    min-width: 280px
  }

  .access-mode-options {
    grid-template-columns: 1fr
  }

  .password-field-row {
    flex-wrap: wrap
  }

  .password-field-row input {
    flex-basis: 100%
  }
}

@media(max-width:760px) {
  .global-search {
    display: none
  }

  .group-grid,
  .search-results-grid {
    grid-template-columns: 1fr
  }

  .matrix-actions {
    min-width: 90px
  }

  .page-heading .inline-actions {
    width: 100%
  }

  .page-heading .inline-actions .button {
    flex: 1
  }

  .password-field-row .button {
    flex: 1
  }
}

/* ÁgoraScan 3.0.1 */
.access-location-heading {
  min-width: 150px !important;
  white-space: normal;
  line-height: 1.25
}

.access-location-heading .matrix-location-name {
  display: inline;
  font-weight: 800;
  color: var(--navy);
  word-break: normal;
  overflow-wrap: anywhere
}

.access-location-heading .matrix-group-name {
  display: inline;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-transform: none;
  letter-spacing: .02em
}

.group-tax-id-help {
  display: grid !important;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: start;
  column-gap: 8px;
  row-gap: 3px
}

.group-tax-id-help .field-help {
  grid-column: 2;
  max-width: 310px;
  line-height: 1.35
}

/* ÁgoraScan 3.0.2 · acciones compactas, papelera y mejoras de credenciales */
.button-compact-icon {
  min-height: 38px;
  padding: 9px 12px;
  gap: 7px;
  white-space: nowrap
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px
}

.action-icon svg {
  display: block;
  width: 100%;
  height: 100%
}

.action-label {
  line-height: 1;
  font-size: 13px
}

.pairing-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.pairing-code-row .secret-code {
  flex: 1;
  min-width: min(100%, 320px)
}

.modal-icon-success {
  background: #eaf7f0 !important;
  color: var(--success) !important
}

.compact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #d8e3ed;
  border-radius: 12px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 13px
}

.compact-info-box strong {
  color: var(--ink);
  white-space: nowrap
}

.archive-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.archive-filter-bar label {
  min-width: 220px;
  flex: 1
}

.archive-filter-bar .button {
  flex: 0 0 auto
}

.audit-metadata {
  display: block;
  max-width: 520px;
  max-height: 90px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  color: #31465d;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 7px 9px
}

@media(max-width:640px) {
  .button-compact-icon {
    padding: 9px 10px;
    gap: 6px
  }

  .button-compact-icon .action-label {
    font-size: 12px
  }

  .password-field-row .button-compact-icon {
    flex: 1 1 auto;
    min-width: 88px
  }

  .archive-filter-bar {
    align-items: stretch;
    flex-direction: column
  }

  .archive-filter-bar label,
  .archive-filter-bar .button {
    width: 100%;
    min-width: 0
  }

  .compact-info-box {
    flex-direction: column;
    gap: 4px
  }

  .compact-info-box strong {
    white-space: normal
  }
}

.motor-communication-note {
  border-left: 4px solid #2563eb;
}

.motor-error-text {
  color: #b42318;
  max-width: 34rem;
  white-space: normal;
}

.motor-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: -4px 0 22px
}

.motor-summary-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 128px;
  min-width: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(2, 35, 70, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 35, 63, .045)
}

.motor-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #cbd5e1
}

.motor-summary-card>span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase
}

.motor-summary-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 850;
  font-variant-numeric: tabular-nums
}

.motor-summary-card small {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35
}

.motor-summary-card.is-ready::before {
  background: #18a465
}

.motor-summary-card.is-warning::before {
  background: #d49716
}

.motor-summary-card.is-danger::before {
  background: #dc2626
}

.motor-summary-card.is-warning {
  border-color: rgba(212, 151, 22, .28);
  background: #fffdf7
}

.motor-summary-card.is-danger {
  border-color: rgba(220, 38, 38, .24);
  background: #fffafa
}

.motor-summary-meter {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2
}

.motor-summary-meter i {
  display: block;
  width: var(--motor-current-load);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #18a465);
  transition: width .25s ease
}

.motor-hour-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(18px, 1fr));
  align-items: end;
  gap: .35rem;
  height: 270px;
  padding: 14px .25rem 24px;
  overflow-x: auto;
  overflow-y: hidden;
}

.motor-hour-column {
  display: grid;
  grid-template-rows: 1.25rem 190px 1.25rem;
  align-items: end;
  min-width: 18px;
  text-align: center;
}

.motor-hour-value {
  color: #64748b;
  font-size: .72rem;
}

.motor-hour-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: var(--motor-bar-height);
  min-height: 3px;
  max-height: 190px;
  overflow: hidden;
  border-radius: .35rem .35rem 0 0;
  background: #dbeafe;
}

.motor-hour-completed {
  display: block;
  height: var(--motor-completed-share);
  background: #2563eb;
}

.motor-hour-failed {
  display: block;
  flex: 1;
  background: #dc2626;
}

.motor-hour-column small {
  font-size: .65rem;
  color: #64748b;
  transform: rotate(-45deg);
  transform-origin: center;
}

.motor-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.motor-error-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .motor-monitor-grid {
    grid-template-columns: 1fr;
  }

  .motor-hour-chart {
    grid-template-columns: repeat(24, 24px);
  }
}

/* ÁgoraScan 3.0.3 · auditoría, paginación e iconos diferenciados */
.agora-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line)
}

.agora-pagination-summary {
  font-size: 12px;
  color: var(--muted)
}

.agora-pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap
}

.pagination-button,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none
}

.pagination-button:hover {
  background: #f3f7fa;
  border-color: #bdcbd8
}

.pagination-button.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff
}

.pagination-button.disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #f5f7f9
}

.pagination-ellipsis {
  min-width: auto;
  border-color: transparent;
  background: transparent;
  padding-left: 3px;
  padding-right: 3px
}

@media(max-width:640px) {
  .agora-pagination {
    align-items: stretch;
    flex-direction: column
  }

  .agora-pagination-links {
    justify-content: flex-start
  }

  .pagination-button {
    flex: 1 1 auto
  }
}

/* ÁgoraScan 3.0.5 · Restablecimiento de plataforma */
.danger-zone-card {
  border: 1px solid #efc1bd;
  background: linear-gradient(180deg, #fff, #fff9f8)
}

.danger-zone-card .section-title {
  margin-bottom: 8px
}

.danger-zone-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.reset-card {
  max-width: 1100px;
  margin-inline: auto
}

.reset-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px
}

.reset-progress span {
  padding: 11px 12px;
  border-radius: 10px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center
}

.reset-progress span.active {
  background: #e5edf5;
  color: var(--navy)
}

.reset-warning-block {
  margin-bottom: 22px
}

.reset-warning-block h2 {
  margin: 5px 0 8px
}

.reset-warning-block>p:last-child {
  margin: 0;
  color: var(--muted)
}

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

.reset-list {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line)
}

.reset-list h3 {
  margin: 0 0 12px
}

.reset-list ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45
}

.reset-list-danger {
  background: #fff7f6;
  border-color: #efc1bd
}

.reset-list-safe {
  background: #f1faf5;
  border-color: #c9e8d8
}

.reset-form {
  margin-top: 24px
}

.reset-confirm-check {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
  align-items: flex-start
}

.reset-password-form {
  max-width: 560px
}

.reset-cancel-form {
  text-align: center;
  margin-top: 16px
}

.reset-final-warning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #efc1bd;
  background: #fff7f6
}

.reset-final-warning .modal-icon {
  flex: 0 0 46px;
  margin: 0
}

.reset-final-warning h2 {
  margin: 4px 0 8px
}

.reset-final-warning p {
  margin: 0;
  color: var(--muted)
}

.reset-execute-button {
  font-weight: 850
}

@media(max-width:760px) {

  .reset-progress,
  .reset-columns {
    grid-template-columns: 1fr
  }

  .reset-progress span {
    text-align: left
  }

  .reset-final-warning {
    flex-direction: column
  }

  .danger-zone-card .section-title {
    align-items: flex-start;
    flex-direction: column
  }

  .danger-zone-card .button {
    width: 100%
  }
}

/* ÁgoraScan 3.1 - revisión JSON, licencias por Local e informes */
.report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem
}

.report-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  background: var(--surface)
}

.report-card h3 {
  margin: .25rem 0
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .7rem
}

.report-tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(74, 120, 255, .12);
  font-size: .78rem;
  font-weight: 700
}

.review-list,
.location-card-list {
  display: grid;
  gap: 1rem
}

.review-document-card {
  display: grid;
  gap: 1rem
}

.review-document-head,
.location-card-heading,
.review-pagination-bar,
.review-submit-card,
.danger-zone-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem
}

.review-document-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem
}

.review-document-meta>div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem;
  border-radius: 12px;
  background: var(--bg)
}

.review-field-section {
  margin: 0
}

.review-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.review-field>span {
  font-size: .82rem;
  font-weight: 700
}

.review-submit-card {
  position: static;
  box-shadow: none
}

.location-management-card {
  display: grid;
  gap: 1.1rem
}

.location-license-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.2fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg)
}

.location-license-copy {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  word-break: break-word
}

.location-license-copy>span,
.license-usage-caption {
  font-size: .82rem
}

.license-usage-block {
  display: flex;
  flex-direction: column;
  gap: .45rem
}

.license-usage-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem
}

.license-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(128, 128, 128, .22)
}

.license-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a78ff, #7f5cff)
}

.license-progress.small {
  height: 7px;
  margin: .35rem 0
}

.location-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem
}

.location-action-grid>div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px
}

.connector-agents-title {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.connector-agents-title span {
  font-weight: 800
}

.trial-license-copy {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem
}

.trial-license-copy .secret-code {
  flex: 1
}

.license-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.license-renew-details {
  margin-top: .55rem
}

.license-renew-details summary {
  cursor: pointer;
  font-weight: 700
}

.license-renew-details .compact-form {
  margin-top: .6rem;
  min-width: 230px
}

.license-partner-actions {
  margin-top: .6rem
}

.disabled {
  pointer-events: none;
  opacity: .55
}

.panel-muted code {
  word-break: break-all
}

.search-bar select {
  min-width: 190px
}

@media(max-width:900px) {
  .location-license-panel {
    grid-template-columns: 1fr
  }

  .review-document-head,
  .location-card-heading,
  .review-pagination-bar,
  .review-submit-card,
  .danger-zone-card {
    flex-direction: column
  }

  .review-submit-card {
    position: static
  }

  .trial-license-copy {
    align-items: stretch;
    flex-direction: column
  }
}

/* ÁgoraScan 3.1.1 · flujo orgánico de gestión de licencias */
.license-workflow-picker {
  display: grid;
  gap: 16px
}

.license-view-form {
  display: flex;
  align-items: flex-end;
  gap: 12px
}

.license-view-form label {
  min-width: min(100%, 360px)
}

.license-tab-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.license-tab-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none
}

.license-tab-links a:hover {
  background: #f4f7fa
}

.license-tab-links a.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff
}

.license-tab-links a span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 39, 64, .09);
  font-size: 11px
}

.license-tab-links a.active span {
  background: rgba(255, 255, 255, .18)
}

.license-management-table {
  min-width: 1180px
}

.license-management-table td {
  vertical-align: top
}

.sortable-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap
}

.sortable-heading span {
  font-size: 12px;
  color: var(--muted)
}

.sortable-heading:hover {
  color: var(--navy)
}

.request-detail-box {
  min-width: 250px
}

.request-detail-box summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800
}

.request-detail-box[open] {
  min-width: 420px
}

.request-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 0
}

.request-data-grid>div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc
}

.request-data-grid dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 800
}

.request-data-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere
}

.request-data-wide {
  grid-column: 1/-1
}

.license-request-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px
}

.button-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px
}

.approval-detail-box[open] {
  min-width: 520px
}

.approval-license-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.license-reject-form {
  margin-top: 9px
}

.license-search-bar {
  margin-bottom: 18px
}

.selected-location-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc
}

.selected-location-card h3 {
  margin: 3px 0 6px
}

.selected-location-card p {
  margin: 0;
  color: var(--muted)
}

.new-license-form {
  margin-top: 10px
}

.license-request-moved-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}

.license-request-moved-notice .button {
  margin-left: auto;
  white-space: nowrap
}

@media(max-width:760px) {
  .license-view-form {
    align-items: stretch;
    flex-direction: column
  }

  .license-view-form label,
  .license-view-form .button {
    width: 100%;
    min-width: 0
  }

  .license-tab-links {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .license-tab-links a {
    justify-content: space-between
  }

  .request-detail-box[open],
  .approval-detail-box[open] {
    min-width: 300px
  }

  .request-data-grid {
    grid-template-columns: 1fr
  }

  .request-data-wide {
    grid-column: auto
  }

  .selected-location-card,
  .license-request-moved-notice {
    align-items: stretch;
    flex-direction: column
  }

  .selected-location-card .button,
  .license-request-moved-notice .button {
    width: 100%;
    margin-left: 0
  }

  .approval-license-form .form-pair {
    grid-template-columns: 1fr
  }
}

/* ÁgoraScan 3.1.2 · tipos de licencia reutilizables */
.requested-plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0
}

.requested-plan-summary>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.requested-plan-summary span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 800
}

.requested-plan-summary strong {
  font-size: 14px
}

.compact-help {
  display: block;
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.45
}

.license-plan-settings {
  margin-top: 24px
}

.plan-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px
}

.plan-settings-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff
}

.plan-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px
}

.plan-settings-heading h3 {
  margin: 7px 0 0
}

.compact-check {
  align-items: flex-start;
  font-size: 12px
}

.form-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.new-plan-details {
  margin-top: 18px;
  padding: 15px;
  border: 1px dashed var(--line);
  border-radius: 13px
}

.new-plan-details>summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy)
}

.new-plan-form {
  margin-top: 16px
}

.plan-request-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px
}

.plan-request-catalog article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.plan-request-catalog article span {
  font-size: 12px;
  font-weight: 750;
  color: var(--navy)
}

.plan-request-catalog article p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45
}

@media(max-width:760px) {

  .requested-plan-summary,
  .form-triple {
    grid-template-columns: 1fr
  }

  .plan-settings-grid {
    grid-template-columns: 1fr
  }

  .plan-settings-heading {
    flex-direction: column
  }
}

/* ÁgoraScan 2.2.4 · fichas de Locales, ajustes de licencias e informes */
.license-workflow-tabs-only {
  padding: 16px 20px
}

.license-workflow-tabs-only .license-tab-links {
  margin: 0
}

.form-triple>label {
  grid-template-rows: auto auto minmax(18px, auto);
  align-content: start
}

.form-triple>label small {
  align-self: start;
  min-height: 18px
}

.location-overview-section {
  overflow: visible
}

.location-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.location-summary-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid #9dafc1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(10, 35, 63, .045)
}

.location-summary-card.location-card-ready {
  border-top-color: #38b42f
}

.location-summary-card.location-card-warning {
  border-top-color: #e1a829
}

.location-summary-card.location-card-disabled {
  border-top-color: #c55a5a
}

.location-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px
}

.location-summary-head h3 {
  margin: 4px 0 5px;
  font-size: 20px
}

.location-summary-head small {
  color: var(--muted);
  overflow-wrap: anywhere
}

.location-summary-statuses {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px
}

.location-summary-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0
}

.location-summary-data>div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  background: #f8fafc
}

.location-summary-data dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted)
}

.location-summary-data dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere
}

.location-summary-usage {
  margin-top: auto
}

.location-request-summary {
  margin: 0
}

.location-summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px
}

.location-summary-actions .muted {
  font-size: 12px
}

.location-summary-actions .button {
  white-space: nowrap
}

.report-total-row td {
  border-top: 2px solid var(--navy);
  background: #f2f6fa;
  color: var(--navy);
  font-weight: 850
}

.report-total-row td:first-child {
  letter-spacing: .06em
}

@media(max-width:1180px) {
  .location-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .location-summary-grid {
    grid-template-columns: 1fr
  }

  .location-summary-head,
  .location-summary-actions {
    align-items: stretch;
    flex-direction: column
  }

  .location-summary-statuses {
    justify-content: flex-start
  }

  .location-summary-data {
    grid-template-columns: 1fr
  }

  .location-summary-actions .button {
    width: 100%
  }
}


/* ÁgoraScan 2.2.5 · revisión sin panel flotante y contadores pendientes */
.review-form>.review-submit-card {
  grid-column: 1/-1;
  position: static;
  bottom: auto;
  z-index: auto;
  box-shadow: 0 8px 28px rgba(10, 35, 63, .045)
}

.sidebar-nav-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(245, 10, 48, .28)
}

.sidebar-collapsed .sidebar-nav-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 4px;
  border-width: 1px;
  font-size: 9px
}

@media(max-width:980px) {
  .sidebar-collapsed .sidebar-nav-badge {
    position: static;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    border-width: 2px;
    font-size: 11px
  }
}

@media(max-width:640px) {
  .review-submit-card .form-actions {
    width: 100%;
    flex-direction: column
  }

  .review-submit-card .form-actions .button {
    width: 100%
  }
}

/* ÁgoraScan 2.2.6 · matriz de albaranes, datos generales y enlaces de gestión */
.review-batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0
}

.review-batch-actions .check-row {
  margin: 0
}

.review-management-table {
  min-width: 1040px;
  table-layout: fixed
}

.review-management-table td {
  vertical-align: top
}

.review-management-table th,
.review-management-table td {
  overflow: hidden;
  text-overflow: ellipsis
}

.review-col-select {
  width: 48px
}

.review-col-file {
  width: 32%
}

.review-col-local {
  width: 12%
}

.review-col-date {
  width: 11%
}

.review-col-status {
  width: 15%
}

.review-col-action {
  width: 120px
}

.review-management-table th:first-child,
.review-management-table td:first-child {
  text-align: center
}

.review-management-table input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy)
}

.review-action-cell {
  text-align: left;
  white-space: normal
}

.review-action-cell form {
  margin: 8px 0 0
}

.review-action-cell .button-small {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px
}

.review-action-cell>.muted {
  display: block;
  text-align: center
}

.entity-table-link {
  display: inline-block;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none
}

.entity-table-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

.review-general-section {
  grid-column: 1/-1
}

.review-general-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px
}

.review-general-block {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc
}

.review-general-block h3 {
  margin: 0 0 12px;
  font-size: 17px
}

.review-field-grid-compact {
  grid-template-columns: 1fr
}

.review-field-grid-compact .review-field {
  min-width: 0
}

@media(max-width:1050px) {
  .review-general-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  .review-general-grid {
    grid-template-columns: 1fr
  }

  .review-management-table {
    min-width: 860px
  }
}

.review-array-list {
  display: grid;
  gap: 1rem
}

.review-array-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg)
}

.review-array-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem
}

.review-array-item-heading h3 {
  margin: 0
}

.review-field-count {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(74, 120, 255, .1);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap
}

.review-form>.review-field-section,
.review-form>.review-submit-card {
  grid-column: 1/-1
}

.review-submit-card {
  align-items: center
}

.review-submit-card .form-actions {
  flex-shrink: 0
}

@media(max-width:700px) {

  .review-array-item-heading,
  .review-submit-card {
    align-items: stretch;
    flex-direction: column
  }

  .review-submit-card .form-actions {
    width: 100%
  }

  .review-submit-card .form-actions .button {
    width: 100%
  }
}

/* ÁgoraScan 2.3.2 · ciclos y gestión de licencias */
.status-warning {
  color: #8a4b00;
  background: #fff3d6;
  border-color: #f1d18a;
}

.warning-box {
  border: 1px solid #f1d18a;
  background: #fffaf0;
}

.danger-text {
  color: #b42318;
  font-weight: 700;
}

.license-admin-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  min-width: 15rem;
}

.license-admin-actions-wrap form {
  margin: 0;
}

.license-compact-management-table th:first-child,
.license-compact-management-table td:first-child {
  min-width: 15rem;
}

.license-compact-management-table th:last-child,
.license-compact-management-table td:last-child {
  min-width: 16rem;
}

.location-license-panel .license-usage-block small {
  display: block;
  margin-top: .35rem;
}

/* ÁgoraScan 2.3.3 · alineación y selector de licencias pendientes */
.license-plan-cycle-grid {
  align-items: start
}

.license-plan-cycle-grid>label {
  align-content: start
}

.license-plan-cycle-grid .field-label-title {
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  line-height: 1.25
}

.license-plan-cycle-grid>label>input {
  margin-top: 0
}

.license-plan-cycle-grid>label>small {
  display: block;
  min-height: 64px;
  line-height: 1.35
}

.pending-license-association-card {
  grid-column: span 1
}

.pending-license-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden
}

.pending-license-picker>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 750;
  color: var(--navy);
  list-style: none
}

.pending-license-picker>summary::-webkit-details-marker {
  display: none
}

.pending-license-picker>summary::after {
  content: '⌄';
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease
}

.pending-license-picker[open]>summary::after {
  transform: rotate(180deg)
}

.pending-license-picker-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8fafc
}

.pending-license-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 500
}

.pending-license-option:hover {
  border-color: #91a9c0;
  background: #f5f8fb
}

.pending-license-option:has(input:checked) {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(2, 35, 70, .08)
}

.pending-license-option input {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto
}

.pending-license-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.pending-license-option-copy strong {
  font-size: 14px;
  color: var(--ink)
}

.pending-license-option-copy small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere
}

.pending-license-select-field {
  display: grid;
  gap: 8px
}

.pending-license-select-field>span {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy)
}

.pending-license-select-field select {
  width: 100%;
  min-height: 46px
}

.pending-license-select-field small {
  color: var(--muted);
  line-height: 1.4
}

.license-association-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 4px 0
}

.license-association-divider::before,
.license-association-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1
}

.license-action-explanation {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f6f8fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4
}

@media(max-width:760px) {
  .license-plan-cycle-grid .field-label-title {
    min-height: auto
  }

  .license-plan-cycle-grid>label>small {
    min-height: auto
  }

  .pending-license-picker-list {
    max-height: 240px
  }
}

/* ÁgoraScan 2.3.4 · gestión compacta de licencia en la ficha del Local */
.license-action-picker {
  display: grid;
  gap: .7rem;
  max-width: 34rem
}

.license-action-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center
}

.license-action-control select {
  min-width: 0
}

.license-action-control .button {
  min-width: 6.5rem;
  white-space: nowrap
}

.license-action-picker-link {
  justify-self: start
}

@media(max-width:640px) {
  .license-action-control {
    grid-template-columns: 1fr
  }

  .license-action-control .button,
  .license-action-picker-link {
    width: 100%
  }
}

/* ÁgoraScan 2.3.5 · Informes SQL configurables */
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: end
}

.report-filter-actions {
  grid-column: 1/-1;
  flex-wrap: wrap
}

.report-export-only .form-actions {
  margin-top: 0
}

.report-results-table th {
  white-space: nowrap
}

.report-results-table .sortable-heading {
  width: 100%;
  justify-content: flex-start
}

.report-results-table .sortable-heading span {
  min-width: 14px;
  text-align: center
}

.report-card {
  min-height: 250px
}

.report-card>div>p {
  color: var(--muted);
  line-height: 1.55
}

.report-card h3 {
  margin: 0 0 .65rem
}

.report-card .button {
  width: 100%
}

@media(max-width:640px) {
  .report-filter-grid {
    grid-template-columns: 1fr
  }

  .report-filter-actions {
    flex-direction: column
  }

  .report-filter-actions .button {
    width: 100%
  }
}

/* ÁgoraScan 2.3.6 · Catálogo de Informes clasificado por tipos */
.report-catalog-filters {
  align-items: center
}

.report-catalog-filters input[type="search"] {
  flex: 1 1 360px
}

.report-catalog-filters select {
  flex: 0 1 260px
}

.report-catalog-summary {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin: -.15rem 0 1rem;
  padding: 0 .2rem;
  color: var(--muted);
  font-size: 13px
}

.report-catalog-summary strong {
  color: var(--navy);
  font-size: 19px
}

.report-category-section {
  display: grid;
  gap: 1rem
}

.report-category-heading {
  align-items: flex-start;
  margin-bottom: 0
}

.report-category-heading>div {
  max-width: 760px
}

.report-category-heading h2 {
  margin: .2rem 0 .35rem
}

.report-category-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5
}

.report-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap
}

@media(max-width:800px) {
  .report-catalog-filters {
    align-items: stretch;
    flex-direction: column
  }

  .report-catalog-filters input[type="search"],
  .report-catalog-filters select,
  .report-catalog-filters .button {
    width: 100%;
    max-width: none;
    flex-basis: auto
  }

  .report-category-heading {
    align-items: stretch;
    flex-direction: column
  }

  .report-category-count {
    align-self: flex-start
  }
}


/* ÁgoraScan 2.3.7 · tarjetas uniformes del catálogo de Informes */
.report-category-section .report-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.report-category-section .report-card {
  min-width: 0
}

@media(max-width:1280px) {
  .report-category-section .report-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:980px) {
  .report-category-section .report-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  .report-category-section .report-card-grid {
    grid-template-columns: 1fr
  }
}

/* Informes 2.3.8: filtros relacionados y búsqueda de opciones. */
.report-filter-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0
}

.report-filter-control>label {
  font-weight: 700;
  color: var(--text)
}

.report-filter-control>small {
  line-height: 1.35
}

.report-filter-option-search {
  min-height: 38px;
  padding: .55rem .75rem;
  font-size: .9rem;
  background: #f8fafc
}

.report-filter-control select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
  opacity: 1
}

.audit-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px
}

.audit-filter-primary,
.audit-date-range {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap
}

.audit-filter-primary label {
  min-width: 240px;
  flex: 1
}

.audit-date-range label {
  min-width: 210px;
  max-width: 280px;
  flex: 1
}

@media(max-width:640px) {

  .audit-filter-primary,
  .audit-date-range {
    align-items: stretch;
    flex-direction: column
  }

  .audit-filter-primary label,
  .audit-date-range label,
  .audit-filter-primary .button {
    width: 100%;
    min-width: 0;
    max-width: none
  }
}

/* ÁgoraScan 2.3.10 · desplegables buscables con apariencia de select nativo */
.report-searchable-select {
  position: relative;
  min-width: 0
}

.report-combobox-toggle,
.report-combobox-panel {
  display: none
}

.report-searchable-select.is-enhanced .report-combobox-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important
}

.report-searchable-select.is-enhanced .report-combobox-toggle {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  outline: 0;
  cursor: pointer;
  transition: .15s
}

.report-searchable-select.is-enhanced .report-combobox-toggle:hover {
  border-color: #b8c5d2
}

.report-searchable-select.is-enhanced .report-combobox-toggle:focus-visible,
.report-searchable-select.is-open .report-combobox-toggle {
  border-color: #6a8bac;
  box-shadow: 0 0 0 3px rgba(2, 35, 70, .08)
}

.report-searchable-select.is-enhanced .report-combobox-toggle:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
  opacity: 1
}

.report-combobox-toggle [data-report-combobox-value] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.report-combobox-chevron {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: #26384a;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
  transition: none
}

.report-searchable-select.is-open {
  z-index: 40
}

.report-searchable-select.is-open .report-combobox-chevron {
  transform: rotate(45deg) translate(-1px, -1px)
}

.report-searchable-select.is-enhanced .report-combobox-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 60;
  display: block;
  width: 100%;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid #7f8790;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 35, 63, .16)
}

.report-searchable-select.is-enhanced .report-combobox-panel[hidden] {
  display: none
}

.report-combobox-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px;
  border-bottom: 1px solid #cfd6de;
  background: #fff
}

.report-combobox-search {
  min-height: 38px;
  border-radius: 4px;
  padding: 8px 10px;
  background: #fff;
  font-size: 13px
}

.report-combobox-options {
  max-height: 270px;
  overflow-y: auto;
  padding: 0
}

.report-combobox-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer
}

.report-combobox-option:hover,
.report-combobox-option:focus-visible {
  background: #e8f1fb;
  outline: 0
}

.report-combobox-option.is-selected {
  background: #2167d1;
  color: #fff;
  font-weight: 400
}

.report-combobox-option.is-selected::after {
  content: none
}

.report-combobox-option.is-placeholder {
  color: inherit
}

.report-combobox-option:disabled {
  cursor: not-allowed;
  opacity: .55
}

.report-combobox-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px
}

@media(max-width:640px) {
  .report-searchable-select.is-enhanced .report-combobox-panel {
    min-width: 0;
    max-width: none
  }

  .report-combobox-options {
    max-height: 240px
  }
}

/* ÁgoraScan 2.3.11 · diseño unificado y alineación estable de filtros */
.report-filter-grid {
  align-items: start;
  grid-auto-rows: max-content
}

.report-filter-control {
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 7px;
  min-width: 0
}

.report-filter-control>label {
  min-height: 18px;
  margin: 0;
  align-content: end
}

.report-filter-control>small {
  margin: 0;
  line-height: 1.35
}

/* Todos los campos directos usan el mismo contenedor visual que los desplegables buscables. */
.report-filter-control>select,
.report-filter-control>input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background-color: #fff;
  color: var(--ink);
  box-shadow: none;
  line-height: 1.2;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.report-filter-control>input {
  padding: 0 14px
}

.report-filter-control>select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 42px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%238594a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.report-filter-control>select::-ms-expand {
  display: none
}

.report-filter-control>select:hover,
.report-filter-control>input:hover,
.report-searchable-select.is-enhanced .report-combobox-toggle:hover {
  border-color: #b8c5d2
}

.report-filter-control>select:focus,
.report-filter-control>input:focus,
.report-searchable-select.is-enhanced .report-combobox-toggle:focus-visible {
  border-color: #6a8bac;
  box-shadow: 0 0 0 3px rgba(2, 35, 70, .08);
  outline: 0;
}

.report-filter-control>select:disabled,
.report-filter-control>input:disabled {
  cursor: not-allowed;
  background-color: #f1f5f9;
  color: #64748b;
  opacity: 1;
}

.report-filter-control>input[type="date"] {
  padding-right: 14px
}

/* El selector con buscador conserva exactamente la misma altura, borde y flecha. */
.report-searchable-select {
  width: 100%;
  min-height: 46px
}

.report-searchable-select.is-enhanced .report-combobox-toggle {
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  line-height: 1.2;
}

.report-combobox-chevron {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 1.5px solid #8594a3;
  border-bottom: 1.5px solid #8594a3;
  color: #8594a3;
}

.report-searchable-select.is-open .report-combobox-toggle {
  border-color: #6a8bac;
  box-shadow: 0 0 0 3px rgba(2, 35, 70, .08);
}

/* Los mensajes auxiliares crecen hacia abajo y nunca elevan los demás filtros de la fila. */
.report-filter-control:has(>small) {
  align-self: start
}

.report-filter-actions {
  align-self: start
}

@media(max-width:640px) {

  .report-filter-control>select,
  .report-filter-control>input,
  .report-searchable-select.is-enhanced .report-combobox-toggle {
    height: 46px;
    min-height: 46px
  }
}

/* Primera activación: concentra la interfaz en el cambio obligatorio de contraseña. */
.credential-focus-mode .sidebar-nav,
.credential-focus-mode .sidebar .brand,
.credential-focus-mode .topbar> :not(.profile-menu) {
  filter: grayscale(1);
  opacity: .38;
}

.credential-focus-mode .navigation-locked {
  pointer-events: none;
  cursor: not-allowed;
}

.activation-focus-card {
  border: 2px solid #174f86;
  background: #eef6ff;
}

.activation-focus-card p {
  margin: .4rem 0 0;
}

.ocr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.ocr-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfe
}

.ocr-admin-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start
}

.ocr-admin-card h3 {
  margin: 0 0 4px
}

.ocr-admin-card dd {
  margin: 5px 0 0
}

.ocr-admin-card details,
.ocr-pool-summary {
  border-top: 1px solid var(--line);
  padding-top: 12px
}

.ocr-admin-card summary,
.ocr-pool-summary summary {
  cursor: pointer
}

.compact-admin-form {
  margin-top: 15px
}

.ocr-pool-summary {
  margin-top: 18px
}

.ocr-admin-form select[multiple],
.compact-admin-form select[multiple] {
  height: auto
}

@media(max-width:900px) {
  .ocr-card-grid {
    grid-template-columns: 1fr
  }
}

.button-with-badge {
  position: relative
}

.inline-review-badge {
  position: static;
  margin-left: 3px
}

.upload-auto-check {
  display: flex !important;
  grid-column: auto !important;
  margin: 0 4px
}

.upload-auto-check input {
  width: auto
}

.upload-actions {
  align-items: center
}

.license-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.license-data-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px
}

.license-data-grid dt,
.license-data-columns dt {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800
}

.license-data-grid dd,
.license-data-columns dd {
  margin: 5px 0 12px
}

.license-data-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px
}

.license-data-columns h2 {
  font-size: 18px
}

@media(max-width:800px) {

  .license-data-grid,
  .license-data-columns {
    grid-template-columns: 1fr
  }
}

/* ÁgoraScan 2.3.13 · administración de Motores */
.sidebar-nav-badge[hidden],
.inline-review-badge[hidden] {
  display: none !important
}

.motor-empty-state {
  grid-column: 1/-1;
  width: 100%;
  margin: 0;
  text-align: center
}

.motor-guide>summary {
  cursor: pointer
}

.motor-guide-body {
  display: grid;
  gap: 18px;
  margin-top: 18px
}

.motor-guide-body>p {
  margin: 0;
  color: var(--muted)
}

.motor-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.motor-guide-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc
}

.motor-guide-grid h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.motor-guide-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.motor-guide-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55
}

.motor-guide-steps li+li {
  margin-top: 6px
}

.ocr-admin-form>.form-field,
.compact-admin-form>.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0
}

.ocr-admin-form>.form-field>label,
.compact-admin-form>.form-field>label {
  align-content: end;
  margin: 0
}

.ocr-admin-form>.form-field>input,
.ocr-admin-form>.form-field>select,
.compact-admin-form>.form-field>input,
.compact-admin-form>.form-field>select {
  min-height: 46px
}

.check-row {
  align-items: flex-start
}

.check-row>input {
  flex: 0 0 auto;
  margin-top: 3px
}

.check-row-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-weight: 500
}

.check-row-copy strong {
  font-size: 14px
}

.check-row-copy .field-help {
  margin: 0
}

.motor-member-table .field-help {
  margin-top: 10px
}

.motor-member-table input[type="checkbox"] {
  width: auto
}

.motor-member-table input[type="number"] {
  min-width: 90px
}

.motor-status-capacity-row>.form-field {
  grid-template-rows: minmax(36px, auto) 46px auto
}

@media(max-width:900px) {
  .motor-guide-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  .motor-status-capacity-row>.form-field {
    grid-template-rows: auto 46px auto
  }
}

/* ÁgoraScan 2.3.14 · balanceo porcentual y mantenimiento de pools */
.motor-pool-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  color: var(--muted)
}

.motor-pool-empty strong {
  color: var(--text)
}

.motor-percentage-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px
}

.motor-percentage-total.is-valid {
  background: #ecfdf5;
  color: #166534
}

.motor-percentage-total strong {
  font-size: 15px
}

.motor-percentage-cell {
  display: grid;
  gap: 4px;
  min-width: 150px
}

.motor-percentage-cell small {
  color: var(--muted);
  line-height: 1.35
}

.motor-maintenance-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #f3c969;
  border-radius: 12px;
  background: #fffaf0
}

.motor-maintenance-panel p {
  margin: 0;
  color: var(--muted)
}

.motor-pool-maintenance {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.motor-pool-maintenance>summary {
  color: #9a3412;
  font-weight: 700
}

[data-pool-priority-column][hidden],
[data-pool-percent-column][hidden],
[data-pool-priority-only][hidden] {
  display: none !important
}

/* ÁgoraScan 2.3.17 · repositorio y despliegue de actualizaciones */
.update-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff
}

.update-tabs a {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 750;
  font-size: 14px
}

.update-tabs a:hover,
.update-tabs a.active {
  background: var(--navy);
  color: #fff
}

.update-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  align-items: end
}

.update-filter-grid .filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.update-launch-card {
  border-left: 4px solid var(--navy)
}

.update-launch-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr;
  gap: 18px;
  align-items: start
}

.update-selection-mode {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 8px
}

.update-selection-mode legend {
  padding: 0 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted)
}

.update-check-all {
  display: flex !important;
  font-weight: 700
}

.update-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.update-filtered-mode [data-update-target],
.update-filtered-mode [data-update-check-all] {
  opacity: .45
}

.update-package-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink)
}

.hash-value {
  display: block;
  max-width: 230px;
  overflow-wrap: anywhere;
  font-size: 11px
}

.update-result-success {
  color: var(--success);
  font-weight: 750
}

.update-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px
}

.update-trace-details {
  margin-top: 9px;
  min-width: 230px
}

.update-trace-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 750
}

.update-timeline {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px
}

.update-timeline li {
  padding-left: 3px
}

.update-timeline li span,
.update-timeline li small {
  display: block;
  color: var(--muted);
  font-size: 12px
}

.update-attempt-list {
  padding-top: 8px;
  border-top: 1px solid var(--line)
}

.update-attempt-list p {
  font-size: 12px;
  color: var(--muted)
}

@media(max-width:1100px) {
  .update-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .update-launch-grid {
    grid-template-columns: 1fr 1fr
  }

  .update-selection-mode {
    grid-column: 1/-1
  }

  .update-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:680px) {

  .update-filter-grid,
  .update-launch-grid,
  .update-metric-grid {
    grid-template-columns: 1fr
  }

  .update-selection-mode {
    grid-column: auto
  }

  .update-submit-row {
    align-items: stretch;
    flex-direction: column
  }

  .update-submit-row .button {
    width: 100%
  }
}

/* ÁgoraScan 2.3.18 · sustitución guiada y edición de contadores */
.update-scope-filter {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(280px, 2fr) auto;
  gap: 14px;
  align-items: end
}

.update-scope-filter .filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.update-launch-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(250px, 1.2fr);
  align-items: stretch
}

.update-launch-field {
  display: grid;
  grid-template-rows: minmax(38px, auto) 46px minmax(36px, auto);
  gap: 8px;
  align-content: start
}

.update-launch-field-label {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  line-height: 1.3
}

.update-launch-field>select,
.update-launch-field>input {
  min-height: 46px
}

.update-launch-field>small {
  align-self: start;
  line-height: 1.45;
  color: var(--muted)
}

.update-selection-mode {
  min-height: 100%;
  align-content: start
}

.update-selection-mode .check-row {
  line-height: 1.35
}

.license-association-options:has(.license-replacement-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch
}

.license-replacement-card {
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  height: 100%
}

.license-replacement-card h3 {
  margin: 4px 0 8px
}

.license-replacement-card p {
  margin: 0;
  line-height: 1.5
}

.license-replacement-card .form-actions {
  align-self: end;
  margin-top: auto
}

.replacement-license-summary {
  display: grid;
  gap: 8px;
  margin: 0
}

.replacement-license-summary>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc
}

.replacement-license-summary dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 800
}

.replacement-license-summary dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 750
}

.compact-empty-state {
  padding: 24px 12px
}

.license-counter-editor {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.license-counter-editor[hidden] {
  display: none !important
}

.license-counter-editor form {
  display: grid;
  gap: 10px
}

.license-counter-editor .inline-actions {
  justify-content: flex-end
}

.compact-counter-editor {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent
}

.compact-counter-editor>summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 750;
  list-style: none
}

.compact-counter-editor>summary::-webkit-details-marker {
  display: none
}

.compact-counter-editor form {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 7px);
  min-width: 230px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow)
}

@media(max-width:1120px) {
  .license-association-options:has(.license-replacement-card) {
    grid-template-columns: 1fr
  }
}

@media(max-width:900px) {
  .update-scope-filter {
    grid-template-columns: 1fr 1fr
  }

  .update-scope-filter .filter-actions {
    grid-column: 1/-1
  }

  .update-launch-grid {
    grid-template-columns: 1fr 1fr
  }

  .update-selection-mode {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {

  .update-scope-filter,
  .update-launch-grid {
    grid-template-columns: 1fr
  }

  .update-scope-filter .filter-actions,
  .update-selection-mode {
    grid-column: auto
  }

  .update-scope-filter .filter-actions {
    align-items: stretch;
    flex-direction: column
  }

  .update-scope-filter .button {
    width: 100%
  }
}

/* ÁgoraScan 2.3.20 · distribución múltiple de Agentes y cola persistente */
.update-destination-grid {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(360px, 2fr);
  gap: 16px;
  align-items: start
}

.update-scope-values {
  grid-row: span 2
}

.update-scope-values select {
  min-height: 190px
}

.update-scope-search input {
  min-height: 46px
}

.update-batch-name {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px
}

.agent-basket {
  display: grid;
  gap: 12px
}

.agent-basket-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc
}

.agent-basket-row .danger-link {
  margin-bottom: 12px
}

.update-connector-search {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px
}

.update-connector-search .filter-actions {
  display: flex;
  gap: 8px
}

.connector-agent-pill {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 12px;
  white-space: nowrap
}

.update-package-operations {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px
}

.update-package-operations legend {
  padding: 0 6px;
  font-weight: 750;
  color: var(--muted)
}

.update-agent-type-form {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 12px;
  align-items: end
}

.agent-type-list {
  display: grid;
  gap: 8px;
  margin-top: 16px
}

.agent-type-list>div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, .7fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px
}

.queue-action-form {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 300px
}

.queue-action-form select {
  min-width: 170px
}

.queue-action-form .button {
  white-space: nowrap
}

.technical-definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.technical-definition-grid>div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.technical-definition-grid dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase
}

.technical-definition-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere
}

.technical-definition-grid code {
  font-size: 11px;
  white-space: normal
}

.update-error-details {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px
}

.update-error-details summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--navy)
}

@media(max-width:1100px) {
  .update-destination-grid {
    grid-template-columns: 1fr 1fr
  }

  .update-scope-values {
    grid-column: 1/-1;
    grid-row: auto
  }

  .technical-definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .update-agent-type-form {
    grid-template-columns: 1fr 1fr
  }

  .update-agent-type-form .button {
    width: max-content
  }
}

@media(max-width:700px) {

  .update-destination-grid,
  .agent-basket-row,
  .update-connector-search,
  .update-agent-type-form,
  .technical-definition-grid {
    grid-template-columns: 1fr
  }

  .update-batch-name {
    grid-template-columns: 1fr
  }

  .agent-basket-row .danger-link {
    margin: 0
  }

  .queue-action-form {
    min-width: 240px;
    align-items: stretch;
    flex-direction: column
  }

  .queue-action-form select {
    min-width: 0
  }

  .agent-type-list>div {
    grid-template-columns: 1fr 1fr
  }

  .update-connector-search .filter-actions {
    align-items: stretch;
    flex-direction: column
  }
}

/* ÁgoraScan 2.3.17 · auditoría técnica integral */
.technical-audit-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 13px;
  margin-bottom: 20px;
  align-items: end
}

.technical-audit-filters .filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.technical-audit-table table {
  min-width: 1420px
}

.technical-audit-table td {
  vertical-align: top
}

.technical-severity {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em
}

.severity-debug,
.severity-info {
  background: #eaf2fb;
  color: #24547d
}

.severity-warning {
  background: #fff5d9;
  color: #8a5b00
}

.severity-error {
  background: #fff0ef;
  color: #b42318
}

.severity-critical {
  background: #7a0014;
  color: #fff
}

.technical-error-message {
  max-width: 420px;
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace
}

.technical-details {
  margin-top: 8px
}

.technical-details summary,
.technical-resolve summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 750;
  font-size: 13px
}

.technical-details pre {
  max-width: 560px;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 10px;
  border-radius: 8px;
  background: #101827;
  color: #d7e3ef;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace
}

.technical-details .audit-metadata {
  display: block;
  max-width: 560px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap
}

.trace-link {
  display: block;
  max-width: 190px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-decoration: underline
}

.technical-resolve form {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  min-width: 210px
}

.technical-resolve textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  resize: vertical
}

@media(max-width:1100px) {
  .technical-audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:680px) {
  .technical-audit-filters {
    grid-template-columns: 1fr
  }
}

/* ÁgoraScan 2.3.19 · acciones compactas, formularios Motor y filtros técnicos */
.license-compact-management-table .license-admin-actions-wrap {
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 310px
}

.license-action-menu {
  position: relative
}

.license-action-menu>summary {
  list-style: none;
  white-space: nowrap
}

.license-action-menu>summary::-webkit-details-marker {
  display: none
}

.license-action-chevron {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform .15s ease
}

.license-action-menu[open] .license-action-chevron {
  transform: rotate(180deg)
}

.license-action-popover {
  position: absolute;
  z-index: 40;
  right: 0;
  top: calc(100% + 8px);
  width: 270px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10, 35, 63, .18)
}

.license-action-popover form {
  display: block;
  width: 100%
}

.license-menu-item {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer
}

.license-menu-item:hover,
.license-menu-counter-editor[open]>.license-menu-item {
  background: #f1f4f7
}

.license-action-separator {
  height: 1px;
  margin: 6px 4px;
  background: var(--line)
}

.license-replace-popover {
  width: 390px
}

.license-inline-replace-form {
  display: grid !important;
  gap: 9px;
  padding: 9px 5px
}

.license-inline-replace-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750
}

.license-inline-replace-form select {
  width: 100%;
  min-height: 42px
}

.license-inline-replace-form .button {
  width: 100%
}

.license-menu-counter-editor>summary {
  list-style: none
}

.license-menu-counter-editor>summary::-webkit-details-marker {
  display: none
}

.license-menu-counter-editor form {
  display: grid;
  gap: 9px;
  margin: 3px 4px 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc
}

.license-menu-counter-editor label {
  font-size: 12px
}

.license-menu-counter-editor input {
  min-height: 42px
}

.license-menu-counter-editor .button {
  width: 100%
}

.table-wrap:has(.license-action-menu[open]) {
  overflow: visible
}

.ocr-admin-form .form-field,
.ocr-admin-card .compact-admin-form>.form-field,
.ocr-admin-card .compact-admin-form>.form-pair>.form-field {
  display: grid;
  grid-template-rows: minmax(42px, auto) minmax(46px, auto) auto;
  gap: 8px;
  align-content: start;
  min-width: 0
}

.ocr-admin-form .form-field>label,
.ocr-admin-card .compact-admin-form>.form-field>label,
.ocr-admin-card .compact-admin-form>.form-pair>.form-field>label {
  display: flex;
  align-items: flex-end;
  min-height: 42px;
  line-height: 1.3
}

.ocr-admin-form .form-field>input,
.ocr-admin-form .form-field>select,
.ocr-admin-card .compact-admin-form>.form-field>input,
.ocr-admin-card .compact-admin-form>.form-field>select,
.ocr-admin-card .compact-admin-form>.form-pair>.form-field>input,
.ocr-admin-card .compact-admin-form>.form-pair>.form-field>select {
  min-height: 46px
}

.ocr-admin-form .form-field>.field-help,
.ocr-admin-card .compact-admin-form>.form-field>.field-help,
.ocr-admin-card .compact-admin-form>.form-pair>.form-field>.field-help {
  margin-top: 0;
  align-self: start
}

.ocr-admin-form .optional-label,
.ocr-admin-card .compact-admin-form .optional-label {
  display: inline;
  line-height: 1.3
}

.technical-filter-shell {
  display: grid;
  gap: 13px;
  margin-bottom: 20px
}

.technical-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 12px;
  align-items: end
}

.technical-filter-toolbar>button {
  min-height: 46px;
  white-space: nowrap
}

.technical-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(2, 35, 70, .12);
  font-size: 11px;
  font-weight: 850
}

.technical-filter-toggle[aria-expanded="true"] {
  background: var(--navy);
  color: #fff
}

.technical-filter-toggle[aria-expanded="true"] .technical-filter-count {
  background: rgba(255, 255, 255, .2)
}

.technical-filter-drawer {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc
}

.technical-filter-drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px
}

.technical-filter-drawer-heading>div {
  display: grid;
  gap: 3px
}

.technical-filter-drawer-heading small {
  color: var(--muted);
  font-weight: 500
}

.technical-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 13px;
  align-items: end
}

.technical-custom-date-range {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px
}

.technical-custom-date-range[hidden] {
  display: none
}

.technical-quick-filters,
.technical-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.technical-quick-filters {
  font-size: 12px;
  color: var(--muted)
}

.technical-quick-filters>span {
  font-weight: 750;
  color: var(--ink)
}

.technical-quick-filters a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700
}

.technical-quick-filters a:hover {
  border-color: #aab8c7;
  background: #f7f9fb
}

.technical-active-filters {
  padding-top: 11px;
  border-top: 1px solid var(--line)
}

.technical-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf2fb;
  color: #173f64;
  font-size: 12px;
  font-weight: 750
}

.technical-filter-chip span {
  font-size: 16px;
  line-height: 1
}

.technical-filter-chip:hover {
  background: #dceaf8
}

.technical-clear-filters {
  margin-left: auto;
  color: var(--danger);
  font-size: 12px;
  font-weight: 750
}

@media(max-width:1250px) {
  .technical-filter-toolbar {
    grid-template-columns: repeat(3, minmax(170px, 1fr))
  }

  .technical-filter-search {
    grid-column: span 2
  }

  .technical-filter-toolbar>button {
    width: 100%
  }

  .technical-filter-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr))
  }
}

@media(max-width:900px) {
  .technical-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .technical-filter-search {
    grid-column: 1/-1
  }

  .technical-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .license-compact-management-table .license-admin-actions-wrap {
    min-width: 290px
  }
}

@media(max-width:640px) {
  .license-compact-management-table .license-admin-actions-wrap {
    align-items: stretch;
    flex-direction: column;
    min-width: 210px
  }

  .license-compact-management-table .license-admin-actions-wrap>.button,
  .license-action-menu>summary {
    width: 100%
  }

  .license-action-popover,
  .license-replace-popover {
    position: static;
    width: 100%;
    margin-top: 7px
  }

  .table-wrap:has(.license-action-menu[open]) {
    overflow: auto
  }

  .ocr-admin-form .form-field,
  .ocr-admin-card .compact-admin-form>.form-field,
  .ocr-admin-card .compact-admin-form>.form-pair>.form-field {
    grid-template-rows: auto minmax(46px, auto) auto
  }

  .ocr-admin-form .form-field>label,
  .ocr-admin-card .compact-admin-form>.form-field>label,
  .ocr-admin-card .compact-admin-form>.form-pair>.form-field>label {
    min-height: 0
  }

  .technical-filter-toolbar,
  .technical-filter-grid,
  .technical-custom-date-range {
    grid-template-columns: 1fr
  }

  .technical-filter-search,
  .technical-custom-date-range {
    grid-column: auto
  }

  .technical-filter-toolbar>button {
    width: 100%
  }

  .technical-filter-drawer-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .technical-clear-filters {
    width: 100%;
    margin-left: 0;
    padding-top: 3px
  }
}

/* ÁgoraScan 2.3.21 · monitor de Motores en directo */
.motor-heading-actions,
.motor-monitor-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap
}

.motor-monitor-controls label {
  min-width: 135px
}

.motor-live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap
}

.motor-live-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .14)
}

.motor-live-state[data-state="live"] {
  border-color: #bfe7d3;
  background: #effaf4;
  color: #126b43
}

.motor-live-state[data-state="live"] i {
  background: #18a465;
  box-shadow: 0 0 0 4px rgba(24, 164, 101, .14);
  animation: motor-live-pulse 2s infinite
}

.motor-live-state[data-state="polling"] {
  border-color: #f1dda4;
  background: #fffaf0;
  color: #825700
}

.motor-live-state[data-state="polling"] i {
  background: #d49716
}

.motor-live-state[data-state="offline"] {
  border-color: #efc7c4;
  background: #fff7f6;
  color: #a61b12
}

.motor-live-state[data-state="offline"] i {
  background: #dc2626
}

@keyframes motor-live-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(24, 164, 101, 0)
  }
}

.motor-live-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px
}

.motor-live-kpis article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc
}

.motor-live-kpis span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase
}

.motor-live-kpis strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px
}

.motor-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.motor-canvas-card {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff
}

.motor-canvas-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px
}

.motor-canvas-card figcaption small {
  color: var(--muted);
  font-size: 11px
}

.motor-canvas-card canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 220px
}

.motor-comparison-section {
  overflow: hidden
}

.motor-comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px
}

.motor-compare-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s
}

.motor-compare-card.motor-risk,
.motor-risk.motor-compare-card {
  border-color: #efc1bd;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .06)
}

.motor-compare-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px
}

.motor-compare-card header>div {
  min-width: 0
}

.motor-compare-card header strong,
.motor-compare-card header small {
  display: block
}

.motor-compare-card header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.motor-compare-card header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px
}

.motor-compare-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2
}

.motor-compare-meter span {
  display: block;
  width: var(--motor-current-load);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f9f6e);
  transition: width .3s
}

.motor-compare-card.motor-risk .motor-compare-meter span {
  background: linear-gradient(90deg, #d97706, #dc2626)
}

.motor-compare-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0
}

.motor-compare-card dl div {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f8fafc
}

.motor-compare-card dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase
}

.motor-compare-card dd {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750
}

.motor-compare-card .button {
  margin-top: auto
}

.motor-comparison-charts {
  margin-top: 4px
}

.motor-monitor-footnote {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px
}

.motor-monitor-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.motor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8
}

.motor-dot-online {
  background: #18a465
}

.motor-dot-degraded {
  background: #d49716
}

.motor-dot-offline {
  background: #dc2626
}

[data-motor-monitor-root] [data-motor-last-seen],
[data-motor-monitor-root] [data-motor-capacity],
[data-motor-monitor-root] [data-motor-load],
[data-motor-monitor-root] [data-motor-cpu],
[data-motor-monitor-root] [data-motor-memory],
[data-motor-monitor-root] [data-motor-queue] {
  font-variant-numeric: tabular-nums
}

.motor-risk[data-monitor-scope="detail"] .summary-grid .summary-card:first-child {
  border-color: #efc1bd;
  background: #fffafa
}

@media(max-width:1180px) {
  .motor-live-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .motor-comparison-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:820px) {
  .motor-chart-grid {
    grid-template-columns: 1fr
  }

  .motor-comparison-cards {
    grid-template-columns: 1fr
  }

  .motor-canvas-card figcaption {
    align-items: flex-start;
    flex-direction: column
  }

  .motor-heading-actions,
  .motor-monitor-controls {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column
  }

  .motor-heading-actions .button,
  .motor-monitor-controls label {
    width: 100%
  }

  .motor-live-state {
    justify-content: center
  }
}

@media(max-width:600px) {
  .motor-live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .motor-compare-card dl {
    grid-template-columns: 1fr
  }

  .motor-canvas-card {
    padding: 10px
  }

  .motor-canvas-card canvas {
    min-height: 200px
  }
}

/* ÁgoraScan 2.3.22 · edición de Motores, periodos persistentes y programación */
.motor-connections-table-wrap {
  overflow-x: auto
}

.motor-connections-table {
  min-width: 1040px
}

.motor-connections-table .motor-summary-row>td {
  vertical-align: top
}

.motor-row-actions {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 245px
}

.motor-row-actions form {
  margin: 0
}

.motor-edit-row>td {
  padding: 0 12px 18px !important;
  border-top: 0;
  background: #f7f9fc
}

.motor-edit-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 35, 63, .07)
}

.motor-edit-panel>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
  color: var(--navy)
}

.motor-edit-panel>summary::-webkit-details-marker {
  display: none
}

.motor-edit-panel>summary span {
  font-weight: 850
}

.motor-edit-panel>summary small {
  color: var(--muted);
  font-weight: 600
}

.motor-edit-panel>summary:before {
  content: '▸';
  font-size: 14px;
  transition: transform .16s ease
}

.motor-edit-panel[open]>summary:before {
  transform: rotate(90deg)
}

.motor-edit-panel[open]>summary {
  border-bottom: 1px solid var(--line)
}

.motor-connection-form {
  padding: 18px
}

.motor-connection-form>.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  grid-column: 1/-1
}

.motor-connection-form>.form-field {
  grid-column: auto
}

.motor-connection-form .field-help {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45
}

.motor-connection-form .field-help code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f7;
  color: #173f64;
  font-size: 11px
}

.motor-connection-form .check-row-copy {
  display: grid;
  gap: 2px
}

.motor-connection-form .check-row-copy small {
  color: var(--muted);
  font-weight: 500
}

.motor-telemetry-title {
  align-items: flex-end
}

.motor-period-control {
  display: grid;
  grid-template-columns: minmax(150px, 190px);
  gap: 6px;
  align-content: end;
  min-width: 190px;
  margin: 0
}

.motor-period-control>span {
  min-height: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800
}

.motor-period-control select {
  width: 100%;
  min-height: 46px
}

.motor-period-control small {
  min-height: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25
}

.motor-monitor-controls {
  align-items: flex-end
}

.motor-monitor-controls>.motor-live-state {
  margin-bottom: 23px
}

.motor-monitor-controls>.motor-monitor-refresh-info {
  flex-basis: 100%;
  margin-top: -6px;
  text-align: right;
  color: var(--muted);
  font-size: 11px
}

.motor-monitor-refresh-info {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px
}

.update-schedule-panel {
  grid-column: 1/-1;
  margin: 15px 0 18px;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc
}

.update-schedule-panel legend {
  padding: 0 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850
}

.update-schedule-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) minmax(260px, 1.25fr);
  gap: 13px;
  align-items: stretch
}

.update-schedule-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer
}

.update-schedule-option:has(input:checked) {
  border-color: #7aa8d2;
  box-shadow: 0 0 0 3px rgba(39, 104, 160, .09);
  background: #f7fbff
}

.update-schedule-option input {
  width: auto;
  min-height: 0;
  margin-top: 3px
}

.update-schedule-option span {
  display: grid;
  gap: 4px
}

.update-schedule-option strong {
  font-size: 13px
}

.update-schedule-option small,
.update-scheduled-at small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4
}

.update-scheduled-at {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  font-weight: 800
}

.update-scheduled-at input {
  min-height: 44px
}

.update-scheduled-at input:disabled {
  opacity: .58;
  background: #eef1f5;
  cursor: not-allowed
}

.update-schedule-panel-inline {
  margin: 0
}

.update-scheduled-banner>div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.update-scheduled-banner strong {
  color: var(--navy)
}

.update-scheduled-banner small {
  flex-basis: 100%;
  color: var(--muted)
}

.update-scheduled-label {
  margin-top: 5px;
  color: #7a5500 !important;
  font-weight: 700 !important
}

.status-scheduled {
  border-color: #ead38e !important;
  background: #fff8df !important;
  color: #765300 !important
}

@media(max-width:1050px) {
  .update-schedule-options {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .update-scheduled-at {
    grid-column: 1/-1
  }

  .motor-connection-form>.form-pair {
    grid-template-columns: 1fr
  }
}

@media(max-width:820px) {
  .motor-edit-panel>summary {
    align-items: flex-start;
    flex-direction: column
  }

  .motor-telemetry-title {
    align-items: stretch
  }

  .motor-period-control {
    grid-template-columns: 1fr;
    width: 100%
  }

  .motor-monitor-controls>.motor-live-state {
    margin-bottom: 0
  }

  .motor-monitor-controls>.motor-monitor-refresh-info {
    text-align: left
  }
}

@media(max-width:640px) {
  .update-schedule-options {
    grid-template-columns: 1fr
  }

  .update-scheduled-at {
    grid-column: auto
  }

  .motor-connection-form {
    padding: 13px
  }
}


/* ÁgoraScan 2.3.23 · eliminación segura de pools */
.motor-pool-delete-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #d9e1ea);
}

.motor-pool-delete-panel>div {
  min-width: 0;
}

.motor-pool-delete-panel .field-help {
  display: block;
  margin-top: 0.25rem;
}

.motor-pool-delete-panel form {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .motor-pool-delete-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .motor-pool-delete-panel .button {
    width: 100%;
  }
}

/* ÁgoraScan 2.3.24 · UUID visible y copiable para cada conexión Motor */
.motor-uuid-field {
  grid-column: 1/-1 !important
}

.motor-uuid-copy,
.motor-created-identity-value,
.motor-detail-identity-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.motor-uuid-copy {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc
}

.motor-uuid-copy code,
.motor-created-identity-value code,
.motor-detail-identity-value code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em
}

.motor-uuid-copy code {
  flex: 1
}

.motor-uuid-pending {
  padding: 12px 14px;
  border: 1px dashed #aebdca;
  border-radius: 11px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750
}

.motor-uuid-summary {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4c647a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px !important
}

.motor-created-identity,
.motor-detail-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.motor-created-identity h2,
.motor-detail-identity h2 {
  margin: .2rem 0 .35rem
}

.motor-created-identity-value,
.motor-detail-identity-value {
  flex: 0 1 610px;
  justify-content: flex-end;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc
}

.motor-created-identity-value code,
.motor-detail-identity-value code {
  flex: 1
}

@media(max-width:820px) {

  .motor-created-identity,
  .motor-detail-identity {
    align-items: stretch;
    flex-direction: column
  }

  .motor-created-identity-value,
  .motor-detail-identity-value {
    flex-basis: auto;
    width: 100%;
    align-items: stretch;
    flex-direction: column
  }

  .motor-created-identity-value .button,
  .motor-detail-identity-value .button,
  .motor-uuid-copy .button {
    width: 100%
  }

  .motor-uuid-copy {
    align-items: stretch;
    flex-direction: column
  }
}


/* ÁgoraScan 2.3.27 · campos técnicos del Motor */
.review-form>.review-technical-heading,
.review-form>.review-technical-section {
  grid-column: 1/-1
}

.review-technical-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-style: dashed
}

.review-readonly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(88, 104, 120, .12);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap
}

.review-technical-section {
  background: rgba(248, 250, 252, .72)
}

.review-technical-section .section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem
}

.review-readonly-grid {
  margin-top: .9rem
}

.review-field-readonly input,
.review-field-readonly textarea {
  background: rgba(226, 232, 240, .5);
  border-style: dashed;
  cursor: default
}

.review-field-readonly textarea {
  resize: vertical;
  min-height: 82px
}

.review-field-readonly small {
  font-size: .68rem;
  color: var(--muted);
  overflow-wrap: anywhere
}

.review-field-readonly input::placeholder,
.review-field-readonly textarea::placeholder {
  font-style: italic
}

@media(max-width:700px) {

  .review-technical-heading,
  .review-technical-section .section-title {
    flex-direction: column
  }

  .review-readonly-badge {
    align-self: flex-start
  }
}

/* ÁgoraScan 2.3.33 · etiquetas de estado y edición visible de rutas Motor */
.location-summary-status-item {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: max-content
}

.location-summary-status-label {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.1
}

.ocr-pool-summary>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}

.ocr-routing-rule-list {
  display: grid;
  gap: 14px;
  margin-top: 20px
}

.ocr-routing-rule-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden
}

.ocr-routing-rule-card>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: #f8fafc
}

.ocr-routing-rule-card>summary::-webkit-details-marker {
  display: none
}

.ocr-routing-rule-card[open]>summary {
  border-bottom: 1px solid var(--line)
}

.ocr-routing-rule-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0
}

.ocr-routing-rule-summary-copy strong {
  font-size: 16px;
  color: var(--navy)
}

.ocr-routing-rule-summary-copy small {
  color: var(--muted);
  overflow-wrap: anywhere
}

.ocr-routing-rule-summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700
}

.ocr-routing-rule-edit-form {
  padding: 18px;
  margin: 0
}

.ocr-rule-delete-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid #efc1bd;
  background: #fff9f8
}

@media(max-width:760px) {
  .location-summary-status-item {
    justify-items: start
  }

  .ocr-pool-summary>summary,
  .ocr-routing-rule-card>summary,
  .ocr-rule-delete-panel {
    align-items: stretch;
    flex-direction: column
  }

  .ocr-routing-rule-summary-meta {
    justify-content: flex-start
  }

  .ocr-rule-delete-panel .button {
    width: 100%
  }
}

.motor-route-warning,
.motor-route-usage {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800
}

.motor-route-warning {
  color: var(--warning)
}

.motor-route-usage {
  color: var(--muted)
}

/* ÁgoraScan 2.3.34 · configuración efectiva, credenciales y destino persistido */
.motor-stored-configuration {
  margin: 16px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc
}

.motor-stored-configuration .section-title {
  margin-bottom: 14px
}

.motor-stored-configuration h3 {
  margin: 3px 0 0
}

.motor-stored-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0
}

.motor-stored-data-grid>div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  background: #fff
}

.motor-stored-data-grid dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .075em;
  color: var(--muted);
  font-weight: 850
}

.motor-stored-data-grid dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere
}

.motor-stored-data-grid .motor-stored-wide {
  grid-column: span 2
}

.motor-secret-field {
  align-content: start
}

.motor-secret-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 750;
  color: var(--navy);
  cursor: pointer
}

.motor-secret-toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--navy)
}

.ocr-effective-target {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #c9dfd3;
  border-radius: 11px;
  background: #f1faf5
}

.ocr-effective-target>span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .075em;
  color: var(--muted);
  font-weight: 850
}

.ocr-effective-target>strong {
  color: var(--success);
  overflow-wrap: anywhere
}

.ocr-effective-target>small {
  color: var(--muted);
  line-height: 1.4
}

@media(max-width:1050px) {
  .motor-stored-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  .motor-stored-data-grid {
    grid-template-columns: 1fr
  }

  .motor-stored-data-grid .motor-stored-wide {
    grid-column: auto
  }
}

/* ÁgoraScan 2.3.35 · consumo por páginas en la pantalla de subida. */
.upload-license-usage {
  margin: .2rem 0 .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg)
}

.upload-license-usage[hidden] {
  display: none !important
}

.upload-processing-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0
}

.upload-processing-choice[hidden] {
  display: none !important
}

.upload-processing-choice legend {
  grid-column: 1/-1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 2px
}

.upload-processing-choice .choice-card {
  margin: 0
}

.location-options-field {
  gap: 9px
}

.local-visibility-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: auto;
  gap: 9px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer
}

.local-visibility-toggle input[type=checkbox] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--navy)
}

.documents-action-cell {
  vertical-align: top;
  white-space: nowrap;
  text-align: center
}

.documents-action-cell form {
  display: inline;
  margin: 0
}

.documents-action-cell .link-button+.link-button,
.documents-action-cell .link-button+form,
.documents-action-cell form+.link-button {
  margin-left: 12px
}

.documents-latest-table {
  table-layout: fixed
}

.documents-col-file {
  width: 30%
}

.documents-col-local {
  width: 13%
}

.documents-col-uploader {
  width: 14%
}

.documents-col-date {
  width: 12%
}

.documents-col-status {
  width: 15%
}

.documents-col-action {
  width: 64px
}

.documents-latest-table th:nth-child(7),
.documents-latest-table td:nth-child(7) {
  text-align: center;
  padding-left: 8px;
  padding-right: 8px
}

@media(max-width:640px) {
  .upload-processing-choice {
    grid-template-columns: 1fr
  }
}

/* AgoraScan 2.3.36 · gestion de albaranes compacta y alineada */
.review-management-table {
  min-width: 1360px;
  table-layout: fixed
}

.review-management-table th,
.review-management-table td {
  padding: 13px 12px;
  vertical-align: middle;
  overflow: visible;
  text-overflow: clip
}

.review-management-table td:nth-child(2),
.review-management-table td:nth-child(7) {
  overflow: hidden
}

.review-management-table td:nth-child(2) small,
.review-management-table td:nth-child(7) .muted,
.review-management-table td:nth-child(7) .error-inline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.review-col-select {
  width: 64px
}

.review-col-file {
  width: 21%
}

.review-col-local {
  width: 12%
}

.review-col-uploader {
  width: 150px
}

.review-col-date {
  width: 11%
}

.review-col-status {
  width: 14%
}

.review-col-detail {
  width: 21%
}

.review-col-action {
  width: 108px
}

.review-management-table th:first-child,
.review-management-table td:first-child {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  white-space: nowrap
}

.review-management-table input[type=checkbox] {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin: 0;
  vertical-align: middle
}

.review-management-table th:nth-child(4),
.review-management-table td:nth-child(4) {
  white-space: nowrap
}

.document-shared-label {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid #adc5b5;
  border-radius: 3px;
  background: #eef7f1;
  color: #2e6b4f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap
}

.review-management-table tbody tr {
  height: 72px
}

.review-action-cell {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap
}

.review-action-stack {
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: center;
  min-height: 54px
}

.review-action-stack form {
  margin: 0
}

.review-action-stack .button-small {
  width: auto;
  min-width: 82px;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap
}

.review-action-stack .danger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid #efb0aa;
  border-radius: 9px;
  background: #fff;
  color: var(--danger)!important;
  font-size: 12px;
  line-height: 1.2
}

.review-action-stack .danger-link:hover {
  background: #fff0ef;
  border-color: #d96d66
}

.review-action-stack>.muted {
  display: inline;
  text-align: center
}


/* ÁgoraScan 2.3.36 · configuración técnica centralizada. */
.system-settings-heading {
  align-items: stretch
}

.settings-status-card {
  min-width: 230px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px
}

.settings-status-card strong {
  font-size: 22px
}

.settings-status-card span {
  color: var(--muted)
}

.settings-intro-panel {
  margin-bottom: 18px
}

.settings-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.settings-priority-grid>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px
}

.settings-priority-grid strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff
}

.system-settings-sections {
  display: grid;
  gap: 14px
}

.settings-accordion {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 14px
}

.settings-accordion>summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  list-style: none
}

.settings-accordion>summary::-webkit-details-marker {
  display: none
}

.settings-accordion>summary span:first-child {
  display: grid;
  gap: 5px
}

.settings-accordion>summary strong {
  font-size: 18px
}

.settings-accordion>summary small {
  color: var(--muted);
  font-weight: 400
}

.settings-accordion[open]>summary {
  border-bottom: 1px solid var(--line);
  background: #f8fafc
}

.settings-count {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700
}

.settings-section-form {
  padding: 20px
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.settings-field-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  display: grid;
  gap: 13px;
  align-content: start
}

.settings-field-card.risk-critical {
  border-left: 4px solid var(--danger)
}

.settings-field-card.risk-high {
  border-left: 4px solid var(--warning)
}

.settings-field-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.settings-field-card h3 {
  margin: 0 0 4px;
  font-size: 16px
}

.settings-field-card code {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all
}

.setting-origin {
  font-size: 11px;
  white-space: nowrap;
  color: var(--success);
  font-weight: 700
}

.setting-description,
.setting-impact {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55
}

.setting-impact {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fa
}

.setting-input-with-unit {
  display: flex;
  align-items: center;
  gap: 9px
}

.setting-input-with-unit span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px
}

.setting-switch {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px
}

.setting-switch input {
  width: 20px;
  height: 20px
}

.settings-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.settings-check-grid label,
.log-source-grid label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 500
}

.settings-check-grid input,
.log-source-grid input,
.danger-operation-box input[type=checkbox] {
  width: 18px;
  height: 18px
}

.setting-summary {
  display: grid;
  gap: 6px;
  margin: 0
}

.setting-summary>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px
}

.setting-summary dt {
  color: var(--muted)
}

.setting-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 650
}

.settings-save-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  align-items: start;
  gap: 14px
}

.settings-save-bar small {
  font-weight: 400;
  color: var(--muted)
}

.button-small {
  padding: 8px 11px;
  font-size: 12px
}

.log-maintenance-body {
  padding: 20px
}

.log-maintenance-form {
  display: grid;
  gap: 18px
}

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

.log-period-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px
}

.log-actions {
  display: flex;
  gap: 10px
}

.log-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc
}

.log-preview h3 {
  margin-top: 0
}

.log-preview>div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line)
}

.danger-operation-box {
  border: 1px solid #f2b8b5;
  background: #fff7f6;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end
}

.danger-operation-box h3 {
  grid-column: 1/-1;
  margin: 0;
  color: var(--danger)
}

.infrastructure-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.infrastructure-grid>div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 5px
}

.infrastructure-grid span {
  word-break: break-word
}

.infrastructure-grid small {
  color: var(--muted)
}

.settings-history-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.settings-history-grid h3 {
  margin-top: 0
}

.system-danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-color: #ef9a9a;
  margin-top: 18px
}

.system-danger-zone h2 {
  margin: 0 0 6px
}

.system-danger-zone p {
  margin-bottom: 0
}

@media(max-width:1100px) {

  .settings-field-grid,
  .settings-history-grid {
    grid-template-columns: 1fr
  }

  .log-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .settings-save-bar,
  .danger-operation-box {
    grid-template-columns: 1fr 1fr
  }

  .danger-operation-box .button {
    grid-column: 1/-1
  }

  .infrastructure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:720px) {

  .settings-priority-grid,
  .settings-field-grid,
  .log-period-grid,
  .infrastructure-grid,
  .log-source-grid,
  .settings-save-bar,
  .danger-operation-box {
    grid-template-columns: 1fr
  }

  .settings-accordion>summary {
    align-items: flex-start
  }

  .settings-count {
    display: none
  }

  .system-danger-zone {
    display: grid
  }
}

/* ÁgoraScan 2.3.36.1 · alineación del guardado técnico. */
.settings-save-bar>label {
  align-self: start;
}

.settings-save-bar>.button {
  align-self: start;
  min-height: 46px;
  margin-top: 27px;
  white-space: nowrap;
}

@media(max-width:1100px) {
  .settings-save-bar>.button {
    grid-column: 1/-1;
    width: max-content;
    margin-top: 0;
  }
}

@media(max-width:720px) {
  .settings-save-bar>.button {
    width: 100%;
  }
}
