/* V10.48 scoped management surfaces. */
.h48{min-width:0;max-width:100%;display:grid;gap:14px}.h48-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.h48-toolbar>label{flex:1 1 150px;min-width:0;max-width:100%}.h48 input,.h48 select,.h48 textarea,.h48 .btn{min-height:44px;max-width:100%;box-sizing:border-box}.h48-toolbar .btn{flex:0 0 auto}.h48-table{max-width:100%;overflow-x:auto;border:1px solid var(--line,#ddd);border-radius:12px}.h48-table table{width:100%;border-collapse:collapse;white-space:nowrap}.h48-table td,.h48-table th{padding:10px;text-align:right;border-bottom:1px solid #e5e5e5}.h48-table td.money{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.h48-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.h48-kpis>article{background:#fff;border:1px solid #ddd;border-radius:12px;padding:12px;display:grid;gap:6px}.h48-kpis strong{font-size:21px}.h48-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.h48-tree-row{padding:10px;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;gap:10px;align-items:center;min-width:0}.h48-tree-row>span{overflow-wrap:anywhere;min-width:0}.h48-cascade{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}.h48-cascade label{flex:1 1 145px;min-width:0}.h48-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}.h48-checks label{display:flex;align-items:center;gap:8px;min-height:44px;overflow-wrap:anywhere}.h48-checks input{width:20px;min-height:20px}.h48-note{font-size:13px;line-height:1.7;color:#5b5b5b}.h48-error{color:#a92525}.h48 [hidden]{display:none!important}.h48-order-link{margin:8px 0}.h48 #h48-customer-results{display:flex;flex-wrap:wrap;gap:8px}.h48 .h48-tabs{display:flex;flex-wrap:wrap;gap:6px}.h48-pager{display:flex;gap:10px;justify-content:center;align-items:center}.h48-permission{font-size:13px}#modal .h48{width:100%}#modal .h48-cascade select{width:100%}@media(max-width:820px){.h48-toolbar>label{flex-basis:calc(50% - 10px)}.h48-toolbar .btn{flex:1 1 120px}.h48-tree-row{align-items:flex-start}.h48-checks{grid-template-columns:1fr}}@media(max-width:600px){.h48-toolbar>label{flex-basis:100%}.h48-tree-row{flex-wrap:wrap}}

/* V10.50 category hierarchy and Treasury work surfaces. */
.h1050-category-layout{display:grid;grid-template-columns:minmax(270px,38%) minmax(0,1fr);gap:14px;min-width:0;max-width:100%}
.h1050-tree-panel,.h1050-category-details{min-width:0;background:#fff;border:1px solid #ddd;border-radius:12px;padding:14px}
.h1050-tree-panel{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}
.h1050-tree-tools{display:grid;gap:10px}.h1050-tree-tools label{display:grid;gap:5px}.h1050-tree-tools input{width:100%}
.h1050-tree{max-height:min(65vh,750px);overflow:auto;min-width:0;border-block-start:1px solid #eee}
.h1050-tree-node{min-width:0}.h1050-tree-row{display:flex;align-items:center;gap:6px;min-width:0;padding-block:4px;padding-inline-start:calc(var(--depth,0)*16px);border-block-end:1px solid #eee}
.h1050-tree-row.selected{background:#fff5d8}.h1050-tree-select{flex:1;min-width:0;text-align:start;border:0;background:transparent;color:inherit;padding:8px;min-height:44px;overflow-wrap:anywhere;cursor:pointer}
.h1050-disclosure{flex:0 0 38px;min-width:38px;min-height:44px;border:0;background:transparent;cursor:pointer;font-size:19px;color:#604819}
.h1050-state{font-size:12px;border-radius:99px;background:#e9f4e8;color:#285b2d;padding:5px 8px;white-space:nowrap}.h1050-state.off{background:#f7eded;color:#93433d}
.h1050-selected-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.h1050-selected-head h2{margin:0;overflow-wrap:anywhere}.h1050-details{display:grid;gap:0;margin:12px 0}.h1050-details>div{display:grid;grid-template-columns:minmax(110px,30%) minmax(0,1fr);gap:10px;padding:10px 0;border-block-end:1px solid #eee}.h1050-details dt{color:#666}.h1050-details dd{margin:0;overflow-wrap:anywhere}
.h48-collections{display:grid;gap:14px;min-width:0}.h48-collections .h48-table table{min-width:690px}.h48-collections .h48-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.v1050-team,.v1050-permissions{min-width:0;max-width:100%}.v1050-permission-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v1050-permission-controls label{display:grid;gap:5px;min-width:0}.v1050-permission-controls input,.v1050-permission-controls select{width:100%;min-width:0;min-height:44px}
.v1050-permission-list{max-height:62vh;overflow:auto;min-width:0}.v1050-permission-grid{display:grid;gap:6px}.v1050-permission-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(130px,.7fr) minmax(180px,1fr);gap:10px;align-items:center;border-block-end:1px solid #eee;padding:8px;min-width:0}.v1050-permission-row>span{min-width:0;overflow-wrap:anywhere}.v1050-permission-row small{display:block;color:#777}.v1050-permission-row label{display:flex;gap:7px;align-items:center;min-height:44px}.v1050-permission-row input[type=checkbox]{width:22px;height:22px}.v1050-permission-row select{min-width:0;width:100%;min-height:44px}.v1050-permission-row[hidden],.v1050-permission-list section[hidden]{display:none!important}
@media(max-width:820px){.h1050-category-layout{grid-template-columns:minmax(0,1fr)}.h1050-tree{max-height:45vh}.v1050-permission-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.v1050-permission-row{grid-template-columns:minmax(0,1fr) minmax(125px,.6fr)}}
@media(max-width:600px){.h1050-tree-panel,.h1050-category-details{padding:10px}.h1050-details>div{grid-template-columns:1fr;gap:2px}.h48-collections .h48-kpis,.v1050-permission-controls,.v1050-permission-row{grid-template-columns:minmax(0,1fr)}.v1050-permission-row{padding:10px 0}}


/* Clearer category tree: visible levels, branch counts and a quieter details panel. */
.h1050-category-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.h1050-category-summary>div{display:grid;gap:3px;padding:12px 16px;background:#fff;border:1px solid #e3e0d7;border-radius:12px}
.h1050-category-summary strong{font-size:22px;line-height:1.15;color:#292521;font-variant-numeric:tabular-nums}
.h1050-category-summary span{font-size:12px;color:#635e52}
.h1050-tree-guide{margin:0;font-size:12px;line-height:1.7;color:#5f5b53}
.h1050-tree-panel,.h1050-category-details{border-color:#e3e0d7;border-radius:14px}
.h1050-tree{border:1px solid #eeeae1;border-radius:10px;max-height:min(70vh,780px)}
.h1050-tree-row{border-bottom-color:#efede7;padding-inline-end:8px}
.h1050-tree-row:hover{background:#faf8f2}
.h1050-tree-row.selected{background:#fff5d6;box-shadow:inset -3px 0 0 #b99833}
.h1050-tree-select{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600}
.h1050-tree-select .h1050-name{overflow-wrap:anywhere}
.h1050-child-count{flex:none;font-size:11px;color:#736b59;background:#f2f0e9;border-radius:7px;padding:3px 6px}
.h1050-details dt{color:#746e62;font-size:12px}
.h1050-details dd{font-size:13px;font-weight:650}
.h1050-disclosure:focus-visible,.h1050-tree-select:focus-visible{outline:3px solid #b99631;outline-offset:-3px;border-radius:5px}
/* Keep the credit table's cells directly under their headings in Arabic RTL. */
.h48:has(#h48-filters) .h48-table{scrollbar-gutter:stable}
.content[data-page="credit"] .h48-table table{width:100%;min-width:1450px;table-layout:fixed;border-spacing:0;direction:rtl}
.content[data-page="credit"] .h48-table th,.content[data-page="credit"] .h48-table td{
 box-sizing:border-box;text-align:center!important;vertical-align:middle;white-space:nowrap;padding:12px 6px;
 border-inline-start:1px solid #f0ede5;font-variant-numeric:tabular-nums;
}
.content[data-page="credit"] .h48-table thead{background:#f5f3ee}
.content[data-page="credit"] .h48-table th{font-weight:800;font-size:12px;color:#39362e;line-height:1.4}
.content[data-page="credit"] .h48-table tbody tr:hover{background:#fffaf0}
.content[data-page="credit"] .h48-table td.money{direction:ltr;unicode-bidi:isolate;text-align:center!important}
.content[data-page="credit"] .h48-table td.money small{font-size:10px;color:#6c685f}
.content[data-page="credit"] .h48-table th:first-child,.content[data-page="credit"] .h48-table td:first-child{width:65px}
.content[data-page="credit"] .h48-table th:nth-child(2),.content[data-page="credit"] .h48-table td:nth-child(2){width:148px}
.content[data-page="credit"] .h48-table th:nth-child(3),.content[data-page="credit"] .h48-table td:nth-child(3){width:155px;direction:ltr;unicode-bidi:isolate}
.content[data-page="credit"] .h48-table th:nth-child(4),.content[data-page="credit"] .h48-table td:nth-child(4){width:100px}
.content[data-page="credit"] .h48-table th:nth-child(5),.content[data-page="credit"] .h48-table td:nth-child(5){width:135px}
.content[data-page="credit"] .h48-table th:last-child,.content[data-page="credit"] .h48-table td:last-child{width:135px}
.content[data-page="credit"] .h48-table .btn{white-space:nowrap}
@media(max-width:700px){.h1050-category-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.h1050-category-summary>div{padding:11px}}

.h1050-tree-node[aria-level="1"]>.h1050-tree-row .h1050-name{font-weight:800}
.h1050-tree-node[aria-level="1"]>.h1050-tree-row{background:#fdfbf5}
.h1050-tree-node[aria-level="1"]>.h1050-tree-row.selected{background:#fff5d6}

/* V10.50.6: the root of each classification branch is visually separate. */
.h1050-tree>.h1050-tree-node{margin-block:8px;border:1px solid #e2dfd6;border-radius:12px;background:#fff;overflow:hidden}
.h1050-tree>.h1050-tree-node>.h1050-tree-row{background:#f6f1e5;border-bottom:1px solid #e5dcc8;min-height:52px}
.h1050-tree>.h1050-tree-node>.h1050-tree-row .h1050-name{font-weight:850}
.h1050-tree-node[aria-level="2"]>.h1050-tree-row{border-inline-start:3px solid #c3a354}
.h1050-tree-node[aria-level="3"]>.h1050-tree-row{border-inline-start:2px solid #b0c4b5}
.h1050-tree-row{padding-inline-start:calc(var(--depth,0)*22px + 8px);scroll-margin-block:12px}
.h1050-tree-row .h1050-tree-select{min-width:0}
.h1050-tree-row .h1050-name{overflow-wrap:break-word}
@media(max-width:720px){.h1050-tree-row{padding-inline-start:calc(var(--depth,0)*14px + 5px)}.h1050-category-layout>*{min-width:0}}
