﻿/* /css/dieutri.css */
.dot-dieu-tri-bar {
    padding: 10px 14px 0;
}

.dot-dieu-tri-info {
    font-size: 14px;
}

.form-content {
    display: flex;
    gap: 16px;
    padding: 0 12px;
}

.dot-dieu-tri-item {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #444d5c;
    transition: background-color .15s ease;
}

    .dot-dieu-tri-item:hover {
        background-color: #f4f7fb;
    }

    .dot-dieu-tri-item.active {
        background-color: #e6f7ea;
        border-left: 3px solid #1e9c4a;
        font-weight: bold;
        color: #146c34;
    }

.tab {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 30px;
    background: #f1f4f9;
    color: #5b6472;
    transition: all .15s ease;
}

    .tab.active {
        text-decoration: none;
        color: #fff;
        background: linear-gradient(90deg, #1e9c4a, #146c34);
        box-shadow: 0 4px 10px rgba(11, 99, 206, 0.25);
    }

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.left-panel {
    width: 26%;
    padding: 12px 4px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(16, 40, 80, 0.07);
}

.divider {
    width: 12px;
    background-color: transparent;
}

.right-panel {
    width: 74%;
    padding: 14px;
    box-sizing: border-box;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(16, 40, 80, 0.07);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    color: black !important;
}

.dot-kham-item.active {
    background-color: #e6f7ea;
    border-left: 3px solid #1e9c4a;
    font-weight: bold;
    color: #146c34;
}

.close-button {
    display: none;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #ef4444;
    font-weight: bold;
}

@media (max-width: 768px) {
    .form-content {
        flex-direction: column;
        padding: 0 12px;
    }

    .left-panel {
        display: none;
    }

    .divider {
        display: none;
    }

    .right-panel {
        width: 100%;
    }
}

.table {
    margin-left: auto;
    margin-right: auto;
}

.table_Head {
    text-align: center !important;
}

.chisoThap, .chisoCao {
    font-size: 13px;
    margin-top: 4px;
}

/* Offcanvas item list (mobile) inherits .dot-dieu-tri-item styling above */
.offcanvas-body .dot-dieu-tri-item {
    color: #1f2937;
}

/* This offcanvas shows data (treatment episodes), not site navigation,
   so it needs a light readable background instead of the dark nav theme. */
#offcanvasDieuTri.offcanvas.offcanvas-start {
    background: #ffffff;
    color: #1f2937;
}

#offcanvasDieuTri .offcanvas-header {
    border-bottom: 1px solid #eef1f6;
}

#offcanvasDieuTri .offcanvas-title {
    color: #146c34;
}

#offcanvasDieuTri .btn-close {
    filter: none;
    opacity: .6;
}
