/* Xem ngày tốt xấu (thiết kế v03, 16/11/2026): trang chính, chi tiết ngày, tải lịch tháng. */
body.nen-xn{background:#F8F4EC;color:#2B2118}
.nen-xn .xn-dau,.nen-xn .xn-phieu,.nen-xn .xn-kq,.nen-xn .xn-ngay,.nen-xn .xl{font-family:"Be Vietnam Pro",system-ui,sans-serif}
.xn-dau h1,.xn-phieu h2,.xn-h2,.xn-bang-dau h2,.xn-buoc-tieu,.xn-luan h2,.xn-them h2,.xn-goi h3,.xn-cot h3,.xn-ngay h1,.xn-o-the h2,.xl h1,.xl-lich h2,.xl-moi h2,.xn-moi h3{font-family:Spectral,Georgia,serif}
.xn-nho{font-size:13px;letter-spacing:.08em;color:#8A6620;font-weight:600;margin:0 0 6px;text-transform:uppercase}
.xn-nhan-sang{font-size:13px;letter-spacing:.08em;color:#E6C883;font-weight:600;margin:0 0 6px}

/* Đầu trang */
.xn-dau{display:flex;gap:22px;align-items:center;margin:8px 0 22px}
.xn-an{flex:none;width:84px;height:84px;border-radius:14px;background:#79200F;color:#F3DFA8;border:2px solid #C89B3C;display:grid;place-items:center;font-size:30px;font-family:serif}
.xn-dau h1{font-size:44px;color:#45140B;margin:0 0 6px;line-height:1.1}
.xn-dau p{font-size:18px;color:#4F4234;margin:0;max-width:720px}

/* Phiếu */
.xn-phieu{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:18px;padding:26px 28px;margin-bottom:26px}
.xn-phieu-dau{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.xn-phieu-dau h2{font-size:26px;color:#45140B;margin:0}
.xn-phieu-dau span{font-size:13px;color:#74665A}
.xn-nhom{border:0;padding:0;margin:0 0 18px}
.xn-nhom legend,.xn-o>span:first-child{font-weight:600;font-size:15px;color:#2B2118;margin-bottom:10px;display:block}
.xn-chip{display:flex;flex-wrap:wrap;gap:10px}
.xn-chip label,.xn-thang label{position:relative;cursor:pointer}
.xn-chip input,.xn-thang input,.xl-kieu input{position:absolute;opacity:0;pointer-events:none}
.xn-chip span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:#fff;border:1px solid #D8BF8A;color:#45140B;font-size:15px}
.xn-chip input:checked+span{background:#79200F;border-color:#79200F;color:#fff}
.xn-chip input:focus-visible+span,.xn-thang input:focus-visible+span{outline:2px solid #C89B3C;outline-offset:2px}
.xn-ba{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.xn-o input{width:100%;min-height:48px;border:1px solid #D8BF8A;border-radius:10px;padding:0 14px;font-size:16px;background:#fff;color:#2B2118;box-sizing:border-box}
.xn-o input:focus{outline:2px solid #C89B3C;border-color:#C89B3C}
.xn-nam{position:relative;display:block}
.xn-nam i{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;color:#8A6620;font-weight:600;font-size:14px;pointer-events:none}
.xn-thang{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px}
.xn-thang span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;border-radius:10px;background:#fff;border:1px solid #D8BF8A;color:#45140B;text-align:center;padding:4px}
.xn-thang b{font-size:15px;font-weight:600}
.xn-thang small{font-size:12px;color:#74665A}
.xn-thang input:checked+span{background:#79200F;border-color:#79200F;color:#fff}
.xn-thang input:checked+span small{color:#F3DFA8}
.xn-loi{color:#9B3D2C;font-weight:600;margin:6px 0 0}
.xn-gui{text-align:center;margin-top:18px}
.xn-nut-gui{background:#5E180B;color:#fff;border:0;border-radius:10px;padding:15px 44px;font-size:16px;font-weight:700;letter-spacing:.04em;cursor:pointer}
.xn-nut-gui:hover{background:#79200F}
.xn-tom{display:none}

/* Nút chung */
.xn-nut-cam,.xn-nut-vien,.xn-nut-sang{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:10px;font-weight:700;text-decoration:none;cursor:pointer;font-size:15px;border:0}
.xn-nut-cam{background:#BB4218;color:#fff}
.xn-nut-cam:hover{background:#A33914;color:#fff}
.xn-nut-cam[disabled]{opacity:.5;cursor:not-allowed}
.xn-nut-vien{background:transparent;color:#F3DFA8;border:1px solid #C89B3C}
.xn-nut-sang{background:#FDFBF6;color:#45140B;border:1px solid #D8BF8A}

/* Kết quả */
.xn-kq{margin:8px 0 26px}
.xn-h2{font-size:30px;color:#45140B;margin:0 0 6px}
.xn-dan{color:#4F4234;margin:0 0 18px;font-size:16px}
.xn-buoc{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}
.xn-buoc-o{background:#FDFBF6;border:1px solid #EAD9BD;border-top:4px solid var(--vien,#C89B3C);border-radius:14px;padding:20px}
.xn-buoc-tieu{font-size:22px;margin:0 0 8px;color:#45140B;line-height:1.25}
.xn-buoc-o p{margin:0 0 10px;color:#4F4234;line-height:1.55}
.xn-buoc-o a{color:#79200F;font-weight:600;text-decoration:none}
.xn-moi{display:flex;gap:24px;justify-content:space-between;align-items:center;background:#45140B;color:#EAD9BD;border:1px solid #C89B3C;border-radius:18px;padding:26px 30px;margin:16px 0 22px}
.xn-moi h3{color:#fff;font-size:26px;margin:0 0 8px}
.xn-moi-chu p{margin:0;line-height:1.55}
.xn-moi-nut{display:flex;flex-direction:column;gap:10px;flex:none;min-width:240px}
.xn-tai{color:#E6C883;text-decoration:none;font-weight:600;text-align:center}
.xn-bang-the{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:16px;padding:20px 22px;margin-bottom:22px}
.xn-bang-dau{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.xn-bang-dau h2{font-size:22px;color:#45140B;margin:0}
.xn-chu-giai{list-style:none;display:flex;flex-wrap:wrap;gap:14px;margin:0;padding:0;font-size:14px;color:#4F4234}
.xn-chu-giai li{display:flex;align-items:center;gap:6px}
.xn-o-mau{display:inline-block;width:14px;height:14px;border-radius:4px}
.xn-o-mau.rt,.xn-cham.rt{background:#3F6B4F}.xn-o-mau.th,.xn-cham.th{background:#8CA695}.xn-o-mau.bi,.xn-cham.bi{background:#C89B3C}.xn-o-mau.cg,.xn-cham.cg{background:#C38B80}.xn-o-mau.lo,.xn-cham.lo{background:#9B3D2C}
.xn-cuon{overflow-x:auto}
.xn-bang{width:100%;border-collapse:collapse;font-size:14.5px}
.xn-bang th{background:#F1EADD;color:#45140B;text-align:left;padding:10px 10px;font-weight:600;white-space:nowrap}
.xn-bang td{padding:9px 10px;border-bottom:1px solid #EAD9BD;vertical-align:top}
.xn-bang tr.rt td:first-child{box-shadow:inset 4px 0 #3F6B4F}.xn-bang tr.th td:first-child{box-shadow:inset 4px 0 #8CA695}.xn-bang tr.bi td:first-child{box-shadow:inset 4px 0 #C89B3C}.xn-bang tr.cg td:first-child{box-shadow:inset 4px 0 #C38B80}.xn-bang tr.lo td:first-child{box-shadow:inset 4px 0 #9B3D2C}
.xn-bang tr.lo td{color:#74665A;background:#F7EFE6}
.xn-bang tr.rt td{background:#EEF3EE}
.xn-duong b{font-family:Spectral,Georgia,serif;font-size:17px;color:#2B2118}
.xn-duong span{color:#74665A;font-size:13px}
.xn-cc{font-weight:600;color:#45140B}
.xn-bang td small{display:block;color:#74665A;font-size:12px}
.xn-muc{white-space:nowrap}
.xn-cham{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:middle}
.xn-ghi{color:#4F4234;min-width:180px}
.xn-kiem{color:#9B3D2C;font-weight:600}
.xn-ct{color:#79200F;font-weight:600;white-space:nowrap;text-decoration:none}
.xn-khoa a{display:inline-flex;align-items:center;gap:6px;color:#8A6620;font-weight:600;text-decoration:none;white-space:nowrap}
.xn-the-ngay{list-style:none;margin:0;padding:0;display:none}
.xn-con{display:none}
.xn-gui-nha{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 6px;color:#4F4234}
.xn-zalo,.xn-anh{min-height:40px;padding:0 16px;border-radius:999px;border:0;font-weight:600;cursor:pointer;color:#fff;font-size:14px}
.xn-zalo{background:#0068FF}.xn-anh{background:#7A2414}
.xn-bao{font-size:14px;color:#3F6B4F}
.xn-mien{font-size:13px;color:#74665A;margin:8px 0 0}

/* File 99 Xu */
.xn-luan{background:#45140B;color:#EAD9BD;border:1px solid #C89B3C;border-radius:18px;padding:30px;margin-bottom:26px}
.xn-luan h2{color:#fff;font-size:30px;margin:0 0 10px}
.xn-luan-hang{display:flex;gap:28px;justify-content:space-between}
.xn-luan-chu p{line-height:1.6;margin:0 0 12px}
.xn-luan-chu ul{margin:0;padding-left:20px;line-height:1.7}
.xn-luan-gia{flex:none;min-width:260px;text-align:center;display:flex;flex-direction:column;gap:8px;justify-content:center}
.xn-gia{font-family:Spectral,Georgia,serif;font-size:40px;color:#fff;margin:0}
.xn-gia s{font-size:22px;color:#C9A98A;margin-right:6px}
.xn-gia-phu{font-size:13px;color:#EAD9BD;margin:0}
.xn-gia-phu a{color:#E6C883}
.xn-luan .xn-loi{color:#FFB4A0}
.xn-luan .xn-loi a{color:#E6C883}
.xn-bai{background:#FDFBF6;color:#2B2118;border-radius:12px;padding:22px;margin-top:14px}
.xn-bai h3{font-family:Spectral,Georgia,serif;color:#45140B;font-size:20px;margin:18px 0 8px}
.xn-bai h3:first-child{margin-top:0}
.xn-bai p{line-height:1.65;margin:0 0 8px}
.xn-bai .xn-bang,.xn-bai .tt-bang{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.xn-bai .tt-bang th{background:#F1EADD;padding:8px;text-align:left}
.xn-bai .tt-bang td{padding:8px;border-bottom:1px solid #EAD9BD;vertical-align:top}
.xn-bai .tt-bang-cuon{overflow-x:auto}
.xn-luan-nut{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0}
.xn-day{display:none}

/* Cuối trang */
.xn-dv{color:#4F4234;font-size:15px;margin:0 0 18px}
.xn-dv a{color:#79200F;font-weight:600}
.xn-them{margin:6px 0 26px}
.xn-them h2{font-size:28px;color:#45140B;margin:0 0 6px}
.xn-them>p{color:#4F4234;margin:0 0 16px}
.xn-them-luoi{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.xn-them-luoi a{display:flex;flex-direction:column;gap:6px;background:#FDFBF6;border:1px solid #EAD9BD;border-radius:14px;padding:20px;text-decoration:none;color:#2B2118}
.xn-them-luoi a:hover{border-color:#C89B3C}
.xn-them-luoi small{font-size:12px;letter-spacing:.08em;color:#8A6620;font-weight:600;text-transform:uppercase}
.xn-them-luoi b{font-family:Spectral,Georgia,serif;font-size:21px;color:#45140B}
.xn-them-luoi span{color:#4F4234;line-height:1.55;flex:1}
.xn-them-luoi em{font-style:normal;color:#79200F;font-weight:600}
.xn-goi{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#FDFBF6;border:1px solid #D8BF8A;border-left:5px solid #79200F;border-radius:14px;padding:24px 28px;margin-bottom:26px}
.xn-goi h3{font-size:26px;color:#45140B;margin:0 0 6px}
.xn-goi p{margin:0;color:#4F4234;line-height:1.55}
.xn-goi .xn-nho{margin-bottom:6px}
.xn-goi-gia{flex:none;text-align:center;display:flex;flex-direction:column;gap:10px}
.xn-goi-gia b{font-family:Spectral,Georgia,serif;font-size:30px;color:#79200F}
.xn-goi-gia a{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:0 22px;border-radius:10px;background:#5E180B;color:#fff;font-weight:700;text-decoration:none}
.xn-hai-cot{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:18px}
.xn-cot{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:14px;padding:22px}
.xn-cot h3{font-size:22px;color:#45140B;margin:0 0 12px}
.xn-cot ol{margin:0;padding-left:20px;line-height:1.65;color:#4F4234}
.xn-cot li{margin-bottom:8px}
.xn-cot details{border-bottom:1px solid #EAD9BD;padding:10px 0}
.xn-cot summary{font-weight:600;cursor:pointer;color:#2B2118}
.xn-cot details p{margin:8px 0 0;color:#4F4234;line-height:1.6}
.xn-chan-trang{font-size:13px;color:#74665A;text-align:center;margin:10px 0 0}

/* Chi tiết ngày */
.xn-ngay{max-width:880px}
.xn-ve a{color:#79200F;font-weight:600;text-decoration:none}
.xn-ngay-dau{display:flex;gap:22px;align-items:center;background:#45140B;color:#EAD9BD;border:1px solid #C89B3C;border-radius:18px;padding:24px 28px;margin:10px 0 20px}
.xn-o-ngay{flex:none;width:110px;border-radius:14px;background:#FDFBF6;color:#45140B;text-align:center;padding:10px 6px;display:flex;flex-direction:column}
.xn-o-ngay b{font-family:Spectral,Georgia,serif;font-size:46px;line-height:1.05;color:#79200F}
.xn-o-ngay small{font-size:13px;color:#74665A}
.xn-ngay h1{font-size:34px;color:#fff;margin:0 0 6px}
.xn-ngay-dau p{margin:0 0 4px}
.xn-ngay-viec{color:#E6C883;font-weight:600}
.xn-ngay-muc{display:inline-flex;align-items:center;background:#FDFBF6;color:#2B2118;border-radius:999px;padding:4px 12px;margin-top:6px!important;font-weight:600;font-size:14px}
.xn-ngay-loai{background:#F7E6E1;border:1px solid #C38B80;border-radius:14px;padding:16px 20px;margin-bottom:18px;color:#5E180B}
.xn-ngay-loai p{margin:6px 0 0}
.xn-o-the{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:16px;padding:22px;margin-bottom:18px}
.xn-o-the h2{font-size:22px;color:#45140B;margin:0 0 12px}
.xn-mat{list-style:none;margin:0;padding:0}
.xn-mat li{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #EAD9BD}
.xn-mat li:last-child{border-bottom:0}
.xn-mat-ten{font-weight:600;color:#8A6620;font-size:14px}
.xn-mat p{margin:0;color:#2B2118;line-height:1.5}
.xn-mat em{font-style:normal;font-weight:600;font-size:13px;padding:4px 10px;border-radius:999px;background:#F1EADD;color:#74665A;white-space:nowrap}
.xn-mat em.tot{background:#E3ECE5;color:#3F6B4F}
.xn-mat em.xau{background:#F5E1DC;color:#9B3D2C}
.xn-ghi-nho{font-size:13.5px;color:#74665A;margin:12px 0 0}
.xn-gio{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.xn-gio div{border:1px solid #EAD9BD;border-radius:10px;padding:10px 12px;background:#fff}
.xn-gio b{display:block;color:#45140B}
.xn-gio small{color:#8A6620}
.xn-file99{border:2px dashed #C89B3C;border-radius:16px;padding:22px;margin-bottom:18px;background:#FDFBF6}
.xn-file99 ul{margin:0 0 14px;padding-left:20px;line-height:1.7;color:#4F4234}

/* Tải lịch */
.xl-dau h1{font-size:40px;color:#45140B;margin:6px 0 6px}
.xl-dau p{color:#4F4234;margin:0 0 20px;font-size:17px}
.xl-hai{display:grid;grid-template-columns:340px 1fr;gap:26px;align-items:start}
.xl-bang{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:16px;padding:20px;position:sticky;top:16px}
.xl-nhan{font-size:13px;letter-spacing:.08em;color:#8A6620;font-weight:600;margin:0 0 8px;text-transform:uppercase}
.xl-thang{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #D8BF8A;border-radius:10px;padding:6px;margin-bottom:18px;background:#fff}
.xl-thang a{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;color:#79200F;font-size:22px;text-decoration:none}
.xl-thang a:hover{background:#F1EADD}
.xl-thang b{color:#45140B}
.xl-kieu{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.xl-kieu label{position:relative;cursor:pointer}
.xl-kieu span{display:block;border:1px solid #D8BF8A;border-radius:10px;padding:10px 14px;background:#fff}
.xl-kieu b{display:block;color:#45140B}
.xl-kieu small{color:#74665A}
.xl-kieu input:checked+span{border:2px solid #79200F;background:#FBF3EC}
.xl-them{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.xl-them label{display:flex;align-items:center;gap:8px;cursor:pointer}
.xl-them input{width:18px;height:18px;accent-color:#79200F}
.xl-khoa{color:#74665A;cursor:not-allowed!important}
.xl-hv{font-size:11px;background:#C89B3C;color:#fff;border-radius:999px;padding:2px 8px;font-weight:600}
.xl-nut{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xl-nut>*{min-height:44px;border-radius:10px;font-size:14px}
.xl-nut .xn-nut-cam{grid-column:1 / -1}
.xl-in{background:#8A5A00;color:#fff;border:0;font-weight:700;cursor:pointer;grid-column:1 / -1}
.xl-nut .xn-zalo{border-radius:10px}
.xl-fb{display:grid;place-items:center;background:#1877F2;color:#fff;font-weight:600;text-decoration:none}
.xl-ghi{font-size:13px;color:#74665A;margin:10px 0 0}

/* Thẻ lịch */
.xl-lich{background:#FDFBF6;border:1px solid #D8BF8A;border-radius:14px;overflow:hidden;color:#2B2118;font-family:"Be Vietnam Pro",system-ui,sans-serif}
.xl-l-dau{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:20px 22px 14px;border-bottom:3px solid #C89B3C}
.xl-l-nho{font-size:12px;letter-spacing:.12em;color:#8A6620;font-weight:700;margin:0 0 4px}
.xl-lich h2{font-size:28px;margin:0;color:#45140B}
.xl-l-dau p{margin:2px 0 0}
.xl-l-phai{text-align:right;font-size:14px;color:#4F4234}
.xl-luoi{display:grid;grid-template-columns:repeat(7,1fr);gap:0;padding:8px 10px}
.xl-thu{text-align:center;font-size:12px;font-weight:700;color:#8A6620;padding:6px 0;text-transform:uppercase;letter-spacing:.04em}
.xl-o{position:relative;min-height:96px;border:1px solid #EAD9BD;margin:-1px 0 0 -1px;padding:6px 7px;display:flex;flex-direction:column;gap:1px;font-size:11.5px;background:#fff}
.xl-o.trong{background:transparent;border-color:transparent}
.xl-d{font-family:Spectral,Georgia,serif;font-size:24px;line-height:1;color:#2B2118}
.xl-d small{font-size:12px;color:#74665A;font-family:"Be Vietnam Pro",sans-serif}
.xl-am{position:absolute;top:6px;right:22px;color:#9B3D2C;font-weight:600;font-size:12px}
.xl-hd{position:absolute;top:8px;right:7px;width:9px;height:9px;border-radius:50%;background:#C89B3C}
.xl-cc{color:#45140B;font-weight:600;margin-top:4px}
.xl-xung{color:#74665A}
.xl-kiem{color:#9B3D2C;font-weight:700;margin-top:auto}
.xl-o.kiem{background:#F1E6D6}
.xl-o.hop{box-shadow:inset 0 0 0 3px #3F6B4F;z-index:1}
.xl-chu-giai{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:#4F4234;padding:6px 22px 12px;margin:0}
.xl-chu-giai span{display:flex;align-items:center;gap:6px}
.xl-chu-giai .xl-hd{position:static}
.xl-o-kiem{display:inline-block;width:14px;height:14px;background:#F1E6D6;border:1px solid #EAD9BD}
.xl-o-hop{display:inline-block;width:14px;height:14px;border:3px solid #3F6B4F;box-sizing:border-box}
.xl-do{color:#9B3D2C}
.xl-chan{display:flex;align-items:center;gap:16px;padding:14px 22px;border-top:1px solid #EAD9BD}
.xl-qr svg{width:76px;height:76px;display:block}
.xl-chan-a4{font-size:13px;color:#4F4234}
.xl-chan-dt{display:none}
.xl-a4-chi{}
.xl-dt-chi{display:none}
.xl-lich.an-hd .xl-hd,.xl-lich.an-kiem .xl-kiem,.xl-lich.an-xung .xl-xung{display:none}
.xl-lich.an-kiem .xl-o.kiem{background:#fff}
.xl-lich.an-hop .xl-o.hop{box-shadow:none}
.xl-lich.an-hop .xl-cg-hop{display:none}

/* Kiểu ảnh điện thoại: khổ dọc 9:16 */
.xl-lich.kieu-anh{max-width:540px;margin:0 auto}
.kieu-anh .xl-l-dau{background:#45140B;color:#EAD9BD;flex-direction:column;align-items:flex-start;padding:22px 20px 16px}
.kieu-anh .xl-l-nho{color:#E6C883}
.kieu-anh h2{color:#fff;font-size:30px}
.kieu-anh .xl-l-phai{text-align:left;color:#EAD9BD;display:flex;gap:10px}
.kieu-anh .xl-a4-chi{display:none}
.kieu-anh .xl-dt-chi{display:block}
.kieu-anh .xl-luoi{padding:6px}
.kieu-anh .xl-thu{font-size:10px;letter-spacing:0}
.kieu-anh .xl-o{min-height:84px;padding:4px;font-size:9.5px}
.kieu-anh .xl-d{font-size:19px}
.kieu-anh .xl-am{right:16px;top:4px;font-size:10px}
.kieu-anh .xl-hd{width:7px;height:7px;top:6px;right:5px}
.kieu-anh .xl-chu-giai{font-size:11px;padding:6px 14px 10px;gap:10px}
.kieu-anh .xl-chan{background:#45140B;color:#EAD9BD;border-top:3px solid #C89B3C}
.kieu-anh .xl-qr{background:#FDFBF6;border-radius:8px;padding:4px}
.kieu-anh .xl-chan-a4{display:none}
.kieu-anh .xl-chan-dt{display:flex;flex-direction:column;gap:3px;font-size:13px}
.kieu-anh .xl-chan-dt b{color:#fff;font-family:Spectral,Georgia,serif;font-size:17px}
.xl-moi{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#45140B;color:#EAD9BD;border:1px solid #C89B3C;border-radius:18px;padding:26px 30px;margin-top:26px}
.xl-moi h2{color:#fff;font-size:26px;margin:0 0 6px}
.xl-moi p{margin:0;line-height:1.55}
.xl-moi .xn-nut-cam{flex:none}

@media (max-width:900px){
  .xn-buoc,.xn-them-luoi{grid-template-columns:1fr}
  .xn-hai-cot{grid-template-columns:1fr}
  .xl-hai{grid-template-columns:1fr}
  .xl-bang{position:static}
}
@media (max-width:720px){
  .xn-dau{gap:14px}
  .xn-an{width:60px;height:60px;font-size:22px}
  .xn-dau h1{font-size:30px}
  .xn-dau p{font-size:16px}
  .xn-phieu{padding:18px 16px}
  .xn-ba{grid-template-columns:1fr}
  .xn-thang{grid-template-columns:repeat(4,1fr);gap:8px}
  .xn-chip{gap:8px}
  .xn-chip span{padding:0 14px;font-size:14px}
  .xn-nut-gui{width:100%;padding:15px 10px}
  .xn-tom{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#FDFBF6;border:1px solid #EAD9BD;border-radius:12px;padding:12px 14px;margin-bottom:16px}
  .xn-tom p{margin:0;font-size:14px;line-height:1.45}
  .xn-sua{flex:none;background:transparent;border:1px solid #79200F;color:#79200F;border-radius:999px;min-height:38px;padding:0 14px;font-weight:600;cursor:pointer}
  .xn-phieu-kq:not(.mo){display:none}
  .xn-h2{font-size:24px}
  .xn-moi,.xn-luan-hang,.xn-goi,.xl-moi{flex-direction:column;align-items:stretch}
  .xn-moi-nut,.xn-luan-gia{min-width:0}
  .xn-luan{padding:22px 18px}
  .xn-bang-the{padding:16px 12px}
  .xn-cuon:has(.xn-bang:not(.xn-bang-file)){display:none}
  .xn-bai .xn-cuon{display:block}
  .xn-the-ngay{display:flex;flex-direction:column;gap:8px}
  .xn-the-ngay li{border:1px solid #EAD9BD;border-left:5px solid #C89B3C;border-radius:10px;background:#fff}
  .xn-the-ngay li.rt{border-left-color:#3F6B4F;background:#F2F7F3}.xn-the-ngay li.th{border-left-color:#8CA695}.xn-the-ngay li.bi{border-left-color:#C89B3C}.xn-the-ngay li.cg{border-left-color:#C38B80}.xn-the-ngay li.lo{border-left-color:#9B3D2C;background:#F7EFE6}
  .xn-the-ngay li[hidden]{display:none}
  .xn-the-ngay a,.xn-the-khach li{display:flex;gap:12px;padding:10px 12px;color:#2B2118;text-decoration:none}
  .xn-tn-ngay{flex:none;width:62px;display:flex;flex-direction:column}
  .xn-tn-ngay b{font-family:Spectral,Georgia,serif;font-size:19px;color:#45140B}
  .xn-tn-ngay small{font-size:12px;color:#74665A}
  .xn-tn-chu{display:flex;flex-direction:column;gap:2px;font-size:14px}
  .xn-tn-chu span{color:#4F4234}
  .xn-mau-chu{font-style:normal;font-weight:700}
  .xn-mau-chu.rt{color:#3F6B4F}.xn-mau-chu.th{color:#5E7D68}.xn-mau-chu.bi{color:#8A6620}.xn-mau-chu.cg{color:#9B3D2C}.xn-mau-chu.lo{color:#9B3D2C}
  .xn-con{display:block;width:100%;margin-top:8px;min-height:44px;border:1px dashed #C89B3C;background:transparent;border-radius:10px;color:#79200F;font-weight:600;cursor:pointer}
  .xn-day{display:flex;justify-content:space-between;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:40;background:#45140B;color:#EAD9BD;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:2px solid #C89B3C}
  .xn-day b{display:block;color:#fff;font-size:15px}
  .xn-day small{font-size:12px}
  .xn-day .xn-nut-cam{min-height:42px;padding:0 16px}
  body.nen-xn:has(.xn-day){padding-bottom:70px}
  .xn-mat li{grid-template-columns:1fr auto}
  .xn-mat-ten{grid-column:1 / -1}
  .xn-gio{grid-template-columns:repeat(2,1fr)}
  .xn-ngay-dau{flex-direction:column;align-items:flex-start;padding:20px}
  .xn-ngay h1{font-size:28px}
  .xl-dau h1{font-size:30px}
  .xl-o{min-height:74px;padding:3px;font-size:9px}
  .xl-d{font-size:17px}
  .xl-am{right:12px;font-size:9.5px;top:3px}
  .xl-hd{width:6px;height:6px;top:5px;right:4px}
  .xl-thu{font-size:9px;letter-spacing:0}
  .xl-xung{display:none}
}

@media print{
  @page{size:A4 portrait;margin:10mm}
  body.nen-xn{background:#fff}
  .no-print,header.top,.foot,.top-phu,nav,.crumbs,.crumb,.chat-noi,.xl-dau,.xl-moi,.xl-bang,.xl-nhan{display:none!important}
  .xl-hai{display:block}
  .xl-lich,.xl-lich.kieu-anh{max-width:none;border:1px solid #999;border-radius:0}
  .xl-lich .xl-l-dau{background:#fff!important;color:#000!important;flex-direction:row!important}
  .xl-lich h2{color:#000!important}
  .xl-lich .xl-a4-chi{display:inline!important}
  .xl-lich .xl-dt-chi,.xl-lich .xl-chan-dt{display:none!important}
  .xl-lich .xl-chan-a4{display:block!important}
  .xl-lich .xl-chan{background:#fff!important;color:#000!important}
  .xl-o{min-height:30mm;font-size:10pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .xl-d{font-size:20pt}
}
.xn-kq [hidden],.xn-luan [hidden],.xl [hidden]{display:none!important}
