﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}






#criticalBtnWrapper {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
















/* Show button when mouse is over parent row */
.mb-2.row:hover #criticalBtnWrapper {
    opacity: 1;
    pointer-events: auto;
}

.formula-highlight {
    background-color: #FFE4B5 !important; /* light orange */
    font-weight: bold;
}
.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%;
}

a {
    color: #0d6efd;
    text-decoration: none !important;
    transition: 0.3s;
}

    a:hover {
        color: #0d6efd;
        text-decoration: none !important;
    }

body {
    font-size: 13px;
}

.footer[b-m0cyrgowaa] {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: normal !important;
    line-height: 40px !important;
    background: #ffffffc4 !important;
    padding: 10px 0px !important;
}



:root {
    --panel-bg: #f7f9fb;
    --card-bg: #ffffff;
    --muted: #6c757d;
    --accent: #0d6efd;
    --abnormal: #fdecea; /* light red */
    --selected: #e7f1ff; /* light blue */
    --grid-border: #dfe7ef;
    --small-font: 12px;
}

#navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}

    #navbar.navbar-light .navbar-nav .nav-link {
        color: #fff;
    }
/* layout */
.panel-left {
    max-height: 130vh;
    overflow-y: auto;
}

.panel-center {
    max-height: 130vh;
    overflow: auto;
}

.panel-right {
    max-height: 130vh;
    overflow-y: auto;
    background: var(--panel-bg);
    border-left: 1px solid var(--grid-border);
}

.card-compact .card-header {
    padding: .45rem .75rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.card-compact .card-body {
    padding: .4rem;
}

.form-label.small {
    font-size: .82rem;
    font-weight: 600;
}

/* patient list */
.patient-list {
    height: 340px;
    overflow: auto;
    border: 1px solid var(--grid-border);
    background: #fff;
}

.patient-item {
    padding: .45rem .6rem;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    font-size: .90rem;
}

    .patient-item:hover {
        background: #f5fbff;
    }

    .patient-item.selected {
        background: var(--selected);
        border-left: 3px solid var(--accent);
    }


/* Text style */
.filter-panel label {
    font-size: 12px;
    font-weight: 600;
    color: #000; /* black text */
    cursor: pointer;
}

/* Radio button BLACK */
.filter-panel input[type="radio"] {
    accent-color: #000; /* black radio */
    margin-right: 4px;
    transform: scale(0.9);
}

/* Panel border accent color (orange) */
/*.filter-panel {
    border: 1px solid #f28c28 !important;*/ /* accent border */
/*}*/

. /* COMMON */
.filter-panel {
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #d6dee6;
}

/* Base panel */
.filter-panel {
    transition: background-color 0.25s ease, border-color 0.25s ease;
    border-radius: 6px;
    border: 1px solid #cfd8e3;
}


.filter-machine {
    background-color: #a6cff5; /* slightly darker blue */
    border-color: #9fc4eb;
}


.filter-patient {
    background-color: #a6f7dc; /* slightly darker mint */
    border-color: #8fd0bc;
}

/* Inputs stay white (important for readability) */
.filter-panel .form-control,
.filter-panel .form-select {
    background-color: #ffffff;
}





/* result grid */
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}


    .result-table th, .result-table td {
        padding: .45rem .6rem;
        border-bottom: 1px solid #eef4f8;
        vertical-align: middle;
    }

    .result-table thead th {
        background: #f8fafc;
        font-weight: 700;
        font-size: .9rem;
        border-bottom: 2px solid var(--grid-border);
    }

.result-row.abnormal {
    background: var(--abnormal);
    color: #8a1f1f;
    font-weight: 600;
}

.result-row.selected {
    background: var(--selected);
}

.service-box {
    height: 140px;
    overflow: auto;
    border: 1px solid var(--grid-border);
    background: #fff;
}

/* compact controls */
.compact-select {
    height: 34px;
    font-size: .92rem;
}

.footer-status {
    font-size: .82rem;
    color: var(--muted);
    padding-top: 6px;
}



.btn-block-sm {
    width: 100%;
    font-size: .92rem;
    padding: .45rem .5rem;
}

.small-muted {
    font-size: .82rem;
    color: var(--muted);
}

.form-label.small {
    font-size: 11px !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
}

.compact-select {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 12px !important;
}

#rightPanel {
    transition: all 0.3s ease;
}

    #rightPanel.collapsed #rightContent {
        display: none;
    }

#rightContent {
    font-size: 13px;
}

/* Professional highlighted panel */
.panel-left .card {
    border-radius: 12px; /* Smooth corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for depth */
}

    /* Optional: Highlight on hover */
    .panel-left .card:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

/* Filter panel header styling */
#filterPanel {
    padding: 10px;
    background-color: #f8f9fa;  subtle highlight 
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

/* Scrollable patient list styling */
.panel-left .card > div:last-child {
    padding: 10px;
    overflow-y: auto;
}

.hide-col {
    display: none;
}

.row-selected {
    font-weight: bold;
    background-color: #ffeeba; /* optional highlight */
}


#tblresultsTable tr,
#tblresultsTable td,
#tblresultsTable th {
    border: 1px solid #d1d1d1;
}

#tblresultsTable {
    border-collapse: collapse;
    width: 100%;
}

    #tblresultsTable th {
        background: #f5f7fa;
        font-weight: 600;
        padding: 6px;
    }

    #tblresultsTable td {
        padding: 6px;
        font-size: 12px;
    }

/*#filterPanel {
    background-color: #21252909;
}*/

#tblResultList tr {
    height: 22px !important;
}

#tblResultList td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 11px !important;
}

#tblResultList input {
    height: 40px !important;
    padding: 2px 4px !important;
    font-size: 11px !important;
}

#tblResultList td:nth-child(4) {
    font-weight: bold;
}

/* Result column (the <input> box text) */
#tblResultList .result-input {
    font-weight: bold !important;
    font-size: 14px;
}
/* === Card Header (Hospital Dark Teal) === */
.card-header-custom {
    background: #e66c87;
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: 6px 6px 0 0;
    padding: 12px 15px;
}

.row-selected {
    background-color: #d3d3d3 !important; /* light gray */
}

.highlight-checkbox {
    outline: 3px solid #8a1f1f;
    border-radius: 4px;
    transition: outline 0.3s ease-in-out;
}

.fs-7 {
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .footer[b-m0cyrgowaa] {
        position: relative !important;
        width: 100%;
        white-space: normal !important;
        line-height: 22px !important;
    }
}

.custom-bg {
    background-color: rgb(255, 224, 192);
}
.custom-select-bg {
    background-color: rgb(255, 224, 192);
}

.hide-column {
    display: none !important;
}



@media (min-width: 991.98px) {
    .toggleRight {
        position: absolute;
        right: 0px;
        padding: 4px 2px 4px 4px;
        background: linear-gradient(90deg, rgba(19, 103, 167, 1) 0%, rgb(177 56 93) 100%);
        /*        background: #1f8ccc;*/
        width: 30px !important;
        height: 30px !important;
        /*        border-radius: 100%;*/
        text-align: left;
        color: #fff;
        z-index: 2;
        border-bottom-left-radius: 4px;
        border-top-left-radius: 4px;
    }

        .toggleRight:hover {
            color: #fff;
        }
    /* Right Panel Slide */
    #rightPanel {
        transition: all 0.35s ease;
        max-width: 300px; /* width of col-md-2 */
        overflow: hidden;
        border-radius: 8px;
        position: absolute;
        right: 0px;
        height: 80%;
    }

        #rightPanel.collapsed {
            max-width: 0 !important;
            padding: 0 !important;
            opacity: 0;
            transform: translateX(100%);
        }

    /* Center panel smooth expansion */
    #centerPanel {
        transition: all 0.35s ease;
    }
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
    color: #444444;
    transition: all 0.5s;
    z-index: 997;
    background: linear-gradient(90deg, rgba(19, 103, 167, 1) 0%, rgb(177 56 93) 100%);
    /*        background-color: #1f8ccc;*/
}


    .header .branding {
        /*    min-height: 60px;*/
        padding: 10px 0;
    }

    .header .logo {
        line-height: 1;
    }

        .header .logo img {
            max-height: 36px;
            margin-right: 8px;
        }

        .header .logo h1 {
            font-size: 30px;
            margin: 0;
            font-weight: 700;
            color: #172624;
        }

.scrolled .header {
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

    .scrolled .header .topbar {
        height: 0;
        visibility: hidden;
        overflow: hidden;
    }

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

        .navmenu ul {
            margin: 0;
            padding: 0;
            display: flex;
            list-style: none;
            align-items: center;
        }

        .navmenu li {
            position: relative;
        }

        .navmenu a,
        .navmenu a:focus {
            color: #fff;
            padding: 0px 15px;
            font-size: 15px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
            white-space: nowrap;
            transition: 0.3s;
            text-decoration: none;
        }

            .navmenu a i,
            .navmenu a:focus i {
                font-size: 12px;
                line-height: 0;
                margin-left: 5px;
                transition: 0.3s;
            }

        .navmenu li:last-child a {
            padding-right: 0;
        }

        .navmenu li:hover > a,
        .navmenu .active,
        .navmenu .active:focus {
            color: #f1f1f1;
        }

        .navmenu .dropdown ul {
            margin: 0;
            padding: 10px 0;
            background: #ffffff;
            display: block;
            position: absolute;
            visibility: hidden;
            left: 14px;
            top: 130%;
            opacity: 0;
            transition: 0.3s;
            border-radius: 4px;
            z-index: 99;
            box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        }

            .navmenu .dropdown ul li {
                min-width: 200px;
            }

            .navmenu .dropdown ul a {
                padding: 10px 20px;
                font-size: 15px;
                text-transform: none;
                color: #222222;
            }

                .navmenu .dropdown ul a i {
                    font-size: 12px;
                }

                .navmenu .dropdown ul a:hover,
                .navmenu .dropdown ul .active:hover,
                .navmenu .dropdown ul li:hover > a {
                    color: #0d6efd;
                }

        .navmenu .dropdown:hover > ul {
            opacity: 1;
            top: 100%;
            visibility: visible;
        }

        .navmenu .dropdown .dropdown ul {
            top: 0;
            left: -90%;
            visibility: hidden;
        }

        .navmenu .dropdown .dropdown:hover > ul {
            opacity: 1;
            top: 0;
            left: -100%;
            visibility: visible;
        }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: #ffffff;
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu {
        padding: 0;
        z-index: 9997;
    }

        .navmenu ul {
            display: none;
            list-style: none;
            position: absolute;
            inset: 60px 20px 20px 20px;
            padding: 10px 0;
            margin: 0;
            border-radius: 6px;
            background-color: #ffffff;
            overflow-y: auto;
            transition: 0.3s;
            z-index: 9998;
            box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        }

        .navmenu a,
        .navmenu a:focus {
            color: #222222;
            padding: 10px 20px;
            font-size: 17px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
            white-space: nowrap;
            transition: 0.3s;
        }

            .navmenu a i,
            .navmenu a:focus i {
                font-size: 12px;
                line-height: 0;
                margin-left: 5px;
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transition: 0.3s;
                background-color: #0d6efd;
            }

                .navmenu a i:hover,
                .navmenu a:focus i:hover {
                    background-color: #0d6efd;
                    color: #ffffff;
                }

            .navmenu a:hover,
            .navmenu .active,
            .navmenu .active:focus {
                color: #0d6efd;
            }

                .navmenu .active i,
                .navmenu .active:focus i {
                    background-color: #0d6efd;
                    color: #ffffff;
                    transform: rotate(180deg);
                }

        .navmenu .dropdown ul {
            position: static;
            display: none;
            z-index: 99;
            padding: 10px 0;
            margin: 10px 20px;
            background-color: #ffffff;
            border: 1px solid #0d6efd;
            box-shadow: none;
            transition: all 0.5s ease-in-out;
        }

            .navmenu .dropdown ul ul {
                background-color: rgba(33, 37, 41, 0.1);
            }

        .navmenu .dropdown > .dropdown-active {
            display: block;
            background-color: rgba(33, 37, 41, 0.03);
        }

    /* Mobile only */
    @media (max-width: 768px) {

        table th,
        table td {
            display: none;
        }

        .col-item,
        .col-result,
        .col-normal {
            display: table-cell !important;
        }
    }


    .mobile-nav-active {
        overflow: hidden;
    }



    table thead th {
        background-color: #e0e0e0; /* light gray */
        color: #000;
        font-weight: bold;
        vertical-align: middle;
    }


    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(33, 37, 41, 0.8);
        transition: 0.3s;
    }

        .mobile-nav-active .navmenu > ul {
            display: block;
        }


    .btn-lis {
        background-color: #6c757d !important; /* gray */
        color: #fff !important;
        border: 1px solid #5c636a;
        padding: 6px 14px;
        font-weight: 600;
        border-radius: 6px;
    }

        /* Slight hover effect */
        .btn-lis:hover {
            background-color: #5c636a !important;
        }

        /* Optional: disabled look */
        .btn-lis:disabled {
            background-color: #adb5bd !important;
            cursor: not-allowed;
        }


}
