/* Khung “ABC Digital Workplace” — Trung tâm điều hành BGĐ theo 4 ảnh khách gửi (phản hồi 10/11/2026). Chỉ áp dụng khi .shell.cc */
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:400;src:url(../vendor/fonts/roboto-condensed-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:400;src:url(../vendor/fonts/roboto-condensed-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:400;src:url(../vendor/fonts/roboto-condensed-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../vendor/fonts/roboto-condensed-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../vendor/fonts/roboto-condensed-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../vendor/fonts/roboto-condensed-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../vendor/fonts/roboto-condensed-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../vendor/fonts/roboto-condensed-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../vendor/fonts/roboto-condensed-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../vendor/fonts/roboto-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../vendor/fonts/roboto-condensed-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../vendor/fonts/roboto-condensed-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:800;src:url(../vendor/fonts/roboto-condensed-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:800;src:url(../vendor/fonts/roboto-condensed-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'CC Condensed';font-style:normal;font-display:swap;font-weight:800;src:url(../vendor/fonts/roboto-condensed-vietnamese-800-normal.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
.shell.cc, .shell.cc button, .shell.cc input, .shell.cc select { font-family: 'CC Condensed', 'Roboto Condensed', 'Arial Narrow', var(--font); }
.shell.cc { --nv: #0b2a5b; --bl: #1f6fe0; } /* khung sidebar / header: public/admin/shell.css (khung chung mọi trang, 10/11/2026) */

/* nền trang dashboard một màn hình */
.shell.cc .main { background: radial-gradient(900px 340px at 72% -40px, #ffffff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #e2edfc 0%, #edf3fd 45%, #e5eefb 100%); }
.cc-ava { border-radius: 50%; object-fit: cover; border: 2px solid #dbe7fb; flex: none; }
.cc-ava.ini { display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #60a5fa); color: #fff; font-weight: 700; font-size: 14px; }
.cc-who { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0b1f4b; font-size: 15px; white-space: nowrap; }
.cc-who b, .cc-who select { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; border-radius: 9px; padding: 6px 16px; font-size: 15px; font-weight: 600; border: 0; box-shadow: 0 3px 10px rgba(30, 99, 220, .3); }
.cc-who select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; background: linear-gradient(90deg, #2b7bf3, #1d63dc) padding-box; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(90deg, #2b7bf3, #1d63dc); background-repeat: no-repeat; background-position: right 9px center, 0 0; background-size: 14px, 100% 100%; }
.cc-who select option { color: #0b1f4b; background: #fff; }
.shell.cc .content { padding: 10px 12px 18px; }
.cc-loading { padding: 40px; text-align: center; color: var(--nv); font-weight: 600; }

/* lưới bảng điều hành */
.ccd { display: grid; gap: 10px; color: var(--nv); }
.ccd > * { min-width: 0; }
.cc-card { background: #fff; border: 1px solid #d3e2f6; border-radius: 12px; box-shadow: 0 2px 10px rgba(25, 70, 150, .08); padding: 9px 14px 10px; min-width: 0; }
.cc-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cc-card > header h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--nv); letter-spacing: -.015em; line-height: 1.2; min-width: 0; }
.cc-card > header h3 > .ico, .cc-card > header h3 > svg { width: 27px; height: 27px; color: var(--bl); stroke-width: 2; flex: none; }
.cc-card > header h3 small { font-size: 15px; font-weight: 500; color: var(--nv); letter-spacing: -.01em; }
.ccd .bg-more { font-size: 14px; color: var(--bl); font-weight: 600; white-space: nowrap; }
.cc-headc { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 8px 14px; }
.cc-ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-ttl > .ico { width: 42px; height: 42px; color: var(--bl); stroke-width: 1.6; flex: none; }
.cc-ttl h2 { font-size: 22px; font-weight: 800; color: var(--nv); letter-spacing: -.02em; line-height: 1.15; }
.cc-ttl h2 small { font-size: 19px; font-weight: 500; }
.cc-ttl span { font-size: 14px; color: var(--nv); }
.cc-urgw:empty { display: none; }
.cc-urg { display: inline-flex; align-items: center; gap: 6px; background: #fde8e8; color: #c81e1e; border: 1px solid #f8b4b4; border-radius: 16px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cc-urg .ico { width: 15px; height: 15px; }
.cc-flt { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.cc-flt label { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--nv); font-size: 15.5px; white-space: nowrap; }
.cc-flt .sel { height: 38px; min-width: 175px; border: 1px solid #b9cdea; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--nv); background-color: #fff; padding: 0 30px 0 12px; }
.cc-rf { width: 42px; height: 38px; border: 1px solid #b9cdea !important; border-radius: 8px; color: var(--bl); background: #fff; }
.cc-rf .ico { width: 22px; height: 22px; stroke-width: 2.4; }

.cc-r1 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(310px, 1.62fr); gap: 10px; }
.cc-r1.pg { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(310px, 1.5fr); }
.cc-r2 { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr) minmax(0, 1.07fr); gap: 10px; }
.cc-r2.pg { grid-template-columns: minmax(0, 1.3fr) minmax(0, .82fr) minmax(0, .92fr); }
.cc-r3 { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.02fr) minmax(0, .86fr) minmax(0, 1.17fr); gap: 10px; }
.pgd .cc-r3 { grid-template-columns: minmax(0, 1.02fr) minmax(0, .8fr) minmax(0, .84fr) minmax(0, 1.02fr); }
.pgd.kt .cc-r3 { grid-template-columns: minmax(0, 1.05fr) minmax(0, .98fr) minmax(0, .84fr) minmax(0, 1fr); }
.cc-r4 { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 10px; }
.cc-r4.pg { grid-template-columns: minmax(0, 1.36fr) minmax(0, 1.05fr) minmax(0, 1fr); }
.cc-r4.pg.kt { grid-template-columns: minmax(0, .68fr) minmax(0, 1.2fr) minmax(0, .97fr) minmax(0, 1fr); }
.ccd.pgd { grid-template-columns: 268px minmax(0, 1fr); grid-template-areas: "prof head" "prof r1" "prof r2" "r3 r3" "r4 r4"; }
.ccd.pgd .cc-prof { grid-area: prof; } .ccd.pgd .cc-headc { grid-area: head; } .ccd.pgd .cc-r1 { grid-area: r1; } .ccd.pgd .cc-r2 { grid-area: r2; } .ccd.pgd .cc-r3 { grid-area: r3; } .ccd.pgd .cc-r4 { grid-area: r4; }

/* ô màu */
.ccd .cc-tile { position: relative; overflow: hidden; display: flex; gap: 10px; align-items: center; border: 0; border-radius: 10px; padding: 10px 12px; color: #fff; text-align: left; min-height: 106px; box-shadow: 0 6px 14px rgba(20, 60, 140, .2); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ccd .cc-tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2), transparent 58%); pointer-events: none; }
.ccd .cc-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 50, 110, .28); }
.ccd .cc-tile .ic .ico { width: 46px; height: 46px; stroke-width: 1.35; opacity: 1; }
.ccd .cc-tile .tx { display: grid; gap: 1px; min-width: 0; position: relative; z-index: 1; }
.ccd .cc-tile .lb { font-size: 14.5px; line-height: 1.18; opacity: 1; }
.ccd .cc-tile .lb em { font-style: normal; }
.ccd .cc-tile b { font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.ccd .cc-tile small { font-size: 12.5px; display: flex; align-items: center; gap: 2px; font-weight: 600; opacity: 1; flex-wrap: wrap; }
.ccd .cc-tile small .ico { width: 14px; height: 14px; stroke-width: 3; }
.ccd .cc-tile small.gd .ico { color: #86efac; } .ccd .cc-tile small.bd .ico { color: #fecaca; }
.ccd .cc-tile small.gd2 { color: #fde68a; } .ccd .cc-tile small.bd2 { color: #fecaca; }
.ccd .cc-tile.pg .tx { justify-items: center; text-align: center; flex: 1; }
.ccd .cc-tile.c-blue { background: linear-gradient(135deg, #1544c4, #2f7cf6); }
.ccd .cc-tile.c-green { background: linear-gradient(135deg, #12893b, #2cc25f); }
.ccd .cc-tile.c-violet { background: linear-gradient(135deg, #47209f, #7b4ddc); }
.ccd .cc-tile.c-orange { background: linear-gradient(135deg, #ef640d, #ff9f35); }
.ccd .cc-tile.c-navy { background: linear-gradient(135deg, #123ab0, #2f78f0); }

/* đánh giá KPI */
.cc-score { padding: 8px 12px; }
.cc-score > header { margin-bottom: 2px; }
.cc-score > header h3 { font-size: 15.5px; }
.cc-score > header h3 > .ico { width: 22px; height: 22px; color: #1f4fa8; }
.cc-inf .ico { width: 19px; height: 19px; color: var(--bl); }
.cc-sc { display: grid; grid-template-columns: 116px 66px minmax(0, 1fr); gap: 8px; align-items: center; color: inherit; }
.cc-medal { position: relative; width: 116px; height: 100px; display: grid; place-items: center; text-align: center; }
.cc-laurel { position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-medal > div { position: relative; display: grid; line-height: 1.15; }
.cc-medal span { font-size: 10.5px; color: var(--nv); font-weight: 600; }
.cc-medal b { font-size: 18px; font-weight: 800; color: var(--nv); white-space: nowrap; }
.cc-medal small { font-size: 9.5px; color: #334155; }
.cc-grade { display: grid; justify-items: center; border: 1px solid #f1d7a6; background: linear-gradient(180deg, #fffaf0, #fff1d6); border-radius: 8px; padding: 6px 4px; text-align: center; line-height: 1.15; }
.cc-grade span { font-size: 11px; color: var(--nv); font-weight: 600; }
.cc-grade b { font-size: 34px; font-weight: 800; color: #e11d2e; line-height: 1.05; }
.cc-grade small { font-size: 10.5px; color: #334155; }
.cc-grade.g-B b { color: #1f6fe0; } .cc-grade.g-C b { color: #ca8a04; } .cc-grade.g-D b, .cc-grade.g-x b { color: #64748b; }
.cc-sc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12px; }
.cc-sc li { display: flex; gap: 5px; align-items: flex-start; color: #64748b; line-height: 1.25; }
.cc-sc li.ok { color: var(--nv); font-weight: 500; }
.cc-sc li .ico { width: 14px; height: 14px; color: #94a3b8; stroke-width: 3; margin-top: 1px; }
.cc-sc li.ok .ico { color: #16a34a; }

/* bảng */
.cc-tw { overflow-x: auto; }
.cc-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; color: var(--nv); }
.cc-t th { font-size: 11.5px; font-weight: 700; color: var(--nv); text-align: right; padding: 3px 6px 5px; line-height: 1.2; border-bottom: 1px solid #dbe5f3; vertical-align: bottom; background: none; position: static; }
.cc-t td { text-align: right; padding: 5px 6px; border-bottom: 1px solid #eef2f8; font-weight: 600; white-space: nowrap; }
.cc-t .l { text-align: left; } .cc-t .c { text-align: center; }
.cc-t td.l { white-space: normal; }
.cc-t tfoot td { background: #e6f0ff; font-weight: 800; border-bottom: 0; }
.cc-t tfoot td:first-child { border-radius: 8px 0 0 8px; } .cc-t tfoot td:last-child { border-radius: 0 8px 8px 0; }
.cc-t tr.click { cursor: pointer; } .cc-t tr.click:hover td { background: #f2f7ff; }
.cc-t tr.sub td { font-weight: 500; font-size: 12.5px; }
.cc-t tr.od td { background: #fff7f7; }
.cc-t .neg, .ccd .neg { color: #e11d2e; } .cc-t .pos, .ccd .pos { color: #16a34a; }
.cc-t td.empty { text-align: center; color: #64748b; font-weight: 500; padding: 14px; }
.cc-sn { display: inline-flex; align-items: center; gap: 7px; }
.cc-sn .ico { width: 19px; height: 19px; color: var(--bl); }
.cc-sn .cc-xl { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #e5484d; border: 1px solid #f6c6c8; border-radius: 10px; padding: 0 6px; line-height: 16px; white-space: nowrap; text-decoration: none; }
.cc-sn .cc-xl .ico { width: 10px; height: 10px; color: inherit; }
.cc-sn .cc-xl:hover { background: #fdecef; }
.cc-seg .cc-t td:nth-child(2) { font-size: 13px; }
.cc-pb { white-space: nowrap; }
.cc-bar { width: 58px; height: 12px; border-radius: 6px; background: #e2e8f0; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.cc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 6px; }
.cc-bar.warn i { background: linear-gradient(90deg, #fcd34d, #f5b301); } .cc-bar.bad i { background: linear-gradient(90deg, #f87171, #e11d2e); }
.cc-pb b { display: inline-block; min-width: 38px; text-align: right; }
.cc-pp { display: inline-block; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 12.5px; background: #16a34a; }
.cc-pp.warn { background: #f5b301; } .cc-pp.bad { background: #e11d2e; }
.cc-note { font-size: 11px; color: #1f4fa8; background: #eef4ff; border: 1px solid #cfe0fb; border-radius: 12px; padding: 2px 8px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.cc-note .ico { width: 13px; height: 13px; flex: none; }
.cc-st { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cc-st.st-red { background: #fde0e0; color: #c81e1e; } .cc-st.st-blue { background: #dbeafe; color: #1d4ed8; } .cc-st.st-violet { background: #ede4ff; color: #6d28d9; }
.cc-st.st-green { background: #dcfce7; color: #15803d; } .cc-st.st-sky { background: #e0f2fe; color: #0369a1; } .cc-st.st-grey { background: #eef2f7; color: #64748b; } .cc-st.st-yellow { background: #fff1c2; color: #8a5a00; }
.cc-stb { border: 0; background: none; padding: 0; cursor: pointer; }
.cc-stb:hover .cc-st { filter: brightness(.95); box-shadow: 0 0 0 2px rgba(31, 111, 224, .25); }

/* tỷ trọng, biểu đồ */
.cc-tabs2 { display: flex; gap: 4px; background: #f1f5fb; border-radius: 8px; padding: 3px; margin-bottom: 2px; }
.cc-tabs2 button { flex: 1; border: 0; background: transparent; border-radius: 6px; padding: 5px 6px; font-size: 12.5px; font-weight: 700; color: var(--nv); }
.cc-tabs2 button.on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; }
.cc-donut { display: grid; grid-template-columns: minmax(150px, 1.15fr) minmax(120px, 1fr); align-items: center; gap: 4px; }
.cc-donut .chart { height: 196px; }
.cc-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12px; color: var(--nv); line-height: 1.25; }
.cc-leg li { display: flex; gap: 6px; } .cc-leg i { width: 11px; height: 11px; border-radius: 50%; margin-top: 2px; flex: none; }
.cc-leg li.tot { padding-left: 17px; font-weight: 600; } .cc-leg li.sub { font-size: 11px; padding-left: 10px; } .cc-leg li.mine { font-weight: 600; }
.cc-trend .chart { height: 222px; }
.pgd .cc-donut .chart { height: 178px; } .pgd .cc-trend .chart { height: 196px; }

/* tài chính, tiến độ, công nợ, nhân sự */
.cc-dl { display: grid; margin: 0; }
.cc-dl a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 3px; color: inherit; border-radius: 5px; }
.cc-dl a:hover { background: #f2f7ff; }
.cc-dl dt { font-size: 14px; color: var(--nv); font-weight: 500; display: flex; align-items: center; gap: 7px; min-width: 0; }
.cc-dl dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--nv); white-space: nowrap; }
.cc-dl dd.pos { color: #16a34a; } .cc-dl dd.neg { color: #e11d2e; }
.cc-dl.dots dt i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cc-dl a.cc-sm { padding-top: 2px; }
.cc-dl a.cc-sm dt, .cc-dl a.cc-sm dd { font-size: 11.5px; font-weight: 600; color: var(--bl); }
.cc-dl a.cc-sm dd .ico { width: 14px; height: 14px; }
.cc-dl.ic dt .ico { width: 19px; height: 19px; color: var(--bl); flex: none; }
.cc-dl.ic a { padding: 3px; } .cc-dl.ic dt { font-size: 13.5px; }
.cc-progb { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: center; }
.cc-gauge { text-align: center; cursor: pointer; }
.cc-gauge .chart { height: 108px; }
.cc-gauge span { font-size: 13px; font-weight: 700; color: var(--nv); }
.cc-hr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-hrc { border: 1px solid #d3e2f6; border-radius: 8px; padding: 4px 8px 6px; color: inherit; background: #fbfdff; }
.cc-hrc:hover { border-color: var(--bl); }
.cc-hrc > b { display: block; text-align: center; font-size: 14px; font-weight: 800; color: #1f5fd1; margin-bottom: 5px; background: #eef4ff; border-radius: 6px; padding: 2px; }
.cc-hrc dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0; font-size: 13.5px; }
.cc-hrc dt { color: var(--nv); } .cc-hrc dd { margin: 0; font-weight: 800; text-align: right; color: var(--nv); white-space: nowrap; } .cc-hrc dd.pos { color: #16a34a; }

/* cảnh báo */
.cc-alert > header h3 .cc-tri { width: 30px; height: 30px; }
.cc-risk { list-style: none; margin: 0; padding: 0; display: grid; }
.cc-risk li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #eef2f8; }
.cc-risk li:last-child { border-bottom: 0; }
.cc-risk a { display: flex; gap: 10px; align-items: center; color: var(--nv); font-size: 14px; font-weight: 500; min-width: 0; }
.cc-risk a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-risk a em { font-style: normal; color: #475569; }
.cc-risk a .ico { width: 27px; height: 27px; flex: none; color: #e11d2e; stroke-width: 1.8; }
.cc-risk li.l-m a .ico { color: #f59e0b; }
.ccd .bg-lv { min-width: 82px; text-align: center; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.ccd .bg-lv.vh { background: #fde0e0; color: #c81e1e; } .ccd .bg-lv.h { background: #fff1c2; color: #7a4f00; } .ccd .bg-lv.m { background: #fff6d8; color: #806000; }
.cc-mini-b { width: 27px; height: 27px; border: 1px solid #d3e2f6; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--bl); padding: 0; flex: none; }
.cc-mini-b:hover { border-color: var(--bl); background: #f2f7ff; }
.cc-mini-b .ico { width: 15px; height: 15px; }

/* công việc / phê duyệt / văn bản */
.cc-wtabs { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.cc-wtabs > button[data-wt] { border: 1px solid #cddcf2; background: #f3f7fe; border-radius: 8px; padding: 7px 16px; font-size: 15px; font-weight: 600; color: var(--nv); }
.cc-wtabs > button[data-wt].on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(30, 99, 220, .3); }
.cc-wtabs .sp { flex: 1; }
.cc-add { border: 1px solid #f3b5a3; background: #fff4f0; color: #d9480f; border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.cc-add .ico { width: 15px; height: 15px; }
.cc-scroll { max-height: 158px; overflow: auto; }
.cc-wt th { text-align: center; position: sticky; top: 0; background: #fff; z-index: 1; }
.cc-wt td { font-weight: 500; text-align: center; }
.cc-wt td.l a { color: var(--nv); }
.cc-code { color: #1f4fa8; font-weight: 700; }
.cc-ab { width: 28px; height: 28px; border: 1px solid #d3e2f6; border-radius: 6px; background: #fff; margin-left: 3px; display: inline-grid; place-items: center; color: #475569; padding: 0; }
.cc-ab .ico { width: 15px; height: 15px; } .cc-ab.ok { color: #15803d; border-color: #bbf7d0; } .cc-ab.no { color: #c81e1e; border-color: #fecaca; }

/* thẻ hồ sơ PGĐ */
.cc-prof { padding: 12px 14px; }
.cc-pf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 4px; }
.cc-pf h3 { font-size: 20px; font-weight: 800; color: #1f4fa8; letter-spacing: -.02em; line-height: 1.15; }
.cc-pf span { font-size: 14px; color: #1f4fa8; }
.cc-prof h4 { display: flex; gap: 6px; align-items: center; font-size: 16px; font-weight: 800; color: #1f4fa8; margin: 12px 0 6px; letter-spacing: -.01em; }
.cc-prof h4 .ico { width: 21px; height: 21px; color: var(--bl); }
.cc-prof h4.tc { justify-content: center; }
.cc-chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--nv); }
.cc-chk li { display: flex; gap: 8px; line-height: 1.3; }
.cc-chk .ico { width: 21px; height: 21px; color: #16a34a; stroke-width: 3.2; flex: none; }
.cc-chk b { font-weight: 600; } .cc-chk small { display: block; font-size: 13px; color: var(--nv); }
.cc-chk.sm { font-size: 13.5px; gap: 6px; } .cc-chk.sm .ico { width: 18px; height: 18px; }

/* ô nhỏ (chỉ số cá nhân, nhân sự, chất lượng) — :not(.shell): lớp .cc-mini:not(.shell) trùng tên trạng thái sidebar thu gọn .shell.cc-mini (thu gọn sidebar từng làm vỡ cả dashboard) */
.cc-mini:not(.shell) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cc-mini:not(.shell).three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-mini:not(.shell) > button, .cc-mini:not(.shell) > a { display: grid; justify-items: center; align-content: center; text-align: center; gap: 2px; border: 1px solid #d3e2f6; border-radius: 10px; background: #fbfdff; padding: 8px 4px; color: inherit; min-width: 0; cursor: pointer; }
.cc-mini:not(.shell) > button:hover, .cc-mini:not(.shell) > a:hover { border-color: var(--bl); background: #f2f7ff; }
.cc-mini:not(.shell) .ico { width: 34px; height: 34px; color: var(--bl); stroke-width: 1.6; }
.cc-mini:not(.shell) span { font-size: 13px; color: var(--nv); font-weight: 600; line-height: 1.2; }
.cc-mini:not(.shell) b { font-size: 20px; font-weight: 800; color: var(--nv); white-space: nowrap; letter-spacing: -.01em; }
.cc-mini:not(.shell) small { font-size: 11.5px; color: #334155; }
.cc-mini:not(.shell).q b { font-size: 22px; } .cc-mini:not(.shell).q .ico { width: 30px; height: 30px; }
.cc-mini:not(.shell).q > a:nth-child(2) .ico { color: #f59e0b; }

/* phễu dự án kỹ thuật */
.cc-fn { display: flex; align-items: flex-start; gap: 2px; }
.cc-fn > button { flex: 1; display: grid; justify-items: center; gap: 3px; border: 0; background: none; padding: 2px; min-width: 0; border-radius: 8px; }
.cc-fn > button:hover { background: #f2f7ff; }
.cc-fn .ico { width: 26px; height: 26px; color: var(--bl); }
.cc-fn span { font-size: 11px; text-align: center; line-height: 1.15; min-height: 26px; color: var(--nv); font-weight: 600; }
.cc-fn b { font-size: 21px; font-weight: 800; color: var(--nv); }
.cc-fn em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #16a34a; border-radius: 10px; padding: 1px 8px; }
.cc-fn em.warn { background: #f5b301; } .cc-fn em.bad { background: #e11d2e; } .cc-fn em:not(.ok):not(.warn):not(.bad) { background: #94a3b8; }
.cc-fn .ar { align-self: center; margin-top: 18px; } .cc-fn .ar .ico { width: 16px; height: 16px; color: var(--nv); }

/* việc của PGĐ */
.cc-hd { display: flex; gap: 6px; align-items: center; }
.cc-tk { list-style: none; margin: 0; padding: 0; display: grid; max-height: 196px; overflow: auto; }
.cc-tk li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #eef2f8; }
.cc-tk .ck { border: 0; background: none; padding: 0; color: var(--bl); display: grid; place-items: center; }
.cc-tk .ck .ico { width: 22px; height: 22px; }
.cc-tk a { color: var(--nv); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tk .due { font-size: 13.5px; font-weight: 700; color: var(--nv); }
.cc-tk li.muted { display: block; white-space: normal; } /* m1811: dòng “Không có việc đang mở.” không bị bóp vào cột ô tích 26px */
.cc-tk li.od .due { color: #e11d2e; } .cc-tk li.done a { text-decoration: line-through; color: #94a3b8; } .cc-tk li.done .ck { color: #16a34a; }
.cc-kt td, .cc-kt th { font-size: 13px; }
.cc-kt tfoot td { background: #fff1b8; }

/* danh sách PGĐ */
.cc-lds { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.cc-ld { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #d3e2f6; border-radius: 10px; padding: 10px 12px; color: inherit; background: #fbfdff; }
.cc-ld:hover { border-color: var(--bl); background: #f2f7ff; }
.cc-ld b { display: block; font-size: 16px; color: var(--nv); } .cc-ld small { display: block; color: #1f4fa8; font-size: 13px; } .cc-ld em { display: block; font-style: normal; font-size: 12px; color: #64748b; }
.cc-helpb ul { padding-left: 18px; display: grid; gap: 6px; } .cc-helpb .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* màn hình nhỏ hơn ảnh mẫu */
@media (max-width: 1560px) {
  .shell.cc .gsearch .in { width: 240px; }
  .shell.cc .topbar h1 { font-size: 18px; }
  .cc-me > button > span { max-width: 130px; }
}
@media (max-width: 1440px) {
  .cc-r1, .cc-r1.pg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-r2, .cc-r2.pg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cc-r2 > .cc-seg { grid-column: 1 / -1; }
  .cc-r3, .pgd .cc-r3, .pgd.kt .cc-r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-r4.pg, .cc-r4.pg.kt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-r4.pg > .cc-kpis { grid-column: 1 / -1; }
  .cc-r4.pg.kt > .cc-kpis { grid-column: auto; }
  .shell.cc .gsearch .in { width: 200px; }
  .cc-me > button > span { display: none; }
}
@media (max-width: 1180px) {
  .ccd.pgd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "prof" "r1" "r2" "r3" "r4"; }
  .cc-r4 { grid-template-columns: minmax(0, 1fr); }
  .cc-r1, .cc-r1.pg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-r1 .cc-score { grid-column: 1 / -1; }
  .shell.cc .topbar { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .shell.cc { --side: 260px; }
  .shell.cc .topbar h1 { font-size: 15px; white-space: normal; }
  .shell.cc .topbar > div:nth-child(2) { flex: 1 1 0; }
  .cc-who { font-size: 13px; } .cc-who b, .cc-who select { font-size: 13px; padding: 4px 12px; }
  .cc-who select { padding-right: 28px; }
  .cc-r2, .cc-r2.pg, .cc-r3, .pgd .cc-r3, .pgd.kt .cc-r3, .cc-r4.pg, .cc-r4.pg.kt { grid-template-columns: minmax(0, 1fr); }
  .cc-flt { gap: 8px 12px; } .cc-flt label { font-size: 14px; } .cc-flt .sel { min-width: 140px; }
  .ccd .cc-tile b { font-size: 21px; } .ccd .cc-tile .ic .ico { width: 34px; height: 34px; } .ccd .cc-tile .lb { font-size: 13px; }
  .cc-note { display: none; }
  .shell.cc.cc-mini:not(.shell) { --side: 260px; }
}
@media (max-width: 560px) {
  .shell.cc .content { padding: 8px 8px 16px; }
  .cc-flt { width: 100%; } .cc-flt label { flex: 1 1 100%; justify-content: space-between; } .cc-flt .sel { flex: 1; min-width: 0; }
  .ccd .cc-tile { min-height: 92px; padding: 8px; gap: 6px; } .ccd .cc-tile .ic .ico { width: 26px; height: 26px; } .ccd .cc-tile b { font-size: 18px; } .ccd .cc-tile small { font-size: 11px; }
  .cc-sc { grid-template-columns: 116px 66px; } .cc-sc ul { grid-column: 1 / -1; }
  .cc-mini:not(.shell) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-mini:not(.shell).three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-mini:not(.shell) b { font-size: 15px; } .cc-mini:not(.shell) .ico { width: 26px; height: 26px; }
  .cc-donut { grid-template-columns: minmax(0, 1fr); }
  .cc-progb { grid-template-columns: 100px minmax(0, 1fr); }
  .cc-hr2 { grid-template-columns: minmax(0, 1fr); }
  .cc-fn { flex-wrap: wrap; } .cc-fn > button { flex: 1 0 30%; } .cc-fn .ar { display: none; }
  .cc-wtabs > button[data-wt] { font-size: 13px; padding: 6px 10px; }
  .cc-risk a { font-size: 13px; } .ccd .bg-lv { min-width: 0; font-size: 11.5px; padding: 3px 6px; }
  .cc-pf h3 { font-size: 18px; }
}

/* vòng 2 — khít một màn hình như ảnh */
@media (min-width: 1441px) { .cc-headc { flex-wrap: nowrap; } }
.cc-flt { gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
.cc-flt label { font-size: 15px; gap: 8px; }
.cc-flt .sel { min-width: 150px; max-width: 210px; }
.cc-ttl > div { min-width: 0; }
.cc-ttl h2, .cc-ttl span { white-space: nowrap; }
.ccd .cc-tile { gap: 8px; padding: 10px 10px; }
.ccd .cc-tile .ic .ico { width: 40px; height: 40px; }
.ccd .cc-tile .lb { font-size: 14px; }
.cc-r1 { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(330px, 1.78fr); }
.cc-r1.pg { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(330px, 1.55fr); }
.cc-sc { grid-template-columns: 124px 62px minmax(0, 1fr); }
.cc-medal { width: 124px; height: 104px; }
.cc-sc li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-sc li { min-width: 0; font-size: 12px; }
.cc-seg .cc-t td.l { white-space: nowrap; }
.cc-seg .cc-sn { font-size: 12.5px; }
.cc-seg .cc-t th { font-size: 11px; padding: 3px 5px 5px; }
.cc-seg .cc-t td { padding: 5px 5px; font-size: 13px; }
.cc-bar { width: 52px; }
.shell.cc .cc-side .cc-i { position: relative; }
.shell.cc .cc-side .cc-i > .cc-b { position: absolute; left: 27px; top: 2px; font-size: 10px; padding: 0 5px; line-height: 15px; margin: 0; box-shadow: 0 0 0 2px #0b2d72; }
.shell.cc .cc-side .cc-sub .cc-b { position: static; box-shadow: none; }
.cc-seg .cc-t th { white-space: nowrap; font-size: 10.5px; }
.cc-r2 { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) minmax(0, 1.02fr); }
.cc-wt td, .cc-wt th { white-space: nowrap; }
.cc-wt td.l:nth-child(2) { white-space: normal; min-width: 180px; }
.cc-medal { width: 116px; height: 94px; }
.cc-sc { grid-template-columns: 116px 60px minmax(0, 1fr); }
.cc-score > header { margin-bottom: 0; }
.cc-grade b { font-size: 30px; }
.cc-seg .cc-t th { font-size: 10px; padding: 2px 4px 4px; }
.cc-seg .cc-t td { padding: 4px 4px; }
.cc-seg .cc-bar { width: 40px; margin-right: 4px; }
.cc-seg .cc-pb b { min-width: 32px; }
.cc-t.cc-wt td.l { white-space: nowrap; }
.cc-t.cc-wt td.l:nth-child(2) { white-space: normal; }
.cc-t.cc-wt td { padding: 4px 6px; }
.cc-scroll { max-height: 142px; }
.ccd .cc-tile { min-height: 98px; }
.cc-medal { width: 110px; height: 88px; }
.cc-sc { grid-template-columns: 110px 60px minmax(0, 1fr); }
.cc-medal b { font-size: 17px; }
.cc-dl a { padding: 3px 3px; }
.cc-risk li { padding: 4px 0; }
.cc-donut .chart { height: 190px; }
.cc-trend .chart { height: 212px; }
.cc-card > header { margin-bottom: 4px; }
.cc-donut { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.cc-leg { font-size: 11.5px; }
/* PGĐ */
.pgd .cc-card > header h3 { font-size: 16.5px; }
.pgd .cc-card > header h3 small { font-size: 13.5px; }
.pgd .cc-card > header h3 > .ico, .pgd .cc-card > header h3 > svg { width: 24px; height: 24px; }
.cc-prof { position: relative; }
.cc-pf { grid-template-columns: auto minmax(0, 1fr); }
.cc-pf > .cc-mini-b { position: absolute; top: 8px; right: 8px; }
.cc-pf h3 { font-size: 19px; }
.pgd .cc-seg .cc-sn { white-space: nowrap; font-size: 12.5px; }
.pgd .cc-seg .cc-t td.l { white-space: nowrap; }
.pgd .cc-seg .cc-t th { font-size: 10.5px; white-space: nowrap; }
.pgd.kt .cc-seg .cc-t td { font-size: 11.5px; padding: 5px 4px; }
.cc-r2.pg { grid-template-columns: minmax(0, 1.28fr) minmax(0, .95fr) minmax(0, .85fr); }
.pgd.kt .cc-r2.pg { grid-template-columns: minmax(0, 1.5fr) minmax(0, .95fr) minmax(0, .82fr); }
.cc-r4.pg.kt { grid-template-columns: minmax(0, .62fr) minmax(0, 1.42fr) minmax(0, .95fr) minmax(0, .95fr); }
.cc-kt td.l { font-size: 12px; line-height: 1.25; }
.cc-kt td, .cc-kt th { padding: 4px 4px; }
.cc-kt th { white-space: nowrap; }
@media (max-width: 900px) {
  .shell.cc .topbar { position: relative; top: auto; padding: 6px 10px; gap: 8px; }
  .shell.cc .gsearch .in { width: 100%; }
}

/* ===== responsive (cuối tệp để thắng các quy tắc máy tính phía trên) ===== */
@media (max-width: 1440px) {
  .cc-r1, .cc-r1.pg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-r2, .cc-r2.pg, .pgd.kt .cc-r2.pg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cc-r2 > .cc-seg { grid-column: 1 / -1; }
  .cc-r4.pg, .cc-r4.pg.kt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-r4.pg > .cc-kpis { grid-column: 1 / -1; }
  .cc-r4.pg.kt > .cc-kpis { grid-column: auto; }
}
@media (max-width: 1180px) {
  .cc-r1, .cc-r1.pg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-r1 .cc-score { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cc-r2, .cc-r2.pg, .pgd.kt .cc-r2.pg, .cc-r3, .pgd .cc-r3, .pgd.kt .cc-r3, .cc-r4.pg, .cc-r4.pg.kt { grid-template-columns: minmax(0, 1fr); }
  .cc-r4.pg > .cc-kpis, .cc-r4.pg.kt > .cc-kpis { grid-column: auto; }
  .shell.cc .topbar { flex-wrap: wrap; }
  .shell.cc .topbar > div:nth-child(2) { flex: 1 1 calc(100% - 56px); }
  .shell.cc .topbar h1 { font-size: 15px; white-space: normal; line-height: 1.25; }
  .shell.cc .topbar > .sp { display: none; }
  .cc-donut { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cc-sc { grid-template-columns: 110px 60px; }
  .cc-sc ul { grid-column: 1 / -1; }
  .cc-donut { grid-template-columns: minmax(0, 1fr); }
  .cc-donut .chart { height: 210px; }
  .cc-ttl h2 { font-size: 19px; } .cc-ttl span { white-space: normal; }
  .cc-headc .cc-ttl { flex-wrap: wrap; }
  .ccd .cc-tile b { font-size: 18px; white-space: normal; }
}
.ccd .cc-t td b, .ccd .bg-st td:nth-child(2) b { white-space: inherit; }
@media (min-width: 1441px) { .cc-r2.pg { grid-template-columns: minmax(0, 1.45fr) minmax(0, .92fr) minmax(0, .78fr); } }
.pgd .cc-seg .cc-t td, .pgd .cc-seg .cc-t th { padding-left: 3px; padding-right: 3px; }

/* ===================== KPI theo đặc tả 10/11/2026 (tác nhân KPI) — chỉ lớp mới kp-*, không sửa lớp chung .cc-tile / .cc-card ===================== */
/* trang KPI & Mục tiêu (#/exec/bgd/kpi) */
.kpd .kp-tbl td, .kpd .kp-tbl th { vertical-align: top; }
.kpd .kp-tbl tr.kp-g td { background: #f1f6fd; border-top: 2px solid #d3e2f6; font-size: 13px; }
.kpd .kp-tbl tr.kp-p td:nth-child(2) { padding-left: 18px; }
.kpd .kp-pn { font-weight: 600; overflow-wrap: anywhere; }
.kpd .kp-act { font-weight: 800; color: #1250c8; text-decoration: underline dotted; }
.kpd .kp-acts { flex-wrap: wrap; gap: 6px; }
.kpd .kp-note { font-size: 12px; padding: 4px 2px 0; line-height: 1.45; }
.kpd .kp-self { font-size: 12px; }
.kpd .kp-open { border-left: 3px solid #f59e0b; }
.kpd .bg-kpib li[data-badge] { cursor: pointer; }
.kpd .kp-ver tr.kp-adj td { background: #fffbeb; }
.kp-src tr.kp-ex td { text-decoration: line-through; color: #94a3b8; }
.kp-src tr.kp-ex td:nth-child(5), .kp-src tr.kp-ex td:last-child { text-decoration: none; }
.kp-dhead { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.kp-dhead > div { display: grid; gap: 2px; min-width: 0; } .kp-dhead > div small { color: #64748b; font-size: 12px; }
.kp-dhead dl { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; font-size: 13px; } .kp-dhead dt { color: #64748b; } .kp-dhead dd { margin: 0; }
.kp-h4 { margin: 12px 0 4px; font-size: 13px; color: #0b2a5b; }
.kp-exl { margin: 0; padding-left: 18px; font-size: 12.5px; display: grid; gap: 3px; }
.kp-hist { margin-top: 8px; font-size: 12.5px; } .kp-hist ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; } .kp-hist small { color: #64748b; }
/* thẻ thành tích bấm được (mọi màn hình vị trí) */
.ccd .cc-score li[data-cbadge] { cursor: pointer; }
.ccd .cc-score li[data-cbadge]:hover span { text-decoration: underline; }
/* bảng KPI theo nhóm trên màn hình PGĐ */
.ccd .cc-kt tr.kp-bonus td { padding-top: 0; }
/* ô Công nợ quá hạn (PGĐ XNK) */
.ccd .cc-tile.kp-red { background: linear-gradient(135deg, #b91c1c, #ef4444); }
/* PGĐ Kỹ thuật: ô chỉ số cá nhân có thẻ chuyển Cá nhân / Công nợ / Nhân sự */
.ccd .kp-own .kp-otabs { margin-bottom: 6px; }
.ccd .kp-own .kp-ot[hidden] { display: none; }
.ccd .kp-own .cc-mini:not(.shell) b { font-size: clamp(13px, 1.05vw, 18px); white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.ccd .kp-own .cc-mini:not(.shell) span { font-size: clamp(11px, .8vw, 12.5px); }
.ccd .kp-own .cc-mini:not(.shell) .ico { width: 26px; height: 26px; }
.ccd .kp-own .cc-mt + .cc-mt { margin-top: 6px; }
/* PGĐ XNK: hiệu quả nhập khẩu, tồn kho theo hạn dùng, công nợ theo khách hàng */
.ccd .kp-mini4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.ccd .kp-mini4.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccd .kp-mini4 > a { display: grid; justify-items: center; text-align: center; gap: 1px; border: 1px solid #d3e2f6; border-radius: 9px; background: #fbfdff; padding: 6px 3px; color: inherit; min-width: 0; }
.ccd .kp-mini4 > a:hover { border-color: #2b7bf3; background: #f2f7ff; }
.ccd .kp-mini4 > a.bad b { color: #dc2626; }
.ccd .kp-mini4 .ico { width: 20px; height: 20px; color: #1f6fe0; }
.ccd .kp-mini4 span { font-size: clamp(10.5px, .78vw, 12px); color: #0b2a5b; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.ccd .kp-mini4 b { font-size: clamp(13px, 1.05vw, 17px); font-weight: 800; color: #0b2a5b; overflow-wrap: anywhere; line-height: 1.15; }
.ccd .kp-mini4 small { font-size: 10.5px; color: #475569; overflow-wrap: anywhere; }
.ccd .kp-sc { max-height: 170px; overflow: auto; }
.ccd .kp-sc .cc-t td, .ccd .kp-sc .cc-t th { font-size: clamp(10.5px, .78vw, 12px); }
.ccd .kp-exp { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ccd .kp-exp a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; color: inherit; font-size: clamp(10.5px, .78vw, 12px); min-width: 0; }
.ccd .kp-exp a span { overflow-wrap: anywhere; min-width: 0; }
.ccd .kp-exp a i { display: block; height: 8px; border-radius: 4px; background: #16a34a; min-width: 0; }
.ccd .kp-exp a.k-expired i { background: #dc2626; } .ccd .kp-exp a.k-d90 i { background: #f59e0b; } .ccd .kp-exp a.k-d180 i { background: #eab308; } .ccd .kp-exp a.k-none i { background: #94a3b8; }
.ccd .kp-exp a b { white-space: nowrap; } .ccd .kp-exp a small { color: #64748b; white-space: nowrap; }
.ccd .kp-dec { position: relative; } .ccd .kp-dec em { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; border-radius: 9px; font-size: 10px; font-style: normal; padding: 0 4px; line-height: 15px; }
@media (max-width: 900px) {
  .ccd .kp-mini4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccd .kp-mini4.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kp-dhead dl { grid-template-columns: auto minmax(0, 1fr); }
}
/* hàng ô PGĐ XNK: 5 ô + thẻ điểm — co chữ / biểu tượng theo bề rộng (khổ > 1440 px hiển thị 6 cột trên một hàng) */
@media (min-width: 1441px) {
  .ccd .cc-r1.kp-r1x { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(280px, 1.35fr); }
  .ccd .kp-r1x .cc-tile { padding: 8px; gap: 6px; }
  .ccd .kp-r1x .cc-tile .ic .ico { width: clamp(22px, 1.9vw, 40px); height: clamp(22px, 1.9vw, 40px); }
  .ccd .kp-r1x .cc-tile b { font-size: clamp(16px, 1.3vw, 26px); }
  .ccd .kp-r1x .cc-tile .lb { font-size: clamp(11.5px, .8vw, 14px); }
  .ccd .kp-r1x .cc-tile small { font-size: clamp(10px, .7vw, 12.5px); }
}
/* ===================== hết khối KPI ===================== */
