:root {
  --dole-blue: #174a8b;
  --dole-blue-dark: #10335f;
  --dole-red: #c9252d;
  --dole-yellow: #f6c343;
  --csm-ink: #182433;
  --csm-soft: #f4f7fb;
}

body {
  background: var(--csm-soft);
  color: var(--csm-ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.csm-header {
  background:
    linear-gradient(120deg, rgba(16, 51, 95, .98), rgba(23, 74, 139, .94) 58%, rgba(201, 37, 45, .92));
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px rgba(16, 51, 95, .18);
}

.csm-header .nav-link {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, .9);
  display: inline-flex;
  font-weight: 600;
  min-height: 36px;
  padding: .45rem .7rem;
}

.csm-header .nav-link:hover,
.csm-header .nav-link:focus {
  background: rgba(255, 255, 255, .13);
  color: white;
}

.csm-nav {
  align-items: center;
  gap: .35rem;
}

.csm-logout-form {
  align-items: center;
  display: flex;
  margin: 0;
}

.csm-header .btn-primary {
  background: var(--dole-yellow);
  border-color: var(--dole-yellow);
  color: var(--dole-blue-dark);
  font-weight: 700;
}

.csm-header .btn-primary:hover,
.csm-header .btn-primary:focus {
  background: #ffd76b;
  border-color: #ffd76b;
  color: var(--dole-blue-dark);
}

.csm-header .btn-outline-primary {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .68);
  color: white;
  font-weight: 700;
}

.csm-header .btn-outline-primary:hover,
.csm-header .btn-outline-primary:focus {
  background: var(--dole-yellow);
  border-color: var(--dole-yellow);
  color: var(--dole-blue-dark);
}

.csm-brand {
  gap: .75rem;
  min-width: 0;
}

.brand-logo {
  align-items: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(16, 51, 95, .12);
  display: block;
  height: 46px;
  object-fit: contain;
  padding: 3px;
  width: 46px;
}

.brand-title,
.brand-subtitle {
  color: white;
  display: block;
  line-height: 1.15;
}

.brand-subtitle {
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 500;
  margin-top: .15rem;
}

.csm-hero {
  background:
    linear-gradient(120deg, rgba(16, 51, 95, .97), rgba(23, 74, 139, .9) 58%, rgba(201, 37, 45, .86)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.09) 1px, transparent 1px, transparent 18px);
  color: white;
  padding: 4rem 0 3rem;
}

.hero-kicker {
  color: var(--dole-yellow);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: .6rem;
}

.csm-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 740px;
  opacity: .94;
}

.hero-panel {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 1.25rem;
}

.hero-logo {
  background: white;
  border-radius: 8px;
  display: block;
  height: 92px;
  margin-bottom: 1rem;
  object-fit: contain;
  padding: .5rem;
  width: 92px;
}

.panel-stat span {
  color: var(--dole-yellow);
  display: block;
  font-size: .9rem;
  font-weight: 700;
}

.panel-stat strong {
  display: block;
  font-size: 1.15rem;
  margin-top: .25rem;
}

.panel-line {
  background: rgba(255,255,255,.26);
  height: 1px;
  margin: 1rem 0;
}

.card {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(24, 36, 51, .06);
}

.alert-error {
  --tblr-alert-color: #b42323;
  --tblr-alert-bg: #ffe9e9;
  --tblr-alert-border-color: #ffd1d1;
}

.csm-info-card {
  height: 100%;
}

.info-icon {
  align-items: center;
  background: #e8f0fb;
  border-radius: 8px;
  color: var(--dole-blue);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  margin-bottom: .75rem;
  width: 38px;
}

.csm-form-card {
  margin: 0 auto;
  max-width: 1040px;
}

.form-control,
.form-select,
textarea {
  text-transform: none;
}

[data-uppercase="true"] {
  text-transform: uppercase;
}

.csm-profile-grid > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.csm-profile-grid .mb-3 {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-bottom: 0 !important;
}

.csm-profile-grid .form-label {
  align-items: flex-end;
  display: flex;
  line-height: 1.25;
  margin-bottom: .45rem;
  min-height: 2.35rem;
}

.csm-profile-grid .form-control,
.csm-profile-grid .form-select {
  min-height: 38px;
}

.csm-progress {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, 1fr);
}

.progress-step {
  align-items: center;
  background: white;
  border: 1px solid #dce6df;
  border-radius: 8px;
  color: #52606d;
  display: flex;
  gap: .65rem;
  min-height: 64px;
  padding: .75rem;
  text-decoration: none;
}

.progress-step span {
  align-items: center;
  background: #edf3ef;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 34px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
}

.progress-step strong {
  font-size: .92rem;
  line-height: 1.2;
}

.progress-step.active {
  border-color: var(--dole-blue);
  color: var(--dole-blue-dark);
}

.progress-step.active span,
.progress-step.done span {
  background: var(--dole-blue);
  color: white;
}

.rating-question {
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.rating-question legend {
  float: none;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.rating-question legend small {
  color: var(--dole-blue);
  display: block;
  font-size: .85rem;
  font-weight: 700;
}

.rating-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1rem;
}

.cc-question ul {
  display: grid;
  gap: .6rem;
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}

.cc-question li label {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #dce6df;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .55rem;
  padding: .75rem;
}

.rating-card {
  align-items: center;
  border: 2px solid #dce6df;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-height: 118px;
  justify-content: center;
  padding: .75rem .45rem;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.rating-card input {
  position: absolute;
  opacity: 0;
}

.rating-card.is-selected {
  background: #e8f0fb;
  border-color: var(--dole-blue);
  transform: translateY(-1px);
}

.rating-face {
  font-size: 1.9rem;
  line-height: 1;
}

.rating-card span:last-child {
  color: #52606d;
  font-size: .78rem;
  line-height: 1.15;
}

.stat-card .card-body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.stat-card span {
  color: #667382;
  font-weight: 700;
}

.stat-card strong {
  color: var(--dole-blue-dark);
  font-size: 2rem;
  line-height: 1.1;
}

.dashboard-filter .form-label {
  font-weight: 700;
}

.chart-card canvas {
  max-height: 360px;
}

.stat-good { border-left: 4px solid #174a8b; }
.stat-note { border-left: 4px solid #c69a11; }
.stat-alert { border-left: 4px solid #d63939; }

.feedback-compliment {
  background: #e8f0fb;
  color: #174a8b;
}

.feedback-suggestion {
  background: #fff7df;
  color: #8f6811;
}

.feedback-complaint {
  background: #ffe9e9;
  color: #b42323;
}

.thanks-icon {
  align-items: center;
  background: var(--dole-blue);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 800;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 64px;
}

.reference-box {
  background: #f1f5fb;
  border: 1px dashed var(--dole-blue);
  border-radius: 8px;
  margin: 1.5rem auto 0;
  max-width: 340px;
  padding: 1rem;
}

.reference-box span,
.reference-box strong {
  display: block;
}

.reference-box strong {
  color: var(--dole-blue-dark);
  font-size: 1.35rem;
  margin-top: .25rem;
}

.csm-login-card {
  border-top: 4px solid var(--dole-blue);
}

.login-logo {
  height: 92px;
  object-fit: contain;
  width: 92px;
}

@media (max-width: 768px) {
  .csm-header .container-xl {
    align-items: flex-start;
    gap: .75rem;
  }

  .csm-brand {
    align-items: flex-start;
  }

  .csm-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand-subtitle {
    display: none;
  }

  .csm-profile-grid .form-label {
    min-height: 0;
  }

  .csm-progress,
  .rating-grid {
    grid-template-columns: 1fr;
  }

  .progress-step {
    min-height: 52px;
  }

  .rating-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 64px;
    padding: .75rem;
  }
}
