:root{
 --proc-blue:#0b4aa2;--proc-blue-soft:#eef5ff;--proc-green:#188754;--proc-green-soft:#edf9f2;
 --proc-text:#1f2937;--proc-muted:#687386;--proc-border:#dfe5ed;--proc-bg:#f6f8fb;
}
#proc-main-window-template{min-height:100vh;height:100%;display:flex;flex-direction:column;background:var(--proc-bg);color:var(--proc-text)}
.proc-header{min-height:76px;display:grid;grid-template-columns:300px minmax(380px,1fr) auto;align-items:center;gap:24px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--proc-border)}
.proc-brand{display:flex;align-items:center;gap:12px}.proc-brand-symbol{width:46px;height:32px;border-radius:80% 20% 60% 20%;transform:skewX(-12deg);background:linear-gradient(145deg,var(--proc-green) 0 43%,transparent 44%),linear-gradient(25deg,var(--proc-blue) 0 55%,#fff 56%)}
.proc-brand-name{font-size:19px;font-weight:750}.proc-brand-region{margin-top:3px;color:var(--proc-green);font-size:13px}
.proc-global-search{height:44px;display:grid;grid-template-columns:1fr 44px;align-items:center;border:1px solid #cdd6e2;border-radius:8px;overflow:hidden;background:#fff}
.proc-global-search input{height:100%;border:0;outline:0;padding:0 10px;min-width:0}.proc-global-search button{height:100%;border:0;color:#fff;background:var(--proc-blue)}
.proc-header-right{display:flex;align-items:center;gap:8px;white-space:nowrap}
.proc-nav-shell{position:relative;z-index:50;background:#fff;border-bottom:1px solid var(--proc-border)}
.proc-main-nav{min-height:58px;display:flex;align-items:stretch;padding:0 18px;overflow-x:auto;background:#fff}
.proc-main-nav-item{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;min-height:58px;padding:0 16px;border:0;background:transparent;color:#3e4858;font-weight:650;cursor:pointer;white-space:nowrap}
.proc-main-nav-item:hover:not(:disabled),.proc-main-nav-item.menu-open{background:#f4f6f9}.proc-main-nav-item:disabled{opacity:.4}
.proc-main-nav-item.active{color:var(--proc-blue)}.proc-main-nav-item.active:after,.proc-main-nav-item.menu-open:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;background:var(--proc-blue)}
.proc-main-nav-item.central.active,.proc-main-nav-item.central.menu-open{color:var(--proc-green)}.proc-main-nav-item.central.active:after,.proc-main-nav-item.central.menu-open:after{background:var(--proc-green)}
.proc-chevron{font-size:11px}

.proc-mega-layer{position:absolute;left:0;right:0;top:100%;z-index:1000}.proc-mega-backdrop{position:fixed;inset:134px 0 0;background:rgba(15,23,42,.18);z-index:0}
.proc-mega-panel{position:relative;z-index:1;width:min(1450px,calc(100vw - 32px));max-height:calc(100vh - 160px);margin:0 auto;overflow:auto;border:1px solid #d9e0e9;border-top:0;border-radius:0 0 12px 12px;background:#fff;box-shadow:0 18px 45px rgba(16,24,40,.22)}
.proc-mega-menu{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:470px}.proc-mega-roots{padding:12px 8px;background:#fbfcfd;border-right:1px solid #e5eaf0}
.proc-mega-mode-title{display:flex;flex-direction:column;gap:2px;padding:8px 12px 13px;border-bottom:1px solid #e6eaf0;margin-bottom:5px}.proc-mega-mode-title small{color:var(--proc-muted)}
.proc-mega-root{width:100%;min-height:42px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:7px;padding:8px 10px;border:0;border-radius:7px;background:transparent;text-align:left;color:#323c4c;cursor:pointer}
.proc-mega-root-image{width:24px;height:24px;display:block;border-radius:5px;object-fit:cover}
.proc-mega-root:hover,.proc-mega-menu.direct .proc-mega-root.active{background:var(--proc-blue-soft);color:var(--proc-blue)}
.proc-mega-menu.central .proc-mega-root:hover,.proc-mega-menu.central .proc-mega-root.active{background:var(--proc-green-soft);color:var(--proc-green)}
.proc-mega-content{padding:20px 28px 28px}.proc-mega-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:13px;border-bottom:1px solid #e5eaf0}.proc-mega-heading h3{margin:0;font-size:18px}
.proc-mega-all,.proc-mega-group-title,.proc-mega-leaf{border:0;background:transparent;cursor:pointer}.proc-mega-all{display:flex;align-items:center;gap:7px;color:var(--proc-blue);font-weight:650}.proc-mega-menu.central .proc-mega-all{color:var(--proc-green)}
.proc-mega-groups{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:28px 34px;padding-top:22px}.proc-mega-group{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:start;min-width:0}
.proc-mega-group-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:10px;color:var(--proc-blue);font-size:24px}.proc-mega-menu.central .proc-mega-group-icon{color:var(--proc-green)}
.proc-mega-group-title{padding:0;margin:2px 0 7px;font-weight:750;color:#273244;text-align:left}.proc-mega-group-title:hover{color:var(--proc-blue)}.proc-mega-menu.central .proc-mega-group-title:hover{color:var(--proc-green)}
.proc-mega-leaves{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.proc-mega-leaf{padding:0;color:#4b5565;font-size:13px;text-align:left}.proc-mega-leaf:hover{color:var(--proc-blue);text-decoration:underline}.proc-mega-menu.central .proc-mega-leaf:hover{color:var(--proc-green)}

.proc-view-shell{flex:1 1 auto;min-height:0;overflow:hidden}.proc-standard-view{height:100%;min-height:0;display:flex;flex-direction:column}.proc-view-toolbar{flex:0 0 auto;padding:9px 18px;background:#fff;border-bottom:1px solid var(--proc-border)}
.proc-view-content{flex:1 1 auto;min-height:0;overflow:auto;padding:20px 24px}.proc-tabbed-view{height:100%;overflow:auto}

.proc-catalog{max-width:1420px;margin:0 auto}.proc-breadcrumb{display:flex;gap:7px;margin-bottom:12px;color:var(--proc-muted);font-size:13px}.proc-catalog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.proc-catalog-head h1{margin:0 0 6px;font-size:27px}.proc-catalog-head p{margin:0;color:var(--proc-muted)}
.proc-category-button{border:1px solid #d7dee8;border-radius:7px;padding:9px 13px;background:#fff}.proc-demo-note{padding:12px 14px;border:1px solid #d9e5f5;border-radius:8px;background:#f6f9fe;color:#42516a;margin-bottom:18px}
.proc-demo-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.proc-demo-grid article{min-height:270px;display:flex;flex-direction:column;gap:8px;padding:13px;border:1px solid var(--proc-border);border-radius:9px;background:#fff}
.proc-demo-image{height:110px;display:grid;place-items:center;border-radius:8px;background:#f4f6f9;font-size:44px;color:#526787}.proc-demo-grid article span{color:var(--proc-muted);font-size:12px}.proc-demo-grid article button{margin-top:auto;min-height:36px;border:0;border-radius:6px;color:#fff;background:var(--proc-blue)}.proc-catalog.central .proc-demo-grid article button{background:var(--proc-green)}

@media(max-width:1100px){.proc-header{grid-template-columns:250px 1fr auto;gap:12px}.proc-mega-groups{grid-template-columns:repeat(2,minmax(220px,1fr))}.proc-demo-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}}
@media(max-width:800px){.proc-header{grid-template-columns:1fr auto}.proc-global-search{grid-column:1/-1;grid-row:2}.proc-mega-menu{grid-template-columns:1fr}.proc-mega-roots{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #e5eaf0}.proc-mega-mode-title{display:none}.proc-mega-root{width:auto;min-width:170px}.proc-mega-groups{grid-template-columns:1fr}.proc-demo-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}


/* ============================================================
   Conditional XAF workspace
   - Orders/Requests/Approvals: full-width XAF View
   - Administration: classic navigation tree + XAF View
   ============================================================ */

.proc-workspace {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

.proc-workspace.with-tree {
    grid-template-columns: 270px minmax(0, 1fr);
}

.proc-context-tree {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: #fff;
    border-right: 1px solid var(--proc-border);
}

.proc-xaf-tree {
    min-height: 100%;
    padding: 14px 10px 18px;
}

.proc-xaf-tree-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px 13px;
    margin-bottom: 7px;
    border-bottom: 1px solid #e7ebf0;
}

.proc-xaf-tree-header strong {
    font-size: 15px;
}

.proc-xaf-tree-header small {
    color: var(--proc-muted);
    font-size: 12px;
}

.proc-xaf-tree-empty {
    padding: 12px 9px;
    color: var(--proc-muted);
    font-size: 13px;
}

.proc-admin-tree {
    width: 100%;
}

/* Keep the XAF View host independent of the optional tree column. */
.proc-view-shell {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 800px) {
    .proc-workspace.with-tree {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .proc-context-tree {
        max-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--proc-border);
    }
}


/* ============================================================
   Catalog category page
   ============================================================ */

.proc-catalog-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px 24px;
    color: #102344;
}

@media (max-width: 700px) {
    .proc-catalog-page { padding: 4px 0 24px; }
}

.proc-catalog-loading {
    min-height: 260px;
    display: grid;
    place-items: center;
    color: var(--proc-muted);
}

.proc-catalog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    color: var(--proc-muted);
    font-size: 14px;
    flex-wrap: wrap;
}

.proc-catalog-breadcrumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--proc-blue);
    cursor: pointer;
}

.proc-catalog-page.central .proc-catalog-breadcrumbs button {
    color: var(--proc-green);
}

.proc-catalog-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
}

.proc-catalog-page-header h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.proc-catalog-page-header p {
    max-width: 900px;
    margin: 0;
    color: var(--proc-muted);
    line-height: 1.5;
}

.proc-open-megamenu-hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--proc-border);
    border-radius: 7px;
    background: #fff;
    color: var(--proc-muted);
}

.proc-subcategory-strip {
    margin-bottom: 28px;
}

.proc-subcategory-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 10px;
}

.proc-subcategory-tile {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 9px;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    background: #fff;
    color: var(--proc-text);
    cursor: pointer;
}

.proc-subcategory-tile:hover {
    border-color: #b6c9e3;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .08);
}

.proc-catalog-page.central .proc-subcategory-tile:hover {
    border-color: #a8d7bc;
}

.proc-subcategory-icon {
    width: 66px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f2f5f9;
    color: var(--proc-blue);
    font-size: 29px;
}

.proc-catalog-page.central .proc-subcategory-icon {
    color: var(--proc-green);
    background: var(--proc-green-soft);
}

.proc-subcategory-tile strong {
    text-align: center;
    font-size: 13px;
}

.proc-subcategory-tile span {
    color: var(--proc-muted);
    font-size: 11px;
}

.proc-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.proc-section-title-row h2 {
    margin: 0;
    font-size: 19px;
}

.proc-section-title-row > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--proc-blue);
    cursor: pointer;
}

.proc-catalog-page.central .proc-section-title-row > button {
    color: var(--proc-green);
}

.proc-product-section {
    margin: 30px 0 36px;
}

.proc-recommended-section {
    margin-top: 18px;
}

.proc-product-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(155px, 1fr));
    gap: 13px;
}

.proc-product-card {
    position: relative;
    min-width: 0;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
}

.proc-product-open {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.proc-product-picture {
    position: relative;
    height: 155px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #f3f5f7;
    color: #526987;
    font-size: 58px;
}

.proc-product-card.central .proc-product-picture {
    color: var(--proc-green);
    background: var(--proc-green-soft);
}

.proc-product-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    padding: 4px 6px;
    border-radius: 4px;
    background: #fff4cf;
    color: #775a00;
    font-size: 10px;
    font-weight: 700;
}

.proc-product-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 3px 0;
}

.proc-product-price {
    font-size: 18px;
    font-weight: 800;
    color: #242b36;
}

.proc-product-price-central {
    font-size: 13px;
    color: var(--proc-green);
}

.proc-product-name {
    padding: 0;
    border: 0;
    background: transparent;
    color: #303a49;
    text-align: left;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.proc-product-name:hover {
    color: var(--proc-blue);
    text-decoration: underline;
}

.proc-product-card.central .proc-product-name:hover {
    color: var(--proc-green);
}

.proc-product-supplier,
.proc-product-unit {
    color: var(--proc-muted);
    font-size: 11px;
}

.proc-product-stock {
    color: var(--proc-green);
    font-size: 11px;
}

.proc-product-card-action {
    position: absolute;
    right: 7px;
    top: 120px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16,24,40,.15);
}

.proc-product-card-action.direct {
    background: var(--proc-blue);
}

.proc-product-card-action.central {
    background: var(--proc-green);
}

/* Shared disabled purchase action in catalog cards and the product dialog. */
.proc-product-card button.proc-product-card-action:is(.direct, .central):disabled,
.proc-product-popup-content button.proc-product-detail-primary:is(.direct, .central):disabled {
    background: #c5d9f7;
    color: #496181;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
}
.proc-product-card button.proc-product-card-action.central:disabled,
.proc-product-popup-content button.proc-product-detail-primary.central:disabled {
    background: #c9e4d5;
    color: #446853;
}

.proc-catalog-search {
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 14px 0 4px;
}

.proc-catalog-search input {
    flex: 1 1 auto;
    min-width: 180px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.proc-catalog-search button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--proc-blue);
    color: #fff;
}

.proc-catalog-empty {
    padding: 28px 0;
    color: var(--proc-muted);
}

.proc-catalog-filterbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin: 12px 0 20px;
    border-top: 1px solid var(--proc-border);
    border-bottom: 1px solid var(--proc-border);
    background: var(--proc-bg);
}

.proc-catalog-filterbar button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #d8dfe8;
    border-radius: 17px;
    background: #fff;
    color: #4a5566;
}

.proc-filter-spacer {
    flex: 1 1 auto;
}

/* ============================================================
   Product detail popup
   ============================================================ */

/* The DevExpress multicolor close icon has its own red fill. */
.proc-product-popup .proc-product-close .dxbl-image {
    filter: grayscale(1) brightness(.55);
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.proc-product-popup > .dxbl-modal-content {
    overflow: hidden;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.proc-product-popup > .dxbl-modal-content > .dxbl-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.proc-product-detail-loading {
    min-height: 420px;
    display: grid;
    place-items: center;
    color: var(--proc-muted);
}

.proc-product-detail {
    background: #fff;
}

.proc-product-detail-top {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(390px, 1.1fr);
    gap: 34px;
    padding: 24px 30px 18px;
}

.proc-product-gallery {
    min-width: 0;
}

.proc-product-main-image {
    position: relative;
    height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    border-radius: 11px;
    color: #566f92;
    font-size: 150px;
}

.proc-product-detail.central .proc-product-main-image {
    color: var(--proc-green);
}

.proc-product-detail-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #fff2cf;
    color: #6c5300;
    font-size: 11px;
    font-weight: 700;
}

.proc-product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.proc-product-thumb {
    width: 65px;
    height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    border: 1px solid #dce2e9;
    border-radius: 5px;
    background: #fff;
    color: #6d7f98;
    font-size: 23px;
}

.proc-product-buy h2 {
    margin: 5px 0 8px;
    font-size: 25px;
}

.proc-product-detail-code {
    color: var(--proc-muted);
    font-size: 12px;
}

.proc-product-detail-supplier {
    margin-bottom: 18px;
    color: #4c5665;
    font-size: 13px;
}

.proc-product-buy-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
}

.proc-product-detail-price {
    font-size: 29px;
    line-height: 1;
    font-weight: 850;
    color: var(--proc-blue);
}

.proc-product-detail.central .proc-product-detail-price,
.proc-product-detail-central-price {
    color: var(--proc-green);
}

.proc-product-detail-central-price {
    font-size: 16px;
    font-weight: 750;
}

.proc-product-detail-unit {
    margin-top: 5px;
    color: var(--proc-muted);
    font-size: 12px;
}

.proc-product-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #d8dfe7;
    border-radius: 7px;
    overflow: hidden;
}

.proc-product-quantity button {
    width: 34px;
    height: 34px;
    border: 0;
    background: #f6f7f9;
}

.proc-product-quantity span {
    min-width: 38px;
    text-align: center;
    font-weight: 700;
}

.proc-product-detail-primary {
    grid-column: 1 / -1;
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 750;
}

.proc-product-detail-primary.direct {
    background: var(--proc-blue);
}

.proc-product-detail-primary.central {
    background: var(--proc-green);
}

.proc-product-detail-stock {
    display: flex;
    align-items: center;
    margin-top: 14px;
    color: var(--proc-green);
    font-size: 13px;
}

.proc-product-favorite {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4c5563;
}

.proc-product-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #dfe4eb;
    border-bottom: 1px solid #dfe4eb;
    background: #f7f8fa;
}

.proc-product-tab {
    min-height: 48px;
    border: 0;
    border-right: 1px solid #dde3ea;
    background: transparent;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 11px;
}

.proc-product-tab.active {
    background: #fff;
    color: var(--proc-blue);
    box-shadow: inset 0 3px 0 var(--proc-blue);
}

.proc-product-detail.central .proc-product-tab.active {
    color: var(--proc-green);
    box-shadow: inset 0 3px 0 var(--proc-green);
}

.proc-product-detail-tabbody {
    min-height: 210px;
    padding: 22px 30px 30px;
}

.proc-product-parameters {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 720px;
    margin: 0;
}

.proc-product-parameters dt,
.proc-product-parameters dd {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #edf0f4;
}

.proc-product-parameters dt {
    color: var(--proc-muted);
}

.proc-related-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 13px;
}

.proc-product-files {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 540px;
}

.proc-product-files button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #dfe4eb;
    border-radius: 6px;
    background: #fff;
    text-align: left;
}

@media (max-width: 1200px) {
    .proc-subcategory-items,
    .proc-product-row {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }
}

@media (max-width: 850px) {
    .proc-subcategory-items,
    .proc-product-row {
        grid-template-columns: repeat(2, minmax(145px, 1fr));
    }

    .proc-product-detail-top {
        grid-template-columns: 1fr;
    }

    .proc-product-main-image {
        height: 270px;
        font-size: 100px;
    }

    .proc-related-products {
        grid-template-columns: repeat(2, minmax(145px, 1fr));
    }
}


/* ============================================================
   Version 4 - images loaded through HTTP image handler
   ============================================================ */

.proc-subcategory-icon {
    overflow: hidden;
}

.proc-subcategory-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.proc-product-picture img {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 8px;
}

.proc-product-main-image {
    overflow: hidden;
}

.proc-product-main-image img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    object-fit: contain;
}

.proc-product-thumbnails {
    flex-wrap: wrap;
}

.proc-product-thumb {
    padding: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.proc-product-thumb img {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 3px;
}

.proc-product-thumb.active {
    border-color: var(--proc-blue);
    box-shadow: 0 0 0 2px rgba(11, 74, 162, .13);
}

.proc-product-detail.central .proc-product-thumb.active {
    border-color: var(--proc-green);
    box-shadow: 0 0 0 2px rgba(24, 135, 84, .13);
}



.proc-mega-group-icon {
    overflow: hidden;
}

.proc-mega-group-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 3px;
}


/* ============================================================
   Version 5 - dashboard page
   ============================================================ */

.proc-view-content.custom-page {
    padding: 18px 24px 26px;
}

.proc-dashboard-page {
    max-width: 1560px;
    margin: 0 auto;
}

.proc-dashboard-loading {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: var(--proc-muted);
}

.proc-dashboard-purchase-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 18px;
}

.proc-dashboard-hero {
    min-height: 178px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--proc-border);
    border-radius: 14px;
    background: #fff;
}

.proc-dashboard-hero.direct {
    border-color: #cfe0f9;
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 74%);
}

.proc-dashboard-hero.central {
    border-color: #d1eadc;
    background: linear-gradient(135deg, #f1fbf5 0%, #ffffff 74%);
}

.proc-dashboard-hero.external {
    border-color: #e5daf7;
    background: linear-gradient(135deg, #faf6ff 0%, #ffffff 74%);
}

.proc-dashboard-hero-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,0,0,.05);
    font-size: 37px;
}

.proc-dashboard-hero.direct .proc-dashboard-hero-icon {
    color: #1670df;
}

.proc-dashboard-hero.central .proc-dashboard-hero-icon {
    color: #2ba554;
}

.proc-dashboard-hero.external .proc-dashboard-hero-icon {
    color: #8242c6;
}

.proc-dashboard-hero-content h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.proc-dashboard-hero.direct h2 { color: #0a3f91; }
.proc-dashboard-hero.central h2 { color: #14633d; }
.proc-dashboard-hero.external h2 { color: #5f2897; }

.proc-dashboard-hero-content p {
    margin: 0 0 18px;
    max-width: 360px;
    color: #23344f;
    font-size: 14px;
    line-height: 1.55;
}

.proc-dashboard-hero-content button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.proc-dashboard-hero.direct button {
    background: #1467d5;
}

.proc-dashboard-hero.central button {
    background: #28a34f;
}

.proc-dashboard-hero.external button {
    background: #8242c6;
}

.proc-dashboard-category-panel {
    padding: 13px 12px 12px;
    margin-bottom: 16px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    background: #fff;
}

.proc-dashboard-section-head,
.proc-dashboard-section-title {
    display: flex;
    align-items: center;
}

.proc-dashboard-section-head {
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px 11px;
}

.proc-dashboard-section-title {
    gap: 7px;
}

.proc-dashboard-section-title h2 {
    margin: 0;
    font-size: 17px;
}

.proc-dashboard-section-title > i {
    color: #6d7d92;
    font-size: 13px;
}

.proc-dashboard-link-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #0760c9;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.proc-dashboard-categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(110px, 1fr));
    gap: 14px;
}

.proc-dashboard-category {
    min-width: 0;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    color: #24344e;
    text-align: center;
}

.proc-dashboard-category:hover {
    border-color: #adc9ef;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .07);
}

.proc-dashboard-category-image {
    width: 66px;
    height: 60px;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.proc-dashboard-category-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.proc-dashboard-category-actions button {
    flex: 1 1 110px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.proc-dashboard-category-actions .direct { background: #175caa; }
.proc-dashboard-category-actions .central { background: #217346; }
.proc-dashboard-category-actions .direct:hover { background: #114780; }
.proc-dashboard-category-actions .central:hover { background: #185735; }
.proc-dashboard-category-actions button:focus-visible {
    outline: 3px solid #24344e;
    outline-offset: 2px;
}

.proc-dashboard-category-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.proc-dashboard-category strong {
    max-width: 110px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
}

.proc-dashboard-info-strip {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 12px;
    margin-top: 14px;
    border: 1px solid #cfe0f7;
    border-radius: 7px;
    background: #f4f8fe;
    color: #234a7a;
    font-size: 12px;
}

.proc-dashboard-info-strip > div,
.proc-dashboard-info-strip > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.proc-dashboard-info-strip > i,
.proc-dashboard-info-strip > div i {
    color: #1668d7;
}

.proc-dashboard-info-strip button {
    border: 0;
    background: transparent;
    color: #075fc8;
    cursor: pointer;
}

.proc-dashboard-panels {
    display: grid;
    grid-template-columns: .95fr .98fr .98fr 1.05fr;
    gap: 18px;
    margin-bottom: 18px;
}

.proc-dashboard-panel {
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 10px;
    background: #fff;
}

.proc-dashboard-panel-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-bottom: none;
}

.proc-dashboard-panel-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}

.proc-dashboard-count {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf2fd;
    color: #174f98;
    font-size: 11px;
    font-weight: 700;
}

.proc-dashboard-approval-list {
    display: flex;
    flex-direction: column;
    padding: 8px 9px;
}

.proc-dashboard-approval-list button {
    min-height: 47px;
    display: grid;
    grid-template-columns: 29px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    background: transparent;
    color: #26364f;
    text-align: left;
    cursor: pointer;
}
.investment-status-panel .proc-dashboard-panel-head {
    padding-left: 0px;
}
.proc-dashboard-list-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #1266d6;
    font-size: 15px;
}

.proc-dashboard-table {
    display: flex;
    flex-direction: column;
    padding: 7px 9px;
}

.proc-dashboard-table-row {
    min-height: 39px;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #405066;
    text-align: left;
    font-size: 11px;
    cursor: pointer;
}

.proc-dashboard-table-row strong {
    color: #0d56b5;
    font-weight: 650;
}

.proc-dashboard-table-row .amount {
    color: #1f2937;
    white-space: nowrap;
}

.proc-dashboard-table-row.request {
    grid-template-columns: 1.05fr 1.25fr auto;
}

.proc-dashboard-status {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 10px;
}

.proc-dashboard-status.approved {
    background: #e9f7ec;
    color: #258342;
}

.proc-dashboard-status.waiting {
    background: #eaf3fe;
    color: #1767bd;
}

.proc-dashboard-status.returned {
    background: #fff1e6;
    color: #d3621d;
}

.proc-dashboard-favorites {
    display: flex;
    flex-direction: column;
    padding: 7px 9px;
}

.proc-dashboard-favorites button {
    min-height: 42px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 2px 3px;
    border: 0;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.proc-dashboard-favorites img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.proc-dashboard-favorites span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.proc-dashboard-favorites i {
    color: #f4ad00;
}

.proc-dashboard-panel-footer {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 0 13px;
    border: 0;
    border-top: 1px solid #e7ebf0;
    background: transparent;
    color: #075dc5;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
}

.proc-dashboard-quicklinks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 80px;
    overflow: hidden;
    border: 1px solid #d6e1ee;
    border-radius: 11px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.proc-dashboard-quicklinks button {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 11px;
    padding: 12px 22px;
    border: 0;
    border-right: 1px solid #dce5ef;
    background: transparent;
    color: #174783;
    text-align: left;
    cursor: pointer;
}

.proc-dashboard-quicklinks button:last-child {
    border-right: 0;
}

.proc-dashboard-quicklinks button > i {
    font-size: 27px;
    color: #1266d6;
}

.proc-dashboard-quicklinks span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proc-dashboard-quicklinks strong {
    font-size: 12px;
}

.proc-dashboard-quicklinks small {
    color: #6f7d90;
    font-size: 10px;
}

@media (max-width: 1250px) {
    .proc-dashboard-purchase-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .proc-dashboard-hero.external {
        grid-column: 1 / -1;
    }

    .proc-dashboard-categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .proc-dashboard-panels {
        grid-template-columns: repeat(2, 1fr);
    }

    .proc-dashboard-quicklinks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .proc-view-content.custom-page {
        padding: 12px;
    }

    .proc-dashboard-purchase-actions,
    .proc-dashboard-panels {
        grid-template-columns: 1fr;
    }

    .proc-dashboard-hero.external {
        grid-column: auto;
    }

    .proc-dashboard-hero {
        grid-template-columns: 70px 1fr;
        padding: 18px;
    }

    .proc-dashboard-hero-icon {
        width: 64px;
        height: 64px;
    }

    .proc-dashboard-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .proc-dashboard-info-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .proc-dashboard-quicklinks {
        grid-template-columns: 1fr;
    }

    .proc-dashboard-quicklinks button {
        border-right: 0;
        border-bottom: 1px solid #dce5ef;
    }

    .proc-dashboard-quicklinks button:last-child {
        border-bottom: 0;
    }
}

/* Keep both cart controls accessible when the account toolbar grows. */
@media (max-width: 1250px) {
    .proc-header { grid-template-columns: 1fr auto; }
    .proc-global-search { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 800px) {
    .proc-header { grid-template-columns: minmax(0, 1fr); }
    .proc-header-right { grid-column: 1; grid-row: 2; flex-wrap: wrap; white-space: normal; }
    .proc-global-search { grid-column: 1; grid-row: 3; }
}

/* Catalog redesign: shared shell, preserving XAF navigation and toolbar controls. */
.proc-dashboard-messages { display:flex; flex-direction:column; padding:8px 16px; }
.proc-dashboard-messages button { display:flex; flex-direction:column; gap:4px; padding:10px 0; border:0; border-bottom:1px solid var(--proc-border); background:transparent; text-align:left; color:var(--proc-text); overflow-wrap:anywhere; }
.proc-dashboard-messages small { color:var(--proc-muted); }
/* Auto top follows the menu layer; bottom is anchored to the viewport. */
.proc-app .proc-mega-backdrop { position: fixed; inset: auto 0 0; }
.proc-app .proc-mega-panel { max-height: 60dvh; }
.proc-app .proc-view-content.custom-page:has(.proc-catalog-page) { background: linear-gradient(155deg, transparent 82%, #e9f2ff 82%, #e9f2ff 87%, transparent 87%) bottom right / 100% 100% no-repeat; }
.proc-app { --proc-blue: #005bea; --proc-blue-soft: #edf4ff; --proc-text: #102344; --proc-muted: #637799; --proc-border: #e0e9f6; --proc-bg: #f4f8fe; }
.proc-app .proc-header { grid-template-columns: minmax(230px, 1fr) auto; gap: 22px; margin: 12px 20px 0; padding: 18px 30px; border: 1px solid var(--proc-border); border-bottom: 0; border-radius: 16px 16px 0 0; }
.proc-app .proc-brand-symbol { width: 60px; height: 42px; }
.proc-app .proc-brand-name { font-size: 24px; font-weight: 750; letter-spacing: -.5px; line-height: 1.25; }
.proc-app .proc-brand-region { font-size: 16px; }
.proc-app .proc-header-right { grid-column: 2; grid-row: 1; gap: 16px; }
.proc-app .proc-global-search { grid-column: 1 / -1; grid-row: 2; height: 54px; grid-template-columns: minmax(0, 1fr) 60px; border-color: #cbdcf5; box-shadow: 0 3px 12px #173f7906; }
.proc-app .proc-global-search input { font-size: 16px; color: var(--proc-text); background: #fff; }
.proc-app .proc-global-search button { font-size: 22px; }
.proc-app .proc-global-search:focus-within { outline: 3px solid #005bea25; border-color: var(--proc-blue); }
.proc-app .proc-nav-shell { margin: 0 20px; border: 1px solid var(--proc-border); border-radius: 0 0 16px 16px; box-shadow: 0 8px 24px #22477709; }
.proc-app .proc-main-nav { border-radius: inherit; padding: 0 12px; }
.proc-app .proc-main-nav { min-height: 46px; }
.proc-app .proc-main-nav-item { min-height: 46px; padding: 0 22px; gap: 12px; color: var(--proc-text); font-weight: 500; font-size: 16px; }
.proc-app .proc-main-nav-item > i:first-child { font-size: 22px; }
.proc-app .proc-main-nav-item.active, .proc-app .proc-main-nav-item.menu-open { background: #f0f6ff; color: var(--proc-blue); border-radius: 12px 12px 0 0; font-weight: 650; }
.proc-app .proc-main-nav-item.active:after, .proc-app .proc-main-nav-item.menu-open:after { left: 0; right: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--proc-blue); }
/*.proc-app button:focus-visible, .proc-app input:focus-visible { outline: 3px solid #005bea80; outline-offset: 3px; }*/
@media (max-width: 800px) {
    .proc-app .proc-header { grid-template-columns: minmax(0, 1fr); margin: 8px 10px 0; padding: 16px; gap: 16px; }
    .proc-app .proc-header-right { grid-column: 1; grid-row: 2; flex-wrap: wrap; gap: 10px; }
    .proc-app .proc-global-search { grid-row: 3; }
    .proc-app .proc-nav-shell { margin: 0 10px; }
    .proc-app .proc-main-nav-item { min-height: 46px; padding: 0 16px; font-size: 14px; }
}


.proc-mega-root-title,.proc-mega-root-expand{border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer}.proc-mega-root-expand{padding:6px}.proc-mega-root-title:hover{text-decoration:underline}

.proc-catalog-breadcrumbs a{color:var(--proc-blue);text-decoration:none}.proc-catalog-page.central .proc-catalog-breadcrumbs a{color:var(--proc-green)}.proc-catalog-breadcrumbs a:hover{text-decoration:underline}
