* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
    color: black !important;
}

    a:hover {
        text-decoration: none;
    }

html {
    font-size: 62.5%;
}

:root {
    --app-font-family: "Segoe UI", Arial, "SolaimanLipi", sans-serif;
    --bs-font-sans-serif: var(--app-font-family);
    --bs-body-font-family: var(--app-font-family);
    --app-footer-height: 39px;
    --brand-blue: #1264EF;
    --brand-blue-hover: #0D51CA;
    --primary-bg: #FFFFFF;
    --secondary-bg: #F5F5F5;
    --addInputBtn: gray;
    --tableHead: transparent;
}

body, button, input, select, textarea, optgroup {
    font-family: var(--app-font-family);
}

.show {
    visibility: visible !important;
    height: 150px !important;
    opacity: 1 !important;
}

.formClass {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

    .formClass input, textarea {
        padding: .5rem;
        width: 80%;
        font-size: 1.4rem;
        border-radius: 5px;
        border: none;
        outline: none;
        cursor: pointer;
    }

    .formClass textarea {
        height: 100%;
    }

.submit_btn button {
    font-size: 1.3rem;
}

.form_group > input {
    border: 1px solid lightgray;
    width: 100%;
}

.form_group > textarea {
    border: 1px solid lightgray;
    width: 100%;
}

.select_group > input {
    border: 1px solid lightgray;
    width: 100%;
}
/*delete button font size*/
.dlt_btns button {
    font-size: 1.3rem;
}

.content_body {
    background: var(--secondary-bg);
}

.submit_btn {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

    .submit_btn button {
        min-width: 15rem;
        font-size: 1.4rem;
    }

.input_group button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .7rem;
}

.action_btn button i {
    font-size: 1.2rem;
}

.search-box {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0;
}


/*table action buttons*/
.action_btn button {
    height: 2.3rem;
    width: 2.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media (min-width:320px) and (max-width:767.98px) {
    .submit_btn button {
        min-width: auto;
    }
}

@media (min-width:768px) and (max-width:991.98px) {
    .submit_btn button {
        min-width: auto;
    }
}

/*Override base .btn*/
.btn {
    --bs-btn-font-size: 1.5rem;
    width: 9rem;
}
/* Primary actions share the sidebar selection's brand blue. */
.btn-primary {
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue-hover);
    --bs-btn-hover-border-color: var(--brand-blue-hover);
    --bs-btn-active-bg: var(--brand-blue-hover);
    --bs-btn-active-border-color: var(--brand-blue-hover);
    --bs-btn-disabled-bg: var(--brand-blue);
    --bs-btn-disabled-border-color: var(--brand-blue);
    --bs-btn-focus-shadow-rgb: 18,100,239;
}
a.btn-primary { color:#fff !important; }

/* Sale module uses the same solid blue as the shared navigation. */
body:has(.sale-list-page, .sale_view_container, .saleDetailsComponentClass, .saleInvoiceComponentClass) {
    --app-footer-height: 39px;
    --brand-blue: #1264EF;
    --brand-gradient: #1264EF;
    --brand-blue-hover: #0D51CA;
    --sidebar-open-bg: #EEF4FF;
    --sidebar-accent: #1264EF;
}

/* Sale module action hierarchy; printed invoices retain their own styles. */
@media screen {
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass,.sale-payment-form) {
        --sale-action:#0F6CBD;
        --sale-action-hover:#115EA3;
        --sale-action-soft:#EFF6FC;
        --sale-action-gradient:#0F6CBD;
    }
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass,.sale-payment-form)
    :is(.btn-primary,.sd-primary,.invoice-btn-primary,.invoice-btn-success):not(:disabled):not(.disabled) {
        background:var(--sale-action-gradient) !important;
        border-color:var(--sale-action) !important;
        color:#fff !important;
        text-shadow:none;
    }
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass,.sale-payment-form)
    :is(.btn-primary,.sd-primary,.invoice-btn-primary,.invoice-btn-success):not(:disabled):not(.disabled):hover {
        background:var(--sale-action-hover) !important;
        box-shadow:0 3px 10px #1264ef20;
    }
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass)
    :is(.sl-view,.sl-edit,.sd-outline,.sd-secondary,.invoice-btn-secondary,.add_product .btn-success):not(:disabled) {
        color:var(--sale-action) !important;
        border:1px solid var(--sale-action) !important;
        background:#fff !important;
    }
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass)
    :is(.sl-view,.sl-edit,.sd-outline,.sd-secondary,.invoice-btn-secondary,.add_product .btn-success):not(:disabled):hover {
        background:var(--sale-action-soft) !important;
        border-color:var(--sale-action) !important;
    }
    .sale-list-page .sl-delete { color:#C50F1F; border-color:#D85B67; background:#fff; }
    .sale-list-page .sl-delete:hover { color:#A70D1B; border-color:#C50F1F; background:#FFF1F2; }
    :is(.sale-list-page,.sale_view_container,.saleDetailsComponentClass,.sale-payment-form)
    :is(.sl-action,.btn,.sd-button,.invoice-btn):focus-visible { outline:3px solid #9AC1FF; outline-offset:3px; }
}

/* All Add/New actions use the existing Print report palette. */
:root {
    --add-action-blue:#1177BD;
    --add-action-blue-hover:#0B65A5;
}
:root body :is(a,button).app-add-button[class] {
    color:rgb(255,255,255) !important;
    background:var(--add-action-blue) !important;
    border-color:var(--add-action-blue) !important;
    text-shadow:none;
    filter:none;
    transition:background-color .16s ease,border-color .16s ease;
}
:root body :is(a,button).app-add-button[class]:hover:not(:disabled):not(.disabled) {
    background:var(--add-action-blue-hover) !important;
    border-color:var(--add-action-blue-hover) !important;
    color:rgb(255,255,255) !important;
    filter:none;
}
:root body :is(a,button).app-add-button[class]:focus-visible { outline:2px solid var(--add-action-blue); outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { :root body :is(a,button).app-add-button[class] { transition:none; } }

/* List Edit actions match the Category list's amber outline style. */
:root body :is(a,button).app-edit-button[class]:not(:disabled) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:0;
    min-height:30px;
    padding:5px 11px;
    border:1px solid #E8CA95 !important;
    border-radius:6px;
    background:#fff !important;
    color:#975600 !important;
    font-size:13px; font-weight:600; line-height:1.35; font-style:normal;
    cursor:pointer;
}
:root body :is(a,button).app-edit-button[class]:hover:not(:disabled) {
    background:#FFF6E6 !important;
    border-color:#BA780B !important;
    color:#975600 !important;
}
:root body :is(a,button).app-edit-button[class]:focus-visible { outline:3px solid #9AC1FF; outline-offset:2px; }

/* View actions match the Sale list; list action icons share one size. */
:root body :is(a,button).app-view-button[class]:not(:disabled) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:30px;
    padding:0 10px;
    border:1px solid #E1DFDD !important;
    border-radius:4px;
    background:#fff !important;
    color:#0F6CBD !important;
    font-size:12px; font-weight:600; line-height:1; font-style:normal;
    cursor:pointer;
}
:root body :is(a,button).app-view-button[class]:hover:not(:disabled) {
    background:#EFF6FC !important;
    border-color:#AFCBFA !important;
    color:#0F6CBD !important;
}
:root body :is(a,button).app-view-button[class]:focus-visible { outline:2px solid #0F6CBD; outline-offset:2px; }
.app-list-icon-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.list-action-icon { display:block; width:15px; height:15px; min-width:15px; flex:none; vertical-align:middle; }

/* List headers and values use the same typography; page chrome and forms stay separate. */
:root body table.app-list-values > thead > tr > th,
:root body table.app-list-values > thead > tr > th *,
:root body table.app-list-values > tbody > tr > td:not(.app-cell-actions),
:root body table.app-list-values > tbody > tr > td:not(.app-cell-actions) :not(:where(button,button *)) {
    font-size:15px !important;
    font-weight:400 !important;
}
:root body .product-list-page .pl-column-head,
:root body .product-list-page .pl-column-head *,
:root body .product-list-page .pl-row > :is(.pl-product-link,.pl-category,.pl-rate,.pl-date),
:root body .product-list-page .pl-row > .pl-product-link > span {
    font-size:15px !important;
    font-weight:400 !important;
}

/* Shared screen-table insets and semantic alignment. Vertical density stays local. */
@media screen {
    :root { --app-table-inset:16px; }
    :root body table.app-data-table[class] > :is(thead,tbody,tfoot) > tr > :is(th,td) {
        box-sizing:border-box; padding-left:var(--app-table-inset) !important; padding-right:var(--app-table-inset) !important; vertical-align:middle;
    }
    :root body table.app-data-table[class] > :is(thead,tbody,tfoot) > tr > .app-cell-text { text-align:left !important; }
    :root body table.app-data-table[class] > :is(thead,tbody,tfoot) > tr > .app-cell-number { text-align:right !important; font-variant-numeric:tabular-nums; }
    :root body table.app-data-table[class] > :is(thead,tbody,tfoot) > tr > :is(.app-cell-center,.app-cell-actions) { text-align:center !important; }
    :root body table.app-data-table[class] > thead > tr > th :is(.col-header-content,.col-title) { padding-left:0 !important; padding-right:0 !important; text-align:inherit !important; }
    :root body table.app-data-table[class] > thead > tr > th .col-header-content { display:flex; align-items:center; width:100%; margin:0 !important; }
    :root body table.app-data-table[class] > thead > tr > th .col-title { display:inline-flex; align-items:center; width:auto; max-width:100%; margin:0 !important; }
    :root body table.app-data-table[class] > thead > tr > .app-cell-text :is(.col-header-content,.col-title) { justify-content:flex-start !important; }
    :root body table.app-data-table[class] > thead > tr > .app-cell-number :is(.col-header-content,.col-title) { justify-content:flex-end !important; }
    :root body table.app-data-table[class] > thead > tr > .app-cell-number .col-title { margin-left:auto !important; }
    :root body table.app-data-table[class] > thead > tr > :is(.app-cell-center,.app-cell-actions) :is(.col-header-content,.col-title) { justify-content:center !important; }
    :root body table.app-data-table[class] > thead > tr > :is(.app-cell-center,.app-cell-actions) .col-title { margin-left:auto !important; margin-right:auto !important; }
    :root body table.app-data-table[class] > tbody > tr > .app-cell-actions > :is(div,.action_btn,.sl-actions,.admin-row-actions,.setup-row-actions,.detail-table-actions) { display:flex; align-items:center; justify-content:center !important; gap:7px; }
    :root body table.app-data-table[class] > tbody > tr > td .due-row-cell { padding-left:0 !important; padding-right:0 !important; }
    :root body table.app-data-table[class] .app-cell-number :is(input[type="number"],.due-row-cell) { text-align:right !important; }
    :root body table.app-data-table[class] .app-cell-actions .due-row-cell { justify-content:center !important; }
    /* Native empty states and virtualized spacers span the same table width. */
    :root body table.app-data-table[class] > tbody > tr > td[colspan]:empty { padding:0 !important; border:0; }
    /* Products use div-based virtualized rows; their tracks get the same inset. */
    :root body .product-list-page :is(.pl-column-head,.pl-row) { padding-left:var(--app-table-inset) !important; padding-right:var(--app-table-inset) !important; }
    :root body .product-list-page .pl-column-head > :is(:nth-child(1),:nth-child(2),:nth-child(4)),
    :root body .product-list-page .pl-row > :is(.pl-product-link,.pl-category,.pl-date) { text-align:left !important; }
    :root body .product-list-page .pl-column-head > :nth-child(3),
    :root body .product-list-page .pl-row > .pl-rate { text-align:right !important; font-variant-numeric:tabular-nums; }
    :root body .product-list-page .pl-column-head > :last-child { text-align:center !important; }
    :root body .product-list-page :is(.pl-actions,.pl-desktop-actions) { justify-content:center !important; }
}

/* Report columns share typography, regardless of their numeric or text formatting. */
:root body table.report-data-table {
    
    font-size:15px;
    line-height:1.45;
}
:root body table.report-data-table > :is(thead,tbody,tfoot) > tr > :is(th,td) {
    
    font-size:15px !important;
    font-weight:400 !important;
    line-height:1.45 !important;
    letter-spacing:normal;
}

:root body table.report-data-table > :is(thead,tbody,tfoot) > tr > :is(th,td) :is(span,a,p,strong,small,input,select,div,label,b,em,.col-title,.col-title-text) {
    
    font-size:inherit !important;
    font-weight:inherit !important;
    line-height:inherit !important;
}

/* Div-based report rows use the same type as standard report tables. */
:root body .report-data-grid,
:root body .report-data-grid :is(span,div,small,strong,a,p) {
    
    font-size:15px !important;
    font-weight:400 !important;
    line-height:1.45 !important;
}

/* View and Delete actions use readable labels and consistent outline icons. */
:root body :is(a,button).app-list-icon-button:is(.app-view-button,.app-delete-button)[class] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:auto;
    min-width:max-content;
    min-height:32px;
    padding:6px 10px;
    border-radius:5px;
    font-size:12px; font-weight:500; line-height:1.3; font-style:normal;
    white-space:nowrap;
    text-decoration:none;
    cursor:pointer;
}
:root body :is(a,button).app-delete-button:not(:disabled) {
    color:#B42332 !important;
    background:#FFF !important;
    border:1px solid #F0CDD2 !important;
}
:root body :is(a,button).app-delete-button:hover:not(:disabled) { color:#A4262C !important; background:#FDE7E9 !important; border-color:#E3A3AC !important; }
:root body :is(a,button).app-delete-button:focus-visible { outline:2px solid #B42332; outline-offset:2px; }
:root body .app-list-icon-button:is(.app-view-button,.app-delete-button) > svg { display:block; flex:none; width:15px; height:15px; }
:root body .app-list-icon-button:is(.app-view-button,.app-delete-button) > span { display:inline; font:inherit; white-space:nowrap; }

:root body .app-list-icon-button:is(.app-view-button,.app-delete-button) > svg { fill:none !important; stroke:currentColor; }

.payment-status { display:inline-block; padding:2px 9px; border-radius:999px; font-size:15px; font-weight:400; line-height:1.4; white-space:nowrap; }
.payment-status-paid { color:#107C10 !important; background:#DFF6DD; }
.payment-status-partialpaid { color:#8A4B08 !important; background:#FFF4CE; }
.payment-status-unpaid { color:#B10E1C !important; background:#FDE7E9; }
.payment-status-emi { color:#5C2D91 !important; background:#F3E8FF; }
