@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: "Larsseit-Medium";
  src: url("../fonts/Larsseit-Medium.ttf");

}
@font-face {
    font-family: "Larsseit-Regular";
    src: url("../fonts/Larsseit-Regular.ttf");
}
@font-face {
    font-family: "Larsseit-Light";
    src: url("../fonts/Larsseit-Light.ttf");
}

.border-radius-top{
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}
.border-radius-bottom{
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}
.border-radius-left{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.border-radius-right{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.padding-10{
    padding: 10px;
}
.width-48{
    width: 48%;
}
.padding-top-5{
    padding-top: 5px;
    
}
.padding-left-20{
    padding-left: 20px;
}
tr.shown td.details-control {
    background: url(../images/minus.svg) no-repeat center center;
    padding: 7px 5px 5px 5px !important;
}
td.details-control {
    background: url(../images/plus.svg) no-repeat center center;
    padding: 7px 5px 5px 5px !important;
    
}
.route-no {
    padding-right: 10px; 
}
tr.collapse.in {
    display: table-row;
}
.collapse {
    display: none;
}
.sds-checkbox{
    outline: none !important;
  outline-offset: none !important;
  box-shadow: none !important;
  /* border: none !important; */
}
.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: url(../images/loading.gif) 50% 50% no-repeat rgb(249,249,249, 0.47);
    display: none;
}

.autosearch-input{
    position: absolute;
    width: 420px;
    top: 47px;
    /* border-radius: 8px; */
}
.save_track_button::after{
    content: "";
    display: block;
    margin: 0 auto;
    width: 70%;
    padding-top: 7px;
    border-bottom: 5px solid #fbc957
}
.color-box{
    width: 10px;
    height: 10px;
    display: inline-block;
}

.main-menu-hover:hover ul.child_menu{
    display: block !important;
}

.ui-widget-content{
    font-family: 'Larsseit-Regular';
    /* font-size: 0.875rem !important; */
    line-height: 1.25rem;
    font-size: 12px !important;
    line-height: 1.25rem;
    height: 325px;
    overflow-y: auto;
}
.image-container{
    width: 30px;
    height: 30px;
    position: relative;
}
.img-thumb {
    width: 30px;
    height: 30px;
}
.image-container .zoom {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border: none;
    cursor: pointer;
    text-align: center;
}
.fa-pending{
    color: #c6c6c6;
}
.fa-received{
    color: #78c86f;
}
.fa-delivered{
 color: #fbc957;
}
.fa-not-delivered{
    color: #e34169;
}
.highlight {
    background-color: yellow;
}
.count_circle{
    border: 1px solid;border-radius: 16px;font-size: 10px;padding: 2px 5px 3px 5px;margin: 0px 0px 0px 5px;
}
.ui-timepicker-container {
    z-index: 9999 !important;
}
/* input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #d1d5db;
    outline: none;
    opacity: 0.9;
    transition: opacity .15s ease-in-out;
  } */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #48A87C;
    cursor: pointer;
    border-radius: 50%;
  }
  input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #48A87C;
    cursor: pointer;
    border-radius: 50%;
  }
  .account-low-amt-notify-icon{
    position: absolute;
    top: 0;
    right: 0;
    background-color: #f56565; 
    border-radius: 50%;
    color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; 
    margin-top: -15px;
    padding: 2px;
    margin-right: -12px;
  }
  .hover-trigger {
    position: relative;
    display: block;
    cursor: pointer;
}

.hover-content {
    position: absolute;
    display: none; /* Hidden by default */
    z-index: 1000; /* Ensure it appears above other elements */
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* Prevent wrapping */
    min-width: 150px; /* Ensure it has enough width for content */
}

/* Default hover-content positioning (above the element) */
.hover-trigger:hover .hover-content {
    display: block;
    bottom: 100%; /* Default: position above */
    left: 50%;
    transform: translateX(-50%);
}

/* Special case for the first and second rows: position below */
table tbody tr:nth-child(-n+2) .hover-trigger:hover .hover-content {
    bottom: auto; /* Remove above positioning */
    top: 100%; /* Position below */
    left: 50%;
    transform: translateX(-50%);
}
