/* =====================================================================
   GIAO DIỆN "WEB CỔ" (khoảng 1996–1998, kiểu trang HTML thuần mở bằng Netscape)
   - Nền xám #C0C0C0, chữ Times New Roman đen, link xanh gạch chân / tím khi đã xem.
   - Không khung màu, không nền màu, không bo góc, không bóng, không hiệu ứng.
     Chỉ có viền khắc chìm (groove) và nút xám nổi 3D.
   - Chỉ áp lên MÀN HÌNH (@media screen) → bản IN giữ nguyên như cũ.
   - KHÔNG gắn vào các trang làm việc: Tính ca, Lịch sử ca, Quản lý cột bơm,
     cửa hàng, Công nợ, Nhập xe téc, Quy đổi barem, Bảng kê, Đếm tiền, Admin.
   - File JS đi kèm (xau-nhat.js) đọc màu GỐC của trang để giữ lại: ảnh nền thật,
     ô màu biểu đồ/nhãn, nền đặc cho menu xổ xuống / hộp thoại, chữ đỏ/xanh báo trạng thái.
   Muốn bỏ: xoá dòng <link ... xau-nhat.css><script ... xau-nhat.js>
   trong <head> các template (hoặc làm rỗng 2 file này).
   ===================================================================== */
@media screen {

/* ---------- Mọi thứ: chữ Times đen, không nền, không bo góc, không bóng ---------- */
body, body * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font-family: "Times New Roman", Times, serif !important;
  background-color: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  letter-spacing: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html, body {
  background: #c0c0c0 !important;
}

/* ---------- Những gì cần giữ (JS gắn theo màu gốc của trang) ---------- */
/* Ảnh nền thật (ảnh tin tức, ảnh đại diện...) */
[data-xau-anh] { background-image: var(--xau-anh) !important; }
/* Ô có màu mang ý nghĩa: cột biểu đồ, chấm chú thích, nhãn trạng thái */
[data-xau-giu] { background-color: var(--xau-nen) !important; }
[data-xau-giu="toi"], [data-xau-giu="toi"] * { color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* Menu xổ xuống, hộp thoại, bảng tìm nhanh: nền xám đặc + viền nổi để không đè chữ */
[data-xau-noi] {
  background-color: #c0c0c0 !important;
  border: 2px outset #fff !important;
}
/* Chữ báo trạng thái: tăng/giảm, lỗi, cảnh báo */
[data-xau-mau="do"],   [data-xau-mau="do"] *   { color: #c00000 !important; -webkit-text-fill-color: #c00000 !important; }
[data-xau-mau="xanh"], [data-xau-mau="xanh"] * { color: #007000 !important; -webkit-text-fill-color: #007000 !important; }
[data-xau-mau="vang"], [data-xau-mau="vang"] * { color: #806000 !important; -webkit-text-fill-color: #806000 !important; }

/* Chữ phủ lên video (nền video luôn tối) → chữ trắng */
.quote-overlay, .quote-overlay * { color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* ---------- Ẩn mấy thứ vũ trụ / hành tinh ở trang chủ ---------- */
.bb-man, .bb-goi-y, #btBigBang, #bbNen, .ho-den, .bt-thien-the-cv,
.thuoc-as, .thuoc-as-goi-y, .tau-nen, .w-stars, .w-moon, .bt-nen {
  display: none !important;
}

/* ---------- Tiêu đề: Times đậm, không trang trí ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold !important;
  border: none !important;
}

/* ---------- Link: xanh gạch chân, tím khi đã xem ---------- */
a, a * {
  color: #0000ee !important;
  -webkit-text-fill-color: #0000ee !important;
  text-decoration: underline !important;
}
a:visited, a:visited * {
  color: #551a8b !important;
  -webkit-text-fill-color: #551a8b !important;
}
a:active, a:active * {
  color: #ff0000 !important;
  -webkit-text-fill-color: #ff0000 !important;
}

/* ---------- Nút bấm: xám nổi 3D ---------- */
button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"] {
  background-color: #c0c0c0 !important;
  border: 2px outset #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: normal !important;
}
button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"],
button *, .btn *, [role="button"] * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
button:active, .btn:active, [role="button"]:active, input[type="button"]:active, input[type="submit"]:active {
  border-style: inset !important;
}
button:disabled, button:disabled * {
  color: #808080 !important;
  -webkit-text-fill-color: #808080 !important;
}

/* ---------- Ô nhập: trắng, viền lõm ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select, textarea {
  background-color: #fff !important;
  border: 2px inset #fff !important;
  outline: none !important;
  font-family: "Courier New", Courier, monospace !important;
}
::placeholder {
  color: #808080 !important;
  -webkit-text-fill-color: #808080 !important;
}

/* ---------- Bảng: kiểu <table border="1"> ---------- */
table {
  border-collapse: separate !important;
  border-spacing: 2px !important;
  border: 2px outset #fff !important;
}
th, td {
  border: 1px inset #fff !important;
}
th { font-weight: bold !important; }

/* ---------- Khung: chỉ còn viền khắc chìm ---------- */
.card, .panel, .box, section, article, fieldset, dialog, .modal-content {
  border: 2px groove #fff !important;
}
header {
  border: none !important;
  border-bottom: 2px groove #fff !important;
}
nav, aside {
  border: none !important;
  border-right: 2px groove #fff !important;
}
footer {
  border: none !important;
  border-top: 2px groove #fff !important;
}

img { filter: none !important; }
hr {
  border: none !important;
  border-top: 2px groove #fff !important;
  height: 0 !important;
}

/* ---------- Bảng giá trang chủ: bỏ số LED, hiện số thường ---------- */
.p7 > * { display: none !important; }
.p7::before {
  content: attr(data-v) !important;
  display: inline-block !important;
  font: bold 18px "Times New Roman", Times, serif !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}
.bt-gia-bang { border: 2px outset #fff !important; }
.bt-gia-bang > * { border: 1px inset #fff !important; }

} /* hết @media screen */
