/* Product additions only; the approved look comes from vendor/approved-ux.css. */
body { margin: 0; background: #f6f2e9; }
#sim-suite .env-banner { margin: 0; padding: 6px 20px; font-size: 11px; color: #776b56; background: #ede5d6; border-bottom: 1px solid #d4ccb9; }
#sim-suite .login-card { max-width: 460px; margin: 28px auto; }
#sim-suite .login-fields { grid-template-columns: 1fr; }
#sim-suite #login-msg { margin: 0; font-size: 13px; color: #974d2b; }
#sim-suite .ui-role-picker { display: grid; gap: 10px; font-size: 13px; }
#sim-suite .ui-role-picker button { font: inherit; min-height: 40px; border: 1px solid #d7cdbb; border-radius: 9px; background: #fffdf8; }
#sim-suite #s-status { white-space: pre-line; }
#sim-suite #s-status:empty { display: none; }
/* The approved file picker hides the native input; the generic disabled rule (opacity .48) would reveal it. */
#sim-suite #nh-demo .nh-file-pick input:disabled { opacity: 0; }
#sim-suite #nh-demo .nh-file-pick:has(input:disabled) { opacity: .48; }
/* Nga cross-check and Owner report: proposal screens composed from the approved ledger/j-card components. */
#sim-suite .ng-msg { margin: 8px 0 0; font-size: 13px; color: #974d2b; }
#sim-suite .ng-msg:empty { display: none; }
#trung-ledger .ng-tags { display: flex; gap: 8px; flex-wrap: wrap; }
#trung-ledger .tag.warn { background: #f7dfd5; color: #8c3d25; }
#trung-ledger .ng-exceptions { margin: 0; padding-left: 18px; font-size: 13px; color: #8c3d25; display: grid; gap: 4px; }
#trung-ledger .ng-exceptions:empty { display: none; }
#trung-ledger .ng-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 6px; }
#trung-ledger .ng-history p { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
#trung-ledger .ng-num { white-space: nowrap; font-weight: 600; color: var(--accent); }
#trung-ledger tbody tr { cursor: pointer; }
#trung-ledger .mobile-row { cursor: pointer; }
#sim-suite #ow-report { margin: 18px 24px; }
#sim-suite .ow-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#sim-suite .ow-totals div { padding: 10px 12px; background: #f6efe1; border-radius: 10px; display: grid; gap: 2px; }
#sim-suite .ow-totals span { font-size: 12px; color: #6c6d5d; }
#sim-suite .ow-totals strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
#sim-suite .ow-items { display: grid; gap: 10px; }
#sim-suite .ow-item { border-top: 1px solid #dfd6c6; padding-top: 10px; display: grid; gap: 4px; font-size: 13px; }
#sim-suite .ow-item strong { white-space: nowrap; }
#ow-accounts #oa-form-msg { margin: 0; color: #b3261e; font-weight: 600; }
#ow-accounts [aria-invalid="true"] { border-color: #b3261e; outline: 2px solid #b3261e; outline-offset: 1px; }
#pw-done { border-color: #2e7d32; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#sim-suite .ow-item .oc-item-msg { margin: 0; color: #b3261e; font-weight: 600; }
#sim-suite .ow-item input[aria-invalid="true"] { border-color: #b3261e; outline: 2px solid #b3261e; outline-offset: 1px; }
@media (max-width: 540px) { #sim-suite .ow-totals { grid-template-columns: 1fr 1fr; } #sim-suite #ow-report { margin: 16px; } }
/* Part 2 · CTV tự lấy SIM. Real bill picker reuses the approved Hương file-picker look (nh-file-pick). */
#sim-suite #j-ctv-pay:not([hidden]), #sim-suite #j-owner-self:not([hidden]) { display: grid; gap: 12px; justify-items: start; }
#sim-suite .j-card .j-file-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; box-sizing: border-box; border: 1px dashed #c7ac88; border-radius: 12px; color: #835536; background: #f7f0e2; font-size: 13px; font-weight: 500; overflow: hidden; }
#sim-suite .j-card .j-file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; }
#sim-suite .j-card .j-file-pick span { pointer-events: none; }
#sim-suite .j-card .j-file-pick:has(input:disabled) { opacity: .48; }
#sim-suite .j-card img.j-bill-image { max-width: min(100%, 310px); max-height: 300px; object-fit: contain; border-radius: 12px; border: 1px solid #dfd6c6; }
#sim-suite .j-card img.j-bill-image[hidden] { display: none; }
#sim-suite #j-sale-error:empty, #sim-suite #j-terms-result:empty, #sim-suite #j-nam-payment-result:empty { display: none; }
/* The approved CSS hides #j-owner in the Owner "Tiền về" pane (it only ever shows there for an ASSIST commission task),
   so the SELF-path tracking card would never be visible. Show it in "Tiền về" (DEV-P2-09). */
#sim-suite.uf-owner[data-uf-pane=receipts] #j-owner:not([hidden]) { display: grid !important; }
/* Sync status (SIM → Tiền Biết Nói) inside the deal: only while waiting/failed; reuses j-card/j-primary. */
#sim-suite .j-sync[hidden] { display: none !important; }
#sim-suite #j-owner-sync { display: grid; gap: 8px; border-top: 1px solid #dfd6c6; padding-top: 10px; }
#sim-suite #j-nam-sync-result:empty, #sim-suite #j-owner-sync-result:empty { display: none; }
/* Part 3 · Nhờ hỗ trợ giao dịch. Cards and ids come from the approved snapshot (styles in vendor/approved-ux.css);
   only spacing for the real image pickers/previews and hiding empty status lines are added here. */
#sim-suite #j-commission:not([hidden]), #sim-suite #j-owner-assist:not([hidden]), #sim-suite #j-pay-commission:not([hidden]), #sim-suite #j-collect:not([hidden]), #sim-suite #pf-helper-proof:not([hidden]) { display: grid; gap: 12px; justify-items: start; }
#sim-suite #j-collect .j-fields, #sim-suite #j-pay-commission > *, #sim-suite #j-collect > button { width: 100%; box-sizing: border-box; }
#sim-suite :is(#jp-result, #pc-trung-result, #pc-owner-result, #j-owner-result, #hd-finish, #hd-worker-msg, #hd-appointment-error, #hs-worker-status, #pf-helper-status, #pf-sender-status, #hd-status, #jp-trung-status):empty { display: none; }
#sim-suite #hd-excluded p { margin: 6px 0; font-size: 13px; color: #6c6d5d; }
#sim-suite #hd-worker .uf-picker, #sim-suite #uf-workspace .uf-picker { margin: 8px 0; }
#sim-suite #uf-workspace #uf-empty:not([hidden]) { display: block; }
#sim-suite :is(#hs-worker-photo, #hs-nam-photo, #jp-ctv-photo, #jp-owner-photo, #pf-owner-photo, #pf-sender-photo, #pf-helper-photo, #jp-trung-photo) { max-width: min(100%, 340px); height: auto; }
/* Owner rule "giữ 24h đầy đủ": CTV tells Nam the customer set a date (in the take panel); Owner pane "Giữ số". */
#sim-shop-demo .s-hold { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-bg); }
#sim-shop-demo .s-hold p { margin: 0; }
#sim-shop-demo #s-hold-form { display: grid; gap: 10px; }
#sim-shop-demo #s-hold-form label { display: grid; gap: 5px; font-size: 12px; color: var(--s-muted); }
#sim-shop-demo #s-hold-form select, #sim-shop-demo #s-hold-form input { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--s-line); border-radius: 10px; background: #fff; color: inherit; }
#sim-shop-demo #s-hold-form button { justify-self: start; }
#sim-suite #ow-holds .ow-item strong { white-space: normal; }
#sim-suite #ow-holds .j-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Màn Hà · đối chiếu kho SIM (design: ha-period-preview.html c8dcd11e…; approved cream palette; dark chosen by the user only). */
#sim-suite #ha-period { --hp-bg:#f5f0e6; --hp-paper:#fffdf8; --hp-ink:#283c33; --hp-soft:#626d63; --hp-line:#dcd3c3; --hp-brand:#914b2b; --hp-action-ink:#fffdf8; --hp-tint:#f1e4d1; --hp-green:#17633e; --hp-green-bg:#eaf6ee; --hp-red:#a32939; --hp-red-bg:#fff0f1;
  color-scheme: light; font-family: 'Be Vietnam Pro', sans-serif; color: var(--hp-ink); background: var(--hp-bg); border: 1px solid var(--hp-line); border-radius: 14px; overflow: hidden; font-size: 14px; line-height: 1.65; margin: 16px 0; overflow-wrap: anywhere; }
#sim-suite #ha-period[data-appearance="dark"] { color-scheme: dark; --hp-bg:#201f1d; --hp-paper:#2a2825; --hp-ink:#e8e2d8; --hp-soft:#b8b0a4; --hp-line:#514a42; --hp-brand:#d5a47e; --hp-action-ink:#2b211b; --hp-tint:#41352a; --hp-green:#a3c9ad; --hp-green-bg:#293b30; --hp-red:#e3aaac; --hp-red-bg:#432e31; }
#sim-suite #ha-period * { box-sizing: border-box; }
#sim-suite #ha-period [hidden] { display: none !important; }
#sim-suite #ha-period button, #sim-suite #ha-period input, #sim-suite #ha-period select { font-family: 'Be Vietnam Pro', sans-serif; letter-spacing: normal; color: inherit; }
#sim-suite #ha-period .hp-topbar { padding: 20px; background: var(--hp-paper); display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-topbar > div { min-width: 0; flex: 1; }
#sim-suite #ha-period .hp-monogram { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--hp-tint); color: var(--hp-brand); border-radius: 10px; font-size: 15px; font-weight: 500; }
#sim-suite #ha-period .hp-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
#sim-suite #ha-period .hp-caption { color: var(--hp-soft); font-size: 12px; display: block; }
#sim-suite #ha-period .hp-title { font-size: 25px; line-height: 1.35; letter-spacing: -.6px; font-weight: 500; margin: 0; color: var(--hp-ink); }
#sim-suite #ha-period .hp-theme-toggle { font-size: 12px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--hp-line); border-radius: 11px; background: var(--hp-paper); color: var(--hp-soft); white-space: nowrap; }
#sim-suite #ha-period .hp-body { padding: 20px; }
#sim-suite #ha-period .hp-period { display: grid; gap: 6px; color: var(--hp-soft); font-size: 14px; }
#sim-suite #ha-period .hp-period select { width: 100%; background: var(--hp-paper); color: var(--hp-ink); border: 1px solid var(--hp-line); border-radius: 11px; min-height: 44px; padding: 11px 12px; font-size: 16px; }
#sim-suite #ha-period .hp-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--hp-line); margin: 16px 0 18px; }
#sim-suite #ha-period .hp-tabs button { padding: 10px 0 11px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 14px; color: var(--hp-soft); font-weight: 500; min-height: 44px; }
#sim-suite #ha-period .hp-tabs button[aria-selected="true"] { color: var(--hp-brand); border-bottom-color: var(--hp-brand); }
#sim-suite #ha-period .hp-hero { background: var(--hp-paper); border: 1px solid var(--hp-line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
#sim-suite #ha-period .hp-hero-label { font-size: 12px; color: var(--hp-soft); display: block; }
#sim-suite #ha-period .hp-hero-amount { display: block; font-size: 32px; letter-spacing: -.7px; font-weight: 500; line-height: 1.3; margin: 6px 0; font-variant-numeric: tabular-nums; overflow-wrap: normal; color: var(--hp-brand); }
#sim-suite #ha-period .hp-hero-note, #sim-suite #ha-period .hp-block, #sim-suite #ha-period .hp-stale { font-size: 12px; color: var(--hp-soft); margin: 8px 0 0; }
#sim-suite #ha-period .hp-stale { color: var(--hp-red); }
#sim-suite #ha-period .hp-main, #sim-suite #ha-period .hp-copy-money { background: var(--hp-brand); color: var(--hp-action-ink); width: 100%; min-height: 44px; border: 0; border-radius: 11px; padding: 10px 14px; font-size: 14px; font-weight: 500; margin-top: 16px; display: block; }
#sim-suite #ha-period .hp-main.hp-secondary { border: 1px solid var(--hp-line); background: var(--hp-paper); color: var(--hp-ink); }
#sim-suite #ha-period .hp-copy-feedback { font-size: 12px; color: var(--hp-soft); margin: 8px 0 0; }
#sim-suite #ha-period .hp-math { margin: 0; }
#sim-suite #ha-period .hp-math > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; font-size: 14px; }
#sim-suite #ha-period .hp-math dt { color: var(--hp-soft); }
#sim-suite #ha-period .hp-math dt small { display: block; font-size: 11px; }
#sim-suite #ha-period .hp-math dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#sim-suite #ha-period .hp-math .hp-rule { border-top: 1px solid var(--hp-line); margin-top: 8px; padding-top: 14px; }
#sim-suite #ha-period .hp-key { font-size: 12px; color: var(--hp-soft); margin: 14px 0 0; }
#sim-suite #ha-period .hp-divide-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-divide-form label, #sim-suite #ha-period .hp-editor label { display: grid; gap: 6px; font-size: 14px; color: var(--hp-ink); }
#sim-suite #ha-period .hp-divide-form .hp-main, #sim-suite #ha-period .hp-editor .hp-main { margin-top: 0; }
#sim-suite #ha-period .hp-input { font-size: 16px; line-height: 1.5; min-width: 0; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--hp-line); border-radius: 11px; background: var(--hp-paper); color: var(--hp-ink); }
#sim-suite #ha-period .hp-error { font-size: 12px; color: var(--hp-red); margin: 0; }
#sim-suite #ha-period .hp-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
#sim-suite #ha-period .hp-group { font-size: 14px; min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-radius: 11px; }
#sim-suite #ha-period .hp-group[aria-pressed="true"] { border-color: currentColor; font-weight: 500; }
#sim-suite #ha-period .hp-good { background: var(--hp-green-bg); color: var(--hp-green); }
#sim-suite #ha-period .hp-wait { background: var(--hp-red-bg); color: var(--hp-red); }
#sim-suite #ha-period .hp-period-total { font-size: 12px; color: var(--hp-soft); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
#sim-suite #ha-period .hp-sim-search { display: grid; gap: 6px; font-size: 12px; color: var(--hp-soft); margin-bottom: 16px; }
#sim-suite #ha-period .hp-status { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 500; border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
#sim-suite #ha-period .hp-carry { color: var(--hp-brand); font-size: 11px; font-weight: 500; display: block; margin-top: 4px; }
#sim-suite #ha-period .hp-sim { border-top: 1px solid var(--hp-line); padding: 12px 0; }
#sim-suite #ha-period .hp-sim:first-child { border-top: 0; padding-top: 0; }
#sim-suite #ha-period .hp-sim-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
#sim-suite #ha-period .hp-sim-name { font-size: 14px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; }
#sim-suite #ha-period .hp-sim-money { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#sim-suite #ha-period .hp-line { color: var(--hp-soft); font-size: 12px; margin: 5px 0 0; }
#sim-suite #ha-period details.hp-sim-detail { margin-top: 7px; }
#sim-suite #ha-period details.hp-sim-detail > summary { font-size: 12px; color: var(--hp-soft); min-height: 44px; display: flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; }
#sim-suite #ha-period details.hp-sim-detail > summary::-webkit-details-marker { display: none; }
#sim-suite #ha-period details.hp-sim-detail > summary::before { content: '+'; font-size: 15px; color: var(--hp-brand); }
#sim-suite #ha-period details.hp-sim-detail[open] > summary::before { content: '−'; }
#sim-suite #ha-period .hp-detail-lines { display: grid; gap: 5px; padding: 5px 0 6px; font-size: 12px; color: var(--hp-soft); }
#sim-suite #ha-period .hp-detail-lines > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
#sim-suite #ha-period .hp-detail-lines b { font-weight: 400; color: var(--hp-ink); text-align: right; }
#sim-suite #ha-period .hp-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.5; table-layout: fixed; }
#sim-suite #ha-period .hp-table th { font-weight: 400; color: var(--hp-soft); text-align: left; background: var(--hp-bg); padding: 11px 10px; border-bottom: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-table th:first-child { width: 28%; }
#sim-suite #ha-period .hp-table th:nth-child(2) { width: 22%; text-align: right; }
#sim-suite #ha-period .hp-table td { vertical-align: top; padding: 11px 10px; border-bottom: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-table td:nth-child(2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#sim-suite #ha-period .hp-table p { margin: 3px 0 0; font-size: 11px; color: var(--hp-soft); }
#sim-suite #ha-period .hp-list-phone { display: none; }
#sim-suite #ha-period .hp-empty { font-size: 13px; color: var(--hp-soft); padding: 12px 0; }
#sim-suite #ha-period .hp-list-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--hp-line); padding-top: 12px; margin-top: 12px; font-size: 12px; color: var(--hp-soft); }
#sim-suite #ha-period .hp-list-pager button { font-size: 14px; min-height: 44px; border: 1px solid var(--hp-line); border-radius: 11px; padding: 8px 12px; background: var(--hp-paper); color: var(--hp-ink); }
#sim-suite #ha-period .hp-list-pager button:disabled { opacity: .45; }
#sim-suite #ha-period .hp-subsection { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-subsection > summary { font-size: 12px; color: var(--hp-soft); min-height: 44px; cursor: pointer; }
#sim-suite #ha-period .hp-subsection p { font-size: 12px; color: var(--hp-soft); margin: 8px 0; }
#sim-suite #ha-period .hp-cost-row { border-bottom: 1px solid var(--hp-line); }
#sim-suite #ha-period .hp-cost-row > summary { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; list-style: none; padding: 14px 0; min-height: 44px; font-size: 14px; cursor: pointer; }
#sim-suite #ha-period .hp-cost-row > summary::-webkit-details-marker { display: none; }
#sim-suite #ha-period .hp-cost-row > summary span::after { content: ' +'; color: var(--hp-brand); }
#sim-suite #ha-period .hp-cost-row[open] > summary span::after { content: ' −'; }
#sim-suite #ha-period .hp-cost-row b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
#sim-suite #ha-period .hp-cost-row p { font-size: 12px; color: var(--hp-soft); margin: 0 0 10px; }
#sim-suite #ha-period .hp-cost-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 500; }
#sim-suite #ha-period .hp-editor { display: grid; gap: 14px; margin-top: 16px; }
#sim-suite #ha-period .hp-editor h3 { font-size: 18px; font-weight: 500; margin: 0; }
#sim-suite #ha-period .hp-quiet { border: 0; background: transparent; color: var(--hp-brand); font-size: 14px; min-height: 44px; padding: 6px 0; }
#sim-suite #ha-period .hp-form-actions { display: flex; align-items: center; gap: 16px; }
#sim-suite #ha-period .hp-form-actions .hp-main { flex: 1; width: auto; }
#sim-suite #ha-period .hp-msg { font-size: 12px; color: var(--hp-red); margin: 12px 0 0; min-height: 1em; }
@media (min-width: 901px) { #sim-suite #ha-period .hp-summary-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; } #sim-suite #ha-period .hp-summary-grid .hp-hero { margin: 0; } #sim-suite #ha-period .hp-math > div:first-child { padding-top: 0; } }
@media (max-width: 760px) { #sim-suite #ha-period .hp-table { display: none; } #sim-suite #ha-period .hp-list-phone { display: grid; } }
@media (max-width: 400px) { #sim-suite #ha-period .hp-topbar, #sim-suite #ha-period .hp-body { padding: 16px; } #sim-suite #ha-period .hp-hero { padding: 16px; } #sim-suite #ha-period .hp-tabs { gap: 15px; } }
/* Tùng/COD — styles of the approved snapshot (#cod-*), plus the fee card and deposit form in the same pattern. */
#sim-suite #cod-tung, #sim-suite #cod-huong, #sim-suite #cod-nam, #sim-suite #cod-owner, #sim-suite #cod-trung, #sim-suite #cod-ctv, #sim-suite #fee-card { max-width: 1100px; margin: 16px auto; padding: 20px; }
#sim-suite .cod-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#sim-suite .cod-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
#sim-suite .cod-tabs button { flex: 1; white-space: nowrap; }
#sim-suite .cod-tabs button[aria-pressed=true] { background: var(--ui-ink, #343d35); color: var(--ui-paper, #fffdf8); }
#sim-suite .cod-order, #sim-suite .cod-batch { padding: 16px 0; border-top: 1px solid var(--ui-line, #ded6c8); display: grid; gap: 10px; }
#sim-suite .cod-choice { display: flex; align-items: flex-start; gap: 12px; }
#sim-suite .cod-choice input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
#sim-suite .cod-description { display: grid; gap: 5px; min-width: 0; }
#sim-suite .cod-description strong, #sim-suite .cod-money { font-variant-numeric: tabular-nums; }
#sim-suite .cod-form, #sim-suite .cod-form label { display: grid; gap: 10px; }
#sim-suite .cod-form { max-width: 560px; }
#sim-suite .cod-form label { margin: 6px 0; }
#sim-suite .cod-form input, #sim-suite .cod-form select { width: 100%; box-sizing: border-box; min-width: 0; }
#sim-suite .cod-meta { color: var(--ui-muted, #746c5c); font-size: 13px; overflow-wrap: anywhere; margin: 0; }
#sim-suite .cod-proof { display: block; max-width: min(100%, 340px); max-height: 340px; object-fit: contain; border-radius: 12px 12px 12px 3px; background: var(--ui-soft, #f0ebe0); }
#sim-suite #cod-feedback:empty, #sim-suite #cod-owner-msg:empty, #sim-suite #cod-trung-msg:empty, #sim-suite #cod-nam-msg:empty, #sim-suite #fee-msg:empty, #sim-suite #cod-huong-msg:empty { display: none; }
#sim-suite .cod-empty { padding: 18px 0; color: var(--ui-muted, #746c5c); }
#sim-suite .cod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* One money record Nam → Owner → Trung: the same step pills as the approved take path (.s-take-path). */
#sim-suite .cod-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
#sim-suite .cod-steps li { padding: 7px 9px; border-radius: 8px; font-size: 12px; color: var(--ui-muted, #746c5c); background: var(--ui-soft, #f0ebe0); }
#sim-suite .cod-steps li[aria-current] { background: #f1e4d1; color: #914b2b; font-weight: 600; }
#sim-suite .cod-warn { color: #a32939; font-size: 13px; margin: 0; }
@media (max-width: 540px) { #sim-suite #cod-tung, #sim-suite #cod-huong, #sim-suite #cod-nam, #sim-suite #cod-owner, #sim-suite #cod-trung, #sim-suite #cod-ctv, #sim-suite #fee-card { margin: 10px 0; padding: 16px; } #sim-suite .cod-tabs { gap: 5px; } #sim-suite .cod-tabs button { padding: 10px 7px; font-size: 13px; } #sim-suite .cod-choice { gap: 10px; } }
/* Part 5 · the ledger blocks are grid items of #trung-ledger main like the approved snapshot's direct children: they keep the
   column width (min-width 0) and the wide table scrolls inside .table-wrap instead of being cut by #trung-ledger's overflow. */
#trung-ledger :is(#tl-block, #ng-block):not([hidden]) { display: grid; gap: 14px; min-width: 0; }
/* Part 6 · Kho số: an action or a lock reason stays inside its own cell (the table is nowrap): on its own line, never over the next column. */
#sim-suite #nam-stock td .stock-act { display: block; margin-top: 6px; min-height: 40px; padding: 6px 10px; white-space: nowrap; width: max-content; }
#sim-suite #nam-stock .stock-reason { display: block; white-space: normal; max-width: 360px; font-size: 12px; color: var(--ui-muted, #746c5c); }
/* Mẫu bài sửa được · Quỹ AI · Nhờ AI (mô phỏng) */
#sim-suite .ai-wrap { margin: 12px 0; }
#sim-suite .ai-wrap > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* Open/close sign on the two folding frames (templates, AI helper): a boxed + / − before the title, so the title no longer looks like a plain heading with empty space under it */
#sim-suite .ai-wrap > summary { gap: 10px; list-style: none; cursor: pointer; }
#sim-suite .ai-wrap > summary::-webkit-details-marker { display: none; }
#sim-suite .ai-wrap > summary::before { content: '+'; flex: none; width: 26px; height: 26px; box-sizing: border-box; display: inline-grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 18px; line-height: 1; font-weight: 500; }
#sim-suite .ai-wrap[open] > summary::before { content: '−'; }
/* Inline form errors: inside the form, under the field or above the buttons, never below them */
#sim-suite .form-err { margin: 0; color: #b3261e; font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
#sim-suite .form-err:empty { display: none; }
#sim-suite .tp-form { display: grid; gap: 8px; }
#sim-suite .tp-form label { display: grid; gap: 4px; font-size: 13px; }
#sim-suite .tp-form input, #sim-suite .tp-form textarea, #sim-suite .tp-form select { width: 100%; box-sizing: border-box; font: inherit; }
#sim-suite .tp-msg { margin: 4px 0; min-height: 1.2em; color: #2e6b32; font-weight: 600; }
#sim-suite .tp-warn { margin: 0; color: #8a5a00; font-size: 12.5px; }
#sim-suite .tp-body { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
#sim-suite .ai-banner { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fff3d6; border: 1px solid #e3c36f; color: #6a4b00; font-size: 13px; font-weight: 600; }
#sim-suite .ai-label { margin: 0; color: #8a5a00; font-size: 12.5px; font-weight: 700; }
#sim-suite .af-status { margin: 0; font-size: 12.5px; color: #4a4b3d; font-weight: 600; }
#sim-suite .af-status[data-over="1"] { color: #b3261e; }
#ow-aifund .j-actions input, #ow-aifund .j-actions select, #ow-templates .j-actions input, #ow-templates .j-actions select, .ai-wrap .j-actions input, .ai-wrap .j-actions select { min-height: 40px; flex: 1 1 150px; min-width: 0; box-sizing: border-box; }
#sim-suite .ai-wrap .ow-item strong, #ow-templates .ow-item strong, #ow-aifund .ow-item strong { white-space: normal; overflow-wrap: anywhere; }
#sim-suite .ai-wrap .ow-item button, #ow-templates .ow-item button, #ow-aifund button, .ai-wrap .j-actions button { min-height: 40px; }
/* The Owner / accounting work navigation now has up to 10 entries: on a phone they wrap onto more rows instead of running off the right edge (they were unreachable). */
/* (the approved sheet sets #sim-suite.uf-owner #uf-nav to one non-wrapping row up to 540px; this later rule of equal specificity lets it wrap) */
@media (max-width: 540px) { #sim-suite.uf-owner #uf-nav { flex-wrap: wrap; gap: 0 20px; } }
#sim-suite .ai-limit { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #eef5ee; border: 1px solid #b9d3bb; color: #214d25; font-size: 13px; font-weight: 600; }
#sim-suite .ai-limit:empty { display: none; }
#sim-suite .ai-limit[data-state="near"] { background: #fff3d6; border-color: #e3c36f; color: #6a4b00; }
#sim-suite .ai-limit[data-state="blocked"] { background: #fdecea; border-color: #e0a29c; color: #8c1d14; }

#sim-suite .ai-image { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0; }
#sim-suite .bl-field { display: grid; gap: 6px; margin: 8px 0; font-size: 14px; }
#sim-suite .bl-field input, #sim-suite .bl-field select { width: 100%; box-sizing: border-box; min-height: 44px; }
#sim-suite .bl-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 14px; }
#sim-suite .bl-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
#sim-suite .bl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#sim-suite .bl-scroll { overflow-x: auto; max-width: 100%; }
#sim-suite .bl-out table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
#sim-suite .bl-out th, #sim-suite .bl-out td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #e3dccb; white-space: nowrap; }
#sim-suite .bl-out .sim { font-weight: 700; letter-spacing: .02em; }
#sim-suite .bl-sub { margin: 8px 0; font-size: 13.5px; }
#bl-ctv .pill , #bl-nam .pill , #bl-owner .pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin: 2px 0; }
#bl-ctv .pill.ok , #bl-nam .pill.ok , #bl-owner .pill.ok { background: #e3f1e5; color: #1f5a2a; } #bl-ctv .pill.no , #bl-nam .pill.no , #bl-owner .pill.no { background: #fdecea; color: #8c1d14; } #bl-ctv .pill.gray , #bl-nam .pill.gray , #bl-owner .pill.gray { background: #eee8d9; color: #5b5440; }
#bl-ctv-wrap, #bl-ctv, #bl-nam, #bl-owner, #bl-ctv .bl-out, #bl-nam .bl-out, #bl-owner .bl-out, #bl-ctv .bl-field, #bl-nam .bl-field, #bl-owner .bl-field { min-width: 0; max-width: 100%; box-sizing: border-box; }
#bl-ctv .bl-out , #bl-nam .bl-out , #bl-owner .bl-out { overflow-x: hidden; }
#bl-ctv .ai-banner, #bl-nam .ai-banner, #bl-owner .ai-banner, #bl-ctv .j-note, #bl-nam .j-note, #bl-owner .j-note, #bl-ctv .bl-sub, #bl-nam .bl-sub, #bl-owner .bl-sub, #bl-ctv .bl-check , #bl-nam .bl-check , #bl-owner .bl-check { overflow-wrap: anywhere; }
#bl-ctv .bl-out th, #bl-nam .bl-out th, #bl-owner .bl-out th, #bl-ctv .bl-out td , #bl-nam .bl-out td , #bl-owner .bl-out td { padding: 6px 5px; }
#bl-ctv .bl-price , #bl-nam .bl-price , #bl-owner .bl-price { font-size: 12.5px; color: #5b5440; font-weight: 400; }

#sim-suite .jn-push, .jn-push { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: #eef5ee; border: 1px solid #b9d3bb; color: #214d25; font-size: 14px; line-height: 1.45; }
.jn-push p { margin: 4px 0; overflow-wrap: anywhere; } .jn-push .j-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; } .jn-push button { min-height: 44px; }
#sim-suite .s-voice-note { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fff3d6; border: 1px solid #e3c36f; color: #6a4b00; font-size: 13.5px; line-height: 1.45; }
#sim-suite .s-voice-note[hidden] { display: none; }
#sim-suite .bl-prov { margin: 14px 0 4px; border-top: 1px solid var(--ui-line, #e6dfd2); padding-top: 8px; }
#sim-suite .bl-prov > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
#sim-suite .bl-prov-item { margin: 10px 0; padding-bottom: 8px; border-bottom: 1px dashed var(--ui-line, #e6dfd2); overflow-wrap: anywhere; }
#sim-suite #bl-nam, #sim-suite #bl-owner { max-width: 760px; }
#sim-suite .af-provider { margin: 16px 0; padding-top: 10px; border-top: 1px solid var(--ui-line, #e6dfd2); }
#sim-suite .af-provider .j-actions input { min-height: 44px; }
#sim-suite .af-prov-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#sim-suite .af-prov-totals div { padding: 10px 12px; background: #f6efe1; border-radius: 10px; display: grid; gap: 2px; }
#sim-suite .af-prov-totals span { font-size: 12px; color: #6c6d5d; }
#sim-suite .af-prov-totals strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#sim-suite .af-prov-msg { margin: 4px 0; color: #b3261e; font-weight: 600; }
#sim-suite .af-prov-ok { margin: 4px 0; min-height: 1.2em; color: #2e6b32; font-weight: 600; }

#sim-suite .practice-bar { position: sticky; top: 0; z-index: 40; margin: 0; padding: 8px 20px; background: #fff0c2; border-bottom: 2px solid #d9a400; color: #4d3800; display: grid; gap: 6px; box-sizing: border-box; }
#sim-suite .practice-bar[hidden] { display: none; }
#sim-suite .practice-bar .pb-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
#sim-suite .practice-bar .pb-state { font-size: 15px; overflow-wrap: anywhere; }
#sim-suite .practice-bar .pb-env { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #4d3800; color: #fff0c2; }
#sim-suite .practice-bar .pb-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#sim-suite .practice-bar select { flex: 1 1 220px; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; font-size: 15px; }
#sim-suite .practice-bar button { min-height: 44px; }
#sim-suite .practice-bar .pb-msg { margin: 0; color: #8c1d14; font-weight: 600; }
@media (max-width: 540px) { #sim-suite .practice-bar { padding: 8px 12px; } #sim-suite .practice-bar .pb-pick > * { flex: 1 1 100%; } }
#sim-suite #practice-admin { margin-top: 16px; }
#sim-suite #practice-admin input { min-height: 44px; box-sizing: border-box; max-width: 100%; }

#sim-suite #nh-huong .nh-primary:disabled, #sim-suite #nh-huong .nh-primary.is-blocked { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
#sim-suite #nh-huong .nh-need { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff0c2; color: #4d3800; font-weight: 600; overflow-wrap: anywhere; }
#sim-suite #nh-huong .nh-need[hidden] { display: none; }
#sim-suite #nh-huong .nh-readbox { display: grid; gap: 8px; padding: 12px; border: 1px solid #d9d2c3; border-radius: 12px; }
#sim-suite #nh-huong .nh-readbox[hidden] { display: none; }
#sim-suite #nh-huong .nh-conv { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #f4f1e8; }
#sim-suite #nh-huong .nh-conv[hidden] { display: none; }
#sim-suite #nh-huong .nh-conv p { margin: 0; overflow-wrap: anywhere; }
#sim-suite #nh-huong .nh-conv span { color: #5f5846; }
#sim-suite #nh-huong .nh-conv strong { font-size: 18px; letter-spacing: .02em; }
#sim-suite #nh-huong .nh-conv[data-status="NEEDS_CHECK"] { background: #fff0c2; border-left: 4px solid #d9a400; }
#sim-suite #nh-huong .nh-conv[data-status="OK"] { background: #e6f4e6; border-left: 4px solid #2e7d32; }
#sim-suite #nh-huong .nh-conv-state { font-weight: 700; }
#sim-suite #nh-huong #nh-h-use, #sim-suite #nh-huong #nh-h-ocr { min-height: 44px; }
#sim-suite i[data-lucide] svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
#sim-suite .s-voice.is-recording { outline: 3px solid #b3261e; outline-offset: 2px; }
#sim-suite .sk-alert { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: #fde7e4; color: #8c1d14; font-weight: 600; overflow-wrap: anywhere; }
#sim-suite .sk-alert[hidden] { display: none; }
#sim-suite .sk-preview { margin: 12px 0; padding: 12px; border: 1px solid #c9ced6; border-radius: 8px; } #sim-suite .sk-preview[hidden] { display: none; }
#sim-suite .sk-preview h3 { margin: 0 0 6px; } #sim-suite .sk-preview p { overflow-wrap: anywhere; }
#sim-suite .sk-counts { margin: 6px 0; padding-left: 18px; } #sim-suite .sk-errors { max-height: min(240px, 28vh); overflow: auto; margin: 6px 0; padding-left: 28px; color: #8c1d14; overflow-wrap: anywhere; }
#sim-suite .sk-preview .j-actions { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; z-index: 5; margin: 8px -12px -12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #c9ced6; border-radius: 0 0 8px 8px; } #sim-suite .sk-preview button { min-height: 44px; }
#sim-suite .af-recent { margin: 4px 0 10px; padding-left: 18px; font-size: 0.9rem; overflow-wrap: anywhere; }
#sim-suite .is-recording .s-mic-text { margin-left: 6px; font-weight: 700; color: #b3261e; }
#sim-suite .s-mic-text[hidden] { display: none; }
#sim-suite #s-voice.is-recording, #sim-suite #sc-mic.is-recording { width: auto !important; min-width: 44px; padding-left: 12px !important; padding-right: 12px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
#sim-suite .is-recording .s-mic-text { margin-left: 0; }
#nh-nam .nh-todo { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff3d6; border: 1px solid #e3c36f; color: #5c4200; }
#nh-nam .nh-todo[hidden] { display: none; }
#nh-nam .nh-todo-go { margin: 4px 6px 0 0; }

/* ticket 261108: price unit next to the fields (F-1), one error line per group of fields, exact prices */
#sim-shop-demo .s-price-help { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--s-muted); }
#sim-shop-demo .s-field-error { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid #d98a6f; background: #fff1ea; color: #7a2e12; font-size: 12.5px; line-height: 1.45; }
#sim-shop-demo .s-field-error[hidden] { display: none; }
#sim-shop-demo .s-filters [aria-invalid="true"] { border-color: #c4552d; outline: 2px solid #f0b9a4; }

/* fix of 898e150: a button that offers the conversion of a price written in đồng, or moves a list of tails into "Cụm số" (the person presses it; nothing is searched until "Lọc SIM") */
#sim-shop-demo .s-fix { grid-column: 1 / -1; justify-self: start; margin-top: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid #b9895f; background: #fff9f0; color: #6b3d1e; font-size: 13px; min-height: 40px; max-width: 100%; white-space: normal; text-align: left; }
#sim-shop-demo .s-fix[hidden] { display: none; }
/* "Phiếu nối SIM khép lỗi 228899b" G-4: the box that shows, before sending, exactly what the receiver will read; F1: the hint next to "Cụm số" */
#sim-suite .ui-review { display: grid; gap: 8px; margin: 8px 0; padding: 12px; border: 1px solid #b9895f; border-radius: 12px; background: #fff9f0; color: #3b2a1a; }
#sim-suite .ui-review[hidden], #sim-suite .cc-field-error[hidden] { display: none; }
#sim-suite .ui-review p { margin: 0; overflow-wrap: anywhere; }
#sim-suite .cc-field-error { margin: 0; color: #a3261f; font-size: 14px; }
/* "Phiếu đổi cơ chế nhập SIM 09/11": the boxes that took free text are chosen; a line of a statement is a check box next to its text, a group of fields keeps one frame */
#sim-suite .mx-form .mx-dispute-lines, #sim-suite .cc-need { display: grid; gap: 8px; margin: 0; padding: 10px 12px; min-width: 0; border: 1px solid var(--ui-line, #dfd6c6); border-radius: 12px; }
#sim-suite .mx-form label.mx-check { display: flex; gap: 10px; align-items: flex-start; }
#sim-suite .mx-form label.mx-check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; }
#sim-suite .mx-form [hidden], #sim-suite .cc-need[hidden] { display: none; }
/* "Hẹn khách" of a ledger line (ticket 21e1b2ae): the day, the hour and the SIM tail chosen in three fields above the note */
#trung-ledger .tl-appt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 10px 12px; min-width: 0; border: 1px solid var(--ui-line, #dfd6c6); border-radius: 12px; }
#trung-ledger .tl-appt legend { padding: 0 6px; font-weight: 600; }
#trung-ledger .tl-appt p { grid-column: 1 / -1; }
#trung-ledger .tl-appt input, #trung-ledger .tl-appt select { width: 100%; min-width: 0; }
@media (max-width: 520px) { #trung-ledger .tl-appt { grid-template-columns: 1fr 1fr; } #trung-ledger .tl-appt label:nth-of-type(3) { grid-column: 1 / -1; } }

/* 81-screen 1C · Owner money table */
#sim-suite .ow-money { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
#sim-suite .ow-money th, #sim-suite .ow-money td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #dfd6c6; vertical-align: top; overflow-wrap: anywhere; }
#sim-suite .ow-money th { width: 45%; font-weight: 600; color: #4d5a4f; }
#sim-suite .ow-money td { font-variant-numeric: tabular-nums; }

/* 81-screen v3.2 · D · confirm before removing from the stock */
#sim-suite .sk-confirm { border: 2px solid var(--b7-gold, #c9972b); border-radius: 12px; padding: 12px; margin: 10px 0; background: #fffaf0; }
#sim-suite .sk-confirm h4 { margin: 0 0 6px; font-size: 16px; }
#sim-suite .sk-confirm ul { margin: 6px 0; padding-left: 18px; font-variant-numeric: tabular-nums; }
#sim-suite .sk-confirm .j-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#sim-suite .sk-confirm .j-actions button { min-height: 44px; }
#sim-suite .sk-confirm[hidden] { display: none; }
