/* Inventory remains one workspace. Supplier returns are a focused section,
   with sourcing and purchase reviews available as secondary disclosures. */
#inventory .gc-inv-tabs {
  display:flex;
  flex-wrap:nowrap;
  gap:5px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
#inventory .gc-inv-tabs .gc-inv-tab {flex:0 0 auto;white-space:nowrap}
#inventory .gc-inv-table {min-width:1150px}
/* Balance the nine Parts columns across wide workspaces. The Part column uses
   the remaining third; narrower windows retain readable fixed data columns
   and scroll inside the card. */
#inventory .gc-inv-stock-card {width:100%;max-width:none;min-width:0}
#inventory .gc-inv-stock-card .gc-inv-table {width:100%;min-width:1260px;table-layout:fixed}
#inventory .gc-inv-stock-card .gc-inv-table th,
#inventory .gc-inv-stock-card .gc-inv-table td {padding-inline:8px}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(1) {width:auto}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(2) {width:13%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(3) {width:10%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(4) {width:7%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(5) {width:9%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(6) {width:7%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(7) {width:7%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(8) {width:7%}
#inventory .gc-inv-stock-card .gc-inv-table th:nth-child(9) {width:7%}
@media (max-width:1700px) {
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(2) {width:195px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(3) {width:160px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(4) {width:95px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(5) {width:130px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(6) {width:85px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(7) {width:85px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(8) {width:105px}
  #inventory .gc-inv-stock-card .gc-inv-table th:nth-child(9) {width:110px}
}
#inventory .gc-receive-scan-hint {margin:8px 0 0;color:#9bc7ea;font-weight:700}
#inventory .gc-receive-check {display:inline-flex;align-items:center;margin-left:6px;padding:3px 8px;border-radius:999px;background:#103e35;color:#7ce0b5;font-size:11px;font-weight:800;white-space:nowrap}
#inventory .gc-receive-completed {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;border:1px solid #24614d;border-radius:10px;background:#0d2d29;color:#d5f5e8}
#inventory .gc-receive-completed strong {margin-right:4px}
#inventory .gc-receive-completed span {padding:4px 8px;border-radius:8px;background:#174438;font-size:12px}
#inventory .gc-receive-completed b {color:#7ce0b5}
#inventory .gc-inv-table .gc-inv-part-link {
  display:block;
  max-width:100%;
  padding:2px 0;
  border:0;
  background:none;
  color:var(--blue,#0b65c8);
  font:inherit;
  font-weight:800;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  overflow-wrap:anywhere;
}
#inventory .gc-inv-table .gc-inv-part-link:hover {text-decoration:underline;text-underline-offset:3px}
#inventory .gc-inv-table .gc-inv-part-link:focus-visible {outline:2px solid #58b5f5;outline-offset:3px;border-radius:3px}
#inventory .gc-inv-row-actions {justify-content:flex-start}
#inventory .gc-inv-row-actions .gc-inv-edit {white-space:nowrap}
dialog.gc-inv-editor {max-height:min(90dvh,900px);overflow-y:auto}
.gc-inv-editor .gc-inv-editor-tools {
  display:grid;
  gap:10px;
  margin:0 0 18px;
  padding:13px 15px;
  border:1px solid var(--line,#dbe4ec);
  border-radius:11px;
  background:var(--v1-soft,#f5f9fd);
}
.gc-inv-editor .gc-inv-editor-tools>span {color:var(--muted,#607286);font-size:.71rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.gc-inv-editor .gc-inv-editor-tools>div {display:flex;flex-wrap:wrap;gap:8px}
.gc-inv-editor .gc-inv-editor-tools button {min-height:38px;padding:8px 12px;white-space:nowrap}
.gc-inv-editor .gc-inv-editor-tools .gc-inv-damage-action:not(:disabled) {color:#b54444;border-color:#dbaaab}
.gc-inv-editor .gc-inv-editor-section-title {margin:0 0 13px;padding-top:16px;border-top:1px solid var(--line,#dbe4ec)}
.gc-inv-editor .gc-inv-editor-section-title h3 {margin:0;font-size:1rem}
.gc-inv-editor .gc-inv-editor-section-title p {margin:3px 0 0;color:var(--muted,#607286);font-size:.82rem}
.gc-inv-editor .gc-inv-readonly-detail {display:grid;gap:8px;margin:0 0 16px}
.gc-inv-editor .gc-inv-readonly-detail p {display:grid;gap:3px;margin:0;padding:10px 12px;border:1px solid var(--line,#dbe4ec);border-radius:9px}
.gc-inv-editor .gc-inv-readonly-detail strong {color:var(--muted,#607286);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}
.gc-inv-editor .gc-inv-readonly-detail span {overflow-wrap:anywhere}
html[data-theme="dark"] #inventory .gc-inv-table .gc-inv-part-link {color:#8ac9ff}
html[data-theme="dark"] .gc-inv-editor .gc-inv-editor-tools .gc-inv-damage-action:not(:disabled) {color:#ff9d9d;border-color:#91585c}
#inventory #gc-inventory-returns {padding:20px 22px}
#inventory .gc-rma-head {
  margin-bottom:17px;
  padding-bottom:15px;
  border-bottom:1px solid var(--inv-line,#dbe4ec);
}
#inventory .gc-rma-head h2 {font-size:1.35rem;line-height:1.15}
#inventory .gc-rma-head .subtle {max-width:68ch;line-height:1.45}
#inventory .gc-rma-subhead {align-items:center;gap:16px;margin:0 0 13px}
#inventory .gc-rma-subhead h2 {font-size:1.05rem}
#inventory .gc-rma-subhead .subtle {margin-top:4px;line-height:1.4}
#inventory .gc-rma-subhead .primary-button {flex:0 0 auto;min-height:40px}
#inventory .gc-rma-table th {font-size:.69rem;letter-spacing:.07em}
#inventory .gc-rma-table td {overflow-wrap:anywhere}
#inventory .gc-rma-extra-sections {display:grid;gap:10px;margin-top:23px}
#inventory .gc-rma-extra {
  min-width:0;
  border:1px solid var(--inv-line,#dbe4ec);
  border-radius:12px;
  background:var(--inv-surface,#fff);
  overflow:hidden;
}
#inventory .gc-rma-extra>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  color:var(--inv-ink,#17324d);
  font-weight:850;
  cursor:pointer;
  list-style:none;
}
#inventory .gc-rma-extra>summary::-webkit-details-marker {display:none}
#inventory .gc-rma-extra>summary::after {content:"";margin-left:auto;color:#6db9de}
#inventory .gc-rma-extra[open]>summary::after {transform:rotate(180deg)}
#inventory .gc-rma-extra>summary span {margin-left:auto;color:var(--inv-muted,#607286);font-size:.75rem;font-weight:600}
#inventory .gc-rma-extra>summary:focus-visible {outline:2px solid #65c9f5;outline-offset:-2px}
#inventory .gc-rma-extra-body {padding:17px;border-top:1px solid var(--inv-line,#dbe4ec)}
#inventory .gc-rma-extra-body .gc-rma-subhead {margin-bottom:11px}

.gc-rma-dialog.gc-rma-dialog {
  max-height:min(90dvh,900px);
  overflow-y:auto;
  border:1px solid #d5e1eb;
  background:#fff;
  color:#17324d;
}
.gc-rma-dialog .gc-rma-form {padding:24px;gap:14px 16px}
.gc-rma-dialog .gc-rma-dialog-head {padding-bottom:16px;border-bottom:1px solid #dce6ef}
.gc-rma-dialog .gc-rma-dialog-head .eyebrow {margin-bottom:6px;color:#157d96}
.gc-rma-dialog .gc-rma-dialog-head h2 {font-size:1.32rem;line-height:1.2}
.gc-rma-dialog .gc-rma-dialog-head p:last-child {margin:7px 0 0;color:#5e7285;font-size:.86rem;line-height:1.48}
.gc-rma-dialog .gc-rma-form label {gap:7px;color:#3f5870;font-size:.78rem;font-weight:800;line-height:1.4}
.gc-rma-dialog .gc-rma-form :is(input,select,textarea) {
  min-height:44px;
  padding:10px 12px;
  border:1px solid #c9d9e5;
  border-radius:9px;
  background:#f9fbfd;
  color:#17324d;
  font:inherit;
  font-weight:550;
}
.gc-rma-dialog .gc-rma-form textarea {min-height:88px;resize:vertical}
.gc-rma-dialog .gc-rma-form :is(input,select,textarea):focus-visible {outline:2px solid #48ade3;outline-offset:1px}
.gc-rma-dialog .gc-rma-form-actions {padding-top:14px;margin-top:2px;border-top:1px solid #dce6ef}
.gc-rma-dialog .gc-rma-form-actions button {min-height:42px;padding-inline:18px}
html[data-theme="dark"] .gc-rma-dialog.gc-rma-dialog {border-color:#344b60;background:#111d2a;color:#edf4fb}
html[data-theme="dark"] .gc-rma-dialog .gc-rma-dialog-head,
html[data-theme="dark"] .gc-rma-dialog .gc-rma-form-actions {border-color:#344b60}
html[data-theme="dark"] .gc-rma-dialog .gc-rma-dialog-head p:last-child {color:#aec0d0}
html[data-theme="dark"] .gc-rma-dialog .gc-rma-form label {color:#c2d4e5}
html[data-theme="dark"] .gc-rma-dialog .gc-rma-form :is(input,select,textarea) {background:#0c1824;border-color:#385069;color:#edf4fb}
@media (max-width:700px) {
  .gc-inv-editor .gc-inv-editor-tools>div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .gc-inv-editor .gc-inv-editor-tools button {white-space:normal}
  #inventory #gc-inventory-returns {padding:15px}
  #inventory .gc-rma-subhead {align-items:flex-start;flex-direction:column}
  #inventory .gc-rma-subhead .primary-button {width:100%}
  #inventory .gc-rma-extra>summary {align-items:flex-start;flex-direction:column;gap:3px}
  #inventory .gc-rma-extra>summary span {margin-left:0}
  #inventory .gc-rma-extra>summary::after {position:absolute;right:16px}
  #inventory .gc-rma-extra>summary {position:relative;padding-right:38px}
  .gc-rma-dialog .gc-rma-form {padding:18px}
  .gc-rma-dialog .gc-rma-form-actions {display:grid;grid-template-columns:1fr 1fr}
}
