.eds-sed-go-host,
.emp-sgr-surface,
.emp-sgr-panel {
  min-height: 0;
}

.emp-sgr-surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

.emp-sgr-panel {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow: hidden;
}

.emp-sgr-head,
.emp-sgr-tabs,
.emp-sgr-search,
.emp-sgr-frame,
.emp-sgr-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emp-sgr-head,
.emp-sgr-tabs,
.emp-sgr-search {
  padding: 16px 20px 0;
}

.emp-sgr-head {
  justify-content: space-between;
  align-items: flex-start;
}

.emp-sgr-head h2,
.emp-sgr-dialog h3,
.emp-sgr-flash h3 {
  margin: 0;
  font-size: 20px;
}

.emp-sgr-head p,
.emp-sgr-flash p,
.emp-sgr-flash li {
  margin: 4px 0 0;
  color: rgba(242, 245, 248, 0.78);
}

.emp-sgr-tracking {
  font-size: 18px;
  color: #f2f5f8;
}

.emp-sgr-close,
.emp-sgr-act,
.emp-sgr-tab,
.emp-sgr-row {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  color: #f2f5f8;
  padding: 6px 10px;
  cursor: pointer;
}

.emp-sgr-close {
  width: 36px;
  border: 0;
  font-size: 24px;
}

.emp-sgr-tab[aria-selected="true"],
.emp-sgr-act.is-primary {
  background: #1d6f8f;
  border-color: transparent;
}

.emp-sgr-act.is-danger { background: #8d3030; border-color: transparent; }
.emp-sgr-act:disabled,
.emp-sgr-preview-open:disabled,
.emp-sgr-tab:disabled { opacity: 0.45; cursor: not-allowed; }

.emp-sgr-close:focus-visible,
.emp-sgr-act:focus-visible,
.emp-sgr-tab:focus-visible,
.emp-sgr-row:focus-visible,
.emp-sgr-search input:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.emp-sgr-search { align-items: flex-end; }
.emp-sgr-search label { flex: 1 1 220px; font-size: 12px; color: rgba(242, 245, 248, 0.72); }
.emp-sgr-search input {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #101214;
  color: #f2f5f8;
  padding: 8px 10px;
}

.emp-sgr-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 20px 18px;
}

.emp-sgr-count {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(242, 245, 248, 0.88);
}

.emp-sgr-previews {
  --espacio-aprobado-admin: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 401px), 401px));
  gap: var(--espacio-aprobado-admin);
  align-items: stretch;
  justify-content: start;
  justify-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.emp-sgr-preview.client-portal-project-card {
  width: 401px;
  min-width: 0;
  max-width: 401px;
  min-height: 0;
  padding: 14px 16px;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  border: 1px solid rgba(89, 183, 222, 0.38);
  background: linear-gradient(180deg, #2a333c 0%, #1b2127 100%);
  color: #f2f5f8;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.emp-sgr-preview:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.emp-sgr-preview[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.emp-sgr-kicker {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9fd7ef;
}

.emp-sgr-fields {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.emp-sgr-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-width: 0;
}

.emp-sgr-field dt,
.emp-sgr-field dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
}

.emp-sgr-field dt {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(242, 245, 248, 0.7);
  white-space: nowrap;
}

.emp-sgr-field dd,
.emp-sgr-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f2f5f8;
}

.emp-sgr-preview [data-status="pending"],
.emp-sgr-table [data-status="pending"] {
  background: #ffd76b;
  color: #4a3a05;
}

.emp-sgr-preview [data-status="allowed"],
.emp-sgr-table [data-status="allowed"] {
  background: #9fe0ab;
  color: #124a1e;
}

.emp-sgr-preview [data-status="discarded"],
.emp-sgr-table [data-status="discarded"] {
  background: #ffb4b4;
  color: #571414;
}

.emp-sgr-preview [data-status="available"],
.emp-sgr-table [data-status="available"] {
  background: #9fd7ef;
  color: #12323f;
}

.emp-sgr-preview [data-status="claimed"],
.emp-sgr-table [data-status="claimed"] {
  background: #f2d48a;
  color: #4a3a05;
}

.emp-sgr-preview [data-status],
.emp-sgr-table [data-status] {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.emp-sgr-presentation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(242, 245, 248, 0.7);
}

.emp-sgr-presentation-options {
  display: flex;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #2a2e33;
}

.emp-sgr-presentation-options button {
  flex: 1 1 0;
  min-width: 4.5rem;
  border: 0;
  background: transparent;
  color: #f2f5f8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.emp-sgr-presentation-options button[aria-checked="true"] {
  background: #24566c;
  color: #ffffff;
}

.emp-sgr-presentation-options button:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: -2px;
}

.emp-sgr-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.emp-sgr-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #f2f5f8;
}

.emp-sgr-table th,
.emp-sgr-table td {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.emp-sgr-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(242, 245, 248, 0.7);
}

.emp-sgr-table tbody tr {
  cursor: pointer;
}

.emp-sgr-table tbody tr:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: -2px;
}

.emp-sgr-table tbody tr[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.emp-sgr-flash section { margin-top: 16px; }
.emp-sgr-flash ul { list-style: none; padding: 0; }
.emp-sgr-flash li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.emp-sgr-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.emp-sgr-frame { display: flex; justify-content: flex-end; gap: 8px; }
.emp-sgr-actions .emp-sgr-confirm { width: 100%; margin: 0; padding: 0; background: transparent; }
.emp-sgr-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}
.emp-sgr-banner p { margin: 0; }
.emp-sgr-banner.is-error { background: rgba(220, 80, 80, 0.16); color: #ffd4d4; }
.emp-sgr-banner.is-ok { background: rgba(67, 176, 106, 0.16); color: #d7f5e2; }
.emp-sgr-confirm {
  width: min(480px, 100%);
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.emp-sgr-confirm footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.eds-sed-go-host:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.emp-sgr-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 16px;
  align-items: stretch;
  min-height: 100%;
  min-width: 0;
}

.emp-sgr-review-layout.is-client {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.emp-sgr-review-layout > .sed-go-review-document,
.emp-sgr-review-layout > .sed-go-admin-review-companies {
  min-width: 0;
  min-height: 100%;
}

.emp-sgr-review-layout .sed-go-review-company,
.emp-sgr-review-layout .sed-go-review-company-name {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.emp-sgr-review-layout .sed-go-review-company {
  align-items: flex-start;
  height: auto;
}

.emp-sgr-panel.is-narrow .emp-sgr-review-layout {
  grid-template-columns: minmax(0, 1fr);
}

.emp-sgr-files-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.emp-sgr-files-heading .sed-go-review-slot-files-heading {
  margin: 0;
  min-width: 0;
}

.emp-sgr-files-toolbar {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.emp-sgr-review-layout .cp-overview-attachment-wrap,
.emp-sgr-review-layout .cp-overview-attachment-wrap.is-image {
  width: 112px;
}

.emp-sgr-review-layout .emp-sgr-file-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 122px;
  flex: 0 0 122px;
  box-sizing: border-box;
}

.emp-sgr-review-layout .emp-sgr-file-view .cp-overview-attachment-thumb,
.emp-sgr-review-layout .emp-sgr-file-view img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}

.emp-sgr-review-layout .cp-overview-attachment-name {
  width: 112px;
  max-width: 112px;
  height: calc(1.25em * 2);
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  line-height: 1.25;
  font-size: 9px;
  color: rgba(242, 245, 248, 0.88);
}

.emp-sgr-attachment-unavailable {
  margin: 8px 0 0;
  color: rgba(242, 245, 248, 0.88);
}

.emp-sgr-filters,
.emp-sgr-filters .cp-all-projects-search,
.emp-sgr-filters .cp-all-projects-search-row {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.emp-sgr-filters .cp-all-projects-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.emp-sgr-filters .cp-all-projects-search-row > .cp-all-projects-search-input {
  flex: 1 1 12rem;
  min-width: min(9rem, 100%);
  max-width: none;
}

.emp-sgr-filters .cp-all-projects-search-row > .cp-all-projects-search-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

@media (max-width: 1366px) {
  .emp-sgr-panel.is-desktop { min-height: 360px; }
}

.sed-go-load-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1px;
  color: rgba(242, 245, 248, 0.92);
}

.sed-go-load-notice[hidden] {
  display: none !important;
}

.sed-go-load-retry {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f2f5f8;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 720px) {
  .emp-sgr-surface,
  .emp-sgr-panel {
    width: 100%;
    min-height: 280px;
    border-radius: 0;
  }
  .emp-sgr-previews {
    grid-template-columns: 100%;
    justify-items: stretch;
  }
  .emp-sgr-preview.client-portal-project-card {
    width: 100%;
    max-width: 100%;
  }
  .emp-sgr-files-heading { flex-wrap: wrap; }
  .emp-sgr-tabs,
  .emp-sgr-search,
  .emp-sgr-frame,
  .emp-sgr-actions { flex-wrap: wrap; }
}
