/* Isolated compact service workspace: no changes to sale/receiving grids. */
nav button .repairNavBadge{display:inline-block;margin-left:6px;min-width:20px;padding:2px 5px;border-radius:12px;background:#d93243;color:#fff;font-size:12px;font-weight:700;text-align:center;line-height:17px;vertical-align:middle}
nav button .repairNavBadge[hidden]{display:none}
#repairs{color:#182434;font-size:14px}
#repairs [hidden]{display:none!important}
#repairs .repairPanel{padding:20px;margin-bottom:14px;min-width:0}
#repairs h2,#repairs h3{margin:0;color:#182434}
#repairs h2{font-size:21px}#repairs h3{font-size:16px}
#repairs fieldset{border:0;margin:0;padding:0;min-width:0}
#repairs .repairHead,#repairs .repairSectionTitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
#repairs .repairHint{color:#596a80;font-size:12px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}
#repairs .repairActions{display:flex;gap:8px;flex-wrap:wrap}
#repairs button{font-size:13px;min-height:36px;padding:8px 14px;height:auto;line-height:1.3;white-space:normal;border:1px solid #0878f9;border-radius:10px;background:linear-gradient(135deg,#1685ff,#0561dc);color:#fff;font-weight:600;cursor:pointer;transform:none}
#repairs button.ghost{background:#f8fafd;color:#425169;border-color:#d7e0eb;box-shadow:none;font-weight:500}
#repairs .repairBack{background:transparent;border:0;box-shadow:none;color:#0868d7;padding:0;min-height:30px;margin:0 0 5px;text-align:left}
#repairs .repairToolbar{display:grid;grid-template-columns:minmax(140px,1fr) minmax(150px,220px) auto;gap:8px}
#repairs input:not([type=checkbox]),#repairs select,#repairs textarea{width:100%;min-width:0;min-height:36px;height:36px;padding:7px 10px;border-radius:9px;font:inherit;font-size:13px;color:#182434;background:#f8fafd;border:1px solid #d7e0eb;box-shadow:none}
#repairs input::placeholder,#repairs textarea::placeholder{color:#65758b}
#repairs textarea{height:62px;resize:vertical;line-height:1.4}
#repairs input[type=checkbox]{width:17px;height:17px;min-height:0;flex-shrink:0;accent-color:#0878f9}
#repairs input:focus-visible,#repairs select:focus-visible,#repairs textarea:focus-visible,#repairs button:focus-visible,#repairs summary:focus-visible{outline:2px solid #0878f9;outline-offset:2px}
#repairs .repairCounts{display:flex;gap:22px;padding:14px 0;font-size:12px;color:#536177}
#repairs .repairCounts b{color:#182434;margin-left:5px}
#repairs .repairOrder{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,190px) minmax(100px,180px);gap:18px;align-items:center;width:100%;text-align:left;padding:12px 2px;background:transparent;color:#182434;box-shadow:none;border:0;border-top:1px solid #e7edf4;border-radius:0;transform:none}
#repairs .repairOrder:hover{background:#f1f7ff}
#repairs .repairOrder small{display:block;color:#596a80;font-size:12px;margin-top:4px;overflow-wrap:anywhere}
#repairs .repairOrderMain{min-width:0;overflow-wrap:anywhere}#repairs .repairOrderMain b{font-size:14px}
#repairs .repairOrderEnd{display:flex;align-items:flex-end;flex-direction:column;gap:5px}
#repairs .repairBadge{font-size:11px;background:#eaf2fe;color:#125eae;padding:4px 8px;border-radius:8px;font-weight:600}
#repairs .isReady{background:#e0f5eb;color:#12664c}
#repairs .repairLate{color:#b63b27!important}
#repairs .repairEmpty{padding:40px 8px;text-align:center;color:#596a80}
#repairs .repairPagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px}
#repairs .repairPagination small{margin-right:auto;color:#596a80}
#repairs .repairGrid{display:grid;gap:10px 12px;margin:12px 0;align-items:start}
#repairs .repairGrid4{grid-template-columns:repeat(4,minmax(0,1fr))}
#repairs .repairGrid3{grid-template-columns:repeat(3,minmax(0,1fr))}
#repairs .repairGrid2{grid-template-columns:repeat(2,minmax(0,1fr))}
#repairs .repairField{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;color:#425169;font-size:12px}
#repairs .repairDetails{border-top:1px solid #e0e7f0;border-bottom:1px solid #e0e7f0;padding:10px 0;margin:12px 0}
#repairs summary{cursor:pointer;color:#34445a;font-weight:600;line-height:1.5}
#repairs .repairSectionTitle{margin:18px 0 8px}
#repairs .repairLinesHead,#repairs .repairLine{display:grid;grid-template-columns:minmax(160px,1fr) 130px 130px 36px;gap:8px;align-items:center;margin:7px 0}
#repairs .repairLinesHead{font-size:11px;color:#536177}
#repairs .repairLine button{padding:6px;width:36px}
#repairs .repairMobileLabel{display:none}
#repairs .repairSimpleTotal{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;font-size:13px;color:#536177}
#repairs .repairSimpleTotal b{font-size:20px;color:#182434}
#repairs .repairApproval{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr);align-items:center;gap:10px;background:#f0f6ff;border:1px solid #dbe8fa;padding:12px;border-radius:10px;margin:12px 0}
#repairs .repairApproval>label:first-child{display:flex;align-items:center;gap:8px;font-size:12px;color:#34445a}
#repairs .repairApproval small{grid-column:1/-1;color:#426080;font-size:12px}
#repairs .repairCheck{display:flex;gap:8px;align-items:center;min-height:60px;font-size:12px}
#repairs .repairSaveBar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5ebf2;padding-top:14px;margin-top:12px}
#repairs .repairSaveBar button{min-width:190px}
#repairs .repairAmounts{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#596a80}
#repairs .repairAmounts b{display:block;font-size:17px;color:#182434}
#repairs .repairPaymentList>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5ebf2;padding:9px 0;font-size:12px;overflow-wrap:anywhere}
#repairs .repairPaymentList b{white-space:nowrap}
#repairs .repairHistory details{margin-top:10px;font-size:12px}
#repairs .repairHistory pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafd;border-radius:8px;padding:12px;font-size:11px;max-height:280px;overflow:auto}
#repairs .repairNotice,#repairs .repairError{padding:12px;border-radius:10px;background:#fff5e7;color:#80531f;font-size:13px;margin:10px 0}
#repairs .repairError{background:#fff0f0;color:#ae2836;border:1px solid #f3c2ca}
#repairs #repairPrintDialog{width:min(960px,96vw);height:92dvh;max-height:92dvh;padding:16px;border:1px solid #d7e0eb;border-radius:18px;background:white;color:#182434}
#repairs #repairPrintDialog::backdrop{background:rgba(19,34,52,.35);backdrop-filter:blur(5px)}
#repairs .repairPrintHead{display:flex;justify-content:space-between;align-items:center;gap:12px;height:44px;margin-bottom:10px}
#repairs #repairPrintDialog iframe{border:0;width:100%;height:calc(100% - 54px);background:white}
#repairs button:disabled{opacity:.55;cursor:not-allowed}
#repairs fieldset:disabled input,#repairs fieldset:disabled textarea,#repairs fieldset:disabled select{color:#34445a;opacity:1;-webkit-text-fill-color:#34445a}
@media(max-width:1150px){
  #repairs .repairGrid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  #repairs .repairGrid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  #repairs .repairLinesHead,#repairs .repairLine{grid-template-columns:minmax(100px,1fr) 110px 110px 36px;gap:7px}
}
@media(max-width:650px){
  #repairs .repairPanel{padding:13px}
  #repairs .repairHead{align-items:stretch}
  #repairs .repairToolbar{grid-template-columns:1fr auto}
  #repairs #repairSearch{grid-column:1/-1}
  #repairs .repairGrid2,#repairs .repairGrid3,#repairs .repairGrid4{grid-template-columns:1fr}
  #repairs .repairApproval{grid-template-columns:1fr}
  #repairs .repairOrder{grid-template-columns:1fr auto;gap:10px}
  #repairs .repairOrderDate{grid-column:1;grid-row:2;font-size:12px}
  #repairs .repairOrderEnd{grid-column:2;grid-row:1/3}
  #repairs .repairLinesHead{display:none}
  #repairs .repairLine{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;padding:10px;background:#f1f6fd;border-radius:10px;gap:7px;align-items:end}
  #repairs .repairLine>.repairField:first-child{grid-column:1/-1}
  #repairs .repairMobileLabel{display:block}
  #repairs .repairLine button{grid-column:3;grid-row:2;justify-self:end}
  #repairs .repairSaveBar{flex-direction:column;align-items:stretch}
  #repairs .repairCounts{gap:12px}
}
#repairs .repairBadge.status-preorder{background:#ffd43b;color:#443100;border:1px solid #d9a600}
#repairs .repairBadge.status-parts_received{background:#ff941f;color:#492300;border:1px solid #d46a00}
#repairs .repairBadge.status-received,#repairs .repairBadge.status-repair,#repairs .repairBadge.status-parts,#repairs .repairBadge.status-approval,#repairs .repairBadge.status-diagnostics{background:#d82c46;color:#fff;border:1px solid #b01d34}
#repairs .repairBadge.status-ready{background:#16834d;color:#fff;border:1px solid #106b3d}
#repairs .repairBadge.status-issued{background:#1769db;color:#fff;border:1px solid #1055b6}
