html {
    font-size: 12px !important;
}

@media (min-width: 768px) {
    html {
        font-size: 12px !important;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-size: 12px !important;
}

/*By Shawqui*/
.w-99 {
    width: 99% !important;
}

.w-98 {
    width: 98% !important;
}

.w-95 {
    width: 95% !important;
}

.w-90 {
    width: 90% !important;
}

.w-85 {
    width: 85% !important;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-2 {
    width: 2% !important;
}

.w-1 {
    width: 1% !important;
}

.w-20 {
    width: 20% !important;
}

.h-250px {
    height: 250px !important;
}
.start-1 {
    left: 1% !important
}
.start-2 {
    left: 2% !important
}
.start-3 {
    left: 3% !important
}
.start-4 {
    left: 4% !important
}

.image-input-placeholder {
    background-image: url('~/ThemeFile/assets/images/blank-image.svg');
}

[data-bs-theme="dark"] .image-input-placeholder {
    background-image: url('~/ThemeFile/assets/images/blank-image-dark.svg');
}

.indicator-progress {
    display: none
}

[data-kt-indicator=on] > .indicator-progress {
    display: inline-block
}

[data-kt-indicator=on] > .indicator-label {
    display: none
}
/* Start Override theme */
.form-floating > .form-select {
    padding-bottom: 0.225rem;
}
/* End Override theme */

/* Start Override Bootbox */

.bootbox-close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 0.5rem;
    z-index: 1;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

/* End Override Bootbox */
/* Override default styles for a dark theme */

/* Sweet Alart override */
.swal2-popup, .apexcharts-menu, .swal2-radio {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-body-color) !important;
}

.swal2-title {
    color: var(--bs-body-color) !important;
}

.swal2-content, .swal2-html-container {
    color: var(--bs-body-color) !important;
}


/* Start Custom Styles */

.dt-spinner + div {
    display: none !important;
}

.h-70px {
    height: 70px !important;
}

.h-lg-165px {
    height: 165px !important;
}

.Outlook-Email-Font {
    font-family: "Calibri (Body)";
    color: #0d47a1
}

.transform-x {
    transform: scaleX(-1);
}

.glass {
    /* From https://css.glass */
    background: rgb(246, 254, 253, 0.20);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.w-fit-content {
    width: fit-content;
}
/* End Custom Styles */

/* Start Override typeahead */
.twitter-typeahead {
    width: 100%;
}

.tt-suggestion {
    font-size: 16px;
}

    .tt-suggestion:not(:last-child) {
        border-bottom: 1px groove #dcdcdc;
    }

    .tt-suggestion:hover,
    .tt-suggestion:focus {
        background-color: #e6e6e6;
    }

.tt-menu {
    width: 100%;
}

#scrollable-dropdown-menu .tt-menu {
    max-height: 430px;
    overflow-y: auto;
    padding: 8px;
}
/* End Override typeahead */
.select2 {
    padding: 0 !important;
}

.table {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Width and height for the scrollbar track */
body::-webkit-scrollbar {
    width: 0px !important;
}
/* Month Pciker Css */
.monthly-wrp {
    position: absolute; /* Change position to absolute */
    padding: 1em;
    z-index: 1000000;
    border-radius: 3px;
    background-color: #2C3E50;
    top: calc(100% + 15px); /* Position it below the input */
    left: 0; /* Adjust left position if needed */
}

    .monthly-wrp:before {
        content: "";
        border-bottom: 6px solid #2C3E50;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }

    .monthly-wrp .years {
        margin-bottom: 0.8em;
        text-align: center;
    }

        .monthly-wrp .years select {
            border: 0;
            border-radius: 3px;
            width: 100%;
            padding: 12px !important;
        }

            .monthly-wrp .years select:focus {
                outline: none;
            }

    .monthly-wrp table {
        border-collapse: collapse;
        table-layout: fixed;
    }

    .monthly-wrp td {
        padding: 1px;
    }

    .monthly-wrp table button {
        width: 100%;
        border: none;
        background-color: #1ABC9C;
        color: #FFFFFF;
        font-size: 14px;
        padding: 0.6em;
        cursor: pointer;
        border-radius: 3px;
    }

        .monthly-wrp table button:hover {
            background-color: #16A085;
        }

        .monthly-wrp table button:focus {
            outline: none;
        }
/* End Month Pciker Css */
.z-index-100 {
    z-index: 100 !important;
}

.tt-menu {
    max-height: 580px;
    overflow-y: auto;
   /* width: 350px !important;*/
}

/* The main loader element, also handling the full-screen overlay and centering */
.intersect-loader {
    width: 3.5em;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    /* KEY CHANGE: Applying backdrop-filter for blur */
    backdrop-filter: blur(1px); /* Adjust the pixel value for more/less blur */
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white to enhance blur effect */
    z-index: 9999;
    cursor: wait;
    pointer-events: none; /* Allow clicks on content behind it */
    /* Only fade in, no fade out */
    animation: fadeIn 0.7s ease-out forwards; /* Fade-in animation */
    animation-delay: 0s; /* fadeIn starts immediately */
}
    /* Shared styles for both squares */
    .intersect-loader::before,
    .intersect-loader::after {
        content: '';
        position: absolute; /* Positioning relative to .intersect-loader */
        width: 20px; /* Size of individual squares */
        height: 20px; /* Size of individual squares */
        border-radius: 6px; /* Slightly rounded squares */
        /* Set the initial state of the squares */
        transform: translateX(calc(10px * -1)) translateY(10px) rotate(0deg) scale(0.9);
        opacity: 0.6;
        /* Apply main animation infinitely */
        animation: intersect 2.5s infinite cubic-bezier(0.68, -0.25, 0.265, 1.25); /* KEY CHANGE: 'infinite' */
        animation-delay: 0.7s; /* Delay after loader fades in */
        background-image: url('../images/favicon.ico'); /* Replace with the actual URL */
        background-size: 70% 70%; /* Or contain, or specify dimensions */
        background-position: center;
        background-repeat: no-repeat;

   /*     filter: drop-shadow(5px 5px 4px #4444dd);*/
    }

    /* Individual square colors and staggered delays */
    .intersect-loader::before { /* Square 1 (Magenta) */
         
        animation-delay: 0.7s; /* Delay after loader fades in */
        background-color: #7c4dff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12,4L10.59,5.41L16.17,11H4V13H16.17L10.59,18.59L12,20L20,12L12,4Z'/%3E%3C/svg%3E");
         
        z-index: 2;
    }
    .intersect-loader::after { /* Square 2 (Light Red) */
        background-color: #ff4081;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20,12L12,4L13.41,5.41L7.83,11H20V13H7.83L13.41,18.59L12,20L4,12L12,4L13.41,5.41L7.83,11H20V13H7.83L13.41,18.59L12,20L20,12Z'/%3E%3C/svg%3E");
        z-index: 1;
        /* Calculate delay: fadeIn duration + original offset (1.25s) */
        animation-delay: calc(0.7s + 1.25s);
    }

/* Keyframes for the Intersect Animation */
@keyframes intersect {
    0% {
        transform: translateX(calc(10px * -1)) translateY(10px) rotate(0deg) scale(0.9);
        opacity: 0.6;
    }

    25% {
        transform: translateX(0px) translateY(0px) rotate(90deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(10px) translateY(calc(10px * -1)) rotate(180deg) scale(0.9);
        opacity: 0.6;
    }

    75% {
        transform: translateX(0px) translateY(0px) rotate(270deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(calc(10px * -1)) translateY(10px) rotate(360deg) scale(0.9);
        opacity: 0.6;
    }
}

/* Keyframes for Loader Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loadingdots {
    width: 3.5em;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
}

.loadingdots div {
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    background-color: #fc2f70;
    animation: fade 0.8s ease-in-out alternate infinite;
}

.loadingdots div:nth-of-type(1) {
    animation-delay: -0.4s;
}

.loadingdots div:nth-of-type(2) {
    animation-delay: -0.2s;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.pluse-manuely {
    animation: color-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
    will-change: transform, opacity, color;
}

@keyframes color-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        color: currentColor;
        filter: none;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
        color: #b22222;
        filter: drop-shadow(0 0 4px rgba(178, 34, 34, 0.4));
    }
}


/* Notification Container Styling */

/* Notification Container Styling */
.notification-container {
    position: fixed;
    top: 10px; /* Adjusted: Position 20px down from the top of the viewport */
    left: 50%; /* Start at 50% from the left */
    transform: translate(-50%, -100%); /* Hide above the screen and center horizontally */
    opacity: 0;
    /* Smooth slide-in and fade-in animation */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease-out;
    z-index: 1000; /* Ensure it's on top of other content */
    min-width: 320px; /* Minimum width for small screens */
    max-width: 680px; /* Maximum width for larger screens */
    width: 90%; /* Responsive width for mobile */
    background-color: #ffffff; /* Clean white background */
    /* Added: Thin border around the entire notification */
    border: 1px solid transparent; /* Placeholder border, color set by type class */
    /* Removed: border-bottom: 1px solid #e0e0e0; as it's replaced by the full border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft, professional shadow */
    padding: 7px 18px; /* Vertical and horizontal padding */
    display: flex; /* Flexbox for internal content alignment */
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Space content and close button */
}

/* Responsive adjustments */
@media (min-width: 500px) {
    .notification-container {
        width: auto; /* Let content dictate width on wider screens */
        border-radius: 0 0 6px 6px; /* Slightly rounded bottom corners for a softer look */
    }
}

/* Notification Animation States */
.notification-container.show {
    transform: translate(-50%, 0); /* Slide down to display position (top) and centered */
    opacity: 1; /* Fully visible */
}

.notification-container.hide {
    transform: translate(-50%, -100%); /* Slide back up and fade out */
    opacity: 0;
}

/* Edge Bar for Type Indication */
.notification-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; /* Width of the colored bar */
    height: 100%;
    border-top-left-radius: inherit; /* Inherit border-radius from container */
    border-bottom-left-radius: inherit;
}

/* Type-specific colors for the edge bar and now the border */
.notification-container.success::before {
    background-color: #28a745;
}
/* Green */
.notification-container.success {
    border-color: #218838;
}
/* Darker green border */

.notification-container.error::before {
    background-color: #dc3545;
}
/* Red */
.notification-container.error {
    border-color: #c82333;
}
/* Darker red border */

.notification-container.info::before {
    background-color: #007bff;
}
/* Blue */
.notification-container.info {
    border-color: #0056b3;
}
/* Darker blue border */

.notification-container.warning::before {
    background-color: #ffc107;
}
/* Yellow/Orange */
.notification-container.warning {
    border-color: #d39e00;
}
/* Darker orange border */


/* Notification Content Styling */
.notification-content {
    display: flex;
    flex-direction: column; /* Stack title and message */
    flex-grow: 1; /* Allow content to take available space */
    color: #343a40; /* Dark text for contrast on light background */
    margin-left: 0px; /* Space from the edge bar */
    margin-right: 40px; /* Space from the edge bar */
}

    .notification-content h6 {
        font-size: 0.95rem; /* Clear title font size */
        font-weight: 600; /* Semibold for prominence */
        margin: 0;
        line-height: 1.3;
        color: #343a40;
    }

    .notification-content p {
        font-size: 0.8rem; /* Professional message font size */
        font-weight: 400; /* Regular weight */
        margin: 0;
        line-height: 1.3;
        color: #6c757d; /* Slightly lighter for secondary text */
        margin-top: 5px; /* Small space between title and message */
    }
    /* Adjust if no title is present */
    .notification-content h6.hidden + p {
        margin-top: 0; /* Remove top margin if title is hidden */
        font-size: 0.95rem; /* Make message larger if it's the only text */
        font-weight: 500; /* Medium weight */
        color: #343a40;
    }


/* Custom Close Button Styling */
.notification-close-btn {
    position: fixed;
    right: 5px;
    top: -5px;
    background: none;
    border: none;
    color: #6c757d; /* Grey 'x' */
    font-size: 1.2rem; /* Professional size */
    cursor: pointer;
    padding: 4px;
    margin-left: 10px; /* Space from text content */
    flex-shrink: 0; /* Prevent it from shrinking */
    outline: none; /* Remove default focus outline */
}

    .notification-close-btn:hover,
    .notification-close-btn:focus {
      
        color: red; /* Darker 'x' on hover/focus */
    }
/* Timer Bar Styling */
.notification-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px; /* Increased height for better visibility */
    width: 100%;
    background-color: transparent; /* Color set by JS */
    transform-origin: left; /* Make it shrink from left */
    transform: scaleX(1); /* Full width initially */
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle inner shadow for depth */
    /* NO transition property here; it will be set by JavaScript when animating */
}
/* Styling for the new Action Button */
.notification-action-btn {
    background-color: rgba(255, 255, 255, 0.2); /* Default semi-transparent white background */
    color: white; /* Default white text */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Default subtle white border */
    padding: 2px 2px; /* Compact padding */
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 0.6rem; /* Small font size */
    font-weight: 500; /* Medium weight */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* Prevent text from wrapping inside the button */
    flex-shrink: 0; /* Prevent button from shrinking */
    display: inline-flex; /* Use flex to align content if needed (e.g., text + icon) */
    align-items: center;
    line-height: 1; /* Align vertically with text */
    outline: none; /* Remove default focus outline */
   position:fixed;
   right:5px!important;
   bottom:8px!important;
}
    /* Hidden state for the action button */
    .notification-action-btn.hidden {
        display: none;
    }

    .notification-action-btn:hover,
    .notification-action-btn:focus {
        background-color: rgba(255, 255, 255, 0.3); /* Slightly more opaque on hover */
        border-color: rgba(255, 255, 255, 0.5); /* More prominent border on hover */
        outline: none; /* Remove default focus outline */
    }


#toast-container > .toast {
    width: fit-content !important;
    max-width: unset !important; /* Or a very large value if unset doesn't work as expected */
}
.app-container {
    padding-left:10px!important;
    padding-right:10px!important;
}

.h-807px {
    height: 807px !important
}
.h-180px {
    height: 190px !important
}
@media (max-width: 767.98px) {
    .mobile-view-hide,
    .js-download-task,
    .js-download-selected-work-permits {
        display: none !important;
    }
   
}







/* From Uiverse.io by SchawnnahJ */
.schawnnahJ-loader {
    position: relative;
    width: 2.5em;
    height: 2.5em;
    transform: rotate(165deg);
}

    .schawnnahJ-loader:before, .schawnnahJ-loader:after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 0.5em;
        height: 0.5em;
        border-radius: 0.25em;
        transform: translate(-50%, -50%);
    }

    .schawnnahJ-loader:before {
        animation: before8 2s infinite;
    }

    .schawnnahJ-loader:after {
        animation: after6 2s infinite;
    }

@keyframes before8 {
    0% {
        width: 0.5em;
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }

    35% {
        width: 2.5em;
        box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
    }

    70% {
        width: 0.5em;
        box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
    }

    100% {
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }
}

@keyframes after6 {
    0% {
        height: 0.5em;
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }

    35% {
        height: 2.5em;
        box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
    }

    70% {
        height: 0.5em;
        box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
    }

    100% {
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }
}

.schawnnahJ-loader {
    position: absolute;
    top: calc(50% - 1.25em);
    left: calc(50% - 1.25em);
}
#toastr-container.toastr-top-center > div {
    width: fit-content !important;
    min-width: 250px;
    margin-left: auto;
    margin-right: auto
}

/* Table Styling */
.custom-table-style {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-table-style th {
    background: #ecf0f1;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #bdc3c7;
    font-size: 11px;
}

.custom-table-style td {
    padding: 6px;
    border-bottom: 1px solid #ecf0f1;
}

.table.gy-1-5 td, .table.gy-1-5 th {
    padding-top: .35rem;
    padding-bottom: .35rem
}
.table {
    vertical-align: middle !important;
}
.location-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight:800;
}
.nav-link.active {
    color: var(--bs-primary) !important;
}
.form-check .form-check-input:checked + .form-check-label {
    color: var(--bs-primary) !important;

}
.remarks-list {
    list-style: none;
}

    .remarks-list li {
        padding: 12px 5px;
        margin-bottom: 10px;
        background-color: #f8f9fa;
        border-left: 4px solid #007bff;
        border-radius: 4px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

        .remarks-list li a {
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }

            .remarks-list li a svg {
                display: block;
            }

        .remarks-list li:hover {
            background-color: #e9ecef;
            transform: translateX(5px);
        }
.fs-10 {
    font-size: .65rem !important;
}
.fs-11 {
    font-size: .55rem !important;
}
.fs-12 {
    font-size: .50rem !important;
}

/* Flash animation for updated rows */
 
@keyframes rowFlash {
    0% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }

    20% {
        background-color: transparent;
    }
    40% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }
    60% {
        background-color: transparent;
    }
    80% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }
    100% {
        background-color: transparent;
    }
}

.row-updated-flash {
    animation: rowFlash 1.5s ease-in-out;
}

/* Alternative: Green success flash */
@keyframes rowFlashSuccess {
    0% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }

    20% {
        background-color: transparent;
    }

    40% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }

    60% {
        background-color: transparent;
    }

    80% {
        background-color: var(--bs-success-light); /* Brighter yellow */
    }

    100% {
        background-color: transparent;
    }
}

.row-updated-flash-success {
    animation: rowFlashSuccess 1.5s ease-in-out;
}