.env-icon-button,
.page:has(.env-tabs) .env-icon-button,
.modal:has(.env-editor, .env-print-preview) .env-icon-button,
.env-icon-confirm .modal-foot .env-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  flex: 0 0 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  line-height: 1;
  text-align: center;
}
.env-icon-button .icon,
.page:has(.env-tabs) .env-icon-button .icon,
.modal:has(.env-editor, .env-print-preview) .env-icon-button .icon,
.env-icon-confirm .env-icon-button .icon {
  width: 20px;
  height: 20px;
  max-width: 20px;
  flex: 0 0 20px;
}
.env-icon-button:focus-visible { outline: 3px solid var(--primary, #0b237e); outline-offset: 3px; }
.env-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 120px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}
.env-action-button .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.env-action-button > span { min-width: 0; white-space: normal; overflow-wrap: normal; }
.env-action-button:focus-visible { outline: 3px solid var(--primary, #0b237e); outline-offset: 3px; }
.env-list-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.page:has(.env-tabs) .row-primary.env-action-button { border: 1px solid var(--line); background: var(--surface); }
.env-chip-remove.env-action-button { min-width: 0; padding: 5px 8px; min-height: 32px; font-size: 11px; }
.page:has(.env-tabs) .row-primary.env-icon-button { border: 1px solid var(--line); background: var(--surface); }
.page:has(.env-tabs) .env-pagination .numeric-page-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.page:has(.env-tabs) .env-pagination > div { flex-wrap: wrap; justify-content: center; }
.page:has(.env-tabs) .env-pagination { flex-wrap: wrap; }
.modal:has(.env-editor, .env-print-preview) .modal-foot { flex-wrap: wrap; }
.env-print-preview > p { margin: 0 0 16px; color: var(--muted); }
.env-print-preview-viewport { position: relative; width: 100%; max-width: 820px; margin: 0 auto; overflow: hidden; }
.env-print-preview iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; }
.env-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  background: #edf2f6;
  border-radius: 12px;
}
.env-tab {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  color: #44566b;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.env-tab.active {
  color: #0b237e;
  background: #fff;
  box-shadow: 0 1px 6px #18304016;
}
.env-standard-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.env-standard-filters .search { flex: 1; min-width: 0; }
.env-standard-filters .search > .icon { bottom: 13px; }
.env-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.3fr) minmax(170px, 0.3fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.env-filters .search {
  min-width: 0;
}
.env-filters .search > .icon {
  bottom: 13px;
}
.env-pagination,
.env-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.env-pagination {
  justify-content: space-between;
  margin: -5px 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.env-pagination strong {
  color: var(--ink);
}
.env-pagination .numeric-pagination { margin: 0; justify-content: flex-end; }
.env-detail-action { text-align: right; }
.env-detail-action .row-actions { justify-content: flex-end; }
.env-contents-cell { min-width: 230px; max-width: 400px; }
.env-content-summary { color: var(--muted); font-size: 12px; }
.env-content-names { margin: 6px 0 0; padding-left: 17px; max-height: 180px; overflow: auto; }
.env-content-names li { margin: 3px 0; overflow-wrap: anywhere; }
.env-assigned-envelopes { display: grid; gap: 10px; min-width: 220px; max-height: 240px; overflow: auto; }
.env-assigned-envelope { display: flex; align-items: center; gap: 10px; }
.env-assigned-envelope > span { flex: 1; min-width: 0; }
.env-assigned-envelope strong { display: block; overflow-wrap: anywhere; }
.env-assigned-envelope small { display: block; color: var(--muted); margin: 3px 0; }
.env-standard-assignments { padding: 18px; }
.env-mobile-card h4 { margin: 12px 0 7px; font-size: 12px; color: var(--muted); }
.env-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.env-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.env-status-borrador {
  color: #8a6200;
  background: #fff3cf;
}
.env-status-preparado {
  color: #075985;
  background: #e0f2fe;
}
.env-status-enviado {
  color: #08753a;
  background: #e4f7eb;
}
.env-status-anulado {
  color: #626d76;
  background: #eef1f2;
}
.env-mobile-list {
  display: none;
}
.env-mobile-card {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.env-mobile-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.env-mobile-card h3 {
  margin: 11px 0 5px;
  font-size: 16px;
}
.env-mobile-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.env-editor {
  display: grid;
  gap: 12px;
}
.env-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-2);
}
.env-section h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.env-section > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.env-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.env-recipient-name,
.env-recipient-location { min-width: 0; align-self: start; }
.env-form-grid .field > span,
.env-label-search > span {
  color: #475164;
  font-size: 12px;
  font-weight: 800;
}
.env-wide {
  grid-column: 1 / -1;
}
.env-field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.env-color-card {
  border-color: #cfd9f5;
  background: #f8faff;
}
.env-color-card[hidden] { display: none; }
.env-section[hidden] { display: none; }
.env-layout-hint {
  margin: 10px 0 0;
  color: #445276;
  font-size: 12px;
}
.env-label-search {
  display: grid;
  gap: 8px;
}
.env-manual-entry {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.env-manual-entry .input {
  flex: 1 1 auto;
  min-width: 0;
}
.env-manual-entry .button {
  flex: 0 0 auto;
}
.env-label-results {
  max-height: 245px;
  overflow: auto;
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.env-label-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.env-label-option:last-child {
  border-bottom: 0;
}
.env-label-option:hover,
.env-label-option:focus-visible,
.env-label-option.active {
  background: #f0f5f7;
}
.env-label-option-copy { min-width: 0; flex: 1; }
.env-label-thumbnail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  flex: 0 0 88px;
  width: 88px;
  height: 72px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #d9e0e5;
  border-radius: 8px;
  background: #fff;
}
.env-label-thumbnail img {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.env-label-image-empty {
  grid-area: 1 / 1;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.env-label-image-empty[hidden],
.env-label-thumbnail img[hidden] { display: none; }
.env-label-option .env-label-dimensions {
  margin-top: 5px;
  color: #52627b;
  font-size: 11px;
  font-weight: 800;
}
.env-label-search > label {
  color: #475164;
  font-size: 12px;
  font-weight: 800;
}
.env-standard-label-results {
  max-height: 340px;
}
.env-standard-label-results[hidden],
.env-standard-label-reference[hidden] { display: none; }
.env-standard-label-option { align-items: center; cursor: pointer; }
.env-label-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.env-label-row:last-child { border-bottom: 0; }
.env-label-row > .env-label-option { flex: 1; min-width: 0; border-bottom: 0; }
.env-label-zoom { margin-right: 10px; color: #0b237e; background: #edf2ff; border: 1px solid #d2defb; }
.env-label-zoom:hover { background: #dce6ff; }
.env-label-zoom svg { display: block; width: 20px; height: 20px; }
.env-label-thumbnail img[data-label-preview], .env-label-thumbnail-button { cursor: zoom-in; }
.env-standard-label-reference {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d2defb;
  border-radius: 10px;
  background: #fff;
}
.env-standard-label-reference .env-label-thumbnail {
  flex-basis: 140px;
  width: 140px;
  height: 105px;
}
.env-standard-label-reference > div { min-width: 0; }
.env-standard-label-reference > div > strong,
.env-standard-label-reference > div > span,
.env-standard-label-reference > div > small { display: block; }
.env-standard-label-reference strong { color: #0b237e; font-size: 13px; }
.env-standard-label-reference span { margin-top: 5px; font-size: 12px; }
.env-standard-label-reference small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.env-standard-label-reference .env-action-button { margin-top: 10px; min-height: 40px; }
.env-standard-data-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  align-items: start;
  gap: 20px;
  padding: 16px;
}
.env-standard-data-body > .env-detail-grid { min-width: 0; padding: 0; }
.env-standard-reference-panel { min-width: 0; }
.env-standard-reference-panel h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}
.env-standard-reference-empty { color: var(--muted); font-size: 12px; line-height: 1.5; }
.env-standard-reference-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.env-standard-reference-detail .env-label-thumbnail {
  flex-basis: auto;
  width: 180px;
  height: 120px;
  max-width: 100%;
}
.env-standard-reference-copy { display: grid; min-width: 0; max-width: 100%; gap: 4px; overflow-wrap: anywhere; }
.env-standard-reference-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #0b237e;
  font-size: 12px;
  line-height: 1.35;
}
.env-standard-reference-meta { color: var(--muted); font-size: 11px; line-height: 1.5; }
.env-standard-reference-detail .env-label-thumbnail-button:focus-visible,
.env-standard-label-reference .env-label-thumbnail-button:focus-visible { outline: 3px solid var(--primary, #0b237e); outline-offset: 3px; }
@media (max-width: 860px) {
  .env-standard-data-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.env-label-option:disabled {
  cursor: not-allowed;
  opacity: .72;
  background: #fff9ed;
}
.env-label-option .env-review-warning {
  margin-top: 5px;
  color: #9a5900;
  font-weight: 800;
}
.env-label-option .env-option-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: transparent;
  border: 2px solid #7d8b94;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}
.env-label-option[aria-pressed="true"] .env-option-mark {
  color: #fff;
  background: #0b237e;
  border-color: #0b237e;
}
.env-label-option[aria-selected="true"] .env-option-mark {
  color: #fff;
  background: #0b237e;
  border-color: #0b237e;
}
.env-recipient-options {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.env-picker-pagination .env-pagination {
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}
.env-picker-pagination .env-pagination > span {
  font-size: 12px;
}
.env-picker-pagination .numeric-pagination {
  flex-wrap: wrap;
}
.env-recipient-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.env-recipient-action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.env-recipient-actions > .env-field-help { flex: 1; }
.env-recipient-create {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #cfd9f5;
  border-radius: 10px;
  background: #fff;
}
.env-recipient-create[hidden] { display: none; }
.env-recipient-create h4,
.env-picker-heading {
  margin: 0;
  font-size: 13px;
  color: #0b237e;
}
.env-recipient-create .button { justify-self: start; }
.env-layout-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 17px;
}
.env-layout-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.env-layout-choice.selected {
  border-color: #0b237e;
  background: #edf2ff;
  box-shadow: 0 0 0 2px #dbe6ff;
}
.env-layout-choice strong { font-size: 11px; white-space: nowrap; }
.env-layout-choice small { color: var(--muted); font-size: 10px; }
.env-layout-choice-pages {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  height: 45px;
}
.env-layout-choice-pages .env-preview-page {
  width: 29px;
  height: 41px;
  padding: 2px;
  border-radius: 1px;
  box-shadow: 0 1px 3px #0002;
}
.env-layout-choice-pages .env-preview-header { height: 8%; grid-template-columns: 9px minmax(0, 1fr); }
.env-layout-choice-pages .env-preview-page.continuation .env-preview-header { left: 2px; right: 2px; top: 2px; width: auto; }
.env-layout-choice-pages .env-preview-header img { width: 9px; }
.env-layout-choice-pages .env-preview-meta {
  height: 2px;
  gap: 1px;
  grid-template-columns: 2px 1fr 2px 2px;
}
.env-layout-choice-pages .env-preview-meta span,
.env-layout-choice-pages .env-preview-meta strong { font-size: 0; }
.env-layout-choice-pages .env-preview-zones { padding-top: 2px; }
.env-layout-choice-pages .env-preview-zone { border-color: #dce3f4; }
.env-preview-callout {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #0b237e;
  font-size: 12px;
}
.env-preview-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 15px;
  max-height: 500px;
  overflow: auto;
  border: 1px solid #d8deec;
  border-radius: 10px;
  background: #e9edf4;
}
.env-preview-page {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(100%, 330px);
  aspect-ratio: 210 / 297;
  padding: 14px 15px 0 11px;
  background: white;
  color: #0b237e;
  box-shadow: 0 3px 12px #0002;
}
.env-preview-page.gray {
  background: #a3a3a3;
  color: white;
}
.env-preview-header {
  display: grid;
  grid-template-columns: 15% minmax(0, 1fr);
  align-items: center;
  gap: 2%;
  flex: 0 0 auto;
}
.env-preview-page.continuation .env-preview-header { position: absolute; left: 11px; right: 15px; top: 14px; width: auto; }
.env-preview-header img { width: 100%; }
.env-preview-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 34px;
  gap: 2px;
  align-items: stretch;
  min-width: 0;
  font-size: 5px;
  font-weight: 800;
}
.env-preview-meta span,
.env-preview-meta strong {
  display: flex;
  align-items: center;
  padding: 2.75px 2px;
  min-height: 11px;
  overflow: hidden;
}
.env-preview-meta .env-preview-date { justify-content: center; text-align: center; white-space: nowrap; background: #f0f0f0; }
.env-preview-meta strong { overflow-wrap: anywhere; min-width: 0; }
.env-preview-meta span { background: #d8f7d6; }
.env-preview-meta strong { background: #f0f0f0; color: #424242; }
.env-preview-zones {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  min-height: 0;
  padding-top: 8px;
}
.env-preview-page.continuation .env-preview-zones { padding-top: 4px; }
.env-preview-zones.vertical { grid-template-rows: repeat(3, 1fr); }
.env-preview-zones.two-vertical { grid-template-rows: repeat(2, 1fr); }
.env-preview-zones.three-columns { grid-template-columns: repeat(3, 1fr); }
.env-preview-zones.two-columns { grid-template-columns: repeat(2, 1fr); }
.env-preview-zones.mixed { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.env-preview-zones.mixed .env-preview-zone:last-child { grid-column: 1 / -1; }
.env-preview-zones.single { grid-template-columns: 1fr; }
.env-preview-zone {
  min-height: 0;
  padding-top: 3px;
  border: 1px solid #eef0f3;
  text-align: center;
}
.env-preview-zone strong {
  font-size: 8px;
  text-transform: uppercase;
}
.env-preview-page.gray .env-preview-zone { border-color: #ffffff33; }
.env-preview-description {
  margin: 14px 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.env-preview-panel .env-preview-large { margin: 14px 18px 18px; }
.env-layout-choice-pages .env-preview-meta span,
.env-layout-choice-pages .env-preview-meta strong { padding: 0; min-height: 0; }
.env-standard-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.env-label-option strong {
  display: block;
  margin-bottom: 3px;
  color: #0b237e;
  font-size: 12px;
}
.env-label-option small {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}
.env-label-picked {
  margin-top: 15px;
}
.env-label-picked h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.env-picked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.env-picked-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #0b237e;
  background: #eaf0ff;
  border: 1px solid #d2defb;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.env-picked-chip span {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.env-picked-chip .env-chip-remove {
  color: #0b237e;
  background: transparent;
  border: 0;
}
.env-picker-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.env-picker-warning {
  color: #76500c;
  background: #fff8e8;
}
.env-picker-warning strong { display: block; margin-bottom: 3px; }
.env-detail-head {
  margin-bottom: 18px;
}
.env-detail-back { margin: 0 0 20px; }
.env-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: start;
  margin: 0 0 24px;
}
.env-detail-head h2 {
  margin: 8px 0 6px;
  font-size: 27px;
}
.env-detail-head p {
  margin: 0 0 10px;
  color: var(--muted);
}
.env-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.env-detail-grid dl,
.env-detail-grid dd {
  margin: 0;
}
.env-detail-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.env-detail-grid dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-wrap;
}
.env-detail-items,
.env-timeline {
  margin: 0;
  padding: 17px 20px 20px 39px;
}
.env-detail-items li,
.env-timeline li {
  margin: 0 0 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.env-detail-items small,
.env-timeline small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.env-action-note {
  padding: 14px 18px;
  color: #555f68;
  background: #f8f9fa;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
}
.env-status-recogido { color: #674294; background: #efe6fb; }
.env-detail-head-envelope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
}
.env-detail-heading { min-width: 0; }
.env-detail-heading > .env-action-button { margin-bottom: 10px; }
.env-detail-heading h2 { font-size: clamp(20px, 2vw, 27px); overflow-wrap: anywhere; }
.env-detail-head-envelope .env-detail-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.env-detail-toolbar .env-action-button { min-width: 0; width: 100%; min-height: 54px; }
.env-detail-toolbar-standard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; }
.env-detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.env-detail-content-grid .panel { margin: 0; min-width: 0; }
.env-detail-content-grid .panel-head { padding: 14px 16px; }
.env-detail-aside { display: grid; gap: 14px; min-width: 0; }
.env-standard-detail-list .env-action-button { min-width: 112px; flex: 0 0 auto; }
@media (max-width: 1100px) {
  .env-detail-head-envelope { grid-template-columns: 1fr; gap: 12px; }
  .env-detail-head-envelope .env-detail-toolbar { max-width: 720px; }
}
@media (max-width: 950px) {
  .env-detail-content-grid { grid-template-columns: 1fr; }
  .env-layout-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .env-filters {
    grid-template-columns: 1fr 1fr;
  }
  .env-filters .search {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .env-detail-toolbar-standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .env-detail-head-envelope .env-detail-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .env-action-button { min-width: 0; }
  .env-standard-label-reference { align-items: flex-start; }
  .env-standard-label-reference .env-label-thumbnail { flex-basis: 88px; width: 88px; height: 72px; }
  .env-tabs, .env-standard-filters { width: 100%; }
  .env-tab { flex: 1; padding: 10px 8px; }
  .env-layout-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .env-recipient-actions, .env-standard-detail-list li { align-items: flex-start; flex-direction: column; }
  .env-filters {
    grid-template-columns: 1fr;
  }
  .env-filters .search {
    grid-column: auto;
  }
  .env-pagination {
    flex-wrap: wrap;
  }
  .env-table-wrap {
    display: none;
  }
  .env-mobile-list {
    display: block;
  }
  .env-form-grid,
  .env-recipient-create,
  .env-detail-grid {
    grid-template-columns: 1fr;
  }
  .env-wide {
    grid-column: auto;
  }
  .env-detail-head {
    min-width: 0;
  }
  .env-detail-head .intro-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .env-pagination { justify-content: center; }
  .env-pagination .numeric-pagination { justify-content: center; }
}
.env-detail-head-envelope:has(.env-detail-toolbar-icons) { grid-template-columns: minmax(0, 1fr) auto; }
.env-detail-head-envelope .env-detail-toolbar.env-detail-toolbar-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 396px;
}
.env-detail-head-standard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.env-detail-head-standard > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.env-detail-head-standard .env-detail-toolbar-standard.env-detail-toolbar-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: none;
  margin: 0;
}
.env-detail-toolbar.env-detail-toolbar-icons .env-action-button {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}
.env-standard-detail-list .env-action-button.env-icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
.env-cover-print-size { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-basis: 100%; color: var(--muted); font-size: 12px; }
.env-cover-print-size select { width: 170px; min-height: 40px; padding: 8px 10px; font-size: 13px; }
@media (max-width: 1100px) {
  .env-detail-head-envelope:has(.env-detail-toolbar-icons) { grid-template-columns: 1fr; }
  .env-detail-head-envelope .env-detail-toolbar.env-detail-toolbar-icons,
  .env-cover-print-size { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .env-detail-head-standard { grid-template-columns: 1fr; gap: 12px; }
  .env-detail-head-standard .env-detail-toolbar-standard.env-detail-toolbar-icons { justify-content: flex-start; }
}
