/* Bổ sung cho style.css của hotel-checkin – chỉ các lớp mh-* */
.mh-tabs{align-items:center;flex-wrap:wrap}
.mh-tabs .mh-me{margin-left:auto;font-size:13px;padding:6px}
.mh-count{background:#c0392b;color:#fff;border-radius:10px;padding:0 6px;font-size:12px}
.small{font-size:12.5px}
.mh-sum{max-width:320px;font-size:13.5px}
.mh-reason{font-size:12.5px;color:#b03a2e;margin-top:3px}
.mh-st{font-weight:600}
.mh-cho_ktmh{background:#e0f2f1;border-color:#00897b}
.mh-cho_ktt{background:#fff8e1;border-color:#f9a825}
.mh-cho_ql{background:#ede7f6;border-color:#5e35b1}
.mh-tra_lai{background:#ffebee;border-color:#e53935;color:#b71c1c}
.mh-da_duyet{background:#e3f2fd;border-color:#1e88e5}
.mh-da_dat_hang,.mh-da_nhan_hang,.mh-xuat_kho{background:#c8e6c9;border-color:#2e7d32}
.mh-da_huy{background:#eceff1;border-color:#90a4ae;color:#546e7a}
.mh-ktt-skip{background:#fff4d6;border-color:#d97706;color:#7c3e00;font-weight:600}
.mh-late{background:#ffe0b2;border-color:#ef6c00;color:#8a3b00;font-weight:600}
.mh-line-issued{background:#c8e6c9;border-color:#2e7d32}.mh-line-purchase{background:#fff8e1;border-color:#f9a825}
.mh-steps{display:flex;gap:6px;list-style:none;padding:0;margin:12px 0;flex-wrap:wrap}
.mh-steps li{flex:1 1 140px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;font-size:13px;background:#f7f9f5;color:var(--muted)}
.mh-steps li span{display:inline-block;width:20px;height:20px;border-radius:50%;background:#cfd8dc;color:#fff;text-align:center;line-height:20px;margin-right:6px;font-weight:700}
.mh-steps li.done{color:var(--green-d)}.mh-steps li.done span{background:var(--green)}
.mh-steps li.now{border-color:var(--green);background:#e6f5ea;color:var(--text);font-weight:600;box-shadow:0 0 0 2px rgba(46,125,79,.25)}
.mh-steps li.now span{background:#ef6c00}
.mh-steps li.back{border-color:#e53935;background:#ffebee}
.mh-actions .mh-act{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0}
.mh-actions .mh-act input{max-width:340px}
.mh-reason-input{min-width:280px}
.mh-quotes .mh-qrow{display:grid;grid-template-columns:70px 1.4fr 1fr 1.4fr;gap:6px;margin:4px 0;align-items:center}
.mh-radio{flex-direction:row!important;align-items:center;gap:4px;margin:0!important}
.mh-sel{font-weight:700;color:var(--green-d)}
.mh-mini input{padding:4px 6px}
.mh-lines input,.mh-lines select{width:100%}
.mh-warn a{font-weight:700}
.mh-radio input{width:auto}
.mh-total{background:#f1f8e9}
.mh-filter{margin:6px 0 10px;gap:8px;align-items:end}
.mh-filter select{min-width:240px}
.mh-other{font-size:12px;color:var(--muted)}
/* nhập giọng nói */
.mh-voice{border:1px dashed var(--green,#2e7d4f);border-radius:10px;padding:10px 12px;margin:8px 0 14px;background:#f6fbf7}
.mh-voice .mh-voice-btn{margin-right:8px}
.mh-voice-live{min-height:1.2em;margin-top:6px;font-style:italic;color:#37474f}
.mh-voice-status{font-size:13.5px;margin-top:4px}.mh-voice-status.warn{color:#b03a2e;font-weight:600}
.mh-voice-status.ok{color:var(--green-d,#1b5e20);font-weight:600}.mh-voice-status.on{color:#ef6c00;font-weight:600}
.mh-voice-result ul{margin:4px 0 0 18px;padding:0;font-size:13.5px}
.mh-voice-off .mh-voice-btn{opacity:.55}
.mh-micwrap{display:flex;gap:4px;align-items:stretch;width:100%}
.mh-micwrap input,.mh-micwrap textarea{flex:1;min-width:0}
.mh-mic{border:1px solid var(--line,#cfd8dc);background:#fff;border-radius:6px;cursor:pointer;padding:0 6px;font-size:15px;line-height:1}
.mh-mic:hover{background:#e8f5e9}
.mh-mic.rec,.mh-voice-btn.rec{background:#ffebee!important;border-color:#e53935!important;animation:mhpulse 1s infinite}
@keyframes mhpulse{50%{box-shadow:0 0 0 4px rgba(229,57,53,.25)}}
tr.mh-voice-new td{background:#fffde7}

/* trang đăng nhập */
.mh-login{max-width:560px}
.mh-hotel{font-size:30px;letter-spacing:.3px;margin:4px 0}
.mh-login-group{margin:10px 0 4px;text-align:left}
.mh-login-gt{font-weight:700;font-size:13px;color:var(--muted,#607d8b);margin-bottom:6px;text-transform:uppercase}
.mh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.mh-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 12px;border:1px solid var(--line,#cfd8dc);border-radius:10px;background:#fff;cursor:pointer;text-align:left;font-size:16px}
.mh-tile span{font-size:12px;color:var(--muted,#607d8b)}
.mh-tile:hover{border-color:var(--green,#2e7d4f);background:#f1f8f3}
.mh-tile.sel{border-color:var(--green,#2e7d4f);background:#e6f5ea;box-shadow:0 0 0 2px rgba(46,125,79,.3)}
.mh-chosen{min-height:1.2em;margin:8px 0 2px}
tr.mh-total-row td{border-top:2px solid var(--line,#cfd8dc);font-weight:700;background:#f7f9f5}

/* đặt hàng bằng giọng nói – chữ to, nút to (máy tính bảng / điện thoại trong bếp) */
.mh-vo{background:#f6fbf7;border:2px solid var(--green,#2e7d4f)}
.mh-vo-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.mh-vo-big{font-size:26px;font-weight:700;padding:18px 28px;border-radius:16px;border:0;background:var(--green,#2e7d4f);color:#fff;cursor:pointer;min-width:280px;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.mh-vo-big.rec{background:#c62828!important;animation:mhpulse 1s infinite}
.mh-vo-help{flex:1;min-width:240px;font-size:15px}
.mh-vo-live{font-size:24px;line-height:1.35;min-height:1.4em;margin-top:10px;color:#1b5e20;font-weight:600}
.mh-vo-status{font-size:15px;margin-top:4px}.mh-vo-status.warn{color:#b03a2e;font-weight:600}.mh-vo-status.on{color:#ef6c00;font-weight:600}.mh-vo-status.ok{color:#1b5e20;font-weight:600}
.mh-vo-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:24px 10px}
.mh-vo-modal[hidden]{display:none}
.mh-vo-box{background:#fff;border-radius:14px;max-width:1100px;width:100%;padding:18px 20px;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.mh-vo-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.mh-vo-top h2{margin:0;font-size:22px}
.mh-vo-rawbox{background:#fffde7;border-radius:8px;padding:8px 10px;margin:10px 0;font-size:17px}
.mh-vo-table input,.mh-vo-table select{font-size:17px;padding:8px;width:100%}
.mh-vo-table td{vertical-align:top}.mh-vo-warn{color:#b03a2e;font-size:12.5px}
.mh-vo-extra{margin-top:10px}.mh-vo-read{margin:8px 0}
.mh-vo-err{color:#b03a2e;font-weight:600;min-height:1.2em}
.mh-vo-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}
.mh-vo-btn{font-size:18px;padding:12px 18px}.mh-vo-ok{font-size:20px;padding:14px 24px}
.mh-vo-btn.rec{background:#ffebee;border-color:#e53935}
@media (max-width:700px){.mh-vo-big{width:100%;font-size:24px}.mh-vo-box{padding:12px}
 .mh-vo-table thead{display:none}.mh-vo-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-bottom:2px solid #ddd;padding:6px 0}
 .mh-vo-table td{display:block;border:0}.mh-vo-table td:first-child{grid-column:1/3}.mh-vo-actions .btn{flex:1 1 45%}}

.mh-vo-err:not(:empty){background:#ffebee;border:2px solid #e53935;border-radius:8px;padding:10px 12px;font-size:18px;margin:8px 0}
.mh-vo-msg{font-size:16px;margin:4px 0}.mh-vo-msg.warn{color:#b03a2e;font-weight:600}.mh-vo-msg.on{color:#ef6c00;font-weight:600}.mh-vo-msg.ok{color:#1b5e20}
.mh-vo-table input.vo-bad{border:2px solid #e53935;background:#fff5f5}
.mh-vo-flash{animation:mhflash .6s 2}@keyframes mhflash{50%{background:#ffcdd2}}

/* tồn kho bộ phận cạnh nút nói */
.mh-vo-wrap{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}.mh-vo-main{flex:1 1 420px;min-width:0}
.mh-vo-stock{flex:0 1 360px;min-width:260px;background:#fff;border:1px solid #cfe3d6;border-radius:10px;padding:8px 10px}
.mh-vo-stock-h{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:15px}
.mh-vo-only{font-size:13px;white-space:nowrap}.mh-vo-stock-q{width:100%;margin:6px 0;padding:6px 8px;font-size:14px}
.mh-vo-stock-list{max-height:230px;overflow:auto}.mh-vo-stock-list td{padding:4px 6px;font-size:14px}
.mh-vo-stock-list tr.hl td{background:#fff3c4;font-weight:600}
.mh-vo-badge{display:inline-block;font-size:11.5px;padding:1px 6px;border-radius:9px;margin-left:4px;font-weight:600}
.mh-vo-badge.out{background:#ffebee;color:#c62828}.mh-vo-badge.low{background:#fff3e0;color:#e65100}
.vo-sugg{display:block;font-size:13px;color:#555}.vo-sugg button{font-size:12.5px;padding:1px 6px;margin:1px 0;border:1px solid #9ccc65;background:#f1f8e9;border-radius:6px;cursor:pointer}
.vo-none{color:#b03a2e;font-size:13px}
@media (max-width:700px){.mh-vo-stock{flex:1 1 100%}}
/* màn hình rộng: khung tồn kho nổi bên phải khi đang xác nhận phiếu */
@media (min-width:1100px){
 body.mh-vo-open .mh-vo-stock{position:fixed;right:14px;top:24px;width:300px;z-index:1001;box-shadow:0 10px 30px rgba(0,0,0,.3)}
 body.mh-vo-open .mh-vo-stock-list{max-height:calc(100vh - 150px)}
 body.mh-vo-open .mh-vo-modal{padding-right:330px}
}
.mh-vo-only{display:inline-flex;align-items:center;gap:4px;margin:0}.mh-vo-only input{width:auto!important;margin:0}

/* cài đặt nhận giọng (Quản lý) */
.mh-sttopt{display:block;padding:10px 12px;margin:6px 0;border:1px solid #d6e4da;border-radius:10px;cursor:pointer;font-size:16px}
.mh-sttopt input{width:auto!important;margin-right:8px}.mh-sttopt.cur{border:2px solid var(--green,#2e7d4f);background:#f1f8f3}
.mh-sttopt.off{opacity:.55;cursor:not-allowed}.mh-sttstat th{width:200px;text-align:left}
/* bảng xác nhận nhiều dòng: bảng cuộn trong khung, nút luôn thấy */
.mh-vo-tablewrap{max-height:calc(100vh - 360px);min-height:180px;overflow:auto;border:1px solid #e3ece6;border-radius:8px}
.mh-vo-tablewrap thead th{position:sticky;top:0;background:#fff;z-index:1}
.mh-vo-count{font-size:15px;color:#555;margin-left:8px;font-weight:400}
@media (max-width:700px){.mh-vo-tablewrap{max-height:none}}
.mh-vo-stt { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; font-size: .85rem; flex-wrap: wrap; }
.mh-vo-stt select { font-size: .85rem; padding: .15rem .3rem; max-width: 22rem; }
.mh-sttdept select { font-size: .85rem; padding: .15rem .3rem; }
.mh-sttdept form { display: flex; gap: .3rem; align-items: center; margin: 0; }
.mh-pdf { font-size: .78rem; font-weight: normal; margin-left: .25rem; white-space: nowrap; text-decoration: none; opacity: .85; }
.mh-pdf:hover { opacity: 1; text-decoration: underline; }
.mh-sum a { color: inherit; text-decoration: none; }
.mh-sum a:hover { text-decoration: underline; }
/* đơn tiệc */
.badge.mh-tiec { background: #fff1d6; color: #9a5b00; border: 1px solid #f0c36d; font-weight: 600; }
.mh-tiec-chip.active { background: #f0c36d; color: #4a2c00; }
.mh-otype { border: 1px solid #cfd8d2; border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0; }
.mh-otype legend { font-weight: 600; padding: 0 .3rem; }
.mh-otype .req { color: #b42318; font-weight: normal; font-size: .85rem; }
.mh-otype-opt { display: block; margin: .25rem 0; cursor: pointer; }
.mh-otype-opt input { margin-right: .35rem; }
.mh-otype-err, .mh-otype.mh-vo-bad { border: 2px solid #d92d20; background: #fff4f3; }
.mh-otype-msg { color: #b42318; font-weight: 600; margin-top: .3rem; }
.mh-vo-otype { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; padding: .45rem .6rem; }
.mh-vo-otype legend { font-weight: 600; }
.mh-vo-otype label { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border: 1px solid #cfd8d2; border-radius: 999px; cursor: pointer; background: #fff; font-size: 1rem; }
.mh-vo-otype label:has(input:checked) { background: #e8f2ec; border-color: #2f7d4f; font-weight: 600; }
.mh-vo-otype label.tiec:has(input:checked) { background: #fff1d6; border-color: #f0c36d; }
.mh-vo-box.tiec .vo-stock, .mh-vo-box.tiec .vo-stock-h { display: none; }

/* 💬 Trao đổi theo từng phiếu (chỉ gõ chữ) */
.mh-msgs{max-height:420px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;margin:6px 0 10px;padding:4px}
.mh-msg{background:#f4f7f5;border:1px solid #dfe8e2;border-radius:10px;padding:7px 10px;max-width:85%}
.mh-msg.mine{align-self:flex-end;background:#e7f3ea;border-color:#c5e2cd}
.mh-msg-h{font-size:.86em;margin-bottom:2px}
.mh-msg-b{white-space:pre-wrap;word-break:break-word}
.mh-msg-form{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.mh-msg-form textarea{flex:1 1 320px;min-height:44px;resize:vertical}
.badge.mh-msg-badge{background:#e8f0fe;color:#1a56b8;border:1px solid #c6d8fb;text-decoration:none}
/* ---- nhà cung cấp & phiếu đặt hàng NCC */
.mh-ncc-new{margin-top:4px;font-size:13px;color:#8a4b00}.mh-ncc-new.ok{color:#1b5e20}
.mh-ncc-box{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;padding:6px;background:#fff8e6;border:1px solid #f0c36d;border-radius:6px}
.mh-ncc-box input{width:140px}
.mh-manual{background:#fff3e0;border-color:#ef6c00;color:#8a3b00}
.mh-po-nhap{background:#fff8e1;border-color:#f9a825}.mh-po-da_gui{background:#c8e6c9;border-color:#2e7d32}.mh-po-huy{background:#eee;border-color:#999;color:#666}
.mh-po-sup{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.mh-po-sup>div{border:1px solid #ddd;border-radius:8px;padding:8px 10px;background:#fafafa}
.mh-po-sup dl{display:grid;grid-template-columns:120px 1fr;gap:2px 8px;margin:0}.mh-po-sup dt{color:#666}
tr.mh-row-manual td{background:#fff8ee}
.mh-po-edit input{max-width:100%}
.mh-ncc-new[hidden],.mh-ncc-new [hidden]{display:none!important}

/* nguồn phân tích câu nói: Gemini / quy tắc trên máy */
.mh-vo-parser{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;font-size:12px;background:#eef2f7;color:#445}
.mh-vo-parser.gemini{background:#e8f0fe;color:#1a56c4}.mh-vo-parser.rule{background:#f1f3f4;color:#555}
.mh-nt-ai{border:1px dashed #9ab;border-radius:8px;padding:10px 12px;margin:8px 0 12px;background:#f8fbff}
.mh-nt-ai textarea{width:100%;min-height:52px}.mh-nt-ai .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:6px}
.nt-row.ai-filled td{background:#fffbe6}

.mh-xk-pending{margin:8px 0 12px;padding:8px 10px;border:1px solid #cde;border-radius:8px;background:#f7fff8}


/* Gợi ý mặt hàng khi gõ */
.mh-suggest-box{position:absolute;z-index:9999;background:#fff;border:1px solid #c5d0c5;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:280px;overflow:auto;padding:4px}
.mh-suggest-item{padding:8px 10px;cursor:pointer;font-size:14px;line-height:1.35}
.mh-suggest-item:hover,.mh-suggest-item.active{background:#e8f3ea}
.mh-suggest-code{color:#5b6b5b;font-size:12px;margin-right:4px}
.mh-suggest-meta{color:#5b6b5b;font-weight:400;font-size:12px}
.mh-suggest-empty{padding:10px;color:#6a7a6a;font-size:13px}

.mh-suggest-stock{color:#1e7b34;font-weight:600;font-size:12px}
.mh-xk-form .mh-xk-row{display:grid;grid-template-columns:minmax(220px,2.2fr) 110px minmax(160px,1.2fr) auto;gap:10px 14px;align-items:end}
.mh-xk-form .mh-xk-item input{width:100%}
.mh-xk-form .mh-xk-actions{padding-bottom:2px}
.mh-stock-hint{display:inline-block;margin-top:4px;font-weight:600;color:#1e7b34;font-size:13px}
.mh-stock-hint.is-zero{color:#b3261e}
.mh-xk-more{margin-top:14px}
.mh-xk-more>summary{cursor:pointer;color:#345;font-size:14px}
@media (max-width:800px){.mh-xk-form .mh-xk-row{grid-template-columns:1fr}}
