/* Đặt lịch Marketing (tiền tố mkt-). Màu, cỡ theo design/DatLichMKT*.dc.html. iPad < 1300px, máy tính ≥ 1300px, điện thoại < 768px. */

/* ===== Nhãn màu: phân loại khách và trạng thái lịch (dùng biến --nen, --mau) ===== */
.mkt-pl-moi, .mkt-tt-dang-su-dung { --nen: #E2EBF5; --mau: #2B4C70; }
.mkt-pl-cu, .mkt-tt-hen-lai { --nen: #EEEAF6; --mau: #5B4A86; }
.mkt-pl-than-thiet, .mkt-tt-sap-toi { --nen: #FBEBC8; --mau: #7A4E05; }
.mkt-pl-doan, .mkt-tt-da-hoan-thanh { --nen: #DDEFDF; --mau: #1D4A27; }
.mkt-tt-chua-toi { --nen: #FBE4E1; --mau: #B23A2E; }
.mkt-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; flex: none; background: var(--nen); color: var(--mau); }


/* ===== Trang danh sách ===== */
.mkt-trang { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.mkt-hang-ngay { display: flex; align-items: center; gap: 8px; flex: none; }
.mkt-dt-dau { display: none; }
.mkt-hang-ngay .luot-ngang { padding: 2px; flex: 1; min-width: 0; }
.mkt-ngay .chip { height: 36px; padding: 0 14px; font-size: calc(14px * var(--co-chu)); border-width: 1.5px; border-color: var(--vien-dam); color: var(--nau); gap: 6px; }
.mkt-ngay .chip.on { color: #fff; border-color: var(--xanh-rung); }
.mkt-ngay-ngan { margin-left: 2px; }
.mkt-chon-ngay { position: relative; cursor: pointer; }
.mkt-chon-ngay:focus-within { outline: 3px solid var(--xanh-rung); outline-offset: 2px; }
.mkt-chon-ngay input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: 16px; }
.mkt-mui-ngay { flex: none; }
.mkt-nut-tao { flex: none; margin-left: auto; }

.mkt-hang-so { display: flex; gap: 12px; flex: none; }
.mkt-ky { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--vien); border-radius: 16px; padding: 12px 16px; display: flex; align-items: baseline; gap: 8px; }
.mkt-ky b { font-size: calc(26px * var(--co-chu)); font-weight: 700; color: var(--xanh-dam); }
.mkt-ky span { font-size: calc(13px * var(--co-chu)); color: var(--chu-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-ky.xanh-duong b { color: #2B4C70; }
.mkt-ky.xanh b { color: #1D4A27; }
.mkt-ky.do b { color: var(--canh-bao); }

.mkt-hang-loc { display: flex; align-items: center; gap: 8px; flex: none; }
.mkt-loc { flex: 1; min-width: 0; padding: 2px; }
.mkt-loc .chip { height: 32px; padding: 0 12px; font-size: calc(13px * var(--co-chu)); border-width: 1.5px; border-color: var(--vien-dam); }
.mkt-loc .chip.on { border-color: var(--xanh-rung); }
.mkt-tim { width: 220px; flex: none; }
.mkt-tim .o-tim { height: 40px; }

/* ===== Bảng (iPad, máy tính) ===== */
.mkt-bang { --mkt-cot: 58px 160px 100px 40px minmax(0, 1fr) 52px 256px; flex: 1; min-height: 200px; overflow: auto; position: relative; }
.mkt-bang-dau, .mkt-hang { display: grid; grid-template-columns: var(--mkt-cot); column-gap: 12px; align-items: center; padding: 0 16px; }
.mkt-bang-dau { position: sticky; top: 0; z-index: 3; height: 40px; background: #fff; border-bottom: 1px solid #EEEAE0; font-size: 11.5px; font-weight: 700; color: #8A8372; }
.mkt-bang-than { min-width: 0; }
.mkt-hang { min-height: 56px; border-bottom: 1px solid #F0ECE2; cursor: pointer; }
.mkt-hang:hover { background: var(--ban-ghi); }
.mkt-hang:focus-visible { outline-offset: -3px; }
.mkt-hang.noi-bat { background: var(--bac-ha); box-shadow: inset 3px 0 0 var(--xanh-rung); }
.mkt-gio { font-size: calc(15px * var(--co-chu)); font-weight: 700; }
.mkt-khach { min-width: 0; }
.mkt-khach b { display: block; font-size: calc(14px * var(--co-chu)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-khach span { display: block; font-size: calc(12px * var(--co-chu)); color: var(--chu-phu); }
.mkt-sl { font-weight: 700; }
.mkt-dv { font-size: calc(13.5px * var(--co-chu)); line-height: 1.3; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mkt-dv.chua { font-size: calc(13px * var(--co-chu)); color: var(--chu-phu); }
.mkt-sale { font-size: calc(13px * var(--co-chu)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-o-tt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mkt-o-tt .mkt-tag, .mkt-the-1 .mkt-tag { height: 28px; padding: 0 10px; font-size: calc(12.5px * var(--co-chu)); }
.mkt-hen-moi { font-size: 11.5px; color: var(--chu-phu); white-space: nowrap; }
.mkt-xem-hd.nut-chung { height: 30px; padding: 0 12px; font-size: calc(12.5px * var(--co-chu)); border-radius: 10px; background: #EFEDE5; border-color: transparent; color: var(--nau); gap: 6px; }

.mkt-bay-gio { position: relative; z-index: 1; height: 0; border-top: 2px solid var(--cam); margin: 0 16px; }
.mkt-bay-gio span { position: absolute; left: 0; top: -11px; background: var(--cam); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.mkt-nhom-ngay { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; background: #F6F5EF; border-bottom: 1px solid #F0ECE2; font-size: calc(13.5px * var(--co-chu)); }
.mkt-nhom-ngay b { color: var(--xanh-dam); }
.mkt-nhom-ngay span { color: var(--chu-phu); }
.mkt-nhom-so { margin-left: auto; }

@media (min-width: 1300px) {
  .mkt-bang { --mkt-cot: 64px 210px 116px 44px minmax(0, 1fr) 70px 270px; }
}

/* ===== Thẻ dọc (điện thoại) ===== */
.mkt-ds-the { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; }
.mkt-the { flex: none; background: #fff; border: 1px solid var(--vien); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; cursor: pointer; }
.mkt-the.noi-bat { border-color: var(--xanh-rung); box-shadow: inset 3px 0 0 var(--xanh-rung); }
.mkt-the-1 { display: flex; align-items: center; gap: 8px; }
.mkt-the-gio { font-size: calc(17px * var(--co-chu)); font-weight: 700; color: var(--xanh-dam); }
.mkt-the-ten { flex: 1; min-width: 0; font-size: calc(15px * var(--co-chu)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-the-2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: calc(14px * var(--co-chu)); color: var(--chu-phu); }
.mkt-the-3 { display: flex; align-items: center; gap: 8px; font-size: calc(14px * var(--co-chu)); }
.mkt-the-3 .mkt-dv { flex: 1; font-size: calc(14px * var(--co-chu)); }
.mkt-the-3 .mkt-dv.chua { font-size: calc(14px * var(--co-chu)); }
.mkt-the-4 { font-size: calc(13px * var(--co-chu)); }

/* ===== Ngăn chi tiết và form: ô nhập, nhãn, hàng chọn ===== */
.mkt-dang-tai { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.mkt-chi-tiet, .mkt-form { display: flex; flex-direction: column; gap: 13px; }
.mkt-khoi { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mkt-nhan-o { font-size: calc(13px * var(--co-chu)); font-weight: 700; color: var(--nau); }
.mkt-nhan-o i, .mkt-hen-lai i { color: var(--canh-bao); font-style: normal; }
.mkt-nhan-nho { font-size: calc(13px * var(--co-chu)); font-weight: 700; color: #8A8372; }
.mkt-ghi-chu-nho { margin: 0; font-size: calc(12px * var(--co-chu)); color: var(--chu-phu); line-height: 1.45; }
.mkt-ghi-chu-nho.giua { text-align: center; }
.mkt-chua { color: var(--chu-phu); }
.mkt-goi-y { font-size: calc(12.5px * var(--co-chu)); color: var(--chu-phu); min-height: 16px; }
.mkt-goi-y svg { color: var(--xanh-rung); vertical-align: -3px; }

.mkt-tom-tat { padding: 12px 14px; border-radius: 12px; background: #F6F5EF; font-size: calc(13.5px * var(--co-chu)); line-height: 1.55; }
.mkt-tom-tat-1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mkt-tom-tat-1 b { font-size: calc(16px * var(--co-chu)); }
.mkt-tom-tat-hen { color: #5B4A86; }
.mkt-gioi-thieu { width: 100%; height: 44px; }

.mkt-tt-chon { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-tt-nut { height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--vien-dam); background: #fff; font-size: calc(13px * var(--co-chu)); font-weight: 500; color: var(--nau); }
.mkt-tt-nut.khoa { opacity: .45; cursor: default; }
.mkt-tt-nut.hien { opacity: 1; background: var(--nen); border-color: var(--mau); color: var(--mau); }
.mkt-tt-nut[aria-pressed='true'].bam-duoc { background: #EEEAF6; border-color: #5B4A86; color: #5B4A86; }
.mkt-hen-lai { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F8F6FC; border: 1px solid #DDD3EE; font-size: calc(13.5px * var(--co-chu)); }
.mkt-hai-nut { display: flex; gap: 10px; }
.mkt-hai-nut > * { flex: 1; }

.mkt-hai-o { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkt-ten-so { grid-template-columns: 1.4fr 1fr; }
.mkt-o { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--vien-dam); background: #fff; font-size: calc(14.5px * var(--co-chu)); color: var(--chu); min-width: 0; width: 100%; }
.mkt-o:focus-within { border-color: var(--xanh-rung); box-shadow: 0 0 0 3px rgba(45, 102, 53, .15); }
.mkt-o > svg { color: var(--chu-phu); }
.mkt-o input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: inherit; color: inherit; padding: 0; height: 100%; }
.mkt-o-chu { outline: 0; }
.mkt-o-chu:focus { border-color: var(--xanh-rung); box-shadow: 0 0 0 3px rgba(45, 102, 53, .15); }
.mkt-o-so { justify-content: space-between; padding: 0 6px; }
.mkt-o-so button { width: 32px; height: 32px; flex: none; border-radius: 10px; border: 0; background: var(--bac-ha); color: var(--xanh-rung); display: flex; align-items: center; justify-content: center; }
.mkt-o-so input { flex: 1; text-align: center; font-weight: 700; font-size: 16px; }
.mkt-gio-nhanh { padding: 2px 2px 6px; }
.mkt-nut-net { height: 48px; width: 100%; border-radius: 10px; border: 1.5px dashed var(--vien-dam); background: #fff; color: var(--xanh-rung); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }

.mkt-chi-tiet .chip, .mkt-form .chip { height: 32px; padding: 0 12px; font-size: calc(13px * var(--co-chu)); border-width: 1.5px; border-color: var(--vien-dam); }
.mkt-chi-tiet .chip.on, .mkt-form .chip.on { border-color: var(--xanh-rung); }
.mkt-chi-tiet .hang-chon, .mkt-form .hang-chon { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 7px; align-items: baseline; }
.mkt-chi-tiet .hang-chon .nhan-o, .mkt-form .hang-chon .nhan-o { grid-row: 1; grid-column: 1; }
.mkt-chi-tiet .hang-chon .loi-o { grid-row: 1; grid-column: 2; font-size: calc(12px * var(--co-chu)); font-weight: 700; }
.mkt-chi-tiet .hang-chon .loi-o::before { content: '· '; }
.mkt-chi-tiet .hang-chon .luot-ngang, .mkt-form .hang-chon .luot-ngang { grid-row: 2; grid-column: 1 / -1; }
.mkt-chi-tiet .hang-chon .o-nhap-nho, .mkt-form .hang-chon .o-nhap-nho { grid-row: 3; grid-column: 1 / -1; }
.mkt-form .hang-chon .mkt-goi-y { grid-row: 3; grid-column: 1 / -1; }
.mkt-chi-tiet .hang-chon.co-loi .luot-ngang { outline: none; }
.mkt-chi-tiet .hang-chon.co-loi .chip:not(.on) { border-color: #D9534F; background: #FFF5F4; }
.mkt-bo-sung { display: flex; flex-direction: column; gap: 13px; }
.mkt-chi-xem { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mkt-chi-xem dt { font-size: calc(13px * var(--co-chu)); font-weight: 700; color: var(--nau); }
.mkt-chi-xem dd { margin: 2px 0 0; font-size: calc(14.5px * var(--co-chu)); }
.mkt-chi-xem dd.chua { color: var(--chu-phu); }

/* Chân ngăn */
.mkt-chan { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mkt-thieu { display: flex; align-items: flex-start; gap: 6px; color: var(--canh-bao); font-size: calc(12.5px * var(--co-chu)); font-weight: 700; line-height: 1.4; }
.mkt-thieu svg { margin-top: 1px; }
.mkt-nguoi-tao { font-size: calc(12.5px * var(--co-chu)); color: var(--chu-phu); }
.mkt-nguoi-tao b { color: var(--chu); }

/* ===== Chọn dịch vụ chọn trước ===== */
.mkt-chon-dv { display: flex; flex-direction: column; gap: 12px; }
.mkt-chon-dv .chip { height: 34px; font-size: calc(13.5px * var(--co-chu)); }
.mkt-chon-dv-trong { padding: 24px 0; text-align: center; color: var(--chu-phu); font-size: calc(14px * var(--co-chu)); }
.mkt-dv-ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mkt-dv-hang { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid #F0ECE2; }
.mkt-dv-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mkt-dv-ten b { font-size: calc(14.5px * var(--co-chu)); }
.mkt-dv-ten small { font-size: calc(12.5px * var(--co-chu)); color: var(--chu-phu); }
.mkt-them { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: var(--bac-ha); color: var(--xanh-rung); display: flex; align-items: center; justify-content: center; }
.mkt-buoc { display: inline-flex; align-items: center; flex: none; height: 40px; border: 1.5px solid var(--vien-dam); border-radius: 12px; background: #fff; }
.mkt-buoc button { width: 38px; height: 37px; border: 0; background: none; color: var(--xanh-rung); display: flex; align-items: center; justify-content: center; }
.mkt-buoc b { min-width: 28px; text-align: center; font-size: calc(14.5px * var(--co-chu)); }
.mkt-dv-da-chon { display: flex; flex-direction: column; gap: 8px; }
.mkt-dv-dong { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--vien); border-radius: 12px; background: #fff; font-size: calc(14px * var(--co-chu)); font-weight: 500; }
.mkt-dv-dong > span { min-width: 0; }

/* ===== Điện thoại ===== */
.mkt-form-trang { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mkt-form-than { flex: 1; min-height: 0; overflow: auto; padding: 4px 0 14px; }
.mkt-form-chan { flex: none; margin: 0 -16px -16px; padding: 12px 16px 14px; background: #fff; border-top: 1px solid var(--vien); display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 767px) {
  .mkt-trang { gap: 10px; }
  .mkt-ngay-ngan { display: none; }
  .mkt-dt-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; min-height: 44px; }
  .mkt-dt-ngay { font-size: calc(15px * var(--co-chu)); color: var(--chu-phu); }
  .mkt-dt-ngay b { color: var(--xanh-dam); font-size: calc(16px * var(--co-chu)); }
  .mkt-nut-tao.nut-chung { height: 44px; padding: 0 18px; }
  .mkt-ngay .chip, .mkt-loc .chip { height: 38px; padding: 0 14px; font-size: calc(14px * var(--co-chu)); }
  .mkt-hang-ngay .luot-ngang, .mkt-loc { margin: 0 -16px; padding: 2px 16px 4px; }
  .mkt-tim { display: none; }
  .mkt-tag { font-size: calc(13px * var(--co-chu)); height: 24px; }
  .mkt-the-1 .mkt-tag { height: 28px; font-size: calc(13px * var(--co-chu)); }
  .mkt-ghi-chu-nho, .mkt-goi-y, .mkt-thieu, .mkt-nguoi-tao { font-size: calc(14px * var(--co-chu)); }
  .mkt-nhan-o { font-size: calc(14px * var(--co-chu)); }
  .mkt-tom-tat { font-size: calc(14.5px * var(--co-chu)); }
  .mkt-tt-nut { height: 38px; font-size: calc(14px * var(--co-chu)); padding: 0 14px; }
  .mkt-chi-tiet .chip, .mkt-form .chip { height: 38px; font-size: calc(14px * var(--co-chu)); padding: 0 14px; }
  .mkt-o, .mkt-o input, .mkt-o-chu { font-size: 16px; }
  .mkt-o { height: 48px; }
  .mkt-form-than { padding-top: 2px; }
  .mkt-dv-ten small { font-size: calc(13.5px * var(--co-chu)); }
  .mkt-chi-xem dd { font-size: calc(15px * var(--co-chu)); }
}

/* ===== Tab Danh sách của Đặt lịch Spa, Nhà hàng ===== */
.ms-xem { display: flex; gap: 8px; flex: none; align-self: flex-start; }   /* 2 ô dùng kiểu .chip chung: nền trắng, viền mảnh, ô đang chọn nền xanh */
.ds-bang { width: calc(100% + 20px); margin: 0 -10px; min-width: 780px; border-collapse: separate; border-spacing: 0; font-size: calc(14px * var(--co-chu)); }
.ds-bang th { position: sticky; top: 0; z-index: 2; background: #F7F6F0; text-align: left; font-size: calc(12.5px * var(--co-chu)); font-weight: 700; color: var(--chu-phu); padding: 11px 10px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
.ds-bang td { padding: 12px 10px; border-bottom: 1px solid #EEEAE0; white-space: nowrap; background: #fff; vertical-align: middle; }
.ds-bang th:first-child, .ds-bang td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 #EEEAE0; }
.ds-bang th:first-child { z-index: 3; }
.ds-bang tbody tr:not(.ds-nhom-hang) { cursor: pointer; }
.ds-bang tbody tr:not(.ds-nhom-hang):hover td { background: #F7FBF7; }
.ds-bang tr.chon td { background: #F0FBF2; }
.ds-bang tr.cho td { background: #FFF8E6; }
.ds-bang tr.tat { cursor: default; }
.ds-bang tr.tat td { opacity: .7; }
.ds-bang tr:focus-visible td { outline: 0; background: #E3F1E5; }
.ds-o-gio { font-weight: 700; color: var(--xanh-dam); }
.ds-nhom-hang td { padding: 0; background: #F4F3EC; border-bottom: 1px solid var(--vien); box-shadow: none; }
.ds-nhom-chu { position: sticky; left: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; font-size: calc(12.5px * var(--co-chu)); font-weight: 700; color: var(--chu-phu); }
.ds-nhom-chu b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F8E3B0; color: #7A4E05; font-size: calc(12px * var(--co-chu)); letter-spacing: 0; }
.ds-sao { font-style: normal; color: #C77A1B; margin-right: 4px; }
.ds-o-rong { min-width: 180px; white-space: normal; }
.ds-nhan { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: calc(12.5px * var(--co-chu)); font-weight: 700; white-space: nowrap; background: #ECEAE3; color: #6B6557; }
.ds-nhan.cho_lam { background: #E2EBF5; color: #2B4C70; }
.ds-nhan.dang_lam { background: #FBEBC8; color: #7A4E05; }
.ds-nhan.da_xong { background: #ECEAE3; color: #6B6557; }
.ds-nhan.cho_xep { background: var(--xanh-rung); color: #fff; }
.ds-bang tr.tat .ds-nhan.cho_xep { background: #FBEBC8; color: #7A4E05; }
@media (max-width: 767px) { .ds-bang { width: calc(100% + 8px); margin: 0 -4px; } }
