﻿/* General Modal Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    margin-top: 10%;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

/* Modal Content Styling */
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 800px; /* Fixed width */
    max-width: 800px; /* Ensure it doesn't exceed 600px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0 auto; /* Center the modal */
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    margin-left: 0; /* Adjusted to align with the modal width */
    margin-top: 10px;
}

/* Table Styling */
.table-wrapper {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #666;
}

.no-results {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Search Container Styling */
.search-container {
    display: flex;
    align-items: center;
    width: 350px; /* Fixed width */
    margin-bottom: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px; /* Slightly rounded corners */
    outline: none;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.search-button {
    padding: 8px;
    background-color: #D9F5FF; /* Light blue background */
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 0; /* Slightly rounded corners */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    height: 43px;
    width: 43px;
}

    .search-button i {
        color: #000; /* Black color for the icon */
        font-size: 18px; /* Increased font size for better visibility */
    }

/* Modal Header Styling */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0; /* Light separator */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.bill-info {
    padding-top: 15px;
    padding-bottom: 10px;
    background-color: #F8F9FF;
    margin-top: 15px;
    border-radius: 8px;
    padding: 10px;
}

.modal-button:disabled {
    background-color: #D7D8DB !important;
    color: #FFFFFF !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.assign-analyst-form {
    margin-top: 20px;
}

    .assign-analyst-form label {
        margin-top: 10px;
    }

.time-due {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.modal-button[disabled] {
    background-color: #d3d3d3;
    color: #888;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-label {
    font-family: Open Sans;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none; 
}


.modal-fullscreen-custom {
    width: 100vw;
    max-width: none;
    height: auto;
    margin: 0;
}

    .modal-fullscreen-custom .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-custom .modal-header {
        border-radius: 0;
    }

    .modal-fullscreen-custom .modal-body {
        overflow-y: auto;
    }

    .modal-fullscreen-custom .modal-footer {
        border-radius: 0;
    }

@media (max-width: 575.98px) {
    .modal-fullscreen-custom-sm-down {
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
    }

        .modal-fullscreen-custom-sm-down .modal-content {
            height: auto;
            border: 0;
            border-radius: 0;
        }

        .modal-fullscreen-custom-sm-down .modal-header {
            border-radius: 0;
        }

        .modal-fullscreen-custom-sm-down .modal-body {
            overflow-y: auto;
        }

        .modal-fullscreen-custom-sm-down .modal-footer {
            border-radius: 0;
        }
}

@media (max-width: 767.98px) {
    .modal-fullscreen-custom-md-down {
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
    }

        .modal-fullscreen-custom-md-down .modal-content {
            height: auto;
            border: 0;
            border-radius: 0;
        }

        .modal-fullscreen-custom-md-down .modal-header {
            border-radius: 0;
        }

        .modal-fullscreen-custom-md-down .modal-body {
            overflow-y: auto;
        }

        .modal-fullscreen-custom-md-down .modal-footer {
            border-radius: 0;
        }
}

@media (max-width: 991.98px) {
    .modal-fullscreen-custom-lg-down {
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
    }

        .modal-fullscreen-custom-lg-down .modal-content {
            height: auto;
            border: 0;
            border-radius: 0;
        }

        .modal-fullscreen-custom-lg-down .modal-header {
            border-radius: 0;
        }

        .modal-fullscreen-custom-lg-down .modal-body {
            overflow-y: auto;
        }

        .modal-fullscreen-custom-lg-down .modal-footer {
            border-radius: 0;
        }
}

@media (max-width: 1199.98px) {
    .modal-fullscreen-custom-xl-down {
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
    }

        .modal-fullscreen-custom-xl-down .modal-content {
            height: auto;
            border: 0;
            border-radius: 0;
        }

        .modal-fullscreen-custom-xl-down .modal-header {
            border-radius: 0;
        }

        .modal-fullscreen-custom-xl-down .modal-body {
            overflow-y: auto;
        }

        .modal-fullscreen-custom-xl-down .modal-footer {
            border-radius: 0;
        }
}

@media (max-width: 1399.98px) {
    .modal-fullscreen-custom-xxl-down {
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
    }

        .modal-fullscreen-custom-xxl-down .modal-content {
            height: 100%;
            border: 0;
            border-radius: 0;
        }

        .modal-fullscreen-custom-xxl-down .modal-header {
            border-radius: 0;
        }

        .modal-fullscreen-custom-xxl-down .modal-body {
            overflow-y: auto;
        }

        .modal-fullscreen-custom-xxl-down .modal-footer {
            border-radius: 0;
        }
}