﻿body {
    font-family: "Lato", sans-serif !important;
    background-color: #f2f2f2 !important;
}


.reportheading {
    font-size: 21px;
    color: white;
    text-align: center;
    background-color: black;
    padding: 10px;
}

.custom-container {
    background-color: #cccccc;
    padding: 0px;
}

.report-iframe {
    padding: 5px;
    width: 80%;
    height: 150%;
    margin-left: 10%;
    border: 2px solid #ccc;
}

/*new style for card design*/
.risk-report-view1 {
    row-gap: 1rem;
    color: black;
    background-color: #999999;
    padding: 10px 10px;
    height: auto;
    /*border-radius: 10px;*/
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.reportcardrow {
    display: flex;
    flex-wrap: wrap;
    /*    gap:10px;*/
    justify-content: center;
    margin-left: -15px;
    margin-right: -15px;
}

.reportcardcol-lg-3, .reportcardcol-md-6, .reportcardcol-sm-12 {
    /*    padding: 15px;*/
    padding: 10px;
    flex: 1 1 100%;
}

@media (min-width: 576px) {
    .reportcardcol-sm-12 {
        flex: 1 1 100%;
    }
}

@media (min-width: 768px) {
    .reportcardcol-md-6 {
        flex: 1 1 50%;
    }
}

@media (min-width: 992px) {
    .reportcardcol-lg-3 {
        flex: 1 1 12%;
    }
}

.reportcard {
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 5px;
    height: 75%;
    border-left-style: ridge;
    border-left-color: palevioletred;
    border-width: 6px;
    flex: 1 1 150px;
    min-width: 130px;
    max-width: 180px;
}

    .reportcard:nth-child(1) {
        background: #00c3ef;
    }

    .reportcard:nth-child(2) {
        background: #e6f7ff;
    }

    .reportcard:nth-child(3) {
        background: #e6ffe6;
    }

    .reportcard:nth-child(4) {
        background: #fff5e6;
    }

.reportcard-body {
    padding: 0px;
}

.reportcard-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.reportcard-text {
    font-size: 1.5rem;
    font-weight: bold;
}


/*for card style*/
.custom-card {
    background-color: #ffff;
    color: white;
    /*    width: 125px;*/
    /*    height: 45px;*/
    /*    padding: 3px;*/
    width: clamp(135px, 10vw, 180px);
    height: clamp(45px, 4vw, 60px);
    padding: clamp(3px, 0.5vw, 6px);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
    text-align: center;
}

.custom-card.active {
    background-color: #f09103 !important;
    color: white;
}

.custom-card:hover {
    background-color: #f09103 !important;
    color: white;
}

.card-number {
    /*    font-size: 1.1rem;*/

    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin: 0;
    /* font-weight: bold;*/
    color: black;
}

.custom-card:hover .card-number,
.custom-card:hover .card-label {
    color: white;
}

.card-overall {
    font-size: 0.75rem;
    font-style: italic;
}

.card-label {
    /*    font-size: 1.7rem;  */
    font-size: clamp(1rem, 2vw, 1.7rem);
    margin-top: 0px;
    color: black;
    font-weight: bold;
}


/* Example CSS for Contact Report Data table */
#productsTable {
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-top: 20px;
    min-width: 200px !important;
    width: 100%; /* Ensure table takes full width */
}

    #productsTable th, #productsTable td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
        position: relative; /* Ensure relative positioning for sorting icon */
    }

    #productsTable th {
        background-color: #f2f2f2;
        color: #333;
        cursor: pointer; /* Add cursor pointer for sorting */
        /* Add padding to create space for sorting icon */
        padding-right: 30px; /* Adjust as needed */
    }

/* Style for sorting icon */
.sorting-icon {
    position: absolute;
    right: 10px; /* Adjust to position the icon */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    color: #aaa; /* Default color for sorting icons */
    cursor: pointer; /* Ensure cursor pointer for sorting icon */
}

    .sorting-icon.active:before {
        color: #007bff; /* Color for active sorting icon */
    }

/* DataTables Buttons styling */
.dt-buttons {
    margin-bottom: 10px;
}

.dt-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 10px;
}

    .dt-button:hover {
        background-color: #45a049;
    }

.dataTables_length,
.dataTables_filter,
.dataTables_info {
    margin-bottom: 5px;
}

    /* Adjust input field for column search */
    .dataTables_filter input {
        margin-left: 5px; /* Add space between sorting icon and search input */
        padding-left: 20px; /* Ensure enough padding for the search input */
        cursor: default; /* Disable cursor in the input field */
    }

.datatable-custlabel p {
    margin: 0;
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 5px;
    font-weight: bold;
}

.dataTables_wrapper {
    color: black;
}

.datareports-sec {
    /*margin: 3% auto;*/
    width: 98%;
    overflow-x: auto; /* Add horizontal scroll bar if content overflows */
}

.datarisk-report-view {
    overflow-x: auto; /* Ensure that the parent container also has overflow set */
    background-color: #999999;
    margin-left: 11px;
    border-radius: 10px;
    margin-right: 13px;
    margin-top: 2%;
}

.dataTables_length label {
    color: white;
    padding-left: 5px;
}



.dataTables_filter label {
    color: white;
}

.dataTables_wrapper .dataTables_info {
    color: white !important;
}

.paginate_button.disabled {
    color: white !important;
}

.dataTables_paginate .paginate_button {
    color: red;
}

.paginate_button previous {
    color: white !important;
}


div.dt-buttons .dt-button {
    background: linear-gradient(to right, #cccccc, #999999, #999999);
    color: white;
    border: 2px solid white;
    padding: 5px 25px;
    border-radius: 20px;
}

    div.dt-buttons .dt-button:hover {
        background-color: grey; /* Solid grey color on hover */
        border: 2px solid grey; /* Change border color to match the hover background */
    }


    /* Style button labels (optional if labels are present) */
    div .dt-buttons .dt-button span {
        color: white; /* Label text color */
    }



.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: white !important;
}


#productsTable_paginate {
    border-color: black;
    background-color: #f9f9f9 !important;
    border-style: solid;
}

#productsTable_info {
    padding: 5px;
}

.hidden-table {
    display: none;
}

.dataTables_wrapper .dataTables_info {
    padding: 5px;
}

.dataTables_wrapper .dataTables_paginate {
    color: white !important;
}

.current-news-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #f09103;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

    .current-news-link:hover {
        text-decoration: underline;
        color: black;
    }


#contactsTable {
    width: 100%;
    border-collapse: collapse;
}

    #contactsTable th, #contactsTable td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    #contactsTable th {
        background-color: #f2f2f2;
    }

#searchInput {
    margin-bottom: 12px;
    padding: 5px;
    width: 20%;
    margin-left: 780px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .pagination a {
        margin: 0 5px;
        padding: 8px 12px;
        text-decoration: none;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #007bff;
    }

        .pagination a.active {
            background-color: #007bff;
            color: white;
        }

        .pagination a.disabled {
            color: #ccc;
            pointer-events: none;
        }



/* PrimaryContatct Modal styles */
.primarycontactmodal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.primarycontactmodal-content {
    background-color: #f8f9fa;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 75%;
    border-radius: 10px;
    position: relative;
}

.primarycontactclose {
    position: absolute;
    right: 10px;
    top: 1px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Title styling */
.primarycontacttitle {
    background-color: #ce872a;
    color: black;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    margin: -25px -20px 20px -20px;
}


.save-button-containerprimary {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}



.save-button-containerprimary button {
    width: 15% !important;
    border-radius: 10px !important;
}

.modal-body {
    padding: 0px !important;
}

.dataTables_length label {
    color: black !important;
    padding-left: 5px !important;
}
