
/* ================================================================
   MONITORING OUTBOUND. Tampilan disamakan dengan Monitoring Inbound tampilan admin (permintaan Novan 16 Okt 2026):
   kelas mi-* dari MiCss (tab bergaris bawah, qcard, mi-bar, filter segmented, tabel mi-v2tbl, mi-selbar, dialog mdyDialog_),
   teks 13px, skala 80%. Aturan MiCss yang terikat ke #miRoot / #miBar / #miBody diulang di sini untuk #moRoot.
   ================================================================ */
#moRoot { font-size: 13px; line-height: 1.45; color: var(--gray-900); }
#moRoot > :not(.mi-hp) { zoom: .8; }   /* layar HP checker tetap besar, seperti Monitoring Inbound */
#moBody { display: flex; flex-direction: column; gap: 12px; }
#moRoot .mi-top { margin-bottom: 14px; }
#moRoot > .mi-note { font-size: 13px; }
#moRoot .mi-tabs { gap: 4px; border-bottom: 1px solid var(--gray-200); flex: 1; min-width: 0; scrollbar-width: none; }
#moRoot .mi-tabs::-webkit-scrollbar { display: none; }
#moRoot .mi-tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; padding: 10px 14px;
  min-height: 0; font: 500 13px var(--font, inherit); color: var(--gray-600); }
#moRoot .mi-tab:hover { color: var(--gray-900); }
#moRoot .mi-tab.is-on { background: none; color: #1D4ED8; font-weight: 600; border-bottom-color: #2563EB; }
#moBody .mi-bar { margin-bottom: 0; }
#moBody .mi-bar .btn, #moBody .mi-v2foot .btn, #moBody .mo-switch .btn, #moBody .mi-form .btn { padding: 7px 12px !important; font-size: 13px !important; font-weight: 500 !important; min-height: 0 !important; }
#moBody .mi-btn-s { padding: 5px 10px !important; font-size: 13px !important; font-weight: 500 !important; min-height: 0 !important; }
#moBody .mi-bar input, #moBody .mi-bar select { min-height: 32px; padding: 4px 8px; font-size: 13px; color: var(--gray-900); }
#moBar { display: flex; flex-direction: column; gap: 10px; }
#moBar .mi-qcards { margin-bottom: 0; }
#moBar .mi-q input { width: 100%; box-sizing: border-box; padding: 9px 30px 9px 12px; border: 1px solid var(--gray-300); border-radius: 10px; font: inherit; background: var(--white); color: var(--gray-900); }
#moBar .mi-chips { gap: 2px; background: var(--gray-100); border-radius: 8px; padding: 3px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
#moBar .mi-chips::-webkit-scrollbar { display: none; }
#moBar .mi-chip { flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; padding: 6px 12px; min-height: 0; font: 500 13px var(--font, inherit); color: var(--gray-600); cursor: pointer; }
#moBar .mi-chip.is-on { background: var(--white); color: var(--gray-900); font-weight: 600; box-shadow: 0 1px 2px rgba(15,36,72,.08); }
#moBody .mi-sum { color: var(--gray-600); }
#moBody .mi-sum b { color: var(--gray-900); }
#moBody .mi-chk { min-height: 0; font-size: 13px; }
#moBody .mi-panel { border-radius: 10px; }
#moBody .mi-tbl { font-size: 13px; }
#moBody .mi-note { font-size: 13px; margin-bottom: 0; }
#moBody .mi-empty { padding: 24px 12px; font-size: 13px; }
#moBody .mi-tbl-wrap { max-height: calc((100vh - 300px) * 1.25); }
#moRoot .mi-pill { font-size: 12px; padding: 3px 10px; }
/* Bar DN dipilih sebaris dengan filter (kanan), tinggi sama dengan tombol filter -> tabel tidak bergeser. */
#moBar .mi-q { flex: 1 1 220px; min-width: 200px; }
#moBar .mo-selin { margin-left: auto; display: flex; min-width: 0; }
#moBar .mo-selin:empty { display: none; }
#moBar .mo-selbar { margin: 0; padding: 4px 6px 4px 12px; gap: 8px; flex-wrap: nowrap; border-radius: 8px; min-width: 0; }
#moBar .mo-selbar b { white-space: nowrap; }
#moBar .mo-selbar .mi-selrefs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 220px; }
#moBar .mo-selbar .btn { padding: 5px 10px !important; white-space: nowrap; }
#moBar .mo-selbar .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
#moBar .mo-selbar.is-none b { color: #CBD5E1; font-weight: 600; }
/* Kartu angka atas bisa diklik = filter status */
.mo-qcard { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.mo-qcard:hover { border-color: #93C5FD; }
.mo-qcard.is-on { border-color: #2563EB; box-shadow: inset 0 0 0 1px #2563EB; }
/* Tabel */
.mo-tbl td { vertical-align: middle; }
.mo-mat td.mi-bad { color: #B91C1C; font-weight: 700; }
/* Kartu HP (<= 760px), tabel disembunyikan */
.mo-mlist { display: none; }
.mo-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mo-card.is-sel { border-color: #2563EB; background: #EFF6FF; }
.mo-card-h { display: flex; align-items: center; gap: 8px; }
.mo-card-h .mi-mono { flex: 1 1 auto; font-size: 14px; }
.mo-card-h input { width: 18px; height: 18px; accent-color: #2563EB; }
.mo-card-m { color: var(--gray-700); font-size: 12px; }
.mo-card .mi-linkbtn { align-self: flex-start; padding-left: 0; }
.mo-card-mat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--gray-200); padding-top: 6px; }
.mo-card-acts { justify-content: flex-start; margin-top: 4px; }
.mo-acts { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.mo-sub-row > td { background: var(--gray-50, #F8FAFC) !important; padding: 8px 12px 12px 44px; }
.mo-mat { font-size: 12.5px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.mo-mat th { font-size: 12px; }
.mo-mp { display: inline-flex; align-items: center; gap: 4px; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; margin-top: 2px; }
.mo-mp svg { width: 12px; height: 12px; flex: none; }
.mo-urg { display: inline-block; background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.mo-pkwrap { max-height: 46vh; }
/* Upload */
.mo-dz { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--gray-300); border-radius: 10px; padding: 32px 16px; text-align: center; color: var(--gray-600); cursor: pointer; background: var(--white); }
.mo-dz:hover, .mo-dz.is-over { border-color: #2563EB; background: #EFF6FF; }
.mo-dz b { color: var(--gray-900); font-size: 14px; }
.mo-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
#moUpRes .mi-panel .mi-grow { flex: 1 1 auto; }
/* Pengaturan */
.mo-set { display: grid; gap: 12px; max-width: 760px; }
.mo-h { margin: 0; font-size: 15px; }
.mo-switch2 { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--gray-200); }
.mo-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mo-set textarea { resize: vertical; }
/* Dialog (mdyDialog_) */
.mo-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.mo-up { text-transform: uppercase; }
.mdy-dlg .btn.mo-danger { background: #DC2626; border-color: #DC2626; color: #fff; }
.mdy-dlg .mi-note { margin-bottom: 0; }
@media (max-width: 760px) {
  #moRoot .mi-top { gap: 8px; margin-bottom: 12px; }
  #moRoot .mi-tabs { flex: 1 1 100%; gap: 6px; border-bottom: 0; padding-bottom: 2px; overflow-x: auto; }
  #moRoot .mi-tab { flex: 0 0 auto; margin: 0; border: 1px solid var(--gray-200); border-radius: 999px; padding: 7px 14px; background: var(--white); color: var(--gray-700); }
  #moRoot .mi-tab.is-on { background: #2563EB; border-color: #2563EB; color: #fff; }
  #moBar .mi-chips, #moBar .mi-q, #moBar .mi-range { flex: 1 1 100%; min-width: 0; max-width: none; }
  #moBar .mi-range label { flex: 1 1 50%; }
  #moBar .mi-chip { flex: 1 0 auto; }
  #moBody .mi-bar .btn, #moBody .mi-bar input { min-height: 40px !important; }
  #moBody .mi-tbl-wrap { max-height: none; }
  #moBody .mo-tblw { display: none; }
  #moBody .mo-mlist { display: flex; flex-direction: column; gap: 8px; }
  #moBody .mi-list:has(.mo-mlist) { background: none; border: 0; padding: 0; }
  #moBar .mi-qcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #moBody .mi-qcards { gap: 8px; }
  #moBody .mi-qcard { padding: 8px 10px; min-width: 0; flex-basis: 30%; }
  #moBody .mi-qcard b { font-size: 20px; }
  #moBody .mi-qcard span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #moBody .mi-qcard small { display: none; }
  .mo-grid2 { grid-template-columns: 1fr; }
  .mo-sub-row > td { padding-left: 12px; }
}
/* tema gelap */
[data-theme="dark"] #moRoot .mi-tab.is-on { color: #93C5FD; }
@media (max-width: 760px) { [data-theme="dark"] #moRoot .mi-tab.is-on { color: #fff; } }
[data-theme="dark"] #moBar .mi-chip.is-on { background: var(--gray-300); box-shadow: none; }
[data-theme="dark"] #moRoot input, [data-theme="dark"] #moRoot select { color-scheme: dark; }
[data-theme="dark"] .mo-mp { background: rgba(245,158,11,.15); color: #FCD34D; }
[data-theme="dark"] .mo-urg { background: rgba(220,38,38,.18); color: #FCA5A5; }
[data-theme="dark"] .mo-dz:hover, [data-theme="dark"] .mo-dz.is-over { background: rgba(37,99,235,.12); }
/* ===== Tahap 2: layar HP checker, detail truk, Share WA (16 Okt 2026) ===== */
/* Layar HP checker disamakan dengan Monitoring Inbound (Novan 17 Okt 2026: terlalu mepet). Aturan MiCss untuk #miHpBody / #miRoot diulang di sini. */
#moHpBody { display: flex; flex-direction: column; gap: 10px; }
#moHpBody > .mi-sticky { margin-top: 2px; }
#moRoot > .mi-note { margin-bottom: 10px; }
#moRoot .mi-hp-top .mi-hp-stc .mi-pill { font-size: 11px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; }
.mo-hp .mi-card > .mi-sub { line-height: 1.45; }
.mo-hp .mi-card h3 { margin: 0; font-size: 1rem; }
.mo-dn { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 8px; }
.mo-dn:first-of-type { border-top: 0; margin-top: 0; }
.mo-dn-h { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: .85rem; padding-bottom: 2px; }
.mo-dn-h .mi-sub { flex: 1 1 100%; }
.mo-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--gray-200); }
.mo-task:last-child { border-bottom: 0; }
.mo-task.is-cut .mo-sku { color: #B45309; }
.mo-task.is-bad { background: #FEF2F2; border-radius: 8px; padding: 10px; }
.mo-task-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mo-task-r { display: flex; align-items: center; gap: 8px; flex: none; }
.mo-sku { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.mo-qty { font-size: 1.05rem; white-space: nowrap; }
.mo-qty s { color: var(--gray-400); }
.mo-cut { align-self: flex-start; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.mo-tkbm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mo-ph { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.mo-cut-info { gap: 2px; }
.mo-det .mi-sec { margin: 6px 0 0; }
.mo-det .mo-det-tasks { border: 1px solid var(--gray-200); border-radius: 10px; padding: 4px 12px; }
.mo-det .mi-ph-it { cursor: pointer; }
.mo-hist { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; max-height: 220px; overflow: auto; }
.mo-pv { position: fixed; inset: 0; z-index: 10050; background: rgba(15,23,42,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mo-pv img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.mo-pv .mi-ph-x { top: 16px; right: 16px; width: 36px; height: 36px; line-height: 36px; font-size: 20px; }
.mo-sh-note { text-align: center; padding: 0 4px; }
.mo-share-txt { width: 100%; box-sizing: border-box; font: 13px/1.5 'JetBrains Mono', ui-monospace, monospace; border: 1px solid var(--gray-300); border-radius: 8px; padding: 10px; background: var(--white); color: var(--gray-900); resize: vertical; }
[data-theme="dark"] .mo-task.is-bad { background: rgba(185,28,28,.15); }
[data-theme="dark"] .mo-cut { background: rgba(245,158,11,.15); color: #FCD34D; }
.pk-mo-tag { display: inline-block; margin-top: 4px; background: #E0E7FF; color: #3730A3; border-radius: 999px; padding: 2px 8px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.pk-mo-why { font-size: .66rem; color: var(--gray-600); max-width: 88px; margin: 1px auto 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-mo-note { font-size: .7rem; color: var(--gray-500); max-width: 180px; text-align: center; }
[data-theme="dark"] .pk-mo-tag { background: rgba(99,102,241,.2); color: #C7D2FE; }
