:root {
    /* --primary: 4, 174, 246;
    --secondary: 23, 25, 26; */
    --primary: 33, 116, 211;
    --primarylight: 211 227 246;
    --white-clr: 255, 255, 255;
    --black-clr: 0, 0, 0;
    --input-border-clr:209, 209, 209;
    --color-blue: 0, 123, 255;
    --bg-grey: 242, 244, 247;
    --border-dark-clr: 9, 7, 7;
    --clr-completed: 0, 128, 0;
    --clr-approved: 0, 128, 0;
    --clr-spraying-in-progress: 93, 0, 207;
    --clr-urgent-jobs: 255, 0, 0;
    --clr-painting-complete: 255, 165, 0;
    --clr-check-with-office:220, 100, 0;
    --clr-cut-supply-job: 14, 165, 233;
    --clr-job-received: 33, 116, 211;
    --clr-ready-for-paint: 79, 70, 229;
    --clr-awaiting-paint: 214, 139, 32;
    --clr-paint-available: 0, 140, 186;
    --clr-respraying-pieces: 102, 102, 102;
    --clr-partially-delivered: 184, 120, 24;
    --clr-delivered: 8, 129, 56;
    --clr-on-hold: 84, 88, 98;
    --clr-cancelled: 197, 46, 55;
    --clr-active: 8, 129, 56;
    --clr-inactive: 197, 46, 55;
    --clr-new: 93, 99, 112;
    --clr-pending: 214, 139, 32;
    --clr-sent: 33, 116, 211;
    --clr-draft: 93, 99, 112;
    --clr-revised: 126, 87, 194;
    --clr-rejected: 197, 46, 55;
    --clr-disapproved: 197, 46, 55;
    --clr-expired: 140, 77, 0;
    --clr-received: 8, 129, 56;
    --clr-failed: 197, 46, 55;
    --clr-archived: 84, 88, 98;
    --clr-returned: 184, 120, 24;
    --clr-out-for-delivery: 0, 140, 186;
    --clr-dispatched: 0, 140, 186;
    --dark-red:197, 46, 55;
    --dark-green: 8, 129, 56;
    --dark-gray:63 65 74;
    --light-blue: 98 168 253;
    --action-active: 236, 245, 239;
    --action-inactive: 250, 239, 239;
    --action-new: 242, 243, 244;
    --action-pending: 251, 243, 232;
    --action-sent: 232, 241, 251;
    --action-draft: 242, 243, 244;
    --action-revised: 242, 238, 249;
    --action-rejected: 250, 239, 239;
    --action-disapproved: 250, 239, 239;
    --action-expired: 243, 237, 229;
    --action-received: 230, 242, 235;
    --action-archived: 238, 238, 239;
    --action-failed: 250, 239, 239;
    --action-returned: 245, 236, 222;
    --action-out-for-delivery: 224, 241, 247;
    --action-dispatched: 224, 241, 247;
    --action-completed: 150, 203, 150;
    --action-approved: 150, 203, 150;
    --action-paid: 150, 203, 150;
    --action-inprogress: 232, 219, 248;
    --action-spraying-in-progress: 232, 219, 248;
    --action-job-received: 232, 241, 251;
    --action-ready-for-paint: 235, 232, 252;
    --action-awaiting-paint: 250, 241, 228;
    --action-paint-available: 224, 241, 247;
    --action-respraying-pieces: 239, 239, 239;
    --action-cut-supply-job: 224, 242, 254;
    --action-urgent-jobs: 255, 158, 158;
    --action-painting-complete: 255, 194, 82;
    --action-synced: 255, 194, 82;
    --action-partially-delivered: 245, 236, 222;
    --action-delivered: 220, 237, 227;
    --action-on-hold: 234, 235, 236;
    --action-cancelled: 249, 234, 235;
    --action-check-with-office: 251, 236, 224;
}

.default{
    /* --primary: 4, 174, 246;
    --secondary: 23, 25, 26; */
    --primary: 33, 116, 211;
    --primarylight: 211 227 246;
}
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; outline: none; }
a { -moz-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; -webkit-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; }
textarea{ resize: none; }
img { -ms-interpolation-mode: bicubic; border: 0; vertical-align: middle; max-width: 100%; height: auto; }
.trans, path, circle, rect, poligon { -moz-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; -webkit-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; }
[class*="text-"]{cursor: initial !important;}
a[class*="text-"], [class*="text-"] a{cursor: pointer !important;}

body{background-color: rgb(var(--bg-grey));}
.app-wrapper{flex-wrap: wrap;}
div > footer{position: relative;left: initial;right:initial;bottom: initial;}
.app-form .select2-container--default .select2-selection--single, .app-form .select2-container--default .select2-selection--single .select2-selection__arrow, .app-form .form-select, .app-form .form-control, .input-group-text, .form-control, .form-select{ height: 35px; }
.app-form textarea.form-control{ min-height: 63px; }
.app-form .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height: 35px; padding-right: 34px; }
.app-form .select2-container--default .select2-selection--multiple{border-color:var(--border_color) !important;}
.app-form .select2-container--default .select2-selection--multiple:focus, .select2-container--default.select2-container--focus .select2-selection--multiple{box-shadow:0 0 0 0.25rem rgba(var(--primary), 0.3) !important;}
.app-wrapper nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title) a:focus{color:rgb(var(--primary));}
.app-form .form-select.form-select-sm, .app-form .form-control.form-control-sm{ height: 35px;padding: 0.3rem 0.5rem; }
.app-form .form-select-sm + .select2-container--default .select2-selection--single .select2-selection__rendered,
.app-form .form-select-sm + .select2-container--default .select2-selection--single .select2-selection__arrow{ line-height: 31px; height: 31px;}
.app-form .form-select:focus, .app-form .form-control:focus{box-shadow:0 0 0 0.25rem rgba(var(--primary), 0.3)}
/* .card .btn{ padding: 4px 10px; } */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{color:rgb(var(--black-clr));}

 /** Input arrow overlap issue fixed **/
 .app-form .form-select.form-select-sm, .app-form .form-control .form-control-sm{  padding-right: 35px !important; }

.btn{font-size: 14px;}
.btn-outline-primary,.btn-check+.btn:hover{color:rgb(var(--primary)); border-color:rgb(var(--primary));}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active{background-color: rgb(var(--primary));border-color:rgb(var(--primary));color:rgb(var(--white-clr));}

/* Add job */
::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);	border-radius: 10px; background-color: #F5F5F5; }
::-webkit-scrollbar{ width: 5px; height: 5px; background-color: #F5F5F5; }
::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: rgba(var(--primary), 1); cursor: pointer; }

header.header-main{height:auto;}
header.header-main .container-fluid .card{background-color:rgb(var(--white-clr));}
nav:not(.dark-sidebar) + .app-content .dark-logo{display: none;}
nav:not(.light-sidebar) + .app-content .light-logo{display: none;}
.dark-sidebar .light-logo{display: none;}
.light-sidebar .dark-logo{display: none;}
.app-logo .logo img{max-width: 150px;max-height: 42px;}
.app-wrapper nav.horizontal-sidebar,
.app-wrapper .semi-nav.horizontal-sidebar{top: 69px;}
.app-wrapper nav.horizontal-sidebar ~ .app-content{ padding-right:0.5rem !important; padding-left: 0.5rem !important; }
.app-wrapper nav.horizontal-sidebar ~ .app-content .header-main > .container-fluid > .row > div > .card{margin-bottom: 0;}
header.header-main .container-fluid .card{margin-bottom: 0;border-bottom: 1px solid rgba(var(--secondary), 0.1);box-shadow: none;}
.app-wrapper nav.horizontal-sidebar ~ .app-content .header-main > .container-fluid > .row > div > .card > .card-body,
.app-wrapper nav.vertical-sidebar ~ .app-content .header-main > .container-fluid > .row > div > .card > .card-body{padding-top: 0.5rem; padding-bottom: 0.5rem;}
.app-wrapper nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title) a{padding-top:0.65rem;padding-bottom:0.65rem;display: inline-flex;}
.app-wrapper nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title).no-sub a{ padding-right:1rem;}
nav .app-nav .main-nav > li:not(.menu-title) > a::after{top: 8px;}
nav .app-nav .main-nav > li:not(.menu-title) ul li{line-height: inherit;}
nav .app-nav .main-nav > li:not(.menu-title) ul li::before{top: 7px;}
nav.vertical-sidebar .app-nav .main-nav > li:not(.menu-title) ul li::before{top: 0px;}
nav .app-nav .main-nav > li:not(.menu-title) ul li:not(:last-child) {border-bottom: 1px dashed rgba(var(--dark), 0.2);}
nav .app-nav .main-nav > li:not(.menu-title) a:hover,
nav .app-nav .main-nav > li:not(.menu-title).active > a{color:rgb(var(--primary));}

.app-wrapper nav .app-nav .main-nav > li:not(.menu-title) ul > li a{ color: var(--font-color) ; }
.app-wrapper nav .app-nav .main-nav > li:not(.menu-title) ul li.active{background:transparent; }
.app-wrapper nav .app-nav .main-nav > li:not(.menu-title) ul > li.active > a{ background:transparent; color:rgb(var(--primary)) ; }
/* .app-wrapper nav.vertical-sidebar .app-nav .main-nav > li:not(.menu-title) ul > li.active > a{ background-color: lightgray; } */

nav .app-nav .main-nav > li:not(.menu-title) > a:not(.collapsed)[aria-expanded=true],
nav .app-nav .main-nav > li:not(.menu-title) > a[aria-expanded=true]{background:transparent;color:rgb(var(--primary));border:none;}
.app-form.app-icon-form i{left: 7px;}
nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title) ul li.another-level.another-level ul{left: calc(100% - -9px);position: absolute;margin-top: 0;top: 0;}
nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title) ul li.another-level.another-level{position: relative;}

.project-team-table thead tr th:nth-child(1){min-width: initial;}
.table tr.app-sort .sort-link{white-space: nowrap;}
.table > thead th{background-color:rgba(var(--white-clr),1);}
.table > thead th{padding:12px 16px !important;}
.table > tbody td{padding:12px 16px !important;}
.table > tfoot td{padding:12px 16px !important;}
.table > thead th,.table > tbody td,.table > tfoot td{font-size: 13px !important;line-height: 22px;letter-spacing: -0.02em; vertical-align: middle; white-space: nowrap; }
.table.table-header-bordered > thead{border-bottom: 1px solid rgb(var(--border-dark-clr));}
.table.table-header-bordered > tbody tr td,
.table.table-header-bordered > tfoot tr td{border-bottom: 1px solid rgba(var(--border-dark-clr),0.06);}
.modal-body > .table-header-bordered{margin-bottom: 0;border:1px dashed rgba(var(--dark), 0.2);}
.table tbody tr:hover{background-color: rgba(var(--light), .1);}
.table span.sort-icon{padding:0 8px;opacity:0.45;font-size:0.8em;}
.table th.sortable{cursor:pointer;user-select:none;}
.table th.sortable:hover .sort-icon{opacity:0.75;}
.table th.sortable[data-direction="asc"]  .sort-icon::before{content:"↑";}
.table th.sortable[data-direction="asc"]  .sort-icon{opacity:1;font-size:0.9em;}
.table th.sortable[data-direction="desc"] .sort-icon::before{content:"↓";}
.table th.sortable[data-direction="desc"] .sort-icon{opacity:1;font-size:0.9em;}
.table th.sortable[data-direction="asc"]  span.sort-icon,.table th.sortable[data-direction="desc"] span.sort-icon{color:rgb(var(--primary));}
.list-table-data.table-bottom-border > thead th:first-child{padding-left: 0.5rem;}

.th-td-image-upload{width: 260px;max-width: 260px;min-width: 260px;}
.th-td-image-upload input{width: 260px;max-width: 260px;min-width: 260px;}
.th-td-image-upload .filepond-2.filepond--root input{width: 220px;max-width: 220px;min-width: 220px;}
.th-td-image-upload .filepond-2.filepond--root{width: 200px !important;height: 50px !important;border-radius: 0;}
.th-td-image-upload .filepond--root .filepond--drop-label{min-height: 20px;}
.th-td-image-upload .filepond--drop-label.filepond--drop-label label{width: 100%;display: flex;gap: 10px;justify-content: center}
.th-td-image-upload .filepond--drop-label.filepond--drop-label label .fa-cloud-upload{font-size: 18px !important;}
.th-td-image-upload .filepond-2.filepond--root:has( .filepond--data input){height: 200px !important;}
.th-td-image-upload .filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-wrapper{border-radius: 0;}
.thtd_srno {max-width: 80px;width: 80px;min-width: 80px;}
.th-td-profile{width: 220px;max-width: 220px;min-width: 220px;}
.th-td-qty{width: 130px;max-width: 130px;min-width: 130px;}
.th-td-whr{width: 130px;max-width: 130px;min-width: 130px;}
.th-td-number{width: 130px;max-width: 130px;min-width: 130px;}
.th-td-discount{width: 130px;max-width: 130px;min-width: 130px;}
.th-td-amt{width: 150px;max-width: 150px;min-width: 150px;}
.th-td-status{width: 150px;max-width: 150px;min-width: 150px;}
.th-td_chk {max-width: 80px;width: 80px;min-width: 80px;}
.th-td-date{width: 150px;max-width: 150px;min-width: 130px;}
.th-td_action {max-width: 80px;width: 80px;min-width: 80px;}
.th-td-price-sm{width: 150px;max-width: 150px;min-width: 150px;}

#jobs-table tr td:first-child { text-align: center; }

.app-form .form-select, .app-form .form-control{border-color:rgb(var(--input-border-clr));}

.image-preview-wrapper .folder-card .fileimage .icon-img,
.image-preview-wrapper.folder-card .fileimage .icon-img {width: 80px;height: 80px;}
.is-invalid {--bs-form-select-bg-icon: unset !important;background-image: unset !important;}
.is-invalid~.invalid-feedback, .is-invalid~.invalid-tooltip, .was-validated :invalid~.invalid-feedback, .was-validated :invalid~.invalid-tooltip{ white-space: break-spaces; }
.form-check-input[type=checkbox], .form-check-label {cursor: pointer;}
.price:has(input){display: block; position: relative; }
.price:has(input):before {content: '$';position: absolute;top: 50%;left: 8px;color:rgba(var(--dark), 0.8);font-size: 16px;font-weight: 500;transform: translateY(-50%);-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);}
.price:has(input) .form-control{padding-left: 20px;}
.readonly{background-color:rgba(0,0,0,0.05) !important;cursor: no-drop !important;border: none !important;box-shadow: none !important;}

.app-wrapper nav.horizontal-sidebar ~ .app-content{ width: 100%; }
.box-layout header.header-main{max-width: 100%;}
.app-wrapper nav.horizontal-sidebar ~ .app-content .header-main > .container-fluid > .row > div > .card > .card-body, .app-wrapper nav.horizontal-sidebar .menu-navs{width: 100%;}
.app-wrapper nav .main, .box-layout .app-wrapper, .box-layout .app-wrapper nav.horizontal-sidebar, .box-layout div > footer, .app-wrapper nav.horizontal-sidebar .app-nav{ width: 100%; }
.app-wrapper nav.horizontal-sidebar .menu-navs > span{ display: none; }
.app-wrapper nav.vertical-sidebar .menu-navs{display: none;}
.app-wrapper nav.horizontal-sidebar .app-logo .logo{ top: -60px; }
.app-wrapper nav.horizontal-sidebar ~ .app-content .header-main .app-btn-list{ margin-bottom: 0px; }
.app-btn-list{ margin-bottom: 0px !important; }
.app-wrapper nav.horizontal-sidebar, .app-wrapper .semi-nav.horizontal-sidebar{ top: 55px; }
.app-wrapper .semi-nav .app-nav .main-nav > li:not(.menu-title) ul{padding: 0;}
.cst-menu-mobile{ font-size: 24px; }
.header-left .header-toggle{ display: none !important; }
table.table thead tr th{ white-space: nowrap; }
.app-wrapper nav.horizontal-sidebar ~ .app-content,
.app-wrapper nav.vertical-sidebar ~ .app-content{ padding-top: 80px;padding-bottom: 00px; }
.app-wrapper nav.horizontal-sidebar ~ .app-content:has(.invalid-feedback[id*="error"]),
.app-wrapper nav.vertical-sidebar ~ .app-content:has(.invalid-feedback[id*="error"]){padding-bottom:40px}
.pointer-event-none{ pointer-events: none; }
#filter-search-btn{ cursor: pointer; }
.powerby-logo{ width: 20px !important; height: 20px !important; }
.filter-input .form-control { font-size: 14px; border-radius: .375rem !important;padding: .375rem .75rem !important; }
.filter-options-container select{ font-size: 14px; }
.filter-input .form-control:focus, .form-select:focus{ box-shadow: 0 0 0 0.25rem rgba(var(--primary), 0.3) !important; border: none; }
.filter-input .select2 { width: 100% !important; }
.filter-input .select2-container--default .select2-selection--single{ height: 35px; border-radius: .375rem !important; }
.filter-input .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height: 35px; }
.filter-input .select2-container--default .select2-selection--single .select2-selection__arrow{ height: 35px; }

.filter-input .form-control.is-invalid:focus, .form-select.is-invalid:focus,
.app-form .form-select.is-invalid:focus, .app-form .form-control.is-invalid:focus{box-shadow:0 0 0 0.25rem rgba(var(--danger), 0.3) !important;}

.horizontal-sidebar{ display: none; }
.header-menu .horizontal-sidebar{ display: block; position: unset; background: transparent; }
.header-menu .main-nav{ display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.header-menu .main-nav > .menu-title{ display: none; }
.header-menu .main-nav > li:not(.menu-title){ margin: 0; }
.header-menu .main-nav > li:not(.menu-title) > a{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
}
.header-menu .main-nav > li.no-sub > a::after{ display: none !important; }
.header-menu .horizontal-sidebar{ border-bottom: none !important; }
.has-action table tbody tr, .has-action table thead tr { position: relative; }
.has-action table tbody tr td:last-child, .has-action table thead tr th:last-child{ min-width: 100px; width:100px; position: sticky; right: 0px; height: 100%; text-align: center; z-index: 2 !important; }
.has-action table tbody tr td:last-child:has( .show ){ z-index: 3 !important; }
.has-action table tbody tr td:last-child::after, .has-action table thead tr th:last-child::after{ content: ""; box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15); height: 100%; position: absolute; top: 0; bottom: 0; width: 10px; left: 0; transform: translateX(-80%); }
.has-action table tbody tr td.at-end::after, .has-action table thead tr th.at-end::after{ content: none !important; }
/*.has-action table tbody tr td:last-child, .has-action table thead tr th:last-child{ border-right: none !important; }*/
.has-action table tbody tr td:last-child{
    background-color: inherit !important;
    background-image: none !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px dashed var(--border_color) !important;
    border-right: 0 !important;
}
.has-action table tbody tr td[colspan]:last-child::after{display:none;}

.dropdown-menu.show{ border: none; background: var(--white); z-index: 1000;     box-shadow: 2px 2px 18px 0px rgba(0, 0, 0, 0.15); }
.table .dropdown-menu:before { content: ""; width: 0px; height: 0px; border-style: solid; border-width: 0 8px 13.9px 8px; border-color: transparent transparent var(--white) transparent; transform: rotate(0deg); position: absolute; top: -10px; right: 15px; }
.dropdown-menu[data-popper-placement="top-end"]:before, .dropdown-menu[data-popper-placement="top-finish"]:before { left: unset; right: 15px; top: unset; bottom: -10px; border-width: 13.9px 8px 0px 8px; border-color: var(--white) transparent transparent transparent; }

.cst-act-btn-outer{ background: var(--border_color); display: flex; align-items: center; justify-content: center; padding: 5px; border-radius: 50px; height: 100% !important; width: auto; aspect-ratio: 1 / 1; }
.welcome-text{ font-size: 12px; line-height: 12px; }
.action_panel_main{position: relative;}
.action_panel {margin-bottom: 0; background-color: #ffffff; border-radius: 4px; position: absolute; width: fit-content; min-width: 220px; right: 0; top: calc(100% + 20px); z-index: 999; box-shadow: 2px 2px 26px 0px #00000040;}
.action_panel_main .action-popup-btn .cst-act-btn-outer i{ top: 50%; left: 50%; transform: translate(-50%, -50%); }
.action_panel_main .action_panel .btn-group { position: relative; }

/* .action_panel_main .action_panel .btn-group .dropdown-menu { left: 0px !important; top: 0px !important; transform: translate(calc(-100% - 15px), 0%) !important; }
.action_panel_main .action_panel .btn-group .dropdown-menu::after { content: ""; width: 0px; height: 0px; border-style: solid; border-width: 0 8px 13.9px 8px; border-color: transparent transparent var(--white) transparent; transform: rotate(90deg); position: absolute; top: 6px; right: -12px; z-index: -1; } */
.cst-act-btn{ position: relative; }
.cst-act-btn ul.dropdown-menu.show { left: 0px !important; width: fit-content !important; transform: translate(-100%, 0px) !important; }
.card-header .cst-act-btn{row-gap: 5px;display: flex;flex-wrap: wrap;justify-content: flex-end;}
#jobNote{ height: 63px; }

.clamp-2-lines {overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview-image { width: 100%; height: 180px; object-fit: cover; border: 1px solid #ddd; border-radius: 5px; object-fit: contain; }

.cst-gray-bg{ background: rgba(var(--bs-body-color-rgb), 0.03); box-shadow: none; }

.cst-card-with-bg{ background: #f9f9fc;  border-radius: 15px; border: 1px dashed gray; }
.cst-set-timeline-height{ max-height: 312px; overflow-y: auto; }
.table-sell-bg-transparent.table > :not(caption) > * > *, .table-sell-bg-transparent.table tbody tr:hover{ background-color: transparent !important; }
.hide-overflow{ overflow: hidden; }
.set-full-width-on-content:has(.view-profile-grid > *){ width: 100% !important; }
.cst-summery-card .accordion-item{ border: none; background: transparent !important; }
.cst-summery-card .accordion-item .accordion-button{ background: transparent !important; }
.cst-summery-card .accordion-light-secondary .accordion-item .accordion-button[aria-expanded=true]{ background: transparent !important; }
.cst-summery-card .accordion-light-secondary .accordion-item .accordion-button{ color: #000 !important; }
[aria-labelledby="gallery-tab"] .card.h-100{height: 100% !important;}

/* ===== Filter Panel Styles Start ===== */
.filter_panel_main{position: relative;}
.filter-panel {margin-bottom: 0; background-color: #ffffff; border-radius: 4px; position: absolute; width: 400px; right: 0; top: calc(100% + 20px); z-index: 999; box-shadow: 2px 2px 26px 0px #00000040;}
.filter-options-container {display: flex; flex-direction: column; gap: 4px; padding: 12px 0;}
.filter-option { padding: 2px 15px; cursor: pointer; transition: all 0.2s; }
.filter-label {padding: 6px 5px 6px 30px; display: block; position: relative;}

.filter-btn.filter_active { background-color: rgba(33, 116, 211, 0.08); border-color: rgba(33, 116, 211, 0.1); color: var(--color-black);}
.filter-counter { position: absolute; top: -7px; right: -5px; min-width: 20px; min-height: 20px; border-radius: 100%; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 1px; background: rgba(var(--primary), 1); color: var(--white);}
.filter-btn.angle-down:after {content: ""; width: 6px; height: 6px; border-bottom: 1px solid #7B7B7B; border-right: 1px solid #7B7B7B; -ms-transform: rotate(45deg) translate(50%,50%); -moz-transform: rotate(45deg) translate(50%,50%); -o-transform: rotate(45deg) translate(50%,50%); -webkit-transform: rotate(45deg) translate(50%, 50%); transform: rotate(45deg) translate(50%, 50%); position: absolute; top: -12px; right: 12px; font-size: 0; background: 0 0; margin: auto; bottom: 0; transition: all .4s ease-in-out; }
.filter-label.checkbox::before {width: 20px;height: 20px;content: "";display: inline-block;border-radius: 3px;border: 1px solid #676A6C;position: absolute;left: 0;top: 6px;}
.filter-label.checkbox::after {content: '';display: inline-block;width: 6px;height: 12px;border: solid #ffffff;border-width: 0 2px 2px 0;position: absolute;left: 7px;z-index: 2;top: 8px;transform: rotate(45deg);-webkit-transform: rotate(45deg);-ms-transform: rotate(45deg);-o-transform: rotate(45deg);opacity: 0;}
.filter-option.active > .filter-label.checkbox:before {background: rgb(var(--color-blue));border: 1px solid rgb(var(--color-blue));}
.filter-option.active > .filter-label.checkbox:after {opacity: 1;}

.filter-label.radiobox::before {width: 20px; height: 20px; content: ""; display: inline-block; border: 1px solid #676A6C; position: absolute; left: 0; top: 6px; border-radius: 100%;}
.filter-label.radiobox::after {content: ''; display: inline-block; width: 12px; height: 12px; background-color: rgb(var(--color-blue)); position: absolute; left: 4px; z-index: 2; top: 10px; opacity: 0; border-radius: 100%;}
.filter-option.active > .filter-label.radiobox:before {border: 1px solid rgb(var(--color-blue));}
.filter-option.active > .filter-label.radiobox:after {opacity: 1;}

.filter-input {padding: 15px; margin: 0 -15px; background-color: #f2f4f7; border-radius: 0;}
.filter-input.active { background: #dee2e6; padding: 11px; }
.font_20{font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--color-black);}
.filter-panel_header, .filter-panel_footer{padding: 15px;}
.filter-panel_header{border-bottom: 1px solid rgba(28, 27, 23, 0.1);}
.filter-panel_footer{border-top: 1px solid rgba(28, 27, 23, 0.1)}
/* ===== Search Box ===== */
.search-box {display: flex; align-items: center; padding: 10px 15px; width: 100%; max-width: 100%; background-color: #F2F4F7;}
.search-box input { border: none; outline: none; width: 100%; font-size: 16px; color: #333; background: transparent; }
.search-box input:focus { box-shadow: none; }
.search-box .filter_search.with_icon {background: #fff url('../images/search-icon-grey.svg') no-repeat center left 10px; padding-left: 30px;}
.filters_tab{border-bottom: 1px solid #1C1B171A; background-color: #ffffff; padding: 0 15px; display: flex; gap: 8px;}
.filter_tab_link{position: relative; font-size: 14px; line-height: 46px; font-weight: 500; border-bottom: 2px solid transparent; transition: all .4s ease-in-out; padding: 0 8px; cursor: pointer;}
.filter_tab_link.active{color: rgb(var(--primary)); border-bottom-color: rgb(var(--primary));}
.filter_panel_form_main {max-height: calc(100vh - 400px); overflow-y: auto;}
.closePopup, .closeFilter, .close_action { position: relative; width: 24px; height: 24px; z-index: 2;}
.closePopup:before, .closeFilter:before, .close_action:before { position: absolute; content: ''; top: 0; right: 0; left: 0; bottom: 0; margin: auto; width: 60%; height: 2px; background: #000000; -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); transition: all .4s ease-in-out; }
.closePopup:after, .closeFilter:after, .close_action:after { position: absolute; content: ''; top: 0; right: 0; left: 0; bottom: 0; margin: auto; width: 60%; height: 2px; background: #000000; -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: all .4s ease-in-out; }
.cst-btn-hover-effect:hover{ color: inherit; background: transparent !important;}
.cst-btn-hover-effect:hover::before{ background: transparent !important; }
.cst-btn-hover-effect:hover, .cst-btn-hover-effect.active, .cst-btn-hover-effect.show, .cst-btn-hover-effect:checked, .cst-btn-hover-effect:focus{ color: inherit !important; background: transparent !important; }

/* ===== Filter Panel Styles End ===== */

.page-tbl-card-wrap{border-radius: 0;border:0;box-shadow: none;}
.page-tbl-card-wrap .table-responsive{border:1px dashed rgba(var(--dark), 0.2);}
.page-tbl-card-wrap .table-responsive .table{margin-bottom: 0;}
.page-tbl-card-wrap > .card-body{padding: 0;}
.page-tbl-card-wrap > .card-body .table-responsive + .card-footer{background-color: rgb(var(--bg-grey));padding-left: 0px;padding-right: 0;border-radius: 0;}
.app-pagination .page-item.disabled{cursor: not-allowed;}
.dropdown .ti-dots {border: 1px solid #000;border-radius: 50%;padding: 1px;display: inline-flex;}
.dropdown-item{font-size: 13px;display: flex;align-items: center;gap: 6px;line-height: 1.3em;}
.dropdown-item i {font-size: 18px;}
[data-bs-toggle="modal"]{cursor: pointer;}

.cst-pro-cnt-box .product-grid .product-image{display: flex;align-items: center;justify-content: center;position:initial;}
.cst-pro-cnt-box .product-grid .product-links{left:initial;right:10px;top:10px;}

/*Status Color start*/
table > tbody > tr.synced{background-color: rgba(var(--clr-painting-complete),0.68) !important;--bs-table-bg: initial;}
table > tbody > tr.active{background-color: rgba(var(--clr-active),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.inactive{background-color: rgba(var(--clr-inactive),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.new{background-color: rgba(var(--clr-new),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.pending{background-color: rgba(var(--clr-pending),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.sent{background-color: rgba(var(--clr-sent),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.draft{background-color: rgba(var(--clr-draft),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.revised{background-color: rgba(var(--clr-revised),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.rejected{background-color: rgba(var(--clr-rejected),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.expired{background-color: rgba(var(--clr-expired),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.received{background-color: rgba(var(--clr-received),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.archived{background-color: rgba(var(--clr-archived),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.failed{background-color: rgba(var(--clr-failed),0.08) !important;--bs-table-bg: initial;}
table > tbody > tr.returned{background-color: rgba(var(--clr-returned),0.12) !important;--bs-table-bg: initial;}
table > tbody > tr.out-for-delivery,
table > tbody > tr.dispatched{background-color: rgba(var(--clr-out-for-delivery),0.12) !important;--bs-table-bg: initial;}

table > tbody > tr.completed,
table > tbody > tr.paid{background-color: rgba(var(--clr-completed),0.41) !important;--bs-table-bg: initial;}
table > tbody > tr.approved{background-color: rgba(var(--clr-approved),0.41) !important;--bs-table-bg: initial;}

table > tbody > tr.inprogress,
table > tbody > tr.spraying-in-progress{background-color: rgba(var(--clr-spraying-in-progress),0.14) !important;--bs-table-bg: initial;}
table > tbody > tr.job-received{background-color: rgba(var(--clr-job-received),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.ready-for-paint{background-color: rgba(var(--clr-ready-for-paint),0.12) !important;--bs-table-bg: initial;}
table > tbody > tr.awaiting-paint{background-color: rgba(var(--clr-awaiting-paint),0.12) !important;--bs-table-bg: initial;}
table > tbody > tr.paint-available{background-color: rgba(var(--clr-paint-available),0.12) !important;--bs-table-bg: initial;}
table > tbody > tr.respraying-pieces{background-color: rgba(var(--clr-respraying-pieces),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.partially-delivered{background-color: rgba(var(--clr-partially-delivered),0.14) !important;--bs-table-bg: initial;}
table > tbody > tr.delivered{background-color: rgba(var(--clr-delivered),0.14) !important;--bs-table-bg: initial;}
table > tbody > tr.on-hold{background-color: rgba(var(--clr-on-hold),0.12) !important;--bs-table-bg: initial;}
table > tbody > tr.cancelled{background-color: rgba(var(--clr-cancelled),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.disapproved{background-color: rgba(var(--clr-disapproved),0.10) !important;--bs-table-bg: initial;}
table > tbody > tr.cut-supply-job{background-color: rgba(var(--clr-cut-supply-job),0.16) !important;--bs-table-bg: initial; outline: 1px solid rgba(var(--clr-cut-supply-job),0.35);}
table > tbody > tr.urgent-jobs{background-color: rgba(var(--clr-urgent-jobs),0.38) !important;--bs-table-bg: initial;}
table > tbody > tr.painting-complete{background-color: rgba(var(--clr-painting-complete),0.68) !important;--bs-table-bg: initial;}
table > tbody > tr.check-with-office{background-color: rgba(var(--clr-check-with-office),0.12) !important;--bs-table-bg: initial; outline: 1px solid rgba(var(--clr-check-with-office),0.35);}
table > tbody > tr.client-on-hold{background-color: rgba(220,53,69,0.08) !important;--bs-table-bg: initial; outline: 1px solid rgba(220,53,69,0.25); opacity: 0.8;}
.client-on-hold-banner{background:rgba(220,53,69,.08);}

table > tbody > tr.completed .badge,
table > tbody > tr.paid .text-light-success{background:rgba(var(--white-clr),0.75);color:rgb(var(--clr-completed));}
table > tbody > tr.approved .text-light-success{background:rgba(var(--white-clr),0.75);color:rgb(var(--clr-approved));}
table > tbody > tr.active .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-active))}
table > tbody > tr.inactive .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-inactive))}
table > tbody > tr.new .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-new))}
table > tbody > tr.pending .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-pending))}
table > tbody > tr.sent .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-sent))}
table > tbody > tr.draft .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-draft))}
table > tbody > tr.revised .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-revised))}
table > tbody > tr.rejected .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-rejected))}
table > tbody > tr.expired .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-expired))}
table > tbody > tr.received .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-received))}
table > tbody > tr.archived .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-archived))}
table > tbody > tr.failed .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-failed))}
table > tbody > tr.returned .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-returned))}
table > tbody > tr.out-for-delivery .badge,
table > tbody > tr.dispatched .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-out-for-delivery))}

table > tbody > tr.job-received .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-job-received))}
table > tbody > tr.ready-for-paint .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-ready-for-paint))}
table > tbody > tr.awaiting-paint .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-awaiting-paint))}
table > tbody > tr.paint-available .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-paint-available))}
table > tbody > tr.spraying-in-progress .badge{background:rgba(var(--white-clr),0.75);color:rgb(var(--clr-spraying-in-progress))}
table > tbody > tr.respraying-pieces .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-respraying-pieces))}
table > tbody > tr.urgent-jobs .badge{background:rgba(var(--white-clr),0.75);color:rgba(var(--clr-urgent-jobs),0.58)}
table > tbody > tr.painting-complete .badge{background:rgba(var(--white-clr),0.75);color:rgb(var(--clr-painting-complete))}
table > tbody > tr.partially-delivered .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-partially-delivered))}
table > tbody > tr.delivered .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-delivered))}
table > tbody > tr.on-hold .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-on-hold))}
table > tbody > tr.cancelled .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-cancelled))}
table > tbody > tr.disapproved .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-disapproved))}
table > tbody > tr.cut-supply-job .badge{background:rgba(var(--white-clr),0.82);color:rgb(var(--clr-cut-supply-job))}
table > tbody > tr.check-with-office .badge{background:rgba(var(--white-clr),0.75);color:rgb(var(--clr-check-with-office))}

table > tbody > tr.paid .badge,
table > tbody > tr.synced .badge{background:rgba(var(--white-clr),0.75);}

td:has(.form-check-input:disabled),
td:has(input:disabled),
input:disabled{cursor: no-drop !important;}

.has-action table tbody tr.active td:last-child{background-color: rgb(var(--action-active)) !important;}
.has-action table tbody tr.inactive td:last-child{background-color: rgb(var(--action-inactive)) !important;}
.has-action table tbody tr.new td:last-child{background-color: rgb(var(--action-new)) !important;}
.has-action table tbody tr.pending td:last-child{background-color: rgb(var(--action-pending)) !important;}
.has-action table tbody tr.sent td:last-child{background-color: rgb(var(--action-sent)) !important;}
.has-action table tbody tr.draft td:last-child{background-color: rgb(var(--action-draft)) !important;}
.has-action table tbody tr.revised td:last-child{background-color: rgb(var(--action-revised)) !important;}
.has-action table tbody tr.rejected td:last-child{background-color: rgb(var(--action-rejected)) !important;}
.has-action table tbody tr.expired td:last-child{background-color: rgb(var(--action-expired)) !important;}
.has-action table tbody tr.received td:last-child{background-color: rgb(var(--action-received)) !important;}
.has-action table tbody tr.archived td:last-child{background-color: rgb(var(--action-archived)) !important;}
.has-action table tbody tr.failed td:last-child{background-color: rgb(var(--action-failed)) !important;}
.has-action table tbody tr.returned td:last-child{background-color: rgb(var(--action-returned)) !important;}
.has-action table tbody tr.out-for-delivery td:last-child,
.has-action table tbody tr.dispatched td:last-child{background-color: rgb(var(--action-out-for-delivery)) !important;}
.has-action table tbody tr.completed td:last-child{background-color: #96cb96 !important;}
.has-action table tbody tr.paid td:last-child{background-color: rgb(var(--action-paid)) !important;}
.has-action table tbody tr.approved td:last-child{background-color: rgb(var(--action-approved)) !important;}
.has-action table tbody tr.inprogress td:last-child{background-color: rgb(var(--action-inprogress)) !important;}
.has-action table tbody tr.spraying-in-progress td:last-child{background-color: rgb(var(--action-spraying-in-progress)) !important;}
.has-action table tbody tr.job-received td:last-child{background-color: rgb(var(--action-job-received)) !important;}
.has-action table tbody tr.ready-for-paint td:last-child{background-color: rgb(var(--action-ready-for-paint)) !important;}
.has-action table tbody tr.awaiting-paint td:last-child{background-color: rgb(var(--action-awaiting-paint)) !important;}
.has-action table tbody tr.paint-available td:last-child{background-color: rgb(var(--action-paint-available)) !important;}
.has-action table tbody tr.respraying-pieces td:last-child{background-color: rgb(var(--action-respraying-pieces)) !important;}
.has-action table tbody tr.cut-supply-job td:last-child{background-color: rgb(var(--action-cut-supply-job)) !important;}
.has-action table tbody tr.urgent-jobs td:last-child{background-color: rgb(var(--action-urgent-jobs)) !important;}
.has-action table tbody tr.painting-complete td:last-child{background-color: rgb(var(--action-painting-complete)) !important;}
.has-action table tbody tr.synced td:last-child{background-color: rgb(var(--action-synced)) !important;}
.has-action table tbody tr.partially-delivered td:last-child{background-color: rgb(var(--action-partially-delivered)) !important;}
.has-action table tbody tr.delivered td:last-child{background-color: rgb(var(--action-delivered)) !important;}
.has-action table tbody tr.on-hold td:last-child{background-color: rgb(var(--action-on-hold)) !important;}
.has-action table tbody tr.cancelled td:last-child{background-color: rgb(var(--action-cancelled)) !important;}
.has-action table tbody tr.disapproved td:last-child{background-color: rgb(var(--action-disapproved)) !important;}
.has-action table tbody tr.synced.paid td:last-child{background-color: rgb(var(--action-paid)) !important;}
.has-action table tbody tr.check-with-office td:last-child{background-color: rgb(var(--action-check-with-office)) !important;}

table > tbody > tr[class] .badge{
    border: 1px solid rgba(var(--white-clr),0.35);
    box-shadow: inset 0 0 0 1px rgba(var(--white-clr),0.12);
}

table.has-action > tbody tr,  table.has-action > thead tr {position: relative;}
 table.has-action > tbody tr td:last-child,  table.has-action > thead tr th:last-child{ min-width: 75px; position: sticky; right: 0px; height: 100%; text-align: center; z-index: 2 !important; }
 table.has-action > tbody tr td:last-child:has( .show ){ z-index: 3 !important; }
 table.has-action > tbody tr td.actions::after,  table.has-action > thead tr th.actions::after,
 table.has-action > tbody tr td.action::after,  table.has-action > thead tr th.action::after{ content: ""; box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15); height: 100%; position: absolute; top: 0; bottom: 0; width: 10px; left: 0; transform: translateX(-80%); }
 table.has-action > tbody tr td.at-end::after,  table.has-action > thead tr th.at-end::after{ content: none !important; }
 table.has-action > tbody tr td.actions,  table.has-action > thead tr th.actions,
 table.has-action > tbody tr td.action,  table.has-action > thead tr th.action{ border-right: 1px dashed var(--border_color) !important; }
 table.has-action > tbody tr td:last-child{
    background-color: inherit !important;
    background-image: none !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px dashed var(--border_color) !important;
    border-right: 0 !important;
 }
 table.has-action > thead tr th:last-child{ background-color:rgb(var(--light-secondary)) }
/*Status Color end*/

.form-control.cst-qnty{max-width: 120px;margin: auto;}
.cst-margin-minus{margin-left: -15px;margin-right: -15px;}

.app-wrapper nav.horizontal-sidebar ~ .app-content .header-main .cst-menu-mobile{display: none !important;}

nav .app-nav .main-nav > li:not(.menu-title).cst-add-job-menu a{padding: 0px !important;background-color: rgb(var(--primary));color: rgb(var(--white-clr));display: flex !important;align-items: center;justify-content: center;width: 28px !important;height: 28px !important;border-radius: 50%;}
.app-wrapper nav.horizontal-sidebar .app-nav .main-nav > li:not(.menu-title).cst-add-job-menu{display: inline-flex;align-items: center;justify-content: center;margin-right: 5px;}
nav .app-nav .main-nav > li:not(.menu-title).cst-add-job-menu a i{margin-top: -1px;font-size: 17px;}

nav.vertical-sidebar .app-nav .main-nav > li:not(.menu-title).cst-add-job-menu a{margin: 10px auto 5px;}
nav.vertical-sidebar .app-nav .main-nav > li:not(.menu-title).cst-add-job-menu a i{margin-left: 0;margin-right: 0;}
.edit_btn .dropdown-item{background-color: rgba(var(--white-clr),0.8);border-radius: 50%;padding: 2px;top: -1px;position: relative;}
.dropdown-item [class*="text-"]{cursor: pointer !important;}
.thtd_action .dropdown-item [class*="text-"]{padding: 2px;}
.disabled {background-color: var(--bs-secondary-bg);opacity: 1;pointer-events: none;}
.disabled-div{cursor: not-allowed;}
.select2-container--default.select2-container--disabled .select2-selection--single{cursor: not-allowed !important;}
.select2-container .select2-selection--single .select2-selection__rendered{padding-left: .375rem !important; padding-right: 2.25rem !important;}
.select2-container--default .select2-selection--single .select2-selection__arrow{width: 32px !important;}
.select2-container--default .select2-selection--single .select2-selection__arrow b{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");    background-repeat: no-repeat; background-position: center; background-size: 16px 12px; width: 25px !important; height: 25px !important; transform: translate(-50%, -50%);border:none !important;margin-left: -4px !important;}
.cst-radio-info-wrap{position: relative;}
.cst-radio-info-wrap .cst-info-i{position: absolute;left: 89px;margin-left: 10px;top: 7px;}
.fa-times-circle,.fa-check-circle{position:relative;z-index:1;}
.fa-times-circle:after,
.fa-check-circle:after{content: ''; background: rgba(var(--white-clr),1); width: 98%; height: 98%; position: absolute; display: flex; top: -1px; bottom: 0; left: 0; right: 0; margin: auto; z-index: -1; border-radius: 50%;}
.fa-times-circle:hover:after,
.fa-check-circle:hover:after{opacity: 0.5;}
nav .app-nav .main-nav > li:not(.menu-title) ul li.another-level > a[aria-expanded=false][class="collapsed"]::after,
nav .app-nav .main-nav > li:not(.menu-title) ul li.another-level > a[aria-expanded=true][class="collapsed"]::after,
nav .app-nav .main-nav > li:not(.menu-title) ul li.another-level > a[aria-expanded=false]::after{content: "\ea5f" !important;}
nav .app-nav .main-nav > li:not(.menu-title) ul li.another-level > a[aria-expanded=true]::after{content: "\ea62" !important;}

.cst-login-bg{background-image: url(2de5893d8e71cd722bdc.png);}
.image-logobox{text-align: center;}
.image-logobox .logo{max-width: 250px;margin: auto;}
.cst-login-image-div .form_container{width: 100%;max-width:540px;}
.cst-form-div{width: 100%;max-width: 420px;padding: 20px;}
.cst-bg-gradient{background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgb(221 237 247) 100%);}

.app-wrapper nav.vertical-sidebar ~ .app-content .container-fluid{padding-left: 0 !important;padding-right: 0 !important;}

.app-wrapper .semi-nav .app-logo{padding: 0;}
.sticky_button_wrap.sticky_button{position: fixed;z-index: 3;left: 0;right: 0;background:rgba(var(--white-clr),1);padding: 14px 17px 12px;top: 60px;box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.25);}
.semi-nav + .app-content .sticky_button_wrap.sticky_button{left: 4.5rem;transition: var(--app-transition);padding-left: 10px;padding-right: 10px;}

.app-wrapper .app-content{min-height: calc(100vh - 48px);}
.cst-maxWidth-col{max-width: 1200px;margin: auto;}

/* ==== CST Loader Css Start */
.cst-loader-wrapper{position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background: #ffffff8a;z-index: 2000;overflow: hidden;display: flex;align-items: center;justify-content: center;}
.loader {width: 48px;height: 48px;border: 5px solid #ea5659;border-bottom-color: transparent;border-radius: 50%;display: inline-block;box-sizing: border-box;animation: rotation 1s linear infinite;position: absolute;}
@keyframes rotation {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}
/* ==== CST Loader Css End */


/* ==== Validation Css Start */
/* .invalid-feedback{ top: unset; bottom: 40px; right: 0; left: calc(100% - calc(var(--bs-gutter-x) * .5)); transform: translateX(-100%); height: auto; margin: 0; -webkit-font-smoothing: auto; line-height: normal; font: 11px / 11px arial; background: rgb(var(--danger)); padding: 4px 6px 4px; color: rgb(var(--white-clr)); border-radius: 3px; position: absolute; width: max-content; z-index: 1000; }
.invalid-feedback::after{ border-color: rgb(var(--danger)) transparent #ffffff00; -moz-border-image: none; -o-border-image: none; border-image: none; border-right: 6px solid transparent; border-style: solid; border-width: 6px; content: " "; height: 0; left: 20px; margin-left: -10px; position: absolute; top: 100%; width: 0; z-index: 4; } */

.invalid-feedback { line-height: normal; font: 12px / 12px arial; font-weight: 600 !important; padding: 4px 6px 4px 0px; color: rgb(var(--danger)); border-radius: 3px; z-index: 1000; }
.app-form .btn-group.is-invalid label {border-color: rgba(var(--danger), 1);}

.input-group:has(.priceFormate) .invalid-feedback{ position: absolute; bottom: unset; top: -19px; right: 0px; left: unset; transform: none; }
/*textarea + .invalid-feedback { top: 0px; right: 0px; bottom: unset; transform: translate(-100%, -100%); }*/
.app-form .is-invalid .select2-selection,
.app-form .select2.is-invalid .select2-selection { border-color: rgb(var(--danger)) !important; }

.select2-container--default .select2-selection--single .select2-selection__clear{ height: 40px; margin-right: 40px;  }
.btn-outline-danger:hover, .btn-outline-danger.active, .btn-outline-danger.show, .btn-outline-danger:checked, .btn-outline-danger:focus { background-color: rgba(var(--danger), 1) !important; color: var(--white) !important;
}
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){ border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.radio-btn-error-msg .invalid-feedback { display: inline-block; }
.radio-btn-error-msg-cst:has( .btn-check.is-invalid) .invalid-feedback{ display: inline-block; }
/* ==== Validation Css End */

/* ==== Sticky Btn Css Start */
.sticky_button_wrap.sticky_button { position: fixed; z-index: 1002; left: 0; right: 0; top: 110px; background: rgba(var(--white-clr), 1); padding: 14px 17px 12px;   box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.25);}
.semi-nav + .app-content .sticky_button_wrap.sticky_button { top: 65px; left: 4.5rem; transition: var(--app-transition); padding-left: 10px; padding-right: 10px; }
.semi-nav + .app-content .preview-card[style*="position: fixed;"] { top: 80px !important; }
.select2-container{ z-index: 1000; }
/* ==== Sticky Btn Css End */



/* Header Hide whensticky_button_wrap exist start*/
.app-wrapper:has( .card-header.sticky_button) .header-main{ display: none; }
.app-wrapper:has( .card-header.sticky_button) nav.horizontal-sidebar{ top: 0px; }
.app-wrapper:has( .card-header.sticky_button) .sticky_button.sticky_button{ top: 0px; }
.app-wrapper:has( .card-header.sticky_button) .semi-nav + .app-content .sticky_button_wrap.sticky_button{ top: 0px; }
.app-wrapper:has( .card-header.sticky_button) .card-header.sticky_button_wrap.sticky_button{ border-radius: 0px; padding-top: 5px; padding-bottom: 5px; }
.app-wrapper:has( .card-header.sticky_button) .card-header > div.row { width: 100%; margin: auto; }
.app-wrapper:has( .card-header.sticky_button) .card-preview-body{ max-height: calc(100dvh - 210px); }
/* Header Hide whensticky_button_wrap exist end*/


/* For remove sticky Footer start */
div > footer{ position: unset; }
.app-wrapper{ flex-wrap: wrap; }
/* For remove sticky Footer end */


/** Table Default Min Height Set Start */
.table-responsive.cst-min-height-table{ min-height: 250px; }
/* Table Default Min Height Set End */


/** Custom Input File Design Start **/
.cst-file-upload input[type=file] {margin: auto; padding: 7px; border: 2px dashed #bbb; background-color: #fff; transition: border-color 0.25s ease-in-out; font-size:11px; }
.cst-file-upload input[type=file]::file-selector-button {padding: 0.5em 1.5em; border-width: 0; border-radius: 2em; background-color: #174d82; color: #dbe6f0; transition: all 0.25s ease-in-out; cursor: pointer; margin-right: 1em; font-size:11px; }
.cst-file-upload input[type=file]:hover {border-color: #888; }
.cst-file-upload input[type=file]:hover::file-selector-button {background-color: #1f66ad; }
.uploaded-images{width: 100%; max-width: calc((100% - 16px) / 3); padding: 10px; max-height: 95px; border: 2px dashed #bbb; background: var(--white); position: relative;display: inline-block; margin: 6px 0 0; }
.uploaded-images:not(:last-child) {margin-right: 8px; }
.uploaded-images img{width: 100%; max-height: 40px; height: 25px; display: flex; align-items: center; justify-content: center; object-fit: contain; }
.uploaded-images .remove-image{ position: absolute; top: -6px; right: -6px; cursor: pointer; }
.cst-file-upload .preview-images-wrapper{display: block !important; overflow-y: auto;}
/** Custom Input File Design End **/

.go-top { bottom: 30px; width: 45px; height: 45px; z-index: 1111; }
.go-top .progress-value .ti:before{ margin-left: 3px; }
.btn-primary:hover{ background-color: rgb(var(--light-blue)) !important; border-color: rgb(var(--light-blue)) !important; }
.btn-secondary:hover{ background-color: rgb(var(--dark-gray)) !important; border-color: rgb(var(--dark-gray)) !important; }
.btn-danger:hover { background-color: rgba(var(--dark-red), 1) !important; border: 1px solid rgba(var(--dark-red), 1) !important; }
.btn-success:hover{ background-color: rgba(var(--dark-green), 1) !important; border: 1px solid rgba(var(--dark-green), 1) !important; }
.forgot-password-link:hover, .forgot-password-link:focus { color: rgb(var(--primary)) !important;}
table thead th, table tbody td, table tfoot td { border: 1px dashed rgba(var(--dark), 0.2) !important;  }

.page-tbl-card-wrap .table-responsive{ border: none; }
.list-table-data thead tr th:nth-child(4){ min-width: initial !important; }
.table.table-header-bordered > thead { border-bottom: 1px solid rgba(var(--border-dark-clr), 0.5); }
.card-header div:has( > .main-title + .selected-itemtext ){ flex-wrap: wrap; }
.card-header .main-title + .selected-itemtext{ font-size: 12px !important; font-weight: bold; }
.project_dashboard table thead th, .project_dashboard table tbody td, .project_dashboard table tfoot td  { border: initial !important; }
.app-form .form-select{ padding-bottom: 0.4rem; padding-top: 0.4rem; }
.app-form .form-select.is-invalid{ background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none) !important; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{ border-width: 0px 6px 6px 6px !important; }
nav .app-nav .main-nav > li:not(.menu-title).active > a[aria-expanded="true"]::after{  content: "\ea5f"; }
nav .app-nav .main-nav > li:not(.menu-title).active:has( a[aria-expanded=true] + .collapse.show ) > a[aria-expanded=true]::after{ content: "\ea62"; }
table .btn.icon-btn { min-width: 30px; }
table .cst-qnty { min-width: 50px; }
.th-td-qty, .th-td-whr, .th-td-image-upload{ max-width: fit-content; }
.position-relative{ z-index: 0; }
.select2-container--default .select2-selection--single .select2-selection__clear{ margin-top: 5px; margin-right: 35px !important; }
form:has(.sticky_button_wrap.sticky_button) { padding-top: 70px; }
.select2-container.select2-container--focus .select2-selection--single { box-shadow: 0 0 0 0.25rem rgba(var(--primary), 0.3); border: 1px solid rgba(var(--primary), 1); }
.select2-container.select2-container--focus.is-invalid .select2-selection--single{box-shadow:0 0 0 0.25rem rgba(var(--danger), 0.3) !important; border-color:rgb(var(--danger)) !important;}
.lightbox { top: 50% !important; transform: translateY(-50%); display: flex; flex-direction: column-reverse; }
#JOBPOPUPModal .modal-dialog-scrollable .modal-body,
#JobItemsModal .modal-dialog-scrollable .modal-body{ height: 100dvh; max-height: calc(100dvh - 150px); }
.is-invalid .btn-check:focus-visible+.btn{box-shadow:0 0 0 0.25rem rgba(var(--danger), 0.3) !important;}
.nav-tabs .nav-link:focus{box-shadow: 0 0 0 0.25rem rgba(0,0,0, 0.08)}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* For Chrome, Safari, Edge, Opera */
  margin: 0; /* To remove the margin in older versions of Chrome */
}

input[type="number"] {
  -moz-appearance: textfield; /* For Firefox */
  appearance: textfield; /* Standard property for newer browsers */
}

.modal-body.cal-modal-body{max-height: calc(100dvh - 210px);}
.invoice-tabs-wrapper .nav.nav-tabs{gap: .25rem !important;}

@media screen and (min-width: 568px) {
    .action_panel_main .action_panel .btn-group .dropdown-menu { left: 0px !important; top: 0px !important; transform: translate(calc(-100% - 15px), 0%) !important; }
    .action_panel_main .action_panel .btn-group .dropdown-menu::after { content: ""; width: 0px; height: 0px; border-style: solid; border-width: 0 8px 13.9px 8px; border-color: transparent transparent var(--white) transparent; transform: rotate(90deg); position: absolute; top: 6px; right: -12px; z-index: -1; }
}

@media screen and (min-width: 1660px) {
    /* .header-menu .main-nav a { padding-right: 10px !important; padding-left: 0px !important; }
    .header-menu .main-nav a:has( + ul ) { padding-right: 30px !important; } */
}


@media only  screen and (min-width: 1400px){
    .header-left,.header-right{width: 12%;}
    .header-menu{width: calc(100% - 24%);}
    .app-wrapper nav.horizontal-sidebar .app-nav .main-nav{margin: auto;}
}

@media only  screen and (min-width: 1200px) and (max-width:1299px){
    .header-left,.header-right{width: 16%;}
    .header-menu{width: calc(100% - 32%);}
}

/* @media only  screen and (min-width: 1300px) and (max-width:1500px){
    .bashboard-menu-span{display: none;}
    nav .app-nav .main-nav > li:not(.menu-title).bashboard-menu > a i{margin-top: -1px;}
    nav .app-nav .main-nav > li:not(.menu-title).bashboard-menu > a{padding-left: 10px !important;}
} */

@media screen and (max-width: 1659px) {
    .header-menu .main-nav{ margin: auto; }
    .header-menu .main-nav li a{ font-size: 14px !important; }
    .header-menu .main-nav > li > a { padding-right: 10px !important; padding-left: 0px !important; }
    .header-menu .main-nav a:has( + ul ) { padding-right: 30px !important; }
}




@media screen and (max-width: 1200px) {
    .welcome-text{ display: none; }
    .header-menu .main-nav{ display: none !important; }
}

@media screen and (max-width: 1199px) {
    .btn{padding: 7px 15px;}
    .btn.filter-btn { padding-left: 25px; }
}

@media screen and (max-width: 767px) {
    .app-logo .logo img{max-width: 110px;}
    .app-wrapper nav.horizontal-sidebar, .app-wrapper .semi-nav.horizontal-sidebar{top: 50px;}
    .cst-footer-bottom-text div:has( > ul.footer-text){ width: 100% !important; }
    .cst-footer-bottom-text .footer-text li { display: flex; text-align: center; justify-content: center !important; }
    .filter-panel{ width: calc(100vw - 46px); right: -46px; }
    .filter_panel_form_main{ max-height: calc(100vh - 444px); }
    .card form .card-header, .card form .card-footer{ padding: 1rem 10px; }
}

@media screen and (max-width: 600px) {
    .header-menu{ display: none !important; }
    .header-left,.header-right{width: 50%;}
    header .header-search{display: none;}
}

@media screen and (max-height: 580px) {
    .filter_panel_form_main { max-height: calc(100vh - 250px); }
}


@media screen and (max-width: 480px) {
    .cst-help-btn{ width: 24px !important; height: 24px !important; }
    .app-wrapper nav.horizontal-sidebar, .app-wrapper .semi-nav.horizontal-sidebar{top: 0px;}
    .go-top { bottom: 68px; }
    .app-pagination{gap: 8px !important;}
    .app-wrapper nav.horizontal-sidebar ~ .app-content, .app-wrapper nav.vertical-sidebar ~ .app-content{padding-top: 65px;}
    .sticky_button_wrap.sticky_button{top:50px;padding-left: 10px;padding-right: 10px;}
    .filter_panel_main{width: 100%;}
}

/* ── Piece Row Colours (job + quotation + invoice) ── */
.piece-row-sample {
    background: rgba(245, 158, 11, 0.13) !important;
    border-left: 3px solid #f59e0b !important;
}
.piece-row-chargeable {
    background: rgba(139, 92, 246, 0.08) !important;
    border-left: 3px solid #8b5cf6 !important;
}
.piece-row-both {
    background: rgba(99, 102, 241, 0.10) !important;
    border-left: 3px solid #6366f1 !important;
}

/* ── Piece Badges ── */
.badge-piece-sample {
    background-color: #f59e0b !important;
    color: #1a1a1a !important;
    font-size: 0.65rem;
    white-space: nowrap;
}
.badge-piece-chargeable {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
    font-size: 0.65rem;
    white-space: nowrap;
}

/* ── Job Summary Card ── */
#job-summary-section .card {
    border: 1px solid #e0e6ed !important;
    border-radius: 10px;
}
#job-summary-section #job_summary_grand_total {
    font-size: 1.05rem;
}
#agreed_price_input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.15) !important;
}
#agreed_price_error_msg {
    font-size: 0.8rem;
}

/* Dashboard */
.cst-dashboard-page .card.page-tbl-card-wrap .card-header,
.cst-dashboard-page .card.page-tbl-card-wrap .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.cst-dashboard-wrap > .card-header {
    padding-bottom: 0.75rem;
}
.dashboard-stat .card-body,
.dashboard-spotlight .card-body {
    padding: 16px;
}
.dashboard-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
}
.dashboard-stat-value,
.dashboard-spotlight-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    margin: 8px 0;
    color: #212529;
}
.dashboard-stat-meta,
.dashboard-spotlight-meta {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dashboard-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fff;
}
.dashboard-list-item p {
    margin: 4px 0 0;
    color: #6c757d;
    font-size: 13px;
}
.dashboard-empty {
    padding: 18px;
    text-align: center;
    color: #6c757d;
    border: 1px dashed #d8dee6;
    border-radius: 10px;
    background: #fbfcfd;
}
.dashboard-spotlight-icon {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-progress-row {
    margin-bottom: 12px;
}
.dashboard-progress-row:last-child {
    margin-bottom: 0;
}
.dashboard-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 6px;
}
.dashboard-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dashboard-timeline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.dashboard-timeline-dot {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dashboard-timeline-copy h6 {
    font-size: 14px;
    margin-bottom: 3px;
}
.dashboard-timeline-copy p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.cst-dashboard-page .main-title {
    margin-bottom: 0;
}
.cst-dashboard-actions .btn {
    min-width: 110px;
}
.cst-dashboard-page .row[class*="mb-4"],
.cst-dashboard-page .row[class*="mb-3"] {
    margin-bottom: 1rem !important;
}
.cst-dashboard-chart {
    min-height: 220px;
}
.cst-dashboard-donut {
    min-height: 220px;
}
.cst-dashboard-chart-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cst-dashboard-page .apexcharts-canvas {
    margin: 0 auto;
}
@media screen and (max-width: 1199px) {
    .cst-dashboard-actions .btn {
        min-width: auto;
    }
}
.profile-edit-summary-card .card-body {
    padding: 18px 20px;
}
.profile-edit-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 72px;
    background: rgba(var(--primary), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-edit-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-edit-current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(var(--primary), 0.08);
    border: 1px solid rgba(var(--primary), 0.12);
}
.profile-image-card {
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px dashed rgba(var(--primary), 0.22);
    border-radius: 14px;
    padding: 18px;
    background: rgba(var(--primary), 0.03);
}
.profile-upload-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto;
    border: 1px solid rgba(var(--primary), 0.12);
}
.profile-edit-role-box small {
    display: block;
    margin-top: 6px;
}
.profile-status-switch .btn {
    min-width: 110px;
}
.profile-photo-card {
    position: relative;
    border: 1px solid rgba(var(--primary), 0.12);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(var(--primary), 0.05) 0%, #fff 100%);
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}
.profile-photo-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.profile-photo-preview-btn {
    position: relative;
    width: 132px;
    height: 132px;
    border: none;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    background: rgba(var(--primary), 0.06);
    cursor: pointer;
    display: block;
}
.profile-photo-preview-btn:disabled {
    cursor: wait;
}
.profile-photo-preview-btn.is-disabled {
    pointer-events: none;
    cursor: default;
}
.profile-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo-zoom-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.profile-photo-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}
.profile-photo-meta h6 {
    font-size: 16px;
}
.profile-photo-meta p {
    font-size: 13px;
    line-height: 1.6;
}
.profile-photo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.profile-photo-manager.is-uploading .profile-photo-card {
    opacity: 0.88;
}
@media screen and (max-width: 575px) {
    .profile-photo-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-photo-info {
        width: 100%;
        align-items: center;
    }
    .profile-photo-preview-btn {
        margin: 0 auto;
    }
    .profile-photo-actions {
        justify-content: center;
    }
}


/* =====================================================
   MYOB Status Banner
   ===================================================== */
.myob-status-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
}

.myob-status-banner-expired {
    background: #dc3545;
}

.myob-status-banner-disconnected {
    background: #e6a817;
}

.myob-status-banner-not-configured {
    background: #6c757d;
}

.myob-status-banner__message {
    font-size: 0.88rem;
}

.myob-status-banner__actions {
    flex-shrink: 0;
}

.myob-status-banner.is-hiding {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Dismiss button — visible on all colored backgrounds */
.myob-status-banner .myob-banner-dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.myob-status-banner .myob-banner-dismiss-btn:hover,
.myob-status-banner .myob-banner-dismiss-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    outline: none;
}

.myob-status-banner .myob-banner-dismiss-btn i {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .myob-status-banner {
        align-items: flex-start;
    }
}

#PackageTableModal .modal-header,
#colourModal .modal-header,
#JOBPOPUPModal .modal-header {
    align-items: center;
    gap: 12px;
}

#PackageTableModal .modal-header .modal-title,
#colourModal .modal-header .modal-title,
#JOBPOPUPModal .modal-header .modal-title {
    white-space: nowrap;
}

#PackageTableModal .modal-body,
#colourModal .modal-body,
#JOBPOPUPModal .modal-body {
    overflow-y: auto;
}

.modal-sticky-table thead th {
    position: sticky;
    top: -18px;
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 -2px 0 #e9ecef;
}

#selected-package-itemtext {
    white-space: nowrap;
}

#selected-job-itemtext {
    white-space: nowrap;
}

/* ============================================================
 * Quotation Module — Extracted Inline Styles
 * Added   : 2026-04-17
 * Module  : Quotation
 * ============================================================ */

/* --- Client Info Card (general-details.blade.php) --- */
.quot-client-info-card {
    background: #eef4ff;
    border-left: 4px solid #4e73df;
    border-radius: 6px;
    padding: 10px 14px;
}
.quot-client-info-label {
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.quot-client-info-fields {
    font-size: 13px;
    color: #374151;
}
.quot-info-icon {
    color: #4e73df;
}

/* --- Pieces Table — column min-widths (pieces.blade.php) --- */
.quot-col-sqm {
    min-width: 75px;
}
.quot-col-amount {
    min-width: 90px;
}

/* --- Package Table — column min-widths (package.blade.php) --- */
.quot-pkg-col-price {
    min-width: 90px;
}
.quot-pkg-col-disc {
    min-width: 90px;
}
.quot-pkg-col-disc-type {
    min-width: 100px;
}

/* --- Revision Table — column widths (revisions.blade.php, archive/revisions.blade.php) --- */
.quot-rev-col-num {
    width: 120px;
}
.quot-rev-col-date {
    width: 145px;
}
.quot-rev-col-sm {
    width: 90px;
}
.quot-rev-col-actions {
    width: 110px;
}
.quot-rev-col-view {
    width: 70px;
}

/* --- Popup per-page select (packages_table, previous_job_colours modals) --- */
.quot-popup-per-page {
    width: auto;
    min-width: 4.5rem;
}

/* --- Piece image count badge (PiecesItems.blade.php) --- */
.quot-piece-badge {
    font-size: 0.7rem;
}

/* Invoice Module - total row highlights */
.invoice-total-highlight {
    background: rgb(var(--primary));
    border: none !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    margin-top: 8px !important;
    color: #ffffff;
}

.invoice-total-highlight .text-muted,
.invoice-total-highlight .text-dark {
    color: rgba(255,255,255,0.85) !important;
}

/* Job subtotal rows (Cut & Supply, Touch Up Kit, Colour Sample Fee).
   These appear OUTSIDE bordered card blocks — get the dashed-top style. */
.job-cut-supply-row,
.job-touch-up-kit-row,
.job-colour-sample-row {
    font-size: 0.82rem;
    font-weight: 500;
    color: #5a6478;
    border-top: 1px dashed rgba(var(--input-border-clr), 0.5);
    padding-top: 7px;
    margin-top: 7px;
    padding-right: 12px !important;
}

/* ── Footer alignment system ──────────────────────────────────────────
   Every $ value across the job-card footer (Pieces Total, Packaging
   Total, Cut & Supply, Touch Up Kit, Colour Sample Fee, Colour Sample
   Total, Job Total) is locked to the SAME right edge by:

     1. parent row uses `justify-content-end` (or justify-content-between
        for the special Total m2 / Pieces Total split row),
     2. value span uses flex: 0 0 110px so its column never resizes,
     3. label span uses flex: 0 0 auto so it sits flush against the value.

   Targeting by explicit class names (not :last-child) because the Pieces
   Total row nests label+value inside a wrapper span — :last-child would
   match the wrapper, not the value. */
.job-cut-supply-value,
.job-touch-up-kit-value,
.job-colour-sample-value,
.pieces-total-value,
.packages-total-value,
.colour-sample-total-summary,
.job-total-value {
    flex: 0 0 110px;
    min-width: 110px;
    text-align: right;
    font-weight: 600;
    color: #1e2a3b;
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* Total m2 strong value — uses tabular-nums for column alignment in the
   split row but is NOT a flex child (it's inline text inside a span). */
.inv-pieces-sqm-total {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* The wrapper span inside .job-table-summary-row (Pieces Total split row)
   keeps label+value as a tight group on the right. */
.job-table-summary-row > span.d-flex {
    flex: 0 0 auto;
}

/* For rows where label and value are direct siblings, give the label
   freedom to absorb leftover width so the value sits at the fixed
   right offset. Bootstrap's `ms-2` (margin-left: 0.5rem) on the value
   span preserves the gap. */
.job-cut-supply-row > span:first-child,
.job-touch-up-kit-row > span:first-child,
.job-colour-sample-row > span:first-child,
.job-colour-type-summary-row > span:first-child,
.job-table-summary-row.justify-content-end > span:first-child {
    flex: 0 0 auto;
}

/* Table blocks — wraps table + summary row as one unit (pieces, packages, colour sample) */
.colour-sample-block,
.pieces-block {
    border: 1px solid rgba(var(--input-border-clr), 0.4);
    border-radius: 8px;
    overflow: hidden;
}
.colour-sample-block .table-responsive,
.pieces-block .table-responsive {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* Table summary rows — flush under table inside block (Pieces Total, Packaging Total, Colour Sample Total).
   These rows live INSIDE a bordered .pieces-block card, so they get a solid
   top border + grey background instead of the dashed look used by the
   standalone footer rows (cut-supply, touch-up etc.). */
.job-table-summary-row,
.job-colour-type-summary-row {
    border-top: 1px solid rgba(var(--input-border-clr), 0.35) !important;
    border-bottom: none;
    margin-top: 0 !important;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 12px;
    padding-right: 12px !important;
    font-weight: 600;
    color: #374151;
    background: #f4f6fb;
}
.job-table-summary-row > span:last-child,
.job-colour-type-summary-row > span:last-child {
    color: #1e2a3b;
}

/* Job Total highlight bar — align value column with the subtotal rows
   above. Same flex-basis (110px) + tabular-nums = perfect vertical
   alignment of every $ amount in the footer stack. */
.invoice-total-highlight {
    padding-right: 12px !important;
    padding-left: 12px !important;
}
.invoice-total-highlight .job-total-label {
    flex: 1 1 auto;
    text-align: right;
    line-height: 1.25;
}
.invoice-total-highlight .job-total-label .job-total-detail {
    display: block;
    margin-top: 1px;
    font-weight: 400;
}
.invoice-total-highlight .job-total-value,
.invoice-total-highlight #joinary-packages-total-value {
    flex: 0 0 110px;
    min-width: 110px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    /* Highlight bar has a dark primary background — force white text so the
       value reads with full contrast. !important is required because the
       generic .job-total-value rule above sets color:#1e2a3b on dark text. */
    color: #ffffff !important;
}

/* Invoice Module - selected delivery address popup card */
.invoice-delivery-address-selected {
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.2);
}

/* ================================================================
   INVOICE FORM — REDESIGN
================================================================ */

/* ── Section card ── */
.inv-section-card {
    background: #ffffff;
    border: 1px solid rgba(var(--input-border-clr), 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Section header ── */
.inv-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f4f6fb;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.5);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e2a3b;
    letter-spacing: 0.01em;
}
.inv-section-header > span > i,
.inv-section-header > i {
    font-size: 1.05rem;
    color: rgb(var(--primary));
}

/* ── Section body ── */
.inv-section-body {
    padding: 20px;
}

/* ── Empty state placeholder ── */
.inv-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    color: #9ca3af;
    font-size: 0.9rem;
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}
.inv-empty-state i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ── Address two-col grid ── */
.inv-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}
@media (max-width: 767px) {
    .inv-addr-grid { grid-template-columns: 1fr; }
}

/* ── Address cards — both billing & delivery share this ── */
.inv-address-card {
    background: #f8f9fc;
    border: 1px solid rgba(var(--input-border-clr), 0.55);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

/* Delivery card needs internal layout control */
.inv-delivery-card {
    justify-content: space-between;
    gap: 12px;
}

.inv-addr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inv-address-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--primary));
}

.inv-addr-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: #1e2a3b;
    margin: 0 0 4px;
}

.inv-addr-body {
    font-size: 0.845rem;
    line-height: 1.7;
    color: #5a6478;
    margin: 0;
}
.inv-addr-body a { color: #5a6478; text-decoration: none; }
.inv-addr-body a:hover { text-decoration: underline; }

/* ── Address missing warning ── */
.inv-addr-warning {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #7a5c00;
}
.inv-addr-warning i { font-size: 0.95rem; flex-shrink: 0; }

/* ── Delivery placeholder body (centered area inside card) ── */
.inv-delivery-placeholder-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
    gap: 8px;
}
.inv-delivery-placeholder-body i {
    font-size: 1.6rem;
    color: #c3c9d6;
}
.inv-delivery-placeholder-text {
    font-size: 0.82rem;
    color: #9aa3b2;
}

/* ── Same-as-billing checkbox — sits at bottom of delivery card ── */
.inv-same-billing-wrap {
    border-top: 1px solid rgba(var(--input-border-clr), 0.4);
    padding-top: 10px;
    margin-top: auto;
}
.inv-same-billing-wrap .form-check-label {
    font-size: 0.82rem;
    color: #5a6478;
}

/* ── Invoice Options labels ── */
.inv-option-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--primary));
    margin-bottom: 10px;
}

/* ── Summary card ── */
.inv-summary-card {
    background: #ffffff;
    border: 1px solid rgba(var(--input-border-clr), 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inv-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f4f6fb;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.5);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e2a3b;
    letter-spacing: 0.01em;
}
.inv-summary-header i {
    font-size: 1.05rem;
    color: rgb(var(--primary));
}

.inv-summary-body {
    padding: 4px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inv-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.25);
    gap: 12px;
}
.inv-summary-row:last-child { border-bottom: none; }

.inv-summary-label {
    font-size: 0.875rem;
    color: #6b7280;
    flex-shrink: 0;
}
.inv-summary-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e2a3b;
    text-align: right;
}

.inv-summary-divider {
    height: 1px;
    background: rgba(var(--input-border-clr), 0.4);
    margin: 2px 0 4px;
}

/* ── Grand Total bar ── */
.inv-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgb(var(--primary));
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: auto;
    letter-spacing: 0.01em;
}

/* ── Summary inputs ── */
.inv-summary-card .form-control,
.inv-summary-card .input-group-text {
    font-size: 0.85rem;
}

/* ── Deposit row accent ── */
.inv-summary-row .text-danger {
    color: rgb(var(--dark-red)) !important;
}

/* ── Switches label size ── */
#spcl-opt-ship-details .form-check-label,
.inv-section-body .form-check-label {
    font-size: 0.875rem;
    color: #374151;
}

/* ── Job cards ── */
:is(#add-job-items-html, #add-products-html) .invoice-list.card {
    border: 1px solid rgba(var(--input-border-clr), 0.6);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    background: #ffffff;
    overflow: visible;
}

:is(#add-job-items-html, #add-products-html) .invoice-list.card .card-body {
    padding: 16px;
}

/* Job card header row */
:is(#add-job-items-html, #add-products-html) .invoice-list.card .card-body > .d-flex:first-child {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.4);
}

:is(#add-job-items-html, #add-products-html) .invoice-list.card h6 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e2a3b;
}

/* ── Tables inside job cards ── */
/* IMPORTANT: must allow horizontal scroll. Bootstrap's `.table-responsive`
   defaults to overflow-x:auto; the previous `overflow: hidden` was killing
   it and made wide tables clip on narrow viewports. */
:is(#add-job-items-html, #add-products-html) .table-responsive {
    border: 1px solid rgba(var(--input-border-clr), 0.4);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;          /* momentum scroll on iOS */
    scrollbar-width: thin;                       /* slim Firefox scrollbar */
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    /* Right-edge fade indicates more content is scrollable horizontally */
    background:
        linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.08), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

/* WebKit scrollbar — keep it visible & slim */
:is(#add-job-items-html, #add-products-html) .table-responsive::-webkit-scrollbar {
    height: 8px;
}
:is(#add-job-items-html, #add-products-html) .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
:is(#add-job-items-html, #add-products-html) .table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

/* Force the inner table to a minimum width so it actually overflows on
   narrow screens — otherwise the columns squeeze and become unreadable.
   Reduced to 760px now that H/W/Return columns shrink to fit content. */
:is(#add-job-items-html, #add-products-html) .table-responsive > .table {
    min-width: 760px;
    margin-bottom: 0;
}

/* ── Per-column widths inside :is(#add-job-items-html, #add-products-html) ─────────────────────
   The global .th-td-whr is 130px which is way too wide for 3/4-digit
   dimensions like 450 or 1500. Override scoped to the invoice context
   so we don't break the larger job/quotation tables. Values fit their
   content with a sensible min/max range. */
:is(#add-job-items-html, #add-products-html) .table .th-td-whr {
    width: auto !important;
    min-width: 70px !important;
    max-width: 90px !important;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
    text-align: right;
}
/* Sides column — Yes/No badge needs ~70px to render comfortably */
:is(#add-job-items-html, #add-products-html) .table .th-td-sides {
    width: auto !important;
    min-width: 70px !important;
    max-width: 90px !important;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    white-space: nowrap;
}
/* Quantity column — number input is 60-80px wide */
:is(#add-job-items-html, #add-products-html) .table .th-td-qty {
    width: auto !important;
    min-width: 80px !important;
    max-width: 100px !important;
}
/* m2 (display) column — typical "1.2345 (SQM)" string */
:is(#add-job-items-html, #add-products-html) .table .inv-sqm-cell {
    min-width: 110px;
    max-width: 140px;
    padding-left: 6px;
    padding-right: 6px;
}
/* m2 Rate column */
:is(#add-job-items-html, #add-products-html) .table .th-td-price-sm {
    width: auto !important;
    min-width: 90px !important;
    max-width: 120px !important;
}
/* Discount / Disc Type — keep tight */
:is(#add-job-items-html, #add-products-html) .table .th-td-discount {
    width: auto !important;
    min-width: 90px !important;
    max-width: 110px !important;
}
:is(#add-job-items-html, #add-products-html) .table .th-td-discount-type {
    width: auto !important;
    min-width: 100px !important;
    max-width: 130px !important;
}
/* Amount column */
:is(#add-job-items-html, #add-products-html) .table .th-td-amt {
    width: auto !important;
    min-width: 110px !important;
    max-width: 140px !important;
}
/* Profile name — the only generously sized column; let it stretch */
:is(#add-job-items-html, #add-products-html) .table .th-td-profile {
    width: auto !important;
    min-width: 180px !important;
    max-width: 320px !important;
    white-space: normal;
    vertical-align: middle;
}

/* Profile-name + badges stack:
   Profile name on its own line, badges flow BELOW (separate row inside
   the cell) so badge presence never widens the column. Long profile
   names wrap with break-word instead of pushing column width. */
:is(#add-job-items-html, #add-products-html) .table .th-td-profile .profile-name-text {
    display: block;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-weight: 500;
}

:is(#add-job-items-html, #add-products-html) .table .th-td-profile .profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

:is(#add-job-items-html, #add-products-html) .table .th-td-profile .profile-badges .badge {
    margin: 0;
    line-height: 1.2;
}
/* Compact inline inputs inside these narrow cells */
:is(#add-job-items-html, #add-products-html) .table .th-td-whr input,
:is(#add-job-items-html, #add-products-html) .table .th-td-qty input {
    min-width: 56px;
    max-width: 80px;
    padding: 4px 6px;
    text-align: right;
}
/* Quantity input — value centered inside the box per request */
:is(#add-job-items-html, #add-products-html) .table .th-td-qty input {
    text-align: center;
}
:is(#add-job-items-html, #add-products-html) .table .th-td-discount input,
:is(#add-job-items-html, #add-products-html) .table .th-td-amt input {
    min-width: 70px;
    max-width: 100px;
}

:is(#add-job-items-html, #add-products-html) .table thead th {
    background: #f4f6fb;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6478;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.5);
    padding: 9px 10px;
    white-space: nowrap;
}

:is(#add-job-items-html, #add-products-html) .table tbody td {
    font-size: 0.84rem;
    padding: 8px 10px;
    vertical-align: middle;
    color: #374151;
    /* prevent input fields inside cells from blowing out cell width */
    white-space: nowrap;
}

/* Constrain editable cells so they don't stretch the table excessively */
:is(#add-job-items-html, #add-products-html) .table tbody td input.form-control,
:is(#add-job-items-html, #add-products-html) .table tbody td select.form-select {
    min-width: 70px;
    max-width: 110px;
    width: 100%;
}

:is(#add-job-items-html, #add-products-html) .table tbody tr:last-child td {
    border-bottom: none;
}

/* ── xs button util ── */
.btn-xs {
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    line-height: 1.5;
}

/* ── Invoice items section ── */
.invoice-items-section { display: flex; flex-direction: column; }

/* ── Responsive ── */
@media (max-width: 991px) {
    /* Slightly looser min-width on tablet — still scrolls but less aggressively */
    :is(#add-job-items-html, #add-products-html) .table-responsive > .table {
        min-width: 720px;
    }
}

@media (max-width: 767px) {
    .inv-section-body  { padding: 14px; }
    .inv-summary-body  { padding: 0 14px; }
    .inv-summary-total { padding: 13px 14px; font-size: 0.95rem; }
    .inv-summary-header,
    .inv-section-header { padding: 10px 14px; font-size: 0.84rem; }
    .inv-summary-card  { margin-top: 16px; }
    .inv-addr-grid     { gap: 12px; }

    /* Job item card adjustments on phones */
    :is(#add-job-items-html, #add-products-html) .invoice-list.card .card-body { padding: 12px; }
    :is(#add-job-items-html, #add-products-html) .table thead th { font-size: 0.7rem; padding: 7px 8px; }
    :is(#add-job-items-html, #add-products-html) .table tbody td { font-size: 0.78rem; padding: 6px 8px; }
    :is(#add-job-items-html, #add-products-html) .table tbody td input.form-control,
    :is(#add-job-items-html, #add-products-html) .table tbody td select.form-select { min-width: 64px; max-width: 96px; padding: 4px 6px; font-size: 0.78rem; }
    :is(#add-job-items-html, #add-products-html) .table-responsive > .table { min-width: 680px; }
    /* Slightly taller scrollbar on touch devices so it's easier to grab */
    :is(#add-job-items-html, #add-products-html) .table-responsive::-webkit-scrollbar { height: 10px; }
}

@media (max-width: 480px) {
    :is(#add-job-items-html, #add-products-html) .table-responsive > .table { min-width: 640px; }
    :is(#add-job-items-html, #add-products-html) .table .th-td-whr { min-width: 60px !important; max-width: 75px !important; }
    :is(#add-job-items-html, #add-products-html) .table .th-td-sides { min-width: 60px !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   Delivery Docket — Job Items Section
═══════════════════════════════════════════════════════════════════ */

/* One job block inside the items section */
.docket-job-block {
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.4);
}
.docket-job-block:last-child { border-bottom: none; }

/* Coloured header bar per job */
.docket-job-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f4ff;
    border-bottom: 1px solid rgba(var(--input-border-clr), 0.35);
}

/* Job number pill */
.docket-job-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgb(var(--primary));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Items table */
.docket-items-table thead th {
    background: #f8f9fc;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6478;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(var(--input-border-clr), 0.5);
}
.docket-items-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}
.docket-items-table tbody tr:hover { background: #f8f9fc; }

/* Item name + type badge row */
.docket-item-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Piece / Package type badge */
.docket-type-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.docket-type-piece   { background: #e9f4ff; color: #1565c0; }
.docket-type-package { background: #fff3e0; color: #e65100; }

/* Quantity chip (read-only display) */
.docket-qty-chip {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    background: #f1f3f9;
    border: 1px solid rgba(var(--input-border-clr), 0.5);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}
.docket-qty-zero { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Deliver qty input */
.docket-qty-input {
    width: 80px !important;
    display: inline-block !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 4px 6px;
}

/* Empty state */
.docket-items-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
}
.docket-items-empty i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    opacity: 0.55;
}
.docket-items-empty p { font-size: 0.9rem; color: #6b7280; margin-bottom: 2px; }

@media (max-width: 575px) {
    .docket-job-header { padding: 8px 14px; }
    .docket-items-table thead th,
    .docket-items-table tbody td { padding: 8px 10px; }
}

/* General Configuration */
.general-config-page {
    padding-bottom: 24px;
}
.general-config-page .config-page-frame {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.general-config-page .config-shell-header {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: rgb(var(--white-clr));
    border: 1px solid rgba(var(--black-clr), 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.general-config-page .config-shell-body {
    padding: 24px;
    background: transparent;
}
.general-config-page .config-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.general-config-page .config-sidebar {
    width: 280px;
    flex: 0 0 280px;
    min-width: 280px;
}
.general-config-page .config-nav-inner {
    position: sticky;
    top: 80px;
}
.general-config-page .config-nav {
    overflow: hidden;
    padding: 18px;
    background: rgb(var(--white-clr));
    border: 1px solid rgba(var(--black-clr), 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.general-config-page .config-nav #configTabNav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.general-config-page .config-nav .nav-link {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    box-shadow: none;
}
.general-config-page .config-nav .nav-link:hover {
    background: #f1f5f9;
    color: #1a2233;
}
.general-config-page .config-nav .nav-link.active {
    background: #eef2ff;
    color: #3b5bdb;
    font-weight: 600;
}
.general-config-page .config-nav .nav-link:focus,
.general-config-page .config-nav .nav-link:focus-visible {
    box-shadow: none;
    outline: none;
}
.general-config-page .config-nav .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.general-config-page .config-nav .nav-divider {
    height: 1px;
    margin: 10px 4px 6px;
    background: #e9ecef;
}
.general-config-page .config-nav .badge {
    margin-left: auto;
    flex-shrink: 0;
}
.general-config-page .config-content {
    flex: 1 1 auto;
    min-width: 0;
}
.general-config-page .config-content .tab-content {
    display: block;
}
.general-config-page .config-content .tab-pane {
    height: auto;
}
.general-config-page .config-content .config-pane {
    background: rgb(var(--white-clr));
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.general-config-page .config-pane .pane-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 4px;
}
.general-config-page .config-pane .section-desc {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 3px solid #3b5bdb;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.84rem;
}
.general-config-page .config-pane form .row:last-child {
    margin-bottom: 0;
}
.general-config-page .config-pane .save-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}
.general-config-page .config-pane .form-label {
    margin-bottom: 6px;
    font-weight: 600;
}
.general-config-page .config-pane .form-text {
    margin-top: 6px;
}
.general-config-page .config-pane .btn {
    min-width: 140px;
}
.general-config-page .config-pane .btn.btn-sm {
    min-width: auto;
}
@media (max-width: 991.98px) {
    .general-config-page .config-layout {
        flex-direction: column;
    }
    .general-config-page .config-sidebar {
        width: 100%;
        flex-basis: auto;
        min-width: 0;
    }
    .general-config-page .config-nav-inner {
        position: static;
    }
    .general-config-page .config-content {
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .general-config-page .config-shell-header {
        padding: 16px;
        margin-bottom: 16px;
    }
    .general-config-page .config-shell-body {
        padding: 16px;
    }
    .general-config-page .config-layout {
        gap: 16px;
    }
    .general-config-page .config-nav {
        padding: 12px;
    }
    .general-config-page .config-nav #configTabNav {
        gap: 4px;
    }
    .general-config-page .config-nav .nav-link {
        padding: 9px 12px;
        font-size: 0.82rem;
    }
    .general-config-page .config-nav .nav-divider {
        display: none;
    }
    .general-config-page .config-content .config-pane {
        padding: 18px;
    }
    .general-config-page .config-pane .btn {
        width: 100%;
    }
    .general-config-page .config-pane .myob-action-btns .btn,
    .general-config-page .config-pane .profile-photo-actions .btn {
        width: auto;
    }
}

/* ── Column Visibility Panel (colviz) — same pattern as filter_panel_main ── */
.colviz-panel-main { position: relative; }
.colviz-panel {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 4px;
    position: absolute;
    width: 280px;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1055;
    box-shadow: 2px 2px 26px 0px #00000040;
    max-height: min(480px, calc(100vh - 120px));
}
.colviz-panel-header {
    flex-shrink: 0;
    padding: 15px;
    border-bottom: 1px solid rgba(28, 27, 23, 0.1);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.colviz-panel-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    overflow-y: auto;
    min-height: 0;
}
.colviz-panel-footer { flex-shrink: 0; }
.colviz-option { padding: 2px 15px; cursor: pointer; transition: all 0.2s; }
.colviz-label {
    padding: 6px 5px 6px 30px;
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}
/* Checkbox pseudo-element — same as .filter-label.checkbox */
.colviz-label::before {
    width: 20px; height: 20px; content: ""; display: inline-block;
    border-radius: 3px; border: 1px solid #676A6C;
    position: absolute; left: 0; top: 6px;
}
.colviz-label::after {
    content: ''; display: inline-block; width: 6px; height: 12px;
    border: solid #ffffff; border-width: 0 2px 2px 0;
    position: absolute; left: 7px; z-index: 2; top: 8px;
    transform: rotate(45deg); opacity: 0;
}
/* Checked state (default — all checked means column visible) */
.colviz-option:not(.active) .colviz-label::before { background: rgb(var(--color-blue)); border-color: rgb(var(--color-blue)); }
.colviz-option:not(.active) .colviz-label::after  { opacity: 1; }
/* Unchecked / hidden state */
.colviz-option.active .colviz-label::before { background: #fff; border-color: #676A6C; }
.colviz-option.active .colviz-label::after  { opacity: 0; }
/* Columns button active state (has hidden columns) */
.colviz-btn-trigger.colviz-active { background-color: rgb(var(--color-blue)) !important; color: #fff !important; }
/* Badge counter on the Columns button */
.colviz-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: rgb(var(--color-red, 220,53,69));
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0 3px;
    line-height: 1;
}
@media (max-width: 575px) {
    .colviz-panel { width: calc(100vw - 46px); right: -46px; }
}


/* ============================================================
   Quotation Client Share / Client View Page  (qcv-*)
   Used in: resources/views/quotation/client-view/
   ============================================================ */
.qcv-document-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 0 0 18px; border-bottom: 2px solid #222; margin-bottom: 18px; }
.qcv-kicker { color: #666; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.qcv-document-head h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: 0; }
.qcv-muted { color: #666; font-size: 12px; line-height: 1.5; }
.qcv-total-card { min-width: 170px; padding: 11px 14px; border: 1px solid #ddd; background: #f8f9fa; text-align: right; }
.qcv-total-card span { display: block; color: #666; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.qcv-total-card strong { display: block; color: #111; font-size: 20px; line-height: 1.2; }
.qcv-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin-bottom: 16px; }
.qcv-panel, .qcv-summary-panel { border: 1px solid #ddd; background: #fff; }
.qcv-panel h3, .qcv-summary-panel h3, .qcv-section-head h3 { margin: 0; font-size: 13px; line-height: 1.3; font-weight: 700; color: #111; }
.qcv-panel h3, .qcv-summary-panel h3 { padding: 9px 12px; background: #f1f1f1; border-bottom: 1px solid #ddd; }
.qcv-detail-list { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0; margin: 0; font-size: 13px; }
.qcv-detail-list dt, .qcv-detail-list dd { padding: 7px 12px; border-bottom: 1px solid #eee; min-height: 32px; }
.qcv-detail-list dt { margin: 0; background: #fafafa; color: #333; font-weight: 700; }
.qcv-detail-list dd { margin: 0; color: #111; overflow-wrap: anywhere; }
.qcv-detail-list dt:last-of-type, .qcv-detail-list dd:last-of-type { border-bottom: 0; }
.qcv-section { margin-top: 16px; border: 1px solid #ddd; background: #fff; }
.qcv-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #f1f1f1; border-bottom: 1px solid #ddd; }
.qcv-section-head span { display: block; color: #666; font-size: 12px; margin-top: 2px; }
.qcv-section-head strong { color: #111; font-size: 13px; white-space: nowrap; }
.qcv-table-scroll { overflow-x: auto; }
.qcv-meta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; line-height: 1.8; }
.qcv-meta-row span strong { margin-right: 3px; }
.qcv-meta-sep { color: #bbb; }
.qcv-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; margin: 0; }
.qcv-table th { background: #fafafa; padding: 8px 12px; border: 1px solid #ddd; border-top: 0; text-align: left; font-weight: 700; font-size: 12px; white-space: nowrap; }
.qcv-table th:first-child { border-left: 0; }
.qcv-table th:last-child { border-right: 0; }
.qcv-table td { padding: 7px 12px; border: 1px solid #e0e0e0; vertical-align: middle; }
.qcv-table td:first-child { border-left: 0; }
.qcv-table td:last-child { border-right: 0; }
.qcv-table tbody tr:nth-child(even) { background: #fafafa; }
.qcv-table tfoot td { background: #f8f9fa; font-weight: 700; }
.qcv-table tfoot tr:last-child td { background: #e8edf5; border-bottom: 0; }
.qcv-text-right { text-align: right; }
.qcv-text-center { text-align: center; }
/* Header alignment classes need higher specificity than `.qcv-table th { text-align:left }`
   (0,1,1) so column headers line up with their center/right-aligned data cells.
   Without this the th classes were ignored and headers sat left while values were
   centered/right — the columns looked misaligned. */
.qcv-table th.qcv-text-center { text-align: center; }
.qcv-table th.qcv-text-right  { text-align: right; }
.qcv-sample-row { background: #fafafa !important; }
.qcv-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-top: 16px; }
.qcv-summary { width: 100%; border-collapse: collapse; font-size: 13px; }
.qcv-summary td { padding: 8px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.qcv-summary tr:last-child td { border-bottom: 0; }
/* Label cell: left, light grey to match the Client / Job Details panels (was a
   darker #f1f1f1 which clashed with the white value cells and looked patchy). */
.qcv-summary .qcv-summary-label { background: #fafafa; color: #333; font-weight: 700; width: 62%; text-align: left; }
/* Value cell: right-aligned with tabular figures so the amounts line up cleanly. */
.qcv-summary td.qcv-text-right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Grand-total row: highlighted across both cells. */
.qcv-summary .qcv-summary-total { background: #e8edf5; font-weight: 700; }
.qcv-summary tr:last-child .qcv-summary-label { background: #e8edf5; }
.qcv-notes { margin: 0; padding: 0; }
.qcv-notes ul { margin: 0; padding: 10px 12px 10px 30px; }
.qcv-notes ul li { font-size: 13px; line-height: 1.7; color: #444; margin: 0 0 2px; }

/* Client View page shell (cv-*) */
.cv-page { max-width: 980px; margin: 0 auto; }
.cv-sheet { background: #fff; border: 1px solid #ddd; padding: 26px 30px; box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow-x: auto; }
.cv-alert { border: 1px solid #ddd; border-left-width: 5px; background: #fff; padding: 13px 16px; margin: 0 0 16px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; }
.cv-alert strong { display: block; margin-bottom: 2px; }
.cv-alert-invalid, .cv-alert-expired, .cv-alert-disapproved { border-left-color: #dc3545; background: #fff8f8; }
.cv-alert-cancelled { border-left-color: #6c757d; background: #f8f9fa; }
.cv-alert-success { border-left-color: #198754; background: #f3fbf6; }
.cv-alert-info { border-left-color: #0d6efd; background: #f4f8ff; }
.cv-logo { display: flex; justify-content: center; margin: 0 0 18px; }
.cv-logo img { max-width: 220px; max-height: 70px; object-fit: contain; }
.cv-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #ddd; }
.cv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 5px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none; font-family: Arial, Helvetica, sans-serif; }
.cv-btn-approve { background: #198754; border-color: #198754; color: #fff; }
.cv-btn-disapprove { background: #fff; border-color: #dc3545; color: #dc3545; }
.cv-btn-muted { background: #e9ecef; border-color: #ced4da; color: #222; }
.cv-btn-cancel { background: #dc3545; border-color: #dc3545; color: #fff; }
.cv-btn:disabled { opacity: .65; cursor: not-allowed; }
.cv-spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: cv-spin .7s linear infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.52); z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
.cv-modal-bg.open { display: flex; }
.cv-modal { background: #fff; border-radius: 6px; padding: 24px; width: 100%; max-width: 500px; box-shadow: 0 8px 34px rgba(0,0,0,.2); font-family: Arial, Helvetica, sans-serif; }
.cv-modal h4 { margin: 0 0 12px; font-size: 18px; }
.cv-modal p { margin: 0 0 12px; color: #555; font-size: 14px; line-height: 20px; }
.cv-modal textarea { width: 100%; height: 120px; padding: 10px; border: 1px solid #ced4da; border-radius: 5px; font-size: 14px; resize: vertical; font-family: Arial, Helvetica, sans-serif; }
.cv-modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

@media (max-width: 700px) {
    .cv-sheet { padding: 18px 12px; }
    .cv-actions { justify-content: stretch; }
    .cv-btn { width: 100%; }
}
@media (max-width: 640px) {
    .qcv-document-head { flex-direction: column; }
    .qcv-total-card { width: 100%; text-align: left; }
    .qcv-overview-grid, .qcv-bottom-grid { grid-template-columns: 1fr; }
    .qcv-detail-list { grid-template-columns: 1fr; }
    .qcv-detail-list dt { border-bottom: 0; padding-bottom: 2px; }
    .qcv-detail-list dd { padding-top: 2px; }
    .qcv-table { font-size: 12px; }
    .qcv-table th, .qcv-table td { padding: 6px 8px; }
}

/* ===== Badge text-light-* contrast fix =====
   text-light-warning uses bright yellow (#fac10f) text on near-white bg
   — contrast ratio ~1.2:1 (unreadable). Override to dark amber.
   text-light-secondary uses medium gray on light gray — borderline contrast.
   Scoped to .badge only so non-badge usages are unaffected. */
.badge.text-light-warning {
    color: #7a5c00 !important;
}
.badge.text-light-secondary {
    color: #3d404f !important;
}
.badge.bg-warning {
    color: #3d2e00 !important;
}

/* ===== Job Module — Inline Style Conversions ===== */

/* Icon fixed width — ensures consistent alignment in dropdowns */
.icon-fixed-sm {
    width: 20px;
}

/* Table column widths */
.col-table-preview {
    width: 90px;
}

.col-table-action {
    width: 70px;
}

/* Badge small font size — used for badge counts */
.badge-font-sm {
    font-size: 0.7rem;
}

/* File input hidden */
.input-hidden {
    display: none;
}

/* Font size utilities for small typography */
.fs-body-sm {
    font-size: 0.68rem;
}

.fs-body-xs {
    font-size: 0.67rem;
}

.fs-label-sm {
    font-size: 0.74rem;
}

.fs-label-xs {
    font-size: 0.7rem;
}

.fs-body-0-78rem {
    font-size: 0.78rem;
}

.fs-body-0-76rem {
    font-size: 0.76rem;
}

.fs-body-0-83rem {
    font-size: 0.83rem;
}

.fs-body-0-72rem {
    font-size: 0.72rem;
}

.fs-body-0-75rem {
    font-size: 0.75rem;
}

.fs-label {
    font-size: 0.98rem;
}

.fs-label-bold {
    font-size: 0.98rem;
    font-weight: 700;
}

.fw-label-700 {
    font-weight: 700;
}

.ls-wide {
    letter-spacing: 0.08em;
}

/* Layout utilities */
.gradient-pricing-left {
    background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.gradient-pricing-right {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.gradient-summary-total {
    background: linear-gradient(135deg, #eef6ff 0%, #f6fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

/* Badge alignment fix */
.badge-label-align {
    position: relative;
    top: -0.1rem;
    margin-left: 0.2rem;
    font-size: 0.67rem;
}

/* Job Form General Details - Agreed Price Panel */
.cst-agreed-price-panel {
    background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.cst-panel-header-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.cst-panel-header-title {
    font-size: 0.98rem;
    font-weight: 700;
}

.cst-panel-help-text {
    font-size: 0.78rem;
}

.cst-badge-ex-gst {
    position: relative;
    top: -0.1rem;
    margin-left: 0.2rem;
    font-size: 0.67rem;
}

.cst-small-text {
    font-size: 0.75rem;
}

.cst-small-text-multiline {
    font-size: 0.75rem;
    line-height: 1.5;
}

.cst-extra-small-text {
    font-size: 0.7rem;
}

/* Job Form Summary Panel */
.cst-summary-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.cst-panel-title {
    font-size: 1rem;
}

.cst-panel-subtitle {
    font-size: 0.76rem;
}

/* Summary Table Styling */
.cst-table-label-cell {
    font-size: 0.83rem;
}

.cst-table-value-cell {
    font-size: 0.83rem;
}

.cst-table-main-label {
    font-size: 0.9rem;
}

.cst-table-main-value {
    font-size: 1rem;
}

/* Grand Total Box */
.cst-grand-total-box {
    background: linear-gradient(135deg, #eef6ff 0%, #f6fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.cst-grand-label {
    font-size: 1rem;
}

.cst-grand-helper-text {
    font-size: 0.72rem;
}

.cst-grand-value {
    font-size: 1.12rem;
    line-height: 1;
}

/* Pieces Table Styling */
.cst-cursor-help {
    cursor: help;
}

.cst-sqm-header {
    min-width: 75px;
}

.cst-table-footer-text {
    font-size: 0.82rem;
}

/* SQM Display */
.cst-sqm-display {
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Piece Images Cell */
.cst-nowrap-cell {
    white-space: nowrap;
}

.cst-badge-tiny {
    font-size: 0.7rem;
}

/* ── GLightbox stacking fix ─────────────────────────────────
   Bootstrap modal is z-index 1055. Raise the outer container
   so GLightbox always sits above modals and sticky headers.
   Do NOT touch .goverlay z-index — it must stay below the
   inner .gcontainer (z-index 9999) which holds the slides.  */
.glightbox-container {
    z-index: 2147483647 !important;
}

/* Handles & More brand theme */
:root,
.default {
    --primary: 5, 28, 66;
    --primarylight: 232 237 248;
    --color-blue: 34, 82, 188;
    --clr-sent: 34, 82, 188;
    --clr-job-received: 34, 82, 188;
    --clr-pending: 225, 115, 44;
    --action-sent: 232, 237, 248;
    --action-job-received: 232, 237, 248;
    --action-pending: 252, 241, 233;
}

.btn-primary,
.bg-primary {
    background-color: #051c42 !important;
    border-color: #051c42 !important;
}

.btn-outline-primary {
    color: #051c42;
    border-color: #051c42;
}

.btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary {
    background-color: #051c42;
    border-color: #051c42;
    color: #fff;
}

.btn-warning,
.bg-warning {
    background-color: #e1732c !important;
    border-color: #e1732c !important;
}

a,
.table a,
nav .app-nav .main-nav > li:not(.menu-title) a:hover,
nav .app-nav .main-nav > li:not(.menu-title).active > a {
    color: #051c42;
}

.table th.sortable[data-direction="asc"] span.sort-icon,
.table th.sortable[data-direction="desc"] span.sort-icon {
    color: #2252bc;
}

.form-control:focus,
.form-select:focus,
.app-form .form-select:focus,
.app-form .form-control:focus {
    border-color: #2252bc !important;
    box-shadow: 0 0 0 0.25rem rgba(34, 82, 188, 0.18) !important;
}

.app-logo .logo img {
    max-width: 185px;
    max-height: 46px;
}


/* ─────────────────────────────────────────────────────────────
   Paint Approx Badge — appears next to the "Paint Details" heading
   on Job, Claim, and Quotation forms. Single styling source so all
   three forms render identically.
   ───────────────────────────────────────────────────────────── */
.paint-approx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: help;            /* hover reveals tooltip with breakdown */
}
.paint-approx-badge:hover {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.paint-approx-icon {
    font-size: 1.05rem;
    color: #0d6efd;
    flex-shrink: 0;
}
.paint-approx-label {
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.paint-approx-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d6efd;
    font-variant-numeric: tabular-nums;  /* digits align cleanly */
}
.paint-approx-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.paint-approx-pill--default { background: #e2e8f0; color: #475569; }
.paint-approx-pill--low     { background: #e2e8f0; color: #475569; }
.paint-approx-pill--medium  { background: #fef3c7; color: #92400e; }
.paint-approx-pill--high    { background: #dcfce7; color: #166534; }

.paint-approx-breakdown {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: -0.25rem;
    padding-left: 0.15rem;
}

@media (max-width: 575.98px) {
    .paint-approx-badge {
        width: 100%;
        justify-content: space-between;
    }
    .paint-approx-label {
        display: none;        /* save space on phones; icon + number is enough */
    }
}

/* PO status choice buttons: keep dark text on the unselected yellow outline
   for readability, but switch to white text once a status is selected
   (the .btn-check:checked filled state). Overrides the text-dark utility. */
.po-status-choice-wrap .btn-check:checked + .btn {
    color: #fff !important;
}

/* ===== Job edit — bulk select & delete (pieces / packages) ===== */
.bulk-check-cell { width: 38px; }
.bulk-col-hidden { display: none !important; }
.bulk-row-selected > td,
.bulk-row-selected > th { background-color: rgba(220, 53, 69, 0.07); }
#piecesBulkDeleteBtn:disabled,
#packagesBulkDeleteBtn:disabled { opacity: .55; cursor: not-allowed; }
