body { font-family: calibri; }

.woocommerce-MyAccount-navigation ul li a:before {display:none;}


.woocommerce-tabs.wc-tabs-wrapper h2 {
    display: none;
}
.woocommerce-tabs.wc-tabs-wrapper .ct-accordion-tab:last-child, .woocommerce-tabs.wc-tabs-wrapper .ct-accordion-tab:first-child {
    display: none;
}


.woocommerce-MyAccount-content select {
    margin-bottom: 0px;
	width: 150px;
}

.ct-container-full {
    padding-top: 0px !important;
}

.hero-section.is-width-constrained {
    margin-bottom: 10px !important;
}

header.woocommerce-Address-title.title {
    align-items: flex-start;
}

.u-columns.woocommerce-Addresses.col2-set.addresses {
    margin-bottom: 20px;
}

.wc-address-book-address address {
    margin-bottom: 20px;
}

iframe#my-data-iframe-is-orders {
    height: calc(100vh - 200px);
}

.woocommerce-MyAccount-content {
	max-width: 1010px;}


	.tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frequent-items-table {
    min-width: 800px;
    max-width: 1200px;
	overflow-x:auto;
    width: 100%;
}
	.td.checkbox,.th.checkbox {
    width: 32px;
}
.td,.th {
    width: 128px;
    text-align: left;
    padding: 6px 2px;
}
.td.name, .th.name {
    width: 250px;
	padding-left: 10px;
}
	.th.qty, .td.qty {
        width: 98px;
    text-align: right;
    padding: 10px;
}
	
	.th.sku , .td.sku {
    width: 150px;
}
	.td.shipto, .th.shipto {
    width: 190px;
}
	.td.uom, .th.uom {
    width: 90px;
}
	input.item-qty {
    width: 60px !important;
    height: 30px !important;
    padding: 2px !important;
    text-align: center;
}
	.td.price, .th.price {
    text-align: right;
    padding-right: 45px;
}

.col.linetotal,.col.total  {
    text-align: right;
    padding-right: 20px;
}
.col.sonumber,.col.documentcode  {
    padding-left: 10px;
}
.tbody {
    overflow: auto;
}
.thead .tr {
	background: lightgray;
}

.is-statement-table .a-right {
    text-align: right;
	padding-right: 30px;
}

.qty li.item {
    list-style: none;
}
.qty ul  {
    padding-inline-start: 0px;
}

.order-details-items.ordered .col.linetotal {
    width: 144px;
}

.block.block-order-details-view {
    margin-top: 20px;
}
.order-title, .block-title {
    font-size: 24px;
}


.block.block-order-details-view .block-content {
    display: flex;
}

.block.block-order-details-view .block-content .box {
    width: 25%;
    float: left;
}
.doc_detail {
	display: flex;
    justify-content: space-between;
	margin-right: 17px;
}


.is-statement-table .col.doctype {
    width: 90px;
}

.is-statement-table .col.total {
    width: 155px;
}
.col.subject {
    width: 300px;
}
.actions-toolbar {
    margin-top: 20px;
}
.nodata {width:100%;}

.ct-account-welcome {
    font-size: 24px;
    font-weight: 700;
}

.tfoot {
    border-top: 0.5px lightgrey solid;
	border-bottom: 0.5px lightgrey solid;
	margin-right:10px;
}
.tfoot .tr .mark {
    padding-left: 10px;
}

@media (min-width: 701px) {
    .ct-acount-nav {
        position: sticky;
        top: 90px;
    }
}

.col.td.payment-input-cell {
    text-align: right;
    padding-right: 20px;
}
.col.td.payment-total {
    padding-right: 40px;
    font-size: 20px;
	text-align: right;
}

.col.td.totalamt {
    width: 550px;
    text-align: right;
}

input.invoice-payment-amount.close {
    padding-right: 20px;
    border-bottom: 1px solid lightgrey;
    border-top: none;
    border-right: none;
    border-left: none;
	border-radius: 0px;
}

input.invoice-payment-amount.open {
    border: none;
}

.payment-input-cell input[type="number"]::-webkit-outer-spin-button,
.payment-input-cell input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tfoot .th.col.linetotal {
    padding-right: 5px;
}
.col.td.payment-button {
    width: 100%;
    text-align: right;
    margin-right: 20px;
}
#payment-error-message {
    width: unset;
    font-size: medium;
    float: left;
}
/* ============================================
   STICKY HEADERS — ALL SCREENS (added April 2026)
   ============================================ */

.is-module-sticky-header {
    position: sticky;
    top: 75px;
    z-index: 8;
    background: #fff;
    padding: 0.5em 0;
    margin-bottom: 0.5em;
    display: flow-root;
    overflow: visible !important;
}

.is-module-sticky-header form {
    margin-bottom: 0 !important;
    float: right;
}

.is-module-sticky-header label {
    display: none;
}

.woocommerce-MyAccount-content,
.is-orders-wrapper,
.is-quotes-wrapper,
.is-rma-wrapper,
.is-transaction-wrapper,
.is-cases-wrapper,
.is-statement-wrapper {
    overflow: visible !important;
}

.is-orders-table .tbody,
.is-quotes-table .tbody,
.is-rma-table .tbody,
.is-transaction-table .tbody,
.is-cases-table .tbody,
.is-statement-table .tbody {
    overflow: visible !important;
}

/* Frequently Ordered Items — sticky add to cart bar */
.frequent-items-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--areco-blue);
    color: #fff;
    padding: 0.75em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.frequent-items-sticky-summary {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    line-height: 1.4;
}

.frequent-items-sticky-summary #frequent-items-selected-count {
    font-weight: 600;
}

.frequent-items-sticky-summary #frequent-items-selected-total {
    font-size: 1.1em;
    font-weight: 700;
}

.frequent-items-sticky-bar .button {
    background: #fff !important;
    color: var(--areco-blue) !important;
    border: none !important;
    padding: 0.6em 1.2em !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE — MOBILE (added April 2026)
   ============================================ */

@media (max-width: 768px) {

    /* ── My Account nav — horizontal scroll strip ── */
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4em;
        padding: 0.5em 0 0.75em;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    .woocommerce-MyAccount-navigation ul li {
        flex-shrink: 0;
    }

    .woocommerce-MyAccount-navigation ul li a {
        white-space: nowrap;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        border: 1px solid var(--areco-border) !important;
        font-size: 0.82em;
        line-height: 1.4;
        height: 25px !important;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        background-color: var(--areco-blue);
        color: #fff;
        border-color: var(--areco-blue);
    }

    /* ── Shared: hide thead on mobile ── */

    /* Hide header row */
    .is-orders-table .thead,
    .is-quotes-table .thead,
    .is-rma-table .thead,
    .is-transaction-table .thead,
    .is-statement-table .thead {
        display: none;
    }

    /* Each row becomes a card */
    .is-orders-table .tbody .tr,
    .is-quotes-table .tbody .tr,
    .is-rma-table .tbody .tr,
    .is-transaction-table .tbody .tr,
    .is-statement-table .tbody .tr,
    .is-cases-table .tbody .tr {
        display: flex;
        flex-direction: column;
        border: 1px solid var(--areco-border);
        border-radius: 6px;
        margin-bottom: 1em;
        padding: 0.75em;
        background: #fff;
    }

    /* Each cell becomes a full-width row with label */
    .is-orders-table .tbody .tr .col.td,
    .is-quotes-table .tbody .tr .col.td,
    .is-rma-table .tbody .tr .td.col,
    .is-transaction-table .tbody .tr .col.td,
    .is-statement-table .tbody .tr .col.td,
    .is-cases-table .tbody .tr .td.col {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100% !important;
        padding: 4px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .is-orders-table .tbody .tr .col.td:last-child,
    .is-quotes-table .tbody .tr .col.td:last-child,
    .is-rma-table .tbody .tr .td.col:last-child,
    .is-transaction-table .tbody .tr .col.td:last-child,
    .is-statement-table .tbody .tr .col.td:last-child,
    .is-cases-table .tbody .tr .td.col:last-child {
        border-bottom: none;
    }

    /* data-th label via ::before */
    .is-orders-table .tbody .tr .col.td[data-th]::before,
    .is-quotes-table .tbody .tr .col.td[data-th]::before,
    .is-rma-table .tbody .tr .td.col[data-th]::before,
    .is-transaction-table .tbody .tr .col.td[data-th]::before,
    .is-statement-table .tbody .tr .col.td[data-th]::before,
    .is-cases-table .tbody .tr .td.col[data-th]::before {
        content: attr(data-th);
        font-weight: 600;
        color: var(--areco-dark);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1em;
    }

    /* Override fixed widths on all cells */
    .is-orders-table .col.td,
    .is-quotes-table .col.td,
    .is-rma-table .td.col,
    .is-transaction-table .col.td,
    .is-statement-table .col.td,
    .is-cases-table .td.col {
        width: auto !important;
    }

    /* Filter form stacking */
    .is-orders-wrapper form,
    .is-quotes-wrapper form,
    .is-rma-wrapper form,
    .is-transaction-wrapper form {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }

    /* Detail view — info boxes stack */
    .block.block-order-details-view .block-content {
        flex-direction: column;
    }

    .block.block-order-details-view .block-content .box {
        width: 100% !important;
        float: none !important;
        margin-bottom: 1em;
    }

    /* Detail view — items table card layout */
    .table-wrapper.order-items .thead {
        display: none;
    }

    .table-wrapper.order-items .tbody .tr {
        display: flex;
        flex-direction: column;
        border: 1px solid var(--areco-border);
        border-radius: 6px;
        margin-bottom: 1em;
        padding: 0.75em;
        background: #fff;
    }

    .table-wrapper.order-items .tbody .tr .col.td,
    .table-wrapper.order-items .tbody .tr .td.col {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100% !important;
        padding: 4px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .table-wrapper.order-items .tbody .tr .col.td[data-th]::before,
    .table-wrapper.order-items .tbody .tr .td.col[data-th]::before {
        content: attr(data-th);
        font-weight: 600;
        color: var(--areco-dark);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1em;
    }

    .woocommerce-MyAccount-content {
        max-width: 100% !important;
        padding: 0 0.5em 80px;
    }

    /* Sticky headers — hide thead on mobile, adjust top offset */
    .is-module-sticky-header .thead {
        display: none;
    }

    .is-module-sticky-header {
        top: 80px !important;
        border-bottom: 1px solid lightgrey;
        padding-top: 10px;
    }

    /* Statement — hide empty cells in totals row */
    .is-statement-table .tbody .tr:last-child .col.td:empty,
    .is-statement-table .tbody .tr:last-child .col.td:not([data-th]) {
        display: none;
    }

    .is-statement-table .tbody .tr:last-child {
        background: #f8f8f8;
        border: none;
        border-top: 2px solid var(--areco-border);
        border-radius: 0;
        font-weight: 600;
    }

    /* Statement — aging summary table vertical layout on mobile */
    
    #my-transactions-table th {
        border: none;
    }

    .is-statement-table {
        display: flex;
        flex-direction: column-reverse;
    }
 
    th.date {
        display: flex !important;
    }

       #my-transactions-table thead tr:not(:first-child) th {
        display: none;
    }

    .is-module-sticky-header.is_statement {
        display: none;
    }

    .documents_mob {
        display: block !important;
        background: lightgray;
        font-weight: bolder;
        padding: var(--theme-table-padding, 0.7em 1em);
        margin: 10px 0px;
        text-align: center;
    }

    #my-transactions-table tbody tr {
        display: block;
        margin-bottom: 0.5em;
    }

    #my-transactions-table tbody td {
        display: flex;
        justify-content: space-between;
        width: 100% !important;
        padding: 4px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    #my-transactions-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--areco-dark);
    }

    /* Frequently Ordered Items — card layout */
    .frequent-items-table .thead {
        display: none;
    }

    .frequent-items-table .tbody .tr {
        display: grid;
        grid-template-areas:
            "checkbox name"
            "checkbox sku"
            "checkbox date"
            "checkbox price"
            "checkbox uom"
            "qty qty";
        grid-template-columns: 40px 1fr;
        border: 1px solid var(--areco-border);
        border-radius: 6px;
        margin-bottom: 1em;
        padding: 0.75em;
        background: #fff;
        gap: 2px 8px;
    }

    .frequent-items-table .tbody .tr .td.checkbox {
        grid-area: checkbox;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 4px;
        width: auto !important;
    }

    .frequent-items-table .tbody .tr .td.checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        cursor: pointer;
    }

    .frequent-items-table .tbody .tr .td.name {
        grid-area: name;
        font-weight: 600;
        color: var(--areco-dark);
        width: auto !important;
        padding: 2px 0;
    }

    .frequent-items-table .tbody .tr .td.sku,
    .frequent-items-table .tbody .tr .td.date,
    .frequent-items-table .tbody .tr .td.price,
    .frequent-items-table .tbody .tr .td.uom {
        display: flex;
        justify-content: space-between;
        width: auto !important;
        padding: 2px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9em;
    }

    .frequent-items-table .tbody .tr .td.sku::before { content: "SKU"; font-weight: 600; color: var(--areco-dark); }
    .frequent-items-table .tbody .tr .td.date::before { content: "Last Order Date"; font-weight: 600; color: var(--areco-dark); }
    .frequent-items-table .tbody .tr .td.price::before { content: "Sales Price"; font-weight: 600; color: var(--areco-dark); }
    .frequent-items-table .tbody .tr .td.uom::before { content: "Unit of Measure"; font-weight: 600; color: var(--areco-dark); }

    .frequent-items-table .tbody .tr .td.qty {
        grid-area: qty;
        display: flex;
        align-items: center;
        gap: 0.5em;
        padding-top: 6px;
        width: auto !important;
    }

    .frequent-items-table .tbody .tr .td.qty::before {
        content: "Order Qty";
        font-weight: 600;
        color: var(--areco-dark);
        flex-shrink: 0;
    }

    .frequent-items-table .tbody .tr .td.qty .item-qty {
        width: 100% !important;
        padding: 6px;
        font-size: 1em;
    }

    .frequent-items-btn-row,
    .frequent-items-btn-row-bottom {
        margin: 0.5em 0;
    }

    .frequent-items-btn-row button,
    .frequent-items-btn-row-bottom button {
        width: 100%;
        padding: 0.75em;
        font-size: 1em;
    }

    .frequent-items-table {
        min-width: unset !important;
        width: 100% !important;
        overflow-x: visible !important;
    }

    .doc_detail {
        flex-direction: column;
    }
}

.tr.hide {
    display: none !important;
}

@media (max-width: 768px) {
    button#process-payment-button, button#is-reorder-btn {
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0;
        z-index: 200;
        background: var(--areco-blue);
        color: #fff;
        text-align: center;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 0;
        opacity: 1 !important;
        margin: 0 !important;
    }
}

/* ── Tighten on small phones ── */
@media (max-width: 480px) {
    .is-orders-table .tbody .tr,
    .is-quotes-table .tbody .tr,
    .is-rma-table .tbody .tr,
    .is-transaction-table .tbody .tr,
    .is-statement-table .tbody .tr,
    .is-cases-table .tbody .tr,
    .table-wrapper.order-items .tbody .tr {
        padding: 0.5em;
        font-size: 0.9em;
    }
}

button#add-frequent-items, button#add-frequent-items-top {
    display: none;
}