/* Le dossier réel des commandes fondateur reprend la DA de la liste B2B.
   Les règles sont limitées à cette vue pour préserver les autres écrans. */
body.cockpit-v8-active #a_orders > .content.founder-case-active {
  padding: 0;
  background: #fbfcfa;
}

.founder-case {
  --case-green: #123f35;
  --case-orange: #f4512c;
  --case-line: #dfe6df;
  --case-muted: #697771;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 28px 28px 56px;
  color: #142620;
}

.founder-case-header { display: none; }
.founder-case-intro,
.founder-case-result,
.founder-case-hero,
.founder-case-documents,
.founder-case-insight,
.founder-case-history,
.founder-case-shipments,
.founder-case [data-gervis="formulaire-depart"] { grid-column: 1 / -1; }

.founder-case-intro { display: grid; gap: 18px; }
.founder-case-back {
  justify-self: start;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--case-line);
  border-radius: 10px;
  background: #fff;
  color: var(--case-green);
  font: 650 12px var(--sys);
  cursor: pointer;
}
.founder-case-back:hover { background: #eef5f0; }
.founder-case-back:focus-visible,
.founder-case button:focus-visible { outline: 2px solid var(--case-orange); outline-offset: 2px; }
.founder-case-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--case-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.founder-case-heading h1 {
  margin: 0;
  color: var(--case-green);
  font: 600 clamp(28px, 3vw, 40px)/1.12 'Playfair Display', serif;
}
.founder-case-heading p { margin: 7px 0 0; color: var(--case-muted); font-size: 13px; }

.founder-case > .card {
  min-width: 0;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 63, 53, .035);
}
.founder-case > .card:hover { transform: none; }
.founder-case .card-t {
  margin-bottom: 12px;
  color: var(--case-green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
}
.founder-case-hero { border-left: 4px solid var(--case-green) !important; }
.founder-case-hero > div:first-child { align-items: center !important; }
.founder-case-hero > div:first-child .serif {
  color: var(--case-green) !important;
  font-size: 26px !important;
}
.founder-case-hero > div:first-child > span:last-child {
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 700;
}
.founder-case .btn { min-height: 40px; border-radius: 10px; box-shadow: none; font-weight: 650; }
.founder-case .btn.a { background: var(--case-orange); box-shadow: none; }
.founder-case .btn.g { border: 1px solid var(--case-line); background: #fff; color: var(--case-green); }

.founder-case-tax-head { align-items: center !important; margin-top: 0 !important; }
.founder-case-tax-head b { color: var(--case-green); font-size: 17px !important; }
.founder-case-tax-head .pill { border-radius: 7px; font-size: 10px !important; }
.founder-case-tax-why { margin-top: 8px !important; font-size: 12px !important; }
.founder-case-totals {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top-color: var(--case-line) !important;
}
.founder-case-totals > div { min-width: 0; padding: 13px 15px; border-radius: 10px; background: #f4f7f4; }
.founder-case-totals > div:last-child { background: #eaf3ed; }
.founder-case-totals > div .serif {
  display: block;
  margin-top: 5px;
  color: var(--case-green) !important;
  font: 650 clamp(15px, 1.6vw, 21px)/1.25 'JetBrains Mono', monospace !important;
  overflow-wrap: anywhere;
}
.founder-case-money > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
}
.founder-case-money > div:nth-child(2) > div {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f4f7f4;
}
.founder-case-money > div:nth-child(2) > div:last-of-type { background: #fff4ea; }
.founder-case-money > div:nth-child(2) .serif {
  display: block;
  margin-top: 5px;
  font: 650 clamp(14px, 1.4vw, 18px)/1.3 'JetBrains Mono', monospace !important;
  overflow-wrap: anywhere;
}
.founder-case-thresholds {
  display: grid;
  gap: 15px;
  margin-top: 0;
}
.founder-case-annual { background: #fbfcfa !important; }
.founder-case-thresholds-title,
.founder-case-threshold-label,
.founder-case-threshold-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.founder-case-thresholds-title strong {
  display: block;
  color: var(--case-green);
  font-size: 15px;
}
.founder-case-thresholds-title div span,
.founder-case-thresholds > p,
.founder-case-threshold-foot { color: var(--case-muted); font-size: 11px; line-height: 1.5; }
.founder-case-thresholds-title div span { display: block; margin-top: 2px; }
.founder-case-thresholds-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f1f3f0;
  color: #66736d;
  font-size: 10px;
  font-weight: 650;
}
.founder-case-thresholds > p { margin: -5px 0 0; }
.founder-case-threshold { display: grid; gap: 7px; }
.founder-case-threshold-label { font-size: 12px; }
.founder-case-threshold-label strong { color: var(--case-green); }
.founder-case-threshold-label span { color: var(--case-muted); text-align: right; }
.founder-case-threshold-track {
  position: relative;
  height: 12px;
  overflow: visible;
  border: 1px solid #dce4dc;
  border-radius: 999px;
  background: repeating-linear-gradient(105deg, #eef2ee 0, #eef2ee 9px, #e6ece6 9px, #e6ece6 18px);
}
.founder-case-threshold-track::after,
.founder-case-threshold-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: var(--case-green);
  content: '';
}
.founder-case-threshold-track::after { right: 0; }
.founder-case-threshold-marker { background: var(--case-orange); }
.founder-case-threshold-foot span:last-child { text-align: right; white-space: nowrap; }
.founder-case-thresholds .founder-case-thresholds-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #edf0ed;
  font-size: 10px;
}
.founder-case-thresholds-note a { color: var(--case-green); text-underline-offset: 2px; }
.founder-case .hint { color: var(--case-muted); line-height: 1.55; }
.founder-case-items > div:not(.card-t),
.founder-case-history > div:not(.card-t),
.founder-case-shipments > div:not(.card-t) { border-bottom-color: #edf0ed !important; }

@media (max-width: 900px) {
  .founder-case { display: block; padding: 0 0 100px; }
  .founder-case-header {
    display: flex;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #edf0ed;
    background: #fbfcfa;
    color: var(--case-green);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .founder-case-header img { width: 118px; height: 64px; object-fit: contain; }
  .founder-case-intro { gap: 13px; padding: 20px 18px 17px; }
  .founder-case-heading h1 { font-size: 31px; }
  .founder-case-heading p { font-size: 12px; }
  .founder-case > .card { margin: 0 16px 12px; padding: 17px; }
  .founder-case-hero > div:first-child .serif { font-size: 23px !important; }
  .founder-case-totals > div { padding: 10px; }
  .founder-case-totals > div .serif { font-size: 14px !important; }
  .founder-case-money > div:nth-child(2) > div { padding: 9px; }
  .founder-case-money > div:nth-child(2) .serif { font-size: 13px !important; }
  .founder-case-thresholds-state { white-space: normal; text-align: right; }
  .founder-case .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .founder-case-totals { gap: 5px !important; }
  .founder-case-totals > div { padding: 8px 6px; }
  .founder-case-totals > div .serif { font-size: 12px !important; }
  .founder-case-money > div:nth-child(2) .serif { font-size: 12px !important; }
  .founder-case-tax-head b { font-size: 15px !important; }
  .founder-case-threshold-label { align-items: flex-start; }
  .founder-case-threshold-label span { max-width: 45%; }
}
