/* A stable, compact command overview, shared by each métier. */
.order-board-filters{display:flex;align-items:center;gap:7px;margin-bottom:9px;flex-wrap:wrap}
.order-board-filters input,.order-board-filters select{font-size:12px;min-height:31px;height:31px;padding:4px 8px;width:auto}
.order-board-filters input[type=search]{flex:1;min-width:140px;max-width:300px}
.order-board-filters select{max-width:220px}.order-board-filters .button{min-height:28px}
.board-dates{display:flex;font-size:12px;position:relative}.board-dates summary{cursor:pointer;padding:5px 8px;color:var(--brand)}
.board-dates[open]{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.board-dates label{font-size:11px;display:inline-flex;gap:4px;align-items:center}.board-dates input{max-width:130px}
.order-board-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));background:white;border:1px solid var(--border);border-radius:8px;margin-bottom:12px;overflow:hidden}
.order-board-metrics>div{padding:9px 14px;border-right:1px solid var(--border);display:grid;gap:2px;min-height:76px}.order-board-metrics>div:last-child{border-right:0}
.order-board-metrics span{font-size:12px;color:var(--muted)}.order-board-metrics strong{font-size:25px;line-height:1.15;letter-spacing:-.5px}.order-board-metrics small{font-size:10px;color:var(--muted);min-height:12px}
.order-board{display:grid;gap:9px}.order-progress-card{display:grid;grid-template-columns:minmax(180px,235px) minmax(0,1fr);align-items:center;background:white;border:1px solid var(--border);border-radius:8px;box-shadow:0 2px 5px #24416704;transition:border-color .15s}
.order-progress-card:hover{border-color:#94b1d7}.order-identity{padding:12px 13px;min-width:0;border-right:1px solid #edf1f6}
.order-customer{font-size:14px;font-weight:700;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text,#173453)}.order-customer>span{color:var(--brand);font-size:12px}
.order-reference{font-size:10px;display:flex;gap:7px;align-items:center;margin-top:5px;color:var(--muted);flex-wrap:wrap}.order-stage-label{padding:2px 5px;border-radius:4px;background:#edf2fa;color:#365d90;white-space:nowrap}
.stage-historical{background:#fff4d8;color:#865b13}.stage-cancelled{background:#f8e9eb;color:#a5404a}.stage-delivered{background:#e5f4ed;color:#207054}
.order-quantities{font-size:11px;margin-top:8px;color:var(--muted)}.order-quantities strong{font-size:13px;color:#183650}.order-due{margin-top:3px;font-size:10px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap}.order-due>span:before{content:'· ';}.order-due.is-late{color:#aa5132}
.order-progress-link{display:block;padding:16px 12px 10px;color:inherit;min-width:0;text-decoration:none!important}.order-progress-steps{list-style:none;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));padding:0;margin:0}
.order-progress-steps li{position:relative;text-align:center;min-width:0}.order-progress-steps li:before{content:'';height:2px;background:#e6ebf0;position:absolute;top:13px;left:-50%;right:50%}.order-progress-steps li:first-child:before{display:none}
.order-step-dot{position:relative;z-index:1}
.order-step-dot{display:flex;width:28px;height:28px;border:1px solid #dbe3ec;border-radius:50%;background:#f7f9fc;color:#8794a5;align-items:center;justify-content:center;font-size:11px;margin:auto}
.order-step-label{display:block;font-size:11px;margin-top:7px;white-space:nowrap;color:#79899c}.step-done .order-step-dot{background:#e5f4ed;border-color:#76b598;color:#227653;font-weight:700}.step-done:before{background:#76b598!important}.step-done .order-step-label{color:#30674d}
.step-current .order-step-dot{background:#285caa;border-color:#285caa;color:white;box-shadow:0 0 0 4px #e9f0fc;font-weight:700}.step-current .order-step-label{color:#285caa;font-weight:700}
.step-source .order-step-dot,.step-partial .order-step-dot{background:#fff5dd;border-color:#d8ae53;color:#8e661e}.step-source .order-step-label,.step-partial .order-step-label{color:#9b742e}.step-unknown:before{background:repeating-linear-gradient(to right,#e3e8ed 0 4px,transparent 4px 7px)!important}
.order-source-note{display:block;text-align:center;font-size:10px;color:#8c783e;margin-top:12px}.order-board-footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:9px 2px}.order-board-footer nav{display:flex;gap:15px}
.stock-history-help{font-size:12px;color:var(--muted);margin:0;padding:7px 12px;border-bottom:1px solid var(--border)}
/* Reserve space for all six columns, including the team control added later. */
.followup-fields-table table{width:100%;min-width:820px;table-layout:fixed}
.followup-fields-table thead th:nth-child(1){width:24%}.followup-fields-table thead th:nth-child(2){width:8%}
.followup-fields-table thead th:nth-child(3),.followup-fields-table thead th:nth-child(4){width:15%}
.followup-fields-table thead th:nth-child(5){width:22%}.followup-fields-table thead th:nth-child(6){width:16%}
.followup-fields-table th,.followup-fields-table td{padding:5px 10px;line-height:1.35}
.followup-fields-table .followup-team-control{overflow-wrap:break-word;word-break:normal}
.followup-team-control>a{display:inline-block;white-space:nowrap;padding:2px 0;font-size:12px}
.followup-team-control strong{font-size:11px}.followup-team-control .cell-meta{font-size:10px}
body[data-view=teams] .planning-board .schedule-header,body[data-view=teams] .planning-board .schedule-row{display:grid;grid-template-columns:190px minmax(0,1fr)}
body[data-view=teams] .planning-board .schedule-heading,body[data-view=teams] .planning-board .schedule-label{display:flex}
.planning-topline .planning-kpis{gap:9px}.planning-topline .planning-kpis strong{font-size:16px}
@media(max-width:1200px){.order-progress-card{grid-template-columns:190px minmax(0,1fr)}.order-step-label{font-size:10px}.order-progress-link{padding-left:4px;padding-right:4px}.planning-topline .planning-toolbar{flex-basis:100%}}
@media(max-width:850px){.order-progress-card{grid-template-columns:1fr}.order-identity{border-right:0;border-bottom:1px solid #edf1f6;padding:8px 12px}.order-due{display:inline-flex;margin-left:10px}.order-quantities{display:inline-block;margin-top:5px}.order-step-label{font-size:9px}.order-progress-link{padding:12px 4px}.order-board-metrics{grid-template-columns:repeat(2,1fr)}}
