﻿/*background colors*/
.custom-bg-navyblue {
    background-color: var(--navyblue) !important;
}

.custom-bg-themeblue {
    background-color: rgb(222 169 69);
}

/*button types and colors*/
.custom_primary_btn {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: var(--primary_s);
    box-shadow: 0 3px 10px 1px rgba(60, 64, 67, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s !important;
    height: max-content;
    cursor: pointer;
}

    .custom_primary_btn:hover {
        color: #fff;
        text-decoration: none;
        background-color: var(--primary_h);
    }

    .custom_primary_btn:active {
        box-shadow: 0 1px 2px 0px rgba(60, 64, 67, 0.3);
    }

.custom_secondary_btn {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: var(--secondary_s);
    box-shadow: 0 3px 10px 1px rgba(60, 64, 67, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s !important;
    height: max-content;
    cursor: pointer;
}

    .custom_secondary_btn:hover {
        color: #fff;
        text-decoration: none;
        background-color: var(--secondary_h);
    }

    .custom_secondary_btn:active {
        box-shadow: 0 1px 2px 0px rgba(60, 64, 67, 0.3);
    }

.custom_danger_btn {
    border: none;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: var(--danger_s);
    box-shadow: 0 3px 10px 1px rgba(60, 64, 67, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s !important;
    height: max-content;
    cursor: pointer;
}

    .custom_danger_btn:hover {
        color: #fff;
        text-decoration: none;
        background-color: var(--danger_h);
    }

    .custom_danger_btn:active {
        box-shadow: 0 1px 2px 0px rgba(60, 64, 67, 0.3);
    }

.custom_info_btn {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: var(--info_s);
    box-shadow: 0 3px 10px 1px rgba(60, 64, 67, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s !important;
    height: max-content;
    cursor: pointer;
}

    .custom_info_btn:hover {
        color: #fff;
        text-decoration: none;
        background-color: var(--info_h);
    }

    .custom_info_btn:active {
        box-shadow: 0 1px 2px 0px rgba(60, 64, 67, 0.3);
    }

.custom_purple_btn {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: #626262;
    box-shadow: 0 3px 10px 1px rgba(60, 64, 67, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s !important;
    height: max-content;
    cursor: pointer;
}

    .custom_purple_btn:hover {
        color: #fff;
        text-decoration: none;
        background-color: #524d50;
    }

    .custom_purple_btn:active {
        box-shadow: 0 1px 2px 0px rgba(60, 64, 67, 0.3);
    }

/*Custom text*/
.custom_text_sm {
    font-size: 14px;
}

/*Divider*/
.custom_divider {
    content: "";
    height: 1px;
    background-color: var(--themeblue);
    margin: 1rem 0;
}
/*Custom line height*/
.custom_line_height {
    line-height: 0.75 !important;
}

/*Custom Link button*/
.custom_link_btn {
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    transition: all ease-in-out 0.15s;
    font-size: 1rem;
    text-decoration: none !important;
    cursor: pointer;
}

    .custom_link_btn:hover {
        background-color: var(--c_link_h);
    }

.custom_delete_icon {
    transition: all ease-in-out 0.15s;
}

    .custom_delete_icon:hover {
        color: var(--c_delete_icon_h) !important;
    }

/*Custom table*/
.custom_table_div {
    background-color: #fff !important;
    padding: 2rem 1rem;
    box-shadow: var(--table_shadow);
    border-radius: 10px;
    border: var(--custom_border);
}


/*Custom Table*/
table.custom_table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    overflow: hidden;
    line-height: 1.25;
}

    table.custom_table thead {
        overflow: hidden;
    }

        table.custom_table thead tr th {
            
            color: #000; /* Black text */
            padding: 1rem 1rem; /* Equal padding all around */
            font-weight: bold; /* Emphasize headers */
            text-align: center; /* Align text to the left */
            border-bottom: 2px solid #ccc; /* Underline for separation */
            font-size: 1rem; /* Standard readable size */
           
        }


            table.custom_table thead tr th:first-child {
                border-top-left-radius: 10px;
                border-bottom-left-radius: 10px;
            }

            table.custom_table thead tr th:last-child {
                border-top-right-radius: 10px;
                border-bottom-right-radius: 10px;
            }

    table.custom_table tbody tr td {
        padding: 0.5rem 0;
    }

    table.custom_table tbody tr {
        border-bottom: var(--custom_table_border_divider);
    }

        table.custom_table tbody tr:nth-child(even) {
            background-color: var(--custom_table_alternate_border);
        }

@media (max-width: 976px) {
    table.custom_table {
        text-align: left;
        line-height: 1.5;
    }

        table.custom_table thead tr th {
            display: none;
        }

        table.custom_table tbody tr td {
            display: grid;
            grid-template-columns: 15ch auto;
            gap: 0.5rem;
            color: var(--table_responsive_font);
            padding: 0.25rem 1rem;
        }

            table.custom_table tbody tr td:has(input[type="checkbox"]) {
                display: grid;
                grid-template-columns: 15ch max-content;
            }

            table.custom_table tbody tr td::before {
                content: attr(data-cell)": ";
                font-weight: 800;
            }



        table.custom_table tbody tr:nth-child(odd) {
            background-color: var(--custom_table_alternate_border);
        }

        table.custom_table tbody tr:nth-child(even) {
            background-color: #fff;
        }

        table.custom_table tbody tr td:first-child {
            padding-top: 1rem;
        }

        table.custom_table tbody tr td:last-child {
            padding-bottom: 1rem;
        }

    td.hide_before::before {
        display: none;
    }
    /*responsive sub table (inventory column) (Start)*/
    table.custom_table tbody tr td:has(.sub_table_col) {
        display: flex;
        flex-direction: column;
    }

    table.sub_table tbody tr td::before {
        content: attr(data-cell);
        font-weight: 800;
    }

    table.custom_table tbody tr td:has(.sub_table_col) table.sub_table tbody tr > td {
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    table.sub_table tbody tr > td::before {
        display: none;
    }

    table.sub_table tbody tr:first-child > td::before {
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    table.custom_table tbody tr:nth-child(odd) .sub_table td {
        background-color: #fff;
    }

    /*responsive sub table (inventory column) (End)*/
}


/*Even table colums, not applicable for first child (End)*/
.even_rest_col thead tr,
.even_rest_col tbody tr {
    display: flex;
}

    .even_rest_col thead tr > th,
    .even_rest_col tbody tr > td {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .even_rest_col thead tr > th:first-child,
        .even_rest_col tbody tr > td:first-child {
            flex: 0.5
        }
/*Even table colums, not applicable for first child (End)*/

/*Sub_Table (Start)*/
.sub_table_col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sub_table_body {
    width: 100%;
    border: var(--sub_table_par_border);
    overflow: hidden;
    border-radius: 5px;
}

table.custom_table tbody tr:nth-child(even) .sub_table_body {
    border: var(--sub_table_alternate_tr_border);
}


.sub_table {
    width: 100%;
    line-height: 0.5 !important;
}


table.sub_table thead tr th {
    background-color: var(--sub_table_header_background);
    color: var(--sub_table_header_text) !important;
}

.sub_table thead tr,
.sub_table tbody tr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center !important;
}

    .sub_table thead tr > th,
    .sub_table tbody tr > td {
        flex: 1 !important;
        padding: 1rem !important;
    }

    .sub_table tbody tr:nth-child(odd) {
        background-color: #fff;
    }

    .sub_table tbody tr:nth-child(even) {
        background-color: var(--sub_table_alternat_tr_bg) !important;
    }

    .sub_table tbody tr td:first-child {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sub_table thead tr th:first-child {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .sub_table thead tr th:last-child {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

.nested-table {
    display: none;
}
/*Sub_Table (End)*/
/*Custom Table end*/

/*Custon table inside form (Start)*/
table.custom_form_table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    overflow: hidden;
    line-height: 1;
    border: 1px solid #ececec;
    border-radius: 5px;
}

    table.custom_form_table thead tr th {
        color: #3c3c3c;
        background-color: #ececec;
        padding: 1rem 0;
    }

    table.custom_form_table tbody tr td {
        padding: 0.5rem 0;
    }

        table.custom_form_table tbody tr td input,
        table.custom_form_table tbody tr td select {
            width: 90%;
            margin: 0 auto;
        }

    table.custom_form_table tbody tr:nth-child(even) {
        background-color: #f3f3f3;
    }


/*Custon table inside form (End)*/
/*Custom card*/
.card_row {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

.custom_card {
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    height: auto;
    background-color: var(--themeblue);
    margin: 0 2rem 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card_box_shadow);
}

.custom_card_header {
    background-color: var(--card_header_color);
    color: var(--card_text_color);
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.25rem 1rem;
    border-bottom: var(--card_header_border_bottom);
}

.custom_card_body {
    padding: 1rem;
    background-color: var(--card_body_color);
}

.card_manage {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.card_manage_icons {
    width: 30%;
    display: flex;
    justify-content: space-between;
}

.card_manage_add_icons {
    width: 70%;
    display: flex;
    justify-content: flex-end;
}
/*Custom card end*/


/*Chart Styles*/
.custom_chart {
    background-color: var(--custom_chart_body_bg);
    border-radius: 10px;
    box-shadow: var(--custom_chart_shadow);
    overflow: hidden;
}

    .custom_chart .chart_header {
        color: #fff;
        background-color: var(--themeblue);
        padding: 0.65rem 1rem 0.1rem 1rem;
        border-bottom: var(--chart_header_border_bottom);
    }

    .custom_chart .chart_body {
        padding: 0.65rem 1rem 0.05rem 1rem;
    }
/*Chart Styles End*/


/*Form Styles*/
.custom_form {
    background-color: var(--custom_form_body_bg);
    /*box-shadow: var(--custom_form_shadow);*/
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
}

    .custom_form .form_header {
        color: var(--form_label_clr) !important;
        background-color: transparent;
        /*padding: 0.65rem 1rem 0.1rem 1rem;*/
        /*border-bottom: var(--form_header_border_bottom);*/
    }

    .custom_form .form_body {
        /*padding: 0.65rem 1rem 0.05rem 1rem;*/
    }

        .custom_form .form_body .custom_label {
            color: var(--form_label_clr);
            font-weight: 700 !important;
        }

        .custom_form .form_body .custom_input {
            border: 1px solid var(--form_border);
            color: var(--form_ip_clr);
        }

    .custom_form h4 {
        color: var(--form_label_clr) !important;
    }

/*Form Styles End*/


/*Required field start*/
.required::after{
    content: " *";
    color: #FF0000;
}
/*Required field end*/
/* Ensure the dropdown button takes up full width of the column */
.multi-select-dropdown {
    position: relative;
}

.dropdown-btn {
    width: 100%; /* Make the button span the full width of the column */
    padding: 10px;
    text-align: left;
}

/* Dropdown content should match the button's width */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100%; /* Ensure dropdown matches button width */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 0;
}

    /* Style for each label (checkbox) inside the dropdown */
    .dropdown-content label {
        display: block;
        padding: 8px;
    }

    .dropdown-content input {
        margin-right: 10px;
    }

/* Style for the "Other" input field */
#otherServiceInput {
    margin-top: 10px;
}

/* NAV TABS CONTAINER */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}

    /* NAV TAB LINKS */
    .nav-tabs .nav-link {
        border: 1px solid transparent;
        border-top-left-radius: .25rem;
        border-top-right-radius: .25rem;
        color: #000;
        margin-right: 0.125rem;
        background-color: transparent;
        padding: 10px 15px;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }

        /* HOVER STATE FOR NAV TAB LINKS */
        .nav-tabs .nav-link:hover {
            border-color: #ddd;
        }


/* ACTIVE STATE */
.nav-tabs .nav-link.active {
    background-color: rgb(169, 138, 80);
    color: white !important;
    border-color: rgb(169, 138, 80) rgb(169, 138, 80) transparent;
}






.scroll-x {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
}



.powerbi-frame {
    position: relative;
    padding-bottom: 60%; /* aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

    .powerbi-frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }