/* ═══ Page shell — fill the dashboard content area ═════════════════════ */
.page {
  background: #f7f8fa;
  min-height: 100%;
  padding: 16px 20px 60px;
  font-family: inherit;
}

/* ═══ Header — flat toolbar, full width ════════════════════════════════ */
.topbar {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.topbarLeft {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.backBtn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #e6e8ee;
  background: #fff;
  color: #475467;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.backBtn:hover {
  background: #f2f4f7;
  color: #101828;
}

.pageTitle {
  font-size: 16px;
  font-weight: 700;
  color: #101828;
  margin: 0;
  letter-spacing: -0.01em;
}
.pageSub {
  font-size: 12px;
  color: #667085;
  margin: 2px 0 0;
}

.topbarActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ═══ Content — full width of the dashboard area ═══════════════════════ */
.content {
  max-width: none;
  margin: 0;
}

/* ═══ Cards ════════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: visible;
}

.cardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #eef0f4;
  background: #fbfbfc;
  border-radius: 12px 12px 0 0;
}

.cardHeadLeft {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.stepBadge {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clientBadge {
  background: #6d28d9;
}

.cardTitle {
  font-size: 13px;
  font-weight: 700;
  color: #101828;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cardHint {
  font-size: 11px;
  color: #98a2b3;
  margin: 1px 0 0;
}

.cardBody {
  padding: 18px 20px 22px;
}

/* ═══ Grid — 4 columns on wide screens, collapses down ═════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
}
.full {
  grid-column: 1 / -1;
}
/* half-width helper (2 of 4 columns) */
.half {
  grid-column: span 2;
}
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .half {
    grid-column: span 2;
  }
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .half {
    grid-column: 1 / -1;
  }
}

.field label,
.label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #475467;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.req::after {
  content: " *";
  color: #f04438;
  text-transform: none;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #d6dae1;
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  font-size: 13px;
  color: #101828;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.input::placeholder,
.textarea::placeholder {
  color: #98a2b3;
}
.input:focus,
.textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.textarea {
  height: auto;
  min-height: 60px;
  padding: 9px 12px;
  resize: vertical;
  line-height: 1.5;
}

.helper {
  margin-top: 4px;
  font-size: 11px;
  color: #98a2b3;
  line-height: 1.45;
}

/* ═══ Auditee rows ═════════════════════════════════════════════════════ */
.auditeeRow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.iconBtnDanger {
  border: 1px solid #e6e8ee;
  background: #fff;
  color: #98a2b3;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.iconBtnDanger:hover {
  border-color: #fecdca;
  color: #b42318;
  background: #fef3f2;
}

.addRowBtn {
  align-self: flex-start;
  border: 1px solid #d6dae1;
  background: #fff;
  color: #475467;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s;
}
.addRowBtn:hover {
  border-color: #16a34a;
  color: #15803d;
  background: #f6fef9;
}

/* ═══ File upload — compact horizontal dropzone ════════════════════════ */
.dropzone {
  border: 1.5px dashed #d0d5dd;
  border-radius: 10px;
  background: #fcfcfd;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.dropzone:hover {
  border-color: #16a34a;
  background: #f6fef9;
}
.dropzoneIcon {
  font-size: 18px;
  opacity: 0.65;
  flex-shrink: 0;
  margin-bottom: 0;
}
.dropzoneText {
  font-size: 12.5px;
  font-weight: 600;
  color: #475467;
}
.dropzoneText span {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dropzoneHint {
  font-size: 11px;
  color: #98a2b3;
  margin-top: 1px;
}
.hiddenInput {
  display: none;
}

.fileList {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}
.fileItem {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #344054;
}
.fileName {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.fileSize {
  color: #98a2b3;
  font-size: 11px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.fileRemove {
  border: none;
  background: none;
  color: #98a2b3;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  flex-shrink: 0;
  border-radius: 5px;
  transition: all 0.15s;
}
.fileRemove:hover {
  background: #fef3f2;
  color: #b42318;
}

/* ═══ Progress bar ═════════════════════════════════════════════════════ */
.progressWrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progressTrack {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #eef0f4;
  overflow: hidden;
}
.progressFill {
  height: 100%;
  border-radius: 99px;
  background: #16a34a;
  transition: width 0.25s ease;
}
.progressFillDone {
  background: #16a34a;
}
.progressFillError {
  background: #d92d20;
}
.progressLabel {
  font-size: 12px;
  font-weight: 700;
  min-width: 58px;
  text-align: right;
  color: #475467;
  font-variant-numeric: tabular-nums;
}
/* ═══ Group toggle buttons ═════════════════════════════════════════════ */
/* ═══ Group toggle buttons ═════════════════════════════════════════════ */
.groupToggle {
  display: flex;
  gap: 8px;
}
.groupBtn {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  border: 1.5px solid #d6dae1;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.groupBtn:hover {
  border-color: #a78bfa;
}
.groupBtnActive {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}
.groupCheck {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 10px;
  color: #7c3aed;
}

/* ═══ Duplicate button ═════════════════════════════════════════════════ */
.duplicateBtn {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 8px;
  padding: 5px 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s;
}
.duplicateBtn:hover:not(:disabled) {
  border-color: #16a34a;
  background: #dcfce7;
}
.duplicateBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.groupBtnActive {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}
.groupCheck {
  position: absolute;
  top: 3px;
  right: 7px;
  font-size: 10px;
  color: #7c3aed;
}

/* ═══ Buttons ══════════════════════════════════════════════════════════ */
.btnPrimary {
  padding: 0 20px;
  height: 38px;
  border-radius: 9px;
  border: none;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btnPrimary:hover:not(:disabled) {
  background: #15803d;
}
.btnPrimary:disabled {
  background: #a6d9b8;
  cursor: not-allowed;
}

.btnGhost {
  padding: 0 16px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #d6dae1;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btnGhost:hover:not(:disabled) {
  background: #f2f4f7;
}

.removeClientBtn {
  border: 1px solid #e6e8ee;
  background: #fff;
  color: #667085;
  border-radius: 8px;
  padding: 5px 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s;
}
.removeClientBtn:hover {
  border-color: #fecdca;
  color: #b42318;
  background: #fef3f2;
}

.addClientBtn {
  width: 100%;
  border: 1.5px dashed #d0d5dd;
  background: #fff;
  color: #475467;
  border-radius: 12px;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.15s;
}
.addClientBtn:hover:not(:disabled) {
  border-color: #16a34a;
  color: #15803d;
  background: #f6fef9;
}

/* ═══ Info note ════════════════════════════════════════════════════════ */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 12.5px;
  color: #93370d;
  line-height: 1.55;
}

/* ═══ react-select — matched to inputs ═════════════════════════════════ */
.page :global(.rselect__control) {
  border-color: #d6dae1;
  border-radius: 8px;
  min-height: 38px;
  font-size: 13px;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.page :global(.rselect__control:hover) {
  border-color: #d6dae1;
}
.page :global(.rselect__control--is-focused),
.page :global(.rselect__control--is-focused:hover) {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.page :global(.rselect__placeholder) {
  color: #98a2b3;
}
.page :global(.rselect__indicator-separator) {
  display: none;
}
.page :global(.rselect__dropdown-indicator) {
  color: #98a2b3;
}
.page :global(.rselect__multi-value) {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
}
.page :global(.rselect__multi-value__label) {
  color: #15803d;
  font-weight: 600;
  font-size: 12px;
}
.page :global(.rselect__multi-value__remove:hover) {
  background: #dcfce7;
  color: #14532d;
}