/* Price meaning belongs beside the input and column heading, not in small help text. */
:is(.fd-platform, #fdc-app) .fd-price-basis {
    display: block;
    margin-block: 8px 5px;
    padding: 10px 12px;
    border-inline-start: 3px solid #375bb6;
    border-radius: 4px;
    background: #eef2fb;
    color: #223f85;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    box-sizing: border-box;
}
:is(.fd-platform, #fdc-app) .fd-price-basis > strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    color: inherit;
}
/* The same three meanings use the same colours in every price view. */
:is(.fd-platform, #fdc-app) .fd-price-basis-incl { border-color: #375bb6; background: #eef2fb; color: #223f85; }
:is(.fd-platform, #fdc-app) .fd-price-basis-excl { border-color: #a66b16; background: #fff7e8; color: #63400e; }
:is(.fd-platform, #fdc-app) .fd-price-basis-after { border-color: #207044; background: #edf8ef; color: #205d36; }
:is(.fd-platform, #fdc-app) .fd-price-basis .fd-price-basis-note { display: block; margin-top: 5px; font-size: 12px; font-weight: 400; line-height: 1.5; }
:is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th .fd-price-basis { min-width: 160px; max-width: 340px; margin-block: 4px 0; padding: 4px 6px; }
:is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th .fd-price-basis > strong { font-size: 13px; line-height: 1.4; }
:is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th .fd-price-basis-note { font-size: 11px; line-height: 1.4; }
:is(.fd-platform, #fdc-app) .fd-price-row-tax { display: block; margin-top: 6px; font-size: 12px; white-space: normal; }
@media (max-width:700px) {
    :is(.fd-platform, #fdc-app) .fd-price-basis > strong { font-size:16px; }
}

#fdc-app .fd-dv-list th:not(:last-child), #fdc-app .fd-dv-list td:not(:last-child) { border-inline-end: 1px solid #b9cdd5; }

/* Keep rows compact in both portal shells, regardless of the surrounding theme.
   Tables scroll inside their own region instead of squeezing action text vertically. */
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list):focus-visible {
    outline: 3px solid #087466;
    outline-offset: 3px;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) table {
    display: table;
    width: 100%;
    min-width: 600px;
    max-width: none;
    table-layout: auto;
    border-collapse: collapse;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) :is(th, td) {
    height: auto;
    min-width: 76px;
    padding: 5px 10px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.45;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th { vertical-align: top; }
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) :is(th, td).fd-data-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) td.fd-data-text {
    min-width: 144px;
    max-width: 320px;
    overflow-wrap: break-word;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) :is(th, td):last-child {
    width: 1%;
    min-width: 106px;
    white-space: nowrap;
    text-align: right;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
    max-width: none;
    min-height: 32px;
    height: auto;
    padding: 4px 10px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    writing-mode: horizontal-tb;
    line-height: 1.4;
}
html body :is(.fd-platform, #fdc-app) .fd-price-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #cedbe0;
    font-size: 12px;
    line-height: 1.5;
}
html body :is(.fd-platform, #fdc-app) .fd-price-key {
    display: inline-block;
    border-inline-start: 3px solid;
    border-radius: 4px;
    padding: 5px 8px;
    white-space: normal;
}

/* Shared density and sortable headings for all business and price tables. */
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th { padding-block: 7px; }
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button.fd-table-sort {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    min-height: 28px;
    max-width: 100%;
    padding: 3px 0;
    margin: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button.fd-table-sort:hover { text-decoration: underline; }
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button.fd-table-sort:focus-visible { outline: 2px solid #207044; outline-offset: 3px; }
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button.fd-table-sort:disabled { cursor: wait; opacity: .6; }
/* Match numeric heading text to the value's right edge. The sort indicator sits
   before the heading so it does not offset the label from its data column. */
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th.fd-data-number button.fd-table-sort {
    flex-direction: row-reverse;
    text-align: right;
}
html body :is(.fd-platform, #fdc-app) .fd-table-sort-indicator { flex: 0 0 auto; min-width: 1em; font-weight: 700; }
html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) th:has(.fd-price-basis-after) { color: #205d36; }
@media (pointer: coarse) {
    html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button { min-height: 44px; }
    html body :is(.fd-platform, #fdc-app) :is(.fd-pt-list, .fd-dv-list) button.fd-table-sort { min-height: 44px; }
}

/* Exact meaning stays visible; longer explanations open on request. */
html body :is(.fd-platform,#fdc-app) .fd-price-basis {padding:6px 9px;margin:6px 0;border-radius:4px;}
html body :is(.fd-platform,#fdc-app) .fd-price-basis>strong {font-size:12px;font-weight:650;}
html body :is(.fd-platform,#fdc-app) .fd-price-basis-help {font-size:12px;line-height:1.5;color:#49616b;margin:4px 0 10px;}
html body :is(.fd-platform,#fdc-app) .fd-price-basis-help summary {cursor:pointer;color:#235647;}
html body :is(.fd-platform,#fdc-app) .fd-price-basis-help p {margin:6px 0;}
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis {padding:8px 12px 2px;border-bottom:1px solid #e1e8eb;}
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis .fd-price-basis {display:inline-block;margin:0;}
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) th {padding:8px 10px;vertical-align:middle;}
/* 2.00.10: one compact, explicit tax basis above each list; help is secondary. */
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis {display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 12px;border-bottom:1px solid #e2e9e4;}
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis .fd-price-basis {margin:0;padding:5px 8px;}
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis .fd-price-basis-help {margin:0;}
html body :is(.fd-platform,#fdc-app) .fd-table-price-basis .fd-price-basis-help[open] {flex-basis:100%;}
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) :is(th,td) {padding-block:7px;}
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) th {background:#f6f8f6;}
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) td {border-bottom-color:#edf1ee;}
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) button[data-pt-open],
html body :is(.fd-platform,#fdc-app) :is(.fd-pt-list,.fd-dv-list) button[data-dv-open] {min-width:70px;border-color:#d6e1da;border-radius:6px;}
