/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNzcyIsInNvdXJjZXMiOlsiY3VzdG9tLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */

/*# sourceMappingURL=custom.css.map */
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --gainsboro: #dcdcdc;
    --border: #dee2e6;
    --light_gery: #e9ecef;
    /* Same navy blue as .main-sidebar (see the dashboard-redesign block
       further down this file) - reused for DataTables header styling. */
    --table-header-bg: #173A6A;
    --table-header-text: #EAF2FF;
}

html,
body {
    overflow-x: hidden;
}

.strong {
    font-weight: 700;
}

/* .btn-sm:hover i {
    color: var(--danger);
} */

.delete-detail:hover i {
    color: var(--danger);
}

.text-main {
    color: var(--yellow) !important;
}

.text-report {
    color: var(--success) !important;
}

.text-users {
    color: var(--orange) !important;
}

#scroll_to_top,
#scroll_to_bottom {
    z-index: 1000;
    width: 50px;
    height: 50px;
    text-align: center;
    font-weight: bold;
    border-radius: 50px;
    border: 1px solid #fff;
    background-color: #fff;
    position: fixed;
    border: 1px solid transparent;
    box-shadow: 0px 0px 0px 1px gray;
    right: 4px;
    display: none;
}

#scroll_to_top {
    bottom: 30px;
}

#scroll_to_bottom {
    bottom: 90px;
}

#scroll_to_top i,
#scroll_to_bottom i {
    color: #6d6c6d;
}

#scroll_to_top:hover i,
#scroll_to_bottom:hover i {
    color: #fff;
}

.search-element {
    position: relative;
}

.custom-datalist {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    border-radius: 5px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.custom-datalist.visible {
    display: block;
}

.custom-datalist div a {
    padding: 8px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    color: var(--dark);
}

.custom-datalist div:hover,
.selected {
    background-color: #f0f0f0;
}

label {
    -webkit-user-select: none;
    /* Safari, iOS Safari */
    -moz-user-select: none;
    /* Older Firefox */
    -ms-user-select: none;
    /* Old IE / Edge */
    user-select: none;
    /* Modern browsers */
}

/* #auth {
    background-image: url('/assets/img/background/login.jpeg') !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
} */

.num2d0,
.num3d0,
.num5d0,
.num7d0,
.num9d0,
.num2d2,
.num7d2,
.num9d2,
.num11d2,
.num11d4,
.num14d2,
.num14d2,
.num14d4,
.num15d2,
.maxLength1,
.maxLength2,
.maxLength2d2,
.maxLength3,
.maxLength4,
.maxLength5,
.maxLength7,
.maxLength9d2,
.maxLength11d2,
.maxLength11d4,
.year-mask {
    text-align: right;
}

.count img {
    transition: transform 0.4s ease-in-out;
    /* smooth animation */
}

.count:hover img {
    transform: scale(1.1);
    /* zoom in */
}

.cursor-pointer {
    cursor: pointer;
}

.qualification-icon {
    padding-right: 5px;
    padding-bottom: 10px;
    font-size: medium;
}

.show-blade-icon {
    padding-right: 5px;
    font-size: large;
}

.logout {
    padding-top: 0px;
    padding-bottom: 0px;
}

.logout:focus,
.anchor:focus {
    outline: transparent;
}

.logout:active,
.anchor:active {
    background-color: transparent;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545
}

.gallery {
    position: relative;
}

.gallery .btn-times {
    position: absolute;
    top: -8px;
    right: 1px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.gallery .btn-times:hover {
    color: var(--danger);
}

.gallery .btn-times:active {
    background-color: transparent;
}

.gallery .btn-times:focus {
    outline: transparent;
}

.edit-export-to-excel {
    font-family: Arial, Helvetica, sans-serif;
}

.edit-export-to-excel:hover {
    text-decoration: none;
    color: var(--green) !important;
}

.font-awesome-icon,
.font-awesome-icon-text {
    margin-left: -3px !important;
}

.list-style-none {
    list-style: none;
}

.wrap {
    white-space: normal;
}

.no-wrap {
    white-space: nowrap;
}

.company-branches {
    padding: 3px 5px;
    border: 1px dotted var(--dark);
    border-radius: 5px;
}

.line-height-15 {
    line-height: 15px;
}

.no-numbers {
    list-style-type: none;
    padding-left: 0;
}

.stock-qty {
    display: inline-block;
    font-size: small;
    margin: 3px 0;
    padding: 3px 2px;
    border-radius: 100%;
    background-color: var(--red);
    color: var(--white);
}

.w-5 {
    width: 5%;
}

.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-35 {
    width: 35%;
}

.w-40 {
    width: 40%;
}

.w-45 {
    width: 45%;
}

.w-55 {
    width: 55%;
}

.w-60 {
    width: 60%;
}

.w-65 {
    width: 65%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-85 {
    width: 85%;
}

.w-90 {
    width: 90%;
}

.w-95 {
    width: 95%;
}

/* For permission name  */
.p-w-250 {
    width: 250px;
}

/* Min Width Start */
.min-w-50 {
    min-width: 50px;
}

.min-w-60 {
    min-width: 60px;
}

.min-w-70 {
    min-width: 70px;
}

.min-w-80 {
    min-width: 80px;
}

.min-w-90 {
    min-width: 90px;
}

.min-w-100 {
    min-width: 100px;
}

.min-w-110 {
    min-width: 110px;
}

.min-w-120 {
    min-width: 120px;
}

.min-w-130 {
    min-width: 130px;
}

.min-w-140 {
    min-width: 140px;
}

.min-w-150 {
    min-width: 150px;
}

.min-w-160 {
    min-width: 160px;
}

.min-w-170 {
    min-width: 170px;
}

.min-w-180 {
    min-width: 180px;
}

.min-w-190 {
    min-width: 190px;
}

.min-w-200 {
    min-width: 200px;
}

.min-w-210 {
    min-width: 210px;
}

.min-w-220 {
    min-width: 220px;
}

.min-w-230 {
    min-width: 230px;
}

.min-w-240 {
    min-width: 240px;
}

.min-w-250 {
    min-width: 250px;
}

.min-w-260 {
    min-width: 260px;
}

.min-w-270 {
    min-width: 270px;
}

.min-w-280 {
    min-width: 280px;
}

.min-w-290 {
    min-width: 290px;
}

.min-w-300 {
    min-width: 300px;
}

.min-w-310 {
    min-width: 310px;
}

.min-w-320 {
    min-width: 320px;
}

.min-w-330 {
    min-width: 330px;
}

.min-w-340 {
    min-width: 340px;
}

.min-w-350 {
    min-width: 350px;
}

.min-w-360 {
    min-width: 360px;
}

.min-w-370 {
    min-width: 370px;
}

.min-w-380 {
    min-width: 380px;
}

.min-w-390 {
    min-width: 390px;
}

.min-w-400 {
    min-width: 400px;
}

/* Min Width End */

.tbl-validate thead,
.tbl-validate th,
.tbl-validate td,
.tbl-stock thead,
.tbl-border thead,
.tbl-border th,
.tbl-border td {
    border: 1px solid var(--border);
}

/* ============================================================
   Table header + grand-total styling (2026-08-25). Scoped to
   `table.dataTable` - the class DataTables itself adds to every
   table it initializes - so this covers every DataTable-driven
   table site-wide (Sale Summary, Stock Summary, every other
   report/list table), not just #table_export. */
table.dataTable thead th,
table.dataTable thead td {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    font-size: 15px;
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Grand total row (tfoot) - only present on tables that have one
   (e.g. the "Total" row on Sale Summary / Stock Summary); harmless
   no-op on tables without a tfoot. */
table.dataTable tfoot th,
table.dataTable tfoot td {
    font-size: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Sticky header for #table_export (Sale Summary and other report tables).
   .table-export-scroll is a div datatables.js wraps around just the
   <table> (see initComplete there) - it needs an explicit bounded height
   here because "position: sticky" only works inside an ancestor that
   actually scrolls, and .table-responsive / .dataTables_wrapper don't
   (they never get a constrained height, even though their overflow-x:
   auto forces their computed overflow-y to "auto" too). Wrapping just
   the table (not the search box / buttons / pagination) keeps those
   controls outside the scrolling box, always visible above it. */
.table-export-scroll {
    max-height: 70vh;
    overflow: auto;
}

/* Using position: sticky on the real <th> cells (rather than a JS-cloned
   floating header, like the old DataTables FixedHeader extension did)
   keeps the header pixel-perfect aligned with the body columns, since
   it's literally the same cells. Background/color repeated here (not
   just inherited from the table.dataTable rule above) because a sticky
   element needs its own opaque background so scrolled-under rows don't
   show through it. */
#table_export thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.15);
}

/* Browser Print / Save as PDF: keep header + total-row colours.
   Chrome's print dialog otherwise drops backgrounds. */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    table.dataTable thead th,
    table.dataTable thead td,
    #table_export thead th {
        background-color: #173A6A !important;
        color: #EAF2FF !important;
        box-shadow: inset 0 0 0 1000px #173A6A !important;
    }

    table.dataTable tfoot td,
    table.dataTable tfoot th,
    table.dataTable tr.bg-primary td,
    table.dataTable tr.bg-primary th,
    #table_export tfoot td,
    #table_export tfoot th,
    #table_export tr.bg-primary td,
    #table_export tr.bg-primary th {
        background-color: #007bff !important;
        color: #fff !important;
        box-shadow: inset 0 0 0 1000px #007bff !important;
    }

    table.dataTable tr.bg-light td,
    table.dataTable tr.bg-light th,
    #table_export tr.bg-light td,
    #table_export tr.bg-light th {
        background-color: #e9ecef !important;
        box-shadow: inset 0 0 0 1000px #e9ecef !important;
    }

    table.dataTable tr.row-group td,
    #table_export tr.row-group td {
        background-color: #d4edda !important;
        color: #155724 !important;
        box-shadow: inset 0 0 0 1000px #d4edda !important;
    }

    /* Gross Margin Summary â€” loss rows */
    table.dataTable tr.gm-negative td,
    #table_export tr.gm-negative td {
        background-color: #f8d7da !important;
        box-shadow: inset 0 0 0 1000px #f8d7da !important;
    }
}

/* Gross Margin Summary â€” negative margin rows (screen) */
#table_export tr.gm-negative td,
table.dataTable tr.gm-negative td {
    background-color: #f8d7da !important;
}

.tbl-validate tbody tr {
    height: auto;
}

.tbl-validate tbody td {
    position: relative;
    overflow: visible;
}

.error-container {
    position: absolute;
}

/* On-hand qty sits ABOVE the control, not on top of select2 text. */
.stock-container {
    position: absolute;
    top: 2px;
    right: 12px;
    margin-top: 0;
    color: var(--danger);
    z-index: 1;
    text-align: right;
    pointer-events: none;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

td > .stock-container ~ select.form-control,
td > .stock-container ~ .select2-container {
    margin-top: 1.05rem;
}

/* Long "used later / issuable" line lives under the dropdown in normal flow. */
.stock-committed {
    display: block;
    color: var(--danger);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-top: 0.15rem;
    white-space: normal;
}

.pending-block {
    height: 250px;
    overflow: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 2%;
    padding: 10px;
    font-weight: bold;
}

.voucher-picker-entry .pretty {
    flex: 0 0 auto;
    width: auto !important;
}

.voucher-picker-caption {
    color: #173A6A !important;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
}

.file-preview {
    width: 200px;
    height: 200px;
    object-fit: fill;
}

/* Make modal take up full viewport size */
.modal-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    margin: 0;
}

/* Make modal content fill entire dialog */
.modal-fullscreen .modal-content {
    height: 100vh;
    border: none;
    border-radius: none;
    background-color: rgba(0, 0, 0, 0.5);
    /* or transparent */
}

.btn-time-top-right {
    padding: 5px 10px !important;
    margin-right: 2px !important;
}

.zoom-hover {
    transition: transform 0.3s ease;
}

.zoom-hover:hover {
    transform: scale(1.1);
    color: var(--danger);
}

div.dataTables_wrapper {
    display: flex;
    flex-direction: column;
}

div.dataTables_wrapper .top-left {
    float: left;
}

div.dataTables_wrapper .top-left-buttons {
    float: left;
    margin-top: 5px;
    /* space under "Show entries" */
}

div.dataTables_wrapper .top-right {
    float: right;
}

.reconciled {
    cursor: pointer;
    height: 17px;
    width: 17px;
    accent-color: var(--success);
}

#recalc_btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.fixedHeader-floating {
    z-index: 9999 !important;
}

/* dashboard start */
/* ---------- Dashboard v2: interactive / colourful / soft-3D polish ----------
           Scoped to dash-* classes only. Nothing here changes markup/structure
           beyond the KPI strip rebuild noted below - just motion + depth. */

.dash-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20, 25, 45, .06);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(20, 25, 45, .12);
}

.dash-card .card-header {
    border: none;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.dash-card .card-header small {
    display: block;
    font-weight: 400;
    opacity: .85;
    font-size: 11px;
    margin-top: 2px;
}

.dash-card .card-header .view-all-link {
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, .18);
    padding: 4px 10px;
    border-radius: 20px;
    transition: background .15s ease;
    white-space: nowrap;
}

.dash-card .card-header .view-all-link:hover {
    background: rgba(255, 255, 255, .32);
}

.dash-header-danger {
    background: linear-gradient(135deg, #ff5b5b, #dc3545);
}

.dash-header-warn {
    background: linear-gradient(135deg, #ffb648, #f7941d);
}

.dash-header-blue {
    background: linear-gradient(135deg, #5b8def, #3b6fd6);
}

.dash-header-green {
    background: linear-gradient(135deg, #3cd070, #1e8a44);
}

.dash-header-purple {
    background: linear-gradient(135deg, #a06ee0, #7952b3);
}

.dash-header-teal {
    background: linear-gradient(135deg, #2fc9d8, #17a2b8);
}

.dash-card .card-body {
    padding: 8px 6px;
}

.dash-card .card-body.dash-pad {
    padding: 14px 18px;
}

.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eef1f8;
    transition: background .15s ease, padding-left .15s ease;
}

.dash-row:last-child {
    border-bottom: none;
}

.dash-row:hover {
    background: #f6f8fc;
    padding-left: 20px;
    color: inherit;
    text-decoration: none;
}

.dash-row .dash-ic {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 3px 8px rgba(20, 25, 45, .18);
}

.dash-row .dash-body {
    flex: 1;
    min-width: 0;
}

.dash-row .dash-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.dash-row .dash-sub {
    font-size: 11px;
    color: #8a92a6;
    margin: 0;
}

.dash-row .dash-chev {
    flex: none;
    color: #c3c9da;
    font-size: 14px;
    transition: transform .15s ease, color .15s ease;
}

.dash-row:hover .dash-chev {
    transform: translateX(3px);
    color: #3b6fd6;
}

.dash-empty {
    padding: 22px 16px;
    text-align: center;
    color: #8a92a6;
    font-size: 12.5px;
}

.dash-empty i {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    color: #28a745;
}

.dash-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.dash-badge-up {
    background: #e6f7ec;
    color: #1e8a44;
}

.dash-badge-down {
    background: #fdeaea;
    color: #dc3545;
}

.dash-badge-warn {
    background: #fff3e6;
    color: #f7941d;
}

/* Branch performance ranked bars */
.branch-rank-row {
    padding: 10px 18px;
}

.branch-rank-row .branch-rank-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.branch-rank-row .branch-rank-name {
    font-size: 12.5px;
    font-weight: 700;
}

.branch-rank-row .branch-rank-pos {
    font-size: 10.5px;
    color: #8a92a6;
    font-weight: 600;
}

.branch-bar-track {
    height: 10px;
    border-radius: 6px;
    background: #eef1f8;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(20, 25, 45, .12);
}

.branch-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #5b8def, #3b6fd6);
    box-shadow: 0 1px 4px rgba(59, 111, 214, .5);
    transition: width .6s ease;
}

.branch-rank-row:nth-child(2) .branch-bar-fill {
    background: linear-gradient(90deg, #3cd070, #1e8a44);
    box-shadow: 0 1px 4px rgba(30, 138, 68, .5);
}

.branch-rank-row:nth-child(3) .branch-bar-fill {
    background: linear-gradient(90deg, #ffb648, #f7941d);
    box-shadow: 0 1px 4px rgba(247, 148, 29, .5);
}

.branch-rank-row:nth-child(4) .branch-bar-fill {
    background: linear-gradient(90deg, #a06ee0, #7952b3);
    box-shadow: 0 1px 4px rgba(121, 82, 179, .5);
}

.branch-rank-row a.branch-view {
    font-size: 10.5px;
    color: #3b6fd6;
    text-decoration: none;
    font-weight: 600;
}

.branch-rank-row a.branch-view:hover {
    text-decoration: underline;
}

.dash-subheader {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a92a6;
    padding: 10px 16px 4px;
}

/* ---------- Branded header banner ---------- */
.dash-brand-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 14px;
    padding: 20px 26px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(20, 25, 45, .18);
    position: relative;
    overflow: hidden;
}

.dash-brand-header::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.dash-brand-header h4 {
    margin: 0;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .02em;
}

.dash-brand-header small {
    display: block;
    opacity: .85;
    font-size: 12.5px;
    margin-top: 3px;
}

.dash-brand-header .dash-brand-ic {
    font-size: 30px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    position: relative;
}

/* ---------- Dashboard date filter ---------- */
.dash-filter-card {
    border: 0;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(20, 25, 45, .07);
}

.dash-filter-card .form-group {
    margin-bottom: 0;
}

/* ---------- KPI strip (compact, but readable - not the old giant banner-image tiles) ---------- */
.dash-kpi-row {
    margin-bottom: 4px;
}

.dash-kpi-row>[class*="col-"] {
    margin-bottom: 16px;
}

.dash-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    background: #fff;
    border-radius: 13px;
    padding: 17px 19px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(20, 25, 45, .07);
    border-left: 4px solid var(--kpi-color, #3b6fd6);
    transition: transform .15s ease, box-shadow .15s ease;
}

.dash-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(20, 25, 45, .14);
    color: inherit;
    text-decoration: none;
}

.dash-kpi-ic {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--kpi-color, #3b6fd6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(20, 25, 45, .2);
}

.dash-kpi-body {
    min-width: 0;
    overflow: hidden;
}

.dash-kpi-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #8a92a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-kpi-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-top: 2px;
    white-space: nowrap;
}

.dash-kpi-sub {
    display: block;
    font-size: 10.5px;
    color: #8a92a6;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Equal-height cards within a paired row: fills the taller
           column's whitespace inside the shorter card instead of leaving an
           ugly external gap. ---------- */
.dash-row-pair {
    display: flex;
    flex-wrap: wrap;
}

.dash-row-pair>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dash-row-pair .dash-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dash-row-pair .dash-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* dashboard end */

/* ADDED 2026-09-05 â€” Price Updates dashboard panel.
   Yellow marks a cost rise the item's margin still absorbs; red marks one that
   goes beyond it. Follows the existing dash-header-* / dash-row conventions. */
.dash-header-red {
    background: linear-gradient(135deg, #ef5b5b, #d63b3b);
}

.dash-row-alert {
    background: #fff5f5;
    border-left: 3px solid #dc3545;
}

.dash-row-alert:hover {
    background: #ffecec;
}

.dash-row-warn {
    background: #fffaf0;
    border-left: 3px solid #f0ad2e;
}

.dash-row-warn:hover {
    background: #fff4e0;
}

/* Branch/Company-wise Balance Sheet: contra-normal amounts in red brackets */
.bs-contra-amount {
  color: #c82333;
  font-weight: 600;
}

#table_export th.bs-account-col,
#table_export td.bs-account-col {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

/* Chat button in the header, with unread badge (2026-10-14) */
.navbar .chat-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    background: #6777ef;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(103, 119, 239, 0.45);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.navbar .chat-nav-btn:hover,
.navbar .chat-nav-btn:focus,
.navbar .chat-nav-btn.active {
    background: #4f5ece;
    box-shadow: 0 4px 12px rgba(103, 119, 239, 0.55);
    transform: translateY(-1px);
}

.navbar .chat-nav-btn svg,
.navbar .chat-nav-btn i {
    width: 18px;
    height: 18px;
    color: #fff;
    stroke: #fff;
}

.chat-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* unread messages: the button pulses gently */
@keyframes chat-nav-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.navbar .chat-nav-btn.has-unread {
    animation: chat-nav-pulse 2s infinite;
}

/* small screens: icon only */
@media (max-width: 575.98px) {
    .navbar .chat-nav-btn {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .navbar .chat-nav-text {
        display: none;
    }
}

/* Unread count on the sidebar Chat link (2026-10-14) */
.main-sidebar .sidebar-menu li a .chat-side-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

/* collapsed sidebar: just a dot on the icon */
.sidebar-mini .main-sidebar .sidebar-menu li a .chat-side-badge {
    position: absolute;
    top: 10px;
    right: 14px;
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
}


/* Inputs show text exactly as typed (2026-10-22): names now save in the case
   they are written, so Bootstrap's .text-capitalize on a form input would show
   "abc" as "Abc" while "abc" is saved. Display text elsewhere is unchanged. */
input.form-control.text-capitalize,
textarea.form-control.text-capitalize {
    text-transform: none !important;
}