

@import url(https://fonts.googleapis.com/css?family=Open+Sans);/*!
* Waves v0.6.0
* http://fian.my.id/Waves
*
* Copyright 2014 Alfiana E. Sibuea and other contributors
* Released under the MIT license
* https://github.com/fians/Waves/blob/master/LICENSE

*/
:root,[data-bs-theme=light]{--bs-dist:#593D7A;}  
.gmaps-overlay_arrow.above,.gmaps-overlay_arrow.below{border-left:16px solid transparent;border-right:16px solid transparent}.app-search a,.gmaps-overlay,.user-details .user-info{text-align:center}.gmaps,.gmaps-panaroma{height:300px;background:#eff3f6;border-radius:3px}.gmaps-overlay{display:block;color:#fff;font-size:16px;line-height:40px;background:#001e6c;border-radius:4px;padding:10px 20px}.gmaps-overlay_arrow{left:50%;margin-left:-16px;width:0;height:0;position:absolute}.gmaps-overlay_arrow.above{bottom:-15px;border-top:16px solid #001e6c}.gmaps-overlay_arrow.below{top:-15px;border-bottom:16px solid #001e6c}.wrapper-page{margin:7.5% auto;max-width:460px;position:relative}.wrapper-page .logo-admin{font-size:28px;line-height:70px}.wrapper-page .card{border:7px double #001e6c;border-radius:10px}.user-thumb{position:relative;z-index:999}.user-thumb img{height:88px;margin:0 auto;width:88px}.has_sub.nav-active i.mdi-chevron-right:before{content:"\F140"}.profile-dropdown{width:170px}.profile-dropdown i{font-size:17px;vertical-align:middle;margin-right:5px}.nav-user img{width:30px;height:30px}.arrow-none:after{border:none;margin:0;display:none}
.user-details{min-height:80px;padding:20px;position:relative}.user-details img{position:relative;z-index:9999;height:64px;width:64px}.user-details .user-info .user-status{display:inline-block;padding:3px 10px;border:1px solid rgba(34,34,34,.27);border-radius:20px;font-size:12px}.fixedrows{background:#d2d5e6;color:#434446;text-align:left;font-size:13px;font-weight:700}.fixedrowtest{text-align:center;font-size:12px}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:.755em;display:none}#movement-table_wrapper .DTFC_ScrollWrapper{height:auto!important}.buttons-colvis{display:none}.info-box{border-bottom-left-radius:5px;border-top-right-radius:5px;min-height:100px;width:100%;box-shadow:0 5px 20px rgba(0,0,0,.1);-webkit-box-shadow:0 5px 20px rgba(0,0,0,.1);margin-bottom:20px;padding:15px}.info-box small{font-size:14px}.info-box .progress{background:rgba(0,0,0,.2);margin:5px -10px 5px 0;height:2px}.info-box .progress,.info-box .progress .progress-bar{border-radius:0}.info-box .progress .progress-bar{background:#fff}.info-box-icon{float:left;height:70px;width:70px;text-align:center;font-size:30px;line-height:74px;border-radius:100%}.info-box-number,.info-box-text,.progress-description{display:block;white-space:nowrap;overflow:hidden;text-align:right;float:right}.info-box-icon.push-bottom{margin-top:20px}.info-box-icon>img{max-width:100%}.info-box-content{padding:4px}.info-box-number{font-size:13px;color:#000;text-overflow:ellipsis;font-weight:400}.info-box-text,.progress-description{font-size:13px;color:green;text-overflow:ellipsis;font-weight:400;padding-bottom:10px}.info-box-number2,.info-box-text2,.progress-description{white-space:nowrap;overflow:hidden;color:#000;text-align:left;text-overflow:ellipsis;font-weight:400;display:block}.info-box-number2{font-size:13px}.info-box-text2,.progress-description{font-size:13px}.progress-description{margin:0}.mb-0,.navicon{margin-bottom:0!important}.bg-b-danger{background:linear-gradient(45deg,#f30c41,#eb66dd)}.bg-b-blue{background:linear-gradient(45deg,#1a77e2,#bfd6f1)}.bg-b-green{background:linear-gradient(45deg,#2ed8b6,#59e0c5)}.bg-b-orange{background:linear-gradient(45deg,#fda582,#f7cf68)}.bg-b-lightpurple{background:linear-gradient(45deg,#a5adea,#a5adea)}.bg-b-cyan{background:linear-gradient(45deg,#40ffed,#29b5af)}.bg-b-black{background:linear-gradient(45deg,#708090,#7c8ea0)}.bg-b-yellow{background:linear-gradient(45deg,#FFB64D,#ffcb80)}.bg-b-pink{background:linear-gradient(45deg,#FF5370,#ff869a)}.bg-b-gray{background:linear-gradient(45deg,#fff,#fff);border-radius:10px}.bg-b-gray2{background:linear-gradient(45deg,#bec3ef,#c5caf3);border-radius:10px}.info-box:focus{background-color:#001e6c;color:#fff}.app-search input.form-control2::-webkit-input-placeholder{color:rgba(255,255,255,.7)}.app-search input.form-control2:-moz-placeholder{color:rgba(255,255,255,.7)}.app-search input.form-control2::-moz-placeholder{color:rgba(255,255,255,.7)}.app-search input.form-control2:-ms-input-placeholder{color:rgba(255,255,255,.7)}.app-search .form-control2,.app-search .form-control2:focus{border:1px solid #898989;font-size:13px;height:40px;color:#fff;padding-left:20px;padding-right:40px;padding-top:0;background:#898989;box-shadow:none;border-radius:30px}.c3-axis-x .tick,.contentcol,.nonedisplay{display:none}#map_canvas,.sidebar-inner{height:100%}.custom-class-map-label,.custom-class-map-label1{text-align:center;font-weight:700;color:#eb3a44;line-height:20px}.card2{position:relative;-ms-flex-direction:column;flex-direction:column;min-width:0;background-color:#001e6c;background-clip:border-box;border-radius:.25rem}#map_wrapper{height:540px}#map_canvas{width:100%}.mt-40{margin-top:45px}.mt-20{margin-left:3px}.pd-10{padding-top:10px}.pd-30{padding-left:30px}.ml-20{margin-left:20px}.custom-class-map-label{width:25px;height:25px;font-size:10px}.custom-class-map-label1{width:60px;height:20px;border:1px solid #eb3a44;border-radius:5px;background:#fee1d7;font-size:12px}.boldfont{font-size:15px!important}.selected_div{background:#7197c887;color:#fff}.pd-1{padding:.25rem!important}.wd-300{max-width:300px!important}.wd-250{max-width:250px!important}.pd-0{padding:0 2px!important}.mt-23{margin-top:23px}.dropdw{height:36px!important}.colorgreen{color:green;font-size:13px}.icon-font{padding-right:1px;font-size:16px}.headercolor{font-size:19px!important;background-color:#001e6c!important;color:#fff!important;padding-left:3rem!important;margin:0!important}.pd-lrem{padding-left:1rem!important;padding-bottom:.5rem!important;padding-top:.5rem!important;font-size:13px!important}.map-box,.map-box2{position:absolute;z-index:3;width:250px;padding:5px;background-color:#fff}.pt-lrem{font-size:12px!important;font-weight:450}.black,.ft-size15{font-size:15px!important}.map-box{margin-top:100px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.map-box2{margin-top:4px;margin-left:4px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mt-neg20{margin-top:-72px!important;width:50px}.contentcol{overflow:visible;background-color:#f1f1f1}.navicon{margin-top:10px;COLOR:#fff}.mtlogo{padding-left:14px!important;margin-top:10px!important}.mt-15{padding-left:30px!important;margin-top:15px!important}.black{color:#000}.linkunder{margin-left:10px;color:#001e6c;text-decoration:underline}.text-center{text-align:center!important}.tbl_slg,.txc{text-align:center}.colorred{color:red}.colwhite{background:#fff}.heightwidth{height:660px!important}.custom-class-map-label2{width:83px;height:21px;border:1px solid #eb3a44;border-radius:5px;background:#fee1d7;text-align:center;line-height:20px;font-weight:700;font-size:11px;color:#eb3a44}.pointer{cursor:pointer!important}tr.highlighted td{background-color:rgba(91,107,232,.15)}#alert_msg{padding:0 21%}.disflex{display:flex!important}.grapbut{background-color:#001e6c!important;border:1px solid #001e6c!important;color:#fff;border-radius:3px;font-size:15px;width:75px}.vishid{visibility:hidden}.pdt-23{padding-top:23px}.cirinn{line-height:11px;margin:13px 0;font-size:.95rem}.card3{position:relative;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;background-color:#dadefd;background-clip:border-box;border-radius:.25rem}.clrfuel{color:#0bc918}.brdr{border:3px solid #959ee6;border-radius:50px}.sidebarpad{padding:10px 25px!important}.alrt_btn{border:none;background:0 0;color:#2d3b48;padding:14px 13px}.icn_ml{margin-left:30px;color:#707070}.tbl_slg{white-space:nowrap;overflow:hidden;padding:5px!important;font-size:14px}.ft_sz14{font-size:14px!important}.ft_25{font-size:25px}.botdes{margin-top:41px}.padeql_icn{padding:5px}.pd_side_bar{padding-top:0px;padding-bottom:0px;background-color:#001e6c}.mt-8{margin-top:8px}.nav-imgpd{margin-left:-6px;margin-top:1px}.but-padaddveh{padding-left:70px!important;padding-right:70px!important}


.gm-style-iw {
   width: 400px !important;
}
.editable{
   display:none;
}
.action-icon{
   font-size:20px;
}
.checkbox-1{
   width: 20px;
   height: 20px;
}
.hiearNameLink, .CallDistributer{
   padding: 1px;
   /*border: none;*/
}

.popupimage{
   width: 900px;
   margin: auto;
   text-align: center
}
.popupimage img{
   width: 200px;
   height: 200px;
   cursor: pointer
}
.showimage{
   z-index: 999;
   display: none;
}
.showimage .overlayimage{
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,.66);
   position: absolute;
   top: 0;
   left: 0;
}
.showimage .img-show{
   width: 600px;
   height: 400px;
   background: #FFF;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%,-50%);
   overflow: hidden
}
.img-show span{
   position: absolute;
   top: 10px;
   right: 10px;
   z-index: 99;
   cursor: pointer;
}
.img-show img{
   width: 100%;
   height: 100%;
   position: absolute;
   top: 0;
   left: 0;
}
/*End style*/
span.popubwidth{
width:100px
}
.dashboard-highlight{
   font-weight: 700!important;
   font-size: 28px;
}
.dashboard-highlight1{
   font-weight: 700!important;
   font-size: 28px;
   color: #000
}
.dash-content{
   font-size: 18px;
   color: #000
}
.dash-avatar-sm {
   height: 3.25rem;
   width: 3.25rem;
}
.dash-card-box{
   background-color: #fff;
   padding: 0.5rem;
   -webkit-box-shadow: 0px 0px 5px 4px rgba(112, 104, 112, 0.4);
   -moz-box-shadow: 0px 0px 5px 4px rgba(112, 104, 112, 0.4);
   box-shadow: 0px 0px 5px 4px rgba(112, 104, 112, 0.4);
   margin: 6px;
   margin-bottom: 4px;
   border-radius: .25rem;
   height: 125px;
   width: 95%;
}
.btn-m{
   padding: .5rem 1rem;
   font-size: 1.125rem;
   line-height: 1;
   border-radius: .15rem;
}
.invoice-view-list{
   font-size: 14px;
   line-height: 1.4285714286em;
   color: #06263a;
   white-space: nowrap;
   text-overflow: ellipsis;
   overflow: hidden;
   padding-right: 0.7142857143em;
   float: left;
   width: 100%;
}
.invoice-view-list-price{
   font-size: 14px;
   line-height: 1.4285714286em;
   float: right;
}
.lte {
   white-space: nowrap;
   text-overflow: ellipsis;
   overflow: hidden;
   width: 150px
}
.selected_inovoice{
   background-color: rgba(70,190,138,0.1);    
}

/* width */
::-webkit-scrollbar {
 width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
 box-shadow: inset 0 0 5px grey; 
 border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
 background: #414d5f; 
 border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
 background: #414d5f; 
}

#invoice-item th { 
   border:  1px solid #fff;
   vertical-align: top;
   font-size: small;
  
}
#invoice-item td { 
   border:  1px solid #ece4e4;
   white-space: nowarp;
}
.nowarp { 
   white-space: nowarp;   
}
#invoice-item input ,#invoice-item .select2-container--default .select2-selection--single  { 
   border:  none
   
   
}

.right { 
   text-align: right; 
}
   
   
.select2-selection{
/* width: 600px !important; */
}
.map-headercolor{
      font-size:19px!important;
      background-color:#001e6c!important;
      color:#fff!important;
      padding-left:17px!important;margin:0!important}

@media print
{
   
   .max-height-class { 
       height:100%  !important; 
       overflow-y:unset !important;
       -webkit-print-color-adjust: exact; 
   } 
   
}

.invoice-table{
    
    color: #000000;
    font-size: 1rem; 
    width: 100%;
    margin-bottom: 1.5rem;
}
.invoice-table td, .invoice-table th {
   padding: 0.4615384615em 0.4538461538em 0.4615384615em 0;
   vertical-align: top;
   /* border-top: 1px solid #dee2e6; */
}
.invoice-table tr {
   border-top: 1px solid #dee2e6;
}
.invoice-table tr:hover{
   background-color: #2abd2a2e;
}

.selected-view{
   background-color: #2abd2a2e;
}
.month-report-selected{
   background-color: #1a33632e;
}

.page-likne-new{
   position: relative;
   display: block;
   margin-left: -1px;
   line-height: 2.2;
   color: #414d5f;
   background-color: #fff;
   border: 1px solid #dee2e6;
   width: 29px;
   text-align: center;
}

.page-item.active .page-likne-new{ 
   z-index: 1;
   color: #fff;
   background-color: #188ae2;
   border-color: #188ae2;
}
/* .max-height-class-left{ width:400px;
   height:200px;
   overflow:scroll;
  } */


/* Let's get this party started */
.max-height-class-left::-webkit-scrollbar {
width: 8px;
}

/* Track */
.max-height-class-left1::-webkit-scrollbar-track {
/* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
-webkit-border-radius: 10px;
border-radius: 10px; */
}

/* Handle */
.max-height-class-left::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: #6872b7cc; 
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}


/* Let's get this party started */
.max-height-class::-webkit-scrollbar {
   width: 8px;
   }
   
   /* Track */
   .max-height-class1::-webkit-scrollbar-track {
   /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
   -webkit-border-radius: 10px;
   border-radius: 10px; */
   }
   
   /* Handle */
   .max-height-class::-webkit-scrollbar-thumb {
   -webkit-border-radius: 10px;
   border-radius: 10px;
   background: #6872b7cc; 
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
   }


   

/* Let's get this party started */
.datatable-height::-webkit-scrollbar {
   width: 8px;
   }
   
   /* Track */
   .datatable-height1::-webkit-scrollbar-track {
   /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
   -webkit-border-radius: 10px;
   border-radius: 10px; */
   }
   
   /* Handle */
   .datatable-height::-webkit-scrollbar-thumb {
   -webkit-border-radius: 10px;
   border-radius: 10px;
   background: #6872b7cc; 
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
   }

   iframe{
       border: none;
   }

   iframe::-webkit-scrollbar-track {
       /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
       -webkit-border-radius: 10px;
       border-radius: 10px; */
       }
       
       /* Handle */
       iframe::-webkit-scrollbar-thumb {
       -webkit-border-radius: 10px;
       border-radius: 10px;
       background: #6872b7cc; 
       -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
       }
       thead, tbody tr {
           width:100%;
           table-layout:fixed;
       }
       tfoot tr {
         display:table;
         width:100%;
         table-layout:fixed;
       }
        tr > td:first-child { padding-left:5px }
        tr > td:last-child { padding-right:5px }
        tr > th:first-child { padding-left:5px }
        tr > th:last-child { padding-right:5px }
        .loader {
           border: 8px solid #f3f3f3;
           border-radius: 50%;
           border-top: 8px solid #3498db;
           width: 37px;
           height: 37px;

           -webkit-animation: spin 2s linear infinite; /* Safari */
           animation: spin 2s linear infinite;
         }
         
         /* Safari */
         @-webkit-keyframes spin {
           0% { -webkit-transform: rotate(0deg); }
           100% { -webkit-transform: rotate(360deg); }
         }
         
         @keyframes spin {
           0% { transform: rotate(0deg); }
           100% { transform: rotate(360deg); }
         }
         /* Absolute Center Spinner */
.loading {
   position: fixed;
   z-index: 1061;
   height: 2em;
   width: 2em;
   overflow: show;
   margin: auto;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
 }
 
 /* Transparent Overlay */
 .loading:before {
   content: '';
   display: block;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
     background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
 
   background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
 }
 
 /* :not(:required) hides these rules from IE9 and below */
 .loading:not(:required) {
   /* hide "loading..." text */
   font: 0/0 a;
   color: transparent;
   text-shadow: none;
   background-color: transparent;
   border: 0;
 }
 
 .loading:not(:required):after {
   content: '';
   display: block;
   font-size: 10px;
   width: 1em;
   height: 1em;
   margin-top: -0.5em;
   -webkit-animation: spinner 150ms infinite linear;
   -moz-animation: spinner 150ms infinite linear;
   -ms-animation: spinner 150ms infinite linear;
   -o-animation: spinner 150ms infinite linear;
   animation: spinner 150ms infinite linear;
   border-radius: 0.5em;
   -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 }
 
 .sec-loading {
   position: fixed;
   z-index: 1061;
   height: 2em;
   width: 2em;
   overflow: show;
   margin: auto;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
 }
 
 /* Transparent Overlay */
 .sec-loading:before {
   content: '';
   display: block;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
     background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
 
   background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
 }
 
 /* :not(:required) hides these rules from IE9 and below */
 .sec-loading:not(:required) {
   /* hide "sec-loading..." text */
   font: 0/0 a;
   color: transparent;
   text-shadow: none;
   background-color: transparent;
   border: 0;
 }
 
 .sec-loading:not(:required):after {
   content: '';
   display: block;
   font-size: 10px;
   width: 1em;
   height: 1em;
   margin-top: -0.5em;
   -webkit-animation: spinner 150ms infinite linear;
   -moz-animation: spinner 150ms infinite linear;
   -ms-animation: spinner 150ms infinite linear;
   -o-animation: spinner 150ms infinite linear;
   animation: spinner 150ms infinite linear;
   border-radius: 0.5em;
   -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 }
 .third-loading {
   position: fixed;
   z-index: 1061;
   height: 2em;
   width: 2em;
   overflow: show;
   margin: auto;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
 }
 
 /* Transparent Overlay */
 .third-loading:before {
   content: '';
   display: block;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
     background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
 
   background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
 }
 
 /* :not(:required) hides these rules from IE9 and below */
 .third-loading:not(:required) {
   /* hide "third-loading..." text */
   font: 0/0 a;
   color: transparent;
   text-shadow: none;
   background-color: transparent;
   border: 0;
 }
 
 .third-loading:not(:required):after {
   content: '';
   display: block;
   font-size: 10px;
   width: 1em;
   height: 1em;
   margin-top: -0.5em;
   -webkit-animation: spinner 150ms infinite linear;
   -moz-animation: spinner 150ms infinite linear;
   -ms-animation: spinner 150ms infinite linear;
   -o-animation: spinner 150ms infinite linear;
   animation: spinner 150ms infinite linear;
   border-radius: 0.5em;
   -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
 }
 /* Animation */
 
 @-webkit-keyframes spinner {
   0% {
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     transform: rotate(0deg);
   }
   100% {
     -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);
     -ms-transform: rotate(360deg);
     -o-transform: rotate(360deg);
     transform: rotate(360deg);
   }
 }
 @-moz-keyframes spinner {
   0% {
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     transform: rotate(0deg);
   }
   100% {
     -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);
     -ms-transform: rotate(360deg);
     -o-transform: rotate(360deg);
     transform: rotate(360deg);
   }
 }
 @-o-keyframes spinner {
   0% {
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     transform: rotate(0deg);
   }
   100% {
     -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);
     -ms-transform: rotate(360deg);
     -o-transform: rotate(360deg);
     transform: rotate(360deg);
   }
 }
 @keyframes spinner {
   0% {
     -webkit-transform: rotate(0deg);
     -moz-transform: rotate(0deg);
     -ms-transform: rotate(0deg);
     -o-transform: rotate(0deg);
     transform: rotate(0deg);
   }
   100% {
     -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);
     -ms-transform: rotate(360deg);
     -o-transform: rotate(360deg);
     transform: rotate(360deg);
   }
 }
 #userPassword{
   -webkit-text-security:disc;
}
.enlarged > .left-side-menu> .organization-switch{
 display: none;
}

.non-editable-dropdown{
 display:none;
}
.co-ellipsis{
 white-space: nowrap;
 text-overflow: ellipsis;
 overflow: hidden;
 padding-right: 0.7142
}
.colapse-table table,.colapse-table tr,.colapse-table td {
 border-collapse: collapse;
 border:  1px solid var(--bs-dist);
}
.dateCell{
 position: relative;
 padding:0px;
}
.table-form-control {
 display: block;
 width: 100%;
 
 
 line-height: 1.5;
 color: #6c757d;
 background-color: #fff;
 background-clip: padding-box;
 border: 1px solid #ced4da;
 border-radius: .2rem;
 
}
.dot {
 height: 12px;
 width: 12px;
 background-color: red;
 border-radius: 50%;
 display: inline-block;
}
.dot1 {
 height: 12px;
 width: 12px;
 background-color:green;
 border-radius: 50%;
 display: inline-block;
}
.ms-options-wrap{
 width:100%;
}
.multiselect-list hr{
 margin:6px;
}
.mm-active.submenu {
 background-color: #3c4556;
}
/* 
td[title]:hover::after {
 content: attr(title);
 position: absolute;
 color: red;
 top: -100%;
 left: 0;
} */
.horizontal-scroll-except-first-column {
 width: 100%;
 overflow: scroll;
 position: relative;
}
/* First body cell is the frozen label column: dark brand fill, white text.
   :not([colspan]) keeps it off full-width rows - the "No Records Found"
   empty state and colspanned total rows are single cells that spanned the
   table, so they were being painted as if they were the label column. */
.horizontal-scroll-except-first-column > table > tbody > tr > td:first-child:not([colspan]) {
 position: -webkit-sticky;
 position: sticky;
 top: 0;
 background: var(--bs-dist);
 color: #FFF;
 text-align: right;
}

.horizontal-scroll-except-first-column > table > tbody > tr > td {
 left: 0;
 z-index: 1;
}
/* 

.horizontal-scroll-except-first-column > table > thead > tr > th {
 position: -webkit-sticky; 
 position: sticky;
 top: 0;
 background: var(--bs-dist);
 color: #FFF;
 text-align: right;
}
*/

.horizontal-scroll-except-first-column > table >thead > tr:first-child > th {
 position:sticky;
 top:0;
 z-index:2;
}
.horizontal-scroll-except-first-column > table >thead > tr.second >th{
 position:sticky;
 top:33px;
 z-index:2;
}

.horizontal-scroll-except-first-column > table > thead > tr:first-child > th:first-child  {
 position: sticky;
 left: 0px;
 top: 0px;
 z-index: 3;
 text-align: right;
 background-color: var(--bs-dist);
}
.scroll-first-col-month-report {
   width: 100%;
   overflow: auto;
   /* position: absolute; */
  }
  
  .scroll-first-col-month-report > table > tbody > tr > td {
   left: 0;
}
  .scroll-first-col-month-report > table >thead > tr > th {
   position:sticky;
   top:0;
   z-index:5;
   background-color: var(--bs-dist);
}
  .scroll-first-col-month-report > table > tbody > tr > td:first-child
  {
   z-index: 1;
   position: -webkit-sticky; 
   position: sticky;
   top: 0;
   
  }
  .scroll-first-col-month-report > table > tbody > tr:not(.month-report-selected) > td:first-child
  {
   background: #fff;
  }
  .scroll-first-col-month-report > table > thead > tr> th:first-child  {
      position: sticky;
      left: 0px;
      top: 0px;
      z-index: 6;
      background-color: var(--bs-dist);
  }
 #counter-sale-item tr { 
   line-height: 20px; 
}
select.mrp_dropdown{ 
   background-color: #00ffff3b;
}
.days-td{
   text-align: center;
}
.filter-content{
   max-height: 400px;
   
   background-color:#e5e5e5;
   box-shadow: 0px 0px 5px 4px rgb(112 104 112 / 40%);
   margin-bottom: 4px;
   border-radius: .25rem;
}
.strike-val{
 text-decoration: line-through 1px solid red;
}
.report-table-header{
   color: #fff;
   background-color: var(--bs-dist);
   border-color: #424c5c;
   font-size: 14px;
   }

/* New Table Style*/
/* Single source of truth for list-table typography.
   Every page using .new_table_ui gets the SAME sizes, so legacy per-page
   rules (.custom-table td, table.inner-table td, #invoice-item th ...)
   can no longer make one list look different from another. */
:root {
  /* --tbl-font-family: Barlow, sans-serif; */
  --tbl-font-family: 'Plus Jakarta Sans', sans-serif;
  --tbl-head-font-size: 12px;
  --tbl-body-font-size: 14px;
}
.new_table_ui { margin: 0px;}
table.new_table_ui,
table.new_table_ui thead th,
table.new_table_ui tbody td {
  font-family: var(--tbl-font-family) !important;
}
/* keep inline children (links, spans, b, small) at the cell size */
table.new_table_ui tbody td > span,
table.new_table_ui tbody td > a,
table.new_table_ui tbody td > b,
table.new_table_ui tbody td > small,
table.new_table_ui tbody td > label {
  font-size: inherit !important;
}
.new_table_ui_header{
  background: #1a2340 !important;
  position: sticky;
  top: 0;
  z-index: 4;
}
table.new_table_ui thead th {
  background: #1a2340 !important;
  color: #ffffff !important;
  font-size: var(--tbl-head-font-size) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 10px 10px !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
.new_table_ui tbody td {
  padding: 10px 10px !important;
  font-size: var(--tbl-body-font-size) !important;
  color: #334155;
  border: none !important;
  border-bottom: 1px solid #e0dcf4 !important;
  vertical-align: middle !important;
}
/* Table Body Odd Even Backround... */
table.new_table_ui tbody tr:nth-of-type(odd), table.new_table_ui tbody tr:nth-of-type(even) {
  background: #fff !important;
  transition: background 0.1s ease;
}
/* ...except the sticky total row. The odd/even rule above is !important, so
   it beat both .nonsortable-tr (bootstrap.min.css) and the inline
   style="background: bisque" that the report builders emit. Re-assert it
   here with higher specificity instead of editing every caller. */
table.new_table_ui tbody tr.nonsortable-tr:nth-of-type(odd),
table.new_table_ui tbody tr.nonsortable-tr:nth-of-type(even) {
  background: bisque !important;
}

   thead.report-table-header > tr > th{
      padding-right: 5px;
      padding-left: 5px;
   }
tbody.report-table-body > tr > td{
         padding-right: 5px;
         padding-left: 5px;
  }
  .report-table{
     color: #434546;
  }
  .dash-amount{
   text-align: center;
   font-weight: 900;font-size: 23px;color: #000;
  }
  @media only screen and (max-width: 1200px) {
   .dash-amount{
      text-align: center;
      font-weight: 900;font-size: 16px;color: #000;
     }
     .mh{
        display: none;
     }
     .ms{
      display: show;
    }
  }
  @media only screen and (min-width: 1200px) {
     .mh{
        display: show;
     }
     .ms{
      display: none;
    }
  }
  
  @media 
only screen and (max-width: 800px) {
 .dmp0{
    padding: 0px;
 }
 .mp0{
   padding: 0px;
}
	/* Force table to not be like tables anymore */
	 table.dash-summary-table *  { 
		display: block; 
	}
	table.dash-summary-table  { 
		display: block; 
	}
   table.dash-summary-table > tbody > tr { 
		padding: 1px ;
	}
	/* Hide table headers (but not display: none;, for accessibility) */
	table.dash-summary-table > thead > tr:nth-child(2) { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	
	
	table.dash-summary-table > tbody > tr > td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	table.dash-summary-table > tbody > tr > td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		left: 6px;
		width: 40%; 
      text-align: right;
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
   table.dash-summary-table > tbody > tr {
      border: 1px solid black;
   }
   table.dash-summary-table > tbody > tr >td{
      border-bottom: 1px solid #eee;
   }
   
	table.dash-summary-table > tbody > tr >  td:nth-of-type(1):before { content: "Beat Name"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(2):before { content: "Billed Shops"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(3):before { content: "Total Sales"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(4):before { content: "Collectios"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(5):before { content: "Sales Credit"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(6):before { content: "Sales Return"; }
	table.dash-summary-table > tbody > tr > td:nth-of-type(7):before { content: "Diff Amount"; }

   
	/* Force table to not be like tables anymore */
   table.currect-stock-table *  { 
		display: block; 
	}
	table.currect-stock-table  { 
		display: block; 
	}
   table.currect-stock-table > tbody > tr { 
		padding: 1px ;
	}
	/* Hide table headers (but not display: none;, for accessibility) */
	table.currect-stock-table > tbody > tr:nth-child(1) { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	
	
	table.currect-stock-table > tbody > tr > td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	table.currect-stock-table > tbody > tr > td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		left: 6px;
		width: 40%; 
      text-align: right;
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	table.currect-stock-table > tbody > tr >  td:nth-of-type(1):before { content: "Good Value"; }
	table.currect-stock-table > tbody > tr > td:nth-of-type(2):before { content: "Expiry"; }
	table.currect-stock-table > tbody > tr > td:nth-of-type(3):before { content: "Damage"; }
	
}
.view-active-btn{
   background-color: crimson;
   color: white;
}
.table-responsive>table>thead
{
   white-space: nowrap;
    position: sticky;
    top: 0px;
    /* z-index: 1; */
}



table.highlight-row-col> tbody > tr >td
{
   position: relative;
}



table.highlight-row-col> * > tr:hover{
   background-color: rgba(85, 64, 202, 0.39);
   transition: background-position 0.5s ease-out;
}
table.highlight-row-col> tbody > tr >  td:not(:first-child):hover::after
 { 
   background-color: rgba(85, 64, 202, 0.39);
   content: '\00a0';  
   height: 10000px;    
   left: 0;
   position: absolute;  
   top: -5000px;
   width: 100%;   
   
}
td.mdi-monitor-screenshot:before{
   color: red;

}
 
td.mdi-cellphone-iphone:before{
   color: red;

}
.mobile-access::before{
   color: blue;
   }
.web-access::before{
      color: orange;
   }
/* Cheque Number "created from" marker (cheque_list): inline-SVG Tabler icon in
   front of the number. The ::before colours above no longer reach it - the
   font glyph is suppressed by i[data-svg] - so the colour is set on the <i>
   and the SVG follows it through currentColor. Same blue / orange as before. */
.ref-src {
   display: inline-flex;
   align-items: center;
   gap: 6px;
}
.ref-src > i[data-svg] { font-size: 16px; cursor: help; }
.ref-src > .mobile-access { color: #2563eb; }
.ref-src > .web-access    { color: #ea580c; }
   /* .pagination >*>.page-link {
   padding: 0.1rem 0.75rem;
}
.form-control select#limit {
   height: 0.1rem 0.75rem;
} */

td.distributor-margin{
   background-color: #c7c2848c;
   }
td.disc-per{
   background-color: #add8e654;
}
td.pos-text{
   /* color: var(--bs-dist); */
   color: #2e5cb7;
   font-weight: 5 00;
}
td.neg-text{
   color: red;
   font-weight: 500;
}

table#package-table >tbody> tr > td:not(:first-child){
   border: 4px solid #e2e0e0;
   vertical-align: bottom;
  }
  table#package-table >tbody> tr > td:first-child{
   /* width: 22.5%; */
  }
  .package-label{
   font-weight: 500;
  }
  table.inner-table>tbody>tr>td{
   padding: 0px;
   font-size: 10px;
  }
  table.inner-table>tbody>tr:first-child>td{
   text-align: center;
   /* line-height: 1; */
  }
  thead.inventory-head >tr > th{
   border-right: solid 1px #fff;
   padding:0px;
   font-size: small;
  }
  thead.inventory-head >tr > th:not(:first-child) {
   text-align: center;
  }
  
  thead.inventory-head >tr > th:first-child{
   text-align: left;
  }
  .multirow_report-header{
   color: #fff;
   background-color: var(--bs-dist);
   border-color: #424c5c;
   font-size: 14px;
   }
   thead.multirow_report-header > tr > th{
      padding-right: 5px;
      padding-left: 5px;
   }
tbody.multirow_report-body > tr > td{
         padding-right: 5px;
         padding-left: 5px;
  }
  .multirow_report{
     color: #434546;
  }

  .theme_bg_color{
   background-color:var(--bs-dist) !important;
  }
  .theme_color{
   color:var(--bs-dist) !important;
  
}
td[data-type="Number"] {
   text-align: right !important;
 }


tr[data-unit_type_enable_ind="1"] > td.open_good_pcs,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_good_unit_qty_td,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_damage_unit_qty_td,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_expiry_unit_qty_td,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_return_good_unit_qty_td,
tr[data-unit_type_enable_ind="1"] > td.pcs_bg_color,
tr[data-unit_type_enable_ind="1"] > td.open_good_pcs input,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_good_unit_qty_td input,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_damage_unit_qty_td input,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_return_good_unit_qty_td input,
tr[data-unit_type_enable_ind="1"] > td.recv_stk_expiry_unit_qty_td input{
   background-color: #c9fffe !important;
}

tr[data-package_type_enable_ind="1"] > td.open_good_box,
tr[data-package_type_enable_ind="1"] > td.recv_stk_expiry_package_qty_td,
tr[data-package_type_enable_ind="1"] > td.recv_stk_good_package_qty_td,
tr[data-package_type_enable_ind="1"] > td.recv_stk_damage_package_qty_td,
tr[data-package_type_enable_ind="1"] > td.recv_stk_return_good_package_qty_td,
tr[data-package_type_enable_ind="1"] > td.open_good_box input,
tr[data-package_type_enable_ind="1"] > td.recv_stk_expiry_package_qty_td input,
tr[data-package_type_enable_ind="1"] > td.recv_stk_good_package_qty_td input,
tr[data-package_type_enable_ind="1"] > td.recv_stk_damage_package_qty_td input,
tr[data-package_type_enable_ind="1"] > td.recv_stk_return_good_package_qty_td input,
tr[data-package_type_enable_ind="1"] > td.box_bg_color {
   background-color: #ffe440 !important;
}

.beat_plan_header > tr > th
{
   vertical-align: middle;
}
/* .beat_plan_header > tr > th,
.beat_plan_tbody > tr > td{
   padding: 0px !important;
} */
.beat_plan_header > tr > th{
   padding: 0px !important;
}
.beat_plan_tbody > tr {
  
   border-bottom: 1px solid #00000026;
} 
.beat_plan_tbody > tr > td{
   padding-right: 0px !important;
} 
.beat_plan_tbody > tr > td input{   
   border: none !important;
   padding-right: 2px !important;
   min-width: 50px;
}
.beat_plan_tbody > tr > td{
   border-left: 1px solid #cec9c9 !important;
   vertical-align: middle;
}
.beat_plan_tbody > tr > td{
   min-width: 28px;
}
td[data-style="danger"] {
   background-color: #f34943; /* For example, setting background color to red */
   color: black;
}
td[data-style="success"] {
   background-color: #31ce77; /* For example, setting background color to red */
   color: black;
}
td[data-style="warning"] {
   background-color:#ebae02; /* For example, setting background color to red */
   color: black;
}
.read{
   opacity: 0.6;
  background: #00000008;
}
.unread{
 color: #000;
}
.unread .media-body p {
  color: #000 !important;
  font-weight: 700;
    font-family: Barlow, sans-serif;
}
.read .media-body p {
  color: #00000096 !important;
  font-weight: 700;
    font-family: Barlow, sans-serif;
}
.center{
   text-align: center;
}
tr[data-prod_item_discount_offer_apply_type="scheme"][data-prod_item_free_ind="1"] input,
tr[data-prod_item_discount_offer_apply_type="scheme"][data-prod_item_free_ind="1"] .eidt-btn,
tr[data-prod_item_discount_offer_apply_type="scheme"][data-prod_item_free_ind="1"] .info-click {
    pointer-events: none;
    opacity: 0.6;
}

.filter-wrap {
    width: 200px !important;
    position: relative;
    display: flex;
}
th .multiselect-wrapper ul li {
    background-color: rgb(243, 240, 240);
    color: #000;
}
/* #purchase-item tbody#table-row tr[data-pop_status_ind="1"] td.product-name::after {
     content: "\219F";
    font-family: "Material Design Icons";   
    margin-left: 8px;
    vertical-align: middle;
    color: #0d6c00;
    font-size: 22px;
    font-weight: 900;
} */

#purchase-item tbody#table-row tr[data-pop_status_ind="1"] 
td.product-name span.editable:first-of-type::after {
   content: "\219F";
   font-family: "Material Design Icons";   
   margin-left: 8px;
   vertical-align: middle;
   color: #0d6c00;
   font-size: 14px;
   font-weight: 900;
}

/* New CSS */
/* Invoice Report */

/* STAT CARDS (FIXED) */

.stat-strip{
   display:flex;
   flex-wrap:wrap;
   gap:15px;
   margin-top:15px;
   width:100%;
}

/* CARD */
.stat-card{
   flex:1 1 180px;
   max-width:100%;
   background:#ffffff;
   border-radius:12px;
   padding:12px 15px;
   box-shadow:0 2px 10px rgba(0,0,0,0.08); /* restored depth */
   border:1px solid #f1f3f6; /* visible border like screenshot */
   position:relative;
   overflow:hidden;
   transition:0.2s;
}

/* HOVER */
.stat-card:hover{
   transform:translateY(-3px);
   box-shadow:0 4px 14px rgba(0,0,0,0.12);
}

/* TOP COLOR BAR */
.stat-bar{
   position:absolute;
   top:0;
   left:0;
   height:4px;
   width:100%;
   border-top-left-radius:12px;
   border-top-right-radius:12px;
}

/* VALUE */
.stat-value{
   font-size:16px;
   font-weight:600;
   margin-top:8px;
}

/* LABEL */
.stat-label{
   font-size:12px;
   color:#777;
   margin-top:4px;
   letter-spacing:0.5px;
}

/* ===== TABLE HEADER ===== */
.custom-table-header th {
    background: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    font-size: 12.5px;
    padding: 10px 8px;
    border-bottom: 1px solid #3d5166;
    white-space: nowrap;
    width: 15%;
    text-align: center;
}

/* ===== TABLE BODY ===== */
.custom-table td {
    text-align: center;
    padding: 9px 8px;
    font-size: 12px;
    border-bottom: 1px solid #e2e6f3;
    white-space: nowrap;
    width: 15%;
}

/* ===== ROW HOVER ===== */
.custom-table tbody tr:hover td {
    background: #f8f9ff;
}

/* ===== ALIGN RIGHT ===== */
.custom-table .right {
    text-align: right;
    font-weight: 500;
}

/* ===== REMOVE SIDE BORDERS ===== */
.custom-table {
    border-collapse: collapse;
}

.custom-table td,
.custom-table th {
    border-left: none !important;
    border-right: none !important;
}

/* ===== New UI Common Styles ===== */
:root {
    --so-purple: #5c35d9;
    --so-purple-d: #4a28b8;
    --so-purple-m: #7b5ce5;
    --so-purple-l: #ede9ff;
    --so-border: #dde3f2;
}

/* ── Filter bar card ── */
.new_daily_rep_he, .form-filter {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--so-border);
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 6px rgba(30, 60, 140, 0.05);
}

/* ── Search bar (modern pill) ── */
.so-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 50%;
    min-width: 0;
}
.so-search-icon {
    position: absolute;
    left: 12px;
    font-size: 17px;
    color: #9da8c8;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
    transition: color .18s;
}
.so-search-wrap:focus-within .so-search-icon { color: var(--so-purple); }
.so-search-input {
    height: 36px;
    width: 100%;
    min-width: 100px;
    padding: 0 14px 0 36px;
    border: 1.5px solid #d0d8ee !important;
    border-radius: 9999px !important;
    font-size: 13px;
    color: #334155;
    background: #f5f7fd;
    outline: none;
    box-shadow: 0 1px 4px rgba(92,53,217,.06);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.so-search-input::placeholder { color: #b0bad4; font-weight: 400; }
.so-search-input:focus {
    border-color: var(--so-purple) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(92,53,217,.12);
    outline: none;
}

/* ── Inline date (pages with a single Date filter - no Filter popup) ── */
.so-inline-label {
    margin: 0 8px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.so-date-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 170px;
    flex: 0 0 auto;
}
.so-date-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #9da8c8;
    pointer-events: none;
    line-height: 1;
    z-index: 3;
    transition: color .18s;
}
.so-date-wrap:focus-within .so-date-icon { color: var(--so-purple); }
.so-date-wrap .so-date-input {
    height: 36px !important;
    width: 100%;
    padding: 0 12px 0 36px !important;
    border: 1.5px solid #d0d8ee !important;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f5f7fd;
    box-shadow: 0 1px 4px rgba(92,53,217,.06);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.so-date-wrap .so-date-input:focus {
    border-color: var(--so-purple) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(92,53,217,.12);
    outline: none;
}

/* ── Badge base ── */
.badge {
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    display: inline-block !important;
    text-align: center !important;
    width: auto !important;
    min-width: 75px !important;  /* all badges render the same size */
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

/* One size for every badge inside a list table. The base above only sets a 75px
   floor, and each column used to add its own inline width on top of it (85px
   device type, 40px web access, 80px status and login type - see
   controllers/login_screen_otp.js), so a single row showed four different badge
   sizes. 96px clears the longest label in these lists ("Single Device").

   Scoped to tables on purpose: .badge is also the sidebar's unread-count bubble
   (sidebar.ejs) and the submenu counters, which must stay small.

   A fixed width, not a floor: with min-width the badge still grew with its text,
   so "Deployed/Placed" sat wider than "Transferred" in the same column. 140px
   clears the longest label in these lists ("Ready For Deployment",
   controllers/chiller_inventory.js). nowrap means a longer label would overflow
   visibly rather than silently wrapping to two lines - if that ever happens,
   raise this number rather than removing it.

   It has to out-specify `.badge { width: auto !important }` above, which the
   extra `table` does. */
table .badge {
    width: 140px !important;
    min-width: 140px !important;
    white-space: nowrap;
}

/* ── Bootstrap Alternative Badge Style ── */
/* Common Auto Size Badge */
.badge.badge-auto-size {
    display: inline-block !important;
    width: auto !important;
    min-width: 140px;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    line-height: 1.5;
    padding: 7px 12px !important;
    box-sizing: border-box;
    vertical-align: middle;
}
/* Primary */
.badge.badge-primary{
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd !important;
}
/* Secondary */
.badge.badge-secondary{
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
/* Success */
.badge.badge-success{
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}
/* Danger */
.badge.badge-danger{
    background-color: #fde8e8 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}
/* Warning */
.badge.badge-warning{
    background-color: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
}
/* Info */
.badge.badge-info{
    background-color: #ccfbf1 !important;
    color: #115e59 !important;
    border: 1px solid #99f6e4 !important;
}
/* Dark */
.badge.badge-dark{
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
/* Light */
.badge.badge-light{
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}
/* Pink */
.badge.badge-pink{
    background-color: #fdf0f7 !important;
    color: #c0456a !important;
    border: 1px solid #f5c6dc !important;
}
/* Purple */
.badge.badge-purple{
    background-color: #ede9fe !important;
    color: #4c1d95 !important;
    border: 1px solid #c4b5fd !important;
}
/* Orange */
.badge.badge-orange{
    background-color: #ffedd5 !important;
    color: #9a3412 !important;
    border: 1px solid #fdba74 !important;
}
/* Indigo */
.badge.badge-indigo{
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
    border: 1px solid #a5b4fc !important;
}
/* ── Action buttons (common) ── */
.so-btn {
    /* NOT !important: a stylesheet !important beats a normal inline style, so
       `display: inline-flex !important` here overrode both style="display:none"
       and jQuery's .hide() - any .so-btn that a page shows/hides conditionally
       (the Cancel / Submit pair on beat_order_cum_delivery_list.ejs) would have
       been stuck visible. style.css loads after bootstrap.min.css and
       app.min.css, so .so-btn still wins over .btn without it. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    line-height: 1 !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.so-btn > i { font-size: 15px; line-height: 1; }

/* Primary action (Add) - solid purple */
.so-btn-primary {
    background: var(--so-purple) !important;
    border-color: var(--so-purple) !important;
    color: #fff !important;
}
.so-btn-primary:hover,
.so-btn-primary:focus {
    background: var(--so-purple-d) !important;
    border-color: var(--so-purple-d) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(92,53,217,.28) !important;
}

/* Secondary action (Export) - outlined */
.so-btn-outline {
    background: #fff !important;
    border-color: #d0d8ee !important;
    color: #475569 !important;
}
.so-btn-outline:hover,
.so-btn-outline:focus {
    background: var(--so-purple-l) !important;
    border-color: var(--so-purple) !important;
    color: var(--so-purple) !important;
}

/* Success tone (optional alternative) */
.so-btn-success {
    background: #0f9d6e !important;
    border-color: #0f9d6e !important;
    color: #fff !important;
}
.so-btn-success:hover,
.so-btn-success:focus {
    background: #0b7f58 !important;
    border-color: #0b7f58 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(15,157,110,.28) !important;
}

.so-btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.so-btn-danger:hover,
.so-btn-danger:focus {
    background: #bb2d3b !important;
    border-color: #bb2d3b !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.28) !important;
}

/* Bootstrap .btn-success refresh (common) */
.btn-success {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #fff;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-success:hover {
    background-color: #15803d;
    border-color: #15803d;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.45);
    transform: translateY(-1px);
    color: #fff;
}
.btn-success:focus,
.btn-success:active,
.btn-success:not(:disabled):not(.disabled):active {
    background-color: #15803d;
    border-color: #15803d;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

/* ── Export button (common) ──
   Single hook for every report page: the Export button always carries
   id="exportexcel". Geometry is matched to .so-filter-btn (app.min.css)
   so Export and Filter sit level in the same toolbar. !important is
   required because most controllers emit the button with an inline
   style="height:38px;font-size:18px".
   NOTE: display is deliberately left alone — some controllers emit this
   button with an inline display:none and reveal it from JS after a
   filter runs. Setting display here would force those visible. */
#exportexcel,
.so-export-btn,
.export-btn .btn-success {
    /* 36px, not 38px. .so-filter-btn's own rule says 38px but every page
       overrides it inline to 36px, and .so-btn (Add / Import / the rest of
       the toolbar) is 36px too - so Export at 38px was the only thing in the
       row standing 2px proud of its neighbours. Matching the height the
       siblings actually render at is what makes the row sit level.
       line-height drops to 34px to stay inside the 36px box once the 1px
       borders are counted; the .so-btn variants are inline-flex and centre
       themselves, so this only matters for the plain-button pages. */
    height: 36px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 34px !important;
    letter-spacing: 0.2px;
    border-radius: 7px !important;
    /* Gradient in Export's own green family, matching the 135deg treatment
       .so-filter-btn uses (app.min.css). Until now this rule set no background
       at all, so the button fell through to .btn-success's flat #16a34a and sat
       next to a gradient Filter button looking unfinished.
       !important is needed twice over: most controllers emit the button with an
       inline style, and .btn-success:hover sets background-color, which would
       otherwise repaint the colour layer under the gradient. */
    background: linear-gradient(135deg, #15803d, #16a34a) !important;
    color: #fff !important;
    border: 1px solid #16a34a !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
    white-space: nowrap;
}
#exportexcel:hover,
#exportexcel:focus,
.so-export-btn:hover,
.so-export-btn:focus,
.export-btn .btn-success:hover,
.export-btn .btn-success:focus {
    /* Same lift .so-filter-btn:hover uses, so the two move alike. */
    background: linear-gradient(135deg, #126c34, #15803d) !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.45);
    border-color: #15803d !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Excel icon — a sheet with an X, drawn as an inline SVG data URI so it
   arrives through CSS and no controller has to emit an <i> or <svg>.
   The stroke is baked white (%23fff) because a background-image cannot
   read currentColor; it only ever sits on the solid green button.
   Hidden from assistive tech automatically: ::before content:'' carries
   no accessible name, so the button still reads simply as "Export". */
#exportexcel::before,
.so-export-btn::before,
.export-btn .btn-success::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 7px;
    vertical-align: -3px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13l4 5'/%3E%3Cpath d='M13 13l-4 5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ── Edit / View toggle button (common) ──
   Blue, so "change this record" never reads as the same action as the green
   Add / Submit / Export beside it. Same 135deg gradient and geometry as
   .so-export-btn so the toolbar sits level.
   Keyed off the hooks the pages already use - .editbutton (the EDIT/VIEW
   pair on the *_add pages), .edit_btn, .edit-all, .edit-btn and the cheque
   list .view-btn - so no view needs touching; .so-edit-btn is the class for
   new markup, and .so-view-btn the same look for view switches
   (Summary / Detail on expense_list). Scoped to button so icon hooks that share these names
   (<i class="... edit-btn">) are untouched. !important for the same reason
   as Export: many of these carry inline height:38px;font-size:18px.
   display is left alone - most of these are shown/hidden from JS.
   Two hooks are reused for non-edit buttons, so they are excluded:
   .viewbutton.editable is the Cancel in the price-group edit footers, and
   .edit-all.btn-dark is BACK on the purchase order pages.
   Row buttons (.so-btn-row) are excluded too: inventory_master_list's row
   EDIT carries .editbutton, and this toolbar-size rule was blowing it up to a
   36px blue button inside the table row. */
.so-edit-btn,
.so-view-btn,
button.editbutton:not(.so-btn-row),
button.viewbutton:not(.editable):not(.so-btn-row),
button.edit_btn:not(.so-btn-row),
button.edit-all:not(.btn-dark):not(.so-btn-row),
button.edit-btn:not(.so-btn-row),
button.view-btn:not(.so-btn-row) {
    height: 36px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 34px !important;
    letter-spacing: 0.2px;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
    white-space: nowrap;
}
.so-edit-btn:hover,
.so-edit-btn:focus,
.so-view-btn:hover,
.so-view-btn:focus,
button.editbutton:not(.so-btn-row):hover,
button.editbutton:not(.so-btn-row):focus,
button.viewbutton:not(.editable):not(.so-btn-row):hover,
button.viewbutton:not(.editable):not(.so-btn-row):focus,
button.edit_btn:not(.so-btn-row):hover,
button.edit_btn:not(.so-btn-row):focus,
button.edit-all:not(.btn-dark):not(.so-btn-row):hover,
button.edit-all:not(.btn-dark):not(.so-btn-row):focus,
button.edit-btn:not(.so-btn-row):hover,
button.edit-btn:not(.so-btn-row):focus,
button.view-btn:not(.so-btn-row):hover,
button.view-btn:not(.so-btn-row):focus {
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Form modal (common) ──
   Puts the filter popup's .fp-head / .fp-body / .fp-footer (app.min.css)
   inside an ordinary Bootstrap .modal, so add/edit dialogs match the filter
   popup while keeping .modal('toggle') and data-dismiss. Add .so-modal to
   the .modal element. First used by the General Visit add/edit dialog. */
.so-modal .modal-dialog { max-width: 460px; }
.so-modal .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    /* visible, not hidden: select2 opens its dropdown inside the content box */
    overflow: visible;
}
.so-modal .fp-body .light-dark { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 0; }
.so-modal .fp-body .form-control { height: 36px; border: 1.5px solid #dde2ef; border-radius: 7px; }
.so-modal .fp-body .form-control:focus { border-color: var(--so-purple); box-shadow: 0 0 0 3px rgba(92, 53, 217, 0.12); }
/* select2 single-selects draw their own box, so .form-control above never reaches them */
.so-modal .select2-container--default .select2-selection--single {
    height: 36px;
    border: 1.5px solid #dde2ef;
    border-radius: 7px;
}
.so-modal .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 33px; padding-left: 12px; }
.so-modal .select2-container--default .select2-selection--single .select2-selection__arrow { height: 33px; }
.so-modal .select2-container--default.select2-container--focus .select2-selection--single,
.so-modal .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--so-purple); }
.so-modal .select2-container--disabled .select2-selection--single { background: #f1f5f9; }
.so-modal .message .alert { margin-bottom: 12px; border-radius: 8px; }

/* ── Warning / error dialog (common) ──
   Driven by public/javascripts/so-alert.js, which replaces window.alert.
   z-index sits above .loading (1061) and the progress overlay (1065): a
   message must be readable even when one of those is still on screen. */
.so-alert {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1070;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 60, .45);
    opacity: 0;
    transition: opacity .18s ease;
}
.so-alert.is-open { opacity: 1; }
.so-alert-panel {
    width: 420px;
    max-width: calc(100vw - 36px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(10, 15, 40, .35);
    transform: translateY(8px) scale(.98);
    transition: transform .22s cubic-bezier(.34, 1.36, .64, 1);
    overflow: hidden;
}
.so-alert.is-open .so-alert-panel { transform: none; }
.so-alert-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
}
.so-alert-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
}
.so-alert-title { flex: 1; font-size: 15px; font-weight: 700; color: #1a2340; }
.so-alert-close {
    flex: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.so-alert-close:hover { background: #f1f5f9; color: #475569; }
.so-alert-msg {
    padding: 0 18px 18px 70px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    /* Backend messages often carry their own line breaks. */
    white-space: pre-line;
    word-break: break-word;
    max-height: 50vh;
    overflow-y: auto;
}
.so-alert-foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid #eef1f8;
    background: #fafbff;
}
.so-alert-ok {
    height: 36px;
    padding: 0 26px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    cursor: pointer;
}

/* Per-type accents. data-type is set by so-alert.js before opening. */
.so-alert[data-type="warning"] .so-alert-icon { background: #fff4e0; color: #b45309; }
.so-alert[data-type="warning"] .so-alert-ok   { background: linear-gradient(135deg, #d97706, #f59e0b); }
.so-alert[data-type="error"]   .so-alert-icon { background: #fee2e2; color: #b91c1c; }
.so-alert[data-type="error"]   .so-alert-ok   { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.so-alert[data-type="info"]    .so-alert-icon { background: #e7ecff; color: #3730a3; }
.so-alert[data-type="info"]    .so-alert-ok   { background: linear-gradient(135deg, var(--so-purple-d, #4a28b8), var(--so-purple-m, #7b5ce5)); }
/* "success" is the "it worked" type - soAlert.success(). alert() can never
   produce it (it has no idea what the outcome was), so success branches call
   soAlert.success directly. */
.so-alert[data-type="success"]  .so-alert-icon { background: #d1fae5; color: #065f46; }
.so-alert[data-type="success"]  .so-alert-ok   { background: linear-gradient(135deg, #059669, #10b981); }
/* "question" is the confirm type - soAlert.confirm(). Same panel, plus the
   Cancel button, which is hidden for the plain alert types. */
.so-alert[data-type="question"] .so-alert-icon { background: #e7ecff; color: #3730a3; }
.so-alert[data-type="question"] .so-alert-ok   { background: linear-gradient(135deg, var(--so-purple-d, #4a28b8), var(--so-purple-m, #7b5ce5)); }

/* Shown only while a confirm is on screen (so-alert.js toggles it). */
.so-alert-cancel {
    display: none;
    height: 36px;
    margin-right: 10px;
    padding: 0 22px;
    border: 1px solid #d9dEEB;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #475569;
    cursor: pointer;
}
.so-alert-cancel:hover { background: #f1f5f9; color: #1a2340; }
.so-alert.is-confirm .so-alert-cancel { display: inline-block; }

@media (max-width: 480px) {
    .so-alert-msg { padding-left: 18px; }
}

/* ── Determinate progress overlay (common) ──
   Driven by public/javascripts/so-progress.js. Sits above .loading's z-index
   (1061) so the two can never fight if a page shows both. */
.so-progress {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1065;
    align-items: center;
    justify-content: center;
    background: radial-gradient(rgba(20, 20, 20, .72), rgba(0, 0, 0, .82));
    opacity: 0;
    transition: opacity .2s ease;
}
.so-progress.is-open { opacity: 1; }
.so-progress-panel {
    width: 340px;
    max-width: calc(100vw - 40px);
    padding: 22px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(10, 15, 40, .35);
    text-align: center;
}
.so-progress-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a93a8;
}
.so-progress-pct {
    margin: 4px 0 12px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a2340;
    font-variant-numeric: tabular-nums;
}
.so-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #eef1f8;
    overflow: hidden;
}
.so-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--so-purple-m, #7b5ce5), #16a34a);
    transition: width .12s linear;
}
.so-progress-label {
    margin-top: 11px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    min-height: 16px;
}

/* ── Dark page header (common) ──
   Replaces the white strip with a hairline border that titled the tally export
   pages. Dark navy, same family as the report table header (#1a2340), so the
   page reads as one system. The accent bar on the left picks up the purple the
   filter/primary actions use. */
.so-page-head {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 18px;
    margin-top: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a2340 0%, #33406e 100%);
    box-shadow: 0 2px 10px rgba(26, 35, 64, 0.18);
}
.so-page-head::before {
    content: '';
    flex: none;
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: var(--so-purple-m, #7b5ce5);
}
.so-page-head-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
/* Overrides .page-title, which the markup keeps so nothing else that targets
   it breaks - it carries its own font-size and a tall line-height. */
.so-page-head .page-title,
.so-page-head .so-page-title {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #fff !important;
}
/* A page-level action sitting at the right end of the dark header (the
   "More info" trigger on Tally Export). margin-left:auto so it holds the
   far edge however long the title is. Replaces a bare floated <i>, which
   was a 14px glyph with no hit target of its own. */
.so-page-head-action {
    margin-left: auto;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.so-page-head-action:hover,
.so-page-head-action:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.40);
    color: #fff;
}
.so-page-head-action:focus-visible {
    outline: 2px solid var(--so-purple-m, #7b5ce5);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .so-page-head { height: auto; padding: 10px 14px; }
    .so-page-head .page-title,
    .so-page-head .so-page-title { font-size: 13px !important; }
}

/* ── Export section panel (common) ──
   For the tally export pages, whose sections (Ledger, Sales Invoice, Sales
   Return, ...) previously sat loose on the page background with no container.
   One card, sections divided by rules.

   Fixed 500px tall. The card scrolls internally rather than growing, so the
   page below it never shifts: narrowing the window makes .so-export-row wrap
   its fields onto more lines, which makes the content taller, and that extra
   height is absorbed by this scroll area instead of pushing the page down.
   overflow-y:auto replaces the plain overflow:hidden that was only here to
   clip the border-radius - a scroll container still clips to it. */
.so-export-card {
    background: #fff;
    border: 1px solid var(--so-border);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(30, 60, 140, 0.05);
    height: 600px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 8px;
    /* Belt and braces for the resize case: a row whose fields cannot wrap any
       further (a long select2, a wide date field) scrolls sideways inside the
       row rather than widening the card past its column. */
    overscroll-behavior: contain;
}
/* Sizes to its content, capped. The fixed 500px above exists so the pages
   with five sections never shift what sits below them; a page with three
   sections and nothing below the card (Tally Export) just gets ~220px of
   dead white instead. Same scroll cap, no dead space. */
.so-export-card--fit {
    height: auto;
    max-height: 500px;
}

/* Keep the scrollbar from competing with the card's own border radius. */
.so-export-card::-webkit-scrollbar { width: 10px; }
.so-export-card::-webkit-scrollbar-track { background: transparent; }
.so-export-card::-webkit-scrollbar-thumb {
    background: #d7dcec;
    border: 3px solid #fff;
    border-radius: 8px;
}
.so-export-card::-webkit-scrollbar-thumb:hover { background: #bcc4dc; }
.so-export-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef1f8;
}
.so-export-row:last-child { border-bottom: none; }
.so-export-row:hover { background: #fcfdff; }
.so-export-title {
    flex: 1 1 190px;
    min-width: 170px;
    align-self: center;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a2340;
    letter-spacing: 0.2px;
}
.so-export-field {
    flex: 0 1 175px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}
/* Pushes the Export button to the far edge however many fields precede it. */
.so-export-actions { margin-left: auto; align-self: flex-end; }

/* Resize behaviour. The fields shrink down to their min-width first; past that
   they stack, so a narrow window produces a taller card body that scrolls
   inside the fixed 500px rather than overflowing it. */
@media (max-width: 991px) {
    .so-export-title { flex: 1 1 100%; }
}
@media (max-width: 767px) {
    .so-export-row { gap: 10px; padding: 12px 14px; }
    .so-export-field { flex: 1 1 100%; min-width: 0; }
    .so-export-actions { margin-left: 0; width: 100%; }
    .so-export-actions .so-export-btn { width: 100%; }
}

/* ── Export result strip (common) ──
   Replaces the grey <pre> + grey button that showed a generated file name.
   Full width, so it drops onto its own line under the row's fields. */
.so-filestrip {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding: 9px 12px;
    border: 1px solid #cdebd9;
    border-radius: 9px;
    background: #f2fcf6;
}
.so-filestrip-icon { flex: none; display: flex; color: #16a34a; }
.so-filestrip-body { flex: 1; min-width: 0; }
.so-filestrip-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
}
/* Still a <pre> in the markup - the page's JS reads it with .text() - so the
   monospace default and block margins are reset back to the body font here. */
.so-filestrip-name {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #15803d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.so-filestrip-name:hover { text-decoration: underline; }
.so-filestrip-btn {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cdebd9;
    border-radius: 8px;
    background: #fff;
    color: #15803d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.so-filestrip-btn:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* ── File drop field (common) ──
   Replaces the native <input type="file"> chrome, which cannot be styled and
   renders as the OS "Choose file / No file chosen" control regardless of the
   design around it. The real input stays in the DOM - visually hidden but
   focusable - so FormData, the accept= attribute and any existing change
   handlers keep working untouched. The wrapper is a <label for=...>, so a
   click anywhere in the zone opens the picker with no JS at all. */
.so-filedrop {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 20px 14px;
    border: 1.5px dashed #d0d8ee;
    border-radius: 10px;
    background: #f8f9ff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.so-filedrop:hover,
.so-filedrop:focus-within,
.so-filedrop.is-dragover {
    border-color: var(--so-purple);
    background: var(--so-purple-l);
}
/* Visually hidden, NOT display:none - a hidden input is still submitted and
   still focusable this way, which display:none would cost us. */
.so-filedrop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.so-filedrop-icon {
    display: flex;
    justify-content: center;
    color: var(--so-purple);
    margin-bottom: 8px;
}
.so-filedrop-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.so-filedrop-title span { color: var(--so-purple); text-decoration: underline; }
.so-filedrop-hint {
    font-size: 11px;
    color: #8a93a8;
    margin-top: 4px;
}

/* Chosen state: the prompt swaps out for the file name. */
.so-filedrop.has-file {
    border-style: solid;
    border-color: #16a34a;
    background: #f2fcf6;
}
.so-filedrop .so-fileinfo { display: none; }
.so-filedrop.has-file .so-fileinfo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.so-filedrop.has-file .so-filedrop-prompt { display: none; }
.so-fileinfo-icon { color: #16a34a; display: flex; }
.so-fileinfo-text { text-align: left; min-width: 0; }
.so-fileinfo-name {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    word-break: break-all;
}
.so-fileinfo-size { font-size: 11px; color: #64748b; }
.so-file-clear {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.so-file-clear:hover { color: #dc2626; background: #fee2e2; }

/* ── Text alignment utilities (common) ── */
.left,
th.left, td.left   { text-align: left !important; }
.center,
th.center, td.center { text-align: center !important; }
.right,
th.right, td.right { text-align: right !important; }

/* ── Filter popup: double-width field ──
   .fp-grid (app.min.css) is a fixed 3-column grid. A few of the converted
   filters have one field that was wider than the others in the old dropdown
   (Product Name on the inventory filters was col-lg-8 next to a col-lg-4);
   this keeps that proportion instead of squeezing a long product name into a
   third of the row. Collapses back to a single cell at the width where
   .fp-grid itself drops to one column. */
.fp-span-2 { grid-column: span 2; }
@media (max-width: 540px) { .fp-span-2 { grid-column: auto; } }

/* ── Filter popup: select2 dropdowns ──
   select2 appends its dropdown to <body>, not next to the field, so it is a
   sibling of the popup rather than a child of it. Its own z-index is 1051
   (select2.min.css) and .so-filter-popup is 1056 (app.min.css), so inside a
   filter popup the open list was painted BEHIND the dialog - visible against
   the page but unclickable (stock_audit_validation_report_ai, Inventory Name).
   Lifted just above the popup; the .select2-container--open scope keeps this
   limited to a dropdown that is actually open.

   !important is required: select2.min.css loads AFTER style.css in header.ejs,
   so at equal specificity it would otherwise win.

   1060 also clears Bootstrap's modal (1050/1055), so select2 inside a modal
   keeps working. */
.select2-container--open .select2-dropdown { z-index: 1060 !important; }

/* Beat Name badge */
.badge-beat {
    background: #eef0ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}


/* Pagination Style New Oringinal was in bootstarp.min.css*/
.pagination_height .custom-select {
  border: 1.5px solid #d0d8ee;
  border-radius: 7px;
  font-size: 13px;
  height: 34px;
}
.page-item.active .page-link { 
  background: var(--po-brand) !important;
  color: #fff !important;
  border-color: var(--po-brand) !important;
}
.navication-layout .pagination{
  display:flex;
  gap:4px;
  list-style:none;
  padding:0;
  margin:0;
  align-items:center;
  flex-wrap:wrap;
}
.navication-layout .pagination {
    display: flex; gap: 4px; list-style: none; padding: 0; margin: 0;
    align-items: center; flex-wrap: wrap;
}
.navication-layout .pagination .page-item { margin: 0; }
.navication-layout .pagination .page-item .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 32px; padding: 5px 12px;
    border-radius: 7px !important; border: 1.5px solid var(--so-border) !important;
    background: #fff !important; font-size: 12px !important; font-weight: 600;
    color: var(--so-text-dim) !important; cursor: pointer; transition: all 0.13s;
    text-decoration: none; line-height: 1; box-shadow: none !important;
}
.navication-layout .pagination .page-item .page-link:hover {
    border-color: var(--so-purple) !important; color: var(--so-purple) !important;
    background: var(--so-purple-l) !important;
}
.navication-layout .pagination .page-item.active .page-link {
    background: var(--so-purple) !important; color: #fff !important;
    border-color: var(--so-purple) !important;
}


.page-likne-new{
  position: relative;
  display: block;
  margin-left: -1px;
  line-height: 2.2;
  color: #414d5f;
  background-color: #fff;
  border: 1px solid #dee2e6;
  width: 29px;
  text-align: center;
}

.page-item.active .page-likne-new{ 
  z-index: 1;
  color: #fff;
  background-color: #188ae2;
  border-color: #188ae2;
}



/* ─────────────────────────────────────────────────────────────────────
   LIST TOOLBAR  (.so-toolbar)

   The right-hand action cluster on a list page: Refresh / Upload Log /
   Import / Export / Add, plus the column-settings kebab that
   plugins/table-settings.js INJECTS between them at runtime.

   Spacing used to be one `ml-2` per button, which has two problems.
   The small one is that it is repeated on every button and drifts. The
   real one is the injected kebab: it carries its own margin-left from
   table_settings.css, so the rhythm of the row depended on two files
   agreeing on a number, and a button rendered first in the row still
   got a left margin it did not want.

   A flex `gap` fixes both. It applies between every pair of children,
   including ones added later by script, and it never adds space at the
   ends - so the buttons sit on one rhythm no matter what is inserted
   or hidden. The kebab's own margin is zeroed inside here so the two
   do not add up.
   ───────────────────────────────────────────────────────────────────── */
.so-toolbar {
    display        : flex;
    align-items    : center;
    justify-content: flex-end;
    flex-wrap      : wrap;
    gap            : 10px;
}
.so-toolbar > * { margin-left: 0 !important; }
/* Both sides: table_settings.css gives .ts-before-export margin-right:8px,
   which on top of the gap made kebab -> Export 18px against 10px elsewhere. */
.so-toolbar .ts-open-btn { margin-left: 0; margin-right: 0 !important; }
/* An <a> wrapping a button must not add its own box to the rhythm. */
.so-toolbar > a { display: inline-flex; }

/* ─────────────────────────────────────────────────────────────────────
   ROW ACTION BUTTON  (.so-btn-row)

   For a button that lives INSIDE a table row (EDIT, Map), not in the
   toolbar. These were .btn-primary / .btn-success btn-sm - Bootstrap's
   solid blue and solid green - which put the two loudest colours on
   the page in the column furthest right, next to the status pills that
   are already carrying colour for a reason. A row full of solid
   buttons reads as the most important thing in the table, and it is
   the least.

   Quiet by default, brand-coloured on hover: the action is still
   obvious when you reach for it and silent when you are reading the
   data. Sized to the row (28px), not to the toolbar (36px).
   ───────────────────────────────────────────────────────────────────── */
.so-btn-row {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    gap            : 5px;
    height         : 28px;
    padding        : 0 13px;
    border         : 1px solid #ded7f8;
    border-radius  : 7px;
    background     : #fff;
    color          : #5c35d9;
    font-size      : 11px;
    font-weight    : 700;
    letter-spacing : .4px;
    text-transform : uppercase;
    white-space    : nowrap;
    cursor         : pointer;
    transition     : background .15s, border-color .15s, color .15s;
}
.so-btn-row:hover,
.so-btn-row:focus {
    background  : #f3eeff;
    border-color: #5c35d9;
    color       : #3f1fae;
    text-decoration: none;
}
.so-btn-row + .so-btn-row { margin-left: 6px; }

/* ── Inline-SVG Tabler icons (common) ──
   The sidebar's icon pattern, made page-wide:
       <i class="ti ti-logout" data-svg><svg class="sm-ic" ...>...</svg></i>
   The SVG paints with the first frame (no wait for the tabler-icons font) and
   follows the text colour through currentColor. tabler-icons.min.css is loaded
   on every page, so the font glyph has to be suppressed or the icon would be
   drawn twice. sidebar_redesign.css does the same thing scoped to #side-menu;
   these are the page-wide equivalents. An attribute selector, not :has(> svg),
   for the same reason given there. */
i[data-svg]::before {
    content: none !important;
}
i[data-svg] {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
i[data-svg] > .sm-ic {
    width: 1em;          /* = the <i>'s font-size, so it scales with the button */
    height: 1em;
    display: block;
    flex-shrink: 0;
}
.so-btn-row > i[data-svg] { font-size: 14px; }

.so-btn-row.history-btn,
.so-btn-row.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

/* History - Purple */
.so-btn-row.history-btn {
    color: #7654b8 !important;
    background: #f1ebfc;
    border: 1px solid #dfd1f7;
}

.so-btn-row.history-btn:hover {
    color: #fff !important;
    background: #7654b8;
    border-color: #7654b8;
}

/* View - Blue */
.so-btn-row.view-btn {
    color: #2878c7 !important;
    background: #eaf3fc;
    border: 1px solid #cbdff5;
}

.so-btn-row.view-btn:hover {
    color: #fff !important;
    background: #2878c7;
    border-color: #2878c7;
}

/* SVG Icon */
.so-btn-row.history-btn svg,
.so-btn-row.view-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

#sidebar-menu > .organization-switch.user-box {
      position: sticky;
      top: 0;
      z-index: 10;
      padding-bottom: 14px !important;
      margin-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
#sidebar-menu .sm-org-logo-wrap,
.left-side-menu .sm-org-logo-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.sm-org-logo-img {
      width: 185px;
      height: 70px;
      max-width: 100%;
      object-fit: contain;
      object-position: center;
      background: transparent !important;
      border-radius: 6px;
      box-sizing: border-box;
      display: block;
      margin: 0 auto;
}
.sm-org-logo-img.sm-logo-rect   { width: 172px; height: 70px; object-fit: fill; }
.sm-org-logo-img.sm-logo-wide   { width: 172px; height: auto; max-height: 80px; object-fit: contain; }
.sm-org-logo-img.sm-logo-square { width: 100px; height: 80px; object-fit: fill; }
.sm-org-logo-img.sm-logo-tall   { width: auto;  height: 70px; max-width: 70px; }
body.enlarged .sm-org-logo-img  { max-height: 22px !important; height: 22px !important; width: 40px !important; }
body.enlarged .sm-org-logo-img.sm-logo-square,
body.enlarged .sm-org-logo-img.sm-logo-tall { width: 22px !important; max-width: 22px !important; }

