﻿/* 
    fillpure light blue is 6ED9ED, dark blue is 26559C
    original ui background is 008aab, original hover color is 007b97
    6ED9ED or 008aab
    007b97 to 26559C */

:root {
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-border-radius: 3px;
    --bs-border-radius: 3px;
    --bs-primary: #4BA1C6 !important;
    --bs-primary-rgb: #4BA1C6 !important;
    --bs-primary-border-subtle: #4BA1C6 !important;
    --bs-primary-text-emphasis: #4BA1C6 !important;
    --bs-blue: #4BA1C6 !important;
    --bs-blue: #4BA1C6 !important;
    --bs-blue: #4BA1C6 !important;
    --bs-blue: #4BA1C6 !important;
    --bs-primary: #4BA1C6 !important;
    --bs-link-color: #4BA1C6 !important;
    --bs-btn-color: #4BA1C6 !important;
    --bs-accordion-active-bg: #6ED9ED !important;
}

btn-colorbody {
    font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif,arial,sans-serif;
    color: var(--bs-blue);
    color: #333;
    /*background-color: #4BA1C6;*/
    /*margin-top: 50px;*/
}


.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        height: 40px;
        margin-right: 10px;
    }

    .navbar-brand span {
        font-size: 1.2rem;
        font-weight: normal;
    }

.navbar {
    background-color: var(--bs-blue) !important;
}

    .navbar .ms-auto .nav-item .nav-link {
        white-space: nowrap;
    }

.content-section {
    margin-top: 140px;
    margin-bottom: 96px;
    /*    padding-left: 12px;
    padding-right: 12px;*/
    max-width: 100%;
    flex: 1;
    width: 100%;
}

.card {
    margin-bottom: 15px;
}

.nav-links {
    top: 56px;
    background-color: whitesmoke !important;
    border-bottom: solid !important;
    border-bottom-width: 2px !important;
    border-bottom-color: var(--bs-blue) !important;
}

footer {
    text-align: right;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: whitesmoke !important;
    border-top: solid !important;
    border-top-width: 2px !important;
    border-top-color: var(--bs-blue) !important;
    left: 0px;
}

.titleSpan {
    color: #ffffff;
    vertical-align: middle;
    font-size: 2em;
    font-weight: bolder;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
}

.nav-links, .nav-links nav, .nav-links .navbar-brand {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

    .nav-links a {
        font-weight: bold;
    }

    .nav-links .active {
        background-color: #e7e7e7;
    }

        .nav-links .active a {
            color: #000000 !important;
        }

.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6, .card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    text-align: center;
    vertical-align: middle;
}














body {
    background: linear-gradient(135deg, #4BA1C6, #06b6d4);
    min-height: 100vh;
    display: flow;
    /*display: flex;*/
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.card {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}


.text-primary {
    color: #4BA1C6 !important;
}

.btn-primary {
    background-color: #4BA1C6;
    border-color: #4BA1C6;
    border-color: #024a5c;
}

    .btn-primary:hover {
        background-color: #26559C;
        border-color: #26559C;
    }


/* -- Material Design Table style -------------- */
.table {
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    border-color: transparent;
    border-radius: 10px;
    border: none;
}

    .table tr, .table td {
        background-color: transparent;
        border-color: transparent;
        border: none;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

        .table tr:hover, .table td:hover {
            background-color: #72d0eb;
            border-color: #72d0eb;
        }

    .table > thead > tr,
    .table > tbody > tr,
    .table > tfoot > tr {
        -webkit-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

.list-group-item:hover {
    background-color: #72d0eb;
    border-color: #72d0eb;
}

td a {
    margin-right: 5px;
}


.xmodal {
    /* Start hidden */
    display: none;
    /* Modal is a fixed overlay that covers the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Semi-transparent background */
    background-color: rgba(0, 0, 0, 0.5);
    /* Place modal above other elements */
    z-index: 9999;
    /* Use flexbox to center the content */
    align-items: center;
    justify-content: center;
}

    .xmodal.active {
        /* Show the modal by overriding display */
        display: flex;
    }

.xmodal-dialog {
    max-width: 95vw;
    max-height: 95vh;
    overflow: auto;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
}

.xmodal-content {
    padding: 1rem;
}

.xmodal-body {
    position: relative;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
}

#modalImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.dropdown-menu {
    --bs-dropdown-min-width: 15rem !important;
}

    @media print {
        #divReport > .container-fluid {
            display: flex;
            flex-direction: column;
        }

        .no-print {
            display: none !important;
        }

        .divSubInspection {
            margin-top: -120px;
        }

        /* Force images section to the end */
        .print-images-last {
            order: 9999;
            /*page-break-before: always;*/ /* start images on a new page */
        }

            /* Prevent images card from splitting awkwardly */
            .print-images-last .card-body {
                /*page-break-inside: avoid;*/
            }

            /* Optional: reduce image size for better fit */
            .print-images-last img {
                max-height: 250px;
            }

        .case-field {
            break-inside: avoid;
            page-break-inside: avoid;
        }

            /* Also protect grid columns */
            .case-field,
            .case-field * {
                break-inside: avoid !important;
                page-break-inside: avoid !important;
            }

    }


.case-field {
    background: #f8f9fa;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    height: 100%;
    border: 1px solid #e3e6ea;
    transition: all .15s ease;
}

    .case-field:hover {
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

.case-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 3px;
    word-break: break-word;
}

.case-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
    word-break: break-word;
}

.case-block {
    background: #ffffff;
    border-radius: 6px;
    padding: 0.65rem;
    border: 1px solid #dee2e6;
    line-height: 1.45;
}

.loginform {
    margin-top: 10em;
}

.list-group-item[data-subid] {
    cursor: pointer;
}

#tabCases tbody tr[data-caseid] {
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .titleSpan {
        font-size: 1.1em;
        white-space: normal;
        overflow: visible;
    }

    .content-section {
        margin-top: 105px;
    }
}