.operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.78fr);
  gap: 12px;
}

.week-board {
  overflow: auto;
  border: 1px solid var(--line);
}

.week-grid {
  min-width: 690px;
  display: grid;
  grid-template-columns: 116px repeat(5, minmax(105px, 1fr));
}

.week-grid > div {
  min-height: 63px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.week-grid > div:nth-child(6n) {
  border-right: 0;
}

.week-grid > div:nth-last-child(-n + 6) {
  border-bottom: 0;
}

.week-grid .week-head {
  min-height: 37px;
  display: flex;
  align-items: center;
  background: #eaf0f1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.week-space strong,
.week-space small,
.slot-card strong,
.slot-card small {
  display: block;
}

.week-space small,
.slot-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.slot-card {
  min-height: 46px !important;
  margin: 6px;
  padding: 8px !important;
  border: 0 !important;
  background: var(--surface-teal);
  color: #175b55;
}

.slot-card.orange {
  background: var(--surface-orange);
  color: #8d451f;
}

.slot-card.blue {
  background: var(--surface-blue);
  color: #2c6370;
}

.slot-card.gold {
  background: var(--surface-gold);
  color: #756100;
}

.slot-card.red {
  background: var(--surface-red);
  color: #8c3640;
}

.slot-card strong {
  color: inherit;
  font-size: 11px;
}

.alerts-list,
.activity-list,
.category-list,
.match-list,
.validation-list {
  display: grid;
  gap: 9px;
}

.alert-row,
.activity-row,
.match-row {
  display: grid;
  align-items: start;
  gap: 11px;
  padding: 11px;
  background: var(--surface-soft);
}

.alert-row {
  grid-template-columns: 34px minmax(0, 1fr);
}

.alert-row .alert-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-orange);
  color: #93441e;
  font-weight: 900;
}

.alert-row.is-critical .alert-mark {
  background: var(--surface-red);
  color: #913843;
}

.alert-row strong,
.alert-row span,
.activity-row strong,
.activity-row span,
.match-row strong,
.match-row span {
  display: block;
}

.alert-row span,
.activity-row span,
.match-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.inventory-bars {
  display: grid;
  gap: 11px;
}

.inventory-bar {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.inventory-bar span,
.inventory-bar strong {
  font-size: 11px;
}

.inventory-bar strong {
  text-align: right;
}

.bar-track {
  height: 11px;
  overflow: hidden;
  background: #e4ebed;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amsa-ink-2), var(--amsa-sky));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-strip > div {
  min-height: 82px;
  padding: 14px;
  background: var(--surface);
}

.metric-strip span,
.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip span {
  color: var(--muted);
  font-size: 11px;
}

.metric-strip strong {
  margin: 6px 0 2px;
  color: var(--amsa-ink);
  font-size: 22px;
  line-height: 1;
}

.metric-strip small {
  color: var(--quiet);
  font-size: 10px;
}

.role-banner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-left: 5px solid var(--amsa-sky);
  background: var(--surface-blue);
}

.role-banner strong,
.role-banner small {
  display: block;
}

.role-banner small {
  color: var(--muted);
  margin-top: 2px;
}

.visit-timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.visit-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 150px 58px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  background: var(--surface);
}

.visit-row time {
  color: var(--amsa-ink);
  font-weight: 850;
}

.visit-row time span,
.visit-row time small {
  display: block;
}

.visit-row time small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.visit-row strong,
.visit-row small {
  display: block;
}

.visit-row small {
  margin-top: 2px;
  color: var(--muted);
}

.visit-actor {
  font-size: 11px;
}

.space-number {
  width: 46px;
  height: 36px;
  display: grid;
  place-items: center;
  justify-self: end;
  background: var(--surface-teal);
  color: var(--amsa-green);
  font-weight: 900;
}

.availability-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.availability-row {
  min-height: 53px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: var(--surface);
}

.availability-row strong,
.availability-row small {
  display: block;
}

.availability-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
}

.category-table th,
.category-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.category-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-table tr:last-child td {
  border-bottom: 0;
}

.category-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-swatch {
  width: 8px;
  height: 34px;
  background: var(--swatch, var(--amsa-teal));
}

.category-name strong,
.category-name small {
  display: block;
}

.category-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.tab-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  position: relative;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.tab-button[aria-selected="true"] {
  color: var(--amsa-ink);
}

.tab-button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 4px;
  background: var(--amsa-gold);
}

.tab-content {
  padding: 18px;
}

.permission-matrix {
  min-width: 760px;
}

.permission-yes,
.permission-no,
.permission-read {
  font-weight: 800;
}

.permission-yes {
  color: var(--amsa-green);
}

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

.permission-read {
  color: #7c6300;
}

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

.access-profile-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amsa-green);
  background: var(--surface);
}

.access-profile-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.access-profile-head .role-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.access-profile-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.module-list {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-profile-foot {
  min-height: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.access-profile-foot > span {
  color: var(--muted);
  font-size: 11px;
}

.configuration-table {
  min-width: 900px;
}

.module-fieldset {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
}

.module-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.module-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-weight: 700;
}

.module-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--amsa-green);
}

.employee-id {
  font-family: var(--font-mono);
  font-weight: 850;
  letter-spacing: 0.015em;
}

.dropzone {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px dashed var(--line-strong);
  background: var(--surface-soft);
  text-align: center;
}

.dropzone.is-dragging {
  border-color: var(--amsa-teal);
  background: var(--surface-teal);
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone span {
  margin: 4px 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.file-summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.file-summary strong,
.file-summary small {
  display: block;
}

.file-summary small {
  margin-top: 2px;
  color: var(--muted);
}

.validation-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.validation-row strong,
.validation-row small {
  display: block;
}

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

.roadmap-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.roadmap-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
}

.roadmap-row strong,
.roadmap-row small {
  display: block;
}

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

.audit-list {
  display: grid;
  gap: 0;
}

.audit-event {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 138px;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.audit-event:last-child {
  border-bottom: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  background: var(--surface-blue);
  color: #356873;
  font-size: 10px;
}

.audit-event strong,
.audit-event span,
.audit-event time {
  display: block;
}

.audit-event span,
.audit-event time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.audit-event time {
  margin-top: 0;
  text-align: right;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 25px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: 2px;
  background: var(--line);
}

.timeline-row {
  position: relative;
  padding: 0 0 18px 8px;
}

.timeline-row:last-child {
  padding-bottom: 0;
}

.timeline-row::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -24px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--amsa-teal);
  box-shadow: 0 0 0 1px var(--amsa-teal);
}

/* Parking v2 · revisión operacional 20260901.7 */
.capacity-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.occupancy-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-teal);
}

.occupancy-meter-fill {
  height: 100%;
  background: var(--amsa-orange);
}

.occupancy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 11px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 6px;
  background: var(--amsa-orange);
}

.legend-dot.available {
  background: var(--amsa-teal);
}

.capacity-table td,
.capacity-table th {
  white-space: nowrap;
}

.data-table.capacity-table {
  min-width: 0;
  table-layout: fixed;
}

.capacity-table th:last-child,
.capacity-table td:last-child {
  width: 145px;
}

.level-meter {
  flex: 1 1 auto;
  min-width: 44px;
  height: 7px;
  overflow: hidden;
  display: inline-block;
  background: var(--surface-teal);
  vertical-align: middle;
}

.level-occupancy {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.level-occupancy small {
  flex: 0 0 35px;
  text-align: right;
}

.level-meter span {
  height: 100%;
  display: block;
  background: var(--amsa-orange);
}

.cycle-capacity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.cycle-capacity-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  background: var(--surface);
}

.cycle-capacity-card span,
.cycle-capacity-card strong,
.cycle-capacity-card small {
  display: block;
}

.cycle-capacity-card > div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.cycle-capacity-card > div > strong {
  margin: 8px 0 2px;
  color: var(--amsa-ink);
  font-size: 34px;
  line-height: 1;
}

.cycle-capacity-card > div > small {
  color: var(--quiet);
}

.alert-button {
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.alert-button:hover {
  border-color: var(--amsa-sky);
  background: var(--surface-blue);
}

.alert-button:focus-visible {
  outline: 3px solid var(--amsa-gold);
  outline-offset: 2px;
}

.alert-button .alert-count {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--surface-gold);
  color: #756100;
  font-size: 18px;
  font-weight: 900;
}

.alert-button.is-critical .alert-count {
  background: var(--surface-red);
  color: #913843;
}

.alert-button.is-clear .alert-count {
  background: var(--surface-teal);
  color: var(--amsa-green);
}

.alert-button strong,
.alert-button small {
  display: block;
}

.alert-button small {
  margin-top: 3px;
  color: var(--muted);
}

.alert-button .alert-arrow {
  align-self: center;
  margin: 0;
  color: var(--amsa-teal);
  font-size: 18px;
}

.assignment-cell {
  min-width: 390px;
}

.assignment-stack {
  display: grid;
  gap: 7px;
}

.assignment-stack.compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.assignment-block,
.assignment-empty {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(210px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-left: 4px solid var(--amsa-teal);
  background: var(--surface-teal);
}

.assignment-block strong,
.assignment-block small,
.assignment-empty strong,
.assignment-empty small {
  display: block;
}

.assignment-block small,
.assignment-empty small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.assignment-block-rule {
  text-align: right;
}

.assignment-block-rule strong {
  color: var(--amsa-green);
  font-size: 11px;
}

.assignment-empty {
  grid-template-columns: 1fr;
  border-left-color: var(--line-strong);
  background: var(--surface-soft);
}

.context-notice .button {
  flex: 0 0 auto;
}

.visits-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
}

.visits-filters {
  align-items: flex-end;
}

.visits-filters .segmented {
  min-height: 41px;
}

.visit-row {
  grid-template-columns: 62px minmax(230px, 1fr) 145px 52px auto;
}

.visit-row.is-vip {
  box-shadow: inset 4px 0 0 var(--amsa-gold);
}

.visit-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.vip-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  padding: 2px 6px;
  background: var(--surface-gold);
  color: #756100 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.visit-actions {
  display: grid;
  gap: 5px;
  justify-items: stretch;
}

.visit-actions .button {
  white-space: nowrap;
}

.check-control {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
}

.check-control input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--amsa-teal);
}

.check-control strong,
.check-control small {
  display: block;
}

.check-control small,
.optional-label {
  color: var(--muted);
  font-size: 10px;
}

.confirmation-preview {
  margin: 16px 0 0;
  padding: 15px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--amsa-ink);
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.copy-fallback {
  width: 100%;
  min-height: 250px;
  margin-top: 14px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--amsa-ink);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.audit-event-main {
  min-width: 0;
}

.audit-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 9px;
  padding: 9px;
  background: var(--surface-soft);
}

.audit-change small,
.audit-change span {
  display: block;
}

.audit-change small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-change span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}

.audit-change .audit-arrow {
  margin: 0;
  color: var(--amsa-teal);
  text-align: center;
}

.timeline-row strong,
.timeline-row span {
  display: block;
}

.timeline-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

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