/* COLORJET company parts: scoped additions using the existing native form/table language. */
.cj-company-parts .cp-list-tools,.cp-pagination,.cp-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.cj-company-parts label,.cj-company-parts-modal label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;min-width:0}
.cj-company-parts input,.cj-company-parts select,.cj-company-parts-modal input,.cj-company-parts-modal select,.cj-company-parts-modal textarea{box-sizing:border-box;min-width:0;max-width:100%;min-height:36px;border:1px solid #b9cce1;border-radius:4px;padding:7px 9px;font:inherit;color:#14365c;background:#fff}
.cj-company-parts button,.cj-company-parts-modal button{min-height:34px;border-radius:4px;border:1px solid #b9cce1;padding:7px 12px;font:inherit;cursor:pointer}
.cj-company-parts button:disabled,.cj-company-parts-modal button:disabled{cursor:not-allowed;opacity:.6}
.cj-company-parts :focus-visible,.cj-company-parts-modal :focus-visible{outline:2px solid #0b69a7;outline-offset:2px}
.cp-table-wrap{max-width:100%;min-width:0;overflow-x:auto;margin:8px 0}.cp-table-wrap table{width:100%;border-collapse:collapse}.cp-table-wrap th{background:#104778;color:#fff}.cp-table-wrap td,.cp-table-wrap th{padding:9px 10px;border:1px solid #bfd0e1;text-align:left;vertical-align:middle}.cp-table-wrap td{background:#fff;color:#183c63}.cp-table-wrap tr[hidden]{display:none}
.cp-table-wrap [data-cp-qty]{width:110px}.cp-muted{display:block;font-size:12px;line-height:1.5;color:#486580;margin-top:4px;font-weight:400}
.cp-status{display:inline-block;white-space:nowrap;padding:4px 8px;border-radius:4px;background:#eef3fa;color:#173b63;font-size:12px;font-weight:600}.cp-status[data-status=PendingApproval]{background:#fff3cf;color:#775200}.cp-status[data-status=Approved]{background:#e2f4e9;color:#165b32}.cp-status[data-status=Rejected]{background:#fbe8e8;color:#8c2222}.cp-status[data-status=Cancelled]{background:#edf0f4;color:#465568}
.cj-company-parts-modal .cj-modal-box{width:min(1040px,96vw);max-width:96vw;max-height:94vh}.cj-company-parts-modal .cj-modal-body{min-width:0;overflow:auto}.cj-company-parts-modal .cj-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cj-company-parts-modal .cj-full-row{grid-column:1/-1;min-width:0}
.cp-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cp-summary>div{border:1px solid #b9cce1;padding:10px;border-radius:5px;background:#fff}.cp-summary small{display:block;color:#486580;font-size:11px;text-transform:uppercase}.cp-summary strong{display:block;color:#163b65;margin-top:5px;overflow-wrap:anywhere}.cp-reason p{white-space:pre-wrap;margin:5px 0;line-height:1.5}.cp-picker{border:1px solid #b9cce1;border-radius:5px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.cp-picker legend{font-weight:700;color:#183c63}.cp-picker [role=status]{grid-column:1/-1;color:#8c2222;font-size:12px}
.cp-section-title{font-size:13px;background:#203e62;color:#fff;padding:8px 10px;margin:6px 0}.cp-history>div{padding:10px;border-bottom:1px solid #d4deeb}.cp-history time{float:right;color:#486580;font-size:12px}.cp-history p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.cp-pagination{justify-content:end;margin-top:12px;align-items:center}
@media(max-width:650px){.cj-company-parts-modal .cj-modal-box{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}.cj-company-parts-modal .cj-form-grid{grid-template-columns:1fr}.cp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-picker{grid-template-columns:1fr}.cp-history time{float:none;display:block;margin-top:4px}.cp-list-tools>label{flex:1;min-width:125px}.cp-list-tools>strong{width:100%}.cp-actions button{flex:1 1 145px}.cp-table-wrap table{min-width:600px}}
@media(prefers-reduced-motion:reduce){.cj-company-parts *,.cj-company-parts-modal *{animation:none!important;transition:none!important}}
