
.table-container{
    overflow-y: auto;
    position: relative;
    border-bottom: 1px solid #dddddd;
}

.table-container table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 15px;
    background-color: white;
}

/*
thead{
  background-color: #e85171 !important;
}

th.sortable a, th.sorted a {
  color: #fff !important;
}

.wp-list-table thead th {
  color: #fff !important;
}*/

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    appearance: textfield;
    -moz-appearance: textfield;
}

.fa-icon{
  color: #878787
}

.fa-icon-link{
  color:#2271b1;
}

th.sortable a, th.sorted a {
  font-weight: 600;
}

.wp-list-table thead th {
  font-weight: 600;
}

.woocommerce-layout__header{
  display:none !important;
}

.post-type-shop_order .wrap {
    margin-top: 40px !important;
}

.post-type-shop_order .wp-list-table tbody td{
    line-height: 1.25rem !important;
}


.bb-display-value {
    line-height: 1.5;   /* reduce vertical spacing */
    display: inline-block; /* keeps it tight */
}


.order-status.status-shipped, .order-status.status-pickup
 {
    background: #e1c8d7;
    color: #650066;
}

.order-status.status-enviado {
    background: #e1c8d7;
    color: #650066;
}

.order-status.status-no-enviado {
    color: #454545;
    background: #e5e5e5;
}

#order_data .order_data_header{
  display:block !important;
}

input.input-duties, input.input-costo{
  width:90% !important;
}

#woocommerce-order-items .wc-order-totals .payment-fee .amount{
  font-weight:600 !important;
}

.bqo-shipment-pencil {
    display: none !important;
    cursor: pointer;
    font-size: 15px;
    width: 15px;
    height: 15px;
    vertical-align: middle;
}

.bqo-shipment-wrapper:hover .bqo-shipment-pencil {
    display: inline-block !important;
}

.bb-notes-hover {
    position: absolute;
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 8px 12px;
    font-size: 12px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 9999;
}
.bb-notes-hover .note-line {
    margin-bottom: 4px;
}
.bb-notes-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #007cba;
    padding: 12px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
}
.bb-notes-popup textarea {
    width: 100%;
    height: 60px;
    margin-bottom: 8px;
}
.bb-notes-popup .actions {
    text-align: right;
}

.bb-notes-list{
  margin-bottom:20px;
}

.bqo-products-section .column-is_in_stock{
  display:none !important;
}

.post-type-product table.wp-list-table .column-thumbnail{
    width: 45px;
}

.post-type-product table.wp-list-table .column-name{
    width: 25ch;
}

.post-type-product table.wp-list-table .column-cost, 
.post-type-product table.wp-list-table .column-net_utility{
    width: 8ch;
}

.post-type-product table.wp-list-table .column-is_rts{
    width: 8ch;
}

.post-type-product table.wp-list-table .column-taxonomy-product_brand,
.post-type-product table.wp-list-table .column-taxonomy-product_store,
.post-type-product table.wp-list-table .column-store,
.post-type-product table.wp-list-table .column-product_cat{
    width: 12ch !important;
}


.post-type-product table.wp-list-table .column-bqo_order{
  width:250px;
}

.bqo-store-pencil{
    opacity:0;
    font-size:14px;
    color:#666;
    transition:.15s;
    vertical-align:middle;
}

td.column-store:hover .bqo-store-pencil{
    opacity:1;
}

/* Align edit icon inline with price */
.costo-view {
    display: flex;
    float: right;
    align-items: center;
    gap: 6px;
}

/* Wrapper div inside td */
.costo-edit {
    display: flex;
    align-items: center;       /* ✅ vertical align the 3 columns */
    justify-content: space-evenly;
    /*gap: 10px;*/
    width: 100%;
    box-sizing: border-box;
}

/* Make all 3 columns behave similarly */
.costo-edit .field-group {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

/* Optional: fix toggle label positioning */
.bqo-toggle-wrapper {
    display: flex;
    align-items: center;
}

/* Optional: ensure inputs are consistent in height */
.costo-edit input[type="number"],
.costo-edit input[type="text"] {
    height: 30px;
    padding: 4px 8px;
    box-sizing: border-box;
    text-align: center;
    width:100px !important;
}


/* Save button styling */
.costo-edit .save-costo {
    padding: 4px 6px;
    font-size: 14px;
    cursor: pointer;
}

.costo-total-column label{
  position:absolute;
  top:45px;
}

/* Ensure the visible multiple-select matches the admin styling */
.ms-parent {
    min-width: 150px !important;
    margin-right: 5px;
    font-size: 13px;
    vertical-align: middle;
}

.ms-parent .ms-choice {
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    padding: 4px 6px;
    height: 32px;
    line-height: 20px;
    background-color: #fff;
    box-shadow: none;
}

#bb-order-status + .ms-parent .ms-choice {
    height: 40px;
    line-height: 40px;
}

#bb-order-status + .ms-parent .ms-choice > span {
    line-height: 40px;
    padding-top:0px !important;
}


/* Remove default focus ring and match WP look */
.ms-parent .ms-choice:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Adjust dropdown width */
.ms-drop {
    min-width: 150px !important;
    font-size: 13px;
    z-index: 9999; /* stay above other UI */
}

.ms-choice>span {
  padding-top: 5px;
}

/* Checkbox alignment inside dropdown */
.ms-drop ul > li label {
    margin-left: 15px;
    padding-left: .8rem !important
}


/* Optional: fix the 'All Countries' spacing */
.ms-drop ul > li:first-child label {
    font-weight: 600;
    padding-left: 0;
}

.ms-choice>span.placeholder {
      padding-top: 5px;
}

.ms-drop input[type="checkbox"]{
  height:16px !important;
}

/* Make currency columns narrower */
.wp-list-table .column-order_total{
    width: 50px !important;
    text-align: right !important;
    white-space: nowrap;
}

.wp-list-table th.column-shipment_id{
  width:62px !important
}

.wp-list-table .column-paid_amount,
.wp-list-table .column-balance_due,
.wp-list-table .column-costo_total,
.wp-list-table .column-utilidad,
.wp-list-table .column-payment_fees,
.wp-list-table .column-shipping_cost {
    width: 40px !important;
    text-align: right !important;
    white-space: nowrap;
}

.wp-list-table .column-order_number .order-preview {
  display:none !important;
}

.wp-list-table .column-bbz_preview{
  width: 20px !important;
  text-align: center !important;
}

.wp-list-table .column-bbz_preview a {
  display: inline-block;
  padding: 10px 4px 4px 4px;
  border-radius: 4px;
}

.wp-list-table .column-bbz_preview a:hover {
  border: 1px solid #2271b1;  
}

.wp-list-table .column-bbz_preview a.loading .dashicons::before {
    content: "\f463"; /* Dashicon spinner */
    display: inline-block;
    animation: bbz-spin 1s linear infinite;
}

@keyframes bbz-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wp-list-table .column-bbz_preview .dashicons{
  font-size: 16px;
}

#shipment-list .bb-product-description {
  max-width: 300px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  min-width: 225px;
}


.wp-list-table th.sortable a span{
  float:left !important;
}

.wp-list-table .column-bb_notes, .wp-list-table .column-bbz_flag{
    width: 12px !important;
    text-align: center !important;
    white-space: nowrap;
}

.wp-list-table .column-order_items_inventory{
  width:40px !important;
}

.column-order_total .tips del {
  display: block;
  color: #a44 !important;
  line-height: 1em;
}

.taxonomy-product_tag .column-posts{
  width: 15ch !important;
}

#filter-by-created-via{
  display:none;
}

/* Make artículos (items) column wider */
.wp-list-table .column-order_items_summary {
    width: 200px !important;
}

.wp-list-table .column-order_number{
  width:27ch !important;
}

.wp-list-table .column-order_number .row-actions,
.wp-list-table .column-deposit .row-actions{
  padding:0px !important;
  margin:0px !important;
  line-height: 1em !important;
}

.wp-list-table .column-order_number .row-actions.load-hidden {
    display: none;
}

.wp-list-table .column-shipment_id{
  width:10ch !important;
}
/* Optional: tweak country column */
.wp-list-table .column-client_country, .wp-list-table .column-order_status, .wp-list-table .column-order_status_term {
    width: 80px !important;
    white-space: nowrap;
}

.pagination-links .button{
  margin:0px 2px !important;
}

#woocommerce-order-items .wc-order-edit-line-item-actions a.delete-order-item{
  width:36px !important;
  background-color: #f1cdcd;
  padding: 2px 5px 5px 4px;
  color: #a44;

}
#woocommerce-order-items .wc-order-edit-line-item-actions .delete-order-item::before{
  font-family:inherit !important;
  content:"BORRAR" !important;
  font-size:9px;
  border-radius: 4px;
}

#bb-verify-address-toggle{
  cursor:pointer;
  font-weight:600;
  clear: both;
  padding-top:10px;
}

.post-type-shop_deposit .wrap {
  margin-top:40px !important
}

.wc-order-preview-deposit:not(.custom-deposits-preview) {
    display: none !important;
}

#the-list .type-shop_deposit .duplicate{
    display: none !important;
}

.post-type-shop_deposit td.check-column{
  width: 4% !important;
}


.wp-list-table th.column-deposit,
.wp-list-table th.column-deposit_status{
  width: 20% !important;
}

.wp-list-table th.column-deposit_date,
.wp-list-table th.column-deposit_paid_date,
.wp-list-table th.column-parent_order{
  width: 15% !important;
}

.wp-list-table th.column-total{
  width: 20% !important;
}


/*#order_data .wc-customer-user .select2-container  { display: none !important; }*/
#shipments, #shipment-detail{
  table-layout: auto;
  white-space: nowrap;
  margin-top:20px;
}

.admin_page_bb-shipments #wpbody-content .woocommerce_page_custom-clientes #wpbody-content{
  padding-bottom:0px;
}
.admin_page_bb-shipments #wpfooter, .woocommerce_page_custom-clientes #wpfooter{
  display:none !important;
}


.bbz-header-title-items{
  display: flex; 
  gap: 10px; 
  align-items: center;
}


#shipment-list, #sbox-list{
  width: 100%;
  table-layout: auto;
  white-space: nowrap;
}


#shipment-detail th, #shipment-list th {
  white-space: nowrap;
}

#shipment-detail td, #shipment-list td{
  white-space: nowrap;
}

#sbox-list td{
  vertical-align: middle;
  padding: 0.75em;
  white-space: normal;
}

#shipment-list td{
  vertical-align: middle;
}

.tablenav-pages .displaying-num, .tablenav-pages .pagination-links{
  line-height: 40px;
  padding :0px 5px;
}


.shipment_date{
  width: inherit !important;
}

.shipping-summary, .order-summary{
  background: #ffffff;
  border-radius: 6px;
  min-width: 280px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 13px;
}

.shipping-summary table td, .order-summary table td{
  padding:0px 10px;
  font-size:14px;
}

.shipment_order_status{
  width:70px !important;
}

.bb-change-status{
    cursor: pointer;
}

#bb-delivery-progress{
    margin: 10px 0px;
    font-family: monospace;
    width: 300px;
    background: white;
    padding: 10px;
    border: 1px solid #cdcdcd;
    border-radius: 10px;
    display:none;
    position: relative;
}

.bb-delivery-close{
    position:absolute;
    top:6px;
    right:10px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
    color:#888;
}

.bb-delivery-close:hover{
    color:#000;
}

.bb-change-status.updating mark {
    opacity: 0.8;
    pointer-events: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    color: #fff;
    min-width: 32px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.pill-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
    font-weight: 600;
}

/* Woo-like status colors */

.pill-pending {
    color: #454545;
    background: #e5e5e5;
}
.pill-on-hold {
    background: #f8dda7;
    color: #573b00;
}

.pill-processing {
    background: #c6e1c6;
    color: #2c4700;
}

.pill-shipped, .pill-pickup {
    background: #e1c8d7;
    color: #650066;
}

.pill-completed {
    background: #c8d7e1;
    color: #003d66;
}

.pill-cancelled {
    background-color: #c2c2c2;
    color: rgb(46, 46, 46);
}

.pill-default {
    color: #454545;
    background: #e5e5e5;
}

.custom-add-action {
    margin-left: 10px !important
}

#bb-order-summary {
  float: right;
  margin-top: -10px;
}

#bb-order-summary .order-summary {
  font-size: 13px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#bb-order-summary .order-summary table {
  margin: 0;
  border-collapse: collapse;
}

#bb-order-summary .order-summary td {
  padding: 0 10px;
  white-space: nowrap;
}

.bbz-order-status-filter{
 display: none !important;
}


.bqo-toggle-wrapper {
    display: inline-flex;
    align-items: center;
}

.bqo-toggle-wrapper input[type="checkbox"] {
    display: none;
}

.bqo-toggle-switch {
    width: 40px;
    height: 18px;
    background: #a44;
    border-radius: 18px;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 6px;
    box-sizing: border-box;
}

/* Toggle knob */
.bqo-toggle-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    transition: transform 0.3s;
    z-index: 2;
}

/* Text inside switch */
.bqo-toggle-text {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    text-align: right;
    transition: text-align 0.3s;
    z-index: 1;
}

/* ✅ ON state */
input.bqo-stock-toggle:checked + .bqo-toggle-switch,
input.product-rts-toggle:checked + .bqo-toggle-switch {
    background: #77b255;
}

/* Move knob */
input.bqo-stock-toggle:checked + .bqo-toggle-switch::after,
input.product-rts-toggle:checked + .bqo-toggle-switch::after {
    transform: translateX(22px);
}

/* Move text to LEFT when ON */
input.bqo-stock-toggle:checked + .bqo-toggle-switch .bqo-toggle-text,
input.product-rts-toggle:checked + .bqo-toggle-switch .bqo-toggle-text {
    text-align: left;
}

.bqo-toggle-text.loading  {
    opacity: 0;
}


/* inventory positioning tweaks */
.item-inventory .bqo-toggle-wrapper {
    position: inherit !important;
    top: 45px;
    padding-bottom: 5px;
}

.wc-order-preview-table__column--inventory .bqo-toggle-wrapper {
    float: right;
}


.bqo-email-toggle .bqo-toggle-switch::after{
  background: transparent !important;
}

.email-label-off{
  margin-left: 15px;
  color: rgb(0, 0, 0);
}

.email-label-on{
  margin-right: 20px;
  color: rgb(255, 255, 255);
}

#wp-admin-bar-dlct_logs_id {
    display: none !important;
} 

#wpadminbar .bbz-bubble {
    background: #d63638;
    color: white;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 10px;
    margin-left: 5px;
    display: inline-block;
    line-height: 1.2;
}

#bbz-settings .tab-content{
  padding:10px;
  border-color: rgb(185, 185, 185);
  display: flex;
}

.bbz-header{
  margin: 5px 0px; 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start;
}

.bbz-action-bar{
  margin: 15px 0px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bbz-action-bar-options{
  display: flex; 
  gap: 10px; 
}

/*client list*/
.client-data-row td {
  position: relative;
}

.client-data-row:hover .row-actions {
  visibility: visible;
}

#client-dropdown + .select2 .select2-selection {
    height: 40px !important;
    line-height: 40px !important;
}

#client-dropdown + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 40px !important;
}

.woocommerce_page_custom-clientes .pagination-links .button,
.woocommerce_page_custom-clientes .displaying-num {
    min-height: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

.row-actions {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

#wpseo-filter, #wpseo-readability-filter {
  display: none !important;
}

.bb-scroll-table {
    max-height: 350px;
    overflow-y: auto;
    border-bottom: 1px solid #c3c4c7;
    border-top: 1px solid #c3c4c7;
    max-width: 1400px;
}

.bb-scroll-table table {
    width: 100%;
    border-collapse: collapse;
}

.bb-scroll-table thead th {
    position: sticky;
    top: 0;
    background: #f1f1f1; /* same as WP admin table header */
    z-index: 2;
}

.client-orders-table td {
    line-height: 26px;
    vertical-align: middle;
}

.client-deposits-table td {
    line-height: 26px;
    vertical-align: middle;
}


/* Client balance page */

.bb-country{
  margin-right:10px;
}

.bb-summary-wrapper {
    display: flex;
    gap: 20px;
    margin: 25px 0px 25px 0px;
    flex-wrap: wrap;
    max-width:1400px;
}

.bb-summary-card {
    background: #fff;
    border-radius: 5px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    min-width: 300px;
    flex: 1;
}

.bb-summary-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

#bb-order-status {
  max-height: 38px !important;
}

.bb-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.bb-balance-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 16px;
}

.bb-address div {
    margin-bottom: 4px;
    font-size: 14px;
}

.bombazar-mobile-only{
  display:none;
}



@media screen and (min-width: 783px) {
  .post-type-shop_order .wp-list-table tbody td{
    padding: 0.75em !important;
  }
}

@media screen and (max-width: 782px) {

  .bombazar-mobile-only{
    display:block !important;
  }

  .bbz-order-status-filter{
    display:block !important;
  }

  .wp-list-table .column-order_items_summary {
    width: auto;
  }

  .shipment_comments,
  .shipment_orders,
  .shipment_products,
  .shipment_clients,
  .shipment_cost,
  .shipment_price,
  .shipment_shipping,
  .shipment_revenue {
    display: none !important;
  }

  .post-type-shop_order .tablenav{
    margin-top: 10px !important;

  }

  .post-type-shop_order .subsubsub {
    display: none;
  }

  .post-type-shop_order .search-box{
    width :100% !important;
    margin-bottom: 0px !important;
  }

  .post-type-shop_order .search-box #post-search-input {
    width:60%;
  }

  .post-type-shop_order .wp-list-table .column-shipment_id,
  .post-type-shop_order .wp-list-table .column-order_date,
  .post-type-shop_order .wp-list-table .check-column,
  .post-type-shop_order .wp-list-table .column-bbz_flag{
    display: none !important;
  }

  .post-type-shop_order .wp-list-table th.column-order_items_summary{
    display: none !important;
  }

  .post-type-shop_order .wp-list-table .column-order_items_summary{
    display:block !important;
    padding: 0.5em 1em 1em 1em !important;
    width: 100% !important;
  }

  .post-type-shop_order .wp-list-table .column-order_items_summary:before {
      display: none !important;
  }

  .post-type-shop_order .wp-list-table td.column-order_number a.order-view{
    width: calc(60% - 40px - 4px) !important;
  }
  
  .post-type-shop_order .wp-list-table .column-order_number{
    display: block !important;
    padding-bottom: 0.5em !important;
  }

  .post-type-shop_order .wp-list-table .row-actions{
    gap:2px !important;
  }

  .post-type-shop_order .wp-list-table .column-order_number .order_date{
    display: block !important;
    width:100% !important;
  }

  .post-type-shop_order .wp-list-table .column-order_number .order_status {
    position: absolute;
    top:15px;
    right: 15px;
  }
  
  .post-type-shop_order .wp-list-table td.column-order_number .order-preview{
    margin-top:0px !important;
  }

  #bb-order-summary {
  display:none !important;
  }

  #wp-admin-bar-wpseo-menu, #wp-admin-bar-trp_edit_translation, #wp-admin-bar-new-content, #wp-admin-bar-edit, #wp-admin-bar-customize{
    display:none !important;
  }


}

.bb-client-balance-page .tablenav.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 1400px;
}

.bb-client-balance-page .tablenav.top .alignleft.actions.bulkactions {
    float: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
}

.bb-client-balance-page .bb-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 0 auto;
    flex-shrink: 0;
}

.bb-client-balance-page #bb-download-statement {
    padding: 0 12px;
    font-weight: normal;
}

#bb-statement-capture {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 900px;
    z-index: -1;
    pointer-events: none;
}

#bb-statement-capture,
#bb-statement-capture * {
    box-sizing: border-box;
}

#bb-statement-capture .bb-statement-sheet {
    width: 900px;
    padding: 58px 50px 42px;
    background: #fff;
    color: #292323;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    zoom: 1;
}

#bb-statement-capture .bb-statement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #721717;
    padding-bottom: 25px;
}

#bb-statement-capture .bb-statement-logo {
    color: #721717;
    text-align: center;
}

#bb-statement-capture .bb-logo-name {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 5px;
    line-height: 1.2;
}

#bb-statement-capture .bb-logo-city {
    font-size: 12px;
    letter-spacing: 6px;
    margin-top: 7px;
}

#bb-statement-capture .bb-statement-heading {
    text-align: right;
    font-size: 20px;
    letter-spacing: 1.6px;
    color: #721717;
    font-weight: 700;
}

#bb-statement-capture .bb-statement-heading small {
    display: block;
    font-size: 15px;
    letter-spacing: 0;
    color: #777;
    font-weight: 400;
    margin-top: 7px;
}

#bb-statement-capture .bb-statement-client {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 38px 0 34px;
}

#bb-statement-capture .bb-statement-eyebrow {
    color: #a08b80;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

#bb-statement-capture .bb-statement-client h2 {
    margin: 8px 0 5px;
    font-family: Georgia, serif;
    font-size: 33px;
    font-weight: 400;
    color: #2b2222;
    line-height: 1.3;
}

#bb-statement-capture .bb-statement-country {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 16px;
}

#bb-statement-capture .bb-statement-country img {
    width: 26px;
    height: 20px;
    object-fit: cover;
}

#bb-statement-capture .bb-statement-client-tag {
    padding: 10px 15px;
    border: 1px solid #e8dcd7;
    color: #721717;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 700;
}

#bb-statement-capture .bb-statement-summary {
    background: #faf7f4;
    border: 1px solid #eee5df;
    border-radius: 8px;
    padding: 26px 32px;
}

#bb-statement-capture .bb-statement-section-title {
    color: #721717;
    font-family: Georgia, serif;
    font-size: 28px;
    margin-bottom: 22px;
}

#bb-statement-capture .bb-statement-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9dfd8;
    font-size: 19px;
}

#bb-statement-capture .bb-statement-summary-row strong {
    font-weight: 600;
}

#bb-statement-capture .bb-statement-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding: 18px 20px;
    background: #721717;
    color: #fff;
    border-radius: 5px;
    font-size: 21px;
    font-weight: 700;
}

#bb-statement-capture .bb-statement-summary-total strong {
    font-size: 29px;
    color: #fff;
}

#bb-statement-capture .bb-statement-orders-heading {
    margin: 40px 0 19px;
}

#bb-statement-capture .bb-statement-orders-heading h2 {
    margin: 0 0 5px;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #721717;
}

#bb-statement-capture .bb-statement-orders-heading p {
    margin: 0;
    color: #888;
    font-size: 16px;
}

#bb-statement-capture .bb-statement-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: none;
    background: #fff;
    font-size: 15px;
}

#bb-statement-capture .bb-statement-table thead {
    background: #f6f0eb;
}

#bb-statement-capture .bb-statement-table th {
    background: #f6f0eb;
    color: #721717;
    padding: 15px 6px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    border: none;
}

#bb-statement-capture .bb-statement-table td {
    padding: 22px 6px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #eee8e4;
    background: #fff;
    color: #3a3333;
    overflow-wrap: normal;
}

#bb-statement-capture .bb-statement-table tr {
    break-inside: avoid;
}

#bb-statement-capture .bb-statement-order-number {
    display: block;
    color: #721717;
    font-size: 16px;
}

#bb-statement-capture .bb-statement-table td > small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

#bb-statement-capture .bb-statement-status {
    display: inline-block;
    padding: 5px 7px;
    background: #f8eedc;
    color: #8d641c;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

#bb-statement-capture .bb-statement-product {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

#bb-statement-capture .bb-statement-product:last-child {
    margin-bottom: 0;
}

#bb-statement-capture .bb-statement-product img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    object-fit: contain;
    border-radius: 4px;
    background: #faf8f6;
}

#bb-statement-capture .bb-statement-product span {
    min-width: 0;
    overflow-wrap: break-word;
}

#bb-statement-capture .bb-statement-product small {
    color: #999;
    font-size: 12px;
}

#bb-statement-capture .bb-statement-money {
    text-align: right;
    white-space: nowrap;
    font-size: 18px;
    letter-spacing: -0.3px;
}

#bb-statement-capture .bb-statement-table th:nth-child(n+4) {
    text-align: right;
}

#bb-statement-capture .bb-statement-due,
#bb-statement-capture .bb-statement-due .woocommerce-Price-amount {
    color: #721717 !important;
    font-weight: 700;
}

#bb-statement-capture .bb-statement-footer {
    text-align: center;
    padding-top: 42px;
    color: #721717;
}

#bb-statement-capture .bb-statement-footer-line {
    height: 1px;
    background: #e5d8d2;
    margin-bottom: 25px;
}

#bb-statement-capture .bb-statement-footer-logo {
    font-family: Georgia, serif;
    font-size: 21px;
    letter-spacing: 2px;
}

#bb-statement-capture .bb-statement-footer-logo span {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
}

#bb-statement-capture .bb-statement-footer-text {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

#bb-statement-capture .bb-statement-footer-url {
    color: #999;
    margin-top: 10px;
    font-size: 14px;
}


@media (max-width: 768px) {
  /* ==========================
     BB CLIENT BALANCE PAGE
  =========================== */
  .bb-client-balance-page {
    padding: 10px;
  }

  /* --- Header --- */
  .bb-client-balance-page .wp-heading-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    gap: 6px;
  }

  .bb-client-balance-page .wp-heading-inline a.button {
    width: 100%;
    text-align: center;
  }

  /* --- Filters stacked --- */
  .bb-client-balance-page .tablenav.top .alignleft.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .bb-client-balance-page .tablenav select,
  .bb-client-balance-page .tablenav button {
    width: 100% !important;
  }

  .bb-client-balance-page  .ms-parent {
    font-size: 16px;
    line-height: 1.625;
    border: 1px solid #8c8f94;
  }

 .bb-client-balance-page  .ms-drop input[type="radio"], .ms-drop input[type="checkbox"] {
      width: 10px;
  }

  /* --- Summary box full width --- */
  .bb-client-balance-page .postbox {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* --- Headings smaller --- */
  .bb-client-balance-page h2 {
    font-size: 16px;
    margin-top: 15px;
  }

  
  .bb-client-balance-page,
  .bb-client-balance-page * {
    box-sizing: border-box;
  }


  .bb-client-balance-page .bb-scroll-table {
    width: 100%;
    overflow-x: hidden;
  }

  .bb-client-balance-page .client-orders-table tr,
  .bb-client-balance-page .client-deposits-table tr {
    max-width: 100%;
    overflow: hidden;
  }

  .bb-client-balance-page .client-orders-table td,
  .bb-client-balance-page .client-deposits-table td {
    word-wrap: break-word;
    white-space: normal !important;
  }

  .bb-client-balance-page mark.order-status span,
  .bb-client-balance-page .client-orders-table td span {
    white-space: normal !important;
    line-height: 1.2em;
  }


  /* Status badge */
  .bb-client-balance-page mark.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
  }

  .bb-client-balance-page .client-orders-table td[data-colname]::before,
  .bb-client-balance-page .client-deposits-table td[data-colname]::before {
    content: attr(data-colname);
    display: block !important;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 3px;
    position: relative !important;
    text-align:left;
    width:100% !important;
    left:0px !important;
  }

  .tablenav .alignleft.actions {
    float: none;
  }

  .bb-client-balance-page .tablenav .actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
  }

  .bb-client-balance-page .tablenav .actions > *{
      width:100% !important;
  }

  .bb-client-filters .wc-enhanced-select,
  .bb-client-filters .select2,
  .bb-client-filters .select2-container {
      width: 100% !important;
  }

  .bb-client-balance-page select[name="order_id"] {
    max-width: none !important;
    width: 100% !important;
  }


  /* ==========================
     PEDIDOS TABLE AS CARDS
  =========================== */
  .client-orders-table,.client-orders-table thead,.client-orders-table tbody,.client-orders-table tr,.client-orders-table th,.client-orders-table td {
    display: block;
    width: 100%;
    border: none;
  }

  .client-orders-table thead {
    display: none;
  }

  .client-orders-table tr {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
  }


  /* Top row (#, date, status) */
  .client-orders-table .order_number,
  .client-orders-table .order_date,
  .client-orders-table .order_status {
    display: inline-block;
    vertical-align: middle;
    width:30%;
  }

  .client-orders-table .order_number {
    font-weight: 600;
    color: #0073aa;
    margin-right: 8px;
  }

  .client-orders-table .order_date {
    color: #555;
    margin-right: 8px;
  }

  .client-orders-table .order_status  {
    float: right;
  }

  /* Product info row */
  .client-orders-table .order_products {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }


  /* 3-column totals */

  .client-orders-table .order_total,
  .client-orders-table .paid_amount,
  .client-orders-table .balance_due,
  .client-orders-table .order_days_on_hold {
      display: inline-block;
      width: 24%;
      box-sizing: border-box;
      text-align: left;
      padding-top: 6px;
      font-size: 14px;
      white-space: normal !important;
      word-wrap: break-word;
  }


   /* ==========================
     PAGOS / DEPOSITOS
  =========================== */
  .client-deposits-table,.client-deposits-table thead,.client-deposits-table tbody,.client-deposits-table tr,.client-deposits-table th,.client-deposits-table td {
    display: block;
    width: 100%;
    border: none;
  }

  .client-deposits-table thead {
    display: none;
  }

  .client-deposits-table tr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }
  

  /* Make Pagado el, Método, Monto, Aplicado a appear on one line */
  .client-deposits-table tr {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
  }

  /* First line (#ID | Fecha | Status) */
  .client-deposits-table .deposit_id,
  .client-deposits-table .deposit_date,
  .client-deposits-table .deposit_status {
    display: inline-block;
    vertical-align: middle;
  }
  .client-deposits-table .deposit_id {
    font-weight: 600;
    color: #0073aa;
    margin-right: 8px;
  }
  .client-deposits-table .deposit_date {
    color: #555;
    margin-right: 8px;
  }
  .client-deposits-table .deposit_status {
    margin-left: auto;
  }

  /* Second line (Pagado el, Método, Monto, Aplicado a) */
  .client-deposits-table .deposit_paid_date,
  .client-deposits-table .deposit_method,
  .client-deposits-table .deposit_amount,
  .client-deposits-table .deposit_applied_to {
    display: inline-block;
    width: 25%;
    box-sizing: border-box;
    text-align: center;
    padding-top: 6px;
    font-size: 14px;
    white-space: normal !important;
    word-wrap: break-word;
  }

  /* Force that second line below */
  .client-deposits-table .deposit_paid_date {
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
  }

  /* Add labels above each */
  .client-deposits-table .deposit_paid_date::before,
  .client-deposits-table .deposit_method::before,
  .client-deposits-table .deposit_amount::before,
  .client-deposits-table .deposit_applied_to::before {
    content: attr(data-colname);
    font-size: 12px;
    color: #666;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
  }


  /* --- Button full width --- */
  .bb-client-balance-page .bbz-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bb-client-balance-page .bbz-header a.button {
    width: 100%;
    text-align: center;
  }

  /* --- Amount coloring --- */
  .bb-client-balance-page span[style*="color:#a00"] {
    color: #d00 !important;
  }

  .bb-client-balance-page span[style*="color:green"] {
    color: #090 !important;
  }


}

/* ==========================================================
   BOMBAZAR INVENTORY
   ========================================================== */

.bb-inventory-wrap {
    max-width: 1600px;
}

.bb-inventory-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    margin-top: 20px;
}

.bb-inventory-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    padding: 20px;
}

.bb-inventory-card h2 {
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bb-inventory-field {
    margin-bottom: 20px;
}

.bb-inventory-field:last-child {
    margin-bottom: 0;
}

.bb-inventory-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.bb-inventory-field .required {
    color: #d63638;
}

.bb-inventory-field input[type="text"],
.bb-inventory-field input[type="number"],
.bb-inventory-field select {
    width: 100%;
    max-width: none;
}

.bb-inventory-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bb-inventory-price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bb-inventory-money-input {
    position: relative;
}

.bb-inventory-money-input .bb-inventory-currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #646970;
    z-index: 2;
}

.bb-inventory-money-input input {
    padding-left: 25px;
}

.bb-inventory-image-card {
    text-align: left;
}

#bb-inventory-image-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

#bb-inventory-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bb-inventory-image-placeholder {
    color: #8c8f94;
}

.bb-inventory-save-card .button-primary {
    width: 100%;
    margin-bottom: 10px;
}

.bb-inventory-save-card > .button:not(.button-primary) {
    width: 100%;
    text-align: center;
}

.bb-inventory-big-id {
    font-size: 28px;
    font-weight: 600;
}

.bb-inventory-table .column-image {
    width: 75px;
}

.bb-inventory-table .column-id {
    width: 65px;
}

.bb-inventory-table .column-actions {
    width: 90px;
}

.bb-inventory-list-image {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #f6f7f7;
}

.bb-inventory-no-image {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f7;
    color: #8c8f94;
}

.bb-inventory-search {
    margin-top: 15px;
}

.bb-inventory-search .search-box {
    float: none;
    text-align: right;
    margin: 0 0 10px;
}

.bb-inventory-search .search-box input[type="search"] {
    width: 260px;
}

.bb-inventory-product-search + .select2-container {
    max-width: 550px !important;
}

@media screen and (max-width: 1200px) {

    .bb-inventory-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media screen and (max-width: 900px) {

    .bb-inventory-form-layout {
        grid-template-columns: 1fr;
    }

    .bb-inventory-field-grid {
        grid-template-columns: 1fr;
    }

    .bb-inventory-price-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (min-width: 783px) {

     .bb-inventory-table th.column-title {
        width:300px;
    }

}


/* ==========================================================
   BOMBAZAR INVENTORY - MOBILE
   ========================================================== */

.bb-inventory-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media screen and (max-width: 782px) {

    /* GENERAL */

    .bb-inventory-wrap {
        margin-right: 10px;
    }

    .bb-inventory-wrap h1 {
        font-size: 22px;
    }


    /* ======================================================
       INVENTORY FORM
       ====================================================== */

    .bb-inventory-form-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Allows individual cards to be reordered */
    .bb-inventory-form-main,
    .bb-inventory-form-sidebar {
        display: contents;
    }

    /* Image first */
    .bb-inventory-image-card {
        order: 1;
    }

    /* Main form cards */
    .bb-inventory-form-main .bb-inventory-card {
        order: 2;
    }

    /* Inventory ID near bottom */
    .bb-inventory-id-card {
        order: 3;
    }

    /* Save / Cancel always last */
    .bb-inventory-save-card {
        order: 4;
    }

    .bb-inventory-card {
        padding: 15px;
        margin-bottom: 12px;
    }

    .bb-inventory-field-grid,
    .bb-inventory-price-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bb-inventory-field {
        margin-bottom: 15px;
    }

    .bb-inventory-field input[type="text"],
    .bb-inventory-field input[type="number"],
    .bb-inventory-field select {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* WooCommerce associated product selector */

    .bb-inventory-product-search + .select2-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .bb-inventory-product-search + .select2-container .select2-selection {
        min-height: 44px;
    }


    /* IMAGE */

    #bb-inventory-image-preview {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .bb-inventory-image-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bb-inventory-image-actions .button {
        min-height: 40px;
    }


    /* SAVE / CANCEL */

    .bb-inventory-save-card {
        display: flex;
        gap: 8px;
    }

    .bb-inventory-save-card .button,
    .bb-inventory-save-card .button-primary {
        width: 50%;
        margin: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* ======================================================
       INVENTORY SEARCH
       ====================================================== */

    .bb-inventory-search .search-box {
        display: flex;
        float: none;
        width: 100%;
        gap: 5px;
        margin-bottom: 12px;
    }

    .bb-inventory-search .search-box input[type="search"] {
        width: 100%;
        min-width: 0;
        min-height: 40px;
    }

    .bb-inventory-search .search-box .button {
        min-height: 40px;
    }


    /* ======================================================
       INVENTORY LIST - MOBILE CARDS
       ====================================================== */

    .bb-inventory-table {
        display: block !important;
        border: 0 !important;
        background: transparent !important;
    }

    .bb-inventory-table thead {
        display: none !important;
    }

    .bb-inventory-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .bb-inventory-table tr {
        display: block !important;
        width: 100% !important;
        background: #fff !important;
        border: 1px solid #c3c4c7 !important;
        margin: 0 0 14px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 1px rgba(0,0,0,.04);
    }


    /* Each field = label + value */

    .bb-inventory-table td {
        display: grid !important;
        grid-template-columns: 115px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 38px !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #eee !important;
        box-sizing: border-box !important;
        text-align: left !important;
        position: static !important;
        float: none !important;
    }

    .bb-inventory-table td::before {
        content: attr(data-label) !important;
        display: block !important;
        position: static !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        color: #50575e !important;
        text-align: left !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }


    /* IMAGE */

    .bb-inventory-table td.column-image {
        display: block !important;
        width: 100% !important;
        padding: 0 0 10px !important;
        margin: 0 !important;
    }

    .bb-inventory-table td.column-image::before {
        display: none !important;
        content: none !important;
    }

    .bb-inventory-table td.column-image img,
    .bb-inventory-table .bb-inventory-no-image {
        display: block;
        width: 88px !important;
        height: 88px !important;
        object-fit: contain;
        margin: 0;
    }


    /* INVENTORY ID */

    .bb-inventory-table td.column-id {
        font-size: 13px;
    }


    /* TITLE */

    .bb-inventory-table td.column-title {
        display: grid !important;
        grid-template-columns: 115px minmax(0, 1fr) !important;
        align-items: start !important;
    }

    .bb-inventory-table td.column-title::before {
        content: "Título" !important;
        display: block !important;
    }

    .bb-inventory-table td.column-title > strong {
        display: block;
        margin: 0;
        font-size: 15px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .bb-inventory-table td.column-title > strong a {
        display: block;
    }


    /* Hide desktop row actions */

    .bb-inventory-table .row-actions {
        display: none !important;
    }


    /* ACTION BUTTON */

    .bb-inventory-table td.column-actions {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .bb-inventory-table td.column-actions .button {
        justify-self: start;
        min-height: 38px;
    }


    /* EMPTY LIST */

    .bb-inventory-table td[colspan] {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 0 !important;
    }

    .bb-inventory-table td[colspan]::before {
        display: none !important;
        content: none !important;
    }


    /* PAGINATION */

    .bb-inventory-wrap .tablenav {
        height: auto;
        min-height: 40px;
    }

    .bb-inventory-wrap .tablenav-pages {
        float: none;
        margin: 8px 0;
    }

}

/* ==========================================================
   BOMBAZAR INVENTORY - STOCK / FILTERS
   ========================================================== */

.bb-inventory-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 10px;
}

.bb-inventory-filter-row select {
    min-width: 160px;
    max-width: 230px;
}

.bb-inventory-stock-field {
    max-width: 200px;
    margin-top: 5px;
}

.bb-inventory-stock-field input {
    width: 100%;
}

.bb-inventory-table .column-stock {
    width: 115px;
}

.bb-inventory-stock-status {
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
}

.bb-inventory-stock-status.is-in-stock {
    color: #008a20;
}

.bb-inventory-stock-status.is-out-of-stock {
    color: #b32d2e;
}

@media screen and (max-width: 782px) {

    .bb-inventory-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 12px 0;
    }

    .bb-inventory-filter-row select {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 40px;
    }

    .bb-inventory-filter-row .button {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bb-inventory-stock-field {
        max-width: none;
    }

    .bb-inventory-table .column-stock {
        width: 100% !important;
    }
}

/* Append to the existing inventory stylesheet. No JavaScript changes needed. */
.bb-summary-toolbar { margin: 16px 0; }
.bb-summary-scroll { overflow-x: auto; margin-top: 16px; }
.bb-summary-table { min-width: 700px; }
.bb-summary-table th:nth-child(n+3),
.bb-summary-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.bb-summary-table tfoot th { font-weight: 700; }