/* Project dossiers use the established section palette and comfortable RTL spacing. */
.board-shell--formulations .rd-dossier { min-width: 0; color: #284434; }
.board-shell--formulations .rd-dossier :is(h3,h4,h5,h6,p,figure) { margin: 0; }
.board-shell--formulations .rd-dossier :is(h4,h5,h6) { line-height: 1.8; }
.board-shell--formulations .rd-dossier h4 { font-size: 17px; }
.board-shell--formulations .rd-dossier h5 { font-size: 16px; }
.board-shell--formulations .rd-dossier h6 { font-size: 14px; }
.board-shell--formulations .rd-dossier p { line-height: 1.95; font-size: 14px; }
.board-shell--formulations .rd-dossier :is(small,.rd-muted) { color: #667467; font-size: 12px; line-height: 1.9; }
.board-shell--formulations .rd-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.board-shell--formulations .rd-breadcrumb { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; color: #73816e; font-size: 12px; }
.board-shell--formulations .rd-dossier button { min-height: 40px; margin: 0; padding: 9px 15px; border: 1px solid #d6e1d0; border-radius: 9px; background: #fff; color: #396848; font: inherit; font-size: 13px; line-height: 1.6; cursor: pointer; }
.board-shell--formulations .rd-dossier button:hover { background: #f0f6eb; border-color: #afc5a6; }
.board-shell--formulations .rd-dossier button:disabled { opacity: .45; cursor: default; }
.board-shell--formulations .rd-dossier :is(button,input,select,summary,a):focus-visible { outline: 3px solid #78afa3; outline-offset: 3px; }
.board-shell--formulations .rd-dossier .rd-breadcrumb button { padding: 6px 0; min-height: 32px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.board-shell--formulations .rd-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,300px); gap: 36px; padding: 28px; border: 1px solid #dce6d3; background: linear-gradient(115deg,#f5f8ed,#fcfdf9); border-radius: 16px; align-items: center; }
.board-shell--formulations .rd-hero h3 { margin: 6px 0 12px; font-size: clamp(22px,2.3vw,30px); line-height: 1.65; color: #294d37; }
.board-shell--formulations .rd-hero .rd-eyebrow { color: #65805b; font-size: 12px; }
.board-shell--formulations .rd-project-counts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; font-size: 12px; color: #617558; }
.board-shell--formulations .rd-project-counts strong { color: #355e3f; font-size: 18px; margin-inline-end: 3px; }
.board-shell--formulations .rd-progress { display: grid; gap: 12px; padding: 22px; border: 1px solid #dfe7d7; border-radius: 13px; background: #ffffffc9; }
.board-shell--formulations .rd-progress > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.board-shell--formulations .rd-progress span { font-size: 13px; }
.board-shell--formulations .rd-progress strong { font-size: 27px; color: #36744f; }
.board-shell--formulations .rd-progress progress { appearance: none; display: block; width: 100%; height: 8px; border: 0; overflow: hidden; border-radius: 20px; background: #e5ecdd; }
.board-shell--formulations .rd-progress progress::-webkit-progress-bar { background: #e5ecdd; border-radius: 20px; }
.board-shell--formulations .rd-progress progress::-webkit-progress-value { background: #4f8a62; border-radius: 20px; }
.board-shell--formulations .rd-progress progress::-moz-progress-bar { background: #4f8a62; border-radius: 20px; }
.board-shell--formulations .rd-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding: 6px; margin: 24px 0; border: 1px solid #e3e8dc; border-radius: 12px; background: #f5f7f1; }
.board-shell--formulations .rd-tabs button { border-color: transparent; background: transparent; padding: 12px 10px; }
.board-shell--formulations .rd-tabs button[aria-selected="true"] { background: #fff; border-color: #d8e2cd; color: #2e6745; box-shadow: 0 2px 5px #24492207; font-weight: 650; }
.board-shell--formulations .rd-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 22px; align-items: start; }
.board-shell--formulations .rd-box { min-width: 0; padding: 24px; border: 1px solid #e0e7d9; border-radius: 14px; background: #fff; }
.board-shell--formulations .rd-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 24px; }
.board-shell--formulations .rd-section-heading > div:first-child { min-width: 0; }
.board-shell--formulations .rd-section-heading p { margin-top: 6px; color: #6d7b63; font-size: 13px; }
.board-shell--formulations .rd-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.board-shell--formulations .rd-section-heading > .rd-actions { flex-shrink: 0; max-width: 52%; }
.board-shell--formulations .rd-summary-block + .rd-summary-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf0e8; }
.board-shell--formulations .rd-summary-block h4 { font-size: 13px; color: #6d8062; margin-bottom: 6px; }
.board-shell--formulations .rd-goals, .rd-trials, .rd-reports, .rd-samples { display: grid; gap: 15px; }
.board-shell--formulations .rd-goal { padding: 18px; border: 1px solid #e2e8d9; border-radius: 11px; background: #fbfcf8; }
.board-shell--formulations .rd-goal .rd-actions { margin-top: 14px; }
.board-shell--formulations .rd-goal h5 { margin-top: 4px; }
.board-shell--formulations .rd-goal.is-complete { background: #f2f8ef; border-color: #d4e2ca; }
.board-shell--formulations .rd-state { display: inline-block; padding: 3px 8px; background: #eff3e9; border-radius: 6px; color: #667959; font-size: 11px; line-height: 1.8; }
.board-shell--formulations .rd-state[data-outcome="accepted"], .board-shell--formulations .rd-goal.is-complete .rd-state { background: #e4f1df; color: #3e6e3b; }
.board-shell--formulations .rd-state[data-outcome="changes-needed"] { background: #fff0d8; color: #8b6632; }
.board-shell--formulations .rd-state[data-outcome="rejected"] { background: #fbece4; color: #945d49; }
.board-shell--formulations .rd-empty { padding: 30px 22px; border: 1px dashed #dae3d1; border-radius: 11px; background: #fafcf6; color: #5e7454; text-align: center; }
.board-shell--formulations .rd-empty strong { font-size: 14px; line-height: 1.9; }
.board-shell--formulations .rd-empty p { margin-top: 8px; font-size: 13px; }
.board-shell--formulations .rd-filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(150px,1fr); gap: 18px; margin-bottom: 22px; padding: 18px; background: #f8faf4; border-radius: 10px; }
.board-shell--formulations .rd-dossier label { display: grid; gap: 8px; min-width: 0; color: #607453; font-size: 13px; line-height: 1.8; }
.board-shell--formulations .rd-dossier :is(input,select) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cfddc5; border-radius: 9px; background: #fff; color: #385839; font: inherit; font-size: 14px; }
.board-shell--formulations .rd-search-label { max-width: 520px; margin-bottom: 22px; }
.board-shell--formulations .rd-trials { grid-template-columns: repeat(2,minmax(0,1fr)); }
.board-shell--formulations .rd-trial { padding: 22px; border: 1px solid #e1e7d8; border-radius: 12px; min-width: 0; background: #fdfefa; }
.board-shell--formulations :is(.rd-trial-top,.rd-report-top) { display: flex; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.board-shell--formulations :is(.rd-trial-top,.rd-report-top) h5 { margin-top: 8px; }
.board-shell--formulations :is(.rd-trial-top,.rd-report-top) small { flex-shrink: 0; }
.board-shell--formulations .rd-dossier .rd-version { margin: 12px 0; font-size: 13px; }
.board-shell--formulations .rd-dossier .rd-counts { margin: 16px 0; color: #718068; font-size: 12px; }
.board-shell--formulations .rd-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e6ebdf; }
.board-shell--formulations .rd-details > summary { color: #55704a; font-size: 13px; line-height: 1.9; cursor: pointer; }
.board-shell--formulations .rd-details[open] > summary { margin-bottom: 18px; }
.board-shell--formulations .rd-details > .rd-actions { margin-top: 16px; }
.board-shell--formulations .rd-formula-index { margin: 0 0 20px; padding: 16px; background: #f7faf2; border: 1px solid #e1e8d9; border-radius: 10px; }
.board-shell--formulations .rd-formula-index ul { display: grid; gap: 10px; padding-inline-start: 20px; font-size: 13px; }
.board-shell--formulations .rd-sample { padding: 14px; border: 1px solid #e5ebde; border-radius: 9px; background: #fff; }
.board-shell--formulations .rd-sample .rd-actions { margin-top: 12px; }
.board-shell--formulations .rd-pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e9ede3; font-size: 12px; color: #6f7d65; }
.board-shell--formulations .rd-feedback-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.board-shell--formulations .rd-feedback-summary > div { display: grid; gap: 7px; padding: 17px; border-radius: 10px; background: #f6f9f1; border: 1px solid #e5ebdd; }
.board-shell--formulations .rd-feedback-summary strong { font-size: 22px; color: #537046; }
.board-shell--formulations .rd-feedback-summary span { font-size: 12px; color: #687a5f; line-height: 1.8; }
.board-shell--formulations .rd-report { padding: 22px; border: 1px solid #e0e7d8; border-radius: 12px; }
.board-shell--formulations .rd-dossier .rd-evidence-context { color: #6c7d61; font-size: 12px; margin: 15px 0; line-height: 2; }
.board-shell--formulations .rd-next-action { margin-top: 14px !important; padding: 14px; background: #f7faf2; border-radius: 8px; }
.board-shell--formulations .rd-correction-history { padding: 14px; margin: 12px 0; border-inline-start: 3px solid #dce5d0; background: #f9fbf6; }
.board-shell--formulations .rd-selected-history { margin-top: 24px; padding: 22px; border: 1px solid #dedfcf; border-radius: 12px; background: #fdfbf3; }
.board-shell--formulations .rd-chart { padding: 20px; margin-top: 18px; border: 1px solid #e3e9db; border-radius: 12px; background: #fcfdf9; }
.board-shell--formulations .rd-chart figcaption { font-size: 15px; color: #47633e; }
.board-shell--formulations .rd-chart figcaption span { color: #7a8673; font-size: 12px; }
.board-shell--formulations .rd-chart svg { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; }
.board-shell--formulations .rd-chart text { font-family: inherit; font-size: 11px; fill: #6b7b62; }
.board-shell--formulations .rd-chart .rd-gridline { stroke: #e5ebde; stroke-width: 1; }
.board-shell--formulations .rd-chart .rd-target-line { stroke: #bc995e; stroke-dasharray: 6 5; stroke-width: 1.5; }
.board-shell--formulations .rd-chart .rd-trend-line { stroke: #548364; stroke-width: 2.5; fill: none; }
.board-shell--formulations .rd-chart .rd-chart-dot { fill: #568569; stroke: #fff; stroke-width: 1.5; }
.board-shell--formulations .rd-chart .rd-chart-caption { color: #718265; font-size: 12px; }
.board-shell--formulations .rd-results-table .formulations-table-scroll table { min-width: 700px; }
.board-shell--formulations .rd-results-table td { vertical-align: top; }
.board-shell--formulations .rd-results-table td:nth-child(1) { white-space: nowrap; }
.board-shell--formulations .rd-results-table .rd-evidence-context { margin: 0; }
.board-shell--formulations .rd-open-project { display: block; padding: 12px 16px; margin: 16px 0; border-radius: 9px; text-align: center; background: #edf5e7; border: 1px solid #d9e6ce; font-size: 14px; text-decoration: none; }
@media (max-width:1100px) {
  .board-shell--formulations .rd-overview { grid-template-columns: 1fr; }
  .board-shell--formulations .rd-trials { grid-template-columns: 1fr; }
}
@media (max-width:780px) {
  .board-shell--formulations .rd-hero { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .board-shell--formulations .rd-progress { max-width: none; }
  .board-shell--formulations .rd-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-shell--formulations .rd-section-heading { flex-direction: column; }
  .board-shell--formulations .rd-section-heading > .rd-actions { max-width: none; }
  .board-shell--formulations .rd-feedback-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .board-shell--formulations .rd-box { padding: 18px 15px; }
  .board-shell--formulations .rd-hero { padding: 20px 16px; }
  .board-shell--formulations .rd-tabs { gap: 4px; }
  .board-shell--formulations .rd-tabs button { padding: 10px 6px; font-size: 12px; }
  .board-shell--formulations .rd-filters { grid-template-columns: 1fr; padding: 14px; }
  .board-shell--formulations :is(.rd-report,.rd-trial) { padding: 16px; }
  .board-shell--formulations :is(.rd-trial-top,.rd-report-top) { flex-direction: column; gap: 7px; }
  .board-shell--formulations .rd-actions button { flex-grow: 1; }
  .board-shell--formulations .rd-chart { padding: 12px 4px; }
  .board-shell--formulations .rd-chart :is(figcaption,.rd-chart-caption) { padding-inline: 10px; }
}

.board-shell--formulations .rd-dossier[data-selected-record="true"] { outline: none; }
.board-shell--formulations .rd-dossier [data-selected-record="true"] { outline: 2px solid #73a783; outline-offset: 3px; }

@media (max-width:480px) { .board-shell--formulations .rd-chart text { font-size: 30px; } }

.board-shell--formulations .rd-dossier-dialog { overflow: hidden; }
.board-shell--formulations .rd-dossier-dialog > form { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.board-shell--formulations .rd-dossier-dialog > form > header { flex: 0 0 auto; }
.board-shell--formulations .rd-dossier-dialog .formulations-form-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-padding-block: 18px; }
.board-shell--formulations .rd-dossier-dialog .dialog-actions { position: static; flex: 0 0 auto; }
.board-shell--formulations .rd-table-hint { display: none; }
@media (max-width:780px) { .board-shell--formulations .rd-table-hint { display: block; color: #718265; font-size: 12px; margin-bottom: 10px; } }
