/* Dashboard Kế toán trưởng — “KẾ TOÁN TRƯỞNG – Trung tâm kiểm soát tài chính ABC” (cập nhật 1111). Theo ảnh “Tài sản và nợ phải trả.png”.
   Dùng trong khung chung .shell.cc (phông CC Condensed, nền xanh nhạt của bgd-cc.css). Tiền tố lớp: kt- */
.kt { --nv: #0b2a5b; --bl: #1f6fe0; --ln: #dbe6f5; --mut: #5b6b82; display: grid; gap: 10px; color: var(--nv); min-width: 0; }
.kt > * { min-width: 0; }
.kt-card { background: #fff; border: 1px solid #d3e2f6; border-radius: 12px; box-shadow: 0 2px 10px rgba(25, 70, 150, .07); padding: 10px 14px 12px; min-width: 0; }
.kt-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.kt-card > header h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--nv); letter-spacing: -.01em; line-height: 1.2; min-width: 0; margin: 0; }
.kt-card > header h3 .ico { width: 24px; height: 24px; color: var(--bl); flex: none; }
.kt-card > header h3 small { font-size: 13px; font-weight: 500; }
.kt-hx { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; }
.kt-xl, .kt-info, .kt-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #cfe0f5; background: #f5f9ff; color: #15803d; cursor: pointer; padding: 0; }
.kt-info { color: var(--bl); }
.kt-ib { color: var(--nv); width: 38px; height: 38px; background: #fff; border-color: #b9cdea; }
.kt-xl:hover, .kt-info:hover, .kt-ib:hover { background: #e7f1ff; }
.kt-xl .ico, .kt-info .ico, .kt-ib .ico { width: 17px; height: 17px; }
.kt-lnk { font-size: 13.5px; color: var(--bl); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.kt-lnk .ico { width: 14px; height: 14px; }
.kt-it { font-size: 12.5px; color: var(--mut); font-style: italic; }
.kt-real { font-style: italic; font-size: 12px; font-weight: 600; color: #1d4ed8; background: #eaf2ff; border-radius: 999px; padding: 3px 10px; margin-left: 6px; white-space: nowrap; }
.kt-empty { text-align: center !important; color: #64748b; font-weight: 500; padding: 14px !important; white-space: normal !important; }
.kt-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--mut); margin-top: 6px; line-height: 1.35; }
.kt-note .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--bl); }
.kt-flash { box-shadow: 0 0 0 3px #7c3aed55; transition: box-shadow .3s; }

/* ---- đầu trang + bộ lọc ---- */
.kt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding: 10px 14px; }
.kt-ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kt-hic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #e8f1ff, #d4e6ff); display: grid; place-items: center; flex: none; }
.kt-hic .ico { width: 28px; height: 28px; color: var(--bl); }
.kt-ttl h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--nv); line-height: 1.15; }
.kt-ttl span { font-size: 13.5px; color: var(--mut); }
.kt-flt { display: flex; align-items: flex-end; gap: 8px 14px; flex-wrap: wrap; }
.kt-flt > label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--nv); min-width: 0; }
.kt-flt > label > span:first-child { padding-left: 2px; }
.kt-in { display: flex; align-items: center; gap: 6px; height: 38px; border: 1px solid #b9cdea; border-radius: 8px; padding: 0 8px; background: #fff; }
.kt-in > .ico { width: 16px; height: 16px; color: var(--bl); flex: none; }
.kt-in select, .kt-in input { border: 0; outline: 0; background: transparent; font-size: 14.5px; font-weight: 500; color: var(--nv); height: 34px; min-width: 120px; max-width: 200px; font-family: inherit; }
.kt-rng { display: flex; gap: 4px; margin-top: 3px; }
.kt-rng input { height: 32px; border: 1px solid #b9cdea; border-radius: 7px; padding: 0 6px; font-family: inherit; }
.kt-fb { display: flex; gap: 6px; }
.kt-msw { position: relative; padding: 0; }
.kt-ms { display: flex; align-items: center; gap: 6px; height: 36px; border: 0; background: transparent; padding: 0 8px; font-size: 14.5px; color: var(--nv); cursor: pointer; min-width: 150px; font-family: inherit; }
.kt-ms b { font-weight: 500; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.kt-ms .ico { width: 16px; height: 16px; color: var(--bl); }
.kt-msp { position: absolute; z-index: 30; top: 40px; left: 0; background: #fff; border: 1px solid #c6d8f2; border-radius: 10px; box-shadow: 0 12px 30px rgba(10, 40, 90, .18); padding: 8px; display: grid; gap: 4px; min-width: 240px; }
.kt-msp label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 4px 6px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.kt-msp label:hover { background: #f1f6ff; }
.kt-msp label i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kt-xall { white-space: nowrap; }
.kt-ph .kt-back { margin-left: auto; }
.kt-days { display: grid; gap: 3px; font-size: 13px; font-weight: 700; }
.kt-days select, .kt-days input { height: 38px; }

/* ---- dải cảnh báo ---- */
.kt-alert { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; background: #fff1f1; border: 1px solid #f7caca; border-radius: 12px; padding: 9px 14px; }
.kt-alert.warn { background: #fff8e8; border-color: #f4dfa2; }
.kt-alert.calm { background: #f0fbf3; border-color: #bfe7cb; }
.kt-at { display: flex; align-items: center; gap: 6px; color: #d41f2f; font-size: 17px; font-weight: 800; white-space: nowrap; }
.kt-alert.calm .kt-at { color: #15803d; }
.kt-at .ico { width: 22px; height: 22px; }
.kt-ac { border: 0; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.kt-ac.c { background: #e5303f; color: #fff; } .kt-ac.w { background: #fde7b0; color: #8a5a00; } .kt-ac.d { background: #dbeafe; color: #1d4ed8; }
.kt-amsg { flex: 1; min-width: 180px; font-size: 14px; font-weight: 600; color: #1e293b; padding-left: 12px; border-left: 1px solid #f0b7b7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-amore { color: #1d4ed8; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.kt-amore .ico { width: 16px; height: 16px; }

/* ---- 5 ô chỉ số ---- */
.kt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kt-tile { position: relative; display: flex; gap: 10px; align-items: center; border: 1px solid transparent; border-radius: 12px; padding: 12px; text-align: left; cursor: pointer; min-height: 96px; font-family: inherit; transition: transform .15s, box-shadow .15s; overflow: hidden; }
.kt-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 50, 110, .18); }
.kt-tile .ic { width: 52px; height: 52px; display: grid; place-items: center; flex: none; border-radius: 12px; }
.kt-tile .ic .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.kt-tile .tx { display: grid; gap: 1px; min-width: 0; }
.kt-tile .lb { font-size: 14px; font-weight: 700; line-height: 1.15; }
.kt-tile b { font-size: 27px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.kt-tile small { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.kt-tile em { font-style: normal; font-size: 11px; opacity: .85; line-height: 1.2; }
.kt-tile.t-cash { background: linear-gradient(135deg, #1546c8, #2f6ff0); color: #fff; box-shadow: 0 6px 14px rgba(20, 60, 160, .25); }
.kt-tile.t-cash .ic { background: rgba(255, 255, 255, .15); }
.kt-tile.t-ar { background: #fdecef; border-color: #f8cdd5; color: #b0122a; }
.kt-tile.t-ar .ic { background: #fff; color: #e11d48; }
.kt-tile.t-ar .lb, .kt-tile.t-ar b { color: #d11b38; } .kt-tile.t-ar small, .kt-tile.t-ar em { color: #45202a; }
.kt-tile.t-ap { background: #fff6dc; border-color: #f6dfa0; color: #7a4f00; }
.kt-tile.t-ap .ic { background: #fff; color: #e59a00; }
.kt-tile.t-ap .lb, .kt-tile.t-ap b { color: #9a5b00; } .kt-tile.t-ap small, .kt-tile.t-ap em { color: #3b2b05; }
.kt-tile.t-st { background: #e6f7ea; border-color: #bfe6c9; color: #146c34; }
.kt-tile.t-st .ic { background: #fff; color: #16a34a; }
.kt-tile.t-st b { color: #0f6b30; } .kt-tile.t-st small, .kt-tile.t-st em { color: #1c3b26; }
.kt-tile.t-kpi { background: linear-gradient(135deg, #4c1d95, #6d4ae0); color: #fff; box-shadow: 0 6px 14px rgba(76, 29, 149, .28); }
.kt-tile.t-kpi .ic { background: rgba(255, 255, 255, .15); }

/* ---- lưới hàng ---- */
.kt-r1 { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.kt-r2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: start; }
.kt-r3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; align-items: start; }
.kt-r4 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; align-items: start; }

/* ---- bảng ---- */
.kt-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kt-tw.kt-scroll { max-height: 420px; overflow-y: auto; }
.kt-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; color: var(--nv); }
.kt-t th { font-size: 12px; font-weight: 700; color: var(--nv); padding: 5px 7px; line-height: 1.2; border-bottom: 1px solid #dbe5f3; vertical-align: bottom; text-align: left; background: #f6f9fe; white-space: nowrap; }
.kt-t th:first-child { border-radius: 8px 0 0 0; } .kt-t th:last-child { border-radius: 0 8px 0 0; }
.kt-t td { padding: 6px 7px; border-bottom: 1px solid #eef2f8; font-weight: 600; vertical-align: middle; }
.kt-t .r { text-align: right; white-space: nowrap; } .kt-t .c { text-align: center; } .kt-t .l { text-align: left; } .kt-t .nw { white-space: nowrap; }
.kt-t .num { font-variant-numeric: tabular-nums; }
.kt-t tfoot td { background: #e8f1ff; font-weight: 800; border-bottom: 0; }
.kt-t tfoot td:first-child { border-radius: 0 0 0 8px; } .kt-t tfoot td:last-child { border-radius: 0 0 8px 0; }
.kt-t tr.click, .kt-t [data-dk] { cursor: pointer; }
.kt-t tr.click:hover td, .kt-t td[data-dk]:hover { background: #eef5ff; }
.kt-t tr.sub td { font-weight: 500; font-size: 12.5px; color: var(--mut); }
.kt-t tr.od td { background: #fff6f6; }
.kt-t tr.muted td { color: #94a3b8; }
.kt-t tr.hl td, .kt-t th.hl { background: #fff7d6; }
.kt-t tr.band td { background: #e4eeff; font-weight: 800; color: #0b3a8a; letter-spacing: .03em; }
.kt-t tr.tot td { background: #f1f6ff; }
.kt .neg { color: #e11d2e; } .kt .pos { color: #15803d; } /* m1811: không đè .neg/.pos toàn hệ thống */
.kt-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--mut); margin-top: 1px; }
.kt-sn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.kt-sn i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kt-code { font-weight: 700; color: #1d4ed8; white-space: nowrap; }
/* giữ cột tên khi cuộn ngang (điện thoại) */
@media (max-width: 900px) {
  .kt-t.sticky1 tr > :first-child, .kt-t.sticky2 tr > :nth-child(2) { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #e2e8f0; }
  .kt-t.sticky1 thead tr > :first-child, .kt-t.sticky2 thead tr > :nth-child(2) { background: #f6f9fe; }
  .kt-t.sticky1 tfoot tr > :first-child, .kt-t.sticky2 tfoot tr > :nth-child(2) { background: #e8f1ff; }
  .kt-t.sticky2 tr > :first-child { position: static; }
}
.kt-ds { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 5px; margin-left: 5px; white-space: nowrap; background: #eef2f7; color: #64748b; vertical-align: middle; }
.kt-ds.ds-tmp, .kt-ds.ds-open { background: #fff1c2; color: #8a5a00; } .kt-ds.ds-none, .kt-ds.ds-nosync { background: #fde0e0; color: #b4232f; } .kt-ds.ds-na { background: #eef2f7; color: #64748b; }
.kt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.kt-pill .ico { width: 13px; height: 13px; }
.kt-pill.p-green { background: #dcfce7; color: #15803d; } .kt-pill.p-red { background: #fde0e0; color: #c81e1e; } .kt-pill.p-yellow { background: #fff1c2; color: #8a5a00; }
.kt-pill.p-sky { background: #e0f2fe; color: #0369a1; } .kt-pill.p-grey { background: #eef2f7; color: #64748b; } .kt-pill.p-blue { background: #dbeafe; color: #1d4ed8; }
.kt-bar { display: inline-block; width: 92px; height: 11px; border-radius: 6px; background: #e2e8f0; overflow: hidden; vertical-align: middle; margin-right: 7px; }
.kt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 6px; }
.kt-bar.warn i { background: linear-gradient(90deg, #fcd34d, #f5b301); } .kt-bar.bad i { background: linear-gradient(90deg, #f87171, #e11d2e); }
.kt-pg { white-space: nowrap; } .kt-pg b, .kt-pg span { font-size: 12.5px; }
.kt-st .kt-pill { font-size: 12px; padding: 3px 7px; }

/* ---- dòng tiền 30 ngày ---- */
.kt-fl { list-style: none; margin: 0; padding: 0; display: grid; }
.kt-fl li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #eef2f8; cursor: pointer; font-size: 14px; font-weight: 600; }
.kt-fl li:hover { background: #eef5ff; }
.kt-fl li b { font-size: 15px; white-space: nowrap; }
.kt-fl li .sg { font-style: normal; font-weight: 800; margin-right: 6px; }
.kt-fl li.in .sg { color: #16a34a; } .kt-fl li.out .sg { color: #e11d2e; }
.kt-fl li.end { background: #e6f0ff; border-radius: 8px; border: 0; margin: 3px 0; font-weight: 800; color: #0b3a8a; }
.kt-fl li.end b { font-size: 17px; }
.kt-fcb { display: flex; gap: 10px; align-items: center; border-radius: 10px; padding: 9px 12px; margin-top: 8px; }
.kt-fcb .ico { width: 28px; height: 28px; flex: none; }
.kt-fcb b { display: block; font-size: 16px; } .kt-fcb small { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; }
.kt-fcb.ok { background: #e6f7ea; color: #146c34; } .kt-fcb.ok .ico { color: #16a34a; }
.kt-fcb.warn { background: #fff6dc; color: #7a4f00; } .kt-fcb.bad { background: #fde7ea; color: #b0122a; } .kt-fcb.none { background: #eef2f7; color: #475569; }
.kt-sm { display: block; font-size: 12px; color: #1d4ed8; margin-top: 6px; font-weight: 600; }

/* ---- tài sản & nghĩa vụ ---- */
.kt-band { background: #e4eeff; color: #0b3a8a; font-weight: 800; font-size: 14px; padding: 5px 9px; border-radius: 7px; margin: 2px 0 2px; letter-spacing: .02em; }
.kt-bl { list-style: none; margin: 0 0 4px; padding: 0; }
.kt-bl li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; border-bottom: 1px solid #f0f4fa; }
.kt-bl li:hover { background: #eef5ff; }
.kt-bl li b { white-space: nowrap; }
.kt-bl li.tot { background: #f1f6ff; font-weight: 800; color: #0b3a8a; border-radius: 6px; border: 0; }
.kt-net { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: linear-gradient(135deg, #1546c8, #2f6ff0); color: #fff; border-radius: 10px; padding: 9px 12px; margin-top: 6px; }
.kt-net span b { display: block; font-size: 15px; } .kt-net span small { font-size: 11.5px; opacity: .9; }
.kt-net > b { font-size: 22px; white-space: nowrap; }
.kt-eqc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; margin-top: 7px; color: var(--mut); }
.kt-eqc .ico { width: 15px; height: 15px; color: var(--bl); }
.kt-eqp { border-radius: 6px; padding: 2px 9px; font-weight: 800; font-size: 12px; }
.kt-eqp.p-yellow { background: #fff1c2; color: #8a5a00; } .kt-eqp.p-green { background: #dcfce7; color: #15803d; } .kt-eqp.p-red { background: #fde0e0; color: #c81e1e; }
.kt-led { display: block; font-size: 11px; color: var(--mut); margin-top: 4px; }

/* ---- KPI ---- */
.kt-score { background: #e6efff; color: #1d4ed8; font-weight: 800; font-size: 15px; border-radius: 9px; padding: 5px 12px; white-space: nowrap; }
.kt-kfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.kt-kfoot .kt-lnk { margin-left: auto; }

/* ---- công nợ phải thu ---- */
.kt-arsum { display: inline-block; border: 1px solid #bfe6c9; background: #f0fbf3; border-radius: 9px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.kt-arsum b { color: #0f6b30; }
.kt-arb { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin-bottom: 8px; }
.kt-arc { display: grid; gap: 1px; align-content: center; border: 1px solid #e3ebf7; background: #f6f9fe; border-radius: 9px; padding: 7px 8px; text-align: center; cursor: pointer; font-family: inherit; min-width: 0; }
.kt-arc span { font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.kt-arc b { font-size: 18px; font-weight: 800; white-space: nowrap; } .kt-arc small { font-size: 11.5px; font-weight: 600; }
.kt-arc.tot { background: linear-gradient(135deg, #1546c8, #2f6ff0); color: #fff; border: 0; grid-template-columns: auto 1fr; text-align: left; gap: 2px 8px; }
.kt-arc.tot span { grid-column: 1 / -1; } .kt-arc.tot .ico { width: 26px; height: 26px; } .kt-arc.tot b { font-size: 21px; }
.kt-arc.ok b { color: #15803d; } .kt-arc.w7 b { color: #c27c00; } .kt-arc.o1 b { color: #e4572e; } .kt-arc.o3 b { color: #d11b38; } .kt-arc.nd b { color: #64748b; }
.kt-arc.w7 span { color: #c27c00; } .kt-arc.o1 span { color: #e4572e; } .kt-arc.o3 span { color: #d11b38; }
.kt-arc:hover { box-shadow: 0 4px 12px rgba(20, 60, 140, .14); }

/* ---- nhân sự ---- */
.kt-bub { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.kt-bub.b { background: #dbeafe; color: #1d4ed8; } .kt-bub.y { background: #fff1c2; color: #8a5a00; } .kt-bub.r { background: #fde0e0; color: #c81e1e; } .kt-bub.g { background: #dcfce7; color: #15803d; } .kt-bub.z { background: #f1f5f9; color: #64748b; }
.kt-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid #dbe6f5; background: #f6f9fe; color: var(--nv); cursor: pointer; font-family: inherit; }
.kt-chip.c-b { background: #e6efff; color: #1d4ed8; border-color: #c9dbfb; } .kt-chip.c-y { background: #fff4d6; color: #8a5a00; border-color: #f4dfa2; } .kt-chip.c-r { background: #fde7ea; color: #c81e1e; border-color: #f7c9cf; }
.kt-chip.on { background: #1f6fe0; color: #fff; border-color: #1f6fe0; }
.kt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; align-items: center; }
.kt-chips .sp, .kt-tool .sp, .kt-tabs .sp { flex: 1; }

/* ---- việc chờ / tab ---- */
.kt-wtabs, .kt-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.kt-wtabs button, .kt-tabs > button:not(.btn) { border: 0; background: none; font-family: inherit; font-size: 16px; font-weight: 800; color: #64748b; padding: 6px 10px; border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.kt-tabs > button:not(.btn) { font-size: 14.5px; }
.kt-wtabs button .ico { width: 20px; height: 20px; }
.kt-wtabs button.on, .kt-tabs > button.on { color: var(--nv); border-bottom-color: var(--bl); }
.kt-wtabs em { font-style: normal; background: #eef2f7; border-radius: 999px; padding: 0 8px; font-size: 12.5px; }
.kt-wtabs button.on em { background: #e6efff; color: #1d4ed8; }

/* ---- đối soát & chất lượng dữ liệu ---- */
.kt-ql { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kt-ql li { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-bottom: 1px solid #eef2f8; cursor: pointer; border-radius: 8px; }
.kt-ql li:hover { background: #eef5ff; }
.kt-ql li .ic { width: 34px; height: 34px; border-radius: 9px; background: #eaf2ff; display: grid; place-items: center; flex: none; }
.kt-ql li .ic .ico { width: 20px; height: 20px; color: var(--bl); }
.kt-ql li b { flex: 1; font-size: 15px; font-weight: 700; }
.kt-ql li .ch { width: 18px; height: 18px; color: #64748b; }

/* ---- trang chi tiết ---- */
.kt-tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.kt-tool .in { max-width: 320px; }
.kt-warnb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff8e8; border-color: #f4dfa2; }
.kt-warnb > .ico { width: 22px; height: 22px; color: #c27c00; flex: none; }
.kt-warnb span { flex: 1; min-width: 200px; font-size: 13.5px; }
.kt-kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 0 0 10px; font-size: 14px; }
.kt-kv dt { font-weight: 700; color: var(--mut); } .kt-kv dd { margin: 0; }
.kt-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-height: 320px; overflow-y: auto; }
.kt-hist li { padding: 4px 6px; border-bottom: 1px dashed #e2e8f0; }
.kt-help { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.kt-dmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--mut); margin-bottom: 8px; }
.kt-dt { font-size: 13px; }
.kt-dt td { font-weight: 500; }
.kt-fl.kt-fl { font-size: 12.5px; }
.kt-2c { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.kt-ck { width: 30px; height: 26px; border-radius: 6px; border: 1px solid #b9cdea; background: #fff; cursor: pointer; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #64748b; }
.kt-ck.on { background: #16a34a; border-color: #16a34a; color: #fff; } .kt-ck.na { background: #eef2f7; }
.kt-ck .ico { width: 16px; height: 16px; } .kt-ck[disabled] { cursor: not-allowed; opacity: .75; }
.kt-sgc { display: grid; grid-template-columns: 52px minmax(160px, 240px) 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef2f8; }
.kt-sgc b { display: flex; align-items: center; gap: 6px; } .kt-sgc b i { width: 10px; height: 10px; border-radius: 50%; }
.kt-sgc .checks { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }

/* ---- chân trang ---- */
.kt-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 6px 2px; color: var(--nv); }
.kt-foot b { font-size: 22px; font-weight: 800; color: #1d4ed8; letter-spacing: .02em; }
.kt-foot i { font-size: 13px; color: var(--mut); }
.kt-foot .sp { flex: 1; }
.kt-cfgs { color: #8a5a00 !important; }

/* ---- màn hình nhỏ ---- */
@media (max-width: 1500px) { .kt-tile b { font-size: 24px; } .kt-tile .ic { width: 44px; height: 44px; } .kt-tile .ic .ico { width: 28px; height: 28px; } }
@media (max-width: 1360px) { .kt-r1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kt-r1 .kt-seg { grid-column: 1 / -1; } }
@media (max-width: 1440px) { .kt-r2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1180px) { .kt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kt-r3, .kt-r4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .kt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-tiles .kt-tile.t-kpi { grid-column: 1 / -1; }
  .kt-r1 { grid-template-columns: minmax(0, 1fr); }
  .kt-head { padding: 9px 10px; } .kt-ttl h2 { font-size: 18px; }
  .kt-flt { width: 100%; } .kt-flt > label { flex: 1 1 140px; } .kt-in select, .kt-in input { min-width: 0; max-width: none; width: 100%; } .kt-ms { min-width: 0; width: 100%; }
  .kt-amsg { flex-basis: 100%; border-left: 0; padding-left: 0; white-space: normal; }
  .kt-2c { grid-template-columns: minmax(0, 1fr); }
  .kt-arb { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt-arb .kt-arc.tot { grid-column: 1 / -1; }
  .kt-card { padding: 9px 10px 10px; } .kt-card > header h3 { font-size: 16px; }
  .kt-sgc { grid-template-columns: 40px 1fr; } .kt-sgc .checks { grid-column: 1 / -1; }
  .kt-ph .kt-back { margin-left: 0; }
}
@media (max-width: 420px) { .kt-tile { padding: 9px; gap: 7px; min-height: 84px; } .kt-tile .ic { width: 36px; height: 36px; } .kt-tile .ic .ico { width: 22px; height: 22px; } .kt-tile b { font-size: 21px; } .kt-tile .lb { font-size: 12.5px; } .kt-tile em { display: none; } .kt-kv { grid-template-columns: 1fr; } }
.kt-st td.l, .kt-calt td.l:nth-child(4) { white-space: nowrap; }
.kt-kt td.l { min-width: 150px; }
.kt-kt .kt-bar { width: 56px; }
.kt-calt td.l:nth-child(2) { min-width: 180px; }

/* ---- u1112-kc: “Tự tạo lịch” — hộp chọn cách lập lịch, nhập Excel (xem trước), hướng dẫn 3 cách ---- */
.kt-mk { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.kt-mko { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; text-align: left; border: 1px solid #cfdcf0; border-radius: 10px; background: #fff; padding: 14px; cursor: pointer; font-family: inherit; color: var(--nv); min-width: 0; }
.kt-mko:hover, .kt-mko:focus-visible { border-color: #f59e0b; box-shadow: 0 0 0 3px #fde9c4; outline: none; }
.kt-mko .ico { width: 26px; height: 26px; color: #e8590c; }
.kt-mko b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.kt-mko span { font-size: 13px; color: var(--mut); line-height: 1.45; overflow-wrap: anywhere; }
.kt-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.kt-steps li small { color: var(--mut); }
.kt-filel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.kt-filel .in { max-width: 380px; min-width: 0; }
.kt-pvs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.kt-pvs small { color: var(--mut); font-size: 12.5px; }
.kt-pv tr[data-act="error"] td { background: #fff5f5; }
.kt-pv tr[data-act="skip"] td, .kt-pv tr[data-act="same"] td { color: #64748b; }
.kt-howto { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #f3f7fd; border: 1px dashed #c7d6ee; font-size: 12.5px; line-height: 1.5; color: #475569; }
.kt-howto .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #1f6fe0; }
.kt-howto span { min-width: 0; overflow-wrap: anywhere; }
