/* Collection, rental history and residents share a restrained editorial rhythm. */
.catalog-view { animation: catalog-enter .35s ease both; }
.catalog-view [hidden], .catalog-empty[hidden] { display: none !important; }
.catalog-heading { margin-bottom: 30px; }
.catalog-heading h1 { letter-spacing: -.065em; }
.catalog-heading-actions { display: flex; flex-shrink: 0; gap: 10px; align-items: center; }
.catalog-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 30px; }
.catalog-view .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.catalog-mini-stat { display: flex; align-items: flex-start; gap: 15px; }
.catalog-mini-stat > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.catalog-stat-icon { width: 43px; height: 43px; border-radius: 13px; background: #eef2e8; color: var(--forest); display: grid; place-items: center; flex-shrink: 0; }
.catalog-stat-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.catalog-mini-stat strong { font-size: 28px; line-height: 1.1; letter-spacing: -.045em; color: var(--ink); font-weight: 600; }
.catalog-stat-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.catalog-search { display: flex; align-items: center; gap: 10px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 0 14px; min-height: 43px; min-width: 250px; transition: border-color .2s, box-shadow .2s; }
.catalog-search:focus-within { border-color: #9bb29b; box-shadow: 0 0 0 3px #244d4009; }
.catalog-search input { border: 0; outline: 0; box-shadow: none; width: 100%; min-width: 0; font-size: 12px; color: var(--ink); background: transparent; padding: 12px 0; font-family: inherit; }
.catalog-search input::placeholder { color: #98a198; }
.catalog-filters { display: flex; align-items: center; gap: 10px; }
.catalog-select-wrap { display: flex; align-items: center; gap: 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; min-height: 43px; }
.catalog-select-wrap select { appearance: none; border: 0; outline: 0; font: inherit; font-size: 12px; color: var(--ink); padding: 11px 0; background: transparent; cursor: pointer; }
.catalog-select-wrap:focus-within { border-color: #9bb29b; }
.catalog-section-meta { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; padding: 8px; border-radius: 17px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product-card:hover { transform: translateY(-3px); border-color: #d3ddcf; box-shadow: 0 10px 28px #203e3508; }
.product-card-art { position: relative; display: flex; align-items: center; justify-content: center; height: 219px; border-radius: 12px; background: #f2f3ee; overflow: hidden; }
.product-card:nth-child(3n+2) .product-card-art { background: #eef1eb; }
.product-card:nth-child(3n+3) .product-card-art { background: #f3f0ea; }
.product-card-art img { width: 73%; height: 74%; object-fit: contain; transition: transform .45s; filter: drop-shadow(0 10px 8px #203e3512); }
.product-card:hover .product-card-art img { transform: translateY(-3px) scale(1.045); }
.product-card-art > .badge { position: absolute; top: 13px; left: 12px; z-index: 1; font-size: 9px; }
.product-card-art .badge.muted { background: #fff; }
.product-card-edit { position: absolute; top: 10px; right: 10px; z-index: 1; background: #ffffffc9 !important; border: 1px solid #fff !important; border-radius: 9px; width: 31px; height: 31px; padding: 0 !important; opacity: .7; }
.product-card:hover .product-card-edit, .product-card-edit:focus-visible { opacity: 1; }
.product-card-content { padding: 17px 13px 13px; }
.product-category { display: block; font-size: 9px; color: var(--muted); letter-spacing: .11em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.product-card-content h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; line-height: 1.35; }
.product-name-button { background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.product-name-button:hover { color: #557551; }
.product-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 21px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-rate { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -.025em; }
.product-rate > span { color: var(--muted); font-weight: 400; font-size: 10px; }
.product-stock { display: flex; flex-direction: column; gap: 3px; text-align: right; font-size: 9px; color: var(--muted); }
.product-stock strong { color: var(--forest); font-weight: 600; font-size: 12px; }
.product-stock strong span { color: var(--muted); font-weight: 400; }
.catalog-bottom-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 24px auto 0; color: var(--muted); font-size: 11px; }
.catalog-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.catalog-tab { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500; padding: 9px 12px; color: var(--muted); border-radius: 9px; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.catalog-tab:hover { color: var(--ink); background: #f6f7f2; }
.catalog-tab.active { background: #eef3e6; color: var(--forest); }
.catalog-tab span { display: inline-block; margin-left: 7px; font-size: 10px; opacity: .65; }
.catalog-table-panel { padding: 0; overflow: hidden; border-radius: 16px; }
.catalog-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.catalog-table-toolbar .catalog-search { min-width: 210px; max-width: 250px; min-height: 37px; background: #fafbf8; }
.catalog-table-toolbar .catalog-search input { padding: 10px 0; font-size: 11px; }
.catalog-data-table { width: 100%; border-collapse: collapse; }
.catalog-data-table th { white-space: nowrap; text-align: left; color: var(--muted); font-size: 10px; font-weight: 500; padding: 12px 18px; background: #fafbf8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-data-table td { font-size: 11px; padding: 20px 18px; vertical-align: middle; border-bottom: 1px solid #edf0e9; color: #52665b; }
.catalog-data-table tbody tr:last-child td { border-bottom: none; }
.catalog-data-table tbody tr { transition: background .2s; }
.catalog-data-table tbody tr:hover { background: #fbfcf8; }
.catalog-data-table td:first-child, .catalog-data-table th:first-child { padding-left: 23px; }
.catalog-data-table td:last-child, .catalog-data-table th:last-child { padding-right: 20px; }
.catalog-data-table td:last-child { width: 35px; }
.catalog-data-table strong { color: var(--ink); font-weight: 500; }
.catalog-data-table .badge { white-space: nowrap; font-size: 9px; }
.catalog-person { display: flex; align-items: center; gap: 11px; min-width: 145px; }
.catalog-person > div { display: flex; flex-direction: column; gap: 5px; }
.catalog-person strong { font-size: 12px; }
.catalog-person span:not(.avatar) { color: var(--muted); font-size: 10px; }
.catalog-avatar { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #edf1e3; font-size: 11px; color: var(--forest); font-weight: 600; flex-shrink: 0; }
.catalog-avatar.peach { background: #f4e8dd; color: #966f50; }
.catalog-avatar.sage { background: #e4eeea; color: #527568; }
.catalog-table-product { display: flex; align-items: center; gap: 9px; min-width: 125px; }
.catalog-product-thumbnail { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 9px; background: #f4f5ef; flex-shrink: 0; }
.catalog-product-thumbnail img { width: 80%; height: 82%; object-fit: contain; }
.catalog-product-thumbnail.large { width: 78px; height: 78px; border-radius: 15px; }
.catalog-building-name { display: block; max-width: 150px; line-height: 1.5; }
.catalog-cell-secondary { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.4; }
.catalog-tabular { font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.catalog-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 65px 20px; text-align: center; }
.catalog-empty h3 { margin: 15px 0 7px; font-size: 18px; color: var(--ink); letter-spacing: -.03em; }
.catalog-empty p { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.catalog-empty-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #edf2e5; color: var(--forest); }
.catalog-form { display: flex; flex-direction: column; gap: 20px; }
.catalog-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.catalog-field { display: flex; flex-direction: column; gap: 9px; margin: 0; min-width: 0; }
.catalog-field > span { font-size: 11px; color: #617367; font-weight: 500; }
.catalog-field input, .catalog-field select, .catalog-field textarea { min-width: 0; width: 100%; border: 1px solid #dfe5db; background: #fff; color: var(--ink); border-radius: 10px; padding: 12px 13px; outline: 0; font: inherit; font-size: 12px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.catalog-field input:focus, .catalog-field select:focus, .catalog-field textarea:focus { border-color: #94ad8d; box-shadow: 0 0 0 3px #244d4007; }
.catalog-field input::placeholder, .catalog-field textarea::placeholder { color: #a0aaa0; }
.catalog-field textarea { min-height: 90px; resize: vertical; }
.catalog-inventory-readonly { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 12px; background: #f4f6ef; }
.catalog-inventory-readonly > div { display: flex; flex-direction: column; gap: 8px; }
.catalog-inventory-readonly > div > span { font-size: 10px; color: var(--muted); }
.catalog-inventory-readonly strong { font-size: 24px; color: var(--ink); font-weight: 500; }
.catalog-inventory-readonly .button { grid-column: 1 / -1; justify-self: start; }
.catalog-form-image { background: #f2f4ed; border-radius: 16px; height: 176px; position: relative; display: grid; place-items: center; }
.catalog-form-image img { height: 130px; width: 75%; object-fit: contain; filter: drop-shadow(0 10px 6px #203e3510); }
.catalog-form-image span { position: absolute; bottom: 12px; right: 13px; color: #92a08f; font-size: 9px; }
.catalog-form-divider { display: flex; align-items: center; gap: 12px; margin: 5px 0 0; }
.catalog-form-divider span { font-size: 10px; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.catalog-form-divider::after { content: ''; height: 1px; width: 100%; background: var(--line); }
.catalog-form-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px; color: #73826e; background: #f3f6eb; border-radius: 11px; font-size: 10px; line-height: 1.65; }
.catalog-form-note svg { flex-shrink: 0; margin-top: 2px; }
.catalog-form-error { font-size: 12px; line-height: 1.5; color: #a6503d; margin: 0; }
.catalog-detail-art { height: 246px; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; background: #f3f4ee; }
.catalog-detail-art img { width: 75%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 8px #203e3510); }
.catalog-detail-art .badge { position: absolute; top: 16px; left: 16px; }
.catalog-detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.catalog-detail-metrics > div { display: flex; flex-direction: column; gap: 10px; }
.catalog-detail-metrics > div + div { padding-left: 23px; border-left: 1px solid var(--line); }
.catalog-detail-metrics span { font-size: 11px; color: var(--muted); }
.catalog-detail-metrics strong { font-size: 26px; color: var(--ink); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.catalog-detail-metrics small { font-size: 15px; color: var(--muted); }
.catalog-detail-section { padding-top: 26px; }
.catalog-detail-section h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 18px; }
.catalog-detail-copy { font-size: 12px; color: var(--muted); line-height: 1.8; white-space: pre-line; margin: 0; }
.catalog-detail-list { display: flex; flex-direction: column; gap: 17px; margin: 0; }
.catalog-detail-list > div { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.catalog-detail-list dt { color: var(--muted); }
.catalog-detail-list dd { color: var(--ink); text-align: right; margin: 0; max-width: 58%; word-break: break-word; }
.catalog-inline-rental { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.catalog-inline-rental > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.catalog-inline-rental strong { font-size: 12px; font-weight: 500; }
.catalog-inline-rental small { color: var(--muted); font-size: 10px; }
.catalog-rental-summary { display: flex; align-items: center; gap: 17px; padding-bottom: 3px; }
.catalog-rental-summary .eyebrow { font-size: 9px; }
.catalog-rental-summary h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; margin: 7px 0 10px; }
.catalog-rental-summary .badge { font-size: 9px; }
.catalog-attention-note { display: flex; align-items: flex-start; gap: 12px; padding: 15px; background: #fbf2df; color: #927c45; border-radius: 12px; margin: 20px 0 0; }
.catalog-attention-note > svg { flex-shrink: 0; }
.catalog-attention-note div { display: flex; flex-direction: column; gap: 6px; }
.catalog-attention-note strong { font-size: 12px; font-weight: 600; }
.catalog-attention-note span { font-size: 11px; line-height: 1.6; }
.catalog-resident-detail { display: flex; align-items: center; gap: 12px; }
.catalog-resident-detail > div { display: flex; flex-direction: column; gap: 7px; }
.catalog-resident-detail strong { font-size: 13px; font-weight: 500; }
.catalog-resident-detail div > span { font-size: 11px; color: var(--muted); }
.catalog-timeline { list-style: none; padding: 0; margin: 0; }
.catalog-timeline li { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 25px; position: relative; }
.catalog-timeline li:not(:last-child)::before { content: ''; position: absolute; width: 1px; background: #d7e2ce; top: 22px; left: 11px; bottom: 0; }
.catalog-timeline-dot { height: 23px; width: 23px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: #e5eed8; flex-shrink: 0; }
.catalog-timeline .current .catalog-timeline-dot { background: #f2f4ec; color: var(--muted); }
.catalog-timeline strong { font-size: 12px; color: var(--ink); font-weight: 500; display: block; padding-top: 3px; }
.catalog-timeline p { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 7px 0; }
.catalog-timeline time { font-size: 10px; color: #9ca794; }
.catalog-resident-form-intro { display: flex; align-items: center; gap: 15px; color: var(--forest); padding: 19px; border-radius: 13px; background: #eff4e5; margin-bottom: 3px; }
.catalog-resident-form-intro > div { display: flex; flex-direction: column; gap: 6px; }
.catalog-resident-form-intro strong { font-size: 13px; font-weight: 500; }
.catalog-resident-form-intro span { font-size: 10px; color: #849578; }
@keyframes catalog-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .product-card-art { height: 240px; } }
@media (max-width: 1180px) { .catalog-table-toolbar { flex-wrap: wrap; gap: 13px; } .catalog-data-table td, .catalog-data-table th { padding-left: 13px; padding-right: 13px; } .catalog-table-product { min-width: 110px; } .catalog-stat-note { max-width: 190px; } .product-card-art { height: 190px; } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-toolbar { flex-wrap: wrap; } .catalog-toolbar > .catalog-search { flex: 1; } .catalog-stat-icon { width: 35px; height: 35px; border-radius: 10px; } .catalog-mini-stat { gap: 10px; } .catalog-mini-stat strong { font-size: 24px; } .catalog-mini-stat .catalog-stat-note { font-size: 10px; } .catalog-table-footer span:last-child { max-width: 50%; text-align: right; line-height: 1.5; } }
@media (max-width: 620px) { .catalog-heading { gap: 18px; margin-bottom: 24px; } .catalog-heading-actions { width: 100%; } .catalog-heading-actions .button { min-height: 42px; } .catalog-stats { gap: 12px; } .catalog-mini-stat { padding: 14px 12px; } .catalog-stat-icon { display: none; } .catalog-stat-note { display: none; } .catalog-mini-stat strong { font-size: 22px; } .catalog-stat-label { font-size: 10px; } .catalog-filters { width: 100%; } .catalog-select-wrap { flex: 1; padding: 0 10px; } .catalog-select-wrap select { width: 100%; font-size: 11px; } .catalog-toolbar > .catalog-search { width: 100%; min-width: 0; } .catalog-section-meta span:last-child { display: none; } .product-grid { gap: 11px; } .product-card { padding: 5px; border-radius: 13px; } .product-card-art { height: 157px; border-radius: 10px; } .product-card-art > .badge { left: 8px; top: 9px; font-size: 8px; padding: 4px 6px; } .product-card-edit { width: 26px; height: 26px; right: 6px; top: 6px; } .product-card-edit svg { width: 14px; } .product-card-content { padding: 13px 7px 10px; } .product-card-content h3 { font-size: 13px; min-height: 35px; } .product-category { font-size: 8px; } .product-card-bottom { margin-top: 13px; padding-top: 12px; gap: 4px; } .product-rate { font-size: 11px; } .product-rate > span { font-size: 8px; } .product-stock strong { font-size: 10px; } .product-stock { font-size: 8px; } .catalog-bottom-note { font-size: 10px; text-align: center; line-height: 1.5; align-items: flex-start; } .catalog-bottom-note svg { flex-shrink: 0; } .catalog-table-toolbar { padding: 14px 12px; } .catalog-tabs { gap: 0; } .catalog-tab { font-size: 11px; padding: 8px 9px; } .catalog-tab span { margin-left: 5px; } .catalog-table-toolbar .catalog-search { width: 100%; max-width: none; } .catalog-data-table td { padding-top: 17px; padding-bottom: 17px; } .catalog-table-footer { padding: 14px; } .catalog-table-footer span:last-child { display: none; } .catalog-form-row { gap: 11px; } .catalog-detail-list > div { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .catalog-view { animation: none; } .product-card, .product-card-art img { transition: none; } .product-card:hover, .product-card:hover .product-card-art img { transform: none; } }
