html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn-xs {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.75rem !important;
}

.navbar-brand:hover {
    color: black !important;
    border-bottom: 1px solid black !important;
}

.underline {
    border-bottom: 2px black solid;
    font-weight: 700;
    color: #005C2C;
}

.myborder {
    border: 2px black solid;
    font-weight: 700;
    color: #005C2C;
}

.custom-placeholder::placeholder {
    color: #333 !important; /* Replace #333 with your preferred dark color */
    opacity: 1 !important; /* Ensures the color is fully opaque */
}

.form-control, .form-select {
    border-radius: 0 !important;
    border-color: darkblue;
}

.fontsmall {
    font-size: 12px !important;
    font-weight: bold !important;
}

.fontprint {
    font-size: 11px !important;
    color: black !important;
}

.fontExtraSmall {
    font-size: 8px !important;
    font-weight: bold !important;
}

.fontDashboard {
    font-size: 14px !important;
    font-weight: bold !important;
}

.fontWeightHigh {
    font-weight: 900;
}

.space table, tr, td {
    margin: 0px !important;
    padding: 0px !important;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9) url('../images/loader.gif') no-repeat center center;
    z-index: 10000;
    display: none; /* Hidden by default */
}

@media print {
    /* Ensure the page is formatted as A4 */
    @page {
        size: A4; /* A4 dimensions: 210mm x 297mm */
        margin: 0.5cm; /* Adjust margins as needed */
    }

    /* Fit all content within one page */
    body {
        margin: 0;
        padding: 0;
        transform-origin: top left;
        transform: scale(calc(1 / var(--scale-factor)));
    }

    /* Calculate scaling dynamically */
    :root {
        --scale-factor: calc(var(--content-height) / 297px);
        --height-print-view: ();
    }
}

.text-justify {
    text-align: justify;
}

.custom-table {
    border-width: 2px !important; /* Set your desired border width */
    border-color: grey !important;
}

    .custom-table th,
    .custom-table td {
        border-width: 2px !important; /* Ensure consistent thickness for cell borders */
        border-color: grey !important;
    }

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

.scrolling-notice {
    height: 100px;
    overflow: hidden;
    position: relative;
}

    .scrolling-notice p {
        position: absolute;
        width: 100%;
        animation: scroll-up 12s linear infinite;
    }

@keyframes scroll-up {
    0% {
        top: 100%;
    }

    100% {
        top: -100%;
    }
}

.highlight-text {
    position: relative;
    display: inline-block;
    font-weight: bold;
    color: #000;
    background: linear-gradient(90deg, #ffe600, #ffdd00, #ffe600);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    padding: 0.2em 0.4em;
    border-radius: 5px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
