/* Utility classes */

/* Full height grid layout - for split-screen layouts */
.full-height-grid {
  min-height: 60vh; /* Minimum 60% of viewport height for better visual balance */
  align-items: stretch; /* Allow columns to stretch */
}

.full-height-grid .fr-col-12:first-child {
  display: flex;
  align-items: center; /* Center only the left column content */
}

.full-height-grid .fr-background-alt--blue-france {
  display: flex; /* Make right column flex to fill height */
}

/* Utility class for centering content (images, etc.) */
.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem;
}

.center-content img {
  max-width: 100%;
  height: auto;
}

/* Field display layout classes */
.field-layout-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.5rem;
}

.field-layout-container:last-child {
  margin-bottom: 0;
}

.field-layout-content {
  flex: 1;
  margin-right: 1rem;
}

.field-layout-badge {
  flex-shrink: 0;
}

.stepper__separator {
  border: none;
  border-bottom: 1px solid var(--border-default-grey);
  height: 0;
}

.fr-label--required::after {
  content: "*";
  margin-left: 0.25rem;
  color: var(--light-decisions-artwork-artwork-minor-red-marianne, #E1000F);
  font-family: monospace;
  cursor: help;
}

.badge--no-background {
  background-color: transparent;
  padding: 0;
}


/* Certificate two-columns layout */
.certificate-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px
}

.certificate-col--left,
.certificate-col--right {
  width: 50%;
  min-width: 0;
}

.certificate-col {
  width: 100%;
}

/* Direct upload progress bar */
.direct-upload-progress {
  width: 100%;
  height: 4px;
  background-color: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.direct-upload-progress-bar {
  height: 100%;
  background-color: var(--background-action-high-blue-france, #000091);
  transition: width 0.3s ease;
  width: 0%;
}

/* Visibility utility */
.hidden {
  display: none !important;
}

/* File item with delete button */
.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.file-link {
  flex: 1;
}

.file-delete-wrapper {
  flex-shrink: 0;
}

.file-delete-wrapper .fr-btn {
  margin: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* API Status Display */
.api-status-summary {
  font-size: 14px;
}

.api-status-count {
  font-weight: bold;
}

.api-status-count--success {
  color: #18753C;
}

.api-status-count--warning {
  color: #B34000;
}

.api-status-segments {
  display: flex;
  gap: 0.5rem;
}

.api-status-segment {
  height: 6px;
  flex: 1;
  border-radius: 2px;
}
