/* Alfa Food B2B V3.6: category management + nested filters only. */
.af-cat-admin-grid{align-items:start}.af-cat-admin-grid>*{min-width:0}.af-category-notice{background:#edf7f0;color:#23563d;border:1px solid #cde4d3;padding:15px 18px;border-radius:16px;line-height:1.55}.af-category-notice a{text-decoration:underline;font-weight:800}
.af-cat-check{display:flex;align-items:center;gap:9px;font-weight:800;color:#224c36}.af-cat-check input{width:19px!important;min-height:0!important;height:19px!important;accent-color:#18573d;flex:none}
.af-cat-list{display:grid;gap:15px}.af-cat-section{padding:22px}.af-cat-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.af-cat-section-heading h3{margin:0;font-size:21px;color:#173f30}.af-cat-section-heading span{color:#547466;font-size:13px;font-weight:800}
.af-cat-editor{margin-top:12px;background:#f7faf8;border:1px solid #dce8df;border-radius:14px;overflow:hidden}.af-cat-editor summary{display:block;cursor:pointer;padding:13px 15px;font-size:14px;line-height:1.5}.af-cat-editor summary::-webkit-details-marker{display:none}.af-cat-editor summary::after{content:' ⌄';float:right;color:#356b4d}.af-cat-editor[open] summary{background:#edf5ef}.af-cat-editor[open] summary::after{content:' ⌃'}.af-cat-child{margin-left:24px}.af-cat-edit-form{padding:17px;border-top:1px solid #dfebe1}.af-cat-readonly{background:#eaf0eb!important;color:#4b6357!important}.af-cat-edit-actions{display:flex;gap:9px;flex-wrap:wrap}.af-cat-delete{padding:0 17px 17px}.af-cat-delete .btn{width:auto}.af-cat-products-link{display:inline-flex;margin-top:12px;font-weight:800;color:#14553b;text-decoration:underline}.af-cat-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.af-cat-metrics>div{background:#f2f8f3;border:1px solid #d8e6da;border-radius:13px;padding:14px 10px}.af-cat-metrics strong{display:block;font-size:26px;color:#154f36}.af-cat-metrics span{font-size:12px;line-height:1.3;color:#586e60}
.af-subcategory-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0 2px;margin-top:6px;border-top:1px solid #e5ebe6}.af-subcategory-filter strong{font-size:13px;margin-right:7px;color:#4f685a}.af-subcategory-filter .chip{white-space:nowrap}.af-filter-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}
@media(max-width:1100px){.af-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:740px){.af-filter-fields{grid-template-columns:1fr!important}.af-cat-admin-grid{grid-template-columns:1fr!important}.af-cat-section{padding:15px}.af-cat-child{margin-left:10px}.af-cat-edit-form .grid.cols-2{grid-template-columns:1fr!important}.af-cat-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.af-cat-metrics strong{font-size:20px}.af-cat-edit-actions .btn{width:100%}.af-subcategory-filter{gap:7px}}

/* Ensure JS-controlled dialog fields actually stay hidden under site-wide .field rules. */
.af-bulk-dialog [hidden]{display:none!important}
