/* Colors */
:root {
    --jmPrimary: #0D7DFC;
    --jmPrimaryDark: #004594;
    --jmSecondary: #FFB400;
    --black: #000000;
    --black-75: #000000BF;
    --black-50: #00000080;
    --black-25: #00000040;
    --black-15: #0000000F;
    --white: #ffffff;
    --white-75: #ffffffBF;
    --white-50: #ffffff80;
    --white-25: #ffffff40;
}


/* inter-100 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/inter/inter-v20-latin_latin-ext-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-300 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/inter/inter-v20-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter/inter-v20-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/inter/inter-v20-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/inter/inter-v20-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
  font-size: 14px;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    background: #eee;   
}

main {
    flex: 1;
    overflow-y: auto;
}



html {
  position: relative;
  max-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    /* For WebKit (Chrome, Safari, Edge) */
    -webkit-font-smoothing: antialiased;
    /* For Firefox */
    -moz-osx-font-smoothing: grayscale;
    /* Standard property for modern browsers */
    text-rendering: optimizeLegibility;
    margin-bottom: 60px;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    background: #eee;
}

main {
    flex: 1;
    overflow-y: auto;
}

/*###### Drop Zone ######*/

.jmDropZone {
    border: 2px dashed var(--black-25);
    border-radius: 0.5rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    color: var(--black-50);
}

.jmDropZone:hover,
.jmDropZone--active {
    border-color: var(--jmPrimary);
    background-color: #0028FF08;
    color: var(--jmPrimary);
}

/*###### Pages ######*/

.jmPage {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 20px;
    border-radius: 0.25rem;
    border: 1px solid var(--black-25);
    min-height : calc(100vh - 80px);
    box-shadow: 0px 0px 5px 1px var(--black-25);
    background: white;
}


/*####### Page menus and Buttons ########*/

.jmButton {
    min-width: 60px;
    padding: 10px;
    border-radius: 10px;
    background: var(--jmPrimary);
    color: var(--white);
    border: 1px solid var(--jmPrimary);
    opacity: 0.8;
    transition: 0.5s;
    text-decoration: none;
}

.jmButton:hover {   
    opacity: 1;
    transition: 0.2s;
}

.btn-xs {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
}

/*######### Tables #########*/
.jmTableContainer {
    min-height: 30vh;
    overflow-x: auto;
}

.jmTable {
    overflow: auto;
    width: 100% !important;
    margin-top: 1rem !important;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 0.25rem;
}

    .jmTable table {
        border: 1px solid #dededf;
        height: 100%;
        width: 100%;
        table-layout: auto;
        border-collapse: collapse;
        border-spacing: 1px;
        text-align: left;
    }

    .jmTable caption {
        caption-side: top;
        text-align: left;
    }

    .jmTable th {
        border-bottom: 1px solid #dededf;
        background-color: #ffffff;
        color: var(--jmBlue);
        padding: 5px;
        font-weight: 400;
    }

    .jmTable td {
        padding: 5px;
        font-weight: 300;
    }

    .jmTable tr:nth-child(even){
        /*background-color: #ffffff;*/
        color: #000000;
    }

    .jmTable tr:nth-child(odd) {
        background-color: #fafafa;
        color: #000000;
    }

.dataTables_length, .dataTables_info {
    font-size: 0.8rem;
    font-weight: 300;
}

.active > .page-link, .page-link.active {
    background-color: var(--jmPrimary);
    border-color: var(--jmPrimary);
}

.dataTables_wrapper {
    padding: 5px;
}

@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_length {
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter {
        text-align: right !important;
        margin-top: 10px;
    }
}

div.dataTables_wrapper div.dataTables_processing {
    background-color: var(--jmPrimary);
    color: white;
    top: 0 !important;
    left: 125px !important;
    width: 150px !important;
    text-align: center;
    padding: 5px !important;
    margin-left: 0px !important;
    margin-top: 5px !important;
    height: 31px !important;
    z-index: 1000;  
    font-size: 0.8rem;
    font-weight: 300;   
}

.page-item:first-child .page-link {
    border-radius: 5px;
    background-color: #fff;
    margin-right: 10px;
    transition: 0.2s;
}

.page-item:first-child:hover .page-link {
    background-color: var(--jmPrimary);
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

.page-item:last-child .page-link {
    border-radius: 5px;
    background-color: #fff;
    margin-left: 10px;
    transition: 0.2s;
}

.page-item:last-child:hover .page-link {
    background-color: var(--jmPrimary);
    cursor: pointer;
    color: white;
   
}

.page-item:not(:first-child) .page-link {
    border-radius: 5px;
}

.paginate_button:hover {
    cursor: pointer;
}

.page-item { border-radius:5px;
}

.jmTable tr {
    transition: 0.5s;
}

.jmTable tr:hover {
    background: var(--black-15);
    cursor: pointer;
    transition: 0.2s;
}


 /*#########  Detail Pane #########*/
 .detail-pane {
    position: sticky;
    top: 20px;
    min-height: calc(80vh);
    overflow-y: auto;
    border-left: 1px solid #eee;
    border-radius: 0.25rem;
    font-size: 13px;
    padding-left: 15px;
}

.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--black-25);
    margin-top: 50px;
}

    .detail-empty i {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .detail-empty p {
        font-size: 13px;
        margin: 0;
    }
/* Header */
.detail-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}

.detail-pn {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--jmPrimary);
}

.detail-name {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--jmPrimaryDark);
    margin: 4px 0 8px 0;
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    gap: 6px;
}

.jm-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--jmPrimary);
    text-decoration: none;
    transition: all 0.5s;
    cursor: pointer;
    opacity: 0.5;
}


.jm-detail-action:hover {
    background: var(--jmPrimary);
    color: white;
    opacity: 1;
    transition: all 0.2s;
}

.jm-detail-action-delete:hover {
    background: #dc3545;
    color: white;
}
/* Actions column inside jmTable rows */
td.jm-actions-cell {
    white-space: nowrap;
    text-align: right;
    width: 1%;
    padding-top: 4px;
    padding-bottom: 4px;
}

    td.jm-actions-cell .jm-detail-action {
        width: 28px;
        height: 28px;
    }

        td.jm-actions-cell .jm-detail-action + .jm-detail-action {
            margin-left: 2px;
        }
/* Sections */
.detail-section {
    padding: 0 16px;
    margin-bottom: 4px;
}

.detail-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--jmPrimaryDark);
    padding: 12px 0 6px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
}

.detail-label {
    color: var(--black-50);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-right: 12px;
}

.detail-value {
    font-weight: 500;
    color: #222;
    text-align: right;
    word-break: break-word;
}
/* Active row in master table */
#articlesTable tbody tr.active-row {
    background: #e8f0fe !important;
}

#articlesTable tbody tr {
    cursor: pointer;
}
/* Client dimension blocks inside detail pane */
.detail-client-dims-block {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

    .detail-client-dims-block:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.detail-client-dims-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--jmPrimary);
    margin: 6px 0 2px 0;
}
/*##### Views ######*/
.jmSmallLink {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: text-top;
    text-decoration: none;
    padding: 3px 5px;
    background-color: var(--jmPrimary);
    color: white;
    border-radius: 5px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.5s;
    margin-bottom: 2px;
}

    .jmSmallLink:hover {
        opacity: 1;
        transition: 0.2s;
    }
/*###### JM Panels ######*/
/* Panel Boxes */
.jmPanel {
    border: 1px solid var(--bs-gray-200);
    padding: 15px 15px 20px 15px;
    position: relative;
    border-radius: 5px;
    width: 100%;
}

.jmPanelTitle {
    position: absolute;
    top: -20px;
    left: 10px;
    background: var(--bs-white);
    padding: 5px;
    font-weight: 700;
    color: black;
    font-size: 1.15rem;
}

.jmPanelContent {
    width: 100%;
}
/*##### Forms ####*/
/* Focus Glow*/
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .select:focus, .form-select:focus {
    box-shadow: 0 0 5px var(--jmPrimary);
    border-color: var(--jmPrimary);
}
/* Read-only display field (used in Details views and computed-value displays in forms) */
.jmReadOnlyField {
    min-height: 38px;
    background: #f8f9fa;
    color: var(--black-50);
    white-space: pre-wrap;
}

.select:hover, .form-select:hover {
    cursor: pointer;
}
/*#### Footer ####*/

.footer {
    height: 39px;
    border-top: 1px solid var(--black-25);
    box-shadow: 0px 0px 5px 1px var(--black-25);
    padding: 0px 5px;
    background: #ffffff;
}

.jmFooterBox {
    padding: 5px 0px;
    height: 39px;
    line-height: 30px;
}

.jmFooterLogo {
    padding: 5px 0px;
    height: 39px;
}


/* ============================================================================ */
/* BOM Explorer                                                                 */
/* ============================================================================ */

.bom-explorer {
    font-family: 'Inter', sans-serif;
}

.bom-explorer .bom-search {
    min-width: 280px;
}

.bom-explorer .bom-stats {
    font-size: 12px;
    color: var(--black-50);
    min-width:250px;
}
.bom-explorer .bom-stat-label {
    color: var(--black-50);
}
.bom-explorer .bom-stat-value {
    color: var(--black);
    font-weight: 600;
}

.bom-explorer .bom-container {
    min-height: 75vh;
}

.bom-explorer .bom-left,
.bom-explorer .bom-right {
    border: 1px solid var(--black-15);
    background: var(--white);
    max-height: 80vh;
    overflow: auto;
}

.bom-explorer .bom-left .bom-panel-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--black-50);
    padding: 12px 16px 8px;
}

/* Tree rows */
.bom-explorer .tree-item {
    cursor: pointer;
    user-select: none;
}

.bom-explorer .tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px calc(12px + var(--depth, 0) * 16px);
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}
.bom-explorer .tree-row:hover {
    background: #f4f6fa;
}
.bom-explorer .tree-row.selected {
    background: rgba(13, 125, 252, 0.08);
    border-left-color: var(--jmPrimary);
}

/* Row shown only as context for a visible descendant - greyed out to fade its importance. */
.bom-explorer .tree-row.dimmed .tree-name,
.bom-explorer .tree-row.dimmed .tree-qty {
    color: var(--black-25);
}
.bom-explorer .tree-row.dimmed .tree-badge,
.bom-explorer .tree-row.dimmed .badge-equiv {
    opacity: 0.5;
}

.bom-explorer .tree-toggle {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-50);
    font-size: 10px;
    transition: transform 0.2s;
}
.bom-explorer .tree-toggle.open {
    transform: rotate(90deg);
}
.bom-explorer .tree-toggle.leaf {
    visibility: hidden;
}

.bom-explorer .tree-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.bom-explorer .badge-finished {
    background: rgba(240, 136, 62, 0.12);
    color: #c0651d;
}
.bom-explorer .badge-semi {
    background: rgba(13, 125, 252, 0.12);
    color: var(--jmPrimaryDark);
}
.bom-explorer .badge-raw {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}
.bom-explorer .badge-container {
    background: rgba(111, 66, 193, 0.12);
    color: #5a32a3;
}
.bom-explorer .badge-other {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
}

/* Category filter checkboxes (above tree) */
.bom-explorer .bom-filters {
    border-bottom: 1px solid var(--black-15);
    background: #fbfcfd;
}
.bom-explorer .bom-filter-caption {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--black-50);
    padding-top: 4px;
}
.bom-explorer .bom-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--black-75);
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 0;
}
.bom-explorer .bom-filter-item:hover {
    background: #f4f6fa;
}
.bom-explorer .bom-filter-item .form-check-input {
    margin: 0;
    flex-shrink: 0;
}
.bom-explorer .bom-filter-label {
    font-weight: 500;
}

.bom-explorer .badge-equiv {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    background: var(--black-15);
    color: var(--black-50);
    border: 1px solid var(--black-25);
    font-family: 'Inter', sans-serif;
}

.bom-explorer .tree-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bom-explorer .tree-qty {
    margin-left: auto;
    font-size: 11px;
    color: var(--black-50);
    flex-shrink: 0;
}

/* "[Alt N]" marker - muted, inline, shown in tree rows / visual cards / */
/* breadcrumb / detail pane when TLAlternative > 1.                      */
.bom-explorer .tree-alt {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--black-50);
    flex-shrink: 0;
}

.bom-explorer .tree-children {
    display: none;
}
.bom-explorer .tree-children.open {
    display: block;
}

/* Right panel - empty state + sticky sections */
.bom-explorer .bom-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--black-50);
}

.bom-explorer .bom-breadcrumb {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--black-50);
    border-bottom: 1px solid var(--black-15);
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}
.bom-explorer .bom-breadcrumb .bc-current {
    color: var(--black);
    font-weight: 600;
}

.bom-explorer .bom-info-bar {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--black-15);
    background: #f8f9fa;
    font-size: 12px;
    position: sticky;
    top: 37px;
    z-index: 10;
    flex-wrap: wrap;
}
.bom-explorer .info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bom-explorer .info-dot {
    width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    padding: 0px;
    border-radius: 50%;
    display: inline-block;
}
.bom-explorer .info-dot.finished { background: #c0651d; }
.bom-explorer .info-dot.semi { background: var(--jmPrimary); }
.bom-explorer .info-dot.raw { background: #146c43; }
.bom-explorer .info-dot.container { background: #6f42c1; }
.bom-explorer .info-dot.other { background: #6c757d; }
.bom-explorer .info-label { color: var(--black-50); }
.bom-explorer .info-value { color: var(--black); font-weight: 600; }

.bom-explorer .bom-equiv-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--black-15);
    background: rgba(240, 136, 62, 0.06);
    font-size: 12px;
    position: sticky;
    top: 74px;
    z-index: 10;
    flex-wrap: wrap;
}
.bom-explorer .equiv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(240, 136, 62, 0.15);
    color: #c0651d;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.bom-explorer .equiv-label {
    color: #c0651d;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.bom-explorer .equiv-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--jmPrimary);
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(13, 125, 252, 0.08);
    transition: color 0.15s, background 0.15s;
}
.bom-explorer .equiv-link:hover {
    color: var(--jmPrimaryDark);
    background: rgba(13, 125, 252, 0.16);
}
/* Currently-selected variant - not clickable, slightly stronger visual so the */
/* user sees which alternative they're viewing at a glance.                    */
.bom-explorer .equiv-link.equiv-link-current {
    cursor: default;
    text-decoration: none;
    background: rgba(13, 125, 252, 0.22);
    color: var(--jmPrimaryDark);
    font-weight: 700;
    outline: 1px solid var(--jmPrimary);
}
.bom-explorer .equiv-link.equiv-link-current:hover {
    background: rgba(13, 125, 252, 0.22);
    color: var(--jmPrimaryDark);
}

/* Visual tree */
.bom-explorer .visual-tree {
    padding: 32px;
    min-width: fit-content;
    min-height: fit-content;
    animation: bomFadeIn 0.25s ease;
}

@@keyframes bomFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bom-explorer .vnode {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bom-explorer .vnode-card {
    background: var(--white);
    border: 1px solid var(--black-15);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 140px;
    max-width: 220px;
    min-height: 84px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bom-explorer .vnode-card:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}
.bom-explorer .vnode-card.clickable {
    cursor: pointer;
}
.bom-explorer .vnode-card.clickable .vnode-name {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    color: var(--black);
    transition: color 0.2s;
}
.bom-explorer .vnode-card.clickable:hover .vnode-name {
    color: var(--jmPrimary);
}

.bom-explorer .vnode-card.type-finished {
    border-color: #f0883e;
   
}
.bom-explorer .vnode-card.type-semi {
    border-color: var(--jmPrimary);
}
.bom-explorer .vnode-card.type-raw {
    border-color: #198754;
   
}
.bom-explorer .vnode-card.type-container {
    border-color: #6f42c1;
}
.bom-explorer .vnode-card.type-other {
    border-color: #6c757d;
    border-style: dashed;
}

.bom-explorer .vnode-type {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.bom-explorer .vnode-type.type-finished { color: #c0651d; }
.bom-explorer .vnode-type.type-semi { color: var(--jmPrimaryDark); }
.bom-explorer .vnode-type.type-raw { color: #146c43; }
.bom-explorer .vnode-type.type-container { color: #5a32a3; }
.bom-explorer .vnode-type.type-other { color: #495057; }

.bom-explorer .vnode-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    word-break: break-all;
}
.bom-explorer .vnode-qty {
    font-size: 11px;
    color: var(--black-50);
    margin-top: 4px;
}
.bom-explorer .vnode-alt {
    font-size: 10px;
    font-weight: 500;
    color: var(--black-50);
    margin-top: 2px;
}
.bom-explorer .vnode-desc {
    font-size: 10px;
    color: var(--black-50);
    margin-top: 3px;
    font-style: italic;
    word-break: break-word;
    line-height: 1.3;
}

.bom-explorer .vnode-children {
    display: flex;
    gap: 16px;
    padding-top: 40px;
    position: relative;
}

.bom-explorer .tree-svg-container {
    position: relative;
}
.bom-explorer .tree-connectors {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}
.bom-explorer .bom-connector {
    fill: none;
    stroke: var(--black-25);
    stroke-width: 1.5;
}

/* Magnifier button on each vnode-card - hidden until the card is hovered. */
.bom-explorer .vnode-mag {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--black-50);
    border: 1px solid var(--black-15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.15s, transform 0.15s, color 0.15s, background 0.15s;
    text-decoration: none;
    font-size: 11px;
    z-index: 2;
    pointer-events: auto;
}
.bom-explorer .vnode-card:hover > .vnode-mag {
    opacity: 1;
    transform: scale(1);
}
.bom-explorer .vnode-mag:hover {
    color: var(--jmPrimary);
    background: rgba(13, 125, 252, 0.08);
}

/* ============================================================================ */
/* BOM Explorer - Detail pane (3rd column)                                      */
/* ============================================================================ */

.bom-explorer .bom-detail {
    border: 1px solid var(--black-15);
    background: var(--white);
    max-height: 80vh;
    overflow: auto;
}

.bom-explorer .bom-detail-header {
    border-bottom: 1px solid var(--black-15);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}

.bom-explorer .bom-detail-pn {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    word-break: break-all;
    line-height: 1.2;
}

.bom-explorer .bom-detail-name {
    font-size: 11px;
    word-break: break-word;
    line-height: 1.2;
}

.bom-explorer .bom-detail-body {
    padding-top: 12px;
}

.bom-explorer .bom-d-section {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black-50);
    margin: 12px 0 6px;
    border-bottom: 1px solid var(--black-15);
    padding-bottom: 2px;
}

.bom-explorer .bom-d-row {
    display: flex;
    flex-direction: column;
    padding: 3px 0;
    gap: 1px;
}

.bom-explorer .bom-d-label {
    font-size: 10px;
    color: var(--black-50);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bom-explorer .bom-d-value {
    font-size: 12px;
    color: var(--black);
    word-break: break-word;
}

.bom-explorer .bom-d-desc {
    font-size: 11px;
    color: var(--black-75);
    font-style: italic;
    word-break: break-word;
    line-height: 1.3;
}

.bom-explorer .bom-d-footer {
    border-top: 1px solid var(--black-15);
    padding-top: 10px;
}

.jmBOMExplorerLoading {
    background-color: var(--jmPrimary);
    color: white;

    text-align: center;
    padding: 10px !important;
    border-radius: 5px;
    z-index: 1000;
    font-size: 1rem;
    font-weight: 300;
}


/* ============================================================================ */
/* Required-field marker - appended by js/site.js to labels whose corresponding  */
/* input/select/textarea is required (validation attribute or HTML required).    */
/* ============================================================================ */
.required-mark {
    color: var(--bs-danger, #dc3545);
    margin-left: 2px;
    font-weight: 700;
}


/* ============================================================================ */
/* Equipment status marker - shown alongside an equipment name when it's        */
/* currently inactive (Equipment.IsActive = false).                             */
/* ============================================================================ */
.equip-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-danger, #dc3545);
    vertical-align: middle;
    margin-right: 4px;
}

.equip-status-inactive {
    font-size: 11px;
    font-weight: 600;
    color: var(--bs-danger, #dc3545);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


