/* Procuraz Multi-Workspace Reports Centre — responsive screen-fit layout v4.4.1 */
#platform-report-centre,
#company-report-centre,
#vendor-report-centre,
#partner-report-centre {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.report-centre {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
  margin-top: 18px;
}

.report-centre,
.report-centre *,
.report-centre *::before,
.report-centre *::after {
  box-sizing: border-box;
}

.report-centre > *,
.report-centre-head > *,
.report-filter-card > *,
.report-output-head > *,
.report-summary-grid > * {
  min-width: 0;
  max-width: 100%;
}

.report-centre-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(245, 243, 255, .96));
  box-shadow: 0 14px 36px rgba(67, 56, 202, .08);
}

.report-centre-head h2 {
  margin: 5px 0 8px;
  color: #172033;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.report-centre-head p {
  max-width: 720px;
  margin: 0;
  color: #667085;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.report-eyebrow {
  display: block;
  color: #5b5ce2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.report-scope {
  flex: 0 1 300px;
  min-width: 220px;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  overflow-wrap: anywhere;
}

.report-scope span,
.report-scope small {
  display: block;
  color: #667085;
  font-size: 12px;
}

.report-scope b {
  display: block;
  margin: 4px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.4;
}

.report-filter-card {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .65fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.report-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.report-field-wide {
  grid-column: span 1;
}

.report-field-search {
  grid-column: span 2;
}

.report-field label {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.report-field small {
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-field input,
.report-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #182230;
  font: inherit;
  transition: border-color .18s, box-shadow .18s;
}

.report-field input:focus,
.report-field select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.report-date-pair {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.report-date-pair span {
  color: #98a2b3;
  font-size: 12px;
}

.report-presets {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.report-presets button {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #475467;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.report-presets button:hover,
.report-presets button.active {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4f46e5;
}

.report-actions {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.report-button {
  display: inline-flex;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  white-space: normal;
  transition: transform .16s, box-shadow .16s, opacity .16s;
}

.report-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.report-button:disabled {
  cursor: wait;
  opacity: .62;
}

.report-button-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .2);
  color: #fff;
}

.report-button-secondary {
  border-color: #c7d2fe;
  background: #fff;
  color: #4f46e5;
}

.report-error {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b42318;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.report-error.hidden,
.report-field.hidden {
  display: none;
}

.report-summary-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 12px;
}

.report-summary-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, .13);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.report-summary-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#2563eb, #8b5cf6);
  content: "";
}

.report-summary-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-summary-card strong {
  display: block;
  margin-top: 7px;
  color: #101828;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.report-output-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.report-output-head {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #eaecf0;
}

.report-output-head h3 {
  margin: 4px 0 3px;
  color: #1d2939;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.report-output-head p,
.report-generated {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.report-generated {
  flex: 0 1 280px;
  text-align: right;
  overflow-wrap: anywhere;
}

.report-notice {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-size: 12px;
}

.report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 110px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
  color: #475467;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.report-table td {
  min-width: 110px;
  max-width: 320px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f5;
  color: #344054;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.report-table tbody tr:hover td {
  background: #fafbff;
}

.report-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.report-yes {
  color: #067647;
  font-weight: 750;
}

.report-muted {
  color: #98a2b3;
}

.report-loading,
.report-welcome,
.report-empty {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 230px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #c7d2fe;
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfdff, #faf8ff);
  color: #667085;
  text-align: center;
}

.report-loading p,
.report-welcome p,
.report-empty p {
  max-width: 540px;
  margin: 7px auto 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.report-welcome h3,
.report-empty h3 {
  margin: 8px 0 0;
  color: #344054;
}

.report-welcome-icon,
.report-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .2);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.report-error-state {
  border-color: #fecaca;
  background: #fffafa;
}

.report-spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(99, 102, 241, .2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: report-spin .75s linear infinite;
}

@keyframes report-spin {
  to { transform: rotate(360deg); }
}

/* The breakpoint includes the permanent desktop sidebar, so the report card
   adapts before its available content width becomes narrower than the filter grid. */
@media (max-width: 1240px) {
  .report-centre-head {
    display: grid;
  }

  .report-scope {
    width: 100%;
    min-width: 0;
  }

  .report-filter-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .report-field-wide,
  .report-field-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .report-centre {
    gap: 14px;
    margin-top: 12px;
  }

  .report-centre-head,
  .report-filter-card {
    padding: 17px;
    border-radius: 17px;
  }

  .report-filter-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-field,
  .report-field-wide,
  .report-field-search {
    grid-column: 1;
  }

  .report-date-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-date-pair span {
    display: none;
  }

  .report-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .report-button {
    width: 100%;
    padding: 0 10px;
  }

  .report-output-head {
    display: grid;
    padding: 17px;
  }

  .report-generated {
    text-align: left;
  }

  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-table {
    min-width: 680px;
  }

  .report-table th,
  .report-table td {
    padding: 10px 11px;
  }
}

@media (max-width: 420px) {
  .report-summary-grid,
  .report-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-presets button {
    width: 100%;
  }
}
