:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-soft: #f9fbfb;
  --ink: #17221f;
  --muted: #5d6b73;
  --line: #d8e0e5;
  --accent: #1f5f4a;
  --accent-2: #2b7a60;
  --accent-soft: #dcefe7;
  --amber: #f4b321;
  --danger: #a4342f;
  --success: #247a4d;
  --info: #2f5e88;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(23, 34, 31, 0.08);
  --content-max: 1920px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* Administracion multilaboratorio */
.admin-page {
  display: grid;
  gap: 18px;
}

.admin-hero {
  align-items: center;
  background: linear-gradient(120deg, #103c30 0%, #1f5f4a 58%, #2b7a60 100%);
  border: 1px solid #174c3c;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(16, 60, 48, 0.16);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  padding: 26px 28px;
}

.admin-hero h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.admin-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 720px;
}

.admin-eyebrow {
  color: #a8e6c9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-context-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.admin-context-card label,
.admin-context-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-context-card select {
  background: #fff;
  border: 0;
  border-radius: 7px;
  color: #173e32;
  min-height: 42px;
  padding: 8px 10px;
}

.admin-context-card strong {
  font-size: 18px;
}

.admin-context-card span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.admin-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 6px;
  padding: 6px;
}

.admin-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
}

.admin-tabs button:hover {
  background: #f3f7f5;
  color: var(--accent);
}

.admin-tabs button.active {
  background: var(--accent);
  color: #fff;
}

.admin-master-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-master-form {
  overflow: hidden;
}

.admin-master-form .panel-header {
  background: #f5faf7;
}

.admin-master-form .panel-body + .panel-body {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-master-toggle {
  display: block;
  font-size: 11px;
  margin-top: 7px;
  padding: 5px 8px;
}

.admin-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpis article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(23, 34, 31, 0.05);
  display: grid;
  gap: 3px;
  padding: 16px 18px;
}

.admin-kpis span,
.admin-kpis small {
  color: var(--muted);
}

.admin-kpis span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-kpis strong {
  color: #173e32;
  font-size: 28px;
  line-height: 1;
}

.admin-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.admin-workspace.with-editor {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
}

.admin-list-header .button-primary {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.admin-list-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-panel-subtitle {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.admin-toolbar {
  align-items: end;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
}

.admin-filter-toolbar > .field:not(.admin-search) {
  min-width: 150px;
}

.admin-result-count {
  align-items: center;
  background: #e7f3ed;
  border-radius: 999px;
  color: #155b43;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-left: auto;
  min-height: 32px;
  padding: 5px 11px;
  white-space: nowrap;
}

.admin-search {
  max-width: 480px;
  width: 100%;
}

.admin-table-wrap {
  max-height: calc(100vh - 410px);
  min-height: 260px;
  overflow: auto;
}

.admin-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  width: 100%;
}

.admin-table th {
  background: #f3f7f5;
  color: #3d534b;
  font-size: 11px;
  letter-spacing: 0.04em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e9e5;
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f7fbf9;
}

.admin-table tbody tr.is-selected {
  background: #eaf6f0;
  box-shadow: inset 4px 0 0 var(--accent);
}

.admin-table td > strong,
.admin-table td > span,
.admin-table td > small {
  display: block;
}

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

.admin-username {
  color: #14543f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  font-size: 12px;
  min-height: 34px;
  padding: 6px 9px;
}

.admin-editor {
  background: #fff;
  border: 1px solid #cfdcd6;
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(23, 34, 31, 0.13);
  max-height: calc(100vh - 128px);
  overflow: auto;
  position: sticky;
  top: 94px;
}

.admin-editor-head {
  align-items: start;
  background: #f3f8f5;
  border-bottom: 1px solid #d8e5df;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px;
}

.admin-editor-head h3 {
  font-size: 19px;
  margin: 3px 0 5px;
}

.admin-editor-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.admin-editor .admin-eyebrow {
  color: var(--accent);
}

.admin-client-editor {
  max-height: calc(100vh - 112px);
}

.admin-client-section {
  border-bottom: 1px solid #dfe8e3;
}

.admin-client-section > summary {
  align-items: center;
  background: #fbfdfc;
  color: #214b3e;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  padding: 13px 18px;
}

.admin-client-section > summary::-webkit-details-marker {
  display: none;
}

.admin-client-section > summary::after {
  content: "+";
  font-size: 18px;
}

.admin-client-section[open] > summary::after {
  content: "−";
}

.admin-master-editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 14px;
}

.admin-master-editor-form .field:has(textarea) {
  grid-column: 1 / -1;
}

.admin-related-list {
  display: grid;
  gap: 7px;
  padding: 12px 18px 0;
}

.admin-related-list > span {
  background: #f5f9f7;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.admin-related-list small,
.admin-related-list em {
  color: var(--muted);
  font-size: 11px;
}

.admin-fixed-context {
  background: #edf7f2;
  border: 1px solid #c9dfd4;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 9px 11px;
}

.admin-fixed-context span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-catalog-filters {
  align-items: end;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  padding: 14px 20px;
}

.admin-catalog-filters .admin-search {
  grid-column: span 2;
  max-width: none;
}

.admin-filter-actions {
  display: flex;
  gap: 7px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-kind {
  border: 1px solid #c7d8d0;
  border-radius: 999px;
  color: #315448;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.admin-kind.formato {
  background: #e8f4ff;
  border-color: #c6ddf2;
  color: #215f91;
}

.admin-kind.documento {
  background: #edf7f2;
  color: #176247;
}

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

.admin-field-wide,
.admin-check {
  grid-column: 1 / -1;
}

.admin-role-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.admin-role-option {
  align-items: flex-start;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-height: 62px;
  padding: 10px;
}

.admin-role-option:has(input:checked) {
  background: #e9f5ef;
  border-color: #7bb69e;
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-role-option input {
  margin-top: 3px;
}

.admin-role-option span,
.admin-role-option strong,
.admin-role-option small {
  display: block;
}

.admin-role-option small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.admin-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-check {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.admin-form-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 1240px) {
  .admin-workspace.with-editor {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    max-height: none;
    position: static;
  }

  .admin-catalog-filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-hero,
  .admin-kpis,
  .admin-master-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-hero > div:first-child {
    grid-column: 1 / -1;
  }

  .admin-catalog-filters {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-hero,
  .admin-kpis,
  .admin-form,
  .admin-master-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-kpis article {
    padding: 18px;
  }

  .admin-field-wide,
  .admin-check {
    grid-column: auto;
  }

  .admin-role-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-form-actions,
  .admin-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-result-count {
    margin-left: 0;
    width: max-content;
  }

  .admin-catalog-filters,
  .admin-master-editor-form {
    grid-template-columns: 1fr;
  }

  .admin-catalog-filters .admin-search,
  .admin-master-editor-form .field:has(textarea) {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  min-height: 40px;
  padding: 9px 14px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 3.15fr) minmax(380px, 1fr);
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.login-panel {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 3.2vw, 54px) clamp(42px, 4.4vw, 76px) clamp(28px, 3.2vw, 54px) clamp(28px, 3vw, 52px);
  position: relative;
  z-index: 1;
}

.login-card {
  animation: loginRise 0.55s ease both;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.13);
  padding: clamp(32px, 2.7vw, 44px);
  width: min(100%, 392px);
}

.login-context {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
}

.login-hero {
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.78) 38%,
      rgba(255, 255, 255, 0.35) 70%,
      rgba(255, 255, 255, 0.18) 100%
    ),
    url("./assets/imagen_login.png");
  background-position: center;
  background-size: cover;
  color: #1f2937;
  justify-content: flex-start;
  position: relative;
}

.login-hero::before {
  display: none;
}

.login-hero-content {
  animation: loginFade 0.7s ease both;
  display: grid;
  gap: clamp(16px, 2.3vh, 26px);
  max-width: 980px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-hero-logo {
  max-width: 270px;
  width: 26%;
}

.brand-title {
  margin: 0;
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 900px;
}

.login-title-accent {
  color: #2e7d32;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.creator-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.login-creator-logo {
  margin: 0 auto 30px;
  max-width: 258px;
  width: 84%;
}

.lab-brand-card {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
}

.lab-logo-large {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  height: auto;
  max-height: 136px;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}

.login-eyebrow {
  color: #2e7d32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.login-form-title {
  color: #1f2937;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.login-form-copy,
.login-security-note,
.login-hero-subtitle {
  color: #5d6b73;
  margin: 0;
}

.login-form-copy {
  font-size: 15px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.login-input-shell {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0e5;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(31, 41, 55, 0.03);
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.login-input-shell:focus-within {
  border-color: #1565c0;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.login-input-shell input {
  border: 0;
  box-shadow: none;
  flex: 1;
  min-height: 50px;
  outline: 0;
  padding: 0;
}

.login-field > input {
  border-color: #d8e0e5;
  border-radius: 12px;
  min-height: 44px;
}

.login-actions {
  margin-top: 4px;
}

.login-submit {
  align-items: center;
  background: #2e7d32;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(46, 125, 50, 0.22);
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  font-weight: 800;
  min-height: 50px;
  width: 100%;
}

.login-submit:hover {
  background: #256d2b;
  box-shadow: 0 16px 30px rgba(46, 125, 50, 0.26);
  transform: translateY(-1px);
}

.login-advanced {
  border-top: 0;
  color: #5d6b73;
  font-size: 12px;
  margin-top: -4px;
  text-align: center;
}

.login-advanced summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-weight: 700;
  justify-content: center;
  list-style: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.login-advanced summary::-webkit-details-marker {
  display: none;
}

.login-advanced summary:hover,
.login-advanced[open] summary {
  color: #1565c0;
}

.login-advanced .field {
  margin-top: 12px;
  text-align: left;
}

.login-hero-copy {
  display: grid;
  gap: 14px;
}

.login-hero-subtitle {
  color: #1f2937;
  font-size: clamp(16px, 1.08vw, 19px);
  font-weight: 600;
  line-height: 1.42;
  max-width: 650px;
}

.login-module-grid {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  max-width: 900px;
}

.login-module-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  color: #1f2937;
  display: inline-grid;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  justify-items: center;
  line-height: 1.2;
  min-height: 112px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.login-module-item:hover {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.login-module-item span {
  display: block;
}

.login-trust-strip {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin: 0;
}

.login-icon,
.login-badge-icon,
.login-input-icon,
.login-button-icon,
.login-config-icon {
  flex: 0 0 auto;
}

.login-icon {
  color: #1565c0;
  height: 42px;
  width: 42px;
}

.login-module-item:nth-child(odd) .login-icon {
  color: #2e7d32;
}

.login-badge-icon {
  color: #2e7d32;
  height: 16px;
  width: 16px;
}

.login-input-icon {
  color: #64748b;
  height: 18px;
  width: 18px;
}

.login-button-icon {
  height: 18px;
  width: 18px;
}

.login-config-icon {
  color: currentColor;
  height: 14px;
  width: 14px;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 42px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  outline: 3px solid rgba(43, 122, 96, 0.14);
}

.field textarea {
  resize: vertical;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.button-primary:hover {
  background: var(--accent-2);
}

.button-success {
  background: #0f7a52;
  border-color: #0f7a52;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.button-success:hover {
  background: #0b5f46;
  border-color: #0b5f46;
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent);
}

.button-icon,
.nav-icon,
.tab-icon,
.section-icon,
.sidebar-title-icon,
.notification-svg,
.kpi-icon,
.list-icon,
.documental-title-icon {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.button-icon {
  height: 18px;
  margin-right: 7px;
  vertical-align: -4px;
  width: 18px;
}

.icon-button-text,
.actions button,
.topbar-meta button {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
}

.coordinate-convert-btn {
  align-items: center;
  border-color: #1f7a5b;
  box-shadow: inset 4px 0 0 #1f7a5b;
  color: #0f5f46;
  font-weight: 800;
}

.coordinate-convert-btn:hover {
  background: #edf8f2;
}

.coordinate-stale {
  background: #fff8df;
  border: 1px solid #e4a900;
  border-radius: 6px;
  color: #7a4e00;
  display: inline-block;
  font-weight: 800;
  padding: 6px 8px;
}

.button-warning {
  background: var(--amber);
  color: #141414;
}

.button-danger {
  background: #fff;
  border-color: #e7c9c6;
  color: var(--danger);
}

.button-danger:hover {
  background: #f7dedc;
}

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

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.sidebar-title {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 9px;
}

.sidebar-title-icon {
  color: var(--accent);
  height: 22px;
  width: 22px;
}

.sidebar-open-plan {
  background: #edf7f1;
  border: 1px solid #c7dfd3;
  border-radius: 6px;
  color: #174c38;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.sidebar-open-plan[hidden] {
  display: none;
}

.sidebar-open-plan span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sidebar-open-plan strong {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nav button {
  align-items: center;
  background: transparent;
  border-color: transparent;
  border-radius: 9px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.nav button:hover {
  background: #f4f8f6;
  border-color: #d8e7e0;
  color: var(--accent);
}

.nav button.active {
  background: var(--accent-soft);
  border-color: #b8d6cb;
  color: var(--accent);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav button[aria-disabled="true"] {
  color: var(--muted);
}

.nav-icon {
  color: currentColor;
  height: 22px;
  width: 22px;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.creator-footer {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.creator-logo-footer {
  margin-bottom: 6px;
  max-width: 150px;
  width: 100%;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  min-height: 76px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
}

.topbar h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: 0;
}

.topbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.topbar-meta .notification-button {
  flex: 0 0 auto;
  width: auto;
}

.page {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #fbfcfc;
}

.panel-title {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin: 0;
  font-size: 17px;
}

.section-icon {
  color: var(--accent);
  height: 22px;
  width: 22px;
}

.plan-identity-band {
  background: #f6faf8;
  border: 1px solid #c8d8d1;
  border-left: 6px solid var(--accent);
  border-radius: 7px;
  margin: 0 0 18px;
  padding: 14px 16px;
}

.panel-header .plan-identity {
  flex: 1 1 auto;
  min-width: 0;
}

.plan-identity {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.plan-identity.compact {
  gap: 10px;
}

.plan-identity-copy {
  min-width: 0;
}

.plan-identity-title {
  color: #0d201a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
  overflow-wrap: anywhere;
}

.plan-identity-subtitle {
  color: #203830;
  font-size: 14px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.plan-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.plan-identity-meta span {
  background: #fff;
  border: 1px solid #cfdad6;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.matrix-icon {
  align-items: center;
  background: #234238;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 54px;
}

.matrix-icon.compact {
  border-radius: 5px;
  height: 22px;
  width: 22px;
}

.matrix-icon > span,
.matrix-icon > span::before,
.matrix-icon > span::after {
  content: "";
  display: block;
  position: absolute;
}

.matrix-icon-ruido {
  background: #133522;
}

.matrix-icon-ruido > span {
  background: #fff;
  border-radius: 2px 0 0 2px;
  height: 15px;
  left: 10px;
  top: 20px;
  width: 10px;
}

.matrix-icon-ruido > span::before {
  background: #fff;
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 68%);
  height: 25px;
  left: 8px;
  top: -5px;
  width: 18px;
}

.matrix-icon-ruido > span::after {
  border: 2px solid #fff;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  height: 20px;
  left: 28px;
  top: -3px;
  width: 12px;
}

.matrix-icon-ruido::after {
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  content: "";
  height: 30px;
  left: 39px;
  position: absolute;
  top: 12px;
  width: 10px;
}

.matrix-icon-aire {
  background: #1d5f78;
}

.matrix-icon-aire > span,
.matrix-icon-aire > span::before,
.matrix-icon-aire > span::after {
  background: #fff;
  border-radius: 999px;
  height: 4px;
  left: 11px;
  top: 18px;
  width: 30px;
}

.matrix-icon-aire > span::before {
  left: 5px;
  top: 10px;
  width: 26px;
}

.matrix-icon-aire > span::after {
  left: 0;
  top: 20px;
  width: 20px;
}

.matrix-icon-agua {
  background: #17648a;
}

.matrix-icon-agua > span {
  background: #fff;
  border-radius: 50% 50% 56% 56%;
  height: 28px;
  left: 18px;
  top: 13px;
  transform: rotate(45deg);
  width: 28px;
}

.matrix-icon-suelo {
  background: #72552e;
}

.matrix-icon-suelo > span,
.matrix-icon-suelo > span::before,
.matrix-icon-suelo > span::after {
  background: #fff;
  border-radius: 999px;
  height: 4px;
  left: 12px;
  top: 18px;
  width: 30px;
}

.matrix-icon-suelo > span::before {
  left: 0;
  top: 10px;
  width: 26px;
}

.matrix-icon-suelo > span::after {
  left: 0;
  top: 20px;
  width: 32px;
}

.matrix-icon-meteo,
.matrix-icon-olor,
.matrix-icon-general {
  background: #576673;
}

.matrix-icon-meteo > span,
.matrix-icon-olor > span,
.matrix-icon-general > span {
  border: 3px solid #fff;
  border-radius: 50%;
  height: 26px;
  width: 26px;
}

.matrix-icon.compact > span {
  transform: scale(0.45);
  transform-origin: center;
}

.matrix-icon.compact::after {
  display: none;
}

.matrix-badge {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 120px;
}

.matrix-badge span:last-child {
  overflow-wrap: anywhere;
}

.panel-body {
  padding: 24px;
}

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

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

.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel-soft);
  box-shadow: 0 8px 22px rgba(23, 34, 31, 0.05);
  display: grid;
  gap: 7px;
  min-height: 128px;
}

.kpi.danger {
  background: #fff2f1;
  border-color: #d77b73;
  box-shadow: inset 4px 0 0 var(--danger);
}

.kpi.warning {
  background: #fff8e6;
  border-color: #e7b44c;
  box-shadow: inset 4px 0 0 #d78a00;
}

.kpi.success {
  background: #eef8f1;
  border-color: #9bcaa6;
  box-shadow: inset 4px 0 0 var(--accent);
}

.kpi.info {
  background: #eef5ff;
  border-color: #a9c7ef;
  box-shadow: inset 4px 0 0 var(--info);
}

.kpi-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-head {
  align-items: center;
  display: flex;
  gap: 9px;
}

.kpi-icon {
  color: var(--accent);
  height: 24px;
  width: 24px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.ops-kpi-grid {
  gap: 18px;
}

.informes-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.informes-table {
  font-size: 13px;
}

.informes-table th,
.informes-table td {
  vertical-align: top;
}

.informes-status-stack,
.informes-kpi-mini,
.informes-action-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.informes-action-stack {
  align-items: flex-start;
}

.informes-generation-progress {
  background: #f5faf8;
  border: 1px solid #cfe1db;
  border-radius: 8px;
  min-width: 210px;
  padding: 8px 10px;
}

.informes-generation-progress-head {
  align-items: center;
  color: #1c4c42;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.informes-generation-progress-head span {
  line-height: 1.25;
}

.informes-generation-progress-head strong {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}

.informes-generation-progress-track {
  background: #dbe9e4;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.informes-generation-progress-track i {
  background: linear-gradient(90deg, #034638, #0f6a58);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.35s ease;
}

.informes-generation-progress small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.25;
  margin-top: 6px;
}

.informes-status-stack .status {
  justify-content: center;
  width: fit-content;
}

.informes-date-grid {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(92px, 1fr);
  gap: 5px 8px;
}

.informes-date-grid span,
.informes-kpi-mini span {
  color: var(--muted);
  font-size: 12px;
}

.informes-date-grid strong {
  color: var(--ink);
  font-size: 12px;
}

.informes-editorial-panel .panel-body {
  background: #f6f8f8;
}

.dashboard-hero-panel .panel-header {
  align-items: flex-start;
}

.dashboard-kpi-grid .kpi {
  min-height: 138px;
}

.dashboard-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-action:hover:not(:disabled) {
  border-color: rgba(21, 101, 192, 0.34);
  box-shadow: 0 12px 26px rgba(23, 34, 31, 0.08);
  transform: translateY(-1px);
}

.dashboard-action:disabled {
  background: #f4f6f8;
  color: var(--muted);
  cursor: not-allowed;
}

.dashboard-action-icon {
  color: var(--accent);
  height: 22px;
  width: 22px;
}

.dashboard-work-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-work-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  min-height: 48px;
  padding: 10px 14px;
}

.dashboard-work-row + .dashboard-work-row {
  border-top: 1px solid var(--line);
}

.dashboard-work-head {
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  text-transform: uppercase;
}

.dashboard-empty {
  border-radius: 12px;
  padding: 22px;
}

.operational-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}

.operational-list li {
  align-items: center;
  display: flex;
  gap: 9px;
}

.list-icon {
  color: var(--accent);
  height: 18px;
  width: 18px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}

.coordinate-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 18px;
}

.native-chip-select {
  display: none;
}

.chip-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 8px;
}

.chip-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chip,
.chip-empty {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #b8d6cb;
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
}

.chip-empty {
  background: #f5f7f6;
  color: var(--muted);
}

.chip button {
  background: transparent;
  border: 0;
  color: var(--accent);
  min-height: auto;
  padding: 0 2px;
}

.chip-search {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 6px;
  min-height: 36px;
  padding: 7px 10px;
  width: 100%;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
}

.chip-option {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  min-height: 30px;
  padding: 4px 8px;
}

.chip-no-results {
  color: var(--muted);
  padding: 4px 0;
}

.map-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.map-preview-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.map-preview svg {
  background: #eef3f1;
  border-radius: 6px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.map-frame {
  fill: #fff;
  stroke: #8b9894;
  stroke-width: 1.5;
}

.map-frame-base {
  fill: transparent;
}

.map-tile {
  opacity: 0.88;
}

.map-reference-tile {
  opacity: 0.9;
}

.map-overlay {
  fill: rgba(245, 247, 248, 0.06);
  stroke: #6f807a;
  stroke-width: 1.2;
}

.map-grid-line {
  stroke: #d7dfdc;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.map-point-er {
  fill: #f4b000;
  stroke: #533900;
  stroke-width: 2;
}

.map-point-ra {
  fill: #b5d91f;
  stroke: #234000;
  stroke-width: 2;
}

.map-label {
  fill: #111;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
  font-size: 13px;
  font-weight: 700;
}

.map-axis-label {
  fill: #4b5a56;
  font-size: 11px;
  text-anchor: middle;
}

.map-legend {
  border: 1px solid #333;
  display: inline-block;
  height: 10px;
  margin-left: 10px;
  width: 10px;
}

.map-legend.er {
  background: #f4b000;
}

.map-legend.ra {
  background: #b5d91f;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  padding: 10px 13px;
}

.tab-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-button:hover {
  border-color: var(--accent-2);
  color: var(--accent);
}

.tab-button.active:hover {
  color: #fff;
}

.tab-button.danger {
  border-color: rgba(164, 52, 47, 0.45);
  color: var(--danger);
}

.tab-button.danger.active {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.tab-alert-badge {
  align-items: center;
  background: rgba(164, 52, 47, 0.12);
  border-radius: 999px;
  color: currentColor;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
}

.tab-icon {
  color: currentColor;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  margin-bottom: 24px;
  padding: 22px;
}

.form-section h3 {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  gap: 9px;
  margin: 0 0 15px;
}

.nested-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
  padding: 16px;
}

.nested-block h4 {
  font-size: 13px;
  margin: 0 0 10px;
}

.wide-field {
  grid-column: span 2;
}

.inline-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 16px;
  padding: 18px;
}

.inline-editor form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 420px) auto;
}

.informes-editorial-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  margin-bottom: 16px;
}

.informes-editorial-header {
  align-items: center;
  background: #fbfdfc;
}

.informes-editorial-unsaved {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.informes-editorial-saved-note {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin: 8px 0 12px;
}

.editorial-hidden {
  display: none !important;
}

.informes-editorial-shell {
  display: grid;
  gap: 16px;
}

.informes-editorial-tabs {
  background: #fff;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 46, 39, 0.06);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  overflow-x: auto;
  padding: 8px;
}

.informes-editorial-tab {
  --tab-accent: var(--accent);
  align-items: center;
  background: #f8fbfa;
  border: 1px solid #dbe8e3;
  border-radius: 7px;
  color: #263935;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  justify-content: flex-start;
  min-height: 44px;
  padding: 9px 11px;
  position: relative;
  width: auto;
}

.informes-editorial-tab[data-tab-theme="portada"] {
  --tab-accent: #0f6a58;
}

.informes-editorial-tab[data-tab-theme="encabezado"] {
  --tab-accent: #2563eb;
}

.informes-editorial-tab[data-tab-theme="normativa"] {
  --tab-accent: #b7791f;
}

.informes-editorial-tab[data-tab-theme="estilo"] {
  --tab-accent: #475569;
}

.informes-editorial-tab[data-tab-theme="colores"] {
  --tab-accent: #c2410c;
}

.informes-editorial-tab[data-tab-theme="preview"] {
  --tab-accent: #0e7490;
}

.informes-editorial-tab .tab-icon {
  color: var(--tab-accent);
}

.informes-editorial-tab.active {
  background: #fff;
  border-color: color-mix(in srgb, var(--tab-accent) 52%, #dbe8e3);
  box-shadow: inset 3px 0 0 var(--tab-accent), 0 6px 16px rgba(31, 52, 45, 0.08);
  color: #12231f;
}

.informes-editorial-panels {
  position: relative;
}

.informes-editorial-tab-panel {
  --panel-accent: var(--accent);
  --panel-soft: #f5faf8;
  display: none;
}

.informes-editorial-tab-panel[data-editorial-panel="portada"] {
  --panel-accent: #0f6a58;
  --panel-soft: #f2faf6;
}

.informes-editorial-tab-panel[data-editorial-panel="encabezado"] {
  --panel-accent: #2563eb;
  --panel-soft: #f2f7ff;
}

.informes-editorial-tab-panel[data-editorial-panel="normativa"] {
  --panel-accent: #b7791f;
  --panel-soft: #fff8ea;
}

.informes-editorial-tab-panel[data-editorial-panel="estilo"] {
  --panel-accent: #475569;
  --panel-soft: #f6f8fb;
}

.informes-editorial-tab-panel[data-editorial-panel="colores"] {
  --panel-accent: #c2410c;
  --panel-soft: #fff5ef;
}

.informes-editorial-tab-panel[data-editorial-panel="preview"] {
  --panel-accent: #0e7490;
  --panel-soft: #effbfe;
}

.informes-editorial-tab-panel.active {
  background: #fff;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(22, 46, 39, 0.05);
  display: block;
  overflow: hidden;
}

.informes-editorial-grid {
  display: grid;
  gap: 14px;
}

.informes-editorial-panel .nested-block {
  margin-bottom: 0;
}

.informes-editorial-section-head {
  align-items: flex-start;
  background: var(--panel-soft);
  border: 0;
  border-bottom: 1px solid #d6e2de;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.informes-editorial-section-head h4 {
  align-items: center;
  color: var(--panel-accent);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  margin: 0 0 4px;
}

.informes-editorial-section-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.informes-editorial-tab-panel > .grid-2,
.informes-editorial-tab-panel > .informes-editorial-preview {
  background: #fff;
  border: 0;
  padding: 18px;
}

.informes-editorial-field input,
.informes-editorial-field select,
.informes-editorial-field textarea {
  background: #fff;
}

.informes-editorial-field input.field-empty-soft,
.informes-editorial-field select.field-empty-soft,
.informes-editorial-field textarea.field-empty-soft {
  background: #fffdf4;
  border-color: #e4b84f;
  box-shadow: inset 3px 0 0 #e4b84f;
}

.informes-editorial-logo-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.informes-editorial-logo-actions input[type="file"] {
  border: 1px dashed #b8cfc6;
  border-radius: 6px;
  color: #31564c;
  min-height: 34px;
  padding: 6px 8px;
}

.informes-editorial-logo-actions .button-secondary.danger {
  border-color: #f0b8b8;
  color: #8d2727;
}

.informes-style-selector-placeholder {
  align-items: center;
  background: #eef5f2;
  border: 1px dashed #aac5bb;
  border-radius: 8px;
  color: #31564c;
  display: inline-flex;
  gap: 9px;
  margin: 0 0 16px;
  padding: 8px 10px;
}

.informes-style-selector-placeholder span {
  font-size: 12px;
  font-weight: 800;
}

.informes-style-selector-placeholder select {
  background: #fff;
  border: 1px solid #b8cfc6;
  border-radius: 6px;
  color: #153f36;
  min-height: 32px;
  min-width: 160px;
  padding: 6px 28px 6px 10px;
}

.informes-client-data-note {
  align-items: center;
  background: var(--panel-soft);
  border: 0;
  border-bottom: 1px solid #d6e2de;
  border-left: 4px solid var(--panel-accent);
  color: #2f5048;
  display: flex;
  gap: 9px;
  padding: 12px 18px;
}

.informes-client-data-note span {
  font-size: 12px;
  line-height: 1.45;
}

.informes-editorial-summary {
  background: #fbfcfc;
  border: 0;
  border-top: 1px solid #e4ece8;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 18px;
}

.informes-editorial-summary-row {
  background: #fff;
  border: 1px solid #dce8e3;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.informes-editorial-summary-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.informes-editorial-summary-row strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.informes-editorial-hidden-fields {
  display: none;
}

.informes-editorial-color-input {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px 1fr;
}

.informes-color-swatch {
  border: 1px solid #899a95;
  border-radius: 7px;
  display: block;
  height: 34px;
  width: 34px;
}

.informes-editorial-preview {
  color: #1f2624;
  max-width: 760px;
}

.preview-header {
  align-items: center;
  border: 1px solid #9aa7a3;
  display: grid;
  gap: 10px;
  grid-template-columns: 86px 1fr 72px;
  margin-bottom: 22px;
  min-height: 58px;
  padding: 8px;
}

.preview-logo {
  align-items: center;
  background: #edf4f1;
  border: 1px dashed #8ea59d;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
}

.preview-header strong,
.preview-header span {
  display: block;
  text-align: center;
}

.preview-header strong {
  font-size: 10px;
  line-height: 1.25;
}

.preview-header span {
  color: #4d5b57;
  font-size: 9px;
}

.preview-version {
  border-left: 1px solid #b8c4c0;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.informes-header-preview {
  background: #fff;
  border: 1px solid #d6e2de;
  border-top: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.informes-header-preview .preview-header {
  margin-bottom: 0;
}

.informes-normative-block {
  background: #fff;
  border: 1px solid #d6e2de;
  border-top: 0;
}

.informes-normative-block.field-empty-soft {
  background: #fffdf4;
  border-color: #e4b84f;
  box-shadow: inset 3px 0 0 #e4b84f;
}

.informes-normative-block + .informes-normative-block {
  margin-top: 14px;
}

.informes-normative-table-wrap {
  overflow-x: auto;
  padding: 0 16px 16px;
}

.informes-normative-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
  width: 100%;
}

.informes-normative-table th,
.informes-normative-table td {
  border: 1px solid #c8d8d1;
  padding: 7px 8px;
  vertical-align: top;
}

.informes-normative-table th {
  background: #eef5f2;
  color: #163d34;
  font-weight: 900;
}

.informes-normative-table th:nth-child(1),
.informes-normative-table td:nth-child(1),
.informes-normative-table th:nth-child(4),
.informes-normative-table td:nth-child(4),
.informes-normative-table th:nth-child(5),
.informes-normative-table td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

.header-preview-meta {
  background: #f7faf8;
  border: 1px solid #dce8e3;
  display: grid;
  gap: 6px 10px;
  grid-template-columns: minmax(150px, auto) 1fr;
  padding: 10px 12px;
}

.header-preview-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-preview-meta strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.informes-editorial-preview h3 {
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
}

.informes-editorial-preview p {
  line-height: 1.55;
  margin: 0 0 14px;
}

.preview-table {
  border-collapse: collapse;
  margin-bottom: 16px;
  width: 100%;
}

.preview-table th,
.preview-table td {
  border: 1px solid #68756f;
  padding: 7px 8px;
  text-align: center;
}

.preview-table th {
  color: #111;
  font-weight: 900;
}

.preview-chart {
  align-items: end;
  border: 1px solid #c8d5d1;
  display: flex;
  gap: 12px;
  height: 78px;
  padding: 12px;
}

.preview-chart span {
  border-radius: 3px 3px 0 0;
  display: block;
  height: 48px;
  width: 46px;
}

.preview-chart span.secondary {
  height: 36px;
}

.preview-chart span.below-limit {
  height: 22px;
}

.preview-chart i {
  display: block;
  height: 5px;
  margin-bottom: 30px;
  width: 140px;
}

.informes-cover-preview {
  align-items: start;
  background: #f6faf8;
  border: 1px solid #d6e2de;
  border-radius: 0 0 8px 8px;
  border-top: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  padding: 16px;
}

.cover-preview-header {
  align-items: center;
  background: #fff;
  border: 1px solid #9aa7a3;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: 92px 1fr;
  min-height: 58px;
  padding: 8px;
}

.cover-preview-header strong {
  color: #1c2926;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.cover-preview-page {
  align-content: center;
  background: #fff;
  border: 1px solid #b8c7c2;
  box-shadow: 0 10px 22px rgba(19, 45, 38, 0.08);
  display: grid;
  gap: 10px;
  min-height: 520px;
  padding: 34px 30px;
  text-align: center;
}

.cover-preview-page h3,
.cover-preview-page h4 {
  color: #111;
  font-size: 18px;
  line-height: 1.22;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.cover-preview-page h4 {
  font-size: 14px;
}

.cover-preview-page p {
  color: #202826;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.cover-preview-elaborado,
.cover-preview-date {
  font-weight: 800;
  text-transform: uppercase;
}

.cover-preview-logo,
.cover-preview-lab-logo {
  align-items: center;
  background: #edf4f1;
  border: 1px dashed #8ea59d;
  color: #5f706b;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
}

.cover-preview-logo.large,
.cover-preview-lab-logo {
  justify-self: center;
  min-height: 64px;
  width: min(220px, 80%);
}

.counter-cover {
  align-content: start;
  gap: 14px;
  text-align: left;
}

.counter-cover h4,
.counter-cover p {
  text-align: center;
}

.counter-cover table {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

.counter-cover th,
.counter-cover td {
  border: 1px solid #6e7975;
  padding: 7px 8px;
  vertical-align: top;
}

.counter-cover th {
  background: #eef3f1;
  color: #111;
  font-weight: 900;
  text-align: left;
}

.plan-detail-sheet {
  border-color: #9fb7af;
  box-shadow: 0 16px 36px rgba(31, 95, 74, 0.16);
  margin-top: 18px;
}

.plan-detail-header {
  background: #e5f0eb;
  border-bottom: 2px solid #9fb7af;
}

.detail-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.plan-detail-sheet .panel-body {
  background: linear-gradient(180deg, #fbfdfc 0, #fff 190px);
}

.plan-header-editor {
  background: #f7faf8;
  border-color: #c8d8d1;
}

.plan-header-editor form {
  display: block;
}

.plan-header-editor .filters {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.plan-header-editor .actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.plan-header-editor .button-primary {
  min-width: 150px;
}

.readonly-plan-summary {
  display: grid;
  gap: 10px;
}

.readonly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.readonly-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.readonly-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.readonly-grid strong {
  font-size: 13px;
}

.plan-state-workflow {
  background: #fff;
  border: 1px solid #c8d8d1;
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.plan-state-head {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.4fr);
}

.plan-state-head h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.plan-state-head p {
  color: var(--muted);
  margin: 0;
}

.plan-state-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-state-steps span {
  background: #f4f7f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.plan-state-steps span.active {
  background: #dcefe7;
  border-color: var(--accent);
  color: var(--accent);
}

.plan-state-steps span.terminal {
  border-style: dashed;
}

.plan-state-steps span.terminal.active {
  background: #f7dedc;
  border-color: var(--danger);
  color: var(--danger);
}

.plan-state-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-state-actions {
  justify-content: flex-start;
}

.capture-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr);
  align-items: end;
}

.capture-observation {
  grid-column: 1 / -1;
}

.capture-workspace-form {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.capture-context-header.diurna {
  background: rgba(255, 215, 64, 0.16);
}

.capture-context-header.nocturna {
  background: rgba(0, 145, 255, 0.12);
}

.capture-context-header.unica {
  background: rgba(24, 116, 106, 0.12);
}

.capture-active-float {
  display: none;
}

.capture-session-header-block {
  background: #f4f8f6;
  border: 2px solid #b8d7c8;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.capture-session-header-block.diurna {
  background: #fff9df;
  border-color: #e5c047;
}

.capture-session-header-block.nocturna {
  background: #eef5ff;
  border-color: #7bb5f0;
}

.capture-session-header-block.unica {
  background: #edf7f4;
  border-color: #83c5b8;
}

.capture-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(180px, 1fr)) minmax(220px, 0.8fr);
}

.capture-key-field {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #c7d7d0;
  border-radius: 6px;
  padding: 8px;
}

.capture-key-field label {
  color: #063f2f;
  font-weight: 900;
}

.capture-key-field input,
.capture-key-field select {
  background: #fffef5;
  border-color: #9fbdb1;
}

.capture-progress {
  background: #eef5f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 10px;
}

.capture-progress strong {
  font-size: 18px;
}

.capture-progress.complete {
  background: #e5f4ec;
  border-color: #9cc8b0;
}

.capture-progress.warning {
  background: #fff4d5;
  border-color: #dbb44d;
}

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

.capture-time-confirm-slot {
  align-items: end;
  display: flex;
  justify-content: flex-end;
  min-width: 220px;
}

.capture-time-confirm {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.capture-time-confirm button {
  min-height: 42px;
  white-space: normal;
  width: 100%;
}

.capture-selected-measurement {
  align-items: flex-start;
  background: #fff;
  border: 2px solid #87bce8;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.capture-selected-measurement.executed {
  border-color: #9cc8b0;
  background: #e8f4ed;
}

.capture-selected-measurement.not-executed {
  border-color: #e26a6a;
  background: #fff0f0;
}

.capture-selected-measurement strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.capture-selected-measurement p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.capture-measurement-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.capture-measurement-nav button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 260px;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
  text-align: left;
}

.capture-measurement-nav button.active {
  background: #063f2f;
  border-color: #063f2f;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.22), inset 0 -4px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 900;
  min-height: 44px;
  transform: translateY(-1px);
}

.capture-measurement-nav button.closed {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #374151;
}

.capture-measurement-nav button.active.closed {
  background: #6b7280;
  border-color: #4b5563;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.24), inset 0 -4px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.capture-measurement-nav button.active .period-badge {
  border-color: rgba(255, 255, 255, 0.85);
}

.capture-measurement-nav button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-plan-notes {
  background: #f5f9f7;
  border: 1px solid #c8d8d1;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px;
}

.capture-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capture-tabs button {
  background: #eaf4ff;
  border: 1px solid #87bce8;
  border-radius: 6px;
  color: #16436c;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
}

.capture-tabs button.active {
  background: #0b6fc6;
  border-color: #07599f;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.capture-tab-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
}

.capture-tab-grid .capture-calibration-card,
.capture-tab-grid .capture-reference {
  grid-column: 1 / -1;
}

.capture-card {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.capture-card h3 {
  font-size: 14px;
  margin: 0;
}

.capture-requirements {
  background: #eef5f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.capture-requirements.warning {
  background: #fff8e6;
  border-color: #ddb75d;
}

.capture-requirements.complete {
  background: #e8f4ed;
  border-color: #9cc8b0;
}

.capture-requirements strong {
  font-size: 13px;
}

.capture-requirements p {
  color: #6f4b00;
  font-size: 12px;
  margin: 0;
}

.capture-requirements .advisory {
  color: var(--muted);
}

.capture-direction-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capture-direction-counts span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.capture-close-alert {
  background: #fff8e6;
  border: 1px solid #ddb75d;
  border-radius: 6px;
  color: #6f4b00;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.capture-close-alert.complete {
  background: #e8f4ed;
  border-color: #9cc8b0;
  color: var(--success);
  font-weight: 800;
}

.capture-close-alert p {
  margin: 0;
}

.capture-alert {
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.capture-alert p {
  margin: 0;
}

.capture-alert.warning {
  background: #fff8e6;
  border: 1px solid #ddb75d;
  color: #6f4b00;
}

.capture-alert.complete {
  background: #e8f4ed;
  border: 1px solid #9cc8b0;
  color: var(--success);
}

.capture-alert.danger {
  background: #fff0ed;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.capture-calibration-card.warning {
  border-color: #ddb75d;
  box-shadow: inset 4px 0 0 #ddb75d;
}

.capture-calibration-card.complete {
  border-color: #9cc8b0;
  box-shadow: inset 4px 0 0 #9cc8b0;
}

.capture-calibration-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.field-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(164, 52, 47, 0.12);
}

.chip-select.field-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(164, 52, 47, 0.12);
}

.point-missing-cell {
  outline: 2px solid rgba(164, 52, 47, 0.85);
  outline-offset: -4px;
  background: rgba(164, 52, 47, 0.07);
  color: var(--danger);
  font-weight: 700;
}

.capture-data-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(220px, 1.3fr);
  overflow: hidden;
}

.capture-data-grid.with-coordinates {
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(220px, 1.2fr);
}

.capture-data-grid.barrido-compact {
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.capture-data-block-barrido {
  border: 1px solid #b9d3c6;
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 95, 70, 0.08);
}

.capture-barrido-title {
  background: #0f5f46;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
}

.capture-barrido-block {
  background: #f2faf6;
  border-bottom: 1px solid #b9d3c6;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.capture-barrido-block .grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capture-barrido-block .grid-3 .field:nth-child(6) {
  grid-column: 1 / -1;
}

.capture-barrido-block-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
}

.capture-barrido-block-header span {
  color: var(--muted);
  font-size: 12px;
}

.capture-barrido-subblock {
  background: #fff;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.capture-barrido-subblock h5 {
  color: #0f5f46;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.capture-barrido-subblock h5 span {
  background: #dff1e8;
  border-radius: 999px;
  display: inline-block;
  padding: 3px 10px;
}

.capture-24h-pager {
  align-items: center;
  background: #fff7de;
  border: 1px solid #e7b324;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 10px 0 14px;
  padding: 10px;
}

.capture-24h-pager span {
  color: var(--muted);
  font-size: 13px;
}

.capture-barrido-map {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.capture-barrido-grid-map {
  background: #f8fbfa;
  border: 1px solid #a9c3ba;
  border-radius: 6px;
  overflow: hidden;
}

.capture-barrido-grid-map svg {
  display: block;
  height: 260px;
  width: 100%;
}

.capture-barrido-grid-map .subtitle {
  background: #fff;
  margin: 0;
  padding: 6px 8px;
}

.capture-barrido-grid-axis {
  fill: #587069;
  font-size: 10px;
  font-weight: 700;
}

.capture-noise-chart {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.capture-noise-chart h4 {
  margin: 0;
}

.capture-noise-chart svg {
  background: #fbfdfc;
  border: 1px solid #a9c3ba;
  border-radius: 6px;
  display: block;
  height: 320px;
  width: 100%;
}

.noise-chart-frame {
  fill: #fff;
  stroke: #a9c3ba;
}

.noise-chart-grid {
  stroke: #d8e4df;
  stroke-dasharray: 5 5;
  stroke-width: 1;
}

.noise-chart-axis,
.noise-chart-label {
  fill: #28463d;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.noise-chart-axis.y-axis {
  text-anchor: end;
}

.noise-chart-axis-line {
  stroke: #28463d;
  stroke-width: 1.4;
}

.noise-chart-line {
  fill: none;
  stroke: #0f6f8f;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.noise-chart-point {
  fill: #0f6f8f;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.noise-chart-peak {
  fill: #d21f3c;
  stroke: #ffffff;
  stroke-width: 2;
}

.noise-chart-peak-label {
  fill: #8a1023;
  font-size: 12px;
  font-weight: 800;
}

.noise-chart-label.rotated {
  transform: rotate(-90deg);
  transform-origin: 18px 160px;
}

.capture-time-notice {
  background: #eef5f1;
  border: 1px solid #9cc8b0;
  border-radius: 8px;
  color: #17382d;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.capture-time-notice span {
  color: var(--muted);
  font-size: 12px;
}

.capture-plan-execution-summary {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 280px;
}

.capture-plan-execution-summary > div {
  display: grid;
  gap: 3px;
}

.capture-period-alert {
  color: #8a230f;
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.capture-period-alert[hidden] {
  display: none;
}

.capture-data-blocks {
  display: grid;
  gap: 14px;
}

.capture-data-block {
  display: grid;
  gap: 8px;
}

.capture-data-block h4 {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.capture-data-block h4 span {
  background: #e6eef6;
  border-radius: 999px;
  color: #16436c;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
}

.capture-data-head {
  background: #e8efec;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 9px;
  text-transform: uppercase;
}

.capture-data-row {
  display: contents;
}

.capture-data-row > * {
  border-bottom: 1px solid #edf1f0;
  border-right: 1px solid #edf1f0;
  min-width: 0;
  padding: 7px;
}

.capture-minute-cell,
.capture-coordinate-cell {
  display: grid;
  gap: 6px;
}

.capture-inline-field {
  display: grid;
  gap: 4px;
}

.capture-inline-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.capture-field-alert {
  display: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.capture-field-alert.is-visible {
  display: block;
}

.capture-field-alert.advisory {
  color: var(--muted);
}

.capture-field-alert.warning {
  color: #8a5b00;
}

.capture-field-alert.danger {
  color: var(--danger);
}

.capture-inline-field input.data-warning {
  background: #fff8e6;
  border-color: #ddb75d;
}

.capture-inline-field input.data-danger {
  background: #fff0ed;
  border-color: var(--danger);
}

input.field-empty-soft,
textarea.field-empty-soft,
select.field-empty-soft {
  background: #fffdf4;
  border-color: #e4b84f;
  box-shadow: inset 3px 0 0 #e4b84f;
}

.capture-sonometer-guidance p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.capture-close-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.capture-itinerary-grid {
  display: grid;
  gap: 12px;
}

.capture-itinerary-day {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.capture-itinerary-day-header {
  align-items: center;
  background: #eef5f1;
  border: 1px solid #c9ddd4;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 0.8fr) auto;
  padding: 8px;
}

.capture-itinerary-day-header strong {
  color: #0f5f46;
  font-size: 15px;
}

.capture-itinerary-day-header span,
.capture-itinerary-day-header label {
  color: var(--muted);
  font-size: 12px;
}

.capture-itinerary-actions,
.capture-itinerary-global-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.capture-itinerary-day-rows {
  display: grid;
  gap: 8px;
}

.capture-itinerary-row {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(110px, 0.55fr) minmax(170px, 0.8fr) minmax(190px, 1fr) minmax(220px, 1.2fr) auto;
  padding: 8px;
}

.capture-itinerary-row .field {
  min-width: 0;
}

.capture-itinerary-row input:disabled {
  background: #f5f7f8;
  color: var(--muted);
}

.capture-executed-schedule-panel {
  background: #f7fbff;
  border: 1px solid #b9d6ef;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 12px;
}

.capture-executed-schedule-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.capture-executed-schedule-head strong {
  color: #16436c;
  display: block;
}

.capture-executed-schedule-head span {
  color: var(--muted);
  font-size: 12px;
}

.capture-executed-schedule-table {
  font-size: 12px;
}

.capture-waste-grid {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(130px, 0.7fr) minmax(220px, 1.6fr);
  overflow: hidden;
}

.capture-waste-grid > div {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
}

.capture-waste-grid input {
  width: 100%;
}

.capture-checklist-grid {
  display: grid;
  gap: 8px;
}

.capture-checklist-grid label {
  align-items: flex-start;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  line-height: 1.35;
  padding: 8px;
}

.capture-adjustment-box {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.capture-evidence-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}

.capture-evidence-list .capture-evidence-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) minmax(160px, auto) auto;
  align-items: center;
  padding: 8px;
}

.capture-evidence-list span {
  color: #16436c;
  font-weight: 900;
}

.capture-evidence-list p,
.capture-evidence-list small {
  color: var(--muted);
  margin: 0;
}

.capture-source-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}

.capture-source-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.capture-source-list div.active {
  border-color: #0b6fc6;
  box-shadow: inset 3px 0 0 #0b6fc6;
}

.planner-return-inventory-actions {
  background: #edf8f2;
  border: 1px solid #8fcfb2;
  border-radius: 8px;
  box-shadow: inset 5px 0 0 #0f7a52;
  padding: 12px;
}

.planner-return-inventory-action-list {
  border-top-color: #8fcfb2;
}

.planner-return-inventory-action-list div {
  border-color: #8fcfb2;
  box-shadow: inset 4px 0 0 #0f7a52;
}

.capture-source-list span {
  color: var(--accent);
  font-weight: 900;
}

.capture-source-list p {
  color: var(--muted);
  margin: 2px 0 0;
}

.capture-peer-record {
  margin-top: 4px;
}

.capture-peer-record pre {
  background: #f6f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #15344f;
  font-size: 11px;
  line-height: 1.45;
  margin: 8px 0 0;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.capture-source-ops {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
}

.capture-mobile-source-grid {
  display: grid;
  gap: 8px;
}

.capture-mobile-source-row {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e2de;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, 1fr) 34px 72px 34px;
  padding: 6px;
}

.capture-mobile-source-row input {
  min-height: 32px;
  text-align: center;
}

.capture-mobile-source-total {
  color: var(--accent);
  display: inline-block;
  margin-top: 8px;
}

.small-button {
  font-size: 12px;
  justify-self: start;
  min-height: 30px;
  padding: 6px 9px;
}

.capture-resource-checklist {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.capture-resource-checklist > strong {
  color: var(--ink);
}

.capture-resource-checklist label {
  align-items: flex-start;
  background: #f7faf8;
  border: 1px solid #d7e2de;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.capture-resource-checklist input {
  margin-top: 2px;
}

.capture-resource-checklist span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.schedule-pending-time {
  display: grid;
  gap: 4px;
}

.schedule-pending-time span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-pending-time input {
  width: 100%;
}

.capture-inline-submit {
  justify-self: start;
}

.equipment-alert-list {
  display: grid;
  gap: 6px;
}

.equipment-alert {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 8px;
}

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

.equipment-alert.success {
  background: #e8f4ed;
  border-color: #9cc8b0;
}

.equipment-alert.warning {
  background: #fff8e6;
  border-color: #ddb75d;
}

.equipment-alert.danger {
  background: #fcedeb;
  border-color: #c4493f;
}

.capture-geo-card {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr);
}

.capture-geo-map {
  background:
    linear-gradient(90deg, rgba(31, 95, 74, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 95, 74, 0.16) 1px, transparent 1px),
    #eef5f1;
  background-size: 32px 32px;
  border: 1px solid #a9c3ba;
  border-radius: 6px;
  min-height: 112px;
  position: relative;
}

.capture-geo-map span {
  background: #b7db22;
  border: 2px solid #0d1b16;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(183, 219, 34, 0.22);
  height: 18px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
}

.capture-geo-data {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.capture-geo-data p {
  color: var(--muted);
  margin: 0;
}

.capture-geo-data dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.capture-geo-data dl div {
  border-bottom: 1px solid #edf1f0;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  padding-bottom: 5px;
}

.capture-geo-data dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.capture-geo-data dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.capture-satellite-map {
  background: #0f241f;
  border: 1px solid #a9c3ba;
  border-radius: 6px;
  overflow: hidden;
}

.capture-satellite-map svg {
  display: block;
  height: 220px;
  width: 100%;
}

.capture-satellite-map .subtitle {
  background: #fff;
  margin: 0;
  padding: 6px 8px;
}

.map-point-source {
  fill: #f46d43;
  stroke: #0d1b16;
  stroke-width: 2;
}

.map-point-source.selected {
  fill: #ff2f2f;
  stroke: #fff;
  stroke-width: 4;
}

.capture-actions {
  justify-content: flex-start;
  align-items: flex-start;
}

.capture-draft-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operational-points-table h3 {
  margin: 0 0 8px;
}

.plan-detail-sheet .operational-points-table {
  overflow-x: auto;
}

.plan-detail-sheet .operational-points-table table {
  min-width: 980px;
  table-layout: fixed;
}

.plan-detail-sheet .operational-points-table th,
.plan-detail-sheet .operational-points-table td {
  overflow-wrap: normal;
  vertical-align: top;
  word-break: normal;
}

.plan-detail-sheet .plan-point-code {
  width: 92px;
}

.plan-detail-sheet .plan-point-type {
  width: 145px;
}

.plan-detail-sheet .plan-point-name {
  width: 190px;
}

.plan-detail-sheet .plan-point-coordinates {
  width: 230px;
}

.plan-point-parameters summary {
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 800;
}

.plan-point-parameters div {
  line-height: 1.45;
  margin-top: 8px;
}

.capture-points-reference .operational-points-table table {
  table-layout: fixed;
}

.capture-points-reference .operational-points-table th,
.capture-points-reference .operational-points-table td {
  vertical-align: top;
}

.capture-points-reference .operational-points-table th:nth-child(1) {
  width: 92px;
}

.capture-points-reference .operational-points-table th:nth-child(2) {
  width: 54px;
}

.capture-points-reference .operational-points-table th:nth-child(3) {
  width: 132px;
}

.capture-points-reference .operational-points-table th:nth-child(4) {
  width: 17%;
}

.capture-points-reference .operational-points-table th:nth-child(5) {
  width: 26%;
}

.capture-points-reference .operational-points-table th:nth-child(6) {
  width: 106px;
}

.capture-points-reference .operational-points-table th:nth-child(7) {
  width: 160px;
}

.point-code-cell,
.measurement-session-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.point-code-cell .period-badge,
.measurement-session-cell .period-badge {
  align-self: flex-start;
}

.measurement-session-cell small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.capture-sessions-table td[data-label="Responsable"] {
  min-width: 190px;
}

.capture-session-status {
  font-size: 11px;
  padding: 5px 9px;
}

.capture-reference {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
}

.capture-reference img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  width: auto;
}

.capture-queue-panel {
  margin-top: 12px;
}

.capture-queue-panel details {
  display: grid;
}

.capture-queue-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.capture-queue-panel summary::-webkit-details-marker {
  display: none;
}

.queue-status-detail {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

.queue-error-detail {
  margin-top: 6px;
}

.queue-error-detail summary {
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.capture-geo-data,
.capture-geo-data p,
.capture-geo-data dd,
.capture-satellite-map .subtitle {
  overflow-wrap: anywhere;
  word-break: normal;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #edf1f0;
  color: var(--ink);
  white-space: nowrap;
}

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

.status.warning {
  background: #fff1cc;
  color: #7a5300;
}

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

.status.info {
  background: #e4edf5;
  color: var(--info);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.responsive-table {
  table-layout: auto;
}

.processing-queue-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

@media (min-width: 981px) {
  table.processing-queue-table { min-width: 1460px; }
  .processing-queue-table th,
  .processing-queue-table td { word-break: normal; overflow-wrap: normal; }
  .processing-queue-table td[data-label="Plan"] { min-width: 110px; }
  .processing-queue-table td[data-label="Plan"] > strong { white-space: nowrap; }
  .processing-queue-table td[data-label="Laboratorio"] { min-width: 150px; white-space: nowrap; }
  .processing-queue-table td[data-label="Ultimo registro"] { min-width: 130px; white-space: nowrap; }
  .processing-queue-table td[data-label="Acción"] { min-width: 180px; }
  .processing-queue-table td[data-label="Acción"] button { white-space: nowrap; }
}

.plan-list-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; position: relative; }
table.plan-list-table {
  table-layout: fixed;
  font-size: 13px;
  min-width: 2230px;
  width: 100%;
}

.plan-list-table .col-plan-code {
  width: 160px;
}

.plan-list-table .col-report-code { width: 130px; }
.plan-list-table .col-lab { width: 170px; }
.plan-list-table .col-progress { width: 180px; }
.plan-list-table .col-state { width: 195px; }

.plan-list-table .col-client { width: 180px; }
.plan-list-table .col-date { width: 125px; }

.plan-list-table .col-title { width: 200px; }
.plan-list-table .col-matrix { width: 140px; }

.plan-list-table .col-version {
  width: 80px;
}

.plan-list-table .col-project {
  width: 185px;
}

.plan-list-table .col-submatrix,
.plan-list-table .col-tech {
  width: 210px;
}

.plan-list-table .col-actions {
  width: 250px;
}

.plan-list-table .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.plan-list-table .row-actions button { min-height: 36px; padding: 7px 8px; line-height: 1.3; }

.plan-list-table th,
.plan-list-table td {
  word-break: normal;
  overflow-wrap: break-word;
}
.plan-list-table th { overflow-wrap: normal; }
.plan-list-table .plan-sticky {
  position: sticky;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}
.plan-list-table thead .plan-sticky { z-index: 4; background: #e8efec; }
.plan-list-table .plan-sticky-code { left: 0; }
.plan-list-table .plan-sticky-report { left: 160px; }
.plan-list-table .plan-sticky-title { left: 290px; }
.plan-list-table .plan-sticky-client { left: 490px; box-shadow: 4px 0 7px #173b2d18; }
.plan-list-table tbody tr:hover .plan-sticky { background: #f7faf8; }
.plan-list-table .plan-return-row .plan-sticky { background: #fff7f6; }
.plan-list-table .plan-return-row:hover .plan-sticky { background: #fff2f0; }
.plan-sort-header { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; white-space: normal; word-break: normal; }
.plan-sort-header:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.readiness-counts { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; font-weight: 600; }
.readiness-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 12px; align-items: start; }
.readiness-groups>details { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.readiness-check { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.readiness-check .status { justify-self: start; }
.readiness-check ul { max-height: 250px; overflow: auto; padding-left: 24px; }
.readiness-check li { margin-bottom: 6px; }

.plan-code-cell {
  border-left: 5px solid transparent;
}

.plan-attention-row .plan-code-cell {
  border-left-color: var(--danger);
}

.plan-code-cell strong {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}

.plan-code-progress-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-code-progress-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.plan-progress { display: grid; gap: 5px; min-width: 145px; }
.plan-progress > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-progress > div strong { color: var(--primary); font-size: 15px; }
.plan-progress > div span,
.plan-progress small,
.plan-progress-empty,
.plan-progress-loading { color: var(--muted); font-size: 11px; }
.plan-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #dce8e5; }
.plan-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16846b, #72cf43); }
.plan-executed-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  border-radius: 50%;
  background: #13735e;
  color: #fff;
  font-weight: 800;
}
.plan-progress-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.plan-progress-dialog > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.plan-progress-dialog > header h3 { margin: 3px 0 0; }
.plan-progress-dialog-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.plan-progress-dialog-summary article { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #f6fbf8; }
.plan-progress-dialog-summary article small,
.plan-progress-dialog-summary article strong { display: block; }
.plan-progress-dialog-summary article strong { margin-top: 5px; font-size: 22px; color: #154f42; }
.plan-progress-point-list { display: grid; gap: 9px; }
.plan-progress-point-list > article { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.plan-progress-point-list > article > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-progress-point-list details { margin-top: 8px; }
.plan-progress-point-list ul { margin-bottom: 0; padding-left: 20px; }
.plan-progress-dialog > footer { display: flex; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 720px) {
  .plan-progress-dialog-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plan-code-cell .status {
  display: inline-flex;
  max-width: 148px;
  white-space: normal;
}

.plan-list-table td[data-label="Proyecto"] {
  max-width: 360px;
}

.plan-list-table td[data-label="Accion"],
.plan-list-table td[data-label="Acción"] {
  width: 250px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  vertical-align: top;
  word-break: break-word;
}

th {
  background: #e8efec;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

td {
  text-align: left;
}

tbody tr:hover {
  background: #f7faf8;
}

.plan-attention-row {
  box-shadow: inset 5px 0 0 var(--danger);
}

.plan-return-row {
  background: #fff7f6;
}

.plan-return-row:hover {
  background: #fff2f0;
}

.list-collapsed-notice {
  background: #f5f9f7;
  border: 1px solid #c8d8d1;
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 14px;
}

.list-collapsed-notice.warning {
  background: #fff8e6;
  border-color: #ddb75d;
  color: #6f4b00;
}

.notification-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c9d8d2;
  border-radius: 999px;
  color: #134b38;
  display: inline-grid;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 34px;
  min-width: 40px;
  padding: 4px 10px;
  position: relative;
  width: auto;
}

.notification-svg {
  color: currentColor;
  height: 20px;
  width: 20px;
}

.notification-icon {
  border: 2px solid currentColor;
  border-radius: 9px 9px 5px 5px;
  display: block;
  height: 17px;
  position: relative;
  width: 16px;
}

.notification-icon::before {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
  height: 5px;
  left: 50%;
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  width: 7px;
}

.notification-icon::after {
  background: currentColor;
  border-radius: 0 0 6px 6px;
  bottom: -6px;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 6px;
}

.notification-button i {
  background: #b42318;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  height: 18px;
  line-height: 18px;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -6px;
  text-align: center;
  top: -6px;
}

.notification-menu {
  display: inline-flex;
  overflow: visible;
  position: relative;
}

.notification-panel {
  background: #ffffff;
  border: 1px solid #c8d8d1;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 34, 29, 0.18);
  display: grid;
  gap: 8px;
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 28px));
  z-index: 80;
}

.notification-panel > strong {
  color: var(--ink);
  font-size: 13px;
}

.notification-item {
  background: #f6fbf8;
  border: 1px solid #c8d8d1;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.notification-item.danger {
  background: #fff4f4;
  border-color: #e6a19d;
}

.notification-item.warning {
  background: #fff8e6;
  border-color: #ddb75d;
}

.notification-item.info {
  background: #eef6ff;
  border-color: #a8cde8;
}

.notification-item.muted {
  opacity: 0.68;
}

.notification-panel button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.notification-panel span {
  font-weight: 900;
}

.notification-panel small {
  color: var(--muted);
}

.notification-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.notification-actions button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #c8d8d1;
  border-radius: 999px;
  color: #134b38;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  width: auto;
}

.collapsible-section {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.collapsible-section summary {
  align-items: center;
  background: #f5f9f7;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.collapsible-section summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.collapsible-section-body {
  padding: 14px;
}

.selected-row {
  background: #edf7f3;
}

.row-actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planner-return-header-actions {
  align-items: stretch;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  min-width: 250px;
}

.planner-return-header-actions button {
  justify-content: center;
  width: 100%;
}

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

.empty.compact {
  padding: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  z-index: 20;
}

.toast.error {
  border-color: #edc2bf;
  box-shadow: 0 12px 30px rgba(164, 52, 47, 0.18);
}

.toast.warning {
  border-color: #d2a64a;
  box-shadow: 0 12px 30px rgba(160, 112, 32, 0.18);
}

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

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.placeholder-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.schedule-toolbar {
  align-items: end;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: auto repeat(4, minmax(130px, 1fr)) auto auto;
  margin: 22px 0;
  padding: 16px;
}

.schedule-tech-filter {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, auto) auto 1fr;
  margin: -6px 0 18px;
  padding: 12px 14px;
}

.schedule-tech-filter strong,
.schedule-tech-filter span {
  display: block;
}

.schedule-tech-filter span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.schedule-tech-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-plan-filter {
  margin-bottom: 10px;
}

.schedule-tech-check {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
}

.schedule-tech-check i,
.schedule-month-legend i {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.schedule-tech-check input {
  margin: 0;
}

.schedule-tech-check span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.schedule-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  scroll-padding-bottom: 64px;
  scroll-padding-right: 64px;
  width: 100%;
}

.schedule-orientation-notice {
  display: none;
}

.schedule-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 440px;
  max-width: 100%;
  overflow: hidden;
}

.schedule-workspace-main {
  min-width: 0;
  overflow: visible;
  padding: 0;
}

.schedule-change-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-dirty-bar {
  align-items: center;
  background: #fff8df;
  border: 1px solid #e5a900;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(37, 54, 45, 0.18);
  display: none;
  gap: 18px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  position: sticky;
  bottom: 12px;
  z-index: 30;
}

.schedule-dirty-bar.is-visible {
  display: flex;
}

.create-dirty-bar,
.capture-dirty-bar {
  grid-column: 1 / -1;
  width: 100%;
}

.capture-dirty-bar {
  margin-top: 16px;
}

.schedule-dirty-bar strong,
.schedule-dirty-bar span {
  display: block;
}

.schedule-dirty-bar span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.schedule-pending-panel {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(760px, calc(100vh - 120px));
  min-width: 360px;
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 12px;
}

.schedule-pending-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
}

.schedule-pending-head span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-days-panel {
  max-height: 680px;
}

.schedule-days-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.schedule-days-card-head {
  align-items: center;
  display: flex;
  gap: 8px;
}

.schedule-days-card-head i {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.schedule-days-card span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.schedule-days-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.schedule-board.weekly {
  grid-template-columns: 220px repeat(var(--schedule-days, 7), minmax(280px, 1fr));
}

.schedule-corner,
.schedule-day-head,
.schedule-tech,
.schedule-cell {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 74px;
  padding: 10px;
}

.schedule-corner,
.schedule-day-head {
  background: #e8efec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 4;
}

.schedule-corner,
.schedule-tech {
  left: 0;
  position: sticky;
  z-index: 3;
}

.schedule-corner {
  z-index: 6;
}

.schedule-day-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-day-head strong {
  color: var(--text);
  font-size: 12px;
}

.schedule-day-head span,
.schedule-day-head em {
  font-style: normal;
}

.schedule-day-head em,
.schedule-month-day em,
.schedule-daily-head em {
  background: #f4eadb;
  border: 1px solid #d8c5a6;
  border-radius: 999px;
  color: #715b32;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  width: fit-content;
}

.schedule-tech {
  background: #fbfcfc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.schedule-cell {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-day-head.non-working,
.schedule-cell.non-working,
.schedule-month-day.non-working,
.schedule-daily-head > div.non-working {
  background: #fbf6ee;
}

.schedule-cell:hover {
  background: #f7faf8;
}

.schedule-activity,
.schedule-pending-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--activity-color);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(30, 42, 38, 0.09);
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  padding: 9px;
}

.schedule-pending-card {
  --activity-color: var(--accent);
  gap: 6px;
  padding: 9px 10px;
}

.schedule-pending-card .schedule-activity-title strong {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.schedule-pending-meta {
  color: #30433d !important;
  font-weight: 800;
}

.schedule-side-save {
  background: #fff8df;
  border: 1px solid #d9a100;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.schedule-side-save strong {
  color: #6f4b00;
}

.schedule-side-save span {
  color: #6f4b00 !important;
  font-size: 12px;
}

.pending-counter {
  background: #e8efec;
  border: 1px solid #cfdcd7;
  border-radius: 999px;
  color: #30433d !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  padding: 3px 7px;
  width: fit-content;
}

.schedule-pending-detail {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-pending-detail span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 95, 74, 0.14);
  border-radius: 4px;
  color: #20352f !important;
  display: grid;
  font-size: 11px !important;
  gap: 1px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 4px 6px;
}

.schedule-pending-detail b {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.schedule-pending-location {
  color: #30433d !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.schedule-activity.diurna,
.schedule-pending-card.diurna {
  background: #fff9e7;
}

.schedule-activity.nocturna,
.schedule-pending-card.nocturna {
  background: #eef6ff;
}

.schedule-activity.unica,
.schedule-pending-card.unica {
  background: #eef8f3;
}

.schedule-activity.executed {
  background: #eef5f1;
  cursor: default;
  opacity: 0.9;
}

.schedule-activity.pending-change {
  outline: 2px dashed #b7791f;
  outline-offset: 2px;
}

.pending-mark {
  align-self: flex-start;
  background: #fff2cc;
  border: 1px solid #d6a620;
  border-radius: 999px;
  color: #6f4b00 !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  padding: 3px 7px;
}

.schedule-activity.readonly-plan {
  background: #f3f5f6;
  border-left-color: #8a9298;
  cursor: default;
  opacity: 0.88;
}

.schedule-activity-title {
  align-items: flex-start;
  display: flex;
  gap: 6px;
}

.schedule-activity-title strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-activity small,
.schedule-activity span,
.schedule-pending-card small,
.schedule-pending-card span {
  color: var(--muted);
  font-size: 11px;
}

.documental-viewer-head strong,
.documental-review-group summary {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.documental-title-icon {
  color: var(--accent);
}

.schedule-date-range {
  color: #10261f;
  font-weight: 900;
}

.schedule-cross-day {
  align-self: flex-start;
  background: #fff7ed;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #7c2d12 !important;
  font-weight: 900;
  line-height: 1.1;
  padding: 3px 7px;
}

.period-badge {
  align-items: center;
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px !important;
  font-weight: 800;
  gap: 4px;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.period-badge::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.period-badge.diurna {
  background: rgba(255, 207, 0, 0.88);
  border: 1px solid #c89600;
  color: #3b3100 !important;
}

.period-badge.diurna::before {
  background: #ffb300;
  border-radius: 50%;
  box-shadow:
    0 -4px 0 -2px #ffb300,
    0 4px 0 -2px #ffb300,
    4px 0 0 -2px #ffb300,
    -4px 0 0 -2px #ffb300;
}

.period-badge.nocturna {
  background: rgba(0, 128, 255, 0.92);
  border: 1px solid #0067c5;
}

.period-badge.nocturna::before {
  background: transparent;
  border-radius: 50%;
  box-shadow: inset 4px 0 0 #ffffff;
}

.period-badge.unica {
  background: rgba(24, 116, 106, 0.94);
  border: 1px solid #0f5f57;
}

.period-badge.unica::before {
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.processing-measurement-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.processing-file-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.processing-file-line .small-button {
  padding: 4px 8px;
}

.processing-plan-deliverables {
  align-items: center;
  background: linear-gradient(90deg, #e7f5ef 0%, #f9fcfb 100%);
  border: 1px solid #91cdb7;
  border-radius: 8px;
  box-shadow: inset 5px 0 0 var(--accent);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  margin: 16px 0;
  padding: 12px 16px;
}

.processing-official-actions {
  display: grid;
  gap: 8px;
}

.processing-run-panel {
  background: #f8fbff;
  border: 1px solid #bdd7ee;
  border-radius: 8px;
  box-shadow: inset 5px 0 0 #2f80ed;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 16px 0;
  padding: 14px 16px;
}

.processing-run-panel > *,
.processing-result-screen > *,
.processing-result-grid > section {
  min-width: 0;
}

.processing-run-panel .table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.processing-run-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.processing-run-header-side {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: 680px;
}

.processing-run-flow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.processing-run-flow span {
  align-items: center;
  background: #edf5ff;
  border: 1px solid #cfe3fa;
  border-radius: 999px;
  color: #12375f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
}

.processing-run-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.processing-run-tabs .active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.processing-run-form {
  display: grid;
  gap: 12px;
}

.processing-run-slots {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.processing-run-slot {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 10px 12px 12px;
}

.processing-run-slot legend {
  color: #12375f;
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
}

.processing-run-slot label {
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.processing-run-slot input[type="file"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  max-width: 100%;
  padding: 8px;
}

.processing-meteo-form {
  display: grid;
  gap: 12px;
}

.processing-meteo-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.processing-meteo-tabular-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.processing-meteo-sheet {
  border: 1px solid #0f172a;
}

.processing-sheet-grid-wrap.meteo-grid {
  max-height: 360px;
}

.processing-sheet-grid-wrap.meteo-grid table {
  min-width: 980px;
}

.processing-sheet-grid-wrap.meteo-grid th,
.processing-sheet-grid-wrap.meteo-grid td {
  border-bottom-color: #202020;
  border-right-color: #202020;
}

.processing-sheet-grid-wrap.meteo-grid thead th {
  border-top: 1px solid #202020;
}

.processing-meteo-result {
  display: grid;
  gap: 12px;
}

.processing-meteo-local-preview {
  display: grid;
  gap: 12px;
}

.processing-meteo-preview-note {
  background: #f4fbf7;
  border: 1px solid #b8dfcf;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.processing-meteo-preview-note strong {
  color: var(--accent);
}

.processing-meteo-preview-note span {
  color: var(--muted);
  font-size: 12px;
}

.processing-meteo-preview-block {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  padding: 12px;
}

.processing-meteo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.processing-meteo-grid > section,
.processing-meteo-graphs {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  padding: 12px;
}

.processing-meteo-table {
  border-collapse: collapse;
  width: 100%;
}

.processing-meteo-table th,
.processing-meteo-table td {
  border: 1px solid #202020;
  padding: 8px;
  vertical-align: middle;
}

.processing-meteo-table th {
  background: #eaf3ef;
  color: #101010;
  font-weight: 900;
  text-align: center;
}

.processing-meteo-summary-table {
  background: #f7f7f7;
}

.processing-meteo-summary-table thead th {
  background: #d9d9d9;
}

.processing-meteo-summary-table tbody th {
  background: #e5e5e5;
  text-align: left;
}

.processing-meteo-summary-table tbody td {
  background: #d9f0df;
  font-weight: 800;
  text-align: center;
}

.processing-meteo-summary-table .summary-total-days {
  background: #ffffff;
  text-align: center;
}

.processing-meteo-output-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.processing-meteo-output-list div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.processing-meteo-output-list div + div {
  border-top: 1px solid var(--line);
}

.processing-meteo-output-list span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.processing-meteo-graph-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.processing-meteo-graph-grid.wind-preview {
  align-items: stretch;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
}

.processing-meteo-graph-grid.wind-preview .wind-rose-preview {
  grid-row: span 2;
}

.processing-meteo-graph-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.processing-meteo-graph-card figcaption {
  color: var(--ink);
  font-weight: 900;
}

.processing-meteo-graph-card img {
  background: #ffffff;
  border: 1px solid #202020;
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  width: 100%;
}

.processing-meteo-graph-card.local-preview {
  border-color: #202020;
}

.processing-meteo-svg-chart {
  background: #ffffff;
  border: 1px solid #202020;
  display: block;
  height: auto;
  width: 100%;
}

.meteo-chart-frame {
  fill: #ffffff;
  stroke: #bdbdbd;
}

.meteo-chart-gridline {
  stroke: #c9c9c9;
  stroke-width: 1;
}

.meteo-chart-axis-line {
  stroke: #202020;
  stroke-width: 1;
}

.meteo-chart-axis,
.meteo-chart-legend,
.meteo-chart-axis-title {
  fill: #101010;
  font-size: 11px;
  font-weight: 800;
}

.meteo-chart-line {
  fill: none;
  stroke-width: 3;
}

.meteo-chart-area {
  opacity: 0.78;
  stroke: none;
}

.meteo-chart-bar {
  stroke: #063e31;
  stroke-width: 1;
}

.meteo-wind-ring {
  fill: none;
  stroke: #384bd1;
  stroke-dasharray: 2 3;
  stroke-width: 0.8;
}

.meteo-wind-ring-label-bg {
  fill: transparent;
  opacity: 0;
  stroke: none;
}

.meteo-wind-ring-label {
  fill: #101010;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
  stroke: none;
  stroke-width: 0;
}

.meteo-wind-axis {
  stroke: #384bd1;
  stroke-dasharray: 2 3;
  stroke-width: 0.7;
}

.meteo-wind-segment {
  opacity: 0.96;
  stroke: #666666;
  stroke-width: 0.55;
}

.meteo-wind-cardinal,
.meteo-wind-legend-title {
  fill: #101010;
  font-size: 12px;
  font-weight: 900;
}

.processing-manual-roadmap {
  background: #eef8f3;
  border: 1px solid #b8dfcf;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.processing-manual-roadmap strong {
  color: var(--accent);
}

.processing-run-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.processing-run-result {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  overflow: hidden;
}

.processing-run-result-header,
.processing-run-result-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 9px 11px;
}

.processing-run-result-header {
  background: #edf5ff;
}

.processing-run-result-row + .processing-run-result-row {
  border-top: 1px solid var(--line);
}

.processing-report-panel {
  display: grid;
  gap: 12px;
}

.processing-report-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.processing-report-history {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.processing-report-history-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(120px, 0.55fr) minmax(120px, 0.45fr) minmax(180px, 1fr) auto;
  padding: 9px 11px;
}

.processing-report-history-row + .processing-report-history-row {
  border-top: 1px solid var(--line);
}

.processing-report-history-row code {
  background: #eef5f1;
  border: 1px solid #c9ddd4;
  border-radius: 999px;
  color: #0f5f46;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.processing-tabular-form,
.processing-tabular-grid {
  display: grid;
  gap: 12px;
}

.processing-tabular-card {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.processing-tabular-card.ambiental {
  background: #f5fbf1;
  border-color: #b9d9af;
}

.processing-tabular-card.emision {
  background: #fff8e6;
  border-color: #eed79b;
}

.processing-tabular-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.processing-sheet-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 0.85fr);
}

.processing-sheet-block {
  background: #ffffff;
  border: 1px solid #99adbf;
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.processing-sheet-title {
  align-items: center;
  background: #e8edf3;
  border-bottom: 1px solid #99adbf;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.processing-sheet-title strong {
  color: #102a43;
  font-size: 13px;
}

.processing-sheet-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.processing-sheet-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.processing-sheet-columns {
  background: #edf7e8;
  border-bottom: 1px solid #99adbf;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.processing-sheet-columns span {
  border-right: 1px solid #99adbf;
  padding: 6px 8px;
}

.processing-sheet-columns span:last-child {
  border-right: 0;
}

.processing-sheet-columns.data-columns {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

.processing-sheet-columns.filter-columns {
  grid-template-columns: 1.3fr 0.7fr;
}

.processing-tabular-paste-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.processing-tabular-paste-grid label,
.processing-tabular-summary-grid label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.processing-tabular-paste-grid textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 132px;
  padding: 9px 10px;
  resize: vertical;
  white-space: pre;
}

.processing-sheet-block textarea {
  background-color: #fbfffb;
  background-image:
    linear-gradient(to right, rgba(126, 149, 171, 0.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 149, 171, 0.22) 1px, transparent 1px);
  background-size: 33.333% 100%, 100% 28px;
  border: 0;
  border-radius: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 28px;
  min-height: 168px;
  padding: 0 9px;
  resize: vertical;
  white-space: pre;
}

.processing-sheet-block.filter-sheet textarea {
  background-color: #f7fbff;
  background-size: 50% 100%, 100% 28px;
}

.processing-sheet-block.filter-sheet > textarea {
  display: none;
}

.processing-sheet-grid-wrap {
  background: #fbfffb;
  max-height: 260px;
  overflow: auto;
}

.processing-sheet-grid-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  min-width: 520px;
  table-layout: fixed;
  width: 100%;
}

.processing-sheet-grid-wrap.compact table {
  min-width: 320px;
}

.processing-sheet-grid-wrap th,
.processing-sheet-grid-wrap td {
  border-bottom: 1px solid #cfdbe6;
  border-right: 1px solid #cfdbe6;
  height: 28px;
  padding: 0;
}

.processing-sheet-grid-wrap thead th {
  background: #edf7e8;
  color: #000000;
  font-weight: 900;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 2;
}

.processing-sheet-grid-wrap .row-number {
  background: #eef2f6;
  color: #52606d;
  font-weight: 900;
  left: 0;
  min-width: 44px;
  position: sticky;
  text-align: center;
  width: 44px;
  z-index: 3;
}

.processing-sheet-grid-wrap tbody .row-number {
  z-index: 1;
}

.processing-sheet-grid-wrap td input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  font: inherit;
  height: 28px;
  outline: 0;
  padding: 0 8px;
  width: 100%;
}

.processing-sheet-grid-wrap td input:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.processing-sheet-grid-wrap .readonly-cell {
  background: #fff4cf;
  color: #102a43;
  font-weight: 800;
  padding: 0 8px;
}

.processing-sheet-grid-note {
  background: #fff8e6;
  border-top: 1px solid #e7c86e;
  color: #7c5a00;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.processing-sheet-preview {
  border-top: 1px solid #cdd8e3;
  max-height: 160px;
  overflow: auto;
}

.processing-sheet-preview table {
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
  width: 100%;
}

.processing-sheet-preview th,
.processing-sheet-preview td {
  border-bottom: 1px solid #edf1f5;
  padding: 5px 7px;
  text-align: left;
}

.processing-sheet-preview th {
  background: #f4f7fa;
  font-weight: 900;
}

.processing-sheet-empty {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #cdd8e3;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.processing-sheet-empty span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.processing-sheet-empty strong {
  color: #52606d;
  font-size: 12px;
}

.processing-tabular-preview,
.processing-result-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.processing-tabular-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.processing-tabular-summary-grid.spreadsheet-cells {
  background: #ffffff;
  border: 1px solid #d7c900;
  border-radius: 8px;
  padding: 8px;
}

.processing-tabular-summary-grid.spreadsheet-cells label {
  background: #ffffff;
  border: 1px solid #707070;
  border-radius: 4px;
  gap: 0;
  overflow: hidden;
}

.processing-tabular-summary-grid.spreadsheet-cells label span {
  background: #f4f7fa;
  border-bottom: 1px solid #707070;
  line-height: 1.15;
  min-height: 28px;
  padding: 5px 7px;
  text-align: center;
  white-space: normal;
}

.processing-tabular-summary-grid.spreadsheet-cells label.calculated {
  background: #e8f2ff;
}

.processing-tabular-summary-grid.spreadsheet-cells label.calculated span,
.processing-tabular-summary-grid.spreadsheet-cells label.calculated input {
  background: #e8f2ff;
  color: #52606d;
}

.processing-tabular-summary-grid input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 8px 9px;
}

.processing-tabular-summary-grid.spreadsheet-cells input {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  text-align: center;
}

.processing-tabular-summary-grid.spreadsheet-cells label:not(.calculated),
.processing-tabular-summary-grid.spreadsheet-cells label:not(.calculated) span,
.processing-tabular-summary-grid.spreadsheet-cells label:not(.calculated) input {
  background: #ffffff !important;
}

.processing-summary-section {
  border: 1px solid #d7c900;
  border-radius: 8px;
  overflow: hidden;
}

.processing-tabular-card-actions {
  display: flex;
  justify-content: flex-end;
}

.processing-tabular-card.locked {
  border-color: #0f7c52;
  box-shadow: inset 4px 0 0 #0f7c52;
}

.processing-result-screen {
  display: grid;
  gap: 12px;
}

.processing-result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.processing-result-grid section {
  background: #ffffff;
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  padding: 12px;
}

.processing-result-grid .wide {
  grid-column: 1 / -1;
}

.processing-collapsible-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.processing-result-subtitle {
  color: #102a43;
  font-size: 14px;
  font-weight: 900;
  margin: 8px 0 10px;
}

.processing-result-subtitle + .table-responsive {
  margin-bottom: 12px;
}

.processing-result-bars {
  display: grid;
  gap: 12px;
}

.processing-noise-chart-card {
  background: #ffffff;
  border: 1px solid #bcbcbc;
  overflow-x: auto;
  padding: 10px;
}

.processing-noise-chart-card + .processing-noise-chart-card {
  margin-top: 12px;
}

.processing-noise-svg-chart {
  display: block;
  min-width: 760px;
  width: 100%;
}

.processing-noise-svg-chart text {
  fill: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.processing-noise-svg-chart .chart-title {
  fill: #111111;
  font-size: 16px;
  font-weight: 900;
}

.processing-noise-svg-chart .axis,
.processing-noise-svg-chart .chart-data-table line {
  stroke: #7d7d7d;
  stroke-width: 1;
}

.processing-noise-svg-chart .chart-grid line {
  stroke: #d2d2d2;
  stroke-width: 1;
}

.processing-noise-svg-chart .chart-grid text,
.processing-noise-svg-chart .axis-label {
  fill: #333333;
  font-size: 11px;
}

.processing-noise-svg-chart .axis-title {
  fill: #111111;
  font-size: 13px;
  font-weight: 900;
}

.processing-noise-svg-chart .bar-shadow {
  fill: rgba(0, 0, 0, 0.22);
}

.processing-noise-svg-chart .bar-main,
.processing-noise-svg-chart .legend-bar {
  fill: #064f3d;
  stroke: #063a2f;
  stroke-width: 1;
}

.processing-noise-svg-chart .bar-main {
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}

.processing-noise-svg-chart .norm-marker {
  fill: #ff1d1d;
  stroke: #b60000;
  stroke-width: 1;
}

.processing-noise-svg-chart .residual-marker {
  fill: #d96200;
  stroke: #9f4200;
  stroke-width: 1;
}

.processing-noise-svg-chart .corrected-marker {
  fill: #8aa63b;
  stroke: #5f7722;
  stroke-width: 1;
}

.processing-noise-svg-chart .chart-data-table text {
  fill: #1f2933;
  font-size: 11px;
  font-weight: 700;
}

.processing-result-bar-row {
  align-items: center;
  background: #fbfdfc;
  border: 1px solid #d3e1dc;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(220px, 1fr) 96px;
  padding: 12px;
}

.processing-result-bar-label {
  display: grid;
  gap: 4px;
}

.processing-result-bar-label strong {
  color: #102c25;
  font-size: 13px;
}

.processing-result-bar-label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.processing-result-bar-plot {
  display: grid;
  gap: 8px;
}

.processing-result-bar-track {
  background: linear-gradient(90deg, #eef7f1 0%, #eef7f1 50%, #fff4df 50%, #fff4df 100%);
  border: 1px solid #b8cec5;
  border-radius: 8px;
  height: 30px;
  overflow: visible;
  position: relative;
}

.processing-result-bar-track i {
  background: var(--accent);
  border-radius: 7px 0 0 7px;
  display: block;
  height: 100%;
  min-width: 5px;
}

.processing-result-bar-track i.success {
  background: #0f7c52;
}

.processing-result-bar-track i.warning {
  background: #d99000;
}

.processing-result-bar-track i.danger {
  background: #b4362f;
}

.processing-result-bar-limit {
  background: #101010;
  bottom: -5px;
  display: block;
  position: absolute;
  top: -5px;
  width: 3px;
  z-index: 2;
}

.processing-result-bar-limit-label {
  background: #ffffff;
  border: 1px solid #222;
  border-radius: 999px;
  color: #101010;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 5px;
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}

.processing-result-bar-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
}

.processing-result-bar-row strong {
  display: grid;
  gap: 2px;
  line-height: 1.12;
}

.processing-result-bar-row strong small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.processing-noise-result-table {
  border-collapse: collapse;
  min-width: 1180px;
  width: 100%;
}

.processing-noise-result-table th,
.processing-noise-result-table td {
  border: 1px solid #202020;
  padding: 7px 8px;
  text-align: center;
  vertical-align: middle;
}

.processing-noise-result-table th {
  color: #101010;
  font-weight: 900;
  line-height: 1.15;
  min-width: 74px;
  white-space: normal;
}

.processing-noise-result-table td {
  white-space: nowrap;
}

.processing-noise-result-table .processing-noise-date-cell {
  min-width: 96px;
  white-space: normal;
}

.processing-noise-date-time {
  display: grid;
  gap: 2px;
  line-height: 1.12;
}

.processing-noise-result-table.er th {
  background: #ffc000;
}

.processing-noise-result-table.ra th {
  background: #b7e132;
}

.processing-noise-result-table.er td {
  background: #fff8df;
}

.processing-noise-result-table.ra td {
  background: #f5ffe8;
}

.processing-noise-summary-table,
.processing-noise-k-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.processing-noise-summary-table th,
.processing-noise-summary-table td,
.processing-noise-k-table th,
.processing-noise-k-table td {
  border: 1px solid #202020;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.processing-noise-summary-table th,
.processing-noise-k-table th {
  background: #eaf3ef;
  color: #101010;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
}

.processing-noise-summary-table.er th,
.processing-noise-k-table.er th {
  background: #ffc000;
  color: #101010;
}

.processing-noise-summary-table.ra th,
.processing-noise-k-table.ra th {
  background: #b7e132;
  color: #101010;
}

.processing-noise-summary-table.er td,
.processing-noise-k-table.er td,
.processing-noise-summary-table tr.er td,
.processing-noise-k-table tr.er td {
  background: #fff8df;
}

.processing-noise-summary-table.ra td,
.processing-noise-k-table.ra td,
.processing-noise-summary-table tr.ra td,
.processing-noise-k-table tr.ra td {
  background: #f5ffe8;
}

.processing-noise-summary-table.mixed th,
.processing-noise-k-table.mixed th {
  background: #e6eee9;
}

.processing-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.processing-support-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.processing-support-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.processing-meteo-equipment-notice {
  border: 1px solid #cfe3fa;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 280px;
  padding: 8px 10px;
  text-align: right;
}

.processing-meteo-equipment-notice strong {
  color: #102a43;
  font-size: 12px;
  font-weight: 900;
}

.processing-meteo-equipment-notice span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.processing-meteo-equipment-notice.success {
  background: #eef8f3;
  border-color: #9bd4be;
}

.processing-meteo-equipment-notice.warning {
  background: #fff8e6;
  border-color: #e7c66e;
}

.processing-meteo-equipment-notice.danger {
  background: #fff1f1;
  border-color: #e99898;
}

.processing-meteo-equipment-notice.danger strong {
  color: #9d1c1c;
}

.processing-inline-note {
  background: #fff3bf;
  border-radius: 999px;
  color: #5b3b00;
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  margin-left: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.processing-er-residual-note {
  background: #fff8e6;
  border: 1px solid #d99b2b;
  border-radius: 8px;
  color: #3f2a00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 10px;
  padding: 10px 12px;
}

.processing-history-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 18px 0 0;
  padding: 14px;
}

.processing-history-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -2px -2px 12px;
  padding: 2px 2px 12px;
}

.processing-history-list {
  display: grid;
  gap: 12px;
}

.processing-history-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.processing-history-card[open] {
  border-color: rgba(31, 111, 87, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.processing-history-card-head {
  align-items: center;
  background: var(--panel-soft);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
}

.processing-history-card-head::-webkit-details-marker {
  display: none;
}

.processing-history-head-meta {
  color: var(--muted);
  flex: 1 1 260px;
  font-size: 12px;
  font-weight: 700;
}

.processing-history-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.processing-history-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 12px;
}

.processing-history-grid div {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 9px 10px;
}

.processing-history-grid .wide {
  grid-column: span 2;
}

.processing-history-grid span,
.processing-history-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.processing-history-grid strong {
  overflow-wrap: anywhere;
}

.processing-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.38);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.processing-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(760px, calc(100vh - 48px));
  max-width: 980px;
  overflow: hidden;
  width: min(980px, calc(100vw - 48px));
}

.processing-modal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.processing-modal-close {
  align-items: center;
  background: #f7fbf9;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.processing-modal-close .button-icon {
  height: 20px;
  margin-right: 0;
  stroke-width: 3;
  width: 20px;
}

.processing-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.panel-body.hidden {
  display: none;
}

.processing-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.processing-return-modal {
  max-width: 820px;
}

.processing-return-context {
  background: #eef8f3;
  border: 1px solid #b8dfcf;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
}

.processing-return-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.processing-return-grid label,
.processing-return-field,
.processing-return-row-field {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.processing-return-grid select,
.processing-return-field input,
.processing-return-field textarea,
.processing-return-row-field input,
.processing-return-row-field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
}

.processing-return-field input[readonly],
.processing-return-field textarea[readonly] {
  background: #f7faf8;
  color: var(--muted);
}

.processing-return-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.processing-return-deliverable-option {
  align-items: center;
  background: #f7fbf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  padding: 8px 10px;
}

.processing-return-deliverable-option.disabled {
  background: #f3f5f4;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.75;
}

.processing-return-deliverable-option small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.processing-return-field {
  margin-top: 12px;
}

.processing-return-field textarea {
  min-height: 120px;
  resize: vertical;
}

.processing-return-actions-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.processing-return-points {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  max-height: 340px;
  overflow: auto;
}

.processing-return-point-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.processing-return-point-row + .processing-return-point-row {
  border-top: 1px solid var(--line);
}

.processing-return-point-row.disabled {
  background: #f7f9fa;
  color: var(--muted);
}

.processing-return-point-check {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

.processing-return-point-check input {
  margin-top: 4px;
}

.processing-return-point-check .subtitle {
  display: block;
  margin-top: 3px;
}

.processing-return-row-field {
  margin-left: 28px;
}

.processing-return-reason-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.processing-return-reason-row {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
}

.processing-return-reason-row + .processing-return-reason-row {
  border-top: 1px solid var(--line);
}

.processing-return-reason-check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.processing-return-reason-row textarea {
  margin-left: 26px;
  min-height: 54px;
}

.processing-return-point-row textarea {
  min-height: 74px;
  margin-left: 28px;
}

.processing-return-point-row .processing-return-reason-row textarea {
  margin-left: 26px;
  min-height: 54px;
}

.processing-modal-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.processing-files-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.processing-files-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.processing-file-index {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.processing-inventory-group {
  overflow: hidden;
}

.processing-inventory-layout {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
}

.processing-inventory-layout .processing-inventory-group:last-child:nth-child(3) {
  grid-column: 1 / -1;
}

.processing-inventory-group-title {
  align-items: center;
  background: #eef6f3;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.processing-modal-file-list {
  border-top: 1px solid var(--line);
}

.processing-modal-file-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto;
  padding: 10px 12px;
}

.processing-inventory-group .processing-modal-file-row {
  gap: 8px;
  grid-template-columns: minmax(170px, 1fr) auto;
  padding: 7px 10px;
}

.processing-inventory-group .processing-modal-file-row .subtitle {
  font-size: 12px;
  line-height: 1.3;
}

.processing-modal-file-row + .processing-modal-file-row {
  border-top: 1px solid var(--line);
}

.processing-preview-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 95;
}

.processing-preview-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 32px);
  max-width: min(1500px, calc(100vw - 32px));
  overflow: hidden;
  width: min(1500px, calc(100vw - 32px));
}

.processing-preview-body {
  align-items: flex-start;
  background: #0f172a;
  display: flex;
  justify-content: flex-start;
  min-height: 360px;
  overflow: auto;
  padding: 16px;
}

.processing-preview-body img {
  display: block;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
}

.processing-preview-body iframe {
  background: #ffffff;
  border: 0;
  height: calc(100vh - 170px);
  min-width: 1280px;
  width: max(100%, 1280px);
}

.processing-period-row.diurna {
  background: #fffdf3;
}

.processing-period-row.nocturna {
  background: #f4f9ff;
}

.processing-period-row.unica {
  background: #f5fbf8;
}

.processing-period-row.diurna td:first-child {
  border-left: 4px solid #e5c047;
}

.processing-period-row.nocturna td:first-child {
  border-left: 4px solid #7bb5f0;
}

.processing-period-row.unica td:first-child {
  border-left: 4px solid #83c5b8;
}

.execution-status-badge {
  align-items: center;
  border: 2px solid #111;
  border-radius: 999px;
  color: #000 !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px !important;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  padding: 0 5px;
}

.execution-status-badge.executed {
  background: #73ff00;
}

.execution-status-badge.not-executed {
  background: #ff2a2a;
}

.capture-executed-schedule-table .status-not-executed {
  color: #b91c1c;
  font-weight: 900;
}

.duration-badge {
  align-self: flex-start;
  background: #eef5f1;
  border: 1px solid #c5d8cf;
  border-radius: 999px;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
}

.schedule-time-row {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  margin-top: 4px;
}

.schedule-time-input,
.schedule-time-save {
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  min-height: 28px;
  min-width: 0;
}

.schedule-time-input {
  padding: 2px 4px;
}

.schedule-time-save {
  background: #eef5f1;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
  padding: 0 6px;
}

.schedule-time-input:disabled,
.schedule-time-save:disabled,
.schedule-remove:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.schedule-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.schedule-remove {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e7c9c6;
  border-radius: 5px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
  min-height: 26px;
  padding: 3px 8px;
}

.schedule-duplicate-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-size: 11px;
  min-height: 26px;
  max-width: 132px;
  padding: 3px 6px;
}

.schedule-duplicate-save {
  background: #eef7f3;
  border: 1px solid #c8ddd4;
  border-radius: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  min-height: 26px;
  padding: 3px 8px;
}

.readonly-note {
  color: #64717a !important;
  font-weight: 700;
}

.exec-mark {
  background: #73ff00;
  border-radius: 50%;
  color: #000;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  margin-left: 6px;
  min-width: 26px;
  padding: 0 7px;
  width: auto;
}

.schedule-daily {
  border: 1px solid var(--line);
  overflow: auto;
}

.schedule-daily-head,
.schedule-daily-row {
  display: grid;
  grid-template-columns: 220px repeat(var(--schedule-slots, 48), 260px);
  min-width: max-content;
}

.schedule-daily-head {
  position: sticky;
  top: 0;
  z-index: 4;
}

.schedule-daily-head > div {
  background: #e8efec;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
}

.schedule-daily-head > div:first-child {
  left: 0;
  position: sticky;
  z-index: 5;
}

.schedule-daily-head > div span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
}

.schedule-daily-head > div.diurna {
  background: rgba(255, 215, 64, 0.24);
}

.schedule-daily-head > div.nocturna {
  background: rgba(0, 145, 255, 0.16);
}

.schedule-month {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.schedule-month-wrap {
  display: grid;
  gap: 12px;
}

.schedule-month-legend {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.schedule-month-legend span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
}

.schedule-month-day {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 96px;
  padding: 10px;
}

.schedule-month-day span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.month-bars {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.month-bars i {
  border-radius: 3px;
  display: block;
  height: 8px;
  width: 24px;
}

.documental-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.documental-loading-overlay {
  align-items: center;
  background: rgba(5, 22, 17, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 2000;
}

.documental-loading-modal {
  align-items: center;
  background: #ffffff;
  border: 1px solid #9fcab2;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(5, 22, 17, 0.24);
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 360px;
  padding: 24px 28px;
  text-align: center;
  width: min(360px, calc(100vw - 40px));
}

.documental-loading-ring {
  align-items: center;
  animation: documentalRingBreath 2.2s ease-in-out infinite;
  border-radius: 999px;
  display: flex;
  height: 112px;
  justify-content: center;
  position: relative;
  width: 112px;
}

.documental-loading-ring::before {
  animation: documentalRingOrbit 1.5s linear infinite;
  border: 2px solid rgba(15, 107, 74, 0.12);
  border-left-color: rgba(15, 107, 74, 0.55);
  border-radius: 999px;
  content: "";
  inset: -8px;
  position: absolute;
}

.documental-loading-ring::after {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  inset: 12px;
  position: absolute;
}

.documental-loading-ring span {
  color: #0f3f2f;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.documental-loading-modal p {
  color: var(--muted);
  margin: 0;
}

.documental-loading-logo {
  display: block;
  width: min(200px, 100%);
  height: auto;
  margin-block-end: 4px;
}

.loading-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes documentalRingBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 107, 74, 0.1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(15, 107, 74, 0.05);
  }
}

@keyframes documentalRingOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.documental-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.4fr);
}

.documental-side,
.documental-viewer-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.documental-record-list,
.documental-format-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 0;
}

.documental-format-list {
  padding-left: 18px;
}

.documental-audit-box {
  background: #fffdf6;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
}

.documental-audit-head,
.documental-audit-item {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.documental-audit-list {
  display: grid;
  gap: 8px;
}

.documental-audit-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid #d97706;
  border-radius: 7px;
  padding: 10px;
}

.documental-audit-item div {
  display: grid;
  gap: 4px;
}

.documental-audit-item small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.documental-record {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.documental-record span,
.documental-record small,
.documental-viewer-head span {
  color: var(--muted);
}

.documental-review-groups {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.documental-review-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.documental-review-group summary {
  align-items: center;
  background: #f6faf8;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.documental-review-group summary::-webkit-details-marker {
  display: none;
}

.documental-review-group summary span,
.documental-review-group summary em {
  color: var(--muted);
  font-style: normal;
}

.documental-review-group summary em {
  background: #fff2cc;
  border: 1px solid #e4b656;
  border-radius: 999px;
  color: #6f4b00;
  font-size: 0.78rem;
  padding: 3px 8px;
}

.documental-review-items {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.documental-review-item {
  border: 1px solid #d9e3df;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.documental-review-item > div {
  display: grid;
  gap: 3px;
}

.documental-review-item span,
.documental-review-item small,
.documental-review-item p,
.documental-review-item dd {
  color: var(--muted);
}

.documental-review-item p {
  margin: 0;
}

.documental-review-item dl {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: max-content 1fr;
  margin: 0;
}

.documental-review-item dt {
  color: #173b2d;
  font-weight: 700;
}

.documental-review-item dd {
  margin: 0;
}

.documental-audit-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-flag {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}

.audit-flag.warning {
  background: #fff2cc;
  color: #6f4b00;
}

.audit-flag.danger {
  background: #ffe0dc;
  color: #a82117;
}

.documental-viewer-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.documental-pdf-viewer {
  border: 1px solid var(--line);
  border-radius: 6px;
  height: min(78vh, 860px);
  width: 100%;
}

.documental-viewer-empty {
  min-height: 420px;
}

.documental-viewer-card {
  align-items: flex-start;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 18px;
}

.pdf-overlay {
  background: rgba(7, 24, 18, 0.72);
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 2000;
}

.pdf-overlay-shell {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  height: calc(100vh - 36px);
  overflow: hidden;
}

.pdf-overlay-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 16px;
}

.pdf-overlay-header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.pdf-overlay-frame {
  border: 0;
  border-radius: 0;
  height: 100%;
}

.capture-execution-dialog {
  align-items: center;
  background: rgba(10, 22, 32, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 2100;
}

.capture-execution-dialog-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(10, 22, 32, 0.28);
  max-width: 560px;
  padding: 18px;
  width: min(560px, 100%);
}

.capture-execution-dialog-shell form,
.capture-execution-companions {
  display: grid;
  gap: 12px;
}

.capture-execution-dialog-shell h3 {
  margin: 0;
}

@media (max-width: 1280px) {
  .schedule-workspace {
    grid-template-columns: 1fr;
  }

  .schedule-pending-panel {
    max-height: 360px;
    position: static;
  }

  .documental-layout,
  .documental-summary-grid {
    grid-template-columns: 1fr;
  }

  .pdf-overlay {
    padding: 8px;
  }

  .pdf-overlay-shell {
    height: calc(100vh - 16px);
  }

  .pdf-overlay-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .login-page,
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
    overflow: visible;
    position: static;
  }

  .filters,
  .coordinate-row,
  .schedule-toolbar,
  .capture-toolbar,
  .informes-editorial-toolbar,
  .capture-form,
  .inline-editor form,
  .dashboard-actions,
  .dashboard-work-row,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .login-panel,
  .login-context {
    padding: 24px;
  }

  .informes-editorial-tab {
    width: auto;
  }

  .informes-editorial-summary {
    grid-template-columns: 1fr;
  }

  .preview-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body {
    background: #eef2f3;
    font-size: 14px;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  button {
    min-height: 44px;
    width: 100%;
  }

  .login-page {
    display: block;
  }

  .login-panel,
  .login-context {
    padding: 18px 14px;
  }

  .login-context {
    gap: 14px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    gap: 12px;
    height: auto;
    overflow: visible;
    padding: 12px 14px;
    position: static;
  }

  .lab-brand-card {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 92px minmax(0, 1fr);
    padding-bottom: 10px;
  }

  .lab-logo-large {
    max-height: 62px;
    padding: 4px;
  }

  .sidebar-title {
    font-size: 15px;
  }

  .lab-brand-card .subtitle {
    font-size: 12px;
    margin: 0;
  }

  .nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
  }

  .dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-work-row {
    grid-template-columns: 1fr;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    border-left-width: 4px;
    min-height: 0;
    padding: 12px 14px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar-meta {
    justify-content: flex-start;
    width: 100%;
  }

  .topbar-meta .status {
    font-size: 11px;
    padding: 4px 8px;
  }

  .topbar-meta #logoutBtn {
    flex: 1 1 120px;
  }

  .topbar-meta .notification-button {
    flex: 0 0 auto;
    width: auto;
  }

  .page {
    gap: 14px;
    padding: 12px 10px 22px;
  }

  .panel {
    border-radius: 8px;
    box-shadow: none;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .panel-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .panel-body {
    padding: 14px;
  }

  .plan-identity {
    align-items: flex-start;
    gap: 10px;
  }

  .plan-identity-title {
    font-size: 21px;
  }

  .matrix-icon {
    height: 46px;
    width: 46px;
  }

  .filters,
  .coordinate-row,
  .schedule-toolbar,
  .capture-toolbar,
  .capture-form,
  .inline-editor form,
  .grid-2,
  .grid-3 {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .actions,
  .capture-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .kpi {
    padding: 13px;
  }

  .kpi-value {
    font-size: 22px;
  }

  .capture-plan-notes {
    padding: 10px;
  }

  .capture-context-header {
    gap: 10px;
  }

  .capture-toolbar {
    align-items: stretch;
  }

  .capture-progress {
    align-items: center;
    grid-template-columns: auto 1fr;
  }

  .capture-tabs {
    flex-wrap: nowrap;
    margin: 0 -4px;
    overflow-x: auto;
    padding: 0 4px 4px;
  }

  .capture-tabs button {
    flex: 0 0 176px;
    min-height: 48px;
    text-align: center;
    white-space: normal;
  }

  .capture-selected-measurement {
    flex-direction: column;
  }

  .capture-measurement-nav button {
    flex-basis: 220px;
  }

  .capture-tab-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .capture-card {
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
  }

  .capture-geo-card {
    grid-template-columns: 1fr;
  }

  .capture-workspace-form,
  .capture-itinerary-grid,
  .capture-itinerary-day,
  .capture-itinerary-day-rows,
  .capture-itinerary-row,
  .capture-card select,
  .capture-card input,
  .capture-card textarea {
    max-width: 100%;
    min-width: 0;
  }

  .capture-active-float {
    align-items: center;
    background: #ffffff;
    border: 2px solid #0f5f46;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 95, 70, 0.22);
    display: flex;
    gap: 6px;
    padding: 7px 10px;
    position: fixed;
    right: 12px;
    bottom: 82px;
    z-index: 60;
  }

  .capture-active-float strong {
    font-size: 13px;
    line-height: 1;
  }

  .capture-active-float > span:not(.period-badge) {
    background: #e8f5ef;
    border-radius: 999px;
    color: #0f5f46;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
  }

  .capture-itinerary-row {
    grid-template-columns: 1fr;
  }

  .capture-itinerary-day-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .capture-itinerary-actions,
  .capture-itinerary-global-actions {
    justify-content: stretch;
  }

  .capture-itinerary-actions button,
  .capture-itinerary-global-actions button {
    flex: 1 1 150px;
  }

  .capture-satellite-map svg {
    height: 176px;
  }

  .capture-reference img {
    max-height: 190px;
  }

  .capture-calibration-grid,
  .capture-data-grid,
  .capture-data-grid.with-coordinates,
  .capture-data-grid.barrido-compact {
    display: block;
  }

  .capture-data-head {
    display: none;
  }

  .capture-data-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
  }

  .capture-data-row > * {
    border: 0;
    padding: 0;
  }

  .capture-minute-cell {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  }

  .table-wrap {
    overflow-x: visible;
  }

  table.responsive-table,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td {
    display: block;
    width: 100%;
  }

  table.responsive-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  table.responsive-table caption {
    display: block;
    margin-bottom: 8px;
  }

  table.responsive-table thead {
    display: none;
  }

  table.responsive-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 10px;
    padding: 8px;
  }

  table.responsive-table td {
    border-bottom: 1px solid #edf1f0;
    min-height: 0;
    overflow-wrap: anywhere;
    padding: 8px 4px;
    word-break: normal;
  }

  table.responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  table.responsive-table td:last-child {
    border-bottom: 0;
  }

  .plan-list-table .plan-sticky {
    position: static;
    box-shadow: none;
  }

  .plan-list-table .row-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .plan-list-table .row-actions button {
    flex: 1 1 112px;
  }

  .plan-list-table td[data-label="Proyecto"] {
    max-width: none;
  }

  .collapsible-section summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mono {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .toast {
    bottom: 12px;
    left: 10px;
    max-width: none;
    right: 10px;
  }
}

@media (min-width: 981px) {
  .capture-tab-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.1fr);
  }

  .capture-calibration-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .schedule-orientation-notice {
    background: #fff8e6;
    border: 1px solid #ddb75d;
    border-radius: 8px;
    color: #6f4b00;
    display: block;
    font-weight: 800;
    margin-bottom: 12px;
    padding: 12px;
  }

  .schedule-workspace {
    gap: 10px;
  }

  .schedule-workspace-main {
    max-height: 68vh;
    overflow: visible;
    padding: 0;
  }

  .schedule-board.weekly {
    grid-template-columns: 160px repeat(var(--schedule-days, 7), minmax(230px, 1fr));
    min-width: max-content;
  }

  .schedule-daily-head,
  .schedule-daily-row {
    grid-template-columns: 160px repeat(var(--schedule-slots, 48), 220px);
  }

  .schedule-month {
    grid-template-columns: 1fr;
  }

  .schedule-pending-panel {
    max-height: 280px;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .processing-run-slots,
  .processing-tabular-summary-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .schedule-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }

  .schedule-workspace-main {
    max-height: 78vh;
    overflow: visible;
    padding: 0;
  }

  .schedule-board.weekly {
    grid-template-columns: 210px repeat(var(--schedule-days, 7), minmax(270px, 1fr));
    min-width: max-content;
  }

  .schedule-daily-head,
  .schedule-daily-row {
    grid-template-columns: 210px repeat(var(--schedule-slots, 48), 250px);
  }

  .schedule-pending-panel {
    max-height: 78vh;
    min-width: 0;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .login-context {
    padding: 34px 46px;
  }

  .login-hero-logo {
    max-width: 220px;
  }

  .login-hero .brand-title {
    font-size: clamp(42px, 4.5vw, 66px);
  }
}

@media (max-width: 980px) {
  .processing-run-header,
  .processing-run-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .processing-run-header-side {
    align-items: stretch;
    justify-items: stretch;
    max-width: none;
  }

  .processing-meteo-equipment-notice {
    text-align: left;
  }

  .processing-run-slots {
    grid-template-columns: 1fr;
  }

  .processing-meteo-fields,
  .processing-meteo-grid,
  .processing-meteo-graph-grid,
  .processing-tabular-card-head,
  .processing-sheet-layout,
  .processing-tabular-paste-grid,
  .processing-tabular-summary-grid,
  .processing-result-grid,
  .processing-result-bar-row {
    grid-template-columns: 1fr;
  }

  .processing-tabular-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .processing-run-result-header,
  .processing-run-result-row,
  .processing-report-history-row {
    grid-template-columns: 1fr;
  }

  .login-page {
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: auto;
  }

  .login-panel {
    min-height: auto;
    padding: 24px;
  }

  .login-context.login-hero {
    min-height: auto;
    padding: 42px 20px;
  }

  .login-card {
    margin: 0 auto;
  }

  .login-hero-logo {
    max-width: 220px;
    width: 58%;
  }

  .login-hero .brand-title {
    font-size: 40px;
  }

  .login-hero-subtitle {
    font-size: 17px;
  }

  .login-module-grid {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-trust-strip {
    line-height: 1.7;
  }
}

@media (max-width: 560px) {
  .login-panel {
    padding: 16px;
  }

  .login-card {
    padding: 22px 18px;
  }

  .login-context.login-hero {
    padding: 34px 16px;
  }

  .login-creator-logo {
    max-width: 210px;
  }

  .login-hero-logo {
    width: 70%;
  }

  .login-hero .brand-title {
    font-size: 31px;
  }

  .login-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-trust-strip {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .processing-plan-deliverables {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .processing-action-group {
    justify-content: flex-start;
  }

  .processing-inventory-layout {
    grid-template-columns: 1fr;
  }

  .processing-modal-backdrop {
    padding: 12px;
  }

  .processing-modal {
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .processing-modal-file-row {
    grid-template-columns: 1fr;
  }

  .processing-preview-backdrop {
    padding: 12px;
  }

  .processing-preview-modal {
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
}
/* F6.3B common capture shell; technical forms retain their existing layout. */
.field-core-context { overflow-wrap: anywhere; }
.field-core-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.field-core-facts div { min-width: 0; }
.field-core-facts dt { font-weight: 600; }
.field-core-facts dd { margin: .25rem 0 0; }
.field-core-resources summary { cursor: pointer; font-weight: 600; }
.field-core-error { color: #9d2323; background: #fff0ef; padding: .75rem; border-radius: .4rem; }
.field-core-warning { color: #714a08; background: #fff7dd; padding: .4rem; }
.field-core-info { color: #274c70; }
.field-core-validation ul { padding-left: 1.3rem; }
.field-matrix-fields { min-width: 0; }
@media (max-width: 560px) { .field-core-facts { grid-template-columns: 1fr; } }

/* Manual Air: Noise-style cards and compact field-sheet rows. Never style Noise globally. */
.air-preparation .panel-body { display: grid; gap: 14px; min-width: 0; }
.air-preparation .panel-body > p { margin: 0; }
.air-preparation .field-core-facts { margin: 0; }
.air-preparation .field-core-context { gap: 8px; }
.air-preparation [data-air-select] { width: 100%; }
.air-preparation [data-air-save] { justify-self: start; }
[data-air-form] { min-width: 0; }
.air-form-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.air-form-heading h3 { margin: 0; }
.air-form-heading span, .air-form-hint { color: var(--muted); font-size: 13px; }
.air-form-guidance { margin-bottom: 16px; }
.air-form-guidance summary, .air-reading-details summary, .air-equipment-reference summary { cursor: pointer; }
.air-technology-group { grid-column: 1 / -1; min-width: 0; }
.air-technology-group > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.air-technology-group > .air-field-group { margin-top: 10px; }
.air-form-guidance p { margin: 8px 0; }
[data-air-body] { display: grid; gap: 16px; }
[data-air-form] .air-field-group { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin: 0; min-width: 0; }
[data-air-form] .air-field-group > legend { font-weight: 700; padding: 0 6px; max-width: 100%; }
[data-air-form] .air-field-group:not(.air-repeat-group), [data-air-form] .air-entry-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
[data-air-form] .air-entry-row { background: var(--panel-soft); border-bottom: 1px solid var(--line); padding: 12px 0; }
[data-air-form] .air-entry-row h4 { grid-column: 1 / -1; margin: 0; }
[data-air-form] .air-entry-row > .air-repeat-group,
[data-air-form] .air-entry-row > [data-air-key="details"],
[data-air-form] .air-entry-row > p,
[data-air-form] .air-wide-field,
[data-air-form] .air-reading-details { grid-column: 1 / -1; }
[data-air-form] label { display: grid; align-content: start; gap: 5px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
[data-air-form] input:not([type="hidden"]), [data-air-form] select, [data-air-form] textarea {
  box-sizing: border-box; min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font: inherit;
}
[data-air-form] textarea { resize: vertical; line-height: 1.5; }
[data-air-form] input[inputmode="decimal"] { text-align: right; font-variant-numeric: tabular-nums; }
[data-air-form] .air-tabular-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-air-form] [data-air-key="readings"] > .air-tabular-row { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
[data-air-form] .air-tabular-row > h4 { font-size: 12px; color: var(--muted); }
[data-air-form] button[data-air-add] { margin-top: 12px; }
[data-air-form] button[data-air-remove] { grid-column: 1 / -1; justify-self: end; font-size: 12px; }
[data-air-form] .air-reading-details > label,
[data-air-form] .air-reading-details > details { margin-top: 10px; }
[data-air-form] .air-equipment-reference { min-width: 0; overflow-wrap: anywhere; font-size: 13px; align-self: start; }
[data-air-form] .air-equipment-reference > label { margin-top: 8px; }
.air-preparation [data-air-receipt] { border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.air-preparation pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  [data-air-form] .air-field-group:not(.air-repeat-group), [data-air-form] .air-entry-row,
  [data-air-form] .air-tabular-row { grid-template-columns: 1fr; }
  [data-air-form] [data-air-key="readings"] > .air-tabular-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .air-preparation .field-core-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 13px; }
  .air-preparation .capture-tabs button { flex: 1 1 140px; }
}

/* Cronograma transitorio: configuracion visible y trazable antes de generar. */
.schedule-generation-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #9bcfb9;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4fff7, #f1f9ff);
  display: grid;
  gap: 14px;
}
.schedule-generation-heading,
.schedule-generation-mode,
.schedule-generation-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.schedule-generation-heading p { margin: 4px 0 0; color: var(--muted); }
.schedule-generation-mode { justify-content: flex-start; }
.schedule-generation-mode label { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.schedule-generation-commissions { display: grid; gap: 12px; }
.schedule-generation-commissions article {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(220px, 1fr) minmax(170px, .6fr) minmax(340px, 1.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.schedule-button-field { align-self: stretch; }
.schedule-choice-grid,
.segmented-buttons,
.schedule-point-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip,
.schedule-point-choice {
  border: 1px solid #b9ccd4;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.choice-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; font-weight: 700; }
.choice-chip.selected,
.choice-chip[aria-pressed="true"],
.schedule-point-choice.selected,
.schedule-point-choice[aria-pressed="true"] { border-color: #16945b; background: #e8f8ed; box-shadow: inset 0 0 0 1px #16945b; color: #075b37; }
.schedule-point-grid { max-height: 250px; overflow: auto; padding-right: 4px; }
.schedule-point-choice { flex: 1 1 220px; display: grid; gap: 3px; padding: 10px; }
.schedule-point-choice span,
.schedule-point-choice small,
.schedule-shift-field small { color: var(--muted); }
.schedule-point-choice:disabled { cursor: not-allowed; opacity: .58; background: #f3f5f6; }
.schedule-shift-coverage { margin: 16px 0; padding: 15px; border: 1px solid #95ceb1; border-radius: 12px; background: linear-gradient(135deg, #f1fff5, #edf8ff); display: grid; gap: 12px; }
.schedule-shift-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.schedule-shift-groups article { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.schedule-shift-groups header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #e7f6ec; }
.schedule-shift-groups header span { color: var(--muted); font-size: 12px; }
.schedule-shift-groups article > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px; padding: 10px; }
.schedule-shift-groups article > div > span { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 8px; border-radius: 8px; background: var(--panel-soft); font-size: 12px; }
.schedule-shift-groups article > div > span small { grid-column: 2; color: var(--muted); }

/* Panel personal del tecnico: recompensa calidad y trazabilidad, no velocidad. */
.field-dashboard-hero { border-top: 4px solid #28a96b; }
.field-score {
  min-width: 190px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #123f35, #1a6c52);
  color: #fff;
  display: grid;
  gap: 2px;
}
.field-score span, .field-score small { font-size: 12px; opacity: .86; }
.field-score strong { font-size: 28px; }
.field-dashboard-filters {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(260px, .8fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}
.dashboard-period-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.period-chip {
  min-width: 48px;
  padding: 8px 10px;
  border: 1px solid #b9ccd4;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.period-chip.selected,
.period-chip[aria-pressed="true"] { border-color: #168f5a; background: #dbf5df; color: #075b37; box-shadow: inset 0 0 0 1px #168f5a; }
.field-trace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-trace-grid > div { padding: 14px; border-radius: 10px; background: var(--panel-soft); display: grid; gap: 6px; }
.field-trace-grid span { color: var(--muted); font-size: 12px; }
.field-dashboard-columns,
.field-dashboard-analytics { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(260px, .75fr); gap: 16px; }
.dashboard-bars { display: grid; gap: 10px; }
.dashboard-bars > div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(130px, 1.6fr) auto; gap: 10px; align-items: center; }
.dashboard-bars i { height: 10px; overflow: hidden; border-radius: 999px; background: #e5eef2; }
.dashboard-bars i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #24a36c, #39bfe5); }
.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(95px, .7fr) minmax(120px, 1.5fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.dashboard-bar-row i { height: 11px; overflow: hidden; border-radius: 999px; background: #dfebef; }
.dashboard-bar-row i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #19a768, #38bce0); }
.dashboard-bar-row small { grid-column: 1 / -1; color: var(--muted); }
.dashboard-bar-row.selected { border-color: #1f9d67; background: #eaf9ef; box-shadow: inset 0 0 0 1px #1f9d67; }
.dashboard-drilldown { padding: 12px; border-radius: 10px; background: #e8f7ff; color: #174c68; display: grid; gap: 4px; }
.dashboard-column-chart { min-height: 225px; display: flex; align-items: stretch; gap: 9px; overflow-x: auto; padding-top: 8px; }
.dashboard-column-chart > button { min-width: 58px; flex: 1 0 58px; display: grid; grid-template-rows: auto 1fr auto; gap: 7px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.dashboard-column-chart > button > i { min-height: 150px; border-radius: 10px 10px 4px 4px; background: #e7f0f3; display: flex; align-items: end; overflow: hidden; }
.dashboard-column-chart > button > i b { width: 100%; min-height: 8px; border-radius: 9px 9px 0 0; background: linear-gradient(180deg, #3dc1e5, #138cbe); transition: height .2s ease; }
.dashboard-column-chart > button:hover > i b { background: linear-gradient(180deg, #72d632, #1f9d67); }
.dashboard-column-chart > button span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dashboard-coverage-body { display: grid; place-items: center; gap: 18px; }
.dashboard-donut { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(#36b7df var(--dashboard-progress), #e4edf0 0); display: grid; place-content: center; position: relative; color: #0d5f4a; }
.dashboard-donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--panel); }
.dashboard-donut strong,
.dashboard-donut span { position: relative; z-index: 1; text-align: center; }
.dashboard-donut strong { font-size: 28px; }
.dashboard-donut span { color: var(--muted); font-size: 12px; }
.dashboard-coverage-legend { width: 100%; display: grid; gap: 8px; }
.dashboard-coverage-legend p { margin: 0; padding: 9px 11px; border-radius: 9px; background: var(--panel-soft); display: flex; justify-content: space-between; gap: 8px; }
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.achievement { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.achievement div { display: grid; gap: 3px; }
.achievement span { color: var(--muted); font-size: 12px; }
.achievement.reached { border-color: #78c8a1; background: #effbf3; color: #0b6842; }
.achievement.locked { opacity: .68; }
.achievement-icon { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .schedule-generation-commissions article,
  .field-dashboard-filters,
  .field-trace-grid,
  .field-dashboard-columns,
  .field-dashboard-analytics { grid-template-columns: 1fr; }
}

/* Field technician mobile presentation; canonical routes, data and alerts are unchanged. */
.field-session-menu,.field-session-menu-items{display:contents}
.field-session-toggle{display:none}
.field-save-alert[hidden]{display:none!important}
.field-save-alert{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:0}
.field-save-alert>span{min-width:0;overflow-wrap:anywhere}
.field-save-alert>button{min-height:44px;flex:0 0 auto;white-space:normal}
.capture-review-entry{min-width:0}
.capture-review-group{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.capture-review-group>summary{min-height:44px;cursor:pointer;line-height:1.5}
.capture-review-group>summary>span{display:block;font-size:12px;color:var(--muted)}
.capture-review-group[data-review-state=unknown]>summary>span,.capture-review-group[data-review-state=attention]>summary>span{color:#765200}
.capture-review-group[data-review-state=error]>summary>span{color:var(--danger);font-weight:700}
.capture-review-group[data-review-state=empty]>summary>span{color:var(--success)}
.capture-review-group>[data-capture-review-group-empty]{font-size:13px;line-height:1.5}
.capture-review-group>.panel{margin:10px 0 0;box-shadow:none}
.capture-review-entry>[data-capture-review-inbox-open]{min-height:44px;margin-top:8px}
@media(max-width:760px){
  .field-mobile-shell .sidebar{padding:8px 12px;gap:6px}
  .field-mobile-shell .lab-brand-card{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:0;min-width:0}
  .field-mobile-shell .lab-logo-large{width:auto;max-width:90px;max-height:26px;padding:0}
  .field-mobile-shell.native-public-shell .lab-logo-large{display:none}
  .field-mobile-shell .sidebar-title{flex:1;min-width:0;font-size:12px;line-height:1.4;gap:6px}
  .field-mobile-shell .sidebar-title-icon{width:16px;height:16px;flex:0 0 16px}
  .field-mobile-shell .lab-brand-card>.subtitle{display:none}
  .field-mobile-shell .sidebar-open-plan{flex:1 0 100%;margin:0;padding:4px 7px}
  .field-mobile-shell .sidebar-open-plan>span{display:none}
  .field-mobile-shell .sidebar-open-plan>strong{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .field-mobile-shell .nav{gap:5px;padding:2px 0}
  .field-mobile-shell .nav button{min-height:44px;padding:7px 9px;font-size:12px}
  .field-mobile-shell .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:10px 12px}
  .field-mobile-shell .topbar h1{font-size:17px;line-height:1.3}
  .field-mobile-shell .topbar>.topbar-meta{width:auto;max-width:min(44vw,210px);justify-content:flex-end;gap:6px}
  .field-mobile-shell .topbar>div>.subtitle{font-size:11px;line-height:1.4;margin-top:4px;overflow-wrap:anywhere}
  .field-mobile-shell .topbar-tenant-context{order:3;flex:1 0 100%;min-width:0;max-width:100%;font-size:11px}
  .field-mobile-shell .topbar-tenant-context select{width:100%;min-width:0;min-height:44px}
  .field-mobile-shell .topbar-meta .notification-button{min-width:44px;min-height:44px}
  .field-mobile-shell .field-session-menu{display:block;position:relative;flex:0 0 auto}
  .field-mobile-shell .field-session-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 10px}
  .field-mobile-shell .field-session-menu-items{display:none;position:absolute;top:calc(100% + 6px);right:0;z-index:100;width:min(280px,calc(100vw - 32px));box-sizing:border-box;padding:10px;gap:8px;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 25px #173b4a30}
  .field-mobile-shell .field-session-menu.is-open>.field-session-menu-items{display:flex}
  .field-mobile-shell .field-session-menu-items>button{width:100%;min-height:44px;white-space:normal}
  .field-mobile-shell .field-save-alert{padding:8px 10px;font-size:12px;line-height:1.4}
  .field-mobile-shell .field-save-alert>button{font-size:12px;padding:7px 9px}
  .field-mobile-shell .page{padding:12px 10px;gap:12px}
  .field-mobile-shell .field-task-panel .panel-body{padding:12px}
  .field-mobile-shell .field-task-panel p{margin:8px 0;line-height:1.4}
  .field-mobile-shell .capture-review-group{padding:10px}
  .field-mobile-shell .capture-review-group .panel-body{padding:10px}
  .field-mobile-shell .capture-review-group h3{font-size:14px;line-height:1.4}
  .field-mobile-shell .capture-review-group [data-sampling-review-inbox]>.panel-body>p:not([role]){display:none}
  .field-mobile-shell .capture-review-group button{min-height:44px;white-space:normal}
  .field-mobile-shell .capture-tools>summary{padding:12px;min-height:44px;box-sizing:border-box;line-height:1.4}
  .field-mobile-shell [data-capture-loading]{padding:10px 12px;min-height:0;text-align:left;font-size:13px;line-height:1.5}
}

/* Read-only field plan projections keep every record, action and original detail available. */
.field-plan-sort{margin:10px 0}.field-plan-sort>summary{min-height:44px;cursor:pointer;font-weight:700;line-height:1.5}
.field-open-plan-context{display:none}
@media(max-width:760px){
 .field-mobile-shell .field-open-plan-context:not([hidden]){display:flex;position:sticky;top:6px;z-index:55;align-items:center;gap:10px;align-self:flex-end;width:max-content;max-width:calc(100vw - 24px);margin:6px 12px 0;padding:7px 12px;border:1px solid #b7d9ce;border-radius:20px;background:#f4fcf8;box-shadow:0 3px 12px #173b4a18;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
 .field-mobile-shell .field-open-plan-context>span+span{padding-left:10px;border-left:1px solid #b7d9ce;color:#176451}
 /* Keep the activity context below the visible plan chip on phones. */
 .field-mobile-shell .field-open-plan-context:not([hidden]) ~ #pageMount :is(.air-sticky-context,.capture-sticky-context){top:52px}
 .field-mobile-shell .field-personal-analytics{display:none}
 .field-mobile-shell .planner-hero-panel>.panel-header{display:none}
 .field-mobile-shell .field-plan-filter-panel .panel-body{padding:12px}
 .field-mobile-shell .field-plan-primary-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .field-mobile-shell .field-plan-search{grid-column:1/-1}
 .field-mobile-shell .field-plan-date-filter{margin:4px 0 8px;font-size:12px}
 .field-mobile-shell .field-plan-date-filter>summary{min-height:36px;padding:8px 0;cursor:pointer;box-sizing:border-box}
 .field-mobile-shell .field-plan-filter-panel .actions{display:flex;gap:8px}
 .field-mobile-shell .field-plan-filter-panel .actions>button{width:auto;flex:1;min-height:44px}
 .field-mobile-shell .plan-detail-sheet{scroll-margin-top:52px}
 .field-mobile-shell .plan-detail-header{gap:10px;padding:12px}
 .field-mobile-shell .plan-detail-header .detail-eyebrow{display:none}
 .field-mobile-shell .plan-sheet-overview{gap:6px;font-size:12px}
 .field-mobile-shell .plan-sheet-primary-actions button{min-height:44px;line-height:1.35;padding:10px}
 .field-mobile-shell .operational-notifications{position:fixed;top:12px;right:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:12px;box-sizing:border-box;gap:10px;z-index:130}
 .field-mobile-shell .operational-notifications header{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .field-mobile-shell .operational-notification-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
 .field-mobile-shell .operational-notification-tools>label:nth-child(2){display:none}
 .field-mobile-shell .operational-notifications .operational-notification-count{font-size:12px;margin:0}
 .field-mobile-shell .operational-notifications .operational-notification-items:has(>p:only-child){padding:8px 0}
 .field-mobile-shell .operational-notification-item{padding:10px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
 .field-mobile-shell .operational-notifications button,.field-mobile-shell .operational-notifications select{min-height:44px;min-width:0}
 .field-mobile-shell .operational-notifications footer{font-size:12px;gap:8px}
 .field-mobile-shell .operational-notifications>small{display:none}
}
.field-plan-sort>div{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}.field-plan-sort button{min-height:44px}
.field-plan-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}
.field-plan-card{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.field-plan-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.field-plan-card h3{font-size:16px;line-height:1.45;margin:10px 0;overflow-wrap:anywhere}
.field-plan-card.is-returned{border-left:4px solid var(--danger)}.field-plan-card .alert{padding:8px 10px;line-height:1.4;margin:10px 0;font-size:12px}
.field-plan-matrix{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px}.field-plan-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:11px;color:var(--muted);line-height:1.4}.field-plan-dates strong{display:block;font-size:12px;color:var(--text)}
.field-plan-metadata>summary{cursor:pointer;min-height:44px;font-size:12px;line-height:1.5;padding:8px 0;box-sizing:border-box}.field-plan-metadata dl{display:grid;gap:8px;margin:0 0 10px}.field-plan-metadata dt{color:var(--muted);font-size:11px}.field-plan-metadata dd{margin:3px 0 0;overflow-wrap:anywhere;font-size:13px}
.field-plan-card .row-actions{display:flex;flex-wrap:wrap;gap:7px}.field-plan-card .row-actions button{min-height:44px;flex:1 1 120px;white-space:normal}
@media(max-width:760px){.field-mobile-shell .field-plan-cards{grid-template-columns:minmax(0,1fr)}.field-mobile-shell .field-plan-card{padding:12px}.field-mobile-shell .field-plan-card [data-edit-plan-id]:disabled,.field-mobile-shell .field-plan-card [data-delete-plan-id]:disabled{display:none}}

/* P1: local-save feedback must keep readable text beside the existing recovery action. */
@media(max-width:760px){
 .field-mobile-shell .topbar .field-save-alert{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;max-width:100%;box-sizing:border-box}
 .field-mobile-shell .topbar .field-save-alert>span{min-width:0;width:auto;white-space:normal;word-break:normal;overflow-wrap:break-word}
 .field-mobile-shell .topbar .field-save-alert>button{width:auto;min-width:0;max-width:100%;min-height:44px;justify-self:end;white-space:normal}
}
@media(max-width:359px){
 .field-mobile-shell .topbar .field-save-alert{grid-template-columns:minmax(0,1fr)}
 .field-mobile-shell .topbar .field-save-alert>button{justify-self:start}
}

/* P2: field card actions must not inherit the table's120px vertical flex basis. */
@media(max-width:760px){
 .field-mobile-shell .field-plan-card .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:7px}
 .field-mobile-shell .field-plan-card .row-actions>button{flex:none;height:auto;min-width:0;width:100%;max-width:100%;min-height:44px;white-space:normal;word-break:normal;overflow-wrap:break-word}
 .field-mobile-shell .field-plan-card>header>.plan-code-progress-button{width:auto;min-width:0;max-width:100%;min-height:44px;flex:0 1 auto}
}
/* Small progress indicators preserve the field warning colours. */
.field-spinner,.capture-action-feedback.busy .capture-feedback-line::before {
  display:inline-block;width:1em;height:1em;flex:0 0 1em;border:2px solid currentColor;
  border-right-color:transparent;border-radius:50%;animation:field-spin .8s linear infinite;
}
.capture-action-feedback.busy .capture-feedback-line::before {content:"";margin-right:.4rem;}
.field-operation-indicator {
  position:fixed;z-index:1200;bottom:calc(84px + env(safe-area-inset-bottom,0px));left:50%;
  transform:translateX(-50%);display:flex;align-items:center;gap:.6rem;
  max-width:calc(100vw - 32px);padding:.7rem 1rem;border:1px solid #b9d8e7;
  border-radius:12px;background:#123f55;color:#fff;font-size:.9rem;
  box-shadow:0 4px 16px #123f5526;pointer-events:none;
}
.field-operation-indicator[hidden] {display:none;}
.plan-pagination {display:flex;align-items:center;justify-content:center;gap:.75rem;margin:1rem 0;}
.plan-pagination span {font-size:.9rem;text-align:center;}
@keyframes field-spin {to {transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce) {.field-spinner,.capture-action-feedback.busy .capture-feedback-line::before {animation:none;}}

/* UI-0/UI-1: keep session details and secondary search filters within their controls. */
.session-access-details {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
}
.session-access-details > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.session-access-details > summary:hover,
.session-access-details[open] > summary {
  border-color: var(--accent-2);
  color: var(--accent);
}
.session-access-details > summary:focus-visible,
.sidebar-connection-details > summary:focus-visible,
.planner-more-filters > summary:focus-visible,
.plan-code-open-button:focus-visible,
.plan-progress-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.session-access-body {
  position: absolute;
  z-index: 200;
  top: calc(100% + 8px);
  right: 0;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 110px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(23, 34, 31, 0.14);
  overflow-wrap: anywhere;
}
.session-access-details[open] > .session-access-body {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.session-access-statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}
.session-access-statuses > .status {
  max-width: 100%;
  white-space: normal;
}
.topbar-meta .session-access-body button {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}
.sidebar-connection-details {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sidebar-connection-details > summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
}
.sidebar-connection-details > :not(summary) {
  margin-top: 8px;
}
.planner-search-panel > .panel-body {
  display: grid;
  gap: 14px;
}
.planner-search-panel .planner-primary-filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, 1fr));
  align-items: end;
  gap: 14px;
}
.planner-primary-filters > .field {
  min-width: 0;
}
.planner-more-filters {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.planner-more-filters > summary {
  min-height: 36px;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.planner-more-filters[open] > .filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.planner-search-panel .actions {
  gap: 8px;
}
.plan-code-open-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  width: auto;
  padding: 4px 0;
  color: var(--accent);
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}
.plan-code-open-button > strong {
  margin-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.plan-progress-action {
  display: block;
  min-height: 44px;
  max-width: 100%;
  width: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--info);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}
.plan-progress-action:hover {
  color: var(--accent);
}
@media (max-width: 980px) {
  .session-access-details[open] {
    flex-basis: 100%;
  }
  .session-access-details > summary {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
  .session-access-body {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .planner-search-panel .planner-primary-filters,
  .planner-more-filters[open] > .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planner-primary-filters > .field:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .planner-search-panel .planner-primary-filters,
  .planner-more-filters[open] > .filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .planner-more-filters > summary {
    min-height: 44px;
  }
}
