/* Mechanic history stays inside the existing four-tab work-order workspace. */
#quickOrderTabs button[data-quick-filter="history"]{white-space:nowrap}
.mechanic-history-panel{background:#fff;border:1px solid #dce7f0;border-radius:12px;padding:17px;margin-top:10px}
.mechanic-history-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:9px}
.mechanic-history-search label{display:flex;flex:1 1 250px;flex-direction:column;gap:6px;font-weight:700;font-size:14px;color:#1b4264}
.mechanic-history-search input{width:100%;min-width:0}
.mechanic-history-rows{display:grid;gap:10px;margin-top:12px}
.mechanic-history-card{background:#fff;border:1px solid #dce6ed;border-left:3px solid #1766b5;border-radius:10px;padding:14px;min-width:0}
.mechanic-history-top{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}
.mechanic-history-top strong{font-size:16px;color:#123d60}
.mechanic-history-top .small{margin:5px 0}
.mechanic-history-status{background:#fef1d9;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;color:#815710;white-space:nowrap}
.mechanic-history-status.is-confirmed{background:#e4f4e9;color:#11633b}
.mechanic-history-tasks{border-top:1px solid #e8eff5;margin-top:10px}
.mechanic-history-task{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #ecf1f5}
.mechanic-history-task:last-child{border-bottom:0}
.mechanic-history-task strong{overflow-wrap:anywhere;font-size:14px}
.mechanic-history-task .small{margin:4px 0 0}
.mechanic-history-norm{flex:0 0 auto;font-size:13px;font-weight:750;color:#234b68;text-align:right}
@media(max-width:640px){
 #quickOrderTabs{display:flex;flex-wrap:wrap;gap:6px}
 #quickOrderTabs button[data-quick-filter="history"]{min-height:44px}
 .mechanic-history-panel{padding:12px}
 .mechanic-history-search button{flex:1 1 auto}
 .mechanic-history-task{align-items:flex-start;flex-direction:column}
 .mechanic-history-norm{text-align:left}
}
