/* Gro1: trang đội nhóm, trang chủ, trang quản trị */
.wrap { max-width: 760px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.logo { width: auto; height: auto; margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.4rem; color: var(--accent); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 36px; height: 36px; flex: none; }
@media (max-width: 640px) { .top:has(.logo.big) { flex-direction: column; align-items: flex-start; } }
/* Trang chủ: tên Gro1.net to gấp ba, khẩu hiệu ở dưới; điện thoại thu nhỏ theo bề ngang */
.logo.big { flex: 1 1 auto; min-width: 0; gap: clamp(10px, 2.5vw, 16px); font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1; }
.logo.big img { width: 1.6em; height: 1.6em; }
/* Khẩu hiệu rộng đúng bằng chữ Gro1.net (luôn một dòng; home.js fitSlogan chỉnh cỡ chữ theo phông của từng máy): khối tên rộng theo chữ Gro1.net, khẩu hiệu cỡ theo chữ tên (em) rồi giãn đều hai đầu */
.brand { display: flex; flex-direction: column; gap: .12em; width: min-content; }
.slogan { width: 0; min-width: 100%; white-space: nowrap; font-size: .32em; text-align: justify; text-align-last: justify; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.plan { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--soft); font-size: .85rem; font-weight: 600; }
.plan.pro { background: var(--accent); color: var(--accent-ink); }
.tabs { padding-bottom: 6px; margin: 4px 0 10px; }
.tabrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tabrow > button { width: 100%; margin: 0; padding: 9px 14px; white-space: normal; line-height: 1.25; text-align: left; color: var(--ink); background: var(--soft); }
.tabrow > button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.statn { font-size: 1.5rem; font-weight: 700; }
.atable { width: 100%; border-collapse: collapse; }
.atable th, .atable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tablewrap { overflow-x: auto; }
.coTask { margin: 10px 0; }
.coTask.done, .coTask.cancel { opacity: .75; }
.coHead { font-size: 1.05rem; }
.coMeta { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.coBody { white-space: pre-wrap; margin-top: 6px; overflow-wrap: anywhere; }
.coBtns { margin-top: 10px; }
.coTag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: .85rem; background: var(--soft); }
.coTag.doing { background: var(--accent); color: var(--accent-ink); }
.coTag.done { color: var(--ok); }
.coLate { color: var(--warn); font-weight: 600; }
.coReport { border-top: 1px solid var(--line); padding: 8px 0; }
.coShort { min-height: 80px; }
input[type=date] { width: 100%; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
details > summary { cursor: pointer; margin: 8px 0; }
.coChat { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; margin-bottom: 8px; }
.coBubble { padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88%; }
.coBubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.coBubble.ai { align-self: flex-start; background: var(--soft); }
.coNew { background: var(--soft); border-radius: 8px; padding-left: 8px; }
.coMicOn { outline: 3px solid var(--warn); }
.coTask.card .card { margin: 0; }
.code { font: 600 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .15em; }
/* Trang chủ gro1.net */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plans .card { margin: 0; }
.plans ul { padding-left: 20px; margin: 6px 0; }
.subRow { display: flex; align-items: center; gap: 6px; }
.subRow input { flex: 1; min-width: 0; }
.subRow span { color: var(--muted); white-space: nowrap; }
.nameOk { color: var(--ok); font-weight: 600; }
.nameBad { color: var(--warn); font-weight: 600; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 14px 0 6px; }
.agree input { margin-top: 5px; }
/* Trang chính: đường sang trang tạo website riêng; lời xin lỗi khi trang đó đang đóng */
.homeNew { text-align: center; margin: 18px 0 8px; font-weight: 600; }
.sorry { text-align: center; margin-top: 12vh; }
/* Lễ tân Gro1.net ở trang /tao: một hộp thoại */
.desk { margin-top: 18px; }
.deskTitle { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0 0 12px; }
.deskDot { width: 10px; height: 10px; border-radius: 50%; background: #2fb36b; flex: none; }
.deskLog { max-height: none; min-height: 40vh; }
.deskLog .coBubble.refused { border: 1px solid var(--warn); }
.deskLog .bubblePics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.deskPics { display: flex; gap: 8px; flex-wrap: wrap; }
.deskPics:not(:empty) { margin-bottom: 8px; }
.deskThumb { position: relative; }
.deskThumb img, .bubblePics img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.deskThumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; font-size: .8rem; }
.deskRow { flex-wrap: wrap; }
.deskConfirm { align-self: stretch; max-width: none; background: var(--soft); border-radius: 14px; padding: 12px; }
.deskConfirm h2 { font-size: 1rem; margin: 0 0 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Thẻ Website ở trang nội bộ (static/js/sitebuild.js) */
.siteThumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.siteItem { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.coBubble.refused { border: 1px solid var(--warn); }
.bubblePics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

/* Đăng món lên fanpage (sitebuild.js) */
.fbRow { margin-top: 6px; align-items: center; }
.fbDraft { margin-top: 8px; }
.fbDraft textarea { width: 100%; }

/* Thông tin theo ngành của món (sitebuild.js) */
.siteInfo { margin: 6px 0 0; padding-left: 18px; font-size: 0.92rem; }
.siteMissing { margin-top: 6px; font-size: 0.88rem; color: #8a5a00; }

/* Biểu mẫu điền sẵn theo món cùng loại (sitebuild.js) */
.propTag { font-size: 0.8rem; font-weight: 400; color: #8a5a00; }
.propHint { font-size: 0.85rem; color: #555; margin: 4px 0 2px; }
.siteOpts { justify-content: flex-end; margin: 2px 0 6px; }

/* Bán tại quầy (pos.js) */
.posQty { width: 6.5em; display: inline-block; }
.posTotal { font-size: 1.3rem; font-weight: 700; text-align: right; }
.posWarn { font-size: 0.85rem; color: #b45309; }
.posUnknown { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #fff7e6; color: #5b3b00; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.posAsk { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--soft); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.posOut td { opacity: 0.6; }
.receipt { max-width: 340px; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: #000; font-size: 0.92rem; }
.rcName { font-weight: 700; font-size: 1.1rem; text-align: center; }
.rcTitle { font-weight: 700; text-align: center; margin-top: 8px; }
.rcSub { text-align: center; font-size: 0.85rem; }
.rcTable { width: 100%; border-collapse: collapse; margin: 8px 0; }
.rcTable th, .rcTable td { text-align: left; padding: 2px 3px; border-bottom: 1px dotted #999; font-size: 0.85rem; vertical-align: top; }
.rcTable th:nth-child(n+2), .rcTable td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.rcTotal { text-align: right; font-weight: 700; font-size: 1.05rem; margin: 6px 0; }
@media print {
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; }
  .receipt { position: absolute; left: 0; top: 0; width: 76mm; max-width: none; border: none; padding: 0; }
  @page { margin: 4mm; }
}
.posLoss { color: #b91c1c; }
.posDisc { margin-top: 10px; }
.posSum { text-align: right; margin: 6px 0 0; }
.rcLine { text-align: right; font-size: 0.9rem; }
.memRow { padding: 10px 0; border-top: 1px solid var(--line, #e5e7eb); }
.memRow:first-of-type { border-top: 0; }
.memRow > .row { align-items: center; flex-wrap: wrap; }
.memWho { flex: 1 1 160px; min-width: 0; }
.perms { margin: 8px 0 4px; display: grid; gap: 6px; }
.switch { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 6px 0; cursor: pointer; font-weight: 400; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.switch .knob { flex: 0 0 44px; height: 24px; border-radius: 12px; background: #cbd5e1; position: relative; transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.switch input:checked + .knob { background: var(--accent); }
.switch input:checked + .knob::after { left: 22px; }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.posNet { border-left: 4px solid var(--accent); }
.posNet.off { border-left-color: #b45309; background: #fffbeb; }
@media print { .posNet { display: none; } }
.taxPick { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 10px 0 2px; cursor: pointer; }
.taxPick input { width: auto; margin-top: 4px; }
.posBuyer { margin: 8px 0; }
.posNo { width: 11em; max-width: 100%; margin-right: 6px; }
.rcBuyer { text-align: left; font-size: 0.85rem; }
.posVoided > summary { text-decoration: line-through; opacity: 0.7; }
.posBack { margin: 10px 0; padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; display: grid; gap: 6px; }
.posAdd { gap: 4px; flex-wrap: wrap; }
.posBack .row { align-items: center; flex-wrap: wrap; gap: 6px; }
.posMode { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.posMode.on { background: #ecfdf5; color: #065f46; }
/* thành viên quản lý: đường dẫn đặt mật khẩu dài, dòng ai đang đăng nhập ở trang /tao */
.code.linkbox { font: 500 .9rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; user-select: all; }
.who { margin: 0 0 8px; }
button.link { background: none; border: 0; padding: 0; margin: 0; color: var(--accent, #2563eb); text-decoration: underline; font: inherit; cursor: pointer; min-height: 0; }
