/* u1411-fv — Mảng Bia (resort.demo.microads.vn) & Dịch vụ ABC RESORT (resort.demo.microads.vn): dùng lại khung .kt (ktt.css), thêm ô chỉ tiêu, trạng thái kết nối, thẻ bảng */
.fv { display: grid; gap: 10px; min-width: 0; }
.fv-head .fv-hic { background: #fff3e0; color: #b45309; }
.fv-head .fv-hic.f2 { background: #fdecef; color: #e5484d; }
.fv-hb { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fv-flt { margin-left: auto; }
/* trạng thái kết nối */
.fv-state { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 12px; padding: 9px 14px; border: 1px solid; min-width: 0; }
.fv-state > .ico { width: 22px; height: 22px; flex: none; }
.fv-state > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.fv-state b { font-size: 14px; } .fv-state small { font-size: 12.5px; opacity: .9; overflow-wrap: anywhere; }
.fv-state.on { background: #ecfdf3; border-color: #b7ebc9; color: #0f5b2c; }
.fv-state.off { background: #fff4e5; border-color: #f7d49a; color: #7a4600; }
.fv-state .fv-miss { color: #8a5300; }
.fv-none { font-style: normal; font-weight: 700; font-size: 13px; background: #fff; border: 1px dashed #93c5a6; color: #0f5b2c; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
/* ô chỉ tiêu */
.fv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fv-tile { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid #d3e2f6; background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-family: inherit; min-height: 84px; min-width: 0; transition: transform .15s, box-shadow .15s; }
.fv-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 50, 110, .14); }
.fv-tile .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #eef4ff; color: #1f6fe0; flex: none; }
.fv-tile .ic .ico { width: 24px; height: 24px; }
.fv-tile .tx { display: grid; gap: 1px; min-width: 0; }
.fv-tile .lb { font-size: 13px; font-weight: 700; color: #334155; line-height: 1.2; }
.fv-tile b { display: block; font-size: 21px; font-weight: 800; color: #0b2a5b; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-tile b.tx0 { font-size: 16px; white-space: normal; color: #64748b; }
.fv-tile small { font-size: 11.5px; color: #475569; line-height: 1.25; overflow-wrap: anywhere; }
.fv-tile.t2 .ic { background: #fff3e0; color: #b45309; } .fv-tile.t3 .ic { background: #e6f7ea; color: #16a34a; } .fv-tile.t4 .ic { background: #f1f5f9; color: #475569; }
.fv-tile.t5 .ic { background: #fdecef; color: #e11d48; } .fv-tile.t6 .ic { background: #ede9fe; color: #6d28d9; } .fv-tile.t7 .ic { background: #e0f2fe; color: #0369a1; }
.fv-tile.t8 .ic { background: #fef9c3; color: #a16207; } .fv-tile.t9 .ic { background: #dcfce7; color: #15803d; } .fv-tile.t10 .ic { background: #ffe4e6; color: #be123c; }
.fv-rec a { font-weight: 700; }
/* biểu đồ */
.fv-ch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fv-chart { height: 240px; width: 100%; }
.fv-ce { padding: 40px 10px !important; }
/* thẻ bảng */
.fv-tabbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fv-tabbar button { border: 1px solid #d3e2f6; background: #f6f9fe; color: #0b2a5b; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.fv-tabbar button i { font-style: normal; background: #dbe7fb; border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 11.5px; }
.fv-tabbar button.on { background: #1f6fe0; border-color: #1f6fe0; color: #fff; } .fv-tabbar button.on i { background: rgba(255, 255, 255, .25); }
.fv-tbh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fv-tbh h3 { margin: 0; font-size: 16px; color: var(--nv, #0b2a5b); }
.fv-tba { display: flex; gap: 6px; flex-wrap: wrap; }
.fv-t tbody tr.click { cursor: pointer; } .fv-t tbody tr.click:hover td { background: #f3f8ff; }
.fv-kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; }
.fv-kv { display: grid; gap: 1px; border-bottom: 1px dashed #e2e8f0; padding: 4px 0; min-width: 0; } .fv-kv span { font-size: 12px; color: #64748b; } .fv-kv b { overflow-wrap: anywhere; }
.fv-h4 { margin: 14px 0 6px; font-size: 14px; }
.fv-ow { display: grid; gap: 4px; max-height: 360px; overflow: auto; } .fv-ow label { display: flex; gap: 8px; align-items: center; }
.fv-how summary { cursor: pointer; font-weight: 700; display: flex; gap: 6px; align-items: center; } .fv-how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.fv-deny { padding: 30px; text-align: center; }
/* Dashboard KTT — khối ngoài 4 mảng */
.kt-fv .kt-fvsrc { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; white-space: nowrap; } .kt-fv .kt-fvsrc .ico { width: 14px; height: 14px; }
.kt-fv .kt-fvsrc.on { color: #15803d; } .kt-fv .kt-fvsrc.off { color: #b45309; }
.kt-fv td[data-dk] { cursor: pointer; } .kt-fv td[data-dk]:hover { background: #f3f8ff; text-decoration: underline; }
@media (max-width: 1100px) { .fv-ch { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .fv-flt { margin-left: 0; } .fv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fv-tile b { font-size: 18px; } .fv-tile .ic { width: 32px; height: 32px; } .fv-chart { height: 210px; } }
@media (max-width: 420px) { .fv-tile { padding: 8px; gap: 7px; min-height: 76px; } .fv-tile b { font-size: 16px; } .fv-tile b.tx0 { font-size: 13.5px; } .fv-tile .lb { font-size: 12px; } .fv-tile small { font-size: 11px; } }
