/* Giờ hoàng đạo, thiết kế v05 (16/11/2026). Màu, cỡ chữ, khoảng cách lấy đúng từ bản vẽ trang-may-tinh.html. */
body.gh-trang{background:#F8F4EC}
.gh{max-width:1120px;margin:0 auto;padding:20px 24px 64px;display:flex;flex-direction:column;gap:28px;font-family:'Be Vietnam Pro',sans-serif;color:#2B2118;box-sizing:border-box}
.gh a{color:#79200F}
.gh h1,.gh h2,.gh h3{letter-spacing:normal}
.gh .crumb{padding:0;font-size:13px;color:#74665A}
.gh-dt{display:none}
.gh-dau{display:flex;flex-direction:column;gap:12px}
.gh-dau-hang{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.gh-an{width:64px;height:64px;border-radius:14px;background:#79200F;color:#F8F4EC;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0}
.gh-dau-chu{display:flex;flex-direction:column;gap:4px;flex:1 1 400px}
.gh-dau-chu h1{margin:0;font-family:'Be Vietnam Pro',sans-serif;font-size:40px;font-weight:800;color:#2B2118;letter-spacing:-.01em;line-height:1.2}
.gh-dau-chu p{margin:0;font-size:17px;color:#4F4234;line-height:1.5}

/* Khối 1: đồng hồ */
.gh-dh{background:linear-gradient(135deg,#45140B,#79200F);color:#F8F4EC;border-radius:20px;padding:28px;display:flex;flex-wrap:wrap;gap:28px;align-items:stretch}
.gh-dh-chu{flex:1 1 300px;display:flex;flex-direction:column;gap:10px}
.gh-dh-nhan{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#E6C883}
.gh-dh-hang{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.gh-dh-gio{font-family:Spectral,serif;font-size:52px;font-weight:600;line-height:1.05}
.gh-dh-loai{font-size:15px;font-weight:700;background:#C89B3C;color:#2B2118;padding:6px 14px;border-radius:999px}
.gh-dh.hac .gh-dh-loai{background:rgba(248,244,236,.16);color:#F8F4EC;border:1px solid rgba(230,200,131,.5)}
.gh-dh-loi{margin:0;font-size:17px;line-height:1.55;color:#F8F4EC}
.gh-dh-thanh{height:8px;background:rgba(248,244,236,.18);border-radius:999px;overflow:hidden;max-width:460px}
.gh-dh-thanh div{height:100%;background:#C89B3C}
.gh-dh-ke{font-size:15px;color:#EAD9BD}
.gh-dh-ke b{color:#F8F4EC}
.gh-dh-nut{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.gh a.gh-nut-sang,.gh-nut-sang{background:#F8F4EC;color:#45140B;text-decoration:none;font-weight:700;font-size:15px;padding:12px 20px;border-radius:999px;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px}
.gh a.gh-nut-vien{border:1.5px solid #E6C883;color:#F8F4EC;text-decoration:none;font-weight:600;font-size:15px;padding:12px 20px;border-radius:999px;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px}

/* Khối 2: phiếu nhập */
.gh-phieu-nhap{background:#FDFBF6;border:1px solid #D8BF8A;border-radius:18px;padding:26px;display:flex;flex-direction:column;gap:18px;margin:0}
.gh-pn-dau{text-align:center;display:flex;flex-direction:column;gap:4px}
.gh-pn-dau h2{margin:0;font-family:Spectral,serif;font-size:26px;font-weight:600;color:#79200F}
.gh-pn-dau p{margin:0;font-size:14px;color:#74665A}
.gh-pn-o{display:flex;flex-wrap:wrap;gap:16px}
.gh-o{flex:1 1 240px;display:flex;flex-direction:column;gap:8px}
.gh-o label{font-size:14px;font-weight:600;color:#2B2118}
.gh-o label span{font-weight:400;color:#74665A}
.gh-o small{font-size:13px;color:#74665A}
.gh-o input{font-family:inherit;font-size:15px;padding:11px 12px;border:1px solid #D8BF8A;border-radius:10px;background:#FFFFFF;color:#2B2118;min-height:46px;box-sizing:border-box;width:100%}
.gh-chon{display:flex;gap:6px;flex-wrap:wrap}
.gh-chon button{font-family:inherit;font-size:14px;font-weight:600;padding:9px 14px;border-radius:999px;border:1px solid #D8BF8A;background:#FDFBF6;color:#4F4234;min-height:44px;cursor:pointer}
.gh-chon button.on{border-color:#5E180B;background:#5E180B;color:#FFFFFF;font-weight:700}
.gh-xem{align-self:center;font-family:Spectral,serif;font-size:17px;font-weight:600;letter-spacing:.1em;padding:15px 48px;border-radius:999px;border:0;background:#5E180B;color:#FFFFFF;min-height:48px;box-shadow:0 6px 16px rgba(69,20,11,.25);cursor:pointer}

/* Khối 3: kết quả */
.gh-kq{display:flex;flex-direction:column;gap:18px;scroll-margin-top:12px}
.gh-dai{background:linear-gradient(135deg,#79200F,#45140B);color:#F8F4EC;border-radius:18px;padding:24px 26px;display:flex;flex-direction:column;gap:8px}
.gh-dai-nhan{font-size:12px;letter-spacing:.14em;color:#E6C883}
.gh-dai h2{margin:0;font-family:'Be Vietnam Pro',sans-serif;font-size:30px;font-weight:800;color:#F8F4EC;line-height:1.25}
.gh-dai-am{font-size:15px;color:#EAD9BD}
.gh-chip{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.gh-chip>span{background:#FDFBF6;font-weight:700;font-size:15px;padding:6px 14px;border-radius:999px;border:2px solid #C89B3C}
.gh-chip>span.xung{border-color:#C38B80}
.gh-chip>span>span{font-size:11px;font-weight:600;color:#9C2F24}
.gh-rieng{margin-top:8px;background:rgba(248,244,236,.1);border-radius:12px;padding:12px 14px;font-size:15px;line-height:1.55}
.gh-rieng b.do{color:#FBD9D0}
.gh-chuc{font-family:Spectral,serif;font-size:17px;font-style:italic;color:#E6C883;margin-top:4px}
.gh a.gh-dai-tai{align-self:flex-start;margin-top:6px;padding:12px 18px}

.gh-hai{display:flex;flex-wrap:wrap;gap:26px;align-items:stretch}
.gh-vong-the{flex:1 1 400px;box-sizing:border-box;background:#FDFBF6;border:1px solid #D8BF8A;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 6px 18px rgba(69,20,11,.08);position:relative}
.gh-vong-dau{background:linear-gradient(90deg,#45140B,#79200F,#45140B);color:#F8F4EC;padding:16px 20px;display:flex;align-items:center;justify-content:center;gap:14px}
.gh-vong-dau .gach{flex:1;max-width:90px;height:1px;background:#C89B3C}
.gh-vong-dau svg{flex-shrink:0}
.gh-vong-dau .ten{font-family:Spectral,serif;font-size:26px;font-weight:600}
.gh-vong-than{position:relative;padding:18px 12px 0;flex:1;display:flex;align-items:center;justify-content:center}
.gh-nui{position:absolute;left:0;right:0;bottom:0;display:block}
.gh-vong-o{position:relative}
.gh-vong-o svg{display:block;max-width:100%;height:auto}
.gh-chu-giai{position:relative;margin:0 18px 18px;background:#FDFBF6;border:1px solid #EAD9BD;border-radius:12px;padding:12px 14px;display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:13px;color:#4F4234}
.gh-chu-giai span{display:inline-flex;gap:6px;align-items:center}
.gh-chu-giai i{width:14px;height:14px;border-radius:4px;box-sizing:border-box;display:inline-block}
.gh-chu-giai .o-tot{background:#C89B3C}
.gh-chu-giai .o-hac{background:#F1EADD;border:1px solid #D8BF8A}
.gh-chu-giai .o-dang{border:3px solid #79200F}
.gh-chu-giai .o-xung{border-radius:50%;background:#9C2F24}

.gh-sau{flex:1 1 620px;min-width:0;display:flex;flex-direction:column;gap:16px}
.gh-sau-dau{display:flex;align-items:center;gap:14px}
.gh-sau-dau svg{flex-shrink:0}
.gh-sau-dau h3{margin:0;font-family:Spectral,serif;font-size:30px;font-weight:600;color:#79200F;line-height:1.2}
.gh-sau-dau .gach{flex:1;height:1px;background:#C89B3C}
.gh-the-luoi{display:flex;flex-wrap:wrap;gap:16px}
.gh-the{flex:1 1 calc(50% - 8px);min-width:250px;box-sizing:border-box;background:linear-gradient(180deg,#FDFBF6,#F8F4EC);border:1px solid #EAD9BD;border-radius:16px;padding:18px 20px;box-shadow:0 4px 14px rgba(69,20,11,.07);display:flex;flex-direction:column;gap:10px}
.gh-the.dang{background:linear-gradient(160deg,#79200F,#45140B);border-color:#79200F;box-shadow:0 10px 24px rgba(69,20,11,.28);color:#F8F4EC}
.gh-the-dau{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gh-the-dau svg{flex-shrink:0}
.gh-the-dau .chi{font-family:Spectral,serif;font-size:28px;font-weight:600;line-height:1;white-space:nowrap}
.gh-the-dau .khung{font-size:15px;white-space:nowrap}
.gh-the .nhan{margin-left:auto;white-space:nowrap;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.gh-the .nhan.dang{border:1.5px solid #E6C883;color:#F8F4EC}
.gh-the .nhan.sap{background:#F7E3AD;color:#8A5A00}
.gh-the .nhan.xung{background:#FBD9D0;color:#9C2F24}
.gh-the .nhan.qua{background:#F1EADD;color:#74665A}
.gh-the-con{display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(230,200,131,.35);padding-bottom:10px}
.gh-the-con svg,.gh-the-than svg,.gh-the-loi svg{flex-shrink:0}
.gh-the-con span{font-size:15px;font-weight:700;background:#C89B3C;color:#2B2118;padding:5px 14px;border-radius:999px}
.gh-the-than{display:flex;align-items:center;gap:10px}
.gh-the-than span{font-family:Spectral,serif;font-size:20px;font-weight:600;color:#79200F}
.gh-the.dang .gh-the-than span{color:#F8F4EC}
.gh-the-loi{display:flex;align-items:flex-start;gap:10px}
.gh-the-loi span{font-size:15px;line-height:1.5;color:#2B2118}
.gh-the.dang .gh-the-loi span{color:#F8F4EC}

.gh-bang-khung{background:#FDFBF6;border:1px solid #EAD9BD;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:12px}
.gh-bang-khung h3{margin:0;font-family:Spectral,serif;font-size:22px;font-weight:600;color:#79200F}
.gh-bang-cuon{overflow-x:auto}
.bang-gio{width:100%;border-collapse:collapse;font-size:15px}
.bang-gio thead tr{background:#F1EADD;text-align:left}
.bang-gio th{padding:10px 14px;font-size:13px;color:#4F4234;font-weight:700}
.bang-gio tbody tr{border-top:1px solid #EAD9BD}
.bang-gio tbody tr.dang{background:#F1EADD}
.bang-gio td{padding:12px 14px;vertical-align:middle}
.bang-gio td:nth-child(2),.bang-gio td:nth-child(3),.bang-gio td:nth-child(4){white-space:nowrap}
.bang-gio td.g{font-weight:700}
.bang-gio .dang-chu{font-size:11px;font-weight:700;color:#79200F;letter-spacing:.06em}
.bang-gio .xt{font-size:11px;font-weight:700;color:#9C2F24}
.bang-gio .cham-xung{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9C2F24;margin-left:4px;vertical-align:middle}
.bang-gio td.dh{color:#4F4234}
.bang-gio td.th{color:#2B2118;font-weight:400}
.bang-gio td.th.tot{font-weight:600}
.bang-gio .loai{display:inline-block;padding:3px 10px;border-radius:999px;background:#F1EADD;color:#3A3A3A;font-size:12px;font-weight:600}
.bang-gio .loai.tot{background:#79200F;color:#FFFFFF}
.bang-gio td.goi-y{color:#4F4234;font-size:14px}
.gh-bang-ghi{margin:0;font-size:13px;color:#74665A}

.gh-luu-y{background:#F7E3AD;border-radius:14px;padding:16px 20px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.6;color:#2B2118}
.gh-luu-y b{color:#8A5A00}
.gh-lan-toa .lan-toa{margin:0}
.gh-dv{margin:10px 0 0;font-size:14px;color:#4F4234}
.gh-dv a{text-decoration:underline}

/* Khối 4: tải phiếu */
.gh-tai{display:flex;flex-direction:column;gap:14px;scroll-margin-top:12px}
.gh-tai h2,.gh-lq h2{margin:0;font-family:Spectral,serif;font-size:26px;font-weight:600;color:#79200F}
.gh-tai-hai{display:flex;flex-wrap:wrap;gap:16px}
.gh-tai-the{flex:1 1 380px;background:#FDFBF6;border:1px solid #D8BF8A;border-radius:18px;padding:20px;display:flex;gap:18px;align-items:center;box-sizing:border-box}
.gh-tai-the.vang{border:2px solid #C89B3C}
.gh-mini{width:96px;height:136px;flex-shrink:0;border-radius:8px;background:#FDFBF6;border:1px solid #D8BF8A;box-shadow:0 6px 14px rgba(69,20,11,.15);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box}
.gh-mini .so{font-family:'Playfair Display',Spectral,serif;font-size:40px;font-weight:800;color:#B3200F;line-height:1}
.gh-mini .cc{font-size:9px;color:#4F4234}
.gh-mini .v1{width:60px;height:6px;border-radius:3px;background:#C89B3C}
.gh-mini .v2{width:46px;height:6px;border-radius:3px;background:#F1EADD}
.gh-mini.tuan{padding:10px 8px;align-items:stretch;justify-content:flex-start;gap:5px}
.gh-mini.tuan .t{font-size:9px;font-weight:700;color:#79200F}
.gh-mini.tuan .d{height:9px;border-radius:3px;background:linear-gradient(90deg,#C89B3C 55%,#F1EADD 55%)}
.gh-tai-chu{display:flex;flex-direction:column;gap:8px}
.gh-tai-chu>b{font-size:18px}
.gh-tai-chu>span:not(.nho){font-size:14px;color:#4F4234;line-height:1.5}
.gh-tai-chu .nho{font-size:12px;font-weight:700;letter-spacing:.08em}
.gh-tai-chu .nho.xanh{color:#0F6B3D}
.gh-tai-chu .nho.nau{color:#8A6620}
.gh-tai-nut{display:flex;gap:8px;flex-wrap:wrap}
.gh-tai-nut .gh-n-do,.gh-tai-nut .gh-n-vien,.gh-tai-nut .gh-n-cam{display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-weight:700;font-size:14px;padding:10px 16px;border-radius:999px;min-height:44px;box-sizing:border-box;font-family:inherit;cursor:pointer}
.gh-tai-nut .gh-n-do{background:#79200F;color:#FFFFFF;border:0}
.gh-tai-nut .gh-n-do[disabled]{opacity:.7;cursor:progress}
.gh a.gh-n-vien{background:#FDFBF6;color:#79200F;border:1px solid #D8BF8A}
.gh a.gh-n-cam{background:#BB4218;color:#FFFFFF;border:0}
.gh a.gh-n-chu{font-size:14px;color:#79200F;align-self:center}

/* Khối 5: bước tiếp theo */
.gh-tiep{background:linear-gradient(160deg,#2A0B05,#45140B);color:#F8F4EC;border-radius:20px;padding:30px;display:flex;flex-direction:column;gap:18px}
.gh-tiep-dau{display:flex;flex-direction:column;gap:8px;max-width:720px}
.gh-tiep .nho{font-size:12px;letter-spacing:.14em;color:#E6C883}
.gh-tiep h2{margin:0;font-family:Spectral,serif;font-size:30px;font-weight:600;line-height:1.25;color:#F8F4EC}
.gh-tiep-dau p{margin:0;font-size:16px;line-height:1.6;color:#EAD9BD}
.gh-tiep-hai{display:flex;flex-wrap:wrap;gap:16px}
.gh-tiep-o{flex:1 1 340px;background:rgba(248,244,236,.07);border:1px solid rgba(230,200,131,.4);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.gh-tiep-o .nho{font-weight:700;letter-spacing:.08em}
.gh-tiep-o b{font-size:20px}
.gh-tiep-o>span:not(.nho){font-size:14px;color:#EAD9BD;line-height:1.55}
.gh a.gh-n-cam2,.gh a.gh-n-vien2{align-self:flex-start;text-decoration:none;font-weight:700;font-size:15px;padding:12px 22px;border-radius:999px;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;color:#FFFFFF}
.gh a.gh-n-cam2{background:linear-gradient(180deg,#D4552A,#A8380F)}
.gh a.gh-n-vien2{border:1.5px solid #E6C883;color:#F8F4EC}

/* Khối 7: công cụ liên quan */
.gh-lq{display:flex;flex-direction:column;gap:14px}
.gh-lq-luoi{display:flex;flex-wrap:wrap;gap:14px}
.gh-lq-luoi a{flex:1 1 220px;text-decoration:none;background:#FDFBF6;border:1px solid #EAD9BD;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px;color:#2B2118}
.gh-lq-luoi .an{width:44px;height:44px;border-radius:10px;background:#79200F;color:#F8F4EC;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.gh-lq-luoi b{font-size:16px}
.gh-lq-luoi .cau{font-size:14px;color:#4F4234;line-height:1.5}
.gh-lq-luoi .mo{font-size:14px;font-weight:600;color:#79200F}
.gh .kq-lich-su{margin:0}

/* Khối 8: giải thích, hỏi đáp */
.gh-gt{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.gh-gt-o{flex:1 1 440px;background:#FDFBF6;border:1px solid #EAD9BD;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.gh-gt-o h3{margin:0;font-family:Spectral,serif;font-size:20px;font-weight:600;color:#79200F}
.gh-gt-o>p{margin:0;font-size:15px;line-height:1.65;color:#4F4234}
.gh-gt details{border-top:1px solid #EAD9BD}
.gh-gt summary{display:flex;justify-content:space-between;gap:10px;padding-top:10px;min-height:44px;box-sizing:border-box;align-items:center;font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.gh-gt summary::-webkit-details-marker{display:none}
.gh-gt summary .cong{color:#8A6620;transition:transform .2s}
.gh-gt details[open] summary .cong{transform:rotate(45deg)}
.gh-gt details p{margin:0 0 10px;font-size:15px;line-height:1.6;color:#4F4234}

/* Thanh dưới màn hình (điện thoại) */
.gh-thanh-duoi{display:none}

/* Phiếu chụp ảnh nằm ngoài màn hình */
.gh-chup{position:absolute;left:-10000px;top:0;pointer-events:none}


@media (max-width:900px){
  .gh-sau-dau h3{font-size:24px}
}
@media (max-width:600px){
  .gh{padding:14px 16px 96px;gap:20px}
  .gh-pc{display:none}.gh-dt{display:inline}
  .gh-an{width:48px;height:48px;font-size:17px;border-radius:12px}
  .gh-dau-chu{flex:1 1 200px}
  .gh-dau-chu h1{font-size:28px}
  .gh-dau-chu p{font-size:15px}
  .gh-dh{padding:20px;border-radius:16px}
  .gh-dh-nhan{font-size:11px}
  .gh-dh-gio{font-size:38px}
  .gh-dh-loi{font-size:15px}
  .gh-dh-nut{display:none}
  .gh-phieu-nhap{padding:18px}
  .gh-xem{align-self:stretch;padding:15px 20px}
  .gh-dai{padding:20px}
  .gh-dai h2{font-size:22px}
  .gh-sau-dau h3{font-size:22px}
  .gh-sau-dau svg{width:26px;height:26px}
  .gh-the{min-width:0;flex-basis:100%}
  .goi-y{display:none}
  .xt{display:none}
  .ten-than{display:none}
  .bang-gio{font-size:13px}
  .bang-gio td,.bang-gio th{padding:10px 6px}
  .bang-gio td:nth-child(4) span{padding:3px 7px;font-size:11px}
  .bang-gio th:nth-child(2),.bang-gio td:nth-child(2){padding-left:2px;padding-right:2px}
  .gh-tai-the{flex-basis:100%;padding:16px;gap:14px;align-items:flex-start}
  .gh-mini{width:72px;height:102px}
  .gh-mini .so{font-size:30px}
  .gh-tiep{padding:22px}
  .gh-tiep h2{font-size:23px}
  .gh-tiep-o{flex-basis:100%}
  .gh-lq-luoi a{flex:1 1 calc(50% - 7px);padding:14px;min-width:0}
  .gh-lq-luoi .cau{display:none}
  .gh-gt-o{flex-basis:100%}
  .gh-thanh-duoi{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;align-items:center;justify-content:space-between;gap:12px;background:#45140B;color:#F8F4EC;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(0,0,0,.18);font-family:'Be Vietnam Pro',sans-serif}
  .gh-thanh-duoi b{font-size:15px}
  .gh-thanh-duoi span{display:block;font-size:13px;color:#EAD9BD}
  .gh-thanh-duoi a{background:#C89B3C;color:#2B2118;text-decoration:none;font-weight:700;font-size:14px;padding:10px 18px;border-radius:999px;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
  .gh-trang #chat-noi{bottom:84px!important}
  .gh-trang main{padding-bottom:72px}
}
@media print{
  .gh-thanh-duoi,.gh-dh,.gh-phieu-nhap,.gh-dai-tai{display:none !important}
}

/* Trang in phiếu (1 ngày và 7 ngày) */
.gh-in-vo{max-width:680px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;gap:14px;align-items:center}
.gh-in-thanh{width:100%;max-width:620px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.gh-in-thanh a{color:#79200F;font-weight:600;text-decoration:none}
.gh-in-thanh span{display:flex;gap:8px}
.gh-in-giay{width:620px;max-width:100%;overflow-x:auto}
@page{size:A5 portrait;margin:6mm}
@media print{
  .gh-in header,.gh-in footer,.gh-in .no-print,.gh-in #chat-noi,.gh-in .chat-noi{display:none!important}
  .gh-in-vo{padding:0;max-width:none}
  .gh-in-giay{width:auto;overflow:visible}
  .gh-in .ghp{-webkit-print-color-adjust:exact;print-color-adjust:exact;zoom:.86}
}
.gh-in-thanh .gh-n-vien{background:#FDFBF6;color:#79200F;border:1px solid #D8BF8A}
