/* trang/bao-cao.css — kiểu riêng của màn Báo cáo (tiền tố bcao-; KHÔNG dùng bc- vì chung.css đã dùng cho bố cục cột). */
.bcao-than { --bcao-a: #3a6ea5; --bcao-b: #b97a1f; transition: opacity .15s; }
.bcao-than.bcao-dang-tai { opacity: .5; pointer-events: none; }
.bcao-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bcao-loc > .o-chon.bcao-o-nhom { width: auto; min-width: 190px; flex: 0 1 240px; }
.bcao-tu-chon { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bcao-ngay { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--mo); }
.bcao-ngay > .o-nhap { width: 156px; height: 34px; padding: 0 8px; }
.bcao-ky { display: flex; align-items: center; gap: 8px; color: var(--mo); font-size: 13.5px; margin-bottom: 12px; min-height: 30px; }
.bcao-ky b { color: var(--muc); font-weight: 650; }
.bcao-ky > svg { flex: none; }
.bcao-ky > span:not(.gian) { flex: 0 1 auto; min-width: 0; line-height: 1.45; }
.bcao-khoi { margin-top: 16px; }
.bcao-xuong-the { padding: 16px 18px; }

/* ô số chính */
.bcao-o-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bcao-o { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo-to); padding: 14px 16px 13px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bcao-o-nhan { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mo); }
.bcao-o-hoi { display: inline-flex; color: var(--mo-2); border-radius: 50%; cursor: help; }
.bcao-o-hoi:hover, .bcao-o-hoi:focus-visible { color: var(--vang-dam); }
.bcao-o-so { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--muc); }
.bcao-o-phu { font-size: 13px; color: var(--mo); line-height: 1.4; }
.bcao-o-cam { border-color: #f1d3a4; background: var(--cam-nen); }
.bcao-o-cam .bcao-o-so > svg { color: var(--cam); }
.bcao-o-tot .bcao-o-so > svg { color: var(--tot); }
.bcao-o-cam .bcao-o-phu a { color: #7a3f00; font-weight: 600; }
.bcao-xuong-so { height: 26px; margin: 4px 0; }

/* biểu đồ */
.bcao-the-dau { border-bottom: 0; padding-bottom: 4px; }
.bcao-bd-dau { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.bcao-bd-hang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.bcao-chu-giai { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muc-2); }
.bcao-cg { display: inline-flex; align-items: center; gap: 6px; }
.bcao-khoa { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.bcao-khoa-net { width: 16px; height: 3px; border-radius: 2px; }
.bcao-nen-a { background: var(--bcao-a); }
.bcao-nen-b { background: var(--bcao-b); }
.bcao-bd { min-width: 0; }
.bcao-ve { position: relative; min-width: 0; }
.bcao-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; outline: none; border-radius: 8px; }
.bcao-svg:focus-visible { box-shadow: var(--vong); }
.bcao-luoi { stroke: var(--vien); stroke-width: 1; }
.bcao-truc { stroke: var(--vien-2); stroke-width: 1; }
.bcao-chu-truc { font: 11.5px/1 var(--chu); fill: var(--mo); font-variant-numeric: tabular-nums; }
.bcao-dai { fill: rgba(20, 20, 20, .055); pointer-events: none; }
.bcao-day-a { fill: var(--bcao-a); }
.bcao-day-b { fill: var(--bcao-b); }
.bcao-cot { pointer-events: none; }
.bcao-duong { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.bcao-net-a { stroke: var(--bcao-a); }
.bcao-net-b { stroke: var(--bcao-b); }
.bcao-diem { stroke: #fff; stroke-width: 2; pointer-events: none; }
.bcao-diem.chon { stroke: var(--muc); }
.bcao-goi { position: absolute; top: 4px; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--vien-2); border-radius: 10px; box-shadow: var(--bong); padding: 8px 11px; font-size: 13px; min-width: 150px; max-width: 250px; }
.bcao-goi-dau { font-weight: 650; margin-bottom: 4px; color: var(--muc); }
.bcao-goi-dong { display: flex; align-items: center; gap: 7px; color: var(--mo); line-height: 1.6; }
.bcao-goi-dong b { color: var(--muc); font-variant-numeric: tabular-nums; }
.bcao-goi-dong .bcao-khoa { width: 12px; height: 3px; border-radius: 2px; }
.bcao-goi-mo { color: var(--mo); }
.bcao-bd-cho { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 250px; text-align: center; padding: 0 12px; }
.bcao-bd-ghi { margin-top: 8px; max-width: 78ch; }
.bcao-bang-o { max-height: 380px; overflow-y: auto; border-radius: 12px; }

/* bảng */
.bcao-the-bang { overflow-x: auto; }
.bcao-the-bang > .bang th:first-child, .bcao-the-bang > .bang td:first-child { padding-left: 18px; }
.bcao-the-bang > .bang th:last-child, .bcao-the-bang > .bang td:last-child { padding-right: 18px; }
.bcao-the-bang > .bang th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.bcao-the-tab { padding: 0 12px; }
.bcao-the-tab > .thanh-tab { border-bottom: 0; }
.bcao-the-tab + .the-than { border-top: 1px solid var(--vien); }
.bcao-ten { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bcao-ten-chu { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bcao-ten-chu > span { overflow-wrap: anywhere; }
.bcao-ten-chu > small { font-weight: 400; font-size: 12.5px; color: var(--mo); }
.bcao-ngoai-hinh { width: 30px; height: 30px; border-radius: 50%; background: var(--nen-2); color: var(--mo); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bcao-hang-ngoai td { color: var(--muc-2); }

/* cách tính */
.bcao-cach { padding: 0; }
.bcao-cach-dau { display: flex; align-items: center; gap: 9px; padding: 13px 18px; font-weight: 650; cursor: pointer; list-style: none; min-height: 46px; border-radius: var(--bo-to); }
.bcao-cach-dau::-webkit-details-marker { display: none; }
.bcao-cach-dau > svg:first-child { color: var(--vang-dam); }
.bcao-cach-dau > span { flex: 1; }
.bcao-cach-mui { color: var(--mo); transition: transform .15s; }
.bcao-cach[open] .bcao-cach-mui { transform: rotate(180deg); }
.bcao-cach-ds { margin: 0; padding: 2px 18px 16px; display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 10px 18px; font-size: 13.5px; line-height: 1.5; border-top: 1px solid var(--vien); padding-top: 14px; }
.bcao-cach-ds dt { font-weight: 650; }
.bcao-cach-ds dd { margin: 0; color: var(--muc-2); }

@media (max-width: 1180px) { .bcao-o-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bcao-o-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bcao-loc > .o-chon.bcao-o-nhom { flex: 1 1 100%; }
  .bcao-loc > .gian { display: none; }
  .bcao-tu-chon { width: 100%; }
  .bcao-ngay { flex: 1 1 140px; }
  .bcao-ngay > .o-nhap { width: 100%; height: 46px; flex: 1; }
  .bcao-ky { align-items: flex-start; }
  .bcao-ky > svg { margin-top: 3px; }
  .bcao-ky > .nut { margin-top: -8px; }
  .bcao-loc .day-chip { gap: 6px; max-width: 100%; }
  .bcao-loc .chip { padding: 0 11px; }
  .bcao-o-luoi { gap: 10px; }
  .bcao-o { padding: 12px 12px 11px; }
  .bcao-o-so { font-size: 23px; }
  .bcao-o-hoi { display: none; }
  .bcao-bd-cho { min-height: 210px; }
  .bcao-the-bang { overflow-x: visible; }
  .bcao-the-bang > .bang th:first-child, .bcao-the-bang > .bang td:first-child, .bcao-the-bang > .bang td:last-child { padding-left: 0; padding-right: 0; }
  .bcao-cach-ds { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bcao-cach-ds dd { margin-bottom: 10px; }
}
