/* ================================================================
   B2BSA Quotes – Styles
   ================================================================ */

/* ── Saved confirmation msg (uses theme's success color via inherit) ─ */
.b2bsa-saved-msg {
    font-size: 13px;
    color: inherit;
    margin: 6px 0 0;
}
.b2bsa-saved-msg .fa { color: #2e7d32; margin-right: 3px; }

/* ── Varukorg: Offert-knappsektion ──────────────────────────────── */
.b2bsa-quote-cart-wrap {
    background: #f8f9ff;
    border: 1px solid #d0d6f7;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 20px;
}

.b2bsa-quote-cart-wrap h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.b2bsa-quote-for {
    margin: 0 0 14px;
    font-size: 14px;
    color: #555;
}

.b2bsa-save-quote-btn {
    cursor: pointer;
    transition: opacity .2s;
}

.b2bsa-save-quote-btn:hover {
    opacity: .85;
}

/* ── Offertmeddelanden (WC notice-klasser styr färger) ────────── */
.b2bsa-quote-msg {
    margin-top: 12px;
}

/* ── Offertlista ────────────────────────────────────────────────── */
.b2bsa-quotes-wrap {
    max-width: 100%;
}

.b2bsa-quotes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.b2bsa-quotes-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
}

.b2bsa-quotes-empty {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.b2bsa-quotes-empty-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.b2bsa-quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.b2bsa-quotes-table th {
    background: #f4f5f7;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.b2bsa-quotes-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.b2bsa-quotes-table tr:hover td {
    background: #fafafa;
}

/* ── Status-badges ──────────────────────────────────────────────── */
.b2bsa-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.b2bsa-status-quote {
    background: #e3f2fd;
    color: #1565c0;
}

.b2bsa-status-accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.b2bsa-status-expired {
    background: #f5f5f5;
    color: #757575;
}

.b2bsa-expired-date {
    color: #c62828;
    font-style: italic;
}

/* ── Toolbar: sök + räknare ─────────────────────────────────────── */
.b2bsa-list-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.b2bsa-search-field-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
}

.b2bsa-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

.b2bsa-quote-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.b2bsa-quote-search-input:focus {
    border-color: #1a1a2e !important;
    box-shadow: 0 0 0 2px rgba(26,26,46,.08) !important;
    outline: none;
}

.b2bsa-quote-count {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* ── Tabellwrapper (horisontell scroll på mobil) ─────────────────── */
.b2bsa-quotes-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Sorteringskolumner ─────────────────────────────────────────── */
.b2bsa-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.b2bsa-sortable:hover {
    background: #e8eaf0 !important;
}

.b2bsa-sort-icon {
    margin-left: 4px;
    font-size: 11px;
    opacity: .4;
}

.b2bsa-sortable.b2bsa-sort-asc .b2bsa-sort-icon,
.b2bsa-sortable.b2bsa-sort-desc .b2bsa-sort-icon {
    opacity: 1;
}

.b2bsa-sortable.b2bsa-sort-asc .b2bsa-sort-icon::after { content: '↑'; }
.b2bsa-sortable.b2bsa-sort-desc .b2bsa-sort-icon::after { content: '↓'; }
.b2bsa-sortable:not(.b2bsa-sort-asc):not(.b2bsa-sort-desc) .b2bsa-sort-icon::after { content: '↕'; }

/* ── Kolumnbredder ──────────────────────────────────────────────── */
.b2bsa-col-id      { width: 70px; }
.b2bsa-col-company { min-width: 130px; }
.b2bsa-col-contact { min-width: 120px; }
.b2bsa-col-label   { min-width: 140px; }
.b2bsa-col-date    { width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b2bsa-col-total   { width: 90px; }
.b2bsa-col-status  { width: 110px; }
.b2bsa-col-action  { width: 70px; }
.b2bsa-col-actions { width: 190px; white-space: nowrap; }
.b2bsa-th-actions  { width: 190px; }
.b2bsa-th-id       { width: 80px; }
.b2bsa-th-date     { width: 100px; }
.b2bsa-col-right   { text-align: right !important; }

/* ── Åtgärdsknappar i listan ────────────────────────────────────── */
.b2bsa-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .15s, background .15s;
    line-height: 1.4;
    vertical-align: middle;
    margin-bottom: 2px;
}

.b2bsa-btn-pdf {
    background: #f5f5f5 !important;
    color: #333 !important;
    border-color: #d0d0d0 !important;
}
.b2bsa-btn-pdf:hover {
    background: #eee !important;
    color: #111 !important;
}

.b2bsa-btn-edit {
    background: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
}
.b2bsa-btn-edit:hover {
    opacity: .82;
    color: #fff !important;
}

.b2bsa-btn-order {
    background: #2e7d32 !important;
    color: #fff !important;
    border-color: #2e7d32 !important;
    font-family: inherit;
}
.b2bsa-btn-order:hover:not(:disabled) {
    background: #256427 !important;
    color: #fff !important;
}
.b2bsa-btn-order:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.b2bsa-btn-done {
    color: #2e7d32;
    font-size: 12px;
}

/* Bakåtkompatibilitet */
.b2bsa-btn-view-quote {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1a2e !important;
    color: #fff !important;
    border: 1px solid #1a1a2e !important;
    padding: 5px 14px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    transition: opacity .15s !important;
    cursor: pointer !important;
}
.b2bsa-btn-view-quote:hover {
    opacity: .82 !important;
    color: #fff !important;
}
.b2bsa-label-cell {
    position: relative;
}

.b2bsa-label-display {
    display: block;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color .15s, background .15s;
    font-size: 13px;
    line-height: 1.4;
}

.b2bsa-label-display:hover {
    border-color: #c5cae9;
    background: #f3f4fb;
}

.b2bsa-label-empty {
    color: #aaa;
    font-style: italic;
}

.b2bsa-label-input {
    width: 100%;
    padding: 4px 8px !important;
    border: 1px solid #5c6bc0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    box-shadow: 0 0 0 2px rgba(92,107,192,.15) !important;
    box-sizing: border-box;
    outline: none;
}

.b2bsa-quotes-noresults {
    text-align: center;
    color: #888;
    padding: 32px 0;
    font-style: italic;
}

/* ── Visa-knapp – samma teknik som b2bsa-btn-shop ───────────────── */
.b2bsa-btn-view-quote {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1a2e !important;
    color: #fff !important;
    border: 1px solid #1a1a2e !important;
    padding: 5px 14px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    transition: opacity .15s !important;
    cursor: pointer !important;
}

.b2bsa-btn-view-quote:hover {
    opacity: .82 !important;
    color: #fff !important;
}

/* ── Märkning: inline-redigering ────────────────────────────────── */
.b2bsa-quote-detail {
    max-width: 100%;
}

.b2bsa-quote-detail-header {
    margin-bottom: 20px;
}

.b2bsa-back-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.b2bsa-back-link:hover {
    color: #1a1a2e;
}

.b2bsa-quote-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.b2bsa-quote-title-row h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
}

/* ── Referens-grid (2 kolumner) ─────────────────────────────────── */
.b2bsa-detail-grid {
    display: flex !important;
    flex-direction: row !important;
    background: #f8f9ff;
    border: 1px solid #e0e4f5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.b2bsa-detail-col {
    flex: 1 1 0% !important;
    padding: 20px 24px;
    min-width: 0;
}

.b2bsa-detail-col + .b2bsa-detail-col {
    border-left: 1px solid #e0e4f5;
}

.b2bsa-detail-section {
    margin-bottom: 16px;
}

.b2bsa-detail-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #888;
    margin: 0 0 8px;
}

.b2bsa-ref-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.b2bsa-ref-sub {
    font-size: 13px;
    color: #555;
    margin: 2px 0;
}

.b2bsa-ref-sub a {
    color: #555;
    text-decoration: none;
}

.b2bsa-ref-sub a:hover {
    color: #1a1a2e;
    text-decoration: underline;
}

.b2bsa-ref-empty {
    color: #bbb;
    font-style: italic;
    margin: 0;
}

.b2bsa-detail-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2bsa-date-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2bsa-date-item span:last-child {
    font-size: 14px;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
}

/* ── Villkor-grid (märkning, leverans, betalning) ───────────────── */
.b2bsa-terms-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.b2bsa-terms-item {
    flex: 1 1 calc( 50% - 24px ) !important;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b2bsa-terms-item span:not(.b2bsa-meta-label) {
    font-size: 14px;
    color: #1a1a2e;
}

.b2bsa-terms-input {
    padding: 7px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    color: #1a1a2e !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-sizing: border-box;
    width: 100%;
}

.b2bsa-terms-input:focus {
    border-color: #1a1a2e !important;
    box-shadow: 0 0 0 2px rgba(26,26,46,.08) !important;
    outline: none !important;
}

.b2bsa-terms-select {
    padding: 7px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    color: #1a1a2e !important;
    background: #fff !important;
    width: 100%;
    cursor: pointer;
    transition: border-color .2s !important;
}

.b2bsa-terms-select:focus {
    border-color: #1a1a2e !important;
    outline: none !important;
}

.b2bsa-fields-saved-msg {
    font-size: 13px;
    color: #2e7d32;
    margin: -12px 0 16px 2px;
}

/* ── Cart: märkningsfält ────────────────────────────────────────── */
.b2bsa-cart-label-wrap {
    margin-bottom: 14px;
}

.b2bsa-cart-label-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.b2bsa-cart-label-input {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    box-sizing: border-box;
}

.b2bsa-cart-label-input:focus {
    border-color: #1a1a2e !important;
    outline: none !important;
}

/* ── .b2bsa-meta-label (återanvänds i detalj) ───────────────────── */
/* ── Produkttabell ──────────────────────────────────────────────── */
.b2bsa-quote-items-wrap h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.b2bsa-quote-items-table {
    width: 100%;
    border-collapse: collapse;
}

.b2bsa-quote-items-table th {
    background: #f4f5f7;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    text-align: left;
}

.b2bsa-quote-items-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.b2bsa-quote-items-table tfoot td {
    padding: 10px 14px;
    font-size: 14px;
    color: #555;
}

.b2bsa-grand-total-row td {
    padding-top: 14px !important;
    font-size: 16px !important;
    color: #1a1a2e !important;
    border-top: 2px solid #ddd !important;
}

.b2bsa-totals-label {
    text-align: right;
}

.b2bsa-item-sku {
    color: #888;
    font-size: 13px;
}

/* ── Prisredigering ─────────────────────────────────────────────── */
.b2bsa-price-edit-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.b2bsa-price-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a2e;
    transition: border-color .2s, box-shadow .2s;
}

.b2bsa-price-input:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26,26,46,.1);
    outline: none;
}

.b2bsa-currency {
    font-size: 13px;
    color: #888;
}

.b2bsa-orig-price {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.b2bsa-orig-price-del {
    font-size: 12px;
    color: #aaa;
    margin-left: 4px;
}

/* ── Åtgärdsknappar ─────────────────────────────────────────────── */
.b2bsa-quote-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.b2bsa-agent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.b2bsa-btn-save-prices {
    cursor: pointer;
    transition: all .2s;
}

.b2bsa-btn-save-prices:hover,
.b2bsa-btn-save-prices.b2bsa-prices-dirty {
    opacity: .85;
}

.b2bsa-btn-send {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    text-decoration: none !important;
}

.b2bsa-btn-send:hover {
    opacity: .85;
}

.b2bsa-btn-order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity .2s;
}

.b2bsa-btn-order:hover {
    opacity: .88;
}

.b2bsa-btn-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity .15s;
}

.b2bsa-btn-copy:hover {
    opacity: .85;
}

/* ── Notices (WC notice-klasser styr färger) ────────────────────── */

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVT – Tablet (max 900px)
══════════════════════════════════════════════════════════════════ */
@media ( max-width: 900px ) {

    /* Krymp nav lite */
    body.b2bsa-account-page .woocommerce-MyAccount-navigation {
        flex: 0 0 140px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVT – Mobil (max 650px)
══════════════════════════════════════════════════════════════════ */
@media ( max-width: 650px ) {

    /* ── Layout: stapla nav ovanför content ── */
    body.b2bsa-account-page .woocommerce {
        flex-direction: column !important;
        gap: 0 !important;
    }

    body.b2bsa-account-page .woocommerce-MyAccount-navigation {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    body.b2bsa-account-page .woocommerce-MyAccount-content {
        width: 100% !important;
        padding: 12px 0 !important;
    }

    /* ── Mobil nav-toggle ── */

    /* Knappen som alltid syns */
    .b2bsa-nav-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: #f5f6fa;
        border: 1px solid #e0e3ee;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 4px;
        text-align: left;
    }

    .b2bsa-nav-toggle-icon {
        font-size: 18px;
        line-height: 1;
    }

    .b2bsa-nav-toggle-chevron {
        margin-left: auto;
        transition: transform .2s;
        font-style: normal;
        font-size: 12px;
        color: #888;
    }

    .b2bsa-nav-open .b2bsa-nav-toggle-chevron {
        transform: rotate(180deg);
    }

    /* Navigationen kollapsad som standard på mobil */
    body.b2bsa-account-page .woocommerce-MyAccount-navigation ul {
        display: none;
        background: #fff;
        border: 1px solid #e0e3ee;
        border-radius: 8px;
        padding: 6px 0 !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    body.b2bsa-account-page .woocommerce-MyAccount-navigation.b2bsa-nav-open ul {
        display: block !important;
    }

    /* Länkarna i dropdown */
    body.b2bsa-account-page .woocommerce-MyAccount-navigation li {
        border-bottom: none !important;
    }

    body.b2bsa-account-page .woocommerce-MyAccount-navigation li a {
        display: block;
        padding: 10px 16px !important;
        font-size: 14px;
        color: #333;
        text-decoration: none;
    }

    body.b2bsa-account-page .woocommerce-MyAccount-navigation li.is-active a,
    body.b2bsa-account-page .woocommerce-MyAccount-navigation li a:hover {
        background: #f0f2f8;
        color: #2d6a9f;
    }

    /* ── Offertlistan: göm tabell, visa som kort ── */
    .b2bsa-quotes-table {
        display: none !important;
    }

    .b2bsa-quote-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .b2bsa-quote-card {
        background: #fff;
        border: 1px solid #e5e7ef;
        border-radius: 8px;
        padding: 14px 16px;
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .b2bsa-quote-card:hover {
        border-color: #2d6a9f;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }

    .b2bsa-card-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .b2bsa-card-id {
        font-size: 15px;
        font-weight: 700;
        color: #2d6a9f;
    }

    .b2bsa-card-company {
        font-size: 14px;
        color: #333;
        margin-bottom: 6px;
    }

    .b2bsa-card-meta {
        display: flex;
        gap: 12px;
        font-size: 12px;
        color: #888;
        flex-wrap: wrap;
    }

    .b2bsa-card-total {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
    }

    /* ── Offertdetalj: info-grid staplas ── */
    .b2bsa-detail-grid {
        flex-direction: column !important;
    }

    /* ── Produkttabell: göm kolumner, visa kompakt ── */
    .b2bsa-quote-items-table {
        font-size: 12px !important;
    }

    /* Göm drag-handle och tom kolumn på mobil */
    .b2bsa-quote-items-table th:first-child,
    .b2bsa-quote-items-table td:first-child,
    .b2bsa-quote-items-table th:last-child,
    .b2bsa-quote-items-table td:last-child {
        display: none !important;
    }

    /* Göm enhet-kolumn */
    .b2bsa-quote-items-table th:nth-child(5),
    .b2bsa-quote-items-table td:nth-child(5) {
        display: none !important;
    }

    /* Art nr: kortare */
    .b2bsa-quote-items-table th:nth-child(2),
    .b2bsa-quote-items-table td:nth-child(2) {
        max-width: 60px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Antal: krympt */
    .b2bsa-quote-items-table th:nth-child(4),
    .b2bsa-quote-items-table td:nth-child(4) {
        width: 80px !important;
    }

    /* Qty-knappar: lite mindre */
    .b2bsa-qty-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 14px !important;
    }

    .b2bsa-qty-input {
        width: 36px !important;
        font-size: 12px !important;
    }

    /* Pris-input: smalare */
    .b2bsa-price-input {
        width: 70px !important;
        font-size: 12px !important;
    }

    /* Sökfält */
    .b2bsa-list-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .b2bsa-search-field-wrap {
        width: 100% !important;
    }

    .b2bsa-search-field-wrap input {
        width: 100% !important;
    }

    /* Knappar */
    .b2bsa-quote-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .b2bsa-agent-actions {
        flex-direction: column !important;
    }

    .b2bsa-quote-actions .button,
    .b2bsa-agent-actions .button {
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tillbaka-länk + rubrik */
    .b2bsa-quote-title-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* ── Positionsrader ─────────────────────────────────────────────── */
.b2bsa-section-row td {
    background: #f0f2f8 !important;
    border-bottom: 1px solid #e0e4f5 !important;
    border-top: 2px solid #d0d5ea !important;
}

.b2bsa-section-label-input:hover {
    border-color: #c5cae9 !important;
    background: #fff !important;
}

/* ── Drag-and-drop ──────────────────────────────────────────────── */
.b2bsa-drag-handle {
    opacity: .35;
    transition: opacity .15s;
}

tr:hover .b2bsa-drag-handle {
    opacity: 1;
}

.b2bsa-sortable-placeholder {
    background: #e8eaf6 !important;
    height: 44px;
}

.b2bsa-sortable-placeholder td {
    visibility: hidden;
}

/* Qty +/- knappar */
.b2bsa-qty-btn:hover {
    background: #e8e8e8 !important;
    border-color: #bbb !important;
}

/* ══════════════════════════════════════════════════════════════════
   FULL BREDD – My Account
   Elementor-sektionen är satt till "Full bredd" i editorn.
   Vi behöver bara styra WC:s nav/content-layout.
══════════════════════════════════════════════════════════════════ */

body.b2bsa-account-page .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.b2bsa-account-page .woocommerce-MyAccount-navigation {
    flex: 0 0 180px !important;
    float: none !important;
}

body.b2bsa-account-page .woocommerce-MyAccount-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════════════
   PRODUKTTABELL – bättre läsbarhet
══════════════════════════════════════════════════════════════════ */
.b2bsa-quote-items-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

/* Benämnings-kolumnen får ta mer plats och bryts på ord */
.b2bsa-quote-items-table .b2bsa-item-name a,
.b2bsa-quote-items-table td.b2bsa-item-name a {
    color: #2d6a9f !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    white-space: normal !important;
    display: block !important;
}

.b2bsa-quote-items-table a:hover {
    text-decoration: underline !important;
}

.b2bsa-quote-items-table td,
.b2bsa-quote-items-table th {
    padding: 10px 12px !important;
    vertical-align: middle !important;
}


/* ── Kit-förälder rad ───────────────────────────────────────────── */
.b2bsa-kit-parent-row {
    background: #fafbff !important;
    border-left: 3px solid #c5cae9;
}

.b2bsa-kit-parent-row td {
    border-bottom: 1px solid #e8eaf6 !important;
}

.b2bsa-kit-toggle {
    transition: background .15s;
}

.b2bsa-kit-toggle:hover {
    background: #e8eaf6 !important;
}

.b2bsa-kit-components > div:last-child {
    border-bottom: none !important;
}
