.activo-modal {
  width: min(1080px, 94vw);
  max-width: 1080px;
}
.activo-section {
  border: 0;
  padding: 0;
  margin: 28px 0;
}
.activo-section legend,
.activo-section h3 {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-alt, #f5f5f8);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.activo-section legend span {
  color: var(--primary, #16536b);
  margin-right: 10px;
}
.activo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.activo-grid label {
  min-width: 0;
}
.activo-full {
  grid-column: 1/-1;
}
.activo-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.activo-check input {
  width: auto !important;
}
.activo-form-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0;
  position: sticky;
  bottom: 0;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border, #e6e3ee);
}
.activo-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.activo-detail-top > div:last-child {
  display: flex;
  gap: 8px;
}
.activo-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.activo-detail-grid dt {
  font-size: 11px;
  color: var(--muted, #777);
}
.activo-detail-grid dd {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}

@media (max-width: 800px) {
  .activo-grid,
  .activo-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activo-detail-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .activo-grid,
  .activo-detail-grid {
    grid-template-columns: 1fr;
  }
}

.activo-accessories {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 14px;
}
.activo-accessories th:nth-child(2) {
  width: 120px;
}
.activo-accessories th:last-child:empty {
  width: 50px;
}
.activo-accessories td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.activo-accessories input {
  width: 100%;
  min-width: 0;
}
.activo-accessories th,
.activo-accessories td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e6e3ee);
}
.activo-accessories th:first-child {
  width: 35%;
}
@media (max-width: 600px) {
  .activo-accessories {
    min-width: 620px;
  }
}

.activo-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.activo-readonly {
  font-size: 12px;
}
.activo-readonly > span {
  color: var(--muted, #777);
}
.activo-readonly p {
  padding: 11px 12px;
  background: var(--surface-alt, #f5f5f8);
  border: 1px solid var(--border, #e6e3ee);
  border-radius: 7px;
  font-size: 13px;
  margin-top: 7px;
}
.assignment-entry {
  border: 1px solid var(--border, #e6e3ee);
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.assignment-entry header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.assignment-entry header small {
  margin-left: auto;
}
.assignment-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e6e3ee);
}
.assignment-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.history-print-preview {
  display: block;
  width: 100%;
  height: 65vh;
  border: 1px solid var(--border, #e6e3ee);
  border-radius: 10px;
  background: white;
}
.activo-detail-top > .activo-row-actions {
  flex-wrap: wrap;
}
.activo-section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.activo-section-nav button {
  font-size: 11px;
  padding: 9px 12px;
}
.activo-page-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.activo-page-form .activo-section {
  scroll-margin-top: 24px;
}
.activo-page-form .activo-form-footer {
  gap: 12px;
  z-index: 4;
}
@media (max-width: 520px) {
  .activo-page-form {
    padding: 16px;
  }
  .activo-page-form .activo-form-footer {
    flex-wrap: wrap;
  }
}
.activo-file-control {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.activo-file-control > small {
  display: block;
  margin: 10px 0;
  font-size: 11px;
  color: var(--muted);
}
.activo-file-control a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.activo-file-control input[type="file"] {
  height: auto;
  max-width: 100%;
  padding: 12px 8px;
}
.activo-file-image {
  display: block;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin: 12px 0;
}
.activo-grid:has(> .activo-file-control) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px) {
  .activo-grid:has(> .activo-file-control) {
    grid-template-columns: 1fr;
  }
}

#asset-print-preview {
  width: 100%;
  height: 75vh;
  border: 1px solid var(--border, #e6e3ee);
  background: white;
  border-radius: 8px;
}
.activo-row-actions {
  flex-wrap: wrap;
}
