
[data-bjn-sales-hierarchy] {--ink:#183f46;--teal:#075861;--line:#d8e3e1;--muted:#647a7d;--paper:#f4f5f1;--gold:#aa793c;--light:#edf5f3;--danger:#963e36;color-scheme:light;font-family:Tahoma,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
[data-bjn-sales-hierarchy], [data-bjn-sales-hierarchy] * {box-sizing:border-box}
[data-bjn-sales-hierarchy] {margin:0;font-size:13px;line-height:1.65}
[data-bjn-sales-hierarchy] button, [data-bjn-sales-hierarchy] input, [data-bjn-sales-hierarchy] select {font:inherit}
[data-bjn-sales-hierarchy] button {cursor:pointer;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);padding:7px 12px;min-height:34px}
[data-bjn-sales-hierarchy] button:hover {background:var(--light)}
[data-bjn-sales-hierarchy] button:disabled {cursor:default;opacity:.55}
[data-bjn-sales-hierarchy] button:focus-visible, [data-bjn-sales-hierarchy] input:focus-visible, [data-bjn-sales-hierarchy] select:focus-visible, [data-bjn-sales-hierarchy] summary:focus-visible {outline:3px solid #c49a5d;outline-offset:2px}
[data-bjn-sales-hierarchy] header {background:#fff;border-bottom:1px solid var(--line)}
[data-bjn-sales-hierarchy] .top {max-width:1480px;margin:auto;padding:15px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}
[data-bjn-sales-hierarchy] .wordmark {display:flex;align-items:center;gap:12px}
[data-bjn-sales-hierarchy] .wordmark b {font-size:25px;letter-spacing:2px;color:var(--teal)}
[data-bjn-sales-hierarchy] .wordmark small {display:block;font-size:10px;letter-spacing:.6px}
[data-bjn-sales-hierarchy] .top-actions {display:flex;align-items:center;gap:8px}
[data-bjn-sales-hierarchy] .language {background:var(--teal);color:white;border-color:var(--teal);font-weight:bold}
[data-bjn-sales-hierarchy] .language:hover {background:#0b6871}
[data-bjn-sales-hierarchy] .language svg {width:16px;height:16px;vertical-align:middle;margin-inline-end:6px;fill:none;stroke:currentColor;stroke-width:1.7}
[data-bjn-sales-hierarchy] .top a {color:var(--teal);font-size:12px;text-decoration:none}
[data-bjn-sales-hierarchy] .local-banner {background:#fff4da;border-bottom:1px solid #e4d1a9;color:#705324;text-align:center;padding:8px 18px;font-size:12px}
[data-bjn-sales-hierarchy] .page {max-width:1480px;margin:auto;padding:22px 24px 30px}
[data-bjn-sales-hierarchy] .page-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
[data-bjn-sales-hierarchy] h1 {font-size:23px;margin:0 0 4px}
[data-bjn-sales-hierarchy] h2 {font-size:17px;margin:22px 0 12px}
[data-bjn-sales-hierarchy] h2 small, [data-bjn-sales-hierarchy] .archive-toggle small {font-size:10px;color:var(--muted);margin-inline-start:10px}
[data-bjn-sales-hierarchy] .subtitle {margin:0;color:var(--muted);font-size:12px}
[data-bjn-sales-hierarchy] .local-tools {margin-bottom:14px;border:1px solid var(--line);border-radius:7px;padding:7px 12px;background:#fff}
[data-bjn-sales-hierarchy] .local-tools summary {cursor:pointer;color:var(--muted);font-size:12px}
[data-bjn-sales-hierarchy] .tools-content {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:10px}
[data-bjn-sales-hierarchy] .tools-content select {border:1px solid var(--line);padding:6px;border-radius:5px}
[data-bjn-sales-hierarchy] .diag {white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--muted);font-size:11px}
[data-bjn-sales-hierarchy] .sales-app {border:1px solid var(--line);border-radius:9px;background:#fff;padding:14px;min-width:0}
[data-bjn-sales-hierarchy] .filters {display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:13px}
[data-bjn-sales-hierarchy] .filters label {display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted);min-width:140px}
[data-bjn-sales-hierarchy] .filters .search-label {flex:1;min-width:210px}
[data-bjn-sales-hierarchy] .filters input, [data-bjn-sales-hierarchy] .filters select {border:1px solid var(--line);border-radius:5px;padding:7px 9px;min-height:36px;background:#fff;color:var(--ink);width:100%}
[data-bjn-sales-hierarchy] .filters input[type=date], [data-bjn-sales-hierarchy] .filters input[type=month] {direction:ltr}
[data-bjn-sales-hierarchy] .directory-counts {font-size:12px;padding:9px 0;border-top:1px solid var(--line)}
[data-bjn-sales-hierarchy] .note {font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 12px}
[data-bjn-sales-hierarchy] .note.error {color:var(--danger);background:#fff2ef;padding:10px;border-radius:5px}
[data-bjn-sales-hierarchy] .loading {font-size:12px;color:var(--teal);padding:18px;margin:0}
[data-bjn-sales-hierarchy] .loading:before {content:'◌';display:inline-block;font-size:22px;vertical-align:middle;margin-inline-end:8px}
[data-bjn-sales-hierarchy] .hierarchy {width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
[data-bjn-sales-hierarchy] .hierarchy th {background:#eaf2ef;color:var(--ink);font-weight:normal;padding:10px 5px;text-align:start;border-block:1px solid var(--line);line-height:1.5}
[data-bjn-sales-hierarchy] .hierarchy td {padding:10px 5px;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle;overflow-wrap:anywhere}
[data-bjn-sales-hierarchy] .hierarchy th:first-child {width:3.5%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(2) {width:19%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(3) {width:7%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(4) {width:13%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(5) {width:7%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(n+6):nth-child(-n+9) {width:8%}
[data-bjn-sales-hierarchy] .hierarchy th:last-child {width:18.5%}
[data-bjn-sales-hierarchy] .hierarchy td:nth-child(n+5):nth-child(-n+9) {font-variant-numeric:tabular-nums}
[data-bjn-sales-hierarchy] .hierarchy td:nth-child(n+6):nth-child(-n+9), [data-bjn-sales-hierarchy] .hierarchy th:nth-child(n+6):nth-child(-n+9) {text-align:end}
[data-bjn-sales-hierarchy] .hierarchy td:last-child {font-size:10px;line-height:1.7}
[data-bjn-sales-hierarchy] .expand-row {cursor:pointer;transition:background .12s}
[data-bjn-sales-hierarchy] .expand-row:hover {background:#f0f6f4}
[data-bjn-sales-hierarchy] .expand-row[aria-expanded=true] {background:#e9f2ef}
[data-bjn-sales-hierarchy] .expand-row:focus-visible, [data-bjn-sales-hierarchy] .invoice-row:focus-visible {outline:2px solid var(--teal);outline-offset:-2px}
[data-bjn-sales-hierarchy] .expand-row strong {font-weight:normal}
[data-bjn-sales-hierarchy] .chevron {font-size:12px;color:var(--teal);margin-inline-end:6px;display:inline-block}
[data-bjn-sales-hierarchy] .missing, [data-bjn-sales-hierarchy] .partial {display:block;font-size:9px;line-height:1.5;margin-top:3px;color:#9b6740}
[data-bjn-sales-hierarchy] .expanded>td {padding:0!important;background:#fbfcfa}
[data-bjn-sales-hierarchy] .nested {padding:6px 10px 12px;border-inline-start:3px solid #aac4bd;margin-inline-start:13px;min-width:0}
[data-bjn-sales-hierarchy] .nested .hierarchy th {background:#f0f4f0}
[data-bjn-sales-hierarchy] .report {padding:12px 15px;background:#fafcfb;border:1px solid #d3e1dc;border-radius:5px;margin:7px 0 12px;min-width:0}
[data-bjn-sales-hierarchy] .report-top {display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-bottom:12px}
[data-bjn-sales-hierarchy] .tabs {display:flex;gap:3px;border-bottom:1px solid var(--line);flex-wrap:wrap;padding-bottom:6px}
[data-bjn-sales-hierarchy] .tabs button {border-color:transparent;background:transparent;border-radius:5px;padding:6px 9px;font-size:11px;min-height:33px}
[data-bjn-sales-hierarchy] .tabs button[aria-selected=true] {background:var(--teal);color:#fff}
[data-bjn-sales-hierarchy] .tab-panel {padding-top:11px;min-height:65px}
[data-bjn-sales-hierarchy] .compact {width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}
[data-bjn-sales-hierarchy] .compact th {background:#edf3ef;padding:8px 7px;text-align:start;font-weight:normal;color:var(--muted)}
[data-bjn-sales-hierarchy] .compact td {padding:8px 7px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}
[data-bjn-sales-hierarchy] .compact small {display:block;font-size:9px;color:var(--muted)}
[data-bjn-sales-hierarchy] .compact-wrap {min-width:0}
[data-bjn-sales-hierarchy] .invoice-row {cursor:pointer}
[data-bjn-sales-hierarchy] .invoice-row:hover {background:#eff5f1}
[data-bjn-sales-hierarchy] .invoice-subrow>td {padding:0 7px 10px}
[data-bjn-sales-hierarchy] .invoice-expanded {padding:8px 10px;border-inline-start:2px solid #a8c5bd;background:#fff}
[data-bjn-sales-hierarchy] .inline-totals {font-size:11px;line-height:1.8;margin:5px 0 11px}
[data-bjn-sales-hierarchy] .inline-tenders {font-size:11px;padding-top:8px;color:var(--muted)}
[data-bjn-sales-hierarchy] .pager {display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 0 4px;font-size:11px}
[data-bjn-sales-hierarchy] .pager button {padding:4px 10px;font-size:11px;min-height:30px}
[data-bjn-sales-hierarchy] .device-section {border-top:1px solid var(--line);margin-top:24px;padding-top:1px}
[data-bjn-sales-hierarchy] .archive-toggle {width:100%;text-align:start;background:transparent;border:0;font-weight:bold;padding:15px 0;font-size:15px}
[data-bjn-sales-hierarchy] .closing-record {border-bottom:1px solid var(--line);padding:9px 0}
[data-bjn-sales-hierarchy] .closing-record>strong {font-size:12px}
[data-bjn-sales-hierarchy] .closing-record dl, [data-bjn-sales-hierarchy] .audit-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
[data-bjn-sales-hierarchy] .closing-record dl>div, [data-bjn-sales-hierarchy] .audit-summary>div {min-width:0}
[data-bjn-sales-hierarchy] .closing-record dt, [data-bjn-sales-hierarchy] .audit-summary dt {font-size:10px;color:var(--muted)}
[data-bjn-sales-hierarchy] .closing-record dd, [data-bjn-sales-hierarchy] .audit-summary dd {font-size:11px;margin:3px 0 0}
[data-bjn-sales-hierarchy] .technical {font-size:11px;margin-top:14px;color:var(--muted)}
[data-bjn-sales-hierarchy] .technical summary {cursor:pointer}
[data-bjn-sales-hierarchy] .technical pre {background:#eef2f0;border-radius:5px;padding:10px;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow-y:auto}
[data-bjn-sales-hierarchy] footer {max-width:1480px;padding:14px 24px;margin:auto;font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}
[data-bjn-sales-hierarchy] #announcer {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1050px){
[data-bjn-sales-hierarchy] .page {padding:16px 12px}
[data-bjn-sales-hierarchy] .top {padding-inline:16px}
[data-bjn-sales-hierarchy] .hierarchy {font-size:10px}
[data-bjn-sales-hierarchy] .hierarchy td, [data-bjn-sales-hierarchy] .hierarchy th {padding-inline:4px}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(2) {width:17%}
[data-bjn-sales-hierarchy] .hierarchy th:nth-child(4) {width:14%}
[data-bjn-sales-hierarchy] .hierarchy th:last-child {width:19.5%}
[data-bjn-sales-hierarchy] .sales-app {padding:10px}}
@media(max-width:760px){
[data-bjn-sales-hierarchy] {font-size:12px}
[data-bjn-sales-hierarchy] .top {padding:10px 12px}
[data-bjn-sales-hierarchy] .wordmark b {font-size:22px}
[data-bjn-sales-hierarchy] .wordmark small {font-size:8px}
[data-bjn-sales-hierarchy] .top-actions {gap:5px}
[data-bjn-sales-hierarchy] .top a {font-size:10px}
[data-bjn-sales-hierarchy] .top-actions button {padding:6px 9px}
[data-bjn-sales-hierarchy] .local-banner {font-size:10px}
[data-bjn-sales-hierarchy] .page {padding:14px 10px}
[data-bjn-sales-hierarchy] .page-heading {display:block}
[data-bjn-sales-hierarchy] h1 {font-size:20px}
[data-bjn-sales-hierarchy] .subtitle {font-size:11px}
[data-bjn-sales-hierarchy] .local-tools {margin-top:12px}
[data-bjn-sales-hierarchy] .filters {gap:8px}
[data-bjn-sales-hierarchy] .filters label {min-width:0;flex:1 1 42%}
[data-bjn-sales-hierarchy] .filters .search-label {min-width:0;flex-basis:100%}
[data-bjn-sales-hierarchy] .filters>button {font-size:11px;padding:5px 9px}
[data-bjn-sales-hierarchy] .hierarchy, [data-bjn-sales-hierarchy] .hierarchy>tbody {display:block;width:100%}
[data-bjn-sales-hierarchy] .hierarchy>thead {position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row {position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line);padding:8px 8px 6px;gap:4px 10px}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td {border:0;padding:2px 0;font-size:11px;overflow-wrap:anywhere;min-width:0;text-align:start!important}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:before {content:attr(data-label);display:block;font-size:9px;color:var(--muted);line-height:1.5;margin-bottom:2px}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:first-child {position:absolute;inset-inline-end:8px;top:8px;width:23px;display:block;font-size:9px}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:first-child:before {display:none}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:nth-child(2) {grid-column:1/-1;font-size:12px;padding-bottom:5px;padding-inline-end:30px}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:nth-child(2):before {display:none}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:nth-child(10) {grid-column:1/-1;border-top:1px dotted var(--line);margin-top:3px;padding-top:4px}
[data-bjn-sales-hierarchy] .hierarchy tr.expand-row>td:nth-child(10):before {display:inline;margin-inline-end:7px}
[data-bjn-sales-hierarchy] .hierarchy tr.expanded {display:block}
[data-bjn-sales-hierarchy] .hierarchy tr.expanded>td {display:block;width:100%;border:0}
[data-bjn-sales-hierarchy] .nested {padding:3px 4px;margin-inline-start:5px;border-inline-start-width:2px}
[data-bjn-sales-hierarchy] .report {padding:9px 7px;margin-block:4px 10px}
[data-bjn-sales-hierarchy] .report-top {gap:4px 10px;font-size:9px}
[data-bjn-sales-hierarchy] .tabs {gap:2px}
[data-bjn-sales-hierarchy] .tabs button {font-size:10px;padding:5px 7px}
[data-bjn-sales-hierarchy] .compact {font-size:10px}
[data-bjn-sales-hierarchy] .compact th, [data-bjn-sales-hierarchy] .compact td {padding:7px 4px}
[data-bjn-sales-hierarchy] .compact-wrap {width:100%}
[data-bjn-sales-hierarchy] .compact th:first-child {width:23%}
[data-bjn-sales-hierarchy] .invoice-table>thead {position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
[data-bjn-sales-hierarchy] .invoice-table, [data-bjn-sales-hierarchy] .invoice-table>tbody {display:block}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);padding-block:7px;gap:3px 6px}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row td {border:0;padding:1px 0;font-size:10px;min-width:0}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row td:before {content:attr(data-label);display:block;font-size:8px;color:var(--muted)}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row td:first-child {grid-column:1/-1;font-size:11px}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row td:first-child:before {display:none}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-row td:nth-child(2) {grid-column:1/3}
[data-bjn-sales-hierarchy] .invoice-table tr.invoice-subrow, [data-bjn-sales-hierarchy] .invoice-table tr.invoice-subrow>td {display:block;width:100%;padding-inline:0}
[data-bjn-sales-hierarchy] .invoice-expanded {padding:7px 4px}
[data-bjn-sales-hierarchy] .invoice-expanded .compact {font-size:8px}
[data-bjn-sales-hierarchy] .invoice-expanded .compact td, [data-bjn-sales-hierarchy] .invoice-expanded .compact th {padding:5px 2px}
[data-bjn-sales-hierarchy] .inline-totals, [data-bjn-sales-hierarchy] .inline-tenders {font-size:10px}
[data-bjn-sales-hierarchy] .closing-record dl, [data-bjn-sales-hierarchy] .audit-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
[data-bjn-sales-hierarchy] .directory-counts {font-size:10px}
[data-bjn-sales-hierarchy] .note {font-size:10px}
[data-bjn-sales-hierarchy] .pager {gap:8px;font-size:10px}
[data-bjn-sales-hierarchy] footer {display:block;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){
[data-bjn-sales-hierarchy], [data-bjn-sales-hierarchy] * {transition:none!important}}

/* Keep original stored-line fields readable using the existing mobile card pattern. */
[data-bjn-sales-hierarchy] .hierarchy .source-items-table th {width:auto}
[data-bjn-sales-hierarchy] .hierarchy .source-items-table th:first-child {width:14%}
[data-bjn-sales-hierarchy] .hierarchy .source-items-table th:nth-child(2) {width:14%}
[data-bjn-sales-hierarchy] .hierarchy .source-items-table th:nth-child(3) {width:21%}
[data-bjn-sales-hierarchy] .source-items-table td bdi {white-space:nowrap}
@media(max-width:760px){
[data-bjn-sales-hierarchy] .source-items-table, [data-bjn-sales-hierarchy] .source-items-table>tbody {display:block;width:100%}
[data-bjn-sales-hierarchy] .source-items-table>thead {position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
[data-bjn-sales-hierarchy] .source-items-table>tbody>tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;border-bottom:1px solid var(--line);padding-block:10px}
[data-bjn-sales-hierarchy] .source-items-table>tbody>tr>td {display:block;min-width:0;border:0;padding:2px 0;font-size:11px;text-align:start!important}
[data-bjn-sales-hierarchy] .source-items-table>tbody>tr>td:before {content:attr(data-label);display:block;font-size:9px;color:var(--muted)}
[data-bjn-sales-hierarchy] .source-items-table>tbody>tr>td:nth-child(-n+3) {grid-column:1/-1}
}
@media print{
[data-bjn-sales-hierarchy] header, [data-bjn-sales-hierarchy] .local-tools, [data-bjn-sales-hierarchy] .filters, [data-bjn-sales-hierarchy] .pager, [data-bjn-sales-hierarchy] .top-actions {display:none!important}
[data-bjn-sales-hierarchy] {background:white}
[data-bjn-sales-hierarchy] .page {padding:0}
[data-bjn-sales-hierarchy] .sales-app {border:0}
[data-bjn-sales-hierarchy] .local-banner {background:white;border:1px solid #ccc}
[data-bjn-sales-hierarchy] .tabs button {border:1px solid #ccc}
[data-bjn-sales-hierarchy] .hierarchy {font-size:8pt}
[data-bjn-sales-hierarchy] tr {break-inside:avoid}
[data-bjn-sales-hierarchy] thead {display:table-header-group}
[data-bjn-sales-hierarchy] footer {font-size:8pt}
[data-bjn-sales-hierarchy] .technical:not([open]) {display:none}}
