/* ============================================================
   CheckInfo UI System — client (sky) + admin (blue) shared
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --- Design tokens (client: sky) --- */
:root {
  --ci-p:    #0ea5e9;
  --ci-pd:   #0284c7;
  --ci-ga:   #0ea5e9;
  --ci-gb:   #0284c7;
  --ci-wash: #eff8fe;
  --ci-lp:   #cde9f9;

  --ci-bg:    #eef2f6;
  --ci-surf:  #fff;
  --ci-line:  #e5eaf0;
  --ci-line2: #eff3f7;

  --ci-ink:  #2a3645;
  --ci-ink2: #64748b;
  --ci-ink3: #94a3b8;

  --ci-ok:   #16a34a; --ci-okw:   #dcfce7;
  --ci-err:  #dc2626; --ci-errw:  #fee2e2;
  --ci-warn: #d97706; --ci-warnw: #fef3c7;

  --ci-r: 8px;
  --ci-f: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ci-m: 'IBM Plex Mono', monospace;
}

/* Admin overrides — add class="admin" to <body> */
body.admin {
  --ci-p:    #2563eb;
  --ci-pd:   #1d4ed8;
  --ci-ga:   #2563eb;
  --ci-gb:   #1e40af;
  --ci-wash: #eef4ff;
  --ci-lp:   #d2e0fb;
  --ci-bg:   #eef2f7;
  --ci-line: #e4e9f0;
  --ci-line2:#eff3f8;
}

/* ---- Reset for new layout ---- */
.ci-top, .ci-shell, .ci-side, .ci-side-card, .ci-snav,
.ci-main, .ci-crumb, .ci-card, .ci-card-h, .ci-card-b,
.ci-tbl-top, .ci-tbl-wrap {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Topbar ---- */
.ci-top {
  height: 52px;
  background: linear-gradient(90deg, var(--ci-ga), var(--ci-gb));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--ci-f);
}
.ci-top-inner {
  max-width: 1660px;
  margin: 0 auto;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
}

.ci-uid {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.ci-uid small {
  display: block;
  font-size: 11.5px;
  opacity: .9;
  font-weight: 400;
}
.ci-uid b { color: #fff; font-weight: 600; }

.ci-recharge {
  margin-left: 14px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: var(--ci-f);
}
.ci-recharge:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

.ci-sp { flex: 1; }

.ci-ti {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ci-ti a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  opacity: .95;
  font-family: var(--ci-f);
}
.ci-ti a:hover { opacity: 1; color: #fff; text-decoration: none; }
.ci-ti svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Admin topbar brand */
.ci-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.2px;
  font-family: var(--ci-f);
}
.ci-brand .ci-mk {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  flex: none;
  border: 1px solid rgba(255,255,255,.22);
}
.ci-brand .ci-mk svg { width: 16px; height: 16px; }
.ci-admin-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.22);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ---- Shell (sidebar + main) ---- */
.ci-shell {
  display: flex;
  gap: 18px;
  max-width: 1660px;
  margin: 0 auto;
  padding: 18px;
  font-family: var(--ci-f);
  min-height: calc(100vh - 52px);
}

/* ---- Sidebar ---- */
.ci-side {
  width: 215px;
  flex: none;
}
.ci-side-card {
  background: var(--ci-surf);
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  padding: 10px;
  position: sticky;
  top: 70px;
}
.ci-s-sec {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--ci-ink3);
  font-weight: 600;
  padding: 12px 12px 6px;
  font-family: var(--ci-f);
}
.ci-snav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ci-snav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--ci-r);
  color: var(--ci-ink2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: .12s;
  font-family: var(--ci-f);
}
.ci-snav a svg { width: 17px; height: 17px; color: var(--ci-ink3); flex-shrink: 0; }
.ci-snav a:hover { background: var(--ci-wash); color: var(--ci-pd); text-decoration: none; }
.ci-snav a:hover svg { color: var(--ci-p); }
.ci-snav a.on { background: var(--ci-wash); color: var(--ci-pd); font-weight: 600; }
.ci-snav a.on svg { color: var(--ci-p); }

/* Badge (pending count) in sidebar */
.ci-snav a .ci-cnt {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  background: var(--ci-warnw);
  color: var(--ci-warn);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ci-snav a .ci-cnt::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ci-warn);
  animation: ci-pulse 1.8s ease-in-out infinite;
}
@keyframes ci-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---- Main content area ---- */
.ci-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--ci-f);
}

/* ---- Breadcrumb ---- */
.ci-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ci-ink2);
  background: var(--ci-surf);
  border: 1px solid var(--ci-line);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--ci-f);
}
.ci-crumb svg { width: 15px; height: 15px; color: var(--ci-ink3); flex-shrink: 0; }
.ci-crumb b { font-weight: 500; color: var(--ci-ink); }
.ci-crumb a { color: var(--ci-ink2); text-decoration: none; }
.ci-crumb a:hover { color: var(--ci-p); }

/* ---- Card ---- */
.ci-card {
  background: var(--ci-surf);
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--ci-f);
}
.ci-card-h {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ci-line2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ci-card-h h3 { font-size: 14px; font-weight: 600; margin: 0; font-family: var(--ci-f); }
.ci-card-h .ci-sp { flex: 1; }
.ci-card-b { padding: 18px; }

.ci-card-h .ci-btn {
  background: var(--ci-p);
  color: #fff;
  border: none;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ci-f);
  text-decoration: none;
}
.ci-card-h .ci-btn:hover { background: var(--ci-pd); color: #fff; text-decoration: none; }
.ci-card-h .ci-btn svg { width: 14px; height: 14px; }

/* ---- Metric cards (admin) ---- */
.ci-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ci-metric {
  background: var(--ci-surf);
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  padding: 16px 17px;
  font-family: var(--ci-f);
}
.ci-metric .ci-ml {
  font-size: 12px;
  color: var(--ci-ink3);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.ci-metric .ci-mi {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ci-wash);
  display: grid; place-items: center;
  color: var(--ci-p);
  flex: none;
}
.ci-metric .ci-mi svg { width: 15px; height: 15px; }
.ci-metric .ci-mv { font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--ci-ink); }
.ci-metric .ci-md { font-size: 11.5px; color: var(--ci-ok); font-weight: 500; margin-top: 3px; }
.ci-metric .ci-md.flat { color: var(--ci-ink3); }

/* ---- Table toolbar ---- */
.ci-tbl-top {
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ci-line2);
  background: var(--ci-bg);
  font-family: var(--ci-f);
}
.ci-tbl-top .ci-info { font-size: 13px; font-weight: 600; color: var(--ci-ink2); }
.ci-tbl-top .ci-pg { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.ci-tbl-top .ci-pg button {
  min-width: 30px; height: 30px;
  padding: 0 6px;
  border: 1px solid var(--ci-line);
  background: #fff;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ci-ink2);
  cursor: pointer;
  font-family: var(--ci-f);
}
.ci-tbl-top .ci-pg button.on { background: var(--ci-p); border-color: var(--ci-p); color: #fff; }
.ci-tbl-top .ci-pg button:hover:not(.on) { border-color: var(--ci-p); color: var(--ci-p); }

/* Filter bar (admin) */
.ci-filter {
  padding: 13px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fbfcfe;
  border-bottom: 1px solid var(--ci-line2);
}
.ci-filter input, .ci-filter select {
  height: 38px;
  border: 1px solid var(--ci-line);
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-family: var(--ci-f);
  color: var(--ci-ink2);
  background: #fff;
  outline: none;
}
.ci-filter input { flex: 1; }
.ci-filter input:focus, .ci-filter select:focus { border-color: var(--ci-p); }
.ci-filter .ci-fbtn {
  height: 38px; padding: 0 16px;
  background: var(--ci-p); color: #fff;
  border: none; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--ci-f);
}
.ci-filter .ci-fbtn:hover { background: var(--ci-pd); }

/* ---- Table (shared) ---- */
.ci-tbl-wrap { overflow-x: auto; }

table.ci-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--ci-f);
}
table.ci-tbl thead th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--ci-ink3);
  font-weight: 500;
  border-bottom: 1px solid var(--ci-line);
  white-space: nowrap;
  background: #fbfcfe;
}
table.ci-tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ci-line2);
  vertical-align: top;
}
table.ci-tbl tbody tr:hover td { background: var(--ci-wash); }
table.ci-tbl tbody tr:last-child td { border-bottom: none; }

/* ---- Service cell (client orders table) ---- */
.ci-svc { max-width: 200px; min-width: 140px; }
.ci-svc .ci-sid {
  display: inline-block;
  font-family: var(--ci-m);
  font-size: 11px;
  font-weight: 500;
  color: var(--ci-pd);
  background: var(--ci-wash);
  border: 1px solid var(--ci-lp);
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.ci-svc .ci-sname { font-size: 13px; font-weight: 500; color: var(--ci-ink); line-height: 1.4; }

/* ---- Status badge ---- */
.ci-stt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-family: var(--ci-f);
}
.ci-stt .ci-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ci-stt.ok  { background: var(--ci-okw);   color: var(--ci-ok); }
.ci-stt.err { background: var(--ci-errw);  color: var(--ci-err); }
.ci-stt.warn { background: var(--ci-warnw); color: var(--ci-warn); }

/* ---- Badge (admin) ---- */
.ci-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-family: var(--ci-f);
}
.ci-badge .ci-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ci-badge.vip    { background: var(--ci-warnw); color: var(--ci-warn); }
.ci-badge.normal { background: #eef2f7; color: var(--ci-ink2); }
.ci-badge.ok     { background: var(--ci-okw); color: var(--ci-ok); }

/* ---- Mono / amount cells ---- */
.ci-mono  { font-family: var(--ci-m); font-size: 12.5px; color: var(--ci-ink2); }
.ci-money { font-family: var(--ci-m); font-weight: 500; color: var(--ci-ink); font-variant-numeric: tabular-nums; }
.ci-amt   { font-family: var(--ci-m); font-weight: 500; color: var(--ci-ink); font-size: 13px; text-align: right; white-space: nowrap; }
.ci-tm    { font-size: 12px; color: var(--ci-ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Result / IMEI cells ---- */
.ci-imei   { font-family: var(--ci-m); font-size: 12.5px; color: var(--ci-ink2); white-space: nowrap; }
.ci-result { font-size: 12.5px; line-height: 1.7; color: var(--ci-ink2); min-width: 260px; }
.ci-result b  { color: var(--ci-ink); font-weight: 600; }
.ci-result .g { color: var(--ci-ok); font-weight: 600; }
.ci-result .r { color: var(--ci-err); font-weight: 600; }

/* ---- Verify / icon buttons ---- */
.ci-verify {
  background: var(--ci-warnw);
  color: var(--ci-warn);
  border: 1px solid #f3dca0;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ci-f);
}
.ci-verify svg { width: 13px; height: 13px; }

.ci-iconbtn {
  width: 30px; height: 30px;
  border: 1px solid var(--ci-line);
  background: #fff;
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ci-ink2);
}
.ci-iconbtn:hover { border-color: var(--ci-p); color: var(--ci-p); }
.ci-iconbtn svg { width: 14px; height: 14px; }
.ci-iconbtn.danger:hover { border-color: var(--ci-err); color: var(--ci-err); }

/* ---- User name cell (admin) ---- */
.ci-uname { display: flex; align-items: center; gap: 10px; }
.ci-uname .ci-av {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ci-wash);
  color: var(--ci-pd);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 13px;
  flex: none;
  font-family: var(--ci-f);
}
.ci-uname .ci-un { font-weight: 500; color: var(--ci-ink); }
.ci-uname .ci-ue { font-size: 11.5px; color: var(--ci-ink3); }

/* ---- Table footer ---- */
.ci-tbl-foot {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--ci-line2);
  background: #fbfcfe;
  font-family: var(--ci-f);
}
.ci-tbl-foot .ci-info { font-size: 12.5px; color: var(--ci-ink3); }

/* Pagination (tbl-foot) */
.ci-pg { display: flex; gap: 5px; margin-left: auto; }
.ci-pg button {
  min-width: 32px; height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ci-line);
  background: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ci-ink2);
  cursor: pointer;
  font-family: var(--ci-f);
}
.ci-pg button:hover { border-color: var(--ci-p); color: var(--ci-p); }
.ci-pg button.on { background: var(--ci-p); border-color: var(--ci-p); color: #fff; }

/* ---- Body reset for new layout ---- */
/* Prevent horizontal document overflow — fixes position:fixed right-edge on some mobile browsers */
html { overflow-x: hidden; }
body.ci-layout {
  background: var(--ci-bg) !important;
  font-family: var(--ci-f) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px !important;
  color: var(--ci-ink) !important;
  overflow-x: hidden;
}
/* Override old theme top bars/menus when new layout is active */
body.ci-layout .menu-area,
body.ci-layout .footer-area { display: none !important; }
body.ci-layout .dashboard-area { padding: 0 !important; background: transparent !important; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .ci-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .ci-side { display: none; }
  .ci-shell { padding: 12px; }
}
/* mobile overrides moved to expanded block below */

/* ===== Ô chọn dịch vụ — dùng chung cả 3 trang ===== */
.custom-select2 {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15,23,42,.05);
    transition: border-color .18s, box-shadow .18s;
    overflow: hidden;
}
.custom-select2:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.custom-select2 .select2-container,
.custom-select2 span.selection {
    width: 100% !important;
    display: block !important;
}
.custom-select2 .select2-container--default .select2-selection--single {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: 46px !important;
    box-shadow: none !important;
    outline: none !important;
}
.custom-select2 .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    padding: 0 40px !important;
    text-align: center !important;
    display: block !important;
}
.custom-select2 .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}
.custom-select2 .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 14px !important;
    top: 0 !important;
}
/* Dropdown results max-height */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 350px;
}

/* ===== VIP badge trong topbar ===== */
.ci-vip-badge {
    display: none;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
}

/* ===== Mobile menu dropdown (chỉ hiện ≤1000px) ===== */
.ci-mmenu { display: none; }

@media (max-width: 1000px) {
    .ci-shell { flex-direction: column; padding: 12px; gap: 12px; }
    .ci-mmenu {
        display: block;
        background: #fff;
        border: 1px solid var(--ci-line);
        border-radius: 12px;
        overflow: hidden;
        flex: none;
    }
    .ci-mmenu-hd {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px 16px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        color: var(--ci-ink);
        user-select: none;
    }
    .ci-mmenu-bars { width: 19px; height: 19px; color: var(--ci-p); flex: none; }
    .ci-mmenu-chev { margin-left: auto; width: 18px; height: 18px; color: var(--ci-ink3); transition: transform .25s; flex: none; }
    .ci-mmenu-open .ci-mmenu-chev { transform: rotate(180deg); }
    .ci-mmenu-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .ci-mmenu-open .ci-mmenu-body {
        max-height: 600px;
        border-top: 1px solid var(--ci-line2);
    }
    .ci-mmenu-body a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 16px;
        color: var(--ci-ink2);
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 400;
        border-bottom: 1px solid var(--ci-line2);
        transition: background .12s;
    }
    .ci-mmenu-body a:last-child { border-bottom: none; }
    .ci-mmenu-body a svg { width: 17px; height: 17px; opacity: .7; flex: none; }
    .ci-mmenu-body a:hover { background: var(--ci-wash); color: var(--ci-pd); text-decoration: none; }
    .ci-mmenu-body a.on { background: var(--ci-wash); color: var(--ci-pd); font-weight: 600; }
    .ci-mmenu-body a.on svg { opacity: 1; }
}

@media (max-width: 768px) {
    /* Header mobile: hiện số dư, ẩn Nạp tiền, VIP badge hiện */
    .ci-uid small { display: block !important; }
    .ci-recharge { display: none !important; }
    .ci-vip-inline { display: none; }
    .ci-vip-badge { display: inline-flex; font-size: 9.5px; padding: 2px 8px; }
    .ci-ti { gap: 10px; }
    /* Shell padding */
    .ci-shell { padding: 8px; gap: 8px; }
    .ci-top-inner { padding: 0 14px; }
}

/* ===== Mô tả dịch vụ — collapse trên mobile ===== */
.od-desc-toggle {
    display: none;
}
@media (max-width: 768px) {
    .od-desc-col > .od-col-title { display: none !important; }
    .od-desc-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #e5eaf0;
        border-radius: 8px;
        background: #fbfdff;
        cursor: pointer;
        font-size: 13.5px;
        font-weight: 500;
        color: #64748b;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    .od-desc-toggle svg.od-desc-toggle-ico { color: #0ea5e9; width: 16px; height: 16px; flex: none; }
    .od-desc-chev { margin-left: auto; width: 17px; height: 17px; color: #94a3b8; transition: transform .25s; flex: none; }
    .od-desc-toggle.ci-open .od-desc-chev { transform: rotate(180deg); }
    .od-desc-card {
        display: none;
        margin-top: 8px;
    }
    .od-desc-card.ci-open { display: block; }
}

/* ===== Nút nổi Zalo/Telegram mobile ===== */
@media (max-width: 768px) {
    .ci-float-btns {
        position: fixed !important;
        bottom: 74px !important;
        right: 12px !important;
        left: auto !important;
        transform: none !important;
    }
    .ci-float-btn { width: 42px !important; height: 42px !important; }
    .ci-float-btn img { width: 22px !important; height: 22px !important; }
}

/* ===== Mobile: giảm padding card, mở rộng ô nhập ===== */
@media (max-width: 768px) {
    /* Card header */
    .ci-card-h { padding: 12px 14px !important; }
    .ci-card-b { padding: 12px !important; }

    /* Wrapper đặt hàng (check-imei, check-bulk) */
    .ci-order-wrap { padding: 14px 12px !important; }

    /* Form auto check */
    .ac-form-card { padding: 14px 12px !important; }

    /* Tất cả input/textarea/select trong card đặt hàng: full width */
    .ci-order-wrap input:not([type=checkbox]):not([type=radio]),
    .ci-order-wrap textarea,
    .ci-order-wrap select,
    .ac-form-card input:not([type=checkbox]):not([type=radio]),
    .ac-form-card textarea,
    .ac-form-card select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Select2: full width trong card */
    .ci-order-wrap .select2-container,
    .ci-order-wrap .select2-container .select2-selection,
    .ac-form-card .select2-container,
    .ac-form-card .select2-container .select2-selection,
    .custom-select2 .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tần suất check (auto): bỏ max-width cố định */
    .ac-freq-preset { max-width: 100% !important; }

    /* Select2 wrapper full width */
    .select-wrap, .select-wrap2, .custom-select2 { width: 100% !important; }
}
