.catalog-page { --catalog-accent:#ed8306; }
.catalog-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px; }
.catalog-summary .card { padding:14px 18px;box-shadow:none;margin:0; }
.catalog-summary span { font-size:14px;color:#666; }
.catalog-summary strong { display:block;font-size:26px;color:var(--catalog-accent);margin-top:6px; }
.catalog-summary small { font-size:14px;font-weight:400;margin-left:6px; }
.catalog-card { padding:14px;box-shadow:none;min-width:0; }
.catalog-toolbar { display:flex;gap:10px;flex-wrap:wrap;align-items:center; }
.catalog-toolbar input[type=search] { flex:1 1 230px;width:auto;min-width:180px; }
.catalog-toolbar select { flex:0 0 120px;width:120px; }
.catalog-toolbar input,.catalog-toolbar select { padding:10px 12px;font-size:14px; }
.catalog-toolbar button { padding:10px 14px;white-space:nowrap;font-size:14px; }
.catalog-note { color:#777;font-size:13px;line-height:1.7;margin:14px 0; }
.catalog-scroll { overflow-x:auto;scrollbar-width:thin; }
.catalog-scroll::-webkit-scrollbar { height:6px; }
.catalog-scroll::-webkit-scrollbar-thumb { background:#bfc3c9;border-radius:3px; }
.catalog-table { width:100%;min-width:0;table-layout:fixed; }
.catalog-table th { font-size:11px;background:#f8f9fa;color:#555;white-space:normal;letter-spacing:0; }
.catalog-table th,.catalog-table td { padding:12px 8px;overflow-wrap:anywhere; }
.catalog-table td { font-size:12px; }
.catalog-table th:nth-child(1) { width:14%; }
.catalog-table th:nth-child(2) { width:17%; }
.catalog-table th:nth-child(3) { width:8%; }
.catalog-table th:nth-child(4) { width:10%; }
.catalog-table th:nth-child(5) { width:15%; }
.catalog-table th:nth-child(n+6) { width:12%;text-align:right; }
.catalog-table .catalog-stock { color:var(--catalog-accent);font-size:15px;font-weight:600; }
.catalog-table .catalog-money { text-align:right;font-variant-numeric:tabular-nums; }
.catalog-missing { color:var(--catalog-accent); }
.catalog-table .catalog-model-cell { position:relative;padding:0; }
.catalog-model { position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;height:100%;padding:10px 8px;background:none;border:0;border-radius:0;text-align:left;font-weight:700;font-size:14px;color:#21252a;cursor:pointer;overflow-wrap:anywhere; }
.catalog-model:hover { color:#c36900;background:#fff4e5; }
.catalog-model:focus-visible { outline:2px solid #ed8306;outline-offset:-2px;background:#fff4e5; }
.catalog-model small { font-weight:400; }
.catalog-table tbody td { height:56px; }
.catalog-details table { min-width:0;table-layout:fixed; }
.catalog-details th,.catalog-details td { padding:10px 8px;overflow-wrap:anywhere; }
.catalog-details td input { width:100%;min-width:0;padding:8px; }
.catalog-table small,.catalog-scroll td small { display:block;color:#888;font-size:11px;margin-top:3px; }
.catalog-pager { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;color:#777;font-size:13px; }
.catalog-pager .pagination { border:0;padding:8px 0; }
.catalog-details { margin:18px 0;background:#fff;border:1px solid #e4e6e9;border-radius:12px;padding:16px; }
.catalog-details summary { cursor:pointer;font-weight:600; }
.catalog-details summary span { margin-left:12px;color:#888;font-size:12px;font-weight:400; }
.catalog-details select { margin-top:14px; }
.catalog-import-stats { display:flex;gap:24px;margin:16px 0; }
.catalog-import-stats b { color:#d87600;font-size:22px;margin-left:4px; }
.catalog-warning { background:#fff8ed;padding:12px;color:#8a520b;font-size:13px;line-height:1.7; }
.catalog-warning:empty { display:none; }
.catalog-ack { display:flex;align-items:center;gap:8px; }
.catalog-ack input { width:auto; }
.catalog-edit { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.catalog-edit label { display:grid;gap:6px;font-size:13px; }
.catalog-edit label input,.catalog-edit label select { width:100%;padding:10px; }
.catalog-edit p { grid-column:1/-1; }
.catalog-edit [data-error] { color:#b42318; }
.status-switch { display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0;background:transparent;border:0;cursor:pointer;color:#bd3b38;font-size:12px;white-space:nowrap; }
.status-switch .switch-track { display:block;position:relative;flex:0 0 38px;width:38px;height:22px;border-radius:20px;background:#d64b48;transition:background .18s; }
.status-switch .switch-track > span { position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .18s; }
.status-switch[aria-checked=true] { color:#16834c; }
.status-switch[aria-checked=true] .switch-track { background:#1c9b60; }
.status-switch[aria-checked=true] .switch-track > span { transform:translateX(16px); }
.status-switch:focus-visible { outline:2px solid #ed8306;outline-offset:4px;border-radius:5px; }
.status-switch:disabled { cursor:wait;opacity:.55; }
.catalog-status-field { display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:13px; }
.entity-danger-zone { margin-top:24px;padding-top:18px;border-top:1px solid #ead8d8;display:flex;align-items:center;justify-content:space-between;gap:16px; }
.entity-danger-zone strong { color:#b93835; }
.entity-danger-zone p { color:#777;font-size:12px;line-height:1.7;margin:6px 0; }
.warranty-tabs { display:flex;gap:10px;margin-bottom:20px; }
.warranty-photo-row { display:flex;gap:12px;flex-wrap:wrap;margin:16px 0; }
.warranty-image img { display:block;max-width:100%;max-height:70vh;margin:auto;object-fit:contain; }
.warranty-history { padding:16px;border:1px solid #e4e6e9;border-radius:12px;margin:12px 0; }
.warranty-history > span { float:right;color:#d87a00; }
.warranty-history p,.warranty-history small { font-size:13px;color:#666;line-height:1.7; }
#allWarrantyRows small { display:block;color:#888;font-size:11px; }
@media(prefers-reduced-motion:reduce) { .status-switch .switch-track,.status-switch .switch-track > span { transition:none; } }
@media(max-width:900px) { .catalog-summary { gap:8px; }.catalog-summary .card {padding:14px;}.catalog-pager {flex-wrap:wrap;} }

/* Keep operational lists readable alongside the compact catalog. */
@media(min-width:761px) {
  .main .table-card table { min-width:0;table-layout:fixed; }
  .main .table-card th,.main .table-card td { padding:12px 8px;overflow-wrap:anywhere;font-size:12px; }
  .main .table-card th { font-size:11px;letter-spacing:0; }
  .main .table-card td.actions { display:table-cell; }
  .main .table-card .small-btn,.main .table-card .danger { padding:0 10px;min-height:34px;white-space:nowrap;margin:2px; }
  .main .table-card .status-ok,.main .table-card .status-warn,.main .table-card .status-bad { white-space:nowrap; }
  .main table:has(#orderTableBody) th:nth-child(1) { width:17%; }
  .main table:has(#orderTableBody) th:nth-child(2) { width:13%; }
  .main table:has(#orderTableBody) th:nth-child(3) { width:16%; }
  .main table:has(#orderTableBody) th:nth-child(4) { width:15%; }
  .main table:has(#orderTableBody) th:nth-child(5) { width:6%; }
  .main table:has(#orderTableBody) th:nth-child(6) { width:13%; }
  .main table:has(#orderTableBody) th:nth-child(7) { width:8%; }
  .main table:has(#orderTableBody) th:nth-child(8) { width:12%; }
}
.catalog-view-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.catalog-page[data-view="prices"] #catalogSummary,.catalog-page[data-view="prices"] .catalog-details{display:none}.catalog-page[data-view="prices"] .catalog-table tr>:nth-child(3){display:none}.catalog-page[data-view="stock"] .catalog-table tr>:nth-child(n+6){display:none}.catalog-page[data-view="stock"] .catalog-details:first-of-type{display:none}.catalog-page[data-view="policies"] #catalogSummary,.catalog-page[data-view="policies"]>.section-head,.catalog-page[data-view="policies"]>.catalog-card,.catalog-page[data-view="policies"] .catalog-details:last-of-type{display:none}.catalog-page>.section-head{display:none}
