/* here you can put your own css to customize and override the theme */
* {
    font-family: "Open Sans",'DroidArabicKufiRegular',sans-serif;
}

textarea {
    resize: none !important;
}

.page-content-wrapper .page-content {
    padding: 0 0 0 20px;
}

.page-header.navbar .page-logo .logo-default {
    margin: 15px 10px 0;
    height: 45px;
}

.wOps {
    height: 130px !important;
    margin-bottom: 10px;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    vertical-align: middle;
}

.m-l-20 {
    margin-left: 20px;
}

.modal .modal-header h3 {
    float: left;
}

.st-sort-ascent:before {
    content: '\25B2';
}

.st-sort-descent:before {
    content: '\25BC';
}

.swal2-container {
    z-index: 10060
}

.no-wrap th {
    white-space: nowrap
}

.mCustomScrollBox {
    width: 100%;
}

/*Loader*/
.page-content {
    position: relative;
}

.loader {
    position: fixed;
    width: 99%;
    height: calc(100% - 20px);
    background: rgba(153, 153, 153, .5);
    text-align: center;
    padding: 200px 0;
    top: 0;
    z-index: 10;
}

    .loader.main-loader {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(153, 153, 153, .5);
        text-align: center;
        padding: 200px 0;
        top: 0;
        z-index: 10000;
    }

        .loader.main-loader svg {
            /*max-width: 100%;*/
            width: 25em;
            fill: none;
            stroke: #222;
            stroke-linecap: round;
            stroke-width: 8%;
            /*width: 99%;*/
            height: calc(100% - 20px);
            /*margin: 100px 0;*/
        }

use {
    stroke: #fff;
    animation: a 2s linear infinite
}

@keyframes a {
    to {
        stroke-dashoffset: 0px
    }
}

.widget-bg-color-orange {
    background: orange;
}

.widget-bg-color-yellow {
    background: #cccc02;
}

.widget-bg-color-brown {
    background: #3e0202;
}

.error {
    color: #f00;
    font-weight: bold;
}
/*.amcharts-chart-div,
.amcharts-chart-div svg{
    width: 100% !important;
}*/

.trackPath {
    display: flex;
    flex-direction: row;
    margin: 40px 0;
}

    .trackPath .step {
        width: 25%;
        text-align: center;
        position: relative;
    }

.step .fa-truck {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.trackLine {
    height: 3px;
    background: #999;
    margin: 30px 0;
}

.step.active .trackLine {
    background: green;
}

.check {
    background: #fff;
    padding: 5px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    margin-left: -12px;
}

    .check i {
        color: #999;
    }

.step.active .check i {
    color: green;
}

.margin-top-0 {
    margin-top: 0 !important;
}

.margin-right-0 {
    margin-right: 0 !important;
}

.margin-left-0 {
    margin-left: 0 !important;
}

.padding-0 {
    padding: 0 !important;
}

.flex-display {
    display: flex !important;
}

    .flex-display label {
        white-space: nowrap;
        line-height: 34px;
        margin-bottom: 0;
    }

.full_width {
    width: 100%;
}

.img_serial {
    width: 50%;
    float: left;
    padding: 0;
}

.img_serial_one {
    display: block;
    margin-right: auto;
    margin-left: auto;
}
/**/

#ck-button {
    margin: 0px;
    background-color: #36C6D3;
    border-radius: 4px 0px 0px 4px;
    overflow: auto;
    float: left;
    color: white;
    padding: 6px 0px 4px 0px;
}

    #ck-button:hover {
        background: #27A4B0;
        cursor: pointer;
    }

    #ck-button label {
        float: left;
        width: 3.0em;
    }

        #ck-button label span {
            text-align: center;
            padding: 0px 0px;
            display: block;
        }

        #ck-button label input {
            display: none;
        }

    #ck-button input:checked + span {
        color: #222;
    }
/* Style for main table rows */
#resourcesAllocations > tbody > tr {
    background-color: #f9f9f9; /* Light background for main rows */
    border-bottom: 2px solid #ddd;
}

/* Style for nested tables */
#resourcesAllocations .sub-table.sub-table-striped {
    width: 100%;
    border: 1px solid #ccc; /* Border around the entire nested table */
    margin-left: 20px; /* Indent nested table */
    border-collapse: collapse; /* Make borders appear as single lines */
}

    /* Style for cells in nested tables */
    #resourcesAllocations .sub-table.sub-table-striped th,
    #resourcesAllocations .sub-table.sub-table-striped td {
        border: 1px solid #ccc; /* Border around each cell */
        padding: 8px; /* Add padding for readability */
        background-color: #ffffff; /* Light background for nested rows */
    }

    /* Bold style for subtable headers */
    #resourcesAllocations .sub-table.sub-table-striped th {
        font-weight: bold; /* Make headers bold */
        background-color: #000758; /* Slightly darker background for headers */
        color:white;
    }

/* Utilization bar container */
.utilization-bar {
    width: 100%; /* Full width of the cell */
    background-color: #9b9a9a; /* Light background for empty part */
    border-radius: 4px;
    overflow: hidden; /* Hide any overflow */
    position: relative;
    height: 20px; /* Height of the utilization bar */
}


/* Utilization percentage bar */
.utilization-bar-inner {
    height: 100%;
    background-color: #4caf50; /* Green color for utilization */
    text-align: center;
    color: white;
    font-size: 0.8em;
    line-height: 20px; /* Vertically center the text */
}

/* Optional: style action buttons */
.btn-group .btn {
    margin: 2px;
    font-size: 0.8em; /* Smaller font for buttons */
}
.sub-table td span {
    position: relative;
    cursor: pointer; /* Changes cursor to indicate hoverable text */
}

    /* Tooltip styling */
    .sub-table td span:hover::after {
        content: attr(data-hover);
        position: absolute;
        bottom: 100%;
        left: 0;
        background-color: #000758;
        color: #fff;
        padding: 5px;
        border-radius: 5px;
        white-space: nowrap;
        /*white-space: pre-line;*/
        transform: translateY(-5px);
        opacity: 1;
        z-index: 1;
        font-size: 12px;
    }
   
    /* Hide tooltip initially */
    .sub-table td span::after {
        content: '';
        opacity: 0;
        transition: opacity 0.2s, transform 0.2s;
    }

    /* Show tooltip on hover */
    .sub-table td span:hover::after {
        opacity: 1;
        transform: translateY(-10px);
    }

.utilization-bar-all {
    display: flex;
    width: 100%;
    height: 30px;
    border: 1px solid #ccc;
    margin-top: 20px;
}

.interval {
    height: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    position: relative;
    border: 0px solid #ccc; /* Border color and width */
    border-radius: 0px; /* Optional: Adds rounded corners */
    margin-right: 1px; /* Optional: Adds spacing between intervals */
    box-sizing: border-box; /* Ensures border is included in the width */
}
.over-utilization {
    background-color: red;
}
.fully-utilization {
    background-color: green;
}
.notFully-utilization {
    background-color: orange;
}
.interval span {
    display: block;


    height: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    position: relative;
    border: 0px solid #ccc; /* Border color and width */
    border-radius: 5px; /* Optional: Adds rounded corners */
    margin-right: 2px; /* Optional: Adds spacing between intervals */
    box-sizing: border-box; /* Ensures border is included in the width */
}

/* Show the tooltip with the data-hover text on hover */
.interval:hover span {
    opacity: 1; /* Make the tooltip text visible on hover */
    /*background-color: #555;*/ /* Optional: Change background color on hover */
}

.data-table-header {
    background-color: #000758;
    color: white;
}

