﻿:root {
    /* fb-20260804-132032-498: "quét cả hệ thống, chỗ dùng xanh lục -> màu phân hệ".
       master.css nạp MỌI trang nên đổi giá trị token teal (#055952) tại ĐÂY = áp cho
       TOÀN HỆ trong 1 chỗ: header/footer/menu/nút/viền/chữ .ColorBase... đều theo.
       Xanh lục -> MÀU PHÂN HỆ chuẩn #2563eb (xanh dương). Module nào tự đặt màu header
       (vd banlamviec-dash.js ghi đè --main-color theo cấu hình vai) vẫn thắng như cũ. */
    --main-color: #2563eb;
    --lever2-color: #1d4ed8;
    --tranfer-color: #2563eb85;
    --tranfer-color2: #2563eb33;
    --constrast-color: #440000;
}

body {
}

#divHeader {
    height: 35px;
    background: var(--main-color);
    color: #fff;
    padding: 5px;
    width: 100%;
    float: left
}

#divFooter {
    height: 35px;
    background: var(--main-color);
    color: #fff;
    padding: 5px;
    width: 100%;
    float: left
}

#divMenu {
    width: 220px;
    float: left;
    min-height: calc(100vh - 70px);
    background: var(--main-color);
    color: #fff;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
}

    #divMenu td {
        padding-left: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #fff;
        cursor:pointer
    }

    #divMenu a {
        color: #fff;
        text-decoration: none;
        cursor: pointer
    }

        #divMenu td:hover a {
            font-weight: bold;
            color: var(--constrast-color);
        }

#divBody {
    min-height: calc(100vh - 80px);
    width: calc(100% - 220px);
    user-select: none;
    float: left;
}
    #divBody .e-spinner-pane {
        background:rgba(0,0,0,0.4);
    }

.divTitle {
    width: 100%;
    float: left;
    border-bottom: 1px solid var(--main-color);
    padding: 5px;
    text-transform: uppercase;
    font-size: 16pt;
    font-weight: bold
}

.button {
    padding: 5px;
    border: 1px solid var(--main-color);
    background: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer
}

    .button:hover {
        background: var(--main-color);
        color: #fff;
    }

.buttonactive {
    background: var(--main-color);
    color: #fff;
}

.buttondeactive {
    background: #fff;
    color: var(--main-color);
}

.divBot {
    width: 100%;
    float: left;
    margin-top: 10px;
    padding: 5px;
    text-transform: uppercase;
    font-size: 16pt;
    font-weight: bold
}

#divNguoiDung {
    position: relative;
    float: right;
    text-align: right;
    cursor: pointer;
    width: 150px;
    user-select: none;
}

#divThongTin {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    padding: 0px !important;
    padding-bottom: 10px !important;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 100000 ;
}

#divTenDangNhap:hover #divThongTin {
    font-weight: bold;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#divTenDangNhap:hover div {
    opacity: 1;
    display: block
}

.btnMaster {
    width: 100%;
    float: left;
    padding: 5px;
    padding-left: 10px;
    text-align: left;
    border-bottom: 1px solid var(--main-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .btnMaster:hover a {
        color: var(--main-color) !important;
        font-weight: bold
    }

@media (max-width: 768px) {
    #divBody {
        width: 100%
    }

    #divTongQuanYeuCau {
        margin-top: 25px !important
    }
}

.ColorBase {
    color: var(--main-color) !important;
}

.titleControl {
    width: 100px;
    float: left;
    padding-top: 3px !important
}

.bodyControl {
    width: calc(100% - 100px);
    float: left
}

    .bodyControl input {
        border-radius: 3px;
        border-width:1px;
        border-color:var(--main-color);
        width: 100%;
        height:30px;
    }
input[type="checkbox"] {
    /* fb-20260804-132032-498: xanh lục hệ thống (--main-color #055952, thấy ở ô tick màn
       Danh mục Khoa/Kho) -> màu PHÂN HỆ. Ưu tiên --accent của phân hệ nếu có, mặc định
       màu phân hệ chuẩn #2563eb (xanh dương) — KHÔNG dùng xanh lục nữa. */
    accent-color: var(--accent, #2563eb) !important;
}

/* ══ ICON NÚT KÝ SỐ — NT-KYSO B8 (Doc/LUAT/11-kyso-nut.md) ══════════════════════════════════════
   MỘT NGUỒN cho mọi NÚT gọi ký/huỷ ký số trên HisSite (master.css nạp MỌI trang qua _MainLayout):
     nút KÝ (chưa ký)        : fa-solid fa-signature
     nút đã ký (chỉ icon)    : fa-solid ks-ic-daky   (chữ ký + tích xanh góc dưới-phải, ghép bằng ::after)
     nút HUỶ KÝ              : fa-solid fa-file-circle-xmark
   JS gọi HisKySo.icon("ky"|"daky"|"huyky") / HisKySo.iconLop(...) (kyso.js).
   FA Free 6.7.2 KHÔNG có icon «chữ ký kèm tích» nên phải ghép. MỘT phần tử <i> để thay thẳng mọi chỗ
   đang dựng '<i class="fa-solid ' + lớp + '">' mà không phải rẽ nhánh.
   Nền tròn sau tích: --ks-ic-nen → --panel (có trong .blv-root VÀ .blv-dlg-overlay, cả sáng lẫn tối)
   → Canvas (màu nền hệ, theo color-scheme; module-dark.css đặt color-scheme:dark khi theme tối).
   Nút có nền đặc riêng (nút primary, nền màu) muốn khớp tuyệt đối thì đặt --ks-ic-nen trên nút. */
.ks-ic-daky {
    --fa: "\f5b7";
    font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal;
    display: inline-block; line-height: 1;
    position: relative; margin-right: .32em;
}
.ks-ic-daky::before { content: var(--fa); }
.ks-ic-daky::after {
    content: "\f058";
    position: absolute; right: -.42em; bottom: -.3em;
    font-size: .62em; line-height: 1; font-weight: 900;
    color: var(--ks-ic-ok, var(--ok, #16a34a));
    background: var(--ks-ic-nen, var(--panel, Canvas));
    border-radius: 50%;
    box-shadow: 0 0 0 .12em var(--ks-ic-nen, var(--panel, Canvas));
}
html[data-theme='dark'] .ks-ic-daky::after { color: var(--ks-ic-ok, var(--ok, #4ade80)); }