﻿/* Bang mau chinh cua web - tone goc #1A60AE (hsl 212, 74%, 39%).
   Cac phien ban duoc pha tu chinh tone goc (tron voi den de dam hon, tron voi trang de nhat hon) nen cung sac do.
   Dung qua bien CSS: color: var(--mau-chinh); ... Khong hardcode ma mau rai rac o tung View.

   File nay phai load SAU core.css + theme-default.css cua Sneat:
    - theme-default.css da duoc doi mau truc tiep sang bang mau nay (nut, link, phan trang, badge, o tick...).
    - core.css (Bootstrap + Sneat, rat lon) KHONG sua - cac cho con mau tim mac dinh #696cff duoc ghi de o cuoi file nay. */
:root {
    /* Tone goc: nen nut chinh, link, muc dang chon. Chu trang tren nen nay dat tuong phan 6.3:1. */
    --mau-chinh: #1A60AE;
    --mau-chinh-rgb: 26, 96, 174;

    /* Hover: tone goc + 10% den - khi re chuot len nut/link mau chinh. */
    --mau-chinh-hover: #17569D;

    /* Dark: tone goc + 25% den - trang thai dang bam (active), tieu de/chu can dam hon tone goc. */
    --mau-chinh-dark: #144883;

    /* Light: 12% tone goc tren nen trang - nen badge/nhan, nen dong dang chon, nen thong bao.
       Chu mau tone goc tren nen nay dat tuong phan 5.3:1. */
    --mau-chinh-light: #E4ECF5;

    /* Border: 40% tone goc tren nen trang - vien cua khoi dung nen light, vien nut outline o trang thai thuong. */
    --mau-chinh-border: #A3BFDF;

    /* Bien "primary" va link cua Bootstrap (core.css dang de tim #696cff). */
    --bs-primary: var(--mau-chinh);
    --bs-primary-rgb: var(--mau-chinh-rgb);
    --bs-primary-text-emphasis: #0A2646;
    --bs-primary-bg-subtle: var(--mau-chinh-light);
    --bs-primary-border-subtle: var(--mau-chinh-border);
    --bs-link-color: var(--mau-chinh);
    --bs-link-color-rgb: var(--mau-chinh-rgb);
    --bs-link-hover-color: var(--mau-chinh-hover);
    --bs-link-hover-color-rgb: 23, 86, 157;
}

/* ---- Ghi de cac cho core.css con dung mau tim mac dinh ---- */

/* Bong mo quanh o nhap dang focus. */
.form-control:focus,
.form-select:focus,
.input-group:focus-within {
    box-shadow: 0 0 0.25rem 0.05rem rgba(var(--mau-chinh-rgb), 0.1);
}

.dropdown-menu,
.dropdown-menu-dark {
    --bs-dropdown-link-active-bg: rgba(var(--mau-chinh-rgb), 0.08);
}

.pagination {
    --bs-pagination-active-bg: rgba(var(--mau-chinh-rgb), 0.08);
    --bs-pagination-active-border-color: rgba(var(--mau-chinh-rgb), 0.08);
}

.list-group {
    --bs-list-group-active-bg: rgba(var(--mau-chinh-rgb), 0.08);
    --bs-list-group-active-border-color: rgba(var(--mau-chinh-rgb), 0.08);
}

.progress,
.progress-stacked {
    --bs-progress-bar-bg: var(--mau-chinh);
}

/* Tab kieu "nen toi" (trang Tong quan, danh sach Cong viec): cac tab CHUA MO nen toi, chu trang (tuong duong
   bg-dark text-white tren a.nav-link); tab dang mo giu kieu mac dinh cua theme (nen sang, lien voi khung noi dung).
   Viet bang CSS de tab doi bang JS (Tong quan) van dung. */
.nav-tabs.tab-nen-toi .nav-link:not(.active),
.nav-tabs.tab-nen-toi .nav-link:not(.active):hover,
.nav-tabs.tab-nen-toi .nav-link:not(.active):focus {
    background-color: rgba(var(--bs-dark-rgb), 0.1) !important;   
}
.nav-tabs.tab-nen-toi .nav-link:not(.active):hover {
    opacity: .85;
}

/* Khoi "File dinh kem" dung chung (Views/Shared/_FileDinhKem.cshtml): vung bam / keo tha de chon file. */
.khoi-file-dinh-kem .vung-chon-file {
    border: 1px dashed var(--mau-chinh-border);
    border-radius: .375rem;
    background: var(--mau-chinh-light);
    color: var(--mau-chinh-dark);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}
.khoi-file-dinh-kem .vung-chon-file i {
    display: block;
    font-size: 2rem;
}
.khoi-file-dinh-kem .vung-chon-file.dang-tha {
    border-style: solid;
    border-color: var(--mau-chinh);
    opacity: .7;
}

/* Khoi file CHI XEM (vd dong "File dinh kem" trong bang thong tin cong viec): cac dong gon, khong vien khung. */
.khoi-file-dinh-kem[data-duoc-sua="false"] .dong-file {
    border: 0 !important;
    padding: .15rem 0 !important;
    margin-bottom: .25rem !important;
}
.khoi-file-dinh-kem[data-duoc-sua="false"] .dong-file:last-child {
    margin-bottom: 0 !important;
}

/* KHOI THAO TAC o cac trang chi tiet (mau: Layout/thao-tac.png): tieu de nho in hoa, moi thao tac la 1 dong co vien
   (.muc-thao-tac: bieu tuong mau trong o vuong bo goc + ten + mui ten), duoi duong ke la nut lon nen nhat
   (.nut-thao-tac-chinh, vd Quay lai). Mau o bieu tuong dung cac lop bg-label-* cua theme. */
.khoi-thao-tac .tieu-de-thao-tac {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6f7f92;
    margin-bottom: .75rem;
}
.khoi-thao-tac .muc-thao-tac {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid #dfe3e8;
    border-radius: .5rem;
    background: #fff;
    color: #233446;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}
.khoi-thao-tac .muc-thao-tac:hover {
    border-color: var(--mau-chinh-border);
    background: var(--mau-chinh-light);
    color: var(--mau-chinh-dark);
}
.khoi-thao-tac .muc-thao-tac .bieu-tuong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: .375rem;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.khoi-thao-tac .muc-thao-tac .ten {
    flex-grow: 1;
    font-weight: 500;
}
.khoi-thao-tac .muc-thao-tac .mui-ten {
    font-size: 1.25rem;
    color: #233446;
}
.khoi-thao-tac hr {
    margin: .75rem 0;
}
.khoi-thao-tac .nut-thao-tac-chinh {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem .75rem;
    border: 1px solid var(--mau-chinh-border);
    border-radius: .5rem;
    background: var(--mau-chinh-light);
    color: var(--mau-chinh-dark);
    font-weight: 600;
    text-decoration: none;
}
.khoi-thao-tac .nut-thao-tac-chinh:hover {
    background: var(--mau-chinh-border);
    color: var(--mau-chinh-dark);
}
.khoi-thao-tac .nut-thao-tac-chinh i {
    font-size: 1.25rem;
}

/* Thao tac la NUT (gui form Huy / Xoa, mo hop thoai) trong khoi thao tac: trong y het dong thao tac dang link. */
.khoi-thao-tac button.muc-thao-tac {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.khoi-thao-tac form {
    margin: 0;
}

/* ---- Khoi "Binh luan" dung chung (Views/Shared/_BinhLuan.cshtml, Assets/js/binh-luan.js) - kieu khung tro chuyen:
   binh luan cua nguoi khac ben trai (bong bong xam nhat + o tron ten viet tat), cua minh ben phai (bong bong mau chinh). ---- */
.khoi-binh-luan .bl-luong { display: flex; flex-direction: column; gap: .6rem; }
.khoi-binh-luan .bl-ngay,
.khoi-binh-luan .bl-chua-doc { display: flex; align-items: center; gap: .75rem; margin: .4rem 0; font-size: .8125rem; font-weight: 500; color: #566a7f; }
.khoi-binh-luan .bl-ngay::before, .khoi-binh-luan .bl-ngay::after,
.khoi-binh-luan .bl-chua-doc::before, .khoi-binh-luan .bl-chua-doc::after { content: ""; flex: 1; border-top: 1px dashed #d9dee3; }
.khoi-binh-luan .bl-chua-doc { color: #ff3e1d; }
.khoi-binh-luan .bl-chua-doc::before, .khoi-binh-luan .bl-chua-doc::after { border-top: 1px solid #ffb3a5; }
.khoi-binh-luan .bl-he-thong { text-align: center; font-size: .8125rem; color: #566a7f; }
.khoi-binh-luan .bl-he-thong > span:first-child { display: inline-block; max-width: 80%; padding: .25rem .8rem; border-radius: 1rem; background: #f5f5f9; white-space: pre-line; overflow-wrap: anywhere; }
.khoi-binh-luan .bl-he-thong-phu { display: block; margin-top: .1rem; font-size: .75rem; color: #a1acb8; }
.khoi-binh-luan .bl-dong { display: flex; align-items: flex-end; gap: .75rem; max-width: 85%; align-self: flex-start; }
.khoi-binh-luan .bl-dong.cua-toi { align-self: flex-end; gap: .25rem; }
.khoi-binh-luan .bl-anh { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8125rem; font-weight: 600; }
.khoi-binh-luan .bl-than { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.khoi-binh-luan .cua-toi .bl-than { align-items: flex-end; }
.khoi-binh-luan .bl-bong { max-width: 100%; padding: .6rem .8rem; border-radius: .5rem; background: #e9edf4; color: #233446; box-shadow: 0 1px 2px rgba(67, 89, 113, .15); overflow-wrap: anywhere; }
.khoi-binh-luan .cua-toi .bl-bong { background: var(--mau-chinh-dark); color: #fff; }
.khoi-binh-luan .cua-toi .bl-bong a { color: #fff; text-decoration: underline; }
.khoi-binh-luan .bl-ten { margin-bottom: .25rem; font-size: .875rem; font-weight: 600; }
.khoi-binh-luan .bl-noi-dung p { margin: 0; }
.khoi-binh-luan .bl-noi-dung ol, .khoi-binh-luan .bl-noi-dung ul { margin: 0; padding-left: 1.4rem; }
.khoi-binh-luan .bl-gio { margin-top: .2rem; text-align: right; font-size: .75rem; opacity: .75; }
.khoi-binh-luan .bl-menu { align-self: center; }
.khoi-binh-luan .bl-menu > .btn { color: #a1acb8; }
.khoi-binh-luan .bl-menu > .btn:hover, .khoi-binh-luan .bl-menu > .btn.show { color: var(--mau-chinh); }
.khoi-binh-luan .bl-files { display: flex; flex-direction: column; align-items: inherit; gap: .35rem; max-width: 100%; }
.khoi-binh-luan .bl-file { display: flex; align-items: center; gap: .6rem; max-width: 100%; padding: .4rem .7rem; border: 1px solid #d9dee3; border-radius: .5rem; background: #fff; color: #233446; }
.khoi-binh-luan .bl-file:hover { border-color: var(--mau-chinh-border); background: var(--mau-chinh-light); }
.khoi-binh-luan .bl-file > i { font-size: 1.75rem; }
.khoi-binh-luan .bl-file-ten { display: block; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.khoi-binh-luan .bl-file-phu { display: block; font-size: .75rem; color: #697a8d; }
/* O soan: thanh cong cu + vung go cua Quill (theme snow) bo goc theo khung the. */
.khoi-binh-luan .bl-thanh-cong-cu { padding: 8px; border: 1px solid #d9dee3; border-bottom: 0; border-radius: .5rem .5rem 0 0; }
.khoi-binh-luan .bl-thanh-cong-cu.ql-toolbar.ql-snow { border-color: #d9dee3; font-family: inherit; }
.khoi-binh-luan .bl-thanh-cong-cu.khong-dinh-dang { border-bottom: 1px solid #d9dee3; border-radius: .5rem; margin-bottom: .5rem; }
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-file,
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-anh { float: left; width: 28px; height: 24px; padding: 3px 5px; border: 0; background: none; color: #444; cursor: pointer; }
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-file:hover,
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-anh:hover { color: var(--mau-chinh); }
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-file > i,
.khoi-binh-luan .bl-thanh-cong-cu .bl-nut-anh > i { font-size: 18px; line-height: 18px; }
.khoi-binh-luan .bl-thanh-cong-cu::after { content: ""; display: table; clear: both; }
.khoi-binh-luan .bl-o-soan.ql-container.ql-snow { border-color: #d9dee3; border-radius: 0 0 .5rem .5rem; font-family: inherit; font-size: .9375rem; }
.khoi-binh-luan .bl-o-soan .ql-editor { min-height: 120px; max-height: 320px; }
.khoi-binh-luan .bl-o-soan .ql-editor.ql-blank::before { font-style: normal; color: #a1acb8; }
.khoi-binh-luan .bl-soan.dang-sua .bl-file-cho,
.khoi-binh-luan .bl-soan.dang-sua .bl-nut-file,
.khoi-binh-luan .bl-soan.dang-sua .bl-nut-anh { display: none; }
.khoi-binh-luan .bl-file-cho { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.khoi-binh-luan .bl-file-cho:empty { display: none; }
.khoi-binh-luan .bl-the-file { display: flex; align-items: center; gap: .4rem; max-width: 100%; padding: .2rem .6rem; border: 1px solid #d9dee3; border-radius: 1rem; background: #f5f5f9; font-size: .8125rem; }
.khoi-binh-luan .bl-the-file.dang-tai { opacity: .7; }
.khoi-binh-luan .bl-the-file.loi { border-color: #ff3e1d; color: #ff3e1d; }
.khoi-binh-luan .bl-the-ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.khoi-binh-luan .bl-the-phu { color: #697a8d; white-space: nowrap; }
.khoi-binh-luan .bl-the-file.loi .bl-the-phu { color: inherit; }
.khoi-binh-luan .bl-the-bo { font-size: 1.1rem; line-height: 1; color: #697a8d; }
.khoi-binh-luan .bl-the-bo:hover { color: #ff3e1d; }
@media (max-width: 575.98px) {
    .khoi-binh-luan .bl-dong { max-width: 100%; }
}
/* Khoi dat o cot phai trang ChiTiet (thay the Thao tac - BinhLuanModel.KhungCuon): luong co chieu cao gioi han va tu cuon
   toi dong moi nhat (binh-luan.js), o soan thap hon cho vua cot hep. */
.khoi-binh-luan.khung-cuon .bl-luong { max-height: 420px; overflow-y: auto; padding-right: .35rem; }
.khoi-binh-luan.khung-cuon .bl-dong { max-width: 95%; }
.khoi-binh-luan.khung-cuon .bl-o-soan .ql-editor { min-height: 80px; max-height: 220px; }

/* ---- Khoi "Noi dung chi tiet" dung chung o cac trang ChiTiet (Views/Shared/_NoiDungChiTiet.cshtml, mau
   Layout/noi-dung-chi-tiet-dung-chung.jpg): chu noi dung, dong "CO N FILE DINH KEM", cac o file xep ngang. ---- */
.khoi-noi-dung-chi-tiet .noi-dung-chu { white-space: pre-wrap; overflow-wrap: anywhere; color: #233446; }
.khoi-noi-dung-chi-tiet .tieu-de-file { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .6rem; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #566a7f; }
.khoi-noi-dung-chi-tiet .tieu-de-file .quan-ly-file { font-weight: 500; text-transform: none; letter-spacing: 0; }
.khoi-noi-dung-chi-tiet .ds-o-file { display: flex; flex-wrap: wrap; gap: .6rem; }
.khoi-noi-dung-chi-tiet .o-file { display: flex; align-items: center; gap: .6rem; min-width: 150px; max-width: 280px; padding: .45rem .8rem; border: 1px solid #d9dee3; border-radius: .5rem; background: #fff; color: #233446; }
.khoi-noi-dung-chi-tiet .o-file:hover { border-color: var(--mau-chinh-border); background: var(--mau-chinh-light); }
.khoi-noi-dung-chi-tiet .o-file > i { flex: 0 0 auto; font-size: 1.75rem; }
.khoi-noi-dung-chi-tiet .o-file-chu { min-width: 0; }
.khoi-noi-dung-chi-tiet .o-file-ten { display: block; font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.khoi-noi-dung-chi-tiet .o-file-phu { display: block; font-size: .75rem; color: #697a8d; }

/* ---- O soan thao co dinh dang dung trong form (Quill theme snow, vd noi dung cong viec o CongViec/Sua) + cach hien noi
   dung da soan (.noi-dung-soan-thao, vd trong _NoiDungChiTiet). ---- */
.khoi-soan-thao .thanh-cong-cu.ql-toolbar.ql-snow { border-color: #d9dee3; border-radius: .5rem .5rem 0 0; font-family: inherit; }
.khoi-soan-thao .o-soan.ql-container.ql-snow { border-color: #d9dee3; border-radius: 0 0 .5rem .5rem; font-family: inherit; font-size: .9375rem; }
.khoi-soan-thao .o-soan .ql-editor { min-height: 180px; max-height: 480px; }
.khoi-soan-thao .o-soan.o-soan-ngan .ql-editor { min-height: 110px; max-height: 360px; }
.khoi-soan-thao .o-soan .ql-editor.ql-blank::before { font-style: normal; color: #a1acb8; }
.noi-dung-soan-thao { overflow-wrap: anywhere; color: #233446; }
.noi-dung-soan-thao p { margin: 0; }
.noi-dung-soan-thao ol, .noi-dung-soan-thao ul { margin: 0; padding-left: 1.4rem; }

/* Nut noi "Gop y" o goc duoi phai moi trang (Views/Shared/_NutGopY.cshtml). Nut noi khac them sau thi dat bottom cao hon
   (moi nut cach nhau 60px) de xep chong len tren nut nay. */
.nut-noi-gop-y { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--mau-chinh); color: #fff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(var(--mau-chinh-rgb), .45); cursor: pointer; }
.nut-noi-gop-y:hover, .nut-noi-gop-y:focus { background: var(--mau-chinh-hover); outline: none; }
@media print { .nut-noi-gop-y { display: none; } }
/* The "Ghi chu" o cot phai cua cac trang ChiTiet (Html.GhiChuVaFile): vien dam hon the thuong; co noi dung thi nen + vien vang. */
.the-ghi-chu { border: 2px solid var(--mau-chinh-border); }
.the-ghi-chu.co-noi-dung { border-color: #f5b800; background-color: #fff9e0; }

/* ---- Giai doan 1 (du an) ---- */
/* Tab "Tien do" o DuAn/ChiTiet: dong thoi gian cac bao cao tien do (moi nhat len tren). */
.bc-dong-thoi-gian { position: relative; margin-left: .5rem; padding-left: 1.25rem; border-left: 2px solid var(--mau-chinh-border); }
.bc-muc { position: relative; padding-bottom: 1.25rem; }
.bc-muc:last-child { padding-bottom: 0; }
.bc-muc::before { content: ""; position: absolute; left: -1.7rem; top: .35rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--mau-chinh); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--mau-chinh-border); }
.bc-tieu-de { font-weight: 700; color: #2b2f4a; }
.bc-noi-dung { margin-top: .35rem; word-break: break-word; }
.bc-noi-dung p { margin-bottom: .25rem; }
.bc-noi-dung.bc-rut-gon { max-height: 4.6em; overflow: hidden; }
.bc-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.bc-file { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .6rem; border: 1px solid var(--mau-chinh-border); border-radius: 1rem; background: var(--mau-chinh-light); font-size: .8125rem; text-decoration: none; }
/* Form du an: chon muc do bang 2 nut, ghi chu cua muc dang chon hien ngay duoi. */
.nut-muc-do .btn { min-width: 120px; }
.ghi-chu-muc-do { margin-top: .5rem; padding: .5rem .75rem; border-left: 3px solid var(--mau-chinh); background: var(--mau-chinh-light); border-radius: .25rem; font-size: .8125rem; white-space: pre-line; }
/* Danh sach du an: dong phu "Bao cao gan nhat" (mo; vang khi qua 7 ngay chua co bao cao). */
.bao-cao-gan-nhat { font-size: .8125rem; color: #8592a3; }
.bao-cao-gan-nhat.can-nhac { color: #b07d00; font-weight: 600; }
/* ---- Giai doan 2 (thong bao + tai lieu) ---- */
/* Chuong thong bao o thanh tren cung. */
#chuongThongBao .so-thong-bao { top: 2px; left: 55%; font-size: .65rem; padding: .25em .45em; }
.chuong-thong-bao { min-width: 340px; max-width: 420px; max-height: 70vh; overflow-y: auto; }
.chuong-thong-bao .dropdown-item { white-space: normal; }
.thong-bao-chua-doc { background-color: var(--mau-chinh-light); }
/* The tai lieu o tab "Tai lieu" cua trang chi tiet du an. */
.tai-lieu-the:hover { border-color: var(--mau-chinh) !important; background-color: var(--mau-chinh-light); }
/* ===== Giai doan 3: cong viec nho - lich tuan / ngay ===== */
.lich-luoi { border: 1px solid var(--bs-border-color, #d9dee3); border-radius: .5rem; overflow: hidden; background: #fff; }
.lich-dau { display: flex; border-bottom: 1px solid var(--bs-border-color, #d9dee3); background: #f8f9fa; }
.lich-goc { width: 56px; flex: 0 0 56px; }
.lich-ten-cot { flex: 1 1 0; text-align: center; padding: .5rem 0; font-weight: 600; border-left: 1px solid var(--bs-border-color, #d9dee3); }
.lich-ten-cot.la-hom-nay { color: var(--mau-chinh); background: var(--mau-chinh-light); }
.lich-than { display: flex; height: 620px; overflow-y: auto; position: relative; }
.lich-gio { width: 56px; flex: 0 0 56px; }
.lich-nhan-gio { height: 48px; font-size: .75rem; color: #8592a3; text-align: right; padding-right: .4rem; position: relative; top: -.5rem; }
.lich-cot { flex: 1 1 0; position: relative; height: 1152px; border-left: 1px solid var(--bs-border-color, #d9dee3); cursor: pointer;
    background-image: linear-gradient(to bottom, #e9ecef 1px, transparent 1px); background-size: 100% 48px; }
.lich-viec { position: absolute; border-radius: .3rem; padding: 2px 5px; font-size: .75rem; line-height: 1.2; overflow: hidden; color: #fff; text-decoration: none; cursor: pointer; }
.lich-viec:hover { color: #fff; filter: brightness(.92); z-index: 2; }
.lich-viec-gio { font-weight: 600; opacity: .9; }
.lich-viec-ten { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-lich-dang { background: var(--mau-chinh); }
.cv-lich-tre { background: #dc3545; }
.cv-lich-xong { background: #28a745; }
.cv-lich-huy { background: #8592a3; }
.cv-lich-chip { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 3px; }

/* Cong viec: the tu danh gia Dat / Chua dat o trang chi tiet */
.the-tu-danh-gia .nut-danh-gia { font-size: 1.1rem; padding: .7rem 1rem; }
/* Giai doan 7: luu y theo menu + huong dan su dung. */
.khung-luu-y .luu-y-noi-dung > :last-child { margin-bottom: 0; }
.khung-luu-y .luu-y-noi-dung ul, .khung-luu-y .luu-y-noi-dung ol { margin-bottom: .25rem; padding-left: 1.25rem; }
.huong-dan-noi-dung { line-height: 1.7; }
.huong-dan-noi-dung img { max-width: 100%; height: auto; }
.huong-dan-noi-dung ul, .huong-dan-noi-dung ol { padding-left: 1.5rem; }

/* ---- Menu thêm (nút 9 chấm) + nút hỗ trợ ở thanh tiêu đề (Views/Shared/_MenuThem.cshtml, _NutHoTro.cshtml) ---- */
.nut-menu-them { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: .5rem; color: #566a7f; }
.nut-menu-them:hover, .nut-menu-them:focus, .nut-menu-them.show { background: var(--mau-chinh-light); color: var(--mau-chinh); }
.nut-menu-them.dang-o { color: var(--mau-chinh); background: var(--mau-chinh-light); }
.nut-menu-them .cham-do-menu-them { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ff3e1d; border: 1px solid #fff; }
/* Hộp thả: lưới 3 cột (mỗi hàng 3 mục, số hàng theo số mục người dùng được thấy), kiểu Google Apps. */
.hop-menu-them { width: 330px; max-width: calc(100vw - 24px); }
.luoi-menu-them { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.o-menu-them { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .75rem .4rem; border-radius: .5rem; text-align: center; text-decoration: none; color: #233446; }
.o-menu-them:hover, .o-menu-them:focus { background: var(--mau-chinh-light); color: var(--mau-chinh-dark); }
.o-menu-them.dang-o { background: var(--mau-chinh-light); color: var(--mau-chinh); }
.o-menu-them .bieu-tuong { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; font-size: 1.4rem; }
.o-menu-them .ten { font-size: .8125rem; line-height: 1.25; font-weight: 500; }
.o-menu-them .so-dem { position: absolute; top: .35rem; right: .6rem; font-size: .65rem; }
/* Nút hỗ trợ: ô bo góc màu chính, biểu tượng điện thoại trắng. */
.nut-ho-tro { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: .5rem; background: var(--mau-chinh); color: #fff !important; font-size: 1.25rem; }
.nut-ho-tro:hover, .nut-ho-tro:focus, .nut-ho-tro.show { background: var(--mau-chinh-hover); }

/* ---- Rà soát giao diện danh sách (HoSoDichVu/Index làm mẫu) ---- */
/* Nút đếm dịch vụ theo trạng thái (Views/Shared/_NutDemDichVu.cshtml): màu dùng outline-success/warning/danger mặc định của Sneat (chủ ý giữ, đẹp hơn bản màu tối); lớp .nut-dem chỉ dùng để tăng vùng chạm ở dưới. */
/* Dòng nhắc/cảnh báo chữ nhỏ (thay text-warning mặc định, không đủ tương phản trên nền trắng). */
.chu-canh-bao { color: #8A5A00; }
/* Cụm nút thao tác cuối dòng: nút xoá tách khỏi các nút còn lại; màn hình cảm ứng tăng vùng chạm lên 44px. */
.cum-thao-tac { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; }
.cum-thao-tac .nut-xoa { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid #d9dee3; }
@media (pointer: coarse) {
    .cum-thao-tac .btn-icon, .nut-dem { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
