html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

#editIncidentBody {
    overflow-y: auto;
}
.incidentManagement-modal-width {
    max-width: 95vw; /* 95% of the viewport width */
}

#attachmentList li.is-invalid {
    color: #dc3545;
    font-weight: 600;
}


#uploadSpinner {
    background-color: rgba(255, 255, 255, 0.6); /* soft light overlay */
    backdrop-filter: blur(4px); /* adds a subtle blur */
    border-radius: 12px;
    padding: 1.5rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem white, 0 0 0 0.5rem #1b6fd8;
}

.readonly-div {
    display: block;
    width: 100%;
    word-break: break-word;
    white-space: normal;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #e9ecef; /* Matches disabled select */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    pointer-events: none; /* Prevents interaction */
    opacity: 1; /* Keep full visibility */
    font-family: 'Montserrat', sans-serif;
}

.readonly-input {
    background-color: #e9ecef;
    opacity: 1;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-weight: 600;
}

/****************************/
/*     NAV BAR STYLES      */
/****************************/

.custom-navbar {
    background-color: #105C7C;
}

    .custom-navbar .nav-link {
        color: black;
    }

    .custom-navbar .navbar-brand img {
        filter: brightness(0) invert(1);
    }

.nav-pipes {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .nav-pipes .nav-item {
        display: flex;
        align-items: center;
    }

        /* Adds | between nav items */
        .nav-pipes .nav-item:not(:last-child)::after {
            content: "|";
            color: white;
            margin-left: 12px;
            margin-right: 12px;
            opacity: 0.7;
            display: inline-block;
            line-height: 1; /* Keeps the | aligned vertically */
        }

    .nav-pipes .nav-link {
        color: white;
        text-decoration: none;
        position: relative;
        white-space: nowrap;
    }

        .nav-pipes .nav-link::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: white;
            transition: width 0.3s;
        }

        .nav-pipes .nav-link:hover::before {
            width: 100%;
        }

    .nav-pipes .nav-item.dropdown .nav-link:hover::before {
        width: 60%;
    }

    /* Remove Bootstrap caret (we use our own chevron) */
    .nav-pipes .dropdown-toggle::after {
        display: none;
    }

/* Dropdown chevron */
.dropdown-chevron {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-item.dropdown.show .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-pipes .dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

/* Style buttons like nav links */
.nav-pipes .nav-btn {
    color: white;
    text-decoration: none;
    background: none !important;
    border: none !important;
    padding: .5rem 1rem;

    margin: 0;
    font: inherit;
    cursor: pointer;

    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

        .nav-pipes .nav-btn::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: white;
            transition: width 0.3s;
        }

        .nav-pipes .nav-btn:hover::before {
            width: 100%;
        }

    /* Remove extra spacing from form */
    .nav-pipes .nav-item form {
        margin: 0;
        padding: 0;
    }

.custom-navbar .navbar-toggler {
    color: white;
    border-color: white;
}

.custom-navbar .navbar-toggler-icon {
    filter: invert(1); /* makes the default icon visible on dark bg */
}

/* Make dropdown menu readable on your dark navbar */
.custom-navbar .dropdown-menu {
    background-color: #effdff;
    border-radius: 10px;
}

.custom-navbar .dropdown-item {
    font-family: 'Montserrat', sans-serif;
}

.nav-pipes .nav-link i,
.nav-pipes .nav-btn i {
    font-size: 1rem;
    line-height: 1;
}

/* Hide the long title before the navbar collapses */
@media (max-width: 1199.98px) {
    .portal-title {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .nav-pipes .nav-item::after {
        content: none !important;
        display: none !important;
    }
}

/* Collapsed (hamburger) navbar: stack dropdown items underneath */
@media (max-width: 991.98px) {

    /* Center the whole nav list */
    .nav-pipes {
        align-items: center;
        text-align: center;
        width: 100%;
    }

        /* Each nav item centered */
        .nav-pipes .nav-item {
            display: block;
            width: 100%;
            text-align: center;
        }

        /* Center links and buttons */
        .nav-pipes .nav-link,
        .nav-pipes .nav-btn {
            justify-content: center;
            text-align: center;
            width: 100%;
        }

    /* Dropdown menu centered under its toggle */
    .custom-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        margin-top: .25rem;
        text-align: center;
    }

    /* Center dropdown items themselves */
    .custom-navbar .dropdown-item {
        text-align: center;
    }
}

@media (max-width: 991.98px) {

    /* Disable hover underline in hamburger view */
    .nav-pipes .nav-link::before,
    .nav-pipes .nav-btn::before {
        display: none !important;
        content: none !important;
    }

@media (max-width: 599.98px) {
    .portal-title {
        display: none !important;
    }

    .custom-navbar .logo img {
        margin-right: 0 !important;
    }
}
}


/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

    #loadingOverlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }


.big-checkbox {
    width: 2.2em;
    height: 2.2em;
    margin: 0;
    cursor: pointer;
}

/* User Management Grid Column Styles */
#usersTable {
    width: 100% !important;
    table-layout: fixed !important;
}

    #usersTable td.email-column {
        min-width: 380px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    #usersTable td.edit-column {
        max-width: 100px;
        width: 100px;
        text-align: center;
    }

    #usersTable td.org-name-column {
        max-width: 150px;
        width: 150px;
    }

.table-responsive {
    box-sizing: border-box;
}

/* Audit Grid Column Styles */
#auditTable {
    width: 100% !important;
    table-layout: auto !important;
}

    #auditTable td.entity-column,
    #auditTable th.entity-column {
        min-width: 180px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

/* Organisation Grid Column Styles */
#organisationsTable {
    width: 100% !important;
    table-layout: fixed !important;
}

    #organisationsTable td.is-enabled-column {
        text-align: center;
    }

    #organisationsTable td.org-name-column {
        max-width: 150px;
        width: 150px;
    }

.table-responsive {
    box-sizing: border-box;
}

table,
.table,
table th,
table td,
.table th,
.table td,
label,
p,
span,
.alert,
.form-label,
.form-control,
.form-select,
.form-check-input,
.form-check-label {
    font-family: 'Montserrat', sans-serif;
}