﻿
html {
    scroll-behavior: auto !important;
}
/* Move down content because we have a fixed navbar that is 50px tall */
/*body {
    padding-top: 50px;
    padding-bottom: 20px;
}*/

.form-control[readonly],
.form-select[readonly] {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

a {
    text-decoration: none;
}
.noleftborder {
    border-left: 0 !important;
}
/*input[type="radio"]:checked + label {
            font-weight: normal;
        }

        input[type="checkbox"]:checked + label {
            font-weight: normal;
        }*/
/* Make label the anchor */
/* Align checkbox + text */
.checkbox.checkboxlist input[type="checkbox"] {
    vertical-align: middle;
    margin-right: .4rem;
}

/* Label alignment */
.checkbox.checkboxlist label {
    vertical-align: middle;
    margin-bottom: 0;
    line-height: 1.3;
    display: inline;
}

.checkbox.checkboxlist {
    padding-left: 0;
}

/* Table layout safety */
table.cbl {
    width: 100%;
    table-layout: fixed;
}

    table.cbl td {
        padding: 4px 6px 4px 0;
        vertical-align: middle;
        overflow-wrap: break-word;
        word-break: break-word;
        border: 0 !important;
    }

.modal-body {
    overflow-x: hidden;
}
/* Align textbox under last checkbox */
.prize-other-input {
    max-width: 320px; /* prevents full width */
    margin-left: 1rem; /* matches checkbox text indent */
}

/* Mobile: allow more width */
@media (max-width: 576px) {
    .prize-other-input {
        max-width: 100%;
    }
}

.prize-other-wrapper {
    margin-left: 48%; /* tweak this value until aligned */
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/
.rntTextBox {
    padding-top: 10px !important;
}

.riTextBox {
    font-size: 1rem !important;
    padding-top: 7px !important;
    border: 1px solid #DEE2E6 !important;
}

.rntDisabled {
    background-color: #e9ecef !important;
    opacity: 1 !important;
    border: 1px solid #DEE2E6 !important;
}

.darkblue {
    color: darkblue;
}
.rgAltRow, .rgRow {
    cursor: pointer !important;
}
.rwLoading {
    background-image: none !important;
}

.RadWindow .rwIcon {
    top: 3px !important;
    padding-right: 10px !important;
    background-image: none !important;
}

/*spinner for updatepanel*/
/*.loader {*/
    /*display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid #e9ecef;*/ /* light gray "track" */
    /*border-right-color: transparent;*/ /* make one side transparent */
    /*border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;*/
    /*display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid #0d6efd;*/ /* light gray track */
    /*border-right-color: transparent;*/ /* hide one side */
    /*border-top-color: #0d6efd;*/ /* Bootstrap 5 primary blue */
    /*border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;
}*/

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}
/* Remove Telerik's built-in image */
.rwLoading {
    background-image: none !important;
}

    /* Overlay */
    /*.rwLoading::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, .35);
        z-index: 9998;
    }*/

    /* Bootstrap 5–style spinner */
    /*.rwLoading::after {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 3rem;
        height: 3rem;
        margin: -1.5rem;
        border: 0.25em solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: spinner-border .75s linear infinite;
        color: #0d6efd;*/ /* Bootstrap primary */
        /*z-index: 9999;
    }*/

/* Same animation name Bootstrap uses */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
/* Download overlay already exists */
/*#loading {
    background: rgba(255, 255, 255, .35);
}*/

    /* Bootstrap 5 spinner for download overlay */
    /*#loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 3rem;
        height: 3rem;
        margin: -1.5rem;
        border: 0.25em solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: spinner-border .75s linear infinite;
        color: #0d6efd;
    }*/

/* You already have this keyframes block */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
/*radajaxpanel on master page*/
/* Full-screen panel */
.bs5-ajax-loading,
.bs5-ajax-loading .raDiv {
    width: 100% !important;
    height: 100% !important;
}

    /* Overlay */
    .bs5-ajax-loading .raDiv {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20000;
        transition: background-color 0.15s ease-in-out;
    }

    /* ☠️ Completely kill Telerik spinner (background-based) */
    .bs5-ajax-loading .raColor {
        background-color: rgba(0, 0, 0, 0.02) !important;
        background-image: none !important;
    }


    /* Some versions render it on raDiv itself */
    .bs5-ajax-loading .raDiv {
        background-image: none !important;
    }

        /* Bootstrap 5 spinner */
        .bs5-ajax-loading .raDiv::after {
            content: "";
            width: 3rem;
            height: 3rem;
            border: 0.25em solid var(--bs-primary);
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border .75s linear infinite;
        }
/*master page css form menu*/
/* Nav link padding */
.nav-link {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

/* Add arrow down for top-level dropdowns */
.navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    display: inline-block;
    vertical-align: middle;
    content: "";
    border-top: 4px solid currentColor; /* arrow pointing down */
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    margin-left: 0.25em; /* space from text */
}

.dropdown-menu {
    margin-top: 0;
}

    .dropdown-menu .dropdown-toggle::after {
        vertical-align: middle;
        border-left: 4px solid;
        border-bottom: 4px solid transparent;
        border-top: 4px solid transparent;
    }

    .dropdown-menu .dropdown .dropdown-menu {
        left: 100%;
        top: 0%;
        margin: 0 20px;
        border-width: 0;
    }

        .dropdown-menu .dropdown .dropdown-menu.left {
            right: 100%;
            left: auto;
        }

@media (min-width: 768px) {
    .dropdown-menu .dropdown .dropdown-menu {
        margin: 0;
        border-width: 1px;
    }

    .dropdown-menu > li a:hover,
    .dropdown-menu > li.show {
        background: #007bff;
        color: white;
    }

        .dropdown-menu > li.show > a {
            color: white;
        }
}

/* First-level dropdown items (Catalogues, Equipment, Review, etc.) */
.dropdown-menu > .dropdown-item:hover,
.dropdown-menu > .dropdown-item:focus,
.dropdown-menu > .dropdown-item.active {
    background-color: #007bff;
    color: #fff;
}

/* When a dropdown item is the active/showing trigger */
.dropdown-menu > .dropdown-item.show {
    background-color: #007bff;
    color: #fff;
}

/* Dropdown items wrapped in :Panel (like Prohibited Persons) */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    background-color: #007bff;
    color: #fff;
}

/* Log Out dropdown item */
.dropdown-menu .dropdown-item.text-danger {
    color: #dc3545; /* Bootstrap danger red */
}

    /* Hover effect for Log Out */
    .dropdown-menu .dropdown-item.text-danger:hover,
    .dropdown-menu .dropdown-item.text-danger:focus {
        color: #fff; /* text turns white */
        background-color: rgba(220, 53, 69, 0.1); /* subtle red background */
    }

/* Logo spacing */
.smLogo {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .smLogo {
        margin-top: 50px;
    }
}
/* Modern navbar */
.navbar-modern {
    background-color: #0E3F75; /* Deep navy #1c2a48 */
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/ /* Subtle depth */
}

    /* Navbar links */
    .navbar-modern .nav-link {
        color: #323232;
        padding: 0.75rem 1rem;
        font-weight: 400; /* reserve space */
        /*opacity: 0.6;*/ /* visually lighter */
        transition: opacity 0.2s, color 0.2s;
    }

        .navbar-modern .nav-link:hover {
            color: #C12637;
            opacity: 1; /* looks bold */
        }

    /* Dropdown */
    .navbar-modern .dropdown-menu {
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .navbar-modern .dropdown-item:hover {
        background-color: #0d6efd; /* Bootstrap primary */
        color: #fff;
    }

    /* Toggler button */
    .navbar-modern .navbar-toggler {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.1);
        color: #fff;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Hamburger icon */
    .navbar-modern .navbar-toggler-icon {
        width: 24px; /* adjust size */
        height: 24px; /* adjust size */
        background-size: 24px 24px; /* ensures SVG scales correctly */
    }


    .navbar-modern .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='navy' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .navbar-modern .navbar-toggler:hover {
        background-color: rgba(255,255,255,0.2);
    }

.navbar-nav .nav-link.main-menu.is-active {
    color: var(--bs-danger);
}

.dropdown-item.is-active,
.dropdown-item.is-active:hover,
.dropdown-item.is-active:focus {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.upload-disabled {
    pointer-events: none;
    opacity: 0.6;
}
