.catalog-dialog{width:min(1040px,calc(100% - 24px));max-height:92vh;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:0 28px 90px #0008;overflow:hidden}
.catalog-dialog::backdrop{background:#020617bd;backdrop-filter:blur(3px)}
.catalog-shell{display:flex;flex-direction:column;max-height:92vh}.catalog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 22px;background:#21160e;color:#fff}.catalog-head h2{margin:0;font-size:22px}.catalog-head p{margin:4px 0 0;color:#ead6c2;font-size:13px}.catalog-close{flex:0 0 auto;min-height:40px;border:1px solid #ffffff55;border-radius:9px;padding:0 15px;background:#fff;color:#27170c;font-weight:800;cursor:pointer}
.catalog-content{min-height:0;padding:18px 22px 22px;overflow:auto}.catalog-tools{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;margin-bottom:12px}.catalog-search,.catalog-field input{width:100%;min-height:44px;border:1px solid #c9b39e;border-radius:9px;padding:9px 12px;background:#fff;color:#172033;font:inherit}.catalog-primary,.catalog-secondary,.catalog-edit,.catalog-delete{min-height:40px;border:1px solid #b9844f;border-radius:8px;padding:8px 13px;background:#fff;color:#3e2716;font-weight:800;cursor:pointer}.catalog-primary{background:#c96f12;border-color:#c96f12;color:#fff}.catalog-delete{border-color:#fecaca;background:#fff1f2;color:#9f1239}.catalog-summary{display:flex;justify-content:space-between;gap:12px;margin:8px 0 12px;color:#765b46;font-size:13px}.catalog-table-wrap{overflow:auto;border:1px solid #ead4bd;border-radius:11px}.catalog-table{width:100%;min-width:700px;border-collapse:collapse}.catalog-table th,.catalog-table td{padding:11px 12px;border:0;border-bottom:1px solid #ead4bd;text-align:left}.catalog-table th{position:sticky;top:0;background:#ffedd5;color:#71400f;font-size:12px}.catalog-table td.catalog-price{font-weight:900;white-space:nowrap}.catalog-table td.catalog-actions{display:flex;gap:7px;justify-content:flex-end}.catalog-empty{padding:35px;text-align:center;color:#765b46}.catalog-view[hidden]{display:none!important}
.catalog-form-card,.catalog-confirm-card{width:min(620px,100%);margin:12px auto;padding:22px;border:1px solid #ead4bd;border-radius:14px;background:#fff}.catalog-form-card h3,.catalog-confirm-card h3{margin:0 0 8px;font-size:21px}.catalog-help{margin:0 0 18px;color:#765b46;line-height:1.5}.catalog-field{display:block;margin:13px 0;font-weight:800}.catalog-field span{display:block;margin-bottom:6px}.catalog-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.catalog-actions-row{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:20px}.catalog-message{min-height:20px;margin:10px 0 0;color:#9f1239;font-weight:700}.catalog-confirm-name{padding:13px;border-radius:9px;background:#fff7ed;font-weight:900;overflow-wrap:anywhere}
@media(max-width:700px){.catalog-dialog{width:100%;max-height:100vh;border-radius:0}.catalog-shell{max-height:100vh}.catalog-head{padding:14px}.catalog-content{padding:12px}.catalog-tools{grid-template-columns:1fr}.catalog-tools button{width:100%}.catalog-summary{display:block}.catalog-form-grid{grid-template-columns:1fr}.catalog-actions-row>*{width:100%}.catalog-table{min-width:0}.catalog-table thead{display:none}.catalog-table,.catalog-table tbody,.catalog-table tr,.catalog-table td{display:block}.catalog-table tr{padding:11px;border-bottom:1px solid #ead4bd}.catalog-table td{padding:4px 0;border:0}.catalog-table td::before{font-weight:800;color:#765b46}.catalog-table td:nth-child(2)::before{content:'Unidade: '}.catalog-table td:nth-child(3)::before{content:'Preço: '}.catalog-table td:nth-child(4)::before{content:'Usos: '}.catalog-table td.catalog-actions{padding-top:10px;justify-content:flex-start}.catalog-table td.catalog-actions button{flex:1}}
