/* =========================================================
 * TNC – Đặt Món Ăn
 * Frontend: .tnc-dma__*   |   Admin: .tnc-dma-admin__*
 * ======================================================= */

/* ---------- FRONTEND ---------- */
.tnc-dma {
    --tnc-dma-chinh: #e85d04;
    --tnc-dma-chinh-dam: #c44d00;
    --tnc-dma-chu: #222;
    --tnc-dma-phu: #6b6b6b;
    --tnc-dma-vien: #ececec;
    --tnc-dma-nen: #fff;
    color: var(--tnc-dma-chu);
    font-size: 15px;
    padding-bottom: 90px;
}
.tnc-dma *, .tnc-dma *::before, .tnc-dma *::after { box-sizing: border-box; }
.tnc-dma [hidden] { display: none !important; }
.tnc-dma__thong-bao { padding: 16px; background: #fff7ed; border-radius: 10px; text-align: center; }
/* Tabs danh mục */
.tnc-dma__tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px;
    position: sticky; top: 0; z-index: 5; background: var(--tnc-dma-nen); scrollbar-width: none;
}
.tnc-dma__tabs::-webkit-scrollbar { display: none; }
.tnc-dma .tnc-dma__tab {
    flex: 0 0 auto; margin: 0; min-height: 0; padding: 7px 16px; line-height: 1.3;
    border: 1px solid var(--tnc-dma-vien); border-radius: 999px; background: #fff;
    color: var(--tnc-dma-chu); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__tab.is-active { background: var(--tnc-dma-chinh); border-color: var(--tnc-dma-chinh); color: #fff; }

/* Lưới món */
.tnc-dma__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.tnc-dma__mon {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--tnc-dma-vien); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.tnc-dma__mon.is-chon { border-color: var(--tnc-dma-chinh); box-shadow: 0 0 0 2px rgba(232, 93, 4, .15); }
.tnc-dma__mon.is-het { opacity: .55; }
.tnc-dma__anh { aspect-ratio: 4 / 3; background: #faf5f0; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.tnc-dma__anh img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tnc-dma__info { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.tnc-dma .tnc-dma__ten { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--tnc-dma-chu); }
.tnc-dma__mo-ta {
    margin: 0; font-size: 13px; line-height: 1.45; color: var(--tnc-dma-phu);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tnc-dma__mo-chi-tiet { cursor: pointer; }
.tnc-dma a.tnc-dma__anh, .tnc-dma .tnc-dma__ten a { color: inherit; text-decoration: none; box-shadow: none; }
.tnc-dma .tnc-dma__ten a:hover { color: var(--tnc-dma-chinh); }
.tnc-dma__mo-chi-tiet:focus-visible { outline: 2px solid var(--tnc-dma-chinh); outline-offset: 2px; }
.tnc-dma__hang { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tnc-dma__gia { font-weight: 700; color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__them {
    height: 34px; min-height: 0; margin: 0; padding: 0 14px; flex: 0 0 auto; gap: 4px;
    border: none; border-radius: 999px; background: var(--tnc-dma-chinh); color: #fff;
    font-size: 14px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap;
}
.tnc-dma .tnc-dma__them span { font-size: 18px; line-height: 1; }
.tnc-dma .tnc-dma__them:hover { background: var(--tnc-dma-chinh-dam); }
.tnc-dma__nhan-het { font-size: 12px; font-weight: 600; color: #999; }
.tnc-dma__sl-the {
    position: absolute; top: 10px; right: 10px; z-index: 2; display: none;
    min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
    background: var(--tnc-dma-chinh); color: #fff; font-size: 13px; font-weight: 700;
    align-items: center; justify-content: center;
}
.tnc-dma__mon.is-chon .tnc-dma__sl-the { display: flex; }

/* Nút chung */
.tnc-dma .tnc-dma__nut {
    margin: 0; min-height: 0; padding: 11px 18px; line-height: 1.3;
    border: none; border-radius: 10px; background: var(--tnc-dma-chinh); color: #fff;
    font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__nut:hover { background: var(--tnc-dma-chinh-dam); }
.tnc-dma .tnc-dma__nut:disabled { opacity: .5; cursor: not-allowed; }
.tnc-dma .tnc-dma__nut--rong { width: 100%; }

/* Thanh chân trang: Thực đơn | Giỏ hàng | Bàn | Tổng tiền */
.tnc-dma__chan {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    display: flex; align-items: stretch; justify-content: center;
    background: #fff; border-top: 1px solid var(--tnc-dma-vien);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
    padding: 0 8px env(safe-area-inset-bottom, 0);
}
.tnc-dma .tnc-dma__chan-muc {
    flex: 1 1 0; max-width: 180px; min-width: 0; margin: 0; min-height: 62px; padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: none; border-radius: 0; background: transparent; box-shadow: none;
    color: var(--tnc-dma-chu); font-size: 12px; font-weight: 500; line-height: 1.2;
    text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__chan-muc + .tnc-dma__chan-muc { border-left: 1px solid var(--tnc-dma-vien); }
.tnc-dma .tnc-dma__chan-muc:hover { background: #fafafa; color: var(--tnc-dma-chinh); }
.tnc-dma__chan-icon { position: relative; font-size: 22px; line-height: 1; }
.tnc-dma__chan-nhan { font-size: 12px; color: var(--tnc-dma-phu); white-space: nowrap; }
.tnc-dma__chan .tnc-dma__so-mon {
    position: absolute; top: -7px; right: -14px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--tnc-dma-chinh); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; font-style: normal;
}
.tnc-dma__chan .tnc-dma__so-mon.is-trong { display: none; }

/* Bàn: chỉ ghi số */
.tnc-dma .tnc-dma__chan-ban { cursor: default; flex: 0 0 74px; }
.tnc-dma .tnc-dma__chan-ban:hover { background: transparent; color: inherit; }
.tnc-dma__chan-so {
    min-width: 42px; height: 42px; padding: 0 8px; border-radius: 21px;
    display: flex; align-items: center; justify-content: center;
    background: #fff7ed; border: 2px solid var(--tnc-dma-chinh); color: var(--tnc-dma-chinh);
    font-size: 20px; font-weight: 800; line-height: 1;
}

/* Tổng tiền: nổi bật */
.tnc-dma .tnc-dma__chan-tong { flex: 1.4 1 0; max-width: 240px; }
.tnc-dma .tnc-dma__chan-tong strong { font-size: 17px; font-weight: 800; color: var(--tnc-dma-chu); white-space: nowrap; }
.tnc-dma .tnc-dma__chan-tong.is-co-mon { background: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__chan-tong.is-co-mon strong,
.tnc-dma .tnc-dma__chan-tong.is-co-mon .tnc-dma__chan-nhan { color: #fff; }
.tnc-dma .tnc-dma__chan-tong.is-co-mon:hover { background: var(--tnc-dma-chinh-dam); }

/* Modal */
.tnc-dma__modal {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0, 0, 0, .5);
}
.tnc-dma__modal-noi-dung {
    position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: 16px 16px 0 0; padding: 22px 20px 20px;
}
@media (min-width: 640px) {
    .tnc-dma__modal { align-items: center; }
    .tnc-dma__modal-noi-dung { border-radius: 16px; }
}
.tnc-dma .tnc-dma__dong {
    position: absolute; top: 10px; right: 12px; margin: 0; padding: 0; min-height: 0;
    width: 34px; height: 34px; border: none; border-radius: 50%; background: #f3f3f3; color: #444;
    font-size: 22px; line-height: 1; cursor: pointer;
}
.tnc-dma .tnc-dma__tieu-de { margin: 0 0 14px; font-size: 19px; font-weight: 700; }
body.tnc-dma-khoa-cuon { overflow: hidden; }

/* Dòng trong giỏ */
.tnc-dma__trong { color: var(--tnc-dma-phu); text-align: center; padding: 16px 0; margin: 0; }
.tnc-dma__dong-gio { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--tnc-dma-vien); }
.tnc-dma__dong-gio-ten { flex: 1; font-weight: 500; line-height: 1.35; }
.tnc-dma__dong-gio-ten small { display: block; color: var(--tnc-dma-phu); font-weight: 400; }
.tnc-dma__dong-gio-tien { min-width: 80px; text-align: right; font-weight: 600; }
.tnc-dma__sl { display: flex; align-items: center; gap: 8px; }
.tnc-dma__sl span { min-width: 18px; text-align: center; font-weight: 600; }
.tnc-dma .tnc-dma__sl button {
    width: 28px; height: 28px; margin: 0; padding: 0; min-height: 0;
    border: 1px solid var(--tnc-dma-vien); border-radius: 50%; background: #fff; color: var(--tnc-dma-chu);
    font-size: 16px; line-height: 1; cursor: pointer;
}

/* Tổng kết */
.tnc-dma__tong-ket { padding: 12px 0; margin-bottom: 8px; }
.tnc-dma__tong-ket > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--tnc-dma-phu); }
.tnc-dma__tong-ket > .tnc-dma__tong-dong { color: var(--tnc-dma-chu); font-weight: 700; font-size: 17px; padding-top: 8px; }
.tnc-dma__tong-dong .tnc-dma__tong { color: var(--tnc-dma-chinh); }
.tnc-dma__goi-y { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 13px; }

/* Form */
.tnc-dma__truong { display: block; margin-bottom: 12px; }
.tnc-dma__truong > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.tnc-dma__truong em { color: #dc2626; font-style: normal; }
.tnc-dma .tnc-dma__truong input[type="text"],
.tnc-dma .tnc-dma__truong input[type="tel"],
.tnc-dma .tnc-dma__truong textarea {
    width: 100%; margin: 0; padding: 10px 12px; font-size: 15px; line-height: 1.4;
    border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; box-shadow: none; height: auto;
}
.tnc-dma .tnc-dma__truong input:focus,
.tnc-dma .tnc-dma__truong textarea:focus { border-color: var(--tnc-dma-chinh); outline: none; box-shadow: 0 0 0 3px rgba(232, 93, 4, .15); }
.tnc-dma .tnc-dma__truong input[readonly] { background: #f6f6f6; }
.tnc-dma__chon {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 10px 12px;
    border: 1px solid var(--tnc-dma-vien); border-radius: 8px; font-weight: 400; cursor: pointer;
}
.tnc-dma__chon input { margin: 0; }
.tnc-dma__chon:has(input:checked) { border-color: var(--tnc-dma-chinh); background: #fff7ed; }
.tnc-dma__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tnc-dma__loi { color: #dc2626; font-size: 14px; min-height: 0; margin-bottom: 8px; }
.tnc-dma__loi:empty { display: none; }

/* Kết quả */
.tnc-dma__xong { text-align: center; }
.tnc-dma__xong p { margin: 0 0 6px; }
.tnc-dma__xong-icon { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.tnc-dma__qr { margin: 14px 0; padding: 14px; border: 1px dashed #d6d6d6; border-radius: 12px; }
.tnc-dma__qr img { display: block; max-width: 260px; width: 100%; height: auto; margin: 8px auto; }
.tnc-dma__ck { font-size: 14px; line-height: 1.55; }
.tnc-dma__loi-nhan { color: var(--tnc-dma-phu); font-size: 14px; margin: 12px 0 16px !important; }


/* Thanh giỏ nháy khi vừa thêm món */
.tnc-dma__chan.is-nhay .tnc-dma__chan-gio .tnc-dma__chan-icon { animation: tnc-dma-nhay .5s ease; }
@keyframes tnc-dma-nhay { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-8deg); } 70% { transform: scale(.95); } }

/* Điện thoại: món dạng hàng ngang — ảnh trái, thông tin giữa, nút Thêm bên phải */
@media (max-width: 600px) {
    .tnc-dma__grid { grid-template-columns: 1fr; gap: 10px; }
    .tnc-dma__mon { flex-direction: row; align-items: stretch; gap: 12px; padding: 10px; }
    .tnc-dma__anh { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; font-size: 34px; }
    .tnc-dma__info { padding: 0; gap: 4px; min-width: 0; }
    .tnc-dma .tnc-dma__ten { font-size: 15px; }
    .tnc-dma__hang { padding-top: 4px; }
    .tnc-dma__sl-the { top: 4px; left: 4px; right: auto; }
}

/* Chi tiết món: ảnh 1 bên, thông tin 1 bên */
.tnc-dma__modal--chi-tiet .tnc-dma__chi-tiet {
    max-width: 860px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; overflow-x: hidden;
}
.tnc-dma__chi-tiet .tnc-dma__dong { z-index: 2; background: rgba(255, 255, 255, .92); }
.tnc-dma__ct-anh {
    background: #faf5f0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    font-size: 80px; overflow: hidden;
}
.tnc-dma__ct-anh img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tnc-dma__ct-info { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 22px; min-width: 0; }
.tnc-dma__ct-dm {
    align-self: flex-start; padding: 3px 10px; border-radius: 999px;
    background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 600;
}
.tnc-dma .tnc-dma__ct-ten { margin: 0; padding-right: 30px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--tnc-dma-chu); }
.tnc-dma__ct-gia { font-size: 20px; font-weight: 700; color: var(--tnc-dma-chinh); }
.tnc-dma__ct-mo-ta { margin: 0; color: var(--tnc-dma-phu); line-height: 1.55; white-space: pre-line; }
.tnc-dma__ct-trong-gio { margin: 0; font-size: 13px; color: #166534; }
.tnc-dma__ct-het { margin: 0; padding: 8px 12px; border-radius: 8px; background: #f3f4f6; color: #4b5563; font-size: 14px; }
.tnc-dma__ct-hanh-dong { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.tnc-dma .tnc-dma__ct-them { flex: 1; }
.tnc-dma .tnc-dma__ct-sl button { width: 34px; height: 34px; font-size: 18px; }
.tnc-dma__ct-sl span { font-size: 16px; min-width: 22px; }

@media (max-width: 600px) {
    .tnc-dma__modal--chi-tiet .tnc-dma__chi-tiet { grid-template-columns: 40% 1fr; }
    .tnc-dma__ct-anh { aspect-ratio: auto; min-height: 170px; height: 100%; font-size: 48px; }
    .tnc-dma__ct-info { padding: 16px 14px 16px; gap: 7px; }
    .tnc-dma .tnc-dma__ct-ten { font-size: 17px; }
    .tnc-dma__ct-gia { font-size: 17px; }
    .tnc-dma__ct-mo-ta { font-size: 13px; }
    .tnc-dma__ct-hanh-dong { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .tnc-dma .tnc-dma__ct-them { flex: 1 1 100%; padding: 10px 12px; font-size: 14px; }
}


/* Link "xem trang chi tiết" trong popup xem nhanh */
.tnc-dma .tnc-dma__ct-link { font-size: 14px; color: var(--tnc-dma-chinh); text-decoration: none; font-weight: 600; }
.tnc-dma .tnc-dma__ct-link:hover { text-decoration: underline; }
.tnc-dma .tnc-dma__lien-ket {
    display: inline; margin: 0; padding: 0; min-height: 0; border: none; background: none;
    color: var(--tnc-dma-chinh); font: inherit; font-weight: 600; text-decoration: underline; text-transform: none; cursor: pointer;
}

/* ===== TRANG RIÊNG CỦA MÓN ===== */
.tnc-dma--trang-mon { max-width: 1140px; margin: 0 auto; padding: 20px 16px 110px; }
.tnc-dma__duong-dan { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--tnc-dma-phu); }
.tnc-dma__duong-dan a { color: var(--tnc-dma-phu); text-decoration: none; }
.tnc-dma__duong-dan a:hover { color: var(--tnc-dma-chinh); }
.tnc-dma__duong-dan > span:last-child { color: var(--tnc-dma-chu); font-weight: 500; }

.tnc-dma__sp {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 16px;
    grid-template-areas: "anh dau" "anh mota" "anh nut";
    grid-template-rows: auto auto 1fr; align-items: start; margin-bottom: 44px;
}
.tnc-dma__sp-anh {
    grid-area: anh; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #faf5f0;
    display: flex; align-items: center; justify-content: center; font-size: 110px;
}
.tnc-dma__sp-anh img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tnc-dma__sp.is-het .tnc-dma__sp-anh img { filter: grayscale(.6); opacity: .75; }
.tnc-dma__sp-dau { grid-area: dau; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 6px; }
.tnc-dma .tnc-dma__sp-dm {
    align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: #fff7ed; color: #9a3412;
    font-size: 13px; font-weight: 600; text-decoration: none;
}
.tnc-dma .tnc-dma__sp-ten { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--tnc-dma-chu); }
.tnc-dma__sp-gia { font-size: 28px; font-weight: 700; color: var(--tnc-dma-chinh); }
.tnc-dma__sp-tinh-trang { font-size: 14px; font-weight: 600; }
.tnc-dma__sp-tinh-trang.is-con { color: #16a34a; }
.tnc-dma__sp-tinh-trang.is-het { color: #9ca3af; }
.tnc-dma__sp-mo-ta { grid-area: mota; color: #444; line-height: 1.7; border-top: 1px solid var(--tnc-dma-vien); padding-top: 16px; }
.tnc-dma__sp-mo-ta p { margin: 0 0 10px; }
.tnc-dma__sp-mo-ta p:last-child { margin-bottom: 0; }
.tnc-dma__sp-nut { grid-area: nut; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 4px; }
.tnc-dma .tnc-dma__sp-them { flex: 1; min-width: 220px; padding: 14px 22px; font-size: 16px; }
.tnc-dma .tnc-dma__sp-sl button { width: 40px; height: 40px; font-size: 20px; }
.tnc-dma__sp-sl span { font-size: 18px; min-width: 26px; }
.tnc-dma__sp-da-them { flex: 1 1 100%; margin: 0; padding: 10px 14px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; }
.tnc-dma__sp-da-them a { color: inherit; font-weight: 600; }
.tnc-dma__sp-het { flex: 1 1 100%; margin: 0; padding: 10px 14px; border-radius: 10px; background: #f3f4f6; color: #4b5563; }
.tnc-dma a.tnc-dma__nut { display: inline-block; text-decoration: none; text-align: center; }

.tnc-dma__lien-quan { border-top: 1px solid var(--tnc-dma-vien); padding-top: 28px; }
.tnc-dma .tnc-dma__tieu-de-phu { margin: 0 0 16px; font-size: 21px; font-weight: 700; color: var(--tnc-dma-chu); }
.tnc-dma__quay-lai { margin: 24px 0 0; text-align: center; }
.tnc-dma__quay-lai a { color: var(--tnc-dma-chinh); font-weight: 600; text-decoration: none; }

/* Điện thoại: ảnh 1 bên – thông tin 1 bên, mô tả bên dưới, nút Thêm bên phải */
@media (max-width: 600px) {
    .tnc-dma--trang-mon { padding: 12px 12px 100px; }
    .tnc-dma__duong-dan { font-size: 13px; margin-bottom: 12px; }
    .tnc-dma__sp {
        grid-template-columns: 42% minmax(0, 1fr); column-gap: 14px; row-gap: 14px;
        grid-template-areas: "anh dau" "mota mota" "nut nut"; grid-template-rows: auto; margin-bottom: 30px;
    }
    .tnc-dma__sp-anh { border-radius: 12px; font-size: 54px; }
    .tnc-dma__sp-dau { gap: 6px; padding-top: 0; }
    .tnc-dma .tnc-dma__sp-dm { font-size: 11px; padding: 3px 9px; }
    .tnc-dma .tnc-dma__sp-ten { font-size: 19px; }
    .tnc-dma__sp-gia { font-size: 19px; }
    .tnc-dma__sp-tinh-trang { font-size: 13px; }
    .tnc-dma__sp-mo-ta { font-size: 14px; padding-top: 12px; }
    .tnc-dma__sp-nut { justify-content: flex-end; gap: 10px; }
    .tnc-dma .tnc-dma__sp-them { flex: 1; min-width: 0; padding: 12px 14px; font-size: 15px; }
    .tnc-dma .tnc-dma__sp-sl button { width: 34px; height: 34px; font-size: 18px; }
    .tnc-dma .tnc-dma__tieu-de-phu { font-size: 18px; }
}


/* ---------- ADMIN ---------- */
.tnc-dma-admin [hidden] { display: none !important; }
.tnc-dma-admin__the { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 6px 20px 12px; margin: 16px 0; max-width: 1100px; }
.tnc-dma-admin__the h2 { margin: 14px 0 4px; font-size: 16px; }
.tnc-dma-admin__thanh-cong-cu { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 10px 0; }
.tnc-dma-admin__loc, .tnc-dma-admin__hang-loat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tnc-dma-admin__cuon-x { overflow-x: auto; }
.tnc-dma-admin__bang td, .tnc-dma-admin__bang th { vertical-align: middle; }
.tnc-dma-admin__trong { text-align: center; padding: 30px !important; color: #777; }
.tnc-dma-admin__nho { font-size: 12px; white-space: nowrap; }
.tnc-dma-admin__moi { display: block; }

.tnc-dma-admin__nhan { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tnc-dma-admin__nhan--giao { background: #e0f2fe; color: #075985; }
.tnc-dma-admin__nhan--ban { background: #fef3c7; color: #92400e; }

/* Màu trạng thái */
.tnc-dma-admin .tnc-dma-chon-tt { border-width: 2px; font-weight: 600; }
.tnc-dma-admin tr.tt-moi .tnc-dma-chon-tt        { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.tnc-dma-admin tr.tt-xac_nhan .tnc-dma-chon-tt   { border-color: #3b82f6; background: #eff6ff; color: #1e40af; }
.tnc-dma-admin tr.tt-dang_lam .tnc-dma-chon-tt   { border-color: #8b5cf6; background: #f5f3ff; color: #5b21b6; }
.tnc-dma-admin tr.tt-dang_giao .tnc-dma-chon-tt  { border-color: #14b8a6; background: #f0fdfa; color: #115e59; }
.tnc-dma-admin tr.tt-hoan_thanh .tnc-dma-chon-tt { border-color: #22c55e; background: #f0fdf4; color: #166534; }
.tnc-dma-admin tr.tt-huy .tnc-dma-chon-tt        { border-color: #9ca3af; background: #f3f4f6; color: #4b5563; }
.tnc-dma-admin tr.tt-moi td:nth-child(2) strong::before { content: "● "; color: #f59e0b; }

/* Ảnh món */
.tnc-dma-admin__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.tnc-dma-admin__thumb--trong { background: #f6f1ea; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tnc-dma-admin__anh-xem img { max-width: 220px; height: auto; border-radius: 8px; margin-bottom: 8px; display: block; }
.tnc-dma-admin__xoa { color: #b32d2e !important; }

/* Modal admin */
.tnc-dma-admin__modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tnc-dma-admin__modal-noi-dung { position: relative; background: #fff; border-radius: 10px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; padding: 24px; }
.tnc-dma-admin__dong { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 26px; cursor: pointer; color: #555; }
.tnc-dma-admin__nut-modal { margin: 16px 0 0; }

/* Hướng dẫn shortcode */
.tnc-dma-admin__sc { padding: 10px 0; border-bottom: 1px solid #f0f0f1; }
.tnc-dma-admin__sc:last-of-type { border-bottom: none; }
.tnc-dma-admin__sc-mo-ta { font-weight: 600; margin-bottom: 6px; }
.tnc-dma-admin__sc-dong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tnc-dma-admin__sc-dong code { font-size: 14px; padding: 6px 10px; }
.tnc-dma-admin__sc-vi-du { margin-top: 6px; color: #646970; font-size: 13px; }

/* QR chuyển khoản + bàn */
.tnc-dma-admin__hai-cot { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tnc-dma-admin__hai-cot .form-table { flex: 1 1 520px; }
.tnc-dma-admin__qr-xem { flex: 0 0 240px; text-align: center; padding-top: 16px; }
.tnc-dma-admin__qr-xem img { width: 220px; height: auto; display: block; margin: 8px auto 4px; }
.tnc-dma-admin__qr-xem small { color: #777; }
.tnc-dma-admin__luoi-ban { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 10px; }
.tnc-dma-admin__o-ban { text-align: center; border: 1px dashed #c3c4c7; border-radius: 8px; padding: 12px 8px; }
.tnc-dma-admin__ten-ban { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tnc-dma-admin__o-ban img { width: 140px; height: 140px; display: block; margin: 0 auto; }
.tnc-dma-admin__chu-nho { font-size: 12px; color: #646970; margin: 4px 0 8px; }

/* Nhập CSV (v1.1.0) */
.tnc-dma-admin__nhap-csv { padding: 0 20px; }
.tnc-dma-admin__nhap-csv > summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; list-style-position: inside; }
.tnc-dma-admin__nhap-csv[open] > summary { border-bottom: 1px solid #f0f0f1; margin-bottom: 4px; }
.tnc-dma-admin__nhap-csv .tnc-dma-admin__hai-cot { padding-bottom: 12px; }
.tnc-dma-admin__form-csv { flex: 1 1 340px; }
.tnc-dma-admin__huong-dan-csv { flex: 1 1 380px; padding-top: 12px; }
.tnc-dma-admin__huong-dan-csv table { margin: 6px 0 8px; }
.tnc-dma-admin__huong-dan-csv td { padding: 5px 8px; font-size: 13px; }
.tnc-dma-admin__huong-dan-csv em { color: #d63638; font-style: normal; }
.tnc-dma-admin__ds-loi { margin: 0 0 10px 18px; list-style: disc; max-height: 220px; overflow-y: auto; font-size: 13px; }

/* ===== ADMIN: BÀN & MÃ QR (v1.5.0) ===== */
.tnc-dma-ban .tnc-dma-admin__the { max-width: none; }
.tnc-dma-ban__link-goc { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tnc-dma-ban__canh-bao { color: #b32d2e; }
.tnc-dma-ban__tren { gap: 16px; align-items: stretch; }
.tnc-dma-ban__tren > .tnc-dma-admin__the { flex: 1 1 420px; margin: 0; }
.tnc-dma-ban__tren { margin: 16px 0; }
.tnc-dma-ban__o { display: block; margin: 0 0 10px; font-weight: 600; font-size: 13px; }
.tnc-dma-ban__o input[type="text"], .tnc-dma-ban__o input[type="number"] { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.tnc-dma-ban__o .description { font-weight: 400; }
.tnc-dma-ban__kieu-tao { display: flex; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; }
.tnc-dma-ban__kieu-tao label { flex: 1 1 150px; border: 1px solid #dcdcde; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.tnc-dma-ban__kieu-tao label span { display: block; color: #646970; font-size: 12px; margin: 2px 0 0 22px; }
.tnc-dma-ban__kieu-tao label:has(input:checked) { border-color: #2271b1; background: #f0f6fc; }
.tnc-dma-ban__luoi-o { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 12px; }
.tnc-dma-ban__xem-truoc-tao { background: #f6f7f7; border-radius: 6px; padding: 8px 12px; margin: 4px 0 8px; min-height: 20px; }
.tnc-dma-ban__xem-truoc-tao:empty { display: none; }

.tnc-dma-ban__kieu-cot { display: flex; gap: 20px; flex-wrap: wrap; }
.tnc-dma-ban__kieu-form { flex: 1 1 260px; }
.tnc-dma-ban__kieu-xem { flex: 0 0 200px; text-align: center; color: #646970; }
.tnc-dma-ban__mau-the canvas { width: 100%; height: auto; display: block; margin-bottom: 4px; }
.tnc-dma-ban__mau-hang { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tnc-dma-ban__mau-hang label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.tnc-dma-ban__mau-hang input[type="color"] { width: 64px; height: 34px; padding: 2px; border: 1px solid #c3c4c7; border-radius: 4px; cursor: pointer; }
.tnc-dma-ban__khung-chon { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.tnc-dma-ban__khung-chon > span { font-weight: 600; }
.tnc-dma-ban__logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; font-size: 13px; font-weight: 600; }
.tnc-dma-ban__logo-xem img { width: 36px; height: 36px; object-fit: contain; border: 1px solid #dcdcde; border-radius: 50%; background: #fff; display: block; }

.tnc-dma-ban__cong-cu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 16px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f1; }
.tnc-dma-ban__tach { flex: 1; }
.tnc-dma-ban__chon-het { font-weight: 600; }
.tnc-dma-ban__luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding-bottom: 8px; }
.tnc-dma-ban__the[hidden] { display: none; }
.tnc-dma-ban__the {
    position: relative; border: 1px solid #dcdcde; border-radius: 10px; padding: 12px 10px 10px; text-align: center; background: #fff;
    transition: box-shadow .15s, border-color .15s;
}
.tnc-dma-ban__the:hover { border-color: #2271b1; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tnc-dma-ban__the:has(.tnc-dma-ban-chon:checked) { border-color: #2271b1; background: #f0f6fc; }
.tnc-dma-ban__chon { position: absolute; top: 6px; left: 8px; z-index: 2; }
.tnc-dma-ban__qr { min-height: 150px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 8px; }
.tnc-dma-ban__qr canvas { width: 100%; max-width: 150px; height: auto; display: block; }
.tnc-dma-ban__loi-qr { color: #b32d2e; font-size: 12px; }
.tnc-dma-ban__ten { font-weight: 700; font-size: 14px; }
.tnc-dma-ban__ma { color: #646970; font-size: 12px; margin: 2px 0 8px; }
.tnc-dma-ban__nut { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.tnc-dma-ban__nhan-khoa { display: none; position: absolute; top: 6px; right: 8px; background: #b32d2e; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; z-index: 2; }
.tnc-dma-ban__the.is-khoa .tnc-dma-ban__nhan-khoa { display: inline-block; }
.tnc-dma-ban__the.is-khoa .tnc-dma-ban__qr { opacity: .35; }

.tnc-dma-ban__modal .tnc-dma-admin__modal-noi-dung { max-width: 440px; }
.tnc-dma-ban__modal h2 { margin-top: 0; }
.tnc-dma-ban__loi-f { color: #b32d2e; min-height: 1em; margin: 6px 0; }
.tnc-dma-ban__modal-nut { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 0; }
.tnc-dma-ban__modal-nut .button-primary { margin-left: auto; }

/* ===== Phía khách tại bàn: món đã gọi (v1.6.0) ===== */
.tnc-dma__da-goi { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 14px; }
.tnc-dma__da-goi-dau { display: flex; justify-content: space-between; font-weight: 700; color: #166534; margin-bottom: 6px; }
.tnc-dma__da-goi-dong { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: #374151; }
.tnc-dma__ghi-chu-tt { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--tnc-dma-phu); }

/* ===== ADMIN: THU NGÂN ===== */
.tnc-dma-tn__thanh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0; }
.tnc-dma-tn__tab { display: flex; gap: 4px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 4px; }
.tnc-dma-tn__tab button { border: none; background: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: #50575e; }
.tnc-dma-tn__tab button.is-active { background: #2271b1; color: #fff; }
.tnc-dma-tn__tuy-chon { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; }
.tnc-dma-tn__tuy-chon > label { font-weight: 600; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 7px 12px; }
.tnc-dma-tn__chu-thich i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px -1px 10px; }
.tnc-dma-tn__chu-thich i.is-trong { background: #fff; border: 1px solid #c3c4c7; }
.tnc-dma-tn__chu-thich i.is-co-khach { background: #fed7aa; border: 1px solid #f97316; }
.tnc-dma-tn__chu-thich i.is-moi { background: #fecaca; border: 1px solid #dc2626; }
.tnc-dma-tn__khung[hidden] { display: none; }
.tnc-dma-tn__khu { margin: 18px 0 8px; font-size: 15px; color: #50575e; }
.tnc-dma-tn__nhom { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tnc-dma-tn__ban {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 96px; padding: 12px 14px;
    border: 2px solid #dcdcde; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; transition: transform .1s, box-shadow .15s;
}
.tnc-dma-tn__ban:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tnc-dma-tn__ban-ten { font-size: 16px; font-weight: 700; color: #1d2327; }
.tnc-dma-tn__ban-tien { font-size: 18px; font-weight: 800; color: #c2410c; }
.tnc-dma-tn__ban-phu { font-size: 12px; color: #646970; }
.tnc-dma-tn__ban-moi { margin-top: 2px; font-size: 12px; font-weight: 700; color: #fff; background: #dc2626; border-radius: 10px; padding: 1px 8px; }
.tnc-dma-tn__ban.is-trong { background: #f6f7f7; border-style: dashed; }
.tnc-dma-tn__ban.is-co-khach { background: #fff7ed; border-color: #f97316; }
.tnc-dma-tn__ban.is-moi { background: #fef2f2; border-color: #dc2626; animation: tnc-dma-tn-nhay 1.6s infinite; }
@keyframes tnc-dma-tn-nhay { 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .25); } }

.tnc-dma-tn__modal .tnc-dma-tn__ct { max-width: 1040px; padding: 22px 24px; }
.tnc-dma-tn__ct-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; border-bottom: 1px solid #f0f0f1; padding-bottom: 10px; margin-bottom: 14px; }
.tnc-dma-tn__ct-dau h2 { margin: 0; font-size: 22px; }
.tnc-dma-tn__ct-dau span { color: #646970; }
.tnc-dma-tn__ct-cot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; }
@media (max-width: 900px) { .tnc-dma-tn__ct-cot { grid-template-columns: 1fr; } }
.tnc-dma-tn__ct-tieu { font-weight: 700; text-transform: uppercase; font-size: 12px; color: #646970; letter-spacing: .03em; margin-bottom: 8px; }
.tnc-dma-tn__luot { border: 1px solid #dcdcde; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.tnc-dma-tn__luot.is-chua-in { border-color: #dc2626; background: #fef2f2; }
.tnc-dma-tn__luot-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; margin-bottom: 6px; }
.tnc-dma-tn__luot-tt { margin-left: auto; font-size: 12px; font-weight: 600; }
.tnc-dma-tn__mon { width: 100%; border-collapse: collapse; }
.tnc-dma-tn__mon td { padding: 5px 4px; border-top: 1px solid #f0f0f1; vertical-align: middle; }
.tnc-dma-tn__mon td small { display: block; color: #8c8f94; }
.tnc-dma-tn__sl { white-space: nowrap; text-align: center; }
.tnc-dma-tn__sl b { display: inline-block; min-width: 26px; text-align: center; }
.tnc-dma-tn__sl button, .tnc-dma-tn-xoa-mon { width: 26px; height: 26px; border: 1px solid #c3c4c7; border-radius: 50%; background: #fff; cursor: pointer; line-height: 1; }
.tnc-dma-tn-xoa-mon { color: #b32d2e; border-color: #f0c5c5; }
.tnc-dma-tn__tien { text-align: right; white-space: nowrap; font-weight: 600; }
.tnc-dma-tn__ghi-chu { margin-top: 6px; padding: 6px 8px; background: #fff8e5; border-radius: 6px; font-size: 13px; }
.tnc-dma-tn__ct-phai { background: #f6f7f7; border-radius: 12px; padding: 14px 16px; align-self: start; position: sticky; top: 0; }
.tnc-dma-tn__gop { width: 100%; border-collapse: collapse; font-size: 13px; }
.tnc-dma-tn__gop td { padding: 3px 0; }
.tnc-dma-tn__gop td:nth-child(2) { text-align: center; color: #646970; width: 40px; }
.tnc-dma-tn__gop td:last-child { text-align: right; white-space: nowrap; }
.tnc-dma-tn__tong { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #c3c4c7; margin-top: 8px; padding-top: 8px; font-size: 14px; }
.tnc-dma-tn__tong strong { font-size: 18px; }
.tnc-dma-tn__tong--lon strong { font-size: 24px; color: #c2410c; }
.tnc-dma-tn__ct-nut { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tnc-dma-tn__ct-nut .button-hero, .tnc-dma-tn-xac-nhan { width: 100%; text-align: center; justify-content: center; }
.tnc-dma-tn__tt { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tnc-dma-tn__tt label { font-weight: 600; font-size: 13px; }
.tnc-dma-tn__tt input[type="text"] { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font-size: 16px; padding: 6px 10px; }
.tnc-dma-tn__pt { display: flex; gap: 8px; }
.tnc-dma-tn__pt label { flex: 1; border: 1px solid #c3c4c7; border-radius: 8px; padding: 8px 10px; background: #fff; cursor: pointer; }
.tnc-dma-tn__pt label:has(input:checked) { border-color: #2271b1; background: #f0f6fc; }
.tnc-dma-tn__goi-y-tien { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tnc-dma-tn__thoi { font-size: 15px; margin-top: 4px; }
.tnc-dma-tn__ck { text-align: center; }
.tnc-dma-tn__ck img { width: 220px; max-width: 100%; display: block; margin: 0 auto 4px; border-radius: 8px; }
.tnc-dma-tn__ck[hidden], .tnc-dma-tn__tien-mat[hidden] { display: none; }
.tnc-dma-tn__huy { text-align: center; margin: 14px 0 0; }
.tnc-dma-tn__giua { text-align: center; }
.tnc-dma-tn__xong { text-align: center; font-size: 46px; padding: 30px 0; }
.tnc-dma-tn__xong h2 { font-size: 24px; margin: 8px 0; }
.tnc-dma-tn__xong p { font-size: 14px; color: #50575e; }

.tnc-dma-tn__modal-them .tnc-dma-tn__them { max-width: 640px; }
.tnc-dma-tn__them h2 { margin-top: 0; }
.tnc-dma-tn__them input[type="search"] { width: 100%; box-sizing: border-box; font-size: 15px; padding: 6px 10px; margin-bottom: 10px; }
.tnc-dma-tn__ds-mon { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.tnc-dma-tn__mon-chon { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.tnc-dma-tn__mon-chon:hover { border-color: #2271b1; background: #f0f6fc; }
.tnc-dma-tn__mon-chon small { color: #c2410c; font-weight: 600; }
.tnc-dma-tn__mon-chon.is-het { opacity: .45; cursor: not-allowed; }
.tnc-dma-tn__gio-nv { margin: 12px 0; padding: 10px 12px; background: #f6f7f7; border-radius: 8px; }
.tnc-dma-tn__gio-dong { display: grid; grid-template-columns: 1fr auto 90px; gap: 8px; align-items: center; padding: 3px 0; }
.tnc-dma-tn__gio-dong span:last-child { text-align: right; font-weight: 600; }
.tnc-dma-tn__them textarea { width: 100%; box-sizing: border-box; }
.tnc-dma-tn__them-nut { text-align: right; margin-bottom: 0; }
.tnc-dma-tn__loc-ls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 12px; }
.tnc-dma-tn__doanh-thu { font-size: 14px; }

/* ===== v1.7.0: mã hóa đơn + khóa khi hóa đơn đã thanh toán + cảnh báo máy khách cũ ===== */
.tnc-dma__ma-hd { font-size: 12px; color: #166534; margin: -2px 0 6px; }
.tnc-dma__ma-hd-lon { margin: 10px auto 4px !important; padding: 10px 14px; border: 2px dashed var(--tnc-dma-chinh); border-radius: 12px; max-width: 280px; }
.tnc-dma__ma-hd-lon strong { display: block; font-size: 22px; letter-spacing: .04em; color: var(--tnc-dma-chinh); margin: 2px 0; }
.tnc-dma__ma-hd-lon small { display: block; color: var(--tnc-dma-phu); font-size: 12px; }
.tnc-dma__hd-dong { margin: 0 0 16px; padding: 18px 16px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; text-align: center; }
.tnc-dma__hd-dong-icon { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.tnc-dma__hd-dong strong { display: block; font-size: 16px; color: #9a3412; }
.tnc-dma__hd-dong p { margin: 4px 0 12px; color: var(--tnc-dma-phu); }
.tnc-dma.is-khoa-goi .tnc-dma__them, .tnc-dma.is-khoa-goi .tnc-dma__sp-them { pointer-events: none; opacity: .4; }
.tnc-dma-tn__canh-bao { font-size: 12px; font-weight: 700; color: #fff; background: #d97706; border-radius: 10px; padding: 1px 8px; }
.tnc-dma-tn__ban-canh-bao { margin-top: 2px; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 1px 8px; }

/* ===== v1.8.0: Tổng tiền luôn hiện + nút Thanh toán ===== */
.tnc-dma .tnc-dma__chan-tong { cursor: default; }
.tnc-dma .tnc-dma__chan-tong:hover { background: transparent; }
.tnc-dma .tnc-dma__chan-tong.is-co-mon { background: transparent; }
.tnc-dma .tnc-dma__chan-tong.is-co-mon strong { color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__chan-tong.is-co-mon .tnc-dma__chan-nhan { color: var(--tnc-dma-phu); }
.tnc-dma .tnc-dma__chan-tt { background: var(--tnc-dma-chinh); flex: 1 1 0; max-width: 150px; }
.tnc-dma .tnc-dma__chan-tt .tnc-dma__chan-nhan { color: #fff; font-weight: 700; }
.tnc-dma .tnc-dma__chan-tt:hover { background: var(--tnc-dma-chinh-dam); color: #fff; }
@media (max-width: 420px) {
    .tnc-dma .tnc-dma__chan { padding: 0 0 env(safe-area-inset-bottom, 0); }
    .tnc-dma .tnc-dma__chan-muc { padding: 6px 2px; }
    .tnc-dma .tnc-dma__chan-ban { flex: 0 0 58px; }
    .tnc-dma__chan-so { min-width: 36px; height: 36px; font-size: 17px; }
    .tnc-dma .tnc-dma__chan-tong strong { font-size: 15px; }
    .tnc-dma__chan-nhan { font-size: 11px; }
}
.tnc-dma .tnc-dma__nut--phu { background: #fff; color: var(--tnc-dma-chinh); border: 2px solid var(--tnc-dma-chinh); margin-top: 10px; }
.tnc-dma .tnc-dma__nut--phu:hover { background: #fff7ed; }
.tnc-dma__tt-hd { font-size: 13px; color: var(--tnc-dma-phu); margin: -6px 0 10px; }
.tnc-dma__tt-hd strong { color: var(--tnc-dma-chu); letter-spacing: .03em; }
.tnc-dma__tt-ds > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--tnc-dma-vien); font-size: 14px; }
.tnc-dma__tt-tong { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 14px; font-size: 16px; font-weight: 600; }
.tnc-dma__tt-tong strong { font-size: 24px; color: var(--tnc-dma-chinh); }
.tnc-dma__tt-nhac { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 13px; }
.tnc-dma__tt-tb { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-weight: 600; text-align: center; }
.tnc-dma__tt-ck { text-align: center; }
.tnc-dma__buoc--thanh-toan a.tnc-dma__nut { display: block; text-align: center; text-decoration: none; }

/* Thu ngân: yêu cầu thanh toán */
.tnc-dma-tn__chu-thich i.is-yeu-cau-tt { background: #dbeafe; border: 1px solid #2563eb; }
.tnc-dma-tn__ban.is-yeu-cau-tt { background: #eff6ff; border-color: #2563eb; animation: tnc-dma-tn-nhay-xanh 1.4s infinite; }
@keyframes tnc-dma-tn-nhay-xanh { 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .3); } }
.tnc-dma-tn__ban-tt { margin-top: 2px; font-size: 12px; font-weight: 700; color: #fff; background: #2563eb; border-radius: 10px; padding: 1px 8px; }
.tnc-dma-tn__yc-tt { margin: -4px 0 14px; padding: 10px 14px; border-radius: 10px; background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a8a; font-size: 14px; }

/* ===== v1.8.1: popup trên điện thoại — nút ✕ luôn hiện, nút gọi món luôn ở đáy ===== */
.tnc-dma__modal { height: 100vh; height: 100dvh; }
.tnc-dma__modal-noi-dung {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);          /* dvh: trừ thanh địa chỉ trình duyệt điện thoại */
    overscroll-behavior: contain;              /* cuộn trong popup không kéo trang phía sau */
    -webkit-overflow-scrolling: touch;
    padding-top: 12px;
}
/* Nút ✕ dính ở góc trên khi cuộn (không chiếm chỗ của nội dung) */
.tnc-dma .tnc-dma__dong {
    position: sticky; top: 0; right: auto; z-index: 6;
    display: flex; align-items: center; justify-content: center;
    margin: 0 -6px -34px auto;
    width: 38px; height: 38px; font-size: 24px;
    background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.tnc-dma .tnc-dma__modal-noi-dung .tnc-dma__tieu-de,
.tnc-dma .tnc-dma__da-goi { margin-right: 44px; }
.tnc-dma .tnc-dma__da-goi { margin-top: 0; }
/* Popup xem nhanh dạng lưới ảnh|thông tin: giữ nút ✕ kiểu cũ */
.tnc-dma .tnc-dma__chi-tiet .tnc-dma__dong { position: absolute; top: 10px; right: 12px; margin: 0; }
.tnc-dma__modal--chi-tiet .tnc-dma__chi-tiet { padding-top: 0; }

/* Nút Gọi món / Đặt món / Gửi bếp dính ở đáy popup */
.tnc-dma .tnc-dma__nut-dat {
    position: sticky; bottom: 0; z-index: 5;
    box-shadow: 0 -10px 16px 6px #fff;          /* che nội dung cuộn phía dưới nút */
}
.tnc-dma__form { padding-bottom: 2px; }

/* Admin (Thu ngân, Bàn, Đơn hàng) trên điện thoại / máy tính bảng */
.tnc-dma-admin__modal-noi-dung { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.tnc-dma-admin__dong {
    position: sticky; top: 0; z-index: 6; float: right;
    width: 36px; height: 36px; margin: -10px -10px 0 8px;
    border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); line-height: 1;
}

/* ===== v1.8.2: ô Thanh toán nền trắng, ô Tổng tiền bấm được (mở giỏ hàng) ===== */
.tnc-dma .tnc-dma__chan-tt { background: transparent; flex: 1 1 0; max-width: 180px; }
.tnc-dma .tnc-dma__chan-tt .tnc-dma__chan-nhan { color: var(--tnc-dma-phu); font-weight: 500; }
.tnc-dma .tnc-dma__chan-tt:hover { background: #fafafa; color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__chan-tong { cursor: pointer; }
.tnc-dma .tnc-dma__chan-tong:hover { background: #fafafa; }

/* ===== v1.8.3: biểu tượng $ + người gọi đã đăng nhập ===== */
.tnc-dma__chan-icon--tien {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid #16a34a; color: #16a34a;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; font-family: Arial, Helvetica, sans-serif; line-height: 1;
}
.tnc-dma__nguoi-goi { margin: -4px 0 12px; font-size: 14px; color: var(--tnc-dma-phu); }
.tnc-dma__nguoi-goi strong { color: var(--tnc-dma-chu); }

/* ===== v1.9.0: thanh danh mục dọc bên trái + nhóm món theo danh mục ===== */
.tnc-dma__bo-cuc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.tnc-dma__dm-doc {
    position: sticky; top: calc(var(--tnc-dma-dinh, 0px) + 8px);
    max-height: calc(100vh - var(--tnc-dma-dinh, 0px) - 90px);
    max-height: calc(100dvh - var(--tnc-dma-dinh, 0px) - 90px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    display: flex; flex-direction: column; gap: 2px; padding: 6px;
    background: #faf8f6; border-radius: 12px;
}
.tnc-dma .tnc-dma__dm-muc {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 8px; color: #4b5563; text-decoration: none; box-shadow: none;
    font-size: 14px; line-height: 1.3; transition: background .15s, color .15s;
}
.tnc-dma .tnc-dma__dm-muc:hover { background: #fff; color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__dm-muc.is-active { background: #fff; color: var(--tnc-dma-chinh); font-weight: 700; box-shadow: inset 3px 0 0 var(--tnc-dma-chinh), 0 1px 4px rgba(0,0,0,.06); }
.tnc-dma__dm-so { flex: 0 0 auto; min-width: 22px; padding: 1px 6px; border-radius: 10px; background: #eee; color: #6b7280; font-size: 11px; font-weight: 600; text-align: center; }
.tnc-dma__dm-muc.is-active .tnc-dma__dm-so { background: #fff7ed; color: var(--tnc-dma-chinh); }
.tnc-dma__nhom { scroll-margin-top: calc(var(--tnc-dma-dinh, 0px) + 10px); margin-bottom: 28px; }
.tnc-dma .tnc-dma__nhom-ten { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--tnc-dma-chu); }

/* Điện thoại: thanh dọc hẹp bên trái, chữ xuống dòng; món dạng hàng gọn hơn */
@media (max-width: 600px) {
    .tnc-dma__bo-cuc { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
    .tnc-dma__dm-doc { padding: 0; gap: 0; border-radius: 10px; background: #f5f3f1; }
    .tnc-dma .tnc-dma__dm-muc {
        flex-direction: column; justify-content: center; text-align: center; gap: 2px;
        padding: 12px 6px; border-radius: 0; font-size: 12px; word-break: break-word;
    }
    .tnc-dma__dm-so { display: none; }
    .tnc-dma .tnc-dma__nhom-ten { font-size: 15px; margin-bottom: 8px; }
    .tnc-dma__nhom { margin-bottom: 20px; }
    .tnc-dma__bo-cuc .tnc-dma__grid { gap: 8px; }
    .tnc-dma__bo-cuc .tnc-dma__mon { gap: 8px; padding: 8px; }
    .tnc-dma__bo-cuc .tnc-dma__anh { flex: 0 0 70px; width: 70px; height: 70px; font-size: 26px; }
    .tnc-dma__bo-cuc .tnc-dma__ten { font-size: 14px; }
    .tnc-dma__bo-cuc .tnc-dma__mo-ta { font-size: 12px; -webkit-line-clamp: 1; }
    .tnc-dma__bo-cuc .tnc-dma__gia { font-size: 14px; }
    .tnc-dma .tnc-dma__bo-cuc .tnc-dma__them { height: 30px; padding: 0 10px; font-size: 13px; }
}

/* ===== v1.9.1: thanh danh mục ẩn sẵn, bấm "Thực đơn" mới trượt ra từ bên trái ===== */
.tnc-dma__bo-cuc { display: block; }
.tnc-dma__dm-doc {
    position: fixed; left: 0; top: var(--tnc-dma-dinh, 0px); bottom: 62px; z-index: 9997;
    width: 240px; max-width: 78vw; max-height: none;
    padding: 10px 8px; border-radius: 0 14px 14px 0; background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
    transform: translateX(-105%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
}
.tnc-dma__dm-doc.is-mo { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
.tnc-dma__dm-doc::before {
    content: "Danh mục"; display: block; padding: 4px 12px 10px; margin-bottom: 4px;
    font-size: 15px; font-weight: 700; color: var(--tnc-dma-chu); border-bottom: 1px solid var(--tnc-dma-vien);
}
.tnc-dma__dm-phu { position: fixed; inset: 0; z-index: 9996; background: rgba(0, 0, 0, .35); }
.tnc-dma .tnc-dma__chan-thuc-don.is-mo { background: #fff7ed; }
.tnc-dma .tnc-dma__chan-thuc-don.is-mo .tnc-dma__chan-nhan { color: var(--tnc-dma-chinh); font-weight: 700; }

/* Trên điện thoại: thanh trượt dùng kiểu hàng ngang như máy tính; món trở lại kích thước đầy đủ */
@media (max-width: 600px) {
    .tnc-dma__dm-doc { width: 230px; padding: 10px 8px; gap: 2px; border-radius: 0 14px 14px 0; background: #fff; }
    .tnc-dma .tnc-dma__dm-muc { flex-direction: row; justify-content: space-between; text-align: left; padding: 11px 12px; border-radius: 8px; font-size: 14px; }
    .tnc-dma__dm-so { display: inline-block; }
    .tnc-dma__bo-cuc .tnc-dma__grid { gap: 10px; }
    .tnc-dma__bo-cuc .tnc-dma__mon { gap: 12px; padding: 10px; }
    .tnc-dma__bo-cuc .tnc-dma__anh { flex: 0 0 96px; width: 96px; height: 96px; font-size: 34px; }
    .tnc-dma__bo-cuc .tnc-dma__ten { font-size: 15px; }
    .tnc-dma__bo-cuc .tnc-dma__mo-ta { font-size: 13px; -webkit-line-clamp: 2; }
    .tnc-dma__bo-cuc .tnc-dma__gia { font-size: 15px; }
    .tnc-dma .tnc-dma__bo-cuc .tnc-dma__them { height: 34px; padding: 0 14px; font-size: 14px; }
}

/* ===== v1.10.0: Quản trị danh mục ===== */
.tnc-dma-dm__hang { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tnc-dma-dm__bang td { vertical-align: middle; }
.tnc-dma-dm__keo { cursor: grab; font-size: 18px; color: #8c8f94; text-align: center; user-select: none; }
.tnc-dma-dm__ds tr { background: #fff; }
.tnc-dma-dm__ds tr:nth-child(even) { background: #f9f9f9; }
.tnc-dma-dm__ds tr.ui-sortable-helper { display: table; background: #f0f6fc; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tnc-dma-dm__cho { height: 44px; background: #f0f6fc !important; outline: 2px dashed #2271b1; outline-offset: -4px; }
.tnc-dma-dm__ds.is-da-luu tr { transition: background .3s; background: #f0fdf4 !important; }
.tnc-dma-dm__ds tr.is-an .tnc-dma-dm__ten { color: #a7aaad; text-decoration: line-through; }
.tnc-dma-dm__bat { white-space: nowrap; }
.tnc-dma-dm__nut { white-space: nowrap; text-align: right; }
.tnc-dma-dm__nhan-an { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #fcf0f1; color: #b32d2e; font-size: 11px; }
.tnc-dma-mon__loc { margin: 12px 0; }

/* ===== v1.10.0: Máy tính & iPad (≥ 768px) thanh danh mục luôn hiện; điện thoại dùng thanh trượt ===== */
.tnc-dma .tnc-dma__dm-ten { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) {
    .tnc-dma__bo-cuc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
    .tnc-dma__dm-doc {
        position: sticky; top: calc(var(--tnc-dma-dinh, 0px) + 8px); left: auto; bottom: auto; z-index: 2;
        width: auto; max-width: none;
        max-height: calc(100vh - var(--tnc-dma-dinh, 0px) - 90px);
        max-height: calc(100dvh - var(--tnc-dma-dinh, 0px) - 90px);
        padding: 6px; border-radius: 12px; background: #faf8f6; box-shadow: none;
        transform: none; visibility: visible; transition: none;
    }
    .tnc-dma__dm-doc::before { display: none; }
    .tnc-dma__dm-phu { display: none !important; }
    .tnc-dma .tnc-dma__chan-thuc-don.is-mo { background: transparent; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .tnc-dma__bo-cuc { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; } /* iPad */
}

/* ===== v1.10.1: thanh danh mục trên điện thoại gọn hơn ===== */
@media (max-width: 767px) {
    .tnc-dma__dm-doc {
        width: 180px; padding: 6px 6px 8px; gap: 0;
        bottom: auto;                                   /* cao vừa đủ nội dung */
        max-height: calc(100vh - var(--tnc-dma-dinh, 0px) - 72px);
        max-height: calc(100dvh - var(--tnc-dma-dinh, 0px) - 72px);
        border-radius: 0 0 12px 0;
    }
    .tnc-dma__dm-doc::before { padding: 4px 10px 6px; margin-bottom: 2px; font-size: 13px; }
    .tnc-dma .tnc-dma__dm-muc { padding: 6px 8px 6px 10px; font-size: 14px; line-height: 1.3; border-radius: 6px; gap: 6px; }
    .tnc-dma .tnc-dma__dm-muc.is-active { box-shadow: inset 3px 0 0 var(--tnc-dma-chinh); }
    .tnc-dma .tnc-dma__dm-so { display: inline-block; min-width: 20px; padding: 0 5px; font-size: 11px; line-height: 17px; }
}

/* ===== v1.10.3: tổng dự tính trong giỏ (tại bàn) ===== */
.tnc-dma__du-tinh { font-size: 12px; font-weight: 400; color: var(--tnc-dma-phu); }
.tnc-dma__tong-ket > .tnc-dma__dong-da-goi { color: #166534; }

/* ===== v1.10.4: sắp xếp tự động danh mục ===== */
.tnc-dma-dm__dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tnc-dma-dm__dau h2 { margin: 14px 0 4px; }
.tnc-dma-dm__tu-sap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 8px; }
.tnc-dma-dm__tu-sap label { font-weight: 600; }

/* ===== v2.0.1: nút ✕ bỏ món khỏi giỏ ===== */
.tnc-dma .tnc-dma__xoa-mon {
    flex: 0 0 auto; width: 28px; height: 28px; margin: 0 0 0 2px; padding: 0; min-height: 0;
    border: 1px solid #fecaca; border-radius: 50%; background: #fff; color: #dc2626;
    font-size: 13px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tnc-dma .tnc-dma__xoa-mon:hover { background: #fef2f2; border-color: #dc2626; }
.tnc-dma__dong-gio-tien { min-width: 72px; }
@media (max-width: 400px) {
    .tnc-dma__dong-gio { gap: 6px; }
    .tnc-dma__dong-gio-tien { min-width: 64px; font-size: 14px; }
    .tnc-dma .tnc-dma__sl button { width: 26px; height: 26px; }
    .tnc-dma .tnc-dma__xoa-mon { width: 26px; height: 26px; }
}

/* ===== v2.1.0: nhóm danh mục (2 cấp) ===== */
/* Thực đơn — thanh danh mục */
.tnc-dma .tnc-dma__dm-nhom {
    display: block; flex: 0 0 auto; margin: 10px 0 2px; padding: 6px 12px 4px; line-height: 1.4;
    border-bottom: 1px dashed #fed7aa;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #9a3412; text-decoration: none; box-shadow: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tnc-dma .tnc-dma__dm-nhom:first-child { margin-top: 0; }
.tnc-dma .tnc-dma__dm-nhom:hover, .tnc-dma .tnc-dma__dm-nhom.is-co { color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__dm-muc--con { padding-left: 22px; }
/* Thực đơn — tiêu đề nhóm lớn trong nội dung */
.tnc-dma .tnc-dma__nhom-lon {
    margin: 8px 0 14px; padding: 10px 14px; border-radius: 10px;
    background: linear-gradient(90deg, #fff7ed, rgba(255,247,237,0)); border-left: 4px solid var(--tnc-dma-chinh);
    font-size: 20px; font-weight: 800; color: #9a3412; text-transform: uppercase; letter-spacing: .03em;
    scroll-margin-top: calc(var(--tnc-dma-dinh, 0px) + 10px);
}
@media (max-width: 767px) {
    .tnc-dma .tnc-dma__dm-nhom { margin-top: 6px; padding: 5px 10px 2px; font-size: 11px; }
    .tnc-dma .tnc-dma__dm-muc--con { padding-left: 18px; }
    .tnc-dma .tnc-dma__nhom-lon { font-size: 16px; padding: 8px 12px; }
}
/* Admin */
.tnc-dma-dm__ds-nhom { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.tnc-dma-dm__ds-nhom li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; }
.tnc-dma-dm__ds-nhom li.ui-sortable-helper { box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tnc-dma-dm__keo-nhom { cursor: grab; color: #8c8f94; font-size: 16px; }
.tnc-dma-dm__so-dm { margin-left: auto; color: #646970; font-size: 12px; }
.tnc-dma-dm__ds-nhom .button-link { text-decoration: none; }
.tnc-dma-dm__ds tr.tnc-dma-dm__hang-nhom td { background: #fff7ed; border-top: 2px solid #fed7aa; font-weight: 700; color: #9a3412; padding: 10px 12px; }
.tnc-dma-dm__ds tr.tnc-dma-dm__hang-nhom td span { font-weight: 400; color: #8c8f94; }
.tnc-dma-dm__ds tr.tnc-dma-dm__hang-dm td:nth-child(2) { padding-left: 22px; }
.tnc-dma-dm__ds tr.tnc-dma-dm__hang-trong td { color: #a7aaad; font-style: italic; text-align: center; padding: 10px; background: #fcfcfc; }

/* ===== v2.2.0: nhập / xuất JSON ===== */
.tnc-dma-admin__nhap-json textarea, .tnc-dma-admin__mau-json { font-family: Consolas, Menlo, "Courier New", monospace; }
.tnc-dma-admin__nhap-json textarea { width: 100%; box-sizing: border-box; font-size: 12px; line-height: 1.5; }
.tnc-dma-admin__mau-json { margin: 6px 0 10px; padding: 10px 12px; background: #1d2327; color: #e6edf3; border-radius: 8px; font-size: 12px; line-height: 1.5; overflow-x: auto; }

/* ===== v2.3.0: món chưa có giá ("Cập nhật") ===== */
.tnc-dma .tnc-dma__gia.is-chua-gia,
.tnc-dma .tnc-dma__sp-gia.is-chua-gia,
.tnc-dma .tnc-dma__ct-gia.is-chua-gia,
.tnc-dma .tnc-dma__dong-gio-tien.is-chua-gia { color: #b45309; font-style: italic; }
.tnc-dma .tnc-dma__gia.is-chua-gia { font-size: .92em; }
.tnc-dma .tnc-dma__chua-gia-nhac { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #b45309; }
/* Thu ngân */
.tnc-dma-tn-dat-gia { padding: 0; border: 0; background: none; color: #2271b1; font: inherit; cursor: pointer; text-decoration: underline dotted; }
.tnc-dma-tn-dat-gia:hover { color: #135e96; }
tr.is-chua-gia .tnc-dma-tn-dat-gia { color: #b45309; font-weight: 700; text-decoration: none; padding: 1px 6px; border-radius: 4px; background: #fff7ed; border: 1px dashed #f59e0b; }
tr.is-chua-gia .tnc-dma-tn__tien, .tnc-dma-tn__gop tr.is-chua-gia td:last-child { color: #b45309; font-style: italic; }
.tnc-dma-tn__chua-gia { margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; }

/* ===== v2.3.1: món "Cập nhật" chưa gọi được + nền tên nhóm danh mục ===== */
.tnc-dma .tnc-dma__mon.is-chua-gia .tnc-dma__anh { opacity: .75; }
.tnc-dma .tnc-dma__mon.is-chua-gia .tnc-dma__mo-chi-tiet { cursor: pointer; }
/* Tên nhóm trên thanh danh mục: nền cam nhạt */
.tnc-dma .tnc-dma__dm-nhom {
    background: #fff4e6; border-bottom: 0; border-radius: 6px;
    padding: 7px 12px; margin: 10px 0 4px;
}
.tnc-dma .tnc-dma__dm-nhom:first-child { margin-top: 0; }
.tnc-dma .tnc-dma__dm-nhom:hover, .tnc-dma .tnc-dma__dm-nhom.is-co { background: #ffe8cc; }
@media (max-width: 767px) {
    .tnc-dma .tnc-dma__dm-nhom { padding: 6px 10px; margin: 8px 0 3px; }
}

/* ===== v2.4.0: Tìm kiếm món + từ khóa gợi ý ===== */
.tnc-dma__tk { position: relative; z-index: 6; margin: 0 0 18px; }
.tnc-dma__tk-o { position: relative; display: flex; align-items: center; }
.tnc-dma .tnc-dma__tk-input {
    width: 100%; height: 48px; margin: 0; padding: 0 44px 0 42px; box-shadow: none;
    border: 1.5px solid #e5e1dc; border-radius: 999px; background: #fff;
    color: var(--tnc-dma-chu); font-size: 16px; line-height: 1.3; /* 16px: iPhone không tự phóng to */
    -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.tnc-dma .tnc-dma__tk-input::placeholder { color: #9ca3af; opacity: 1; }
.tnc-dma .tnc-dma__tk-input:focus { outline: none; border-color: var(--tnc-dma-chinh); box-shadow: 0 0 0 3px rgba(232, 93, 4, .14); }
.tnc-dma .tnc-dma__tk-input::-webkit-search-cancel-button,
.tnc-dma .tnc-dma__tk-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.tnc-dma .tnc-dma__tk-xoa {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: none; border-radius: 50%;
    background: #f3f4f6; color: #6b7280; font-size: 20px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
}
.tnc-dma .tnc-dma__tk-xoa:hover { background: #fee2e2; color: #dc2626; }

/* Dropdown gợi ý */
.tnc-dma__tk-ds {
    position: absolute; left: 0; right: 0; top: 54px; z-index: 30;
    max-height: min(440px, 70vh); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px; background: #fff; border: 1px solid var(--tnc-dma-vien); border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
.tnc-dma__tk-nhom-ten {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9ca3af;
}
.tnc-dma__tk-muc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; line-height: 1.35; }
.tnc-dma__tk-muc.is-chon { background: #fff7ed; }
.tnc-dma__tk-muc mark { background: none; color: var(--tnc-dma-chinh); font-weight: 700; padding: 0; }
.tnc-dma__tk-muc-icon { flex: 0 0 18px; font-size: 13px; opacity: .6; text-align: center; }
.tnc-dma__tk-muc-chu { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--tnc-dma-chu); }
.tnc-dma__tk-muc-so { flex: 0 0 auto; font-size: 12px; color: #9ca3af; }
.tnc-dma__tk-anh {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
    background: #faf5f0; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tnc-dma__tk-anh img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tnc-dma__tk-mon-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tnc-dma__tk-mon-ten { font-size: 15px; font-weight: 600; color: var(--tnc-dma-chu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnc-dma__tk-mon-phu { font-size: 12px; color: var(--tnc-dma-phu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnc-dma__tk-mon-phu b { color: var(--tnc-dma-chinh); font-weight: 700; }
.tnc-dma__tk-mon-phu b.is-chua-gia { color: #b45309; font-style: italic; font-weight: 600; }
.tnc-dma__tk-mon-phu i { color: #9ca3af; font-style: normal; }
.tnc-dma .tnc-dma__tk-them {
    flex: 0 0 auto; min-width: 34px; height: 32px; min-height: 0; margin: 0; padding: 0 10px;
    border: none; border-radius: 999px; background: var(--tnc-dma-chinh); color: #fff; box-shadow: none;
    font-size: 16px; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__tk-them:hover { background: var(--tnc-dma-chinh-dam); }
.tnc-dma .tnc-dma__tk-them.is-da-them { background: #16a34a; font-size: 13px; }
.tnc-dma__tk-tat-ca { justify-content: center; margin-top: 4px; border-top: 1px solid var(--tnc-dma-vien); border-radius: 0 0 9px 9px; color: var(--tnc-dma-chinh); font-size: 14px; }
.tnc-dma__tk-khong { padding: 14px 12px; font-size: 14px; color: var(--tnc-dma-phu); text-align: center; }

/* Từ khóa gợi ý dạng chip */
.tnc-dma__tk-goi-y { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.tnc-dma__tk-goi-y-nhan { font-size: 13px; font-weight: 600; color: var(--tnc-dma-phu); margin-right: 2px; }
.tnc-dma__tk-goi-y-nhan::before { content: "🔥 "; }
.tnc-dma .tnc-dma__tk-chip {
    margin: 0; min-height: 0; padding: 5px 12px; line-height: 1.3; box-shadow: none;
    border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed;
    color: #9a3412; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.tnc-dma .tnc-dma__tk-chip:hover { background: #ffedd5; border-color: var(--tnc-dma-chinh); color: var(--tnc-dma-chinh); }
.tnc-dma .tnc-dma__tk-chip.is-active { background: var(--tnc-dma-chinh); border-color: var(--tnc-dma-chinh); color: #fff; }
/* Dòng kết quả + trạng thái không có món */
.tnc-dma__tk-ket-qua { margin-top: 10px; font-size: 14px; color: var(--tnc-dma-phu); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tnc-dma__tk-ket-qua strong { color: var(--tnc-dma-chu); }
.tnc-dma .tnc-dma__tk-bo {
    margin: 0; min-height: 0; padding: 3px 10px; line-height: 1.4; box-shadow: none;
    border: 1px solid var(--tnc-dma-vien); border-radius: 999px; background: #fff;
    color: var(--tnc-dma-phu); font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__tk-bo:hover { border-color: #dc2626; color: #dc2626; }
.tnc-dma__tk-trong { padding: 30px 16px; margin-bottom: 20px; text-align: center; background: #faf8f6; border-radius: 14px; color: var(--tnc-dma-phu); }
.tnc-dma__tk-trong-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.tnc-dma__tk-trong p { margin: 0 0 10px; }
.tnc-dma__tk-trong strong { color: var(--tnc-dma-chu); }
.tnc-dma__tk-trong-thu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.tnc-dma .tnc-dma__tk-xem-het {
    margin: 4px 0 0; min-height: 0; padding: 9px 18px; line-height: 1.3; box-shadow: none;
    border: none; border-radius: 10px; background: var(--tnc-dma-chinh); color: #fff;
    font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
/* Tô đậm chữ khớp trong tên món trên thực đơn */
.tnc-dma .tnc-dma__ten mark { background: #ffedd5; color: inherit; padding: 0 1px; border-radius: 3px; }

/* Admin: xem trước từ khóa */
.tnc-dma-admin__tk-xem { display: flex; flex-wrap: wrap; gap: 6px; }
.tnc-dma-admin__tk-xem span { padding: 3px 10px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; }
.tnc-dma-admin__tk-canh-bao { margin: 6px 0 0; color: #b32d2e; }

/* ===== v2.4.1: thanh tìm kiếm dính trên cùng + từ khóa gợi ý chỉ hiện khi rê chuột / bấm vào ô ===== */
.tnc-dma > .tnc-dma__tk {
    position: sticky; top: var(--tnc-dma-dinh, 0px); z-index: 50;
    margin: 0 0 10px; padding: 8px 0; background: var(--tnc-dma-nen);
    transition: box-shadow .2s;
}
.tnc-dma > .tnc-dma__tk.is-dinh { box-shadow: 0 10px 14px -12px rgba(0, 0, 0, .28); }
.tnc-dma__tk-ds { top: 62px; }
.tnc-dma__tk-ket-qua { margin-top: 8px; }
/* Chip từ khóa trong bảng gợi ý */
.tnc-dma__tk-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
/* Thanh danh mục & cuộn tới nhóm: lùi xuống dưới thanh tìm đang dính */
.tnc-dma__nhom, .tnc-dma .tnc-dma__nhom-lon { scroll-margin-top: calc(var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) + 10px); }
.tnc-dma__dm-doc { top: var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)); }
@media (min-width: 768px) {
    .tnc-dma__dm-doc {
        top: calc(var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) + 8px);
        max-height: calc(100vh - var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) - 90px);
        max-height: calc(100dvh - var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) - 90px);
    }
}
@media (max-width: 767px) {
    .tnc-dma__dm-doc {
        max-height: calc(100vh - var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) - 72px);
        max-height: calc(100dvh - var(--tnc-dma-tren, var(--tnc-dma-dinh, 0px)) - 72px);
    }
    .tnc-dma > .tnc-dma__tk { padding: 6px 0; }
    .tnc-dma__tk-ds { top: 58px; max-height: min(420px, 65vh); }
}

/* ===== v2.4.4: nút kính lúp bên phải ô tìm ===== */
.tnc-dma .tnc-dma__tk-input { padding: 0 96px 0 20px; }
.tnc-dma .tnc-dma__tk-xoa { right: 52px; }
.tnc-dma .tnc-dma__tk-nut {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: none; border-radius: 50%;
    background: var(--tnc-dma-chinh); color: #fff; box-shadow: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.tnc-dma .tnc-dma__tk-nut:hover { background: var(--tnc-dma-chinh-dam); }
.tnc-dma .tnc-dma__tk-nut:focus-visible { outline: 2px solid var(--tnc-dma-chinh); outline-offset: 2px; }
.tnc-dma .tnc-dma__tk-nut svg { display: block; }

/* ===== v2.5.0: Thu ngân ngoài trang web [tnc_thu_ngan] ===== */
/* Ngoài trang web không có CSS của WordPress admin → tự định kiểu nút, bảng; chặn theme đè (in hoa, margin…) */
.tnc-dma-tn--ngoai { color: #1d2327; font-size: 14px; line-height: 1.45; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.tnc-dma-tn--ngoai *, .tnc-dma-tn--ngoai *::before, .tnc-dma-tn--ngoai *::after { box-sizing: border-box; }
.tnc-dma-tn--ngoai h2, .tnc-dma-tn--ngoai h3 { font-family: inherit; text-transform: none; letter-spacing: 0; color: #1d2327; }
.tnc-dma-tn--ngoai button, .tnc-dma-tn--ngoai input, .tnc-dma-tn--ngoai textarea { font-family: inherit; text-transform: none; letter-spacing: 0; }
.tnc-dma-tn--ngoai button { margin: 0; min-height: 0; box-shadow: none; line-height: 1.3; }
.tnc-dma-tn--ngoai input[type="text"], .tnc-dma-tn--ngoai input[type="search"], .tnc-dma-tn--ngoai input[type="date"], .tnc-dma-tn--ngoai textarea {
    height: auto; margin: 0; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; color: #1d2327; box-shadow: none;
}
.tnc-dma-tn--ngoai input[type="date"] { padding: 5px 8px; margin-left: 6px; }
.tnc-dma-tn--ngoai input:focus, .tnc-dma-tn--ngoai textarea:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.tnc-dma-tn--ngoai input[type="checkbox"], .tnc-dma-tn--ngoai input[type="radio"] { margin: 0 4px 0 0; vertical-align: -2px; }
.tnc-dma-tn--ngoai label { display: inline; margin: 0; font-size: inherit; color: inherit; }
.tnc-dma-tn--ngoai .tnc-dma-tn__tt label { display: block; }
.tnc-dma-tn--ngoai .tnc-dma-tn__pt label { display: block; }
/* Nút kiểu WordPress */
.tnc-dma-tn--ngoai .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 6px 14px; border: 1px solid #2271b1; border-radius: 6px; background: #f6f7f7; color: #2271b1;
    font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.tnc-dma-tn--ngoai .button:hover { background: #f0f6fc; color: #135e96; border-color: #135e96; }
.tnc-dma-tn--ngoai .button-primary { background: #2271b1; color: #fff; }
.tnc-dma-tn--ngoai .button-primary:hover { background: #135e96; color: #fff; }
.tnc-dma-tn--ngoai .button-hero { padding: 12px 22px; font-size: 16px; border-radius: 8px; }
.tnc-dma-tn--ngoai .button-small { padding: 3px 9px; font-size: 12px; }
.tnc-dma-tn--ngoai .button:disabled { opacity: .5; cursor: not-allowed; }
.tnc-dma-tn--ngoai .button-link-delete { padding: 0; border: none; background: none; color: #b32d2e; text-decoration: underline; cursor: pointer; font-size: 13px; }
.tnc-dma-tn--ngoai .description { color: #646970; font-size: 13px; }
.tnc-dma-tn--ngoai .widefat { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dcdcde; font-size: 13px; }
.tnc-dma-tn--ngoai .widefat th, .tnc-dma-tn--ngoai .widefat td { padding: 8px 10px; border: none; border-bottom: 1px solid #f0f0f1; text-align: left; vertical-align: middle; }
.tnc-dma-tn--ngoai .widefat th { font-weight: 600; background: #f6f7f7; }
.tnc-dma-tn--ngoai .striped tbody tr:nth-child(odd) td { background: #fbfbfb; }
.tnc-dma-tn--ngoai .tnc-dma-tn__ban { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.3; }
.tnc-dma-tn--ngoai .tnc-dma-tn__ds-ls { overflow-x: auto; }
.tnc-dma-tn--ngoai .tnc-dma-admin__modal-noi-dung { color: #1d2327; }
.tnc-dma-tn--ngoai .tnc-dma-admin__dong { padding: 0; width: 36px; height: 36px; font-size: 28px; line-height: 1; color: #555; background: none; border: none; }
.tnc-dma-tn--ngoai .tnc-dma-tn__ct-phai { top: -22px; }
/* Đầu trang thu ngân */
.tnc-dma-tn__dau-ngoai { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 6px; }
.tnc-dma-tn--ngoai .tnc-dma-tn__tieu-de { margin: 0; font-size: 22px; font-weight: 800; }
.tnc-dma-tn__nguoi-dung { font-size: 13px; color: #646970; }
.tnc-dma-tn__nguoi-dung a { color: #2271b1; }
@media (max-width: 600px) {
    .tnc-dma-tn--ngoai .tnc-dma-tn__tab { width: 100%; }
    .tnc-dma-tn--ngoai .tnc-dma-tn__tab button { flex: 1; padding: 8px 6px; font-size: 13px; }
    .tnc-dma-tn--ngoai .tnc-dma-tn__chu-thich { display: none; }
    .tnc-dma-tn--ngoai .tnc-dma-tn__nhom { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .tnc-dma-tn--ngoai .tnc-dma-admin__modal { padding: 0; align-items: stretch; }
    .tnc-dma-tn--ngoai .tnc-dma-admin__modal-noi-dung { max-height: 100vh; max-height: 100dvh; border-radius: 0; padding: 18px 14px; }
}
/* Chưa đăng nhập / không có quyền */
.tnc-dma-tn-khoa { display: flex; justify-content: center; padding: 30px 16px; }
.tnc-dma-tn-khoa__the { width: 100%; max-width: 380px; padding: 26px 24px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .06); text-align: center; }
.tnc-dma-tn-khoa__icon { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.tnc-dma-tn-khoa__the h3 { margin: 0 0 6px; font-size: 19px; text-transform: none; }
.tnc-dma-tn-khoa__the p { margin: 0 0 14px; color: #6b7280; font-size: 14px; }
.tnc-dma-tn-khoa__the form { text-align: left; }
.tnc-dma-tn-khoa__the form p { margin: 0 0 12px; color: inherit; }
.tnc-dma-tn-khoa__the label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.tnc-dma-tn-khoa__the input[type="text"], .tnc-dma-tn-khoa__the input[type="password"] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 16px; }
.tnc-dma-tn-khoa__the .login-remember label { display: inline; font-weight: 400; }
.tnc-dma-tn-khoa__the input[type="submit"] { width: 100%; height: 44px; margin: 0; border: none; border-radius: 8px; background: #2271b1; color: #fff; font-size: 15px; font-weight: 700; text-transform: none; cursor: pointer; }
.tnc-dma-tn-khoa__the input[type="submit"]:hover { background: #135e96; }
/* Theme hay tô chữ nút màu trắng → đặt lại màu chữ cho các nút nền trắng */
.tnc-dma-tn--ngoai .tnc-dma-tn__sl button, .tnc-dma-tn--ngoai .tnc-dma-tn__mon-chon, .tnc-dma-tn--ngoai .tnc-dma-tn__ban { color: #1d2327; }
.tnc-dma-tn--ngoai .tnc-dma-tn__sl button { padding: 0; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.tnc-dma-tn--ngoai .tnc-dma-tn-xoa-mon { padding: 0; color: #b32d2e; background: #fff; font-size: 12px; }
.tnc-dma-tn--ngoai .tnc-dma-tn-dat-gia { padding: 0; background: none; color: #2271b1; font-size: 12px; font-weight: 400; }
.tnc-dma-tn--ngoai .tnc-dma-tn__tab button { color: #50575e; }
.tnc-dma-tn--ngoai .tnc-dma-tn__tab button.is-active { color: #fff; }
.tnc-dma-tn--ngoai .tnc-dma-tn__mon-chon { margin: 0; font-weight: 400; }
.tnc-dma-tn-khoa *, .tnc-dma-tn-khoa *::before, .tnc-dma-tn-khoa *::after { box-sizing: border-box; }
.tnc-dma-tn--ngoai textarea { padding: 6px 10px; }

/* ===== v2.6.0: ⏰ Giục lên món ===== */
/* Giỏ hàng (khách) */
.tnc-dma__giuc { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #bbf7d0; text-align: center; }
.tnc-dma .tnc-dma__giuc-nut {
    width: 100%; margin: 0; min-height: 0; padding: 10px 14px; line-height: 1.3; box-shadow: none;
    border: 2px solid #ea580c; border-radius: 10px; background: #fff7ed; color: #c2410c;
    font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma .tnc-dma__giuc-nut:hover { background: #ffedd5; }
.tnc-dma .tnc-dma__giuc-nut:disabled { opacity: .55; cursor: not-allowed; }
.tnc-dma__giuc-tb { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #9a3412; }
.tnc-dma__giuc-goi-y { margin: 6px 0 0; font-size: 12px; color: var(--tnc-dma-phu); }
/* Thu ngân — màu tím để khác hẳn "Có khách" (cam) / "Chưa in bếp" (đỏ) / "Gọi thanh toán" (xanh) */
.tnc-dma-tn__chu-thich i.is-giuc { background: #ede9fe; border: 1px solid #7c3aed; }
.tnc-dma-tn__ban.is-giuc { background: #f5f3ff; border-color: #7c3aed; animation: tnc-dma-tn-nhay-tim 1.2s infinite; }
@keyframes tnc-dma-tn-nhay-tim { 50% { box-shadow: 0 0 0 5px rgba(124, 58, 237, .28); } }
.tnc-dma-tn__ban-giuc { margin-top: 2px; font-size: 12px; font-weight: 700; color: #fff; background: #7c3aed; border-radius: 10px; padding: 1px 8px; }
.tnc-dma-tn__giuc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 14px; padding: 10px 14px; border-radius: 10px; background: #f5f3ff; border: 1px solid #c4b5fd; color: #4c1d95; font-size: 14px; }
.tnc-dma-tn__giuc .button { margin-left: auto; }

/* ===== v2.6.1: nút 🛒 trên từng bàn (Thu ngân) → về giỏ hàng của bàn ===== */
.tnc-dma-tn__o { position: relative; display: flex; }
.tnc-dma-tn__o > .tnc-dma-tn__ban { flex: 1 1 auto; width: 100%; }
.tnc-dma-tn__ve-gio {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #dcdcde; box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    font-size: 17px; line-height: 1; text-decoration: none !important; transition: transform .1s, background .15s, border-color .15s;
}
.tnc-dma-tn__ve-gio:hover { background: #fff7ed; border-color: #f97316; transform: scale(1.08); }
.tnc-dma-tn__ve-gio:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.tnc-dma-tn__ban-ten { padding-right: 34px; }
.tnc-dma-tn__ct-dau .tnc-dma-tn__ct-gio { margin-left: auto; margin-right: 34px; }

/* ===== v2.6.2: mục "Thu ngân" ở thanh chân trang (người đăng nhập có quyền) ===== */
/* Mục "Thu ngân" dùng màu bình thường như các mục khác (v2.6.5) */
@media (max-width: 420px) {
    /* Thêm 1 mục nên thu gọn chữ cho vừa 1 hàng */
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) { padding: 0 2px env(safe-area-inset-bottom, 0); }
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) .tnc-dma__chan-nhan { font-size: 11px; }
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) .tnc-dma__chan-ban { flex-basis: 58px; }
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) .tnc-dma__chan-tong strong { font-size: 15px; }
}
@media (max-width: 420px) {
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) .tnc-dma__chan-muc { padding-left: 2px; padding-right: 2px; }
    .tnc-dma__chan:has(.tnc-dma__chan-thu-ngan) .tnc-dma__chan-tong { flex: 1.15 1 0; }
    .tnc-dma .tnc-dma__chan-thu-ngan .tnc-dma__chan-nhan { font-size: 10.5px; letter-spacing: -.1px; }
}

/* ===== v2.6.3: thanh chân trang ở trang Thu ngân: Thực đơn | Giỏ hàng | Thu ngân ===== */
.tnc-dma-tn--ngoai { padding-bottom: 84px; }
.tnc-dma.tnc-dma--chan-tn { padding: 0; }
.tnc-dma .tnc-dma-tn__chan .tnc-dma__chan-muc { max-width: 200px; }
.tnc-dma .tnc-dma__chan-thu-ngan.is-dang-o { box-shadow: inset 0 3px 0 #2271b1; }
.tnc-dma .tnc-dma-tn__chan-gio.is-chua-chon { opacity: .6; }
.tnc-dma-tn__chan-ban { font-weight: 700; color: var(--tnc-dma-chinh); }

/* ===== v2.6.6: nút ✕ đóng (giỏ hàng, xem nhanh món…) nền đỏ, chữ ✕ trắng ===== */
.tnc-dma .tnc-dma__dong,
.tnc-dma .tnc-dma__chi-tiet .tnc-dma__dong {
    background: #dc2626; color: #fff; border: none;
    box-shadow: 0 2px 10px rgba(220, 38, 38, .35); text-shadow: none;
}
.tnc-dma .tnc-dma__dong:hover,
.tnc-dma .tnc-dma__dong:focus-visible { background: #b91c1c; color: #fff; }
.tnc-dma .tnc-dma__dong:focus-visible { outline: 2px solid #fecaca; outline-offset: 2px; }

/* ===== v2.6.8: khung "Bàn đã gọi" dàn rộng hết chiều ngang, nút ✕ nằm đè lên góc khung;
 *       tổng tiền xuống 1 dòng riêng (không đụng nút ✕) ===== */
.tnc-dma .tnc-dma__modal-noi-dung .tnc-dma__da-goi { margin: 0 0 16px; }
/* v2.6.9: tổng tiền nằm cùng dòng, ngay sát bên trái nút ✕ */
.tnc-dma .tnc-dma__da-goi-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; padding-right: 36px; }
.tnc-dma .tnc-dma__da-goi-dau span { font-size: 17px; font-weight: 800; color: #166534; white-space: nowrap; }

/* ===== v2.6.10: hover ô "Tổng tiền" ở thanh chân trang: nền cam, chữ trắng =====
 * Theme (Flatsome…) tô nền nút khi hover bằng màu chính → chữ cam bị chìm. Đặt rõ màu, độ ưu tiên cao hơn theme. */
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:hover,
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:focus-visible { background: var(--tnc-dma-chinh-dam) !important; }
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:hover strong,
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:hover .tnc-dma__chan-nhan,
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:focus-visible strong,
.tnc-dma .tnc-dma__chan .tnc-dma__chan-tong:focus-visible .tnc-dma__chan-nhan { color: #fff !important; }
/* Các nút khác ở thanh chân trang: giữ nền sáng khi hover (không để theme đổi sang nền màu làm chìm chữ) */
.tnc-dma .tnc-dma__chan button.tnc-dma__chan-muc:not(.tnc-dma__chan-tong):hover,
.tnc-dma .tnc-dma__chan a.tnc-dma__chan-muc:hover { background: #fafafa !important; color: var(--tnc-dma-chinh) !important; }

/* ===== v2.7.0: Hóa đơn đã thanh toán — chọn kỳ: hôm nay / hôm qua / 7 ngày / tháng / năm ===== */
.tnc-dma-tn__ky { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 4px; }
.tnc-dma-tn__ky button {
    margin: 0; min-height: 0; padding: 7px 14px; border: none; border-radius: 6px; background: none; box-shadow: none;
    color: #50575e; font-size: 13px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tnc-dma-tn__ky button:hover { background: #f0f6fc; color: #2271b1; }
.tnc-dma-tn__ky button.is-active { background: #2271b1; color: #fff; }
.tnc-dma-tn__doanh-thu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0 0 14px; }
.tnc-dma-tn__dt-ky { flex: 1 0 100%; font-size: 16px; font-weight: 700; color: #1d2327; }
.tnc-dma-tn__dt-ky small { font-weight: 400; color: #646970; font-size: 13px; }
.tnc-dma-tn__dt-o { display: flex; flex-direction: column; gap: 2px; min-width: 130px; padding: 10px 14px; background: #fff; border: 1px solid #dcdcde; border-radius: 10px; }
.tnc-dma-tn__dt-o small { font-size: 12px; color: #646970; }
.tnc-dma-tn__dt-o strong { font-size: 18px; color: #1d2327; }
.tnc-dma-tn__dt-o--tong { background: #fff7ed; border-color: #fdba74; }
.tnc-dma-tn__dt-o--tong strong { font-size: 22px; color: #c2410c; }
.tnc-dma-tn__theo-ky { margin-bottom: 16px; overflow-x: auto; }
.tnc-dma-tn__bang-ky td, .tnc-dma-tn__bang-ky th { white-space: nowrap; }
.tnc-dma-tn__ds-ls .tnc-dma-tn__ct-tieu, .tnc-dma-tn__theo-ky .tnc-dma-tn__ct-tieu { margin-top: 4px; }
@media (max-width: 600px) {
    .tnc-dma-tn__ky { display: flex; width: 100%; }
    .tnc-dma-tn__ky button { flex: 1 1 auto; padding: 7px 8px; }
    .tnc-dma-tn__dt-o { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .tnc-dma-tn__dt-o--tong { flex-basis: 100%; }
}
@media (max-width: 600px) {
    .tnc-dma-tn__ky { display: grid; grid-template-columns: repeat(3, 1fr); }
    .tnc-dma-tn__ky button { padding: 8px 4px; }
    .tnc-dma-tn__ds-ls { overflow-x: auto; }
    .tnc-dma-tn__ds-ls td, .tnc-dma-tn__ds-ls th { white-space: nowrap; }
}

/* ===== v2.7.1: "Tự in phiếu bếp" + chú thích màu nằm trong tab Sơ đồ bàn ===== */
.tnc-dma-tn__khung > .tnc-dma-tn__tuy-chon { margin: 0 0 6px; }
.tnc-dma-tn__chu-thich { line-height: 2; }
@media (max-width: 600px) {
    .tnc-dma-tn--ngoai .tnc-dma-tn__chu-thich { display: block; font-size: 12px; }
    .tnc-dma-tn__chu-thich i { margin-left: 6px; }
}
.tnc-dma-tn__chu-thich > span { white-space: nowrap; }

/* ===== v2.8.0: Đăng nhập / Đăng ký nhân viên [tnc_dang_nhap] [tnc_dang_ky] ===== */
.tnc-dma-tk { display: flex; justify-content: center; padding: 30px 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.tnc-dma-tk *, .tnc-dma-tk *::before, .tnc-dma-tk *::after { box-sizing: border-box; }
.tnc-dma-tk [hidden] { display: none !important; }
.tnc-dma-tk__the { width: 100%; max-width: 400px; padding: 28px 26px 22px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(0, 0, 0, .07); text-align: center; color: #1f2937; }
.tnc-dma-tk__icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.tnc-dma-tk__the h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; text-transform: none; letter-spacing: 0; color: #111827; }
.tnc-dma-tk__phu { margin: 0 0 16px; font-size: 14px; color: #6b7280; }
.tnc-dma-tk__form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 0; }
.tnc-dma-tk__truong { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; color: #374151; }
.tnc-dma-tk__truong em { color: #dc2626; font-style: normal; }
.tnc-dma-tk__truong small { font-weight: 400; color: #9ca3af; }
.tnc-dma-tk input[type="text"], .tnc-dma-tk input[type="email"], .tnc-dma-tk input[type="tel"], .tnc-dma-tk input[type="password"] {
    width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
    color: #111827; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.tnc-dma-tk input:focus { outline: none; border-color: #e85d04; box-shadow: 0 0 0 3px rgba(232, 93, 4, .15); }
.tnc-dma-tk input.is-loi { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.tnc-dma-tk__mk { position: relative; display: block; }
.tnc-dma-tk__mk input { padding-right: 46px !important; }
.tnc-dma-tk .tnc-dma-tk__hien-mk { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 36px; margin: 0; padding: 0; min-height: 0; border: none; background: none; box-shadow: none; font-size: 17px; cursor: pointer; color: #6b7280; }
.tnc-dma-tk__nho { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #4b5563; font-weight: 400; }
.tnc-dma-tk__nho input { margin: 0; }
.tnc-dma-tk__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tnc-dma-tk__loi { padding: 9px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; line-height: 1.45; }
.tnc-dma-tk__loi.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.tnc-dma-tk .tnc-dma-tk__nut {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin: 4px 0 0; padding: 0 16px; min-height: 0;
    border: none; border-radius: 10px; background: #e85d04; color: #fff !important; box-shadow: none;
    font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; text-decoration: none !important; cursor: pointer;
}
.tnc-dma-tk .tnc-dma-tk__nut:hover { background: #c44d00; }
.tnc-dma-tk .tnc-dma-tk__nut:disabled { opacity: .6; cursor: wait; }
.tnc-dma-tk .tnc-dma-tk__nut--phu { background: #fff; color: #e85d04 !important; border: 2px solid #e85d04; }
.tnc-dma-tk .tnc-dma-tk__nut--phu:hover { background: #fff7ed; }
.tnc-dma-tk__lien-ket { margin: 14px 0 0; font-size: 13px; color: #6b7280; }
.tnc-dma-tk__lien-ket a { color: #e85d04; font-weight: 600; }
.tnc-dma-tk__tb { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px; }
.tnc-dma-tk__quyen { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f3f4f6; color: #374151; }
.tnc-dma-tk__quyen--admin { background: #fef3c7; color: #92400e; }
.tnc-dma-tk__quyen--nhan-vien { background: #dcfce7; color: #166534; }
.tnc-dma-tk__quyen--cho-duyet { background: #fee2e2; color: #991b1b; }

/* Tab Hóa đơn: dòng tóm tắt */
.tnc-dma-tn__ds-tom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 10px; }
.tnc-dma-tn__ds-so { font-size: 14px; color: #50575e; }

/* Admin: trang Nhân viên */
.tnc-dma-nv__quyen { max-width: 640px; margin: 8px 0; }
.tnc-dma-nv__quyen td:not(:first-child), .tnc-dma-nv__quyen th:not(:first-child) { text-align: center; width: 110px; }
.tnc-dma-nv__bang { max-width: 1100px; }
.tnc-dma-nv__bang tr.is-cho td { background: #fffbeb; }
.tnc-dma-nv__nhan { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tnc-dma-nv__nhan--cho { background: #fef3c7; color: #92400e; }
.tnc-dma-nv__nhan--ok { background: #dcfce7; color: #166534; }
.tnc-dma-nv__nut { white-space: nowrap; text-align: right; }
.tnc-dma-nv__nut .button-link-delete { margin-left: 8px; }

/* ===== v2.8.1: [tnc_nut_tai_khoan] — nút Đăng nhập / Đăng ký / Đăng xuất ===== */
.tnc-dma-nut-tk { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: inherit; line-height: 1.3; vertical-align: middle; }
.tnc-dma-nut-tk--trai { display: flex; justify-content: flex-start; }
.tnc-dma-nut-tk--giua { display: flex; justify-content: center; }
.tnc-dma-nut-tk--phai { display: flex; justify-content: flex-end; }
.tnc-dma-nut-tk .tnc-dma-nut-tk__nut {
    display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 7px 14px; min-height: 0;
    border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap;
    text-decoration: none !important; text-transform: none; letter-spacing: 0; box-shadow: none; transition: background .15s, color .15s, border-color .15s;
}
.tnc-dma-nut-tk .tnc-dma-nut-tk__nut--chinh { background: #e85d04; border: 1.5px solid #e85d04; color: #fff !important; }
.tnc-dma-nut-tk .tnc-dma-nut-tk__nut--chinh:hover { background: #c44d00; border-color: #c44d00; color: #fff !important; }
.tnc-dma-nut-tk .tnc-dma-nut-tk__nut--phu { background: #fff; border: 1.5px solid #e85d04; color: #e85d04 !important; }
.tnc-dma-nut-tk .tnc-dma-nut-tk__nut--phu:hover { background: #fff7ed; color: #c44d00 !important; }
.tnc-dma-nut-tk__ten { font-size: 14px; font-weight: 600; color: inherit; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tnc-dma-nut-tk__quyen { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #f3f4f6; color: #4b5563; font-size: 11px; font-weight: 700; }
@media (max-width: 480px) {
    .tnc-dma-nut-tk .tnc-dma-nut-tk__nut { padding: 6px 11px; font-size: 13px; }
    .tnc-dma-nut-tk__ten { max-width: 140px; font-size: 13px; }
}

/* ===== v2.9.0: Thu ngân — tab Mang về / Giao đi ===== */
.tnc-dma-tn__tab-so { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: #e5e7eb; color: #374151; font-size: 12px; line-height: 18px; text-align: center; }
.tnc-dma-tn__tab-so.is-moi { background: #dc2626; color: #fff; animation: tnc-dma-tn-nhay 1.6s infinite; }
.tnc-dma-tn__tab button.is-active .tnc-dma-tn__tab-so:not(.is-moi) { background: rgba(255, 255, 255, .25); color: #fff; }
.tnc-dma-tn__khung[data-tab="mang-ve"] .tnc-dma-tn__loc-ls { align-items: center; }
.tnc-dma-tn__khung[data-tab="mang-ve"] .tnc-dma-tn-tao-don { margin-left: auto; }
.tnc-dma-tn__luoi-don { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.tnc-dma-tn__don { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border: 2px solid #dcdcde; border-left-width: 6px; border-radius: 12px; }
.tnc-dma-tn__don.tt-moi { border-color: #dc2626; background: #fef2f2; animation: tnc-dma-tn-nhay 1.6s infinite; }
.tnc-dma-tn__don.tt-xac_nhan { border-color: #2563eb; }
.tnc-dma-tn__don.tt-dang_lam { border-color: #f97316; }
.tnc-dma-tn__don.tt-dang_giao { border-color: #7c3aed; }
.tnc-dma-tn__don.tt-hoan_thanh { border-color: #16a34a; opacity: .9; }
.tnc-dma-tn__don.tt-huy { border-color: #9ca3af; opacity: .6; }
.tnc-dma-tn__don-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.tnc-dma-tn__don-dau strong { font-size: 15px; }
.tnc-dma-tn__don-loai { padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; background: #e0f2fe; color: #075985; }
.tnc-dma-tn__don.loai-mang_ve .tnc-dma-tn__don-loai { background: #fef3c7; color: #92400e; }
.tnc-dma-tn__don-gio { color: #646970; }
.tnc-dma-tn__don-tt { margin-left: auto; font-weight: 700; }
.tnc-dma-tn__don-khach { font-size: 14px; line-height: 1.5; }
.tnc-dma-tn__don-khach a { color: #2271b1; text-decoration: none; }
.tnc-dma-tn__don-mon { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tnc-dma-tn__don-mon span { padding: 3px 9px; border-radius: 6px; background: #f6f7f7; font-size: 14px; }
.tnc-dma-tn__don-cuoi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 8px; border-top: 1px dashed #dcdcde; }
.tnc-dma-tn__don-tien { font-size: 18px; font-weight: 800; color: #c2410c; }
.tnc-dma-tn__don-tien small { font-size: 12px; font-weight: 400; color: #646970; }
.tnc-dma-tn__don-pt { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef2f2; color: #b91c1c; }
.tnc-dma-tn__don-pt.is-da { background: #dcfce7; color: #166534; }
.tnc-dma-tn__don-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.tnc-dma-tn__don-nut .button-primary { margin-left: auto; }
.tnc-dma-tn__don-nut .button-link-delete { font-size: 12px; }
/* Hộp tạo đơn */
.tnc-dma-tn__tao-don .tnc-dma-tn__loai-don { margin-bottom: 10px; }
.tnc-dma-tn__khach { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tnc-dma-tn__khach textarea { grid-column: 1 / -1; }
.tnc-dma-tn__khach input, .tnc-dma-tn__khach textarea, .tnc-dma-tn__phi input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 6px 10px; }
.tnc-dma-tn__phi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.tnc-dma-tn__phi label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tnc-dma-tn__phi input { width: 140px; }
.tnc-dma-tn__phi small { color: #646970; }
.tnc-dma-tn__tao-don .tnc-dma-tn__pt { margin: 10px 0 6px; }
.tnc-dma-tn__da-thu { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 600px) {
    .tnc-dma-tn__luoi-don { grid-template-columns: 1fr; }
    .tnc-dma-tn__khung[data-tab="mang-ve"] .tnc-dma-tn-tao-don { margin-left: 0; width: 100%; }
    .tnc-dma-tn__khach { grid-template-columns: 1fr; }
    .tnc-dma-tn__don-nut .button-primary { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
    .tnc-dma-tn__ky.tnc-dma-tn__xem-don { grid-template-columns: 1fr 1fr; }
}

/* ===== v2.9.1: trang chi tiết món khi gọi tại bàn — ẩn header / footer theme ===== */
body.tnc-dma-trang-gon { margin: 0; background: #fff; }
.tnc-dma-gon__dau {
    position: sticky; top: 0; z-index: 9990;
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top));
    background: #fff; border-bottom: 1px solid #ececec; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body.admin-bar .tnc-dma-gon__dau { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tnc-dma-gon__dau { top: 46px; } }
.tnc-dma-gon__ve {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
    background: #fff7ed; border: 1.5px solid #e85d04; color: #e85d04 !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
}
.tnc-dma-gon__ve:hover { background: #ffedd5; }
.tnc-dma-gon__quan { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 15px; font-weight: 700; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnc-dma-gon__ban { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #e85d04; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.tnc-dma-gon__than { max-width: 1100px; margin: 0 auto; padding: 14px 16px 0; }
.tnc-dma-trang-gon .tnc-dma--trang-mon { padding-bottom: 96px; }
@media (max-width: 420px) {
    .tnc-dma-gon__quan { font-size: 14px; }
    .tnc-dma-gon__ve, .tnc-dma-gon__ban { padding: 6px 10px; font-size: 13px; }
}
