﻿
        /*@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');*/
        @font-face {
    font-family: 'CairoVariable';
    src: url('../fonts/CairoVariableFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
        
body {
    font-family: 'CairoVariable', sans-serif;
   
}
        /*body {
            font-family: 'Cairo', sans-serif;
            direction: rtl;
            text-align: right;
            background-color: #FFFFFF;
            margin: 0;
            padding: 10px;
            color: #333;
        }*/

        .container {
            max-width: 100%; /* Ensure container spans full width */
            overflow-x: auto; /* Enable horizontal scrolling */
        }

        .responsive-grid {
            width: 100%;
            border-collapse: collapse;
            table-layout: auto; /* Let the table adjust based on content */
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 10px;
        }

            .responsive-grid th, .responsive-grid td {
                padding: 10px;
                text-align: left;
                border: 1px solid #ddd;
                white-space: nowrap; /* Prevent text wrapping */
            }

            .responsive-grid th {
                background-color: #f0f0f0;
                font-weight: bold;
                text-transform: uppercase;
                font-size: 12px;
                color: #555;
            }

            .responsive-grid td {
                background-color: #fff;
            }

            .responsive-grid tr:hover {
                background-color: #f9f9f9;
            }
            
 .responsive-grid, .responsive-grid th, .responsive-grid td {
        text-align: center;
        vertical-align: middle; /* Center text vertically */
    }

    .responsive-grid .form-control {
        text-align: center; /* Ensure dropdown text is centered */
    }









  









        .edit-button, .update-button, .cancel-button {
            min-width: 100px; /* Ensure buttons have enough width */
            background-color: #007bff;
            color: #fff;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-transform: uppercase;
            font-size: 12px;
            margin-right: 5px;
        }

            .edit-button:hover, .update-button:hover, .cancel-button:hover {
                background-color: #0056b3;
            }


        .delete-button {
            color: #dc3545; /* Red color for delete button */
            text-decoration: none; /* Remove underline */
            font-size: 14px; /* Adjust font size */
        }

        @media screen and (max-width: 768px) {
            .responsive-grid {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .responsive-grid1 {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }





        /* styles.css */
       #floating-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Changed from right: 20px; to left: 20px; */
    z-index: 1000; /* Adjust this value as needed */
}

.floating-button {
    background-color: #007bff; /* Example background color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.floating-button:hover {
    background-color: #0056b3; /* Darker color on hover */
}

        .popup {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }

        .popup-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            width: 600px;
            text-align: center;
            direction: rtl; /* Right-to-left text direction */
        }

        .header {
            padding: 10px;
            background-color: #4CAF50;
            color: white;
            border-radius: 8px 8px 0 0;
        }

        .close {
            float: left;
            cursor: pointer;
            color: white;
            font-size: 24px;
        }

        .selection {
            margin-top: 20px;
        }

        button {
            padding: 10px 20px;
            margin-top: 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 4px;
            font-size: 14px;
            transition: background-color 0.3s ease;
        }

            button:hover {
                background-color: #45a049;
            }

        select {
            padding: 8px;
            font-size: 14px;
            width: 100%;
            margin-top: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            direction: rtl; /* Right-to-left text direction */
        }

        /*floated message
    */
        .message {
            position: fixed;
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            background-color: rgba(255, 0, 0, 0.8); /* Red background with opacity */
            color: white;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Drop shadow */
            z-index: 9999; /* Ensure it's on top of other content */
            display: none; /* Initially hidden */
            animation: fadeInOut 2s ease-in-out; /* Animation */
        }

        @keyframes fadeInOut {
            0%, 100% {
                opacity: 0;
            }

            50% {
                opacity: 1;
            }
        }

        /* styles.css */

        /* Hide the default checkbox */
        .modern-checkbox input[type="checkbox"] {
            display: none;
        }

        /* Create a custom checkbox */
        .checkbox-container {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 16px;
            user-select: none;
        }

            /* Style the label to include the custom checkbox */
            .checkbox-container label {
                position: relative;
                padding-left: 35px;
                cursor: pointer;
                display: flex;
                align-items: center;
            }

                /* Create the custom checkbox appearance */
                .checkbox-container label::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 20px;
                    height: 20px;
                    border: 2px solid #007bff;
                    border-radius: 4px;
                    background-color: white;
                    transition: background-color 0.3s, border-color 0.3s;
                }

            /* Style the custom checkbox when checked */
            .checkbox-container input[type="checkbox"]:checked + label::before {
                background-color: #007bff;
                border-color: #007bff;
            }

            /* Create the checkmark for the custom checkbox */
            .checkbox-container input[type="checkbox"]:checked + label::after {
                content: "";
                position: absolute;
                left: 6px;
                top: 50%;
                transform: translateY(-50%) rotate(45deg);
                width: 5px;
                height: 10px;
                border: solid white;
                border-width: 0 2px 2px 0;
            }

            /* Hover effect for the custom checkbox */
            .checkbox-container label:hover::before {
                border-color: #0056b3;
            }

            .checkbox-container input[type="checkbox"]:checked + label:hover::before {
                background-color: #0056b3;
                border-color: #0056b3;
            }
    


            
                .pagination {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin-top: 10px;
                        font-family: Arial, sans-serif;
                        margin-bottom:10px;
                    }

                        .pagination .page-link, .pagination .page-ellipsis {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            width: 40px;
                            height: 40px;
                            margin: 0 5px;
                            border: 1px solid #ddd;
                            background-color: #fff;
                            color: #333;
                            text-decoration: none;
                            border-radius: 50%;
                            transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
                            cursor: pointer;
                            font-size: 16px;
                        }

                            .pagination .page-link:hover {
                                background-color: #f0f0f0;
                                transform: translateY(-2px);
                            }

                            .pagination .page-link.active {
                                background-color: #007bff;
                                color: #fff;
                                border-color: #007bff;
                            }

                        .pagination .page-ellipsis {
                            cursor: default;
                        }

                    @media (max-width: 768px) {
                        .pagination {
                            flex-wrap: wrap;
                        }

                            .pagination .page-link, .pagination .page-ellipsis {
                                width: 35px;
                                height: 35px;
                                margin: 5px;
                            }
                    }



/* Custom CSS for RadioButtonList */
.custom-radio-list .custom-control-label {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.custom-radio-list .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

.custom-radio-list .custom-control-label::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .custom-radio-list .custom-control-label {
        font-size: 0.9rem;
    }
}




.ui-autocomplete {
    position: absolute;
    z-index: 1050; /* Make sure this is higher than the modal's z-index */
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    /* Prevent horizontal scrollbar */
    overflow-x: hidden;
}