/* MARKER */
/* CONTEXT MENU */
/* LEFT pANEL */
/* RIGHT pANEL */
/* DETAIL pANEL */
/* Map Debtor List */

:root {
    --clreleased: lightpink;
    --clreleasedsnoozed: rosybrown;
    --clonhold: darkgrey;
    --clpickednotrip: lightskyblue;
    --clpickednotripsnoozed: steelblue;
    --clprintedothertrip: lightgreen;
    --clcurrenttrip: gold;
    --clnolatlng: crimson;
    --clpartialpick: fuchsia;
    --clpartialtrip: darkorange;
}    

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family:Roboto;
}
html:has(#map-body){
   max-width:1920px;
}
href{
    color:blue;
    text-decoration: underline;
    cursor:pointer;
}

.wrapper{
    display:contents;
}

#empLogin-dialog{
   position:fixed;
   z-index:9999;
   top:40%;
   left:50%;
   transform:translate(-50%,-50%);
   margin:0;
}
/*================================================*/
#map-body{
    font-size:0.9em;   
    position:relative;
    width:100%;
}


#map {
    height: 100%;
    
}

#map-title{
    position:fixed;
    top:5px;
    left:50%;
    transform:translate(-50%);
    z-index:9;
    border:1px solid black;   
    padding:5px 1ch;
    border-radius:8px;
    background: linear-gradient(180deg, #ffff 24.61%, #d9d9d9 94.28%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.35);        
    display:flex;
    font-size:20px;
}
#map-title>img{
    height:30px;
}
#map-title div{
    margin-left:3px;
    display:inline-block;
    font-size:0.8em;
}
#map-title-reload-button{
    border-radius: 100%;
    border:none;
    margin-left:1ch;
    cursor:pointer;
}


@media only screen and (max-width:700px){
    #map-title{
        left:60%;
        font-size:0.9em;
    }
    #map-title>img{
        height:20px;
    }

}

.hidden{
    display:none !important;
}

.lngLat{
    cursor:pointer;
}

.close{
   position:absolute;
   top: 3px;
   right:10px;
   font-size: 25px;
   cursor:pointer;
}
._minimize{
   position:absolute;
   top: 3px;
   right:5px;
   cursor:pointer;
    width: 1.5ch;
    height: 1.5ch;
    min-height:20px;
    min-width: 20px;
    background-image: url('../img/caret-up-square.png');
    background-size: contain;
    background-repeat: no-repeat;    
}

._minimized{
    max-height:2ch !important;
    overflow: hidden !important;   
    border-bottom: 2px dashed blue !important;;
    box-shadow: 0px 5px 5px 5px #0000ff50 !important;;
    opacity:0.8;
}
._minimized ._minimize{
    background-image: url('../img/caret-down-square.png');
}


.right{
    float:right;
    text-align:right;
}

warning{
   background:darkorange;
   color:white;
   padding:0 1ch;
   letter-spacing: 2px;
   font-size: .93em;
}
   warning:empty{
      padding:0;
   }

#tooltip-container{
   display:block;
   position:fixed;
   bottom:1%;
   left:1%;
   background-color:white;
   padding:8px;
   border: 1px solid black;
   font-size:1rem;
   color:black;
   font-weight:bold;
   z-index:9999;
   background: linear-gradient(180deg, #fcfcfc 24.61%, #d8d8d8 94.28%);
   box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
   -webkit-user-select: none;
   user-select: none;     
}

.glowing{
  -webkit-animation: glowing 1500ms infinite;
  -moz-animation: glowing 1500ms infinite;
  -o-animation: glowing 1500ms infinite;
  animation: glowing 1500ms infinite;   
}
.glow{
  -webkit-animation: glowing 1000ms ease;
  -moz-animation: glowing 1000ms ease;
  -o-animation: glowing 1000ms ease;
  animation: glowing 1000ms ease;   
}
/* .glow:hover{
   animation-play-state: paused;
} */
@-webkit-keyframes glowing {
  0% {  -webkit-box-shadow: 0 0 3px #B20000; }
  50% {  -webkit-box-shadow: 0 0 40px #FF0000; }
  100% {  -webkit-box-shadow: 0 0 3px #B20000; }
}
@-moz-keyframes glowing {
  0% {  -moz-box-shadow: 0 0 3px #B20000; }
  50% {  -moz-box-shadow: 0 0 40px #FF0000; }
  100% {  -moz-box-shadow: 0 0 3px #B20000; }
}
@-o-keyframes glowing {
  0% {  box-shadow: 0 0 3px #B20000; }
  50% {  box-shadow: 0 0 40px #FF0000; }
  100% {  box-shadow: 0 0 3px #B20000; }
}
@keyframes glowing {
  0% {  box-shadow: 0 0 3px #B20000; }
  50% {  box-shadow: 0 0 40px #FF0000; }
  100% {  box-shadow: 0 0 3px #B20000; }
}
att{
    color:grey;
    font-size:12px;
/*     display:block; */
    margin-top:5px;
}

.debtor-info-block attention{
    background:yellow;
}
.debtor-info-block dayoff{
    background:grey;    
    color:white;
    padding:0 1ch;
}

.address-container{
    border:1px solid black;
}
.address-container address{
    border:1px solid lightgrey;
    padding-left:2px;
    cursor:pointer;
    font-size:0.9em;
}
    .address-container address:before{
        content:"- ";
    }

placeRef{
    display:block;
    cursor:pointer;
}
placeref.placeRefSelected{
    color:blue;
    text-decoration: underline;
}

/*---------------------------------------*/
/* ..MARKER */
/*---------------------------------------*/


#markerLH{
    height:28px;
}

/*parent of marker.content:*/
/* gmp-advanced-marker:has(.place){
    z-index:1 !important;;
}
 */
.place {/*5565*/
    background-color: var(--clpickednotrip);
    border:1px solid grey;
    border-radius: 4px;
    color: #FFFFFF;
    color: black;
    font-size: 11px;
    padding: 5px 7px;
    position: relative;
    min-width:50px;
    min-height:3.8ch;
    max-width:50px;
    max-height: 3.8ch;
    word-break:  break-word;
    cursor:pointer;
    pointer-events: auto; /*overwrite inheritance*/
    text-align: center;
    vertical-align: middle;
    
/*     display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

    .place.overlapped{
        border:1px solid crimson !important;;
    }

    .place>companyname{
        display:none;
    }

    /*.place z-index*/
    gmp-advanced-marker:has(.place[data-tripno]){
        z-index:0;
    }
    #map.onTop-released gmp-advanced-marker:has(.place.released.snoozed){
        z-index:99 !important;;
    }
    #map.onTop-released gmp-advanced-marker:has(.place.released){
        z-index:999 !important;;
    }
    #map.onTop-released gmp-advanced-marker:has(.place.updated){
        z-index:1999 !important;;
    }
    #map.onTop-released gmp-advanced-marker:has(.place.glowing){
        z-index:4999 !important;;
    }
    #map gmp-advanced-marker:has(.place.selected[data-latlng][data-accno]){
        z-index:9999 !important;
    } 
    #map gmp-advanced-marker:has(div.place[data-latlng][data-accno]:hover){
        z-index:99999 !important;
    }

    #map-body.deliverymanager .place.snoozed{
        background-color:var(--clpickednotripsnoozed);    
    }

    #map-body.deliverymanager .place:not(.currentTrip):not(.partialTrip)[data-tripno]{
        background-color:var(--clprintedothertrip);
    }

    #map-body.deliverymanager .place:not(.currentTrip).released{
        background-color:var(--clreleased);
    }
    #map-body.deliverymanager .place:not(.currentTrip).released.snoozed{
        background-color:var(--clreleasedsnoozed);
    }

    .place .selected-only{
        display:none;
    }


.place::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black;
}

/* .place shortname{
    white-space: nowrap;
  overflow: hidden;
  display: block;
}
 */

.place:hover:not(.selected){
    box-shadow: 0px 0px 4px 6px palegoldenrod ;            
}

.place>shortname[data-seq]::before{
    content:attr(data-seq);
    padding:0 2px;
    margin-right:2px;
    background:yellow;
}


.place.selected{
    background-color: white !important;;
    opacity:1;
    color:black;
    border:2px solid blue;
    max-width:unset;
    max-height:unset;
    width:150px;
    font-size:15px;
}
.place.selected .selected-only{
    display:block;
}

.place.updated{
    font-weight:bold;
    text-decoration:underline;
}


.place.vtrackStop{
    background-color:lightyellow;
    border-radius:100%;
    opacity:0.95;
    border:1px solid grey;
    /* Set the rotation point to the bottom edge */
  transform-origin: bottom;
  /* Flip the entire container upside down */
  transform: rotateX(180deg);
  /* Optional: add perspective for a 3D effect */
  /* perspective: 1000px; */
}
.place.vtrackStop>div{
    transform: rotateX(180deg);
}

.place.vtrackStop.notMatchingDestination{
    background-color:orange;
    border:1px solid crimson;
}
.place.vtrackStop.isLeeHin{
    background-color:lightgrey;
    border:1px solid grey;
}
.place.vtrackLastLatLng{
    background-color:limegreen;

}
.place.vtrackLastLatLng:hover{
    opacity:0.3;
}
gmp-advanced-marker:has(.place.vtrackStop){
    z-index:19 !important;; /*to override google inline z-index*/
}

.place.vtrackStop::after{
    border-top:8px solid lightyellow;
}
.place.vtrackStop.notMatchingDestination::after{
    border-top:8px solid orange;
}
.place.vtrackStop.isLeeHin::after{
    border-top:8px solid grey;
}
.place.vtrackLastLatLng::after{
    border-top:8px solid limegreen;
    
}

#map.ordering .place:not(.ordering){
    background-color:darkgrey;
}

#map-body .place.currentTrip{
    background: var(--clcurrenttrip);
    border:1px solid black;
    opacity:1.0;
    /*! z-index: 9; */
}
.place.currentTrip::after {
  border-top: 8px solid darkgoldenrod;
}


#map-body .place.partialPick{
    box-shadow: 0px 0px 5px 2px var(--clpartialpick) ;
}


#map-body .place.partialTrip{
    box-shadow: 0px 0px 5px 2px var(--clpartialtrip);
}


/* #map-body .place.partialTrip:before{
    font-size:1.2em;
    position: absolute;
    left:calc(100% + 2px);
    top:1.2ch;
    content:"T";
    background:crimson;
    color:white;
    padding:3px 5px;
    border-radius:100%;
} */

/*hide rows*/
#map.hide-released .place.released:not(.currentTrip){
    display:none;
}
#map.hide-noTrip .place:not(.hasTrip):not(.released):not(.currentTrip){
    display:none;
}
#map.hide-otherTrip .place.hasTrip:not(.currentTrip){
    display:none;
}
#map.hide-current .place.currentTrip{
    display:none;
}

.ancestorOfMarkerSelected{
    /*! z-index:99; */
}

.place.selected>shortname{
    font-size:0.8em;
    text-decoration: underline;
}
.place.selected>companyname{
    display:block;
}


/*place weight*/
.place lh-tags{
    position:absolute;
    right:0px;
    bottom:0px;
}
.place lh-tags>weight{
    background:darkblue;
    color:white;
    padding:0 1px;
}
.place lh-tags>dayoff{
    background:grey;
    color:white;
    padding:0 1px;
}
.place.partialPick partialpick:after{
    content: "Ᵽ";
    background:var(--clpartialpick);
    color:white;
    padding:0 2px;
}

/* deliverymanager picking progress chip: top right of the place (lhmapKerja.js mapPickingChipRender) and one per
   invoice of the loaded trip in #map-picking-trip-strip (mapPickingTripStripRender); hover = details */
pickchip{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    border:1.5px solid white;
    box-shadow:0 0 1px 1px rgba(0,0,0,0.5);
}
.place>pickchip{
    position:absolute;
    top:-5px;
    right:-5px;
    z-index:1;
}
pickchip.green{background:#43a047;}   /*every printed page parked (or past its picking limit)*/
pickchip.yellow{background:#ffc107;}  /*picking on the way (yellow, not orange: orange was too close to red)*/
pickchip.red{background:#d32f2f;}     /*printed, no page claimed*/
pickchip.grey{background:#9e9e9e;}    /*picking list not printed*/
#map-picking-trip-strip{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    padding:4px 3px;
}
#map-picking-trip-strip:empty{display:none;}
#map-picking-trip-strip>pickchip{cursor:pointer;} /*click = click the invoice's place marker*/

.place.partialTrip partialtrip:after{
    content: "Ŧ";
    background:var(--clpartialtrip);
    color:white;
    padding:0 2px;
}


.place{
/*     box-shadow: 0px 0px 00px 15px saddlebrown;         */
    
}
.place.hasTrip{
/*     box-shadow: 0px 0px 00px 10px saddlebrown;         */
/*     font-size:1.3em; */
}
.place.currentTrip{
/*     box-shadow: 0px 0px 0px 5px saddlebrown;         */
/*     font-size:1.6em; */
}
/*---------------------------------------*/
/* ..CONTEXT MENU */
/*---------------------------------------*/
#map-contextMenu{
    position:fixed;
    top:50px; /*set by js*/
    left:0px;
    z-index:99;
    min-height:200px;
    min-width:100px;
    max-width:500px;
    background:white;
    box-shadow: 0px 0px 8px 1.5px lightgrey;
   padding:5px; 
}
#map-contextMenu>header{
    background:lightblue;
    min-height:20px;
    margin:-5px -5px 0 -5px;
    cursor:grab;
}
#map-contextMenu .close{
    top:-5px;
    font-size:20px;
}

/* right click on the bare map: lhmapKerja.js mapRightClickMenuShow, styled after google.com/maps' menu */
#map-rightclick-menu{
    position:fixed;
    z-index:100;
    min-width:180px;
    padding:6px 0;
    background:white;
    border-radius:8px;
    box-shadow:0 2px 6px 2px rgba(60,64,67,0.15), 0 1px 2px rgba(60,64,67,0.3);
    font:14px/20px Roboto, Arial, sans-serif;
    color:#202124;
    user-select:none;
    max-width:min(360px, calc(100vw - 8px));
}
#map-rightclick-menu .item{
    display:block;
    padding:6px 16px;
    cursor:pointer;
    white-space:nowrap;
    color:inherit;
    text-decoration:none;
}
#map-rightclick-menu .item:hover{
    background:#f1f3f4;
}
#map-rightclick-menu .item.address{
    white-space:normal;
}
#map-rightclick-menu .item.busy,
#map-rightclick-menu .note{
    padding:6px 16px;
    color:#5f6368;
    cursor:progress;
    background:none;
}
#map-rightclick-menu .note{
    cursor:default;
}
#map-rightclick-menu .sep{
    height:1px;
    margin:4px 0;
    background:#e8eaed;
}

#map-contextMenuMarkerContent{
    position:absolute;
    top:0; /*set by js*/
    left:0;
    color:blue;
    z-index:999;
    font-size:25px;
    transform: translate(-50%,-50%);
}
#map-contextMenuMarkerContent .link{
    color:blue;
    text-decoration: underline;
    cursor:pointer;
}
/*---------------------------------------*/
/* ..LEFT pANEL */
/*---------------------------------------*/
#map-left-panel{
    position:fixed;
    top:55px;
    left:10px;
    z-index:9;
    width:fit-content;
    max-height:90vh;
    max-width:250px;
    background:white;
    padding:5px; 
    line-height:1.5;
    box-shadow: 0px 0px 8px 1.5px lightgrey;
    overflow-y:scroll;
}
@media screen and (min-width: 1800px) {
  #map-left-panel {
    max-height:90vh;
  }
}

#map-legend-container{
    width:fit-content;
    max-height:70vh;
    overflow-y:auto;
}

/* vehicle page: Update GPS button + time since last gps point */
#map-vtrack-update-gps-container{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px 1ch;
    margin-top:6px;
    padding-top:6px;
    border-top:1px solid lightgrey;
}
#map-vtrack-update-gps-container button{
    border-radius:10px;
    padding:5px 12px;
    border:1px solid white;
    cursor:pointer;
    white-space:nowrap;
    background: linear-gradient(180deg, cornflowerblue 24.61%, royalblue 94.28%);
    color:white;
}
#map-vtrack-update-gps-container button:disabled{
    cursor:wait;
    filter:grayscale(0.6);
}
#map-vtrack-update-gps-container lastgps{
    font-size:0.85em;
    line-height:1.2;
}
#map-vtrack-update-gps-container lastgps.overdue{
    color:darkorange;
    font-weight:bold;
}

/* trip page: estimated distance + driving time of the Route (warehouse → stops → warehouse) */
#map-route-summary{
    margin-top:6px;
    padding-top:6px;
    border-top:1px solid lightgrey;
    line-height:1.3;
}
#map-route-summary distance,
#map-route-summary duration{
    font-weight:bold;
    color:darkred; /*matches the red route line*/
}
#map-route-summary small{
    color:grey;
}
#map-route-summary small.error{
    color:darkorange;
}
/* deliverymanager: the box sits ABOVE the legend (mapRouteSummaryRender), toggled by the trip summary's Route button */
#map-body.deliverymanager #map-route-summary{
    margin:6px 0;
    padding:6px 0;
    border-top:1px solid lightgrey;
    border-bottom:1px solid lightgrey;
}
#kerja-shipping-route-button.active{
    background:darkred; /*the route line is shown*/
    color:white;
}

@media only screen and (max-width:700px){
    #map-left-panel{
        width:fit-content;
        max-width:150px;
    }
    #map-left-panel>input{
        max-width:90%;
    }
}

#map-search-input{
/*     min-width:min(135px,20vw); */
/*     min-width:5ch; */
    width:15ch;
    overflow:visible;
}

#map-legend-container table{
    border-collapse: collapse;
    border: 1px solid black;
}
#map-legend-container table td{
    border:1px solid gray;
    cursor:pointer;
}


#map-legend-container tr.partialPick partialpick:after{
    content: "Ᵽ";
    background:var(--clpartialpick);
    color:white;
    padding:0 2px;
}
#map-legend-container tr.partialPick partialpick:hover:after{
    content:"PartialPick";
    position: absolute;
    left:100%;
    font-size:0.9em;
    background:white;
    color:black;
    z-index:99;
    padding:0 3px;
}


#map-legend-container tr.partialTrip partialtrip:after{
    content: "Ŧ";
    background:var(--clpartialtrip);
    color:white;
    padding:0 2px;
}

/* #map-legend-container .map-legend-places-table tr.partialTrip shortname:after{
    content:"P";
    font-size:0.9em;
    background:var(--clpartialtrip);
    color:white;
    padding:3px 5px;
    border-radius:100%;
    margin-left:2px;
} */

#map-legend-container table tr{
    background:var(--clpickednotrip);
}
#map-legend-container table tr.snoozed{
    background:var(--clpickednotripsnoozed);
}
#map-legend-container table tr:not(.partialTrip)[data-tripno]{
    background:var(--clprintedothertrip);
}
#map-legend-container table tr.released{
    background:var(--clreleased);
}
#map-legend-container table tr.released.snoozed{
    background:var(--clreleasedsnoozed);
}

#map-legend-container table tr[data-latlng=""]{
    background:pink;
}

#map-legend-container table tr.isLeehin td{
    background:lightgrey;
}

#map-legend-container table tr.noMatchingDestination{
    background:orange;
}

.candidateMarkerContent {
    background-color: green;
    border:1px solid white;
    color: #FFFFFF;
    font-size: 11px;
    padding: 5px 7px;
    position: relative;
    max-width:50px;
    word-break: break-all;
    text-align:center;
    cursor:pointer;
    pointer-events: auto; /*overwrite inheritance*/        
    word-break: break-word;
}

.candidateMarkerContent::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid green;
}


.candidateMarkerContent>span{
    position:absolute;
    top:100%;
    color:white;    
    background:green;
    border:1px solid white;
/*     transform:translate(0,100%); */
    width:max-content;
    padding:2px 1ch;
}
.candidateMarkerContent.candidateMarkerContentSelected{
    background-color: lightyellow;
    color:black;
    border:2px solid green;
    max-width:unset;
    width:150px;
    font-size:15px;
    z-index:99;
    color:blue;
}

#map-search-result-container{
    margin-top:10px;
    width:100%;
}
#map-search-result-container:not(:has(candidateRef)){
    display:none;
}
#map-search-result-container>candidateRef{
    display:block;
    cursor:pointer;
    border-top:1px solid lightgrey;
}
#map-search-result-container>candidateRef.candidateRefSelected{
    color:blue;
    background:lightyellow;
}

#map-legend-container .map-legend-places-table{
    border:none;
    line-height:1;
    border-collapse:separate;
    border-spacing:0px 3px;
    max-height:70vh;
    overflow-y:scroll;
    table-layout: fixed;
}
#map-legend-container .map-legend-places-table th.name{
    min-width:100px;
}
#map-legend-container .map-legend-places-table th.sort{
    cursor:pointer;
}
#map-legend-container .map-legend-places-table thead>tr{
    color:white;
    background:darkblue;
}

#map-legend-container .map-legend-places-table tr td{
    max-width:25vw;
    overflow-x: hidden;
    overflow-y:hidden;
}


#map-legend-container .map-legend-places-table tr.updated td{
    font-weight:bold;
    text-decoration:underline;
}


#map-legend-container .map-legend-places-table tr.currentTrip{
    background:var(--clcurrenttrip);
}

/*hide rows*/
.map-legend-places-table.hide-released tr.released:not(.currentTrip){
    display:none;
}
.map-legend-places-table.hide-noTrip tbody tr:not(.hasTrip):not(.released):not(.currentTrip){
    display:none;
}
.map-legend-places-table.hide-otherTrip tbody tr.hasTrip:not(.currentTrip):not(.released){
    display:none;
}
.map-legend-places-table.hide-current tbody tr.currentTrip{
    display:none;
}


.map-legend-places-table.ordering tr:not(.ordering) td{
    background: lightgrey;
}

.map-legend-places-table.ordering tbody tr:not(.ordering) td seq{
    display:none;
}

.map-legend-places-table tr.selected td{
    background:white;
    box-shadow: 0 0 10px #0000ff;
}

#map-click-to-order-button.ordering{
    background:yellow;
    border:1px solid blue;
}
/* div:has(div:has(div:has(.searchResult))){
    z-index:999;
}
div:has(div:has(.searchResult)){
    z-index:999;
}
ddiv:has(.searchResult){
    z-index:999;
} */

/*---------------------------------------*/
/* ..LEFT BOTTOM pANEL */
/*---------------------------------------*/
#map-left-bottom-panel{
    position:fixed;
    bottom:55px;
    left:10px;
    width:fit-content;
    max-height:20vh;
    max-width:250px;
    background:white;
    padding:5px; 
    line-height:1.5;
    box-shadow: 0px 0px 8px 1.5px lightgrey;
    overflow-y:scroll;
}

/*---------------------------------------*/
/* ..RIGHT pANEL */
/*---------------------------------------*/
#map-right-panel{
    position:fixed;
    top:50px;
    right:9px;
    z-index:9;
    max-height:90vh;
    min-width:100px;
    max-width:300px;
    background:white;
   padding:5px; 
    line-height:1.5;
    box-shadow: 0px 0px 8px 1.5px lightgrey;
    overflow:auto;
}

#map-body.deliverymanager #map-right-panel{
    max-width:330px;
}

@media screen and (min-width: 1800px) {
  #map-right-panel {
    max-height:90vh;
  }
}

@media only screen and (max-width:700px){
    #map-right-panel{
        min-width:50px;
        max-width:150px;
    }
    #map-filter-place-input{
        max-width:90%;
    }
}

#map-filter-place-container{
    position:relative;
    width:fit-content;
    margin-right:20px;
}


#map-right-panel>header{
    font-weight:bold;
    text-align: center;
}
#map-filter-place-input:not(:placeholder-shown){
    background:yellow;
    color:blue;
}
#map-right-panel placeref:before{
    content:"-";
}
#map-filter-place-status{
    float:right;
    color:black;
}
#map-filter-place-status-matched{
    text-align: left;
    padding:5px;
    font-size:0.8em;
    cursor:pointer;    
}
#map-filter-place-status-noMarker{
    color:grey;
    text-align: left;
    padding:5px;
    font-size:0.8em;
}
#map-filter-place-status-noMarker address{
    margin-left: 2ch;
    line-height: 1;
    border:1px solid lightgrey;
    border-top:none;
}

#map-trip-container{
    position:relative;
}

/*---------------------------------------*/
/* ..DETAIL pANEL */
/*---------------------------------------*/
#map-detail-panel{
    position:absolute;
    bottom:5px;
    right:5px;
    z-index:9;
    height:fit-content;
    width:fit-content;
    min-height:min(200px,5vh);
    max-height:70vh;
    min-width:100px;
    max-width:300px;
    background:white;
    border:2px solid blue;
    box-shadow: 0px 0px 8px 1.5px lightgrey;
    padding:5px; 
    overflow-y:auto;
}

#map-detail-panel.floating{
    
}


#map-detail-panel .debtor-info-block:first-child ~ *{
    border-top:3px solid blue;
    padding-top:5px;
}

#map-detail-panel>companyname{
    display:block;
    font-weight:bold;
    width:100%;
    border-bottom:1px solid lightgrey;
}
#map-detail-panel>address{
    font-style: normal;
}
#map-detail-panel>attention{
    background:yellow;
    font-size:0.9em;
}
#map-detail-panel .geocode-container{
/*     border:1px solid lightgrey; */
    margin:5px 0;
    padding:5px;
    color:darkblue;
}
#map-detail-panel .geocode-container>att{
    margin-top:10px;
}

.map-detail-panel-invoice{
    margin-left:5px;
    margin-top:5px;
    cursor:pointer;
    background:var(--clpickednotrip);
    border:1px solid black;
    width:fit-content;
    padding:1px 5px;
    border-radius:5px;
}

.map-detail-panel-invoice[data-tripno]{
    background:var(--clprintedothertrip);
}

.map-detail-panel-invoice.released{
    background:var(--clreleased);
}


.map-detail-panel-invoice.currentTrip{
    background: var(--clcurrenttrip);
}



.map-detail-panel-invoice.currentTrip.partialTrip{
    background:var(--clpartialtrip);
}

.map-trip-invoice-toggle-button{
    border-radius:10px;
    padding:5px 15px;
    border:1px solid white;
    margin-bottom:3px;
    cursor:pointer;
}
.map-trip-invoice-toggle-button.add{
    background: linear-gradient(180deg, limegreen 24.61%, seagreen 94.28%);
    color:white;
}
.map-trip-invoice-toggle-button.remove{
    background: linear-gradient(180deg, darksalmon 24.61%, darkorange 94.28%);
    color:white;
}
/* in flight (mapTripAddIv/RemoveIv awaiting the server) */
.map-trip-invoice-toggle-button:disabled{
    opacity:0.5;
    cursor:progress;
}

/* mass add-all-to-trip button in the marker detail panel (deliverymanager mode) */
.map-trip-invoice-add-all-button{
    display:block;
    width:100%;
    max-width:150px;
    border-radius:10px;
    padding:5px 15px;
    border:1px solid white;
    margin-bottom:6px;
    cursor:pointer;
    font-weight:bold;
    background: linear-gradient(180deg, limegreen 24.61%, seagreen 94.28%);
    color:white;
}
.map-trip-invoice-add-all-button:hover{
    filter:brightness(1.1);
}
.map-trip-invoice-add-all-button.hidden{
    display:none;
}

.kerja-shipping-invoice-print-pcl{
    border-radius:10px;
    padding:5px 5px;
    border:1px solid white;
    margin-bottom:3px;
    margin-left:3px;
    cursor:pointer; 
    color:white;
    background: linear-gradient(180deg, lavenderblush 14.61%, lightpink 94.28%); 
    background: linear-gradient(180deg, hotpink 34.61%, deeppink 94.28%); 
}

.kerja-shipping-invoice-snooze{
    width:3ch;
    cursor:pointer;
    padding:0px 2px 0 2px;
    vertical-align: middle;
    position:relative;
}

#map-fulfillmentdate-snooze-container{
    position:absolute;  
    top:0;/*set by js*/
    left:0;
    z-index:99;
    background:var(--clreleased);
    padding:10px 25px 10px 10px;
    border-radius:10px;
    border:2px solid blue;
}

.map-iv-prt-container{
    position:absolute;
    top:0px;
    z-index:9;
    border: 0.5px solid #ff007f90 !important;
}

/*================================================*/
/* ..Map Debtor List */
/*================================================*/
#map-debtor-list-table{
    background:white;
    border:1px solid black;
    border-collapse: collapse;
    font-family:tahoma;
    max-width:1200px;
    width:auto;
    margin:auto;
}
#map-debtor-list-table thead{
    position:sticky;
    top:0;
}
#map-debtor-list-table thead th{
    background:darkgreen;
    color:white;
    position:relative;
}
#map-debtor-list-table thead th.sort{
    cursor:pointer;
}
#map-debtor-list-table th.sortAsc:after{
   content:"\25B2";
   color: pink;
   position:absolute;
   right:0;
}
#map-debtor-list-table th.sortDesc:after{
   content:"\25BC";
   color: pink;
   position:absolute;
   right:0;
}

#map-debtor-list-table thead th>note{
    font-size:0.65em;
    color:lightgrey;
}
#map-debtor-list-table tbody td{
    border-bottom:1px solid lightgrey;
    padding:0 2px;
    background:white;
}
#map-debtor-list-table tbody tr td.copy{
    cursor:pointer;
}
#map-debtor-list-table tbody tr td.name,
#map-debtor-list-table tbody tr td.address,
#map-debtor-list-table tbody tr td.deliveraddress{
    cursor:pointer;
}
#map-debtor-list-table tbody tr td.name>small{
    color:dimgrey;
}
#map-debtor-list-table tbody tr td.latlng{
    cursor:pointer;
    color:darkblue;
}
#map-debtor-list-table tbody tr td.latlng.requireVerification::before{
    content: "??";
    background: orange;
    padding:0 3px;
}
#map-debtor-list-table tbody tr td.latlng input{
    font-size:inherit;
    max-width:95%;
    width:95%;
}

#map-debtor-list-table tbody tr td.created{
    font-size:0.8em;
}
#map-debtor-list-table tbody tr td>extension{
    display:block
}
#map-debtor-list-table tbody tr td.lastdelivery{
    cursor:pointer;
}
#map-debtor-list-table tbody tr.nodelivery td{
    color:lightgrey;
}
#map-debtor-list-table tbody tr:not(.isActiveOrNew) td{
    color:lightgrey;
}
body #map-debtor-list-table tbody tr.hasIssue td{
    color:crimson;
}
#map-debtor-list-table tbody tr.nodelivery td.pricecategory{
    color:#ddaaaa;
}
#map-debtor-list-table tbody td.deliveraddress{
    font-size:0.8em;
    color:darkblue;
}
#map-debtor-list-table tbody td.address{
    font-size:0.8em;
}
#map-debtor-list-table tbody tr.delivery td.latlng:empty{
    background:orange;
}

#map-debtor-list-table tbody td.sales,
#map-debtor-list-table tbody td.pricecategory{
    font-size:0.8em;
}

#map-debtor-list-table tbody tr td.selected{
    background:yellow;
}

/*---------------------------------------*/

#map-iv-itemlist-container{
    position:fixed;
/*     -webkit-user-select: none; */
    width:fit-content;
    height:fit-content;
    user-select: none;
    border:1px solid grey;
    border-radius: 10px;
    background: linear-gradient(180deg, #fcfcfc 24.61%, #d8d8d8 94.28%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);  
    font-size:0.8rem;
    text-align: center;
    padding:5px 1ch 2px 1ch;
    z-index:999;
}

.lha4St-rowdetail-invoice{
    display:grid;
    grid-template-columns: repeat(6,auto);
    padding:20px 10px 1ch 10px;
    font-family: Arial, Helvetica, sans-serif;
    cursor:pointer;
}
.lha4St-rowdetail-invoice .header{
    font-weight:bold;
}
.lha4St-rowdetail-invoice .header>div{
    border-bottom:1px solid black;
}
.lha4St-rowdetail-invoice>div:nth-child(6n-3),.lha4St-rowdetail-invoice>div:nth-child(6n-1){
    padding-left:3px;
} 

/* */
/*----------------------*/
/*---------------------------------------*/
/*================================================*/