.metrics { grid-template-columns: repeat(4, 1fr); }
.metric-icon.red { color: #c34252; background: #fff0f1; }
.generator-card { margin-bottom: 32px; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(115deg, #10203d, #173564); color: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.generator-copy { display: flex; align-items: center; gap: 14px; }
.generator-copy h2 { font-size: 17px; }
.generator-copy p { margin: 4px 0 0; color: #b9c7dd; font-size: 11px; }
.generator-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 12px; background: #ffffff17; font-size: 22px; }
#batchForm { display: flex; align-items: end; gap: 10px; }
#batchForm label { display: grid; gap: 5px; color: #b9c7dd; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#batchForm input { width: 92px; padding: 9px 10px; border: 1px solid #ffffff24; border-radius: 8px; color: #fff; background: #ffffff12; outline: none; }
#batchForm #prefix { width: 72px; text-transform: uppercase; }
.inventory-heading { align-items: end; }
.filter-tabs { display: flex; gap: 5px; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.filter-tabs button { border: 0; padding: 7px 12px; border-radius: 8px; color: #69758a; background: transparent; font-size: 11px; font-weight: 700; }
.filter-tabs button:hover, .filter-tabs button.active { color: var(--blue); background: #eaf2ff; }
.code-list-head, .code-row { display: grid; grid-template-columns: 28px 1.1fr .7fr 1.2fr .7fr 140px; align-items: center; gap: 12px; }
.code-list-head { padding: 0 15px 8px; color: #8994a7; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.code-list { display: grid; gap: 7px; }
.code-row { padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: .15s ease; }
.code-row:hover { border-color: #cdd8e9; box-shadow: 0 7px 20px #1f2d4e0b; }
.code-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); }
.code-identity strong, .code-identity small { display: block; }
.code-identity strong { font: 800 12px ui-monospace, monospace; }
.code-identity small { margin-top: 3px; max-width: 230px; overflow: hidden; color: #8994a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.code-status { justify-self: start; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.code-status.available { color: #19724f; background: #e8f8f0; }
.code-status.assigned { color: #155dbb; background: #eaf2ff; }
.code-status.canceled { color: #a43949; background: #fff0f1; }
.assigned-name, .created-date { overflow: hidden; color: #58667d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-action { border: 0; padding: 6px 7px; border-radius: 7px; color: #53627a; background: #f0f3f7; font-size: 9px; font-weight: 700; text-decoration: none; }
.row-action.model-3d { color: #6842b7; background: #f1ebff; }
.row-action.cancel { color: #aa3647; background: #fff0f1; }
.row-action.delete { color: #aa3647; background: #fff0f1; }
@media (max-width: 1000px) {
  .generator-card { align-items: stretch; flex-direction: column; }
  #batchForm { flex-wrap: wrap; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .code-list-head { display: none; }
  .code-row { grid-template-columns: 25px 1fr auto; }
  .code-row > :nth-child(4), .code-row > :nth-child(5) { grid-column: 2/-1; }
  .row-actions { grid-column: 2/-1; justify-content: flex-start; }
  #batchForm label { flex: 1; }
  #batchForm input { width: 100%; }
  #batchForm .button { width: 100%; }
}
