.catalog-page { color: #101617; min-width: 0; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.catalog-heading h2 { font-size: 23px; margin: 0; }
.catalog-commands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.catalog-page button,.catalog-dialog button,.catalog-page select,.catalog-dialog input,.catalog-dialog select,.catalog-dialog textarea { font-family: Arial,sans-serif; letter-spacing: 0; }
.catalog-primary,.catalog-commands .ghost,.catalog-export > summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 13px; border-radius: 4px; border: 1px solid #c59b40; background: #bb9134; color: #101617; font-size: 12px; font-weight: 600; cursor: pointer; }
.catalog-primary:hover { background: #d0a547; }
.catalog-primary:disabled { opacity: .6; cursor: wait; }
.catalog-commands .ghost,.catalog-export > summary { background: #fff; border-color: #ded8cb; }
.catalog-page svg,.catalog-dialog svg { width: 17px; height: 17px; }
.catalog-export { position: relative; }
.catalog-export > summary { list-style: none; }
.catalog-filterbar { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(0,5fr); gap: 10px; align-items: end; margin-top: 16px; margin-bottom: 14px; }
.catalog-filterbar > .search-control { min-height: 36px; }
.catalog-filters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)) auto auto; gap: 8px; align-items: end; }
.catalog-page.products .catalog-filters { grid-template-columns: repeat(7,minmax(0,1fr)) auto auto; }
.catalog-filters label { flex: 1 1 120px; font-size: 10px; color: #566170; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catalog-form-grid label > span { display: block; }
.catalog-filters select { height: 36px; padding: 6px 8px; width: 100%; background: #fff; font-size: 11px; border: 1px solid #dee1e6; border-radius: 4px; }
.catalog-filters > button { height: 36px; padding: 6px 10px; font-size: 11px; }
.catalog-metrics { display: grid; gap: 10px; margin-bottom: 16px; }
.catalog-metrics.designs { grid-template-columns: repeat(5,minmax(0,1fr)); }
.catalog-metrics.products { grid-template-columns: repeat(6,minmax(0,1fr)); }
.catalog-metric { display: flex; align-items: center; gap: 10px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 13px 12px; background: #fff; min-width: 0; }
.catalog-metric > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 6px; }
.catalog-metric svg { width: 25px; height: 25px; }
.catalog-metric .gold { color: #a57912; background: #fbf5e9; }
.catalog-metric .green { color: #14884c; background: #edf8f1; }
.catalog-metric .wine { color: #6c123d; background: #f8edf2; }
.catalog-metric .red { color: #bf2343; background: #fceff1; }
.catalog-metric > div { min-width: 0; }
.catalog-metric strong { display: block; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-metric small { display: block; color: #647080; font-size: 11px; margin-top: 3px; }
.catalog-metrics.products .catalog-metric:last-child > span { width: 34px; height: 38px; }
.catalog-metrics.products .catalog-metric:last-child strong { font-size: 16px; white-space: nowrap; }
.catalog-tabs { display: flex; overflow-x: auto; gap: 6px; border-bottom: 1px solid #dee1e6; margin-bottom: 12px; }
.catalog-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 15px; white-space: nowrap; font-size: 12px; color: #566170; }
.catalog-tabs button[aria-selected="true"] { color: #785312; border-bottom-color: #bb9134; font-weight: 600; }
.stock-list-toolbar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #dee1e6; margin-bottom: 12px; min-width: 0; }
.stock-list-toolbar > .catalog-tabs { flex: 1; min-width: 0; margin-bottom: 0; border-bottom: 0; }
.stock-list-toolbar > .catalog-commands { flex: 0 0 auto; margin-left: auto; padding: 4px 0 7px; }
.stock-list-toolbar > .material-summary { flex: 1; min-width: 0; border-bottom: 0; margin-bottom: 0; }
.stock-list-toolbar .catalog-export { overflow: visible; }
@media (max-width: 500px) {
  .stock-list-toolbar { gap: 8px; }
  .stock-list-toolbar .catalog-export > summary { padding: 7px 9px; }
  .material-list-toolbar { flex-wrap: wrap; }
  .material-list-toolbar > .material-summary { gap: 12px; font-size: 11px; }
}
.catalog-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.catalog-table th { background: #f5f6f7; color: #364252; font-size: 10px; white-space: nowrap; padding: 10px; text-align: left; }
.catalog-table td { border-bottom: 1px solid #eef0f2; padding: 9px 10px; vertical-align: middle; max-width: 240px; overflow-wrap: anywhere; }
.catalog-table tbody tr:hover { background: #fafbfc; }
.catalog-table td > small { display: block; font-size: 10px; color: #7c8795; margin-top: 3px; }
.catalog-link { color: #17252d; font-size: 11px; background: transparent; padding: 0; border: 0; text-align: left; }
.catalog-link:hover { color: #8c6313; text-decoration: underline; }
.catalog-thumb { width: 38px; height: 44px; object-fit: contain; display: block; border-radius: 4px; background: #f6f6f5; }
.catalog-thumb.placeholder { display: grid; place-items: center; color: #8b9299; }
.catalog-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; text-transform: capitalize; font-size: 10px; white-space: nowrap; }
.catalog-badge.good { color: #087b42; background: #e7f5ed; }
.catalog-badge.warm { color: #946315; background: #fcf1dc; }
.catalog-badge.wine { color: #7a1941; background: #f8eaf0; }
.catalog-badge.neutral,.catalog-badge.muted { color: #637080; background: #edf0f3; }
.featured-label { display: flex !important; align-items: center; gap: 3px; color: #a57912 !important; }
.featured-label svg { width: 11px; height: 11px; }
.stock-alert { color: #bb1d3d; font-weight: 600; }
.catalog-empty { text-align: center; padding: 24px 12px !important; color: #647080; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; font-size: 11px; color: #647080; }
.catalog-pagination > div { display: flex; align-items: center; gap: 7px; }
.catalog-pagination select { height: 30px; padding: 3px 6px; font-size: 11px; }
.catalog-dialog { width: min(660px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid #e5e7eb; border-radius: 6px; color: #101617; overflow: auto; box-shadow: 0 14px 50px #10161722; }
.catalog-dialog::backdrop { background: #10161766; }
body:has(.catalog-dialog[open]) { overflow: hidden; }
.catalog-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.catalog-dialog h2 { font-size: 19px; margin: 0; }
.catalog-dialog .icon-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 5px; background: transparent; border: 0; }
.catalog-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(470px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 6px 0 0 6px; padding: 20px; }
.catalog-drawer > header { position: sticky; top: -20px; background: #fff; z-index: 2; padding: 16px 0; margin-top: -16px; border-bottom: 1px solid #eef0f2; }
.catalog-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 12px; }
.catalog-form-grid label,.catalog-import label { display: flex; flex-direction: column; gap: 5px; color: #303b47; font: 500 11px/1.4 Arial,sans-serif; min-width: 0; }
.catalog-form-grid input,.catalog-form-grid select,.catalog-form-grid textarea { width: 100%; min-width: 0; height: 35px; border: 1px solid #dce1e7; border-radius: 4px; padding: 7px 9px; color: #17252d; background: #fff; font-size: 12px; }
.catalog-form-grid input:focus,.catalog-form-grid select:focus,.catalog-form-grid textarea:focus { outline: 2px solid #bb9134; outline-offset: 1px; }
.catalog-form-grid input[readonly] { background: #f5f6f7; color: #647080; }
.catalog-form-grid textarea { height: auto; resize: vertical; min-height: 62px; }
.catalog-form-grid .search-control input { height: 22px; padding: 0; border: 0; background: transparent; box-shadow: none; outline: none; }
.catalog-full { grid-column: 1 / -1; }
.catalog-form-grid h3 { font-size: 12px; margin: 7px 0 0; padding-bottom: 7px; border-bottom: 1px solid #e5e7eb; }
.catalog-form-grid .catalog-check { flex-direction: row; align-items: center; align-self: end; min-height: 35px; }
.catalog-check input { width: 16px; height: 16px; accent-color: #a57912; }
.catalog-design-meta { font: 11px/1.5 Arial,sans-serif; color: #647080; }
.catalog-image-field { display: grid; gap: 8px; }
.catalog-image-field > label { font-size: 11px; }
.catalog-image-preview { border: 1px dashed #d3d8df; background: #fafbfc; min-height: 100px; display: grid; place-items: center; }
.catalog-image-preview img { width: 100%; max-height: 200px; object-fit: contain; }
.catalog-image-field input { height: auto; font-size: 11px; }
.catalog-image-field .text-link { justify-self: start; font-size: 11px; }
.catalog-dialog footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #e5e7eb; padding-top: 15px; margin-top: 20px; }
.catalog-drawer form > footer { position: sticky; bottom: -20px; background: #fff; padding-bottom: 15px; z-index: 2; }
.catalog-detail-image { display: block; width: 100%; max-height: 330px; object-fit: contain; margin-bottom: 16px; }
.catalog-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.catalog-details dt { font-size: 11px; color: #647080; margin-bottom: 4px; }
.catalog-details dd { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.catalog-import { display: grid; gap: 16px; font-size: 12px; }
.catalog-nav > svg { margin-left: auto; width: 15px; height: 15px; }
.catalog-current { color: #e8c263 !important; }
.workspace .catalog-nav + div .nav-secondary { min-height: 36px; padding-left: 30px; }
.workspace.menu-collapsed .catalog-nav > svg { display: none; }
@media (max-width: 1200px) { .catalog-metrics.designs,.catalog-metrics.products { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1050px) { .catalog-filterbar { grid-template-columns: minmax(0,1fr); }.catalog-filters,.catalog-page.products .catalog-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.catalog-filters > button { align-self: end; } }
@media (max-width: 700px) { .catalog-heading { align-items: flex-start; flex-direction: column; gap: 10px; }.catalog-heading h2 { font-size: 20px; }.catalog-metrics.designs,.catalog-metrics.products { grid-template-columns: repeat(2,minmax(0,1fr)); }.catalog-metric { padding: 10px; gap: 8px; }.catalog-metric strong { font-size: 17px; }.catalog-pagination { flex-wrap: wrap; }.catalog-filterbar > .search-control { flex-basis: 100%; }.catalog-form-grid input,.catalog-form-grid select,.catalog-form-grid textarea { font-size: 16px; }.catalog-form-grid .search-control input { font-size: 16px; }.catalog-tabs button { padding: 10px; }.catalog-commands { gap: 6px; } }
.stock-sections { margin-bottom: 12px; gap: 12px; }
.stock-sections button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stock-sections svg { width: 17px; height: 17px; }
.material-summary { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; color: #536172; }
.material-summary strong { color: #11181b; margin-left: 8px; }
.material-image-preview { width: 100%; height: 150px; object-fit: contain; margin-top: 8px; }
.material-detail-image { display: block; width: 100%; max-height: 260px; object-fit: contain; margin-bottom: 16px; }
.materials .catalog-filterbar { grid-template-columns: minmax(260px,1.5fr) minmax(0,2fr); }
.materials .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)) auto auto; }
.catalog-form-grid input[type="file"] { height: auto; }
@media (max-width: 850px) { .materials .catalog-filterbar { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 500px) { .materials .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 380px) { .catalog-form-grid { grid-template-columns: minmax(0,1fr); }.catalog-metric > span { width: 32px; height: 36px; }.catalog-dialog { padding: 14px; }.catalog-details { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) {
  .catalog-page .table-wrap,.catalog-dialog .table-wrap { overflow-x: auto; }
  .catalog-table { display: table; min-width: 1040px; border-spacing: 0; }
  .catalog-dialog .catalog-table { min-width: 560px; }
  .catalog-table thead { display: table-header-group; }
  .catalog-table tbody { display: table-row-group; }
  .catalog-table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .catalog-table th,.catalog-table td { display: table-cell; text-align: left; }
  .catalog-table td::before { display: none; }
}
@media (max-width: 380px) {
  .catalog-metrics.products .catalog-metric:last-child { gap: 6px; }
  .catalog-metrics.products .catalog-metric:last-child > span { width: 24px; }
  .catalog-metrics.products .catalog-metric:last-child strong { font-size: 14px; }
}
