/* ==========================================================================
   NHÓM KHÁCH HÀNG: Tất cả / Sắp hết hạn / Phân tích / Doanh thu dự án / Thêm + sửa website
   Chỉ dùng lớp ox-cus-* để không ảnh hưởng trang khác (file nạp ở mọi trang)
   ========================================================================== */

/* ---------- Dùng chung ---------- */
.ox-cus-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ox-cus-sub strong { color: var(--ox-text); font-weight: 600; }
.ox-cus-help { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ox-slate); cursor: help; transition: background .15s, color .15s; }
.ox-cus-help:hover, .ox-cus-help:focus-visible { background: var(--ox-primary-soft); color: var(--ox-primary); }
.ox-card__head .ox-cus-help { margin-left: auto; }

.ox-cus-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 16px; border: 1.5px dashed var(--ox-border); border-radius: 14px; background: var(--ox-surface-2); color: var(--ox-muted); font-size: 13.5px; text-align: center; }

/* Tab viên thuốc đầu danh sách */
.ox-cus-tabs, .ox-cus-toolbar .ox-pills, .ox-cus-period .ox-pills { max-width: 100%; }
.ox-cus-tabs { align-self: flex-start; width: fit-content; }
.ox-cus-tabs a em, .ox-cus-toolbar .ox-pills em { font-weight: 600; }
.ox-cus-toolbar .ox-pills .ox-dot { transform: none; }
.ox-cus-toolbar .ox-pills .is-active .ox-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------- Bảng (danh sách website / khách / dự án) ---------- */
.ox-cus-table td { vertical-align: middle; }
.ox-cus-table td small { color: var(--ox-slate); }
/* app.css có .ox-row-actions {display:flex; opacity:0} cho trang bài viết làm ô thao tác rời khỏi bảng: trả về ô bảng */
.ox-cus-table td.ox-cus-actions { display: table-cell; opacity: 1; width: 1%; margin: 0; padding-left: 8px; white-space: nowrap; text-align: right; }
.ox-cus-table td.ox-cus-actions > * { vertical-align: middle; }
.ox-cus-table td.ox-cus-actions .ox-icon-btn { width: 34px; height: 34px; color: var(--ox-slate); }
.ox-cus-table td.ox-cus-actions .ox-icon-btn[disabled] { opacity: .35; }
.ox-cus-table td .ox-cell-title { display: inline-block; }
.ox-cus-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ox-cus-flags .ox-badge { margin: 0 !important; font-size: 11px; padding: 2px 8px; }

.ox-cus-person__name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ox-table.ox-cus-table td a.ox-cus-tel:not(.ox-btn):not(.ox-tool) { color: var(--ox-muted) !important; font-weight: 500; font-variant-numeric: tabular-nums; }
.ox-table.ox-cus-table td a.ox-cus-tel:not(.ox-btn):not(.ox-tool):hover { color: var(--ox-primary) !important; }
.ox-table.ox-cus-table td a.ox-cus-multi:not(.ox-btn):not(.ox-tool) { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: var(--ox-blue-soft); color: var(--ox-blue) !important; font-size: 11.5px; font-weight: 700; line-height: 18px; }
.ox-table.ox-cus-table td a.ox-cus-multi:not(.ox-btn):not(.ox-tool):hover { background: var(--ox-blue); color: #fff !important; }

.ox-cus-expiry { white-space: nowrap; }
.ox-cus-expiry > span:first-child { font-variant-numeric: tabular-nums; }
.ox-cus-expiry .ox-badge { margin: 0 0 0 6px !important; font-size: 11.5px; }
.ox-cus-expiry small { white-space: normal; }
.ox-cus-table td[data-label="Khách hàng"] { min-width: 150px; }
.ox-cus-table td[data-label="Server"] { min-width: 120px; }
@media (min-width: 761px) and (max-width: 1440px) {
    /* Màn hẹp: nhãn "Còn x ngày" xuống dòng dưới ngày để nhường chỗ cột tên */
    .ox-cus-expiry { white-space: normal; }
    .ox-cus-expiry > span:first-child { display: block; }
    .ox-cus-expiry .ox-badge { margin: 4px 0 0 !important; }
}

/* Phân tích: tên miền dạng chữ nhỏ xám, không đậm */
.ox-cus-table--people .ox-site-links { line-height: 1.5; }
.ox-table.ox-cus-table--people td .ox-site-links a:not(.ox-btn):not(.ox-tool) { color: var(--ox-muted) !important; font-weight: 500; }
.ox-table.ox-cus-table--people td .ox-site-links a:not(.ox-btn):not(.ox-tool):hover { color: var(--ox-primary) !important; }
.ox-cus-table--people td[data-label="Dịch vụ"] { min-width: 200px; }
.ox-cus-table--people td[data-label="Nhóm"] { min-width: 150px; }
.ox-cus-table--people .ox-badges .ox-badge { font-size: 11.5px; }
.ox-cus-table--projects .ox-cus-costs { min-width: 220px; }

/* ---------- Danh sách website: bộ lọc 3 ô chọn ---------- */
.ox-cus-tabs { margin-bottom: -6px; }
.ox-cus-filters, .ox-cus-filters.has-clear { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(0, 200px)); }
.ox-cus-filters.has-clear { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(0, 200px)) auto; }

/* ---------- Phân tích: thanh nhóm + tìm kiếm ---------- */
.ox-cus-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -6px; }
.ox-cus-search { display: flex; gap: 8px; flex: 1 1 420px; max-width: 560px; padding: 5px; border: 1px solid var(--ox-border); border-radius: 14px; background: #fff; box-shadow: var(--ox-shadow); }
.ox-cus-search .ox-input-icon { flex: 1; min-width: 0; }
.ox-app .ox-cus-search input[type="search"], .ox-app .ox-cus-search select { min-height: 38px; border-color: transparent; background-color: var(--ox-surface-2); }
.ox-app .ox-cus-search select { width: 190px; flex: none; }
.ox-cus-grid .ox-card__head { margin-bottom: 12px; }
.ox-cus-risk { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; background: var(--ox-red-soft); }
.ox-cus-risk strong { display: block; color: var(--ox-red); font-size: 16px; font-variant-numeric: tabular-nums; }
.ox-cus-risk small { color: #9b4a40; font-size: 12px; }
.ox-cus-risk .ox-ic { background: #fff; }

/* ---------- Doanh thu dự án ---------- */
.ox-cus-period { align-items: center; }
.ox-cus-period .ox-period__custom { gap: 4px; padding: 5px 5px 5px 12px; border-radius: 14px; box-shadow: var(--ox-shadow); color: var(--ox-slate); }
.ox-cus-period .ox-period__custom.is-active { border-color: #ffc6a8; color: var(--ox-primary); }
.ox-cus-period .ox-period__custom .ox-btn { border-radius: 10px; }
.ox-cus-kpis .ox-kpi__value { margin: 0; }
.ox-cus-kpis .ox-kpi > small { margin-top: 0; } /* app.css: .ox-card > .ox-muted + * đẩy dòng dưới số "0đ" (lớp ox-muted) xuống */
.ox-cus-kpis .ox-kpi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Thêm / sửa website: form bên trái ---------- */
.ox-detail--single { grid-template-columns: minmax(0, 1080px); justify-content: center; }
/* Form thêm website (1 cột): căn giữa trang, tiêu đề + breadcrumb thẳng mép với form */
.ox-page-head:has(+ .ox-detail--single) { width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto; }
#ox-customer-form { gap: 16px; }
.ox-cus-card { padding: 20px 22px; }
.ox-app .ox-cus-card .ox-card__title { margin-bottom: 14px; font-size: 16.5px; }
.ox-app .ox-cus-subhead { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; padding-top: 16px; border-top: 1px dashed var(--ox-border); font-size: 14px; font-weight: 600; }
.ox-cus-subhead .ox-icon { color: var(--ox-primary); }
.ox-cus-subhead small { color: var(--ox-slate); font-size: 12.5px; font-weight: 500; cursor: help; }
.ox-cus-card .ox-field__label[title] { cursor: help; text-decoration: underline dotted #c9cfd8; text-underline-offset: 3px; }
.ox-cus-card textarea { min-height: 64px; }
.ox-app .ox-cus-card label.ox-field > .ox-card__title { margin-bottom: 4px; color: var(--ox-text); font-weight: 600; }

/* Hợp đồng ban đầu: thẻ gập */
.ox-cus-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; list-style: none; cursor: pointer; }
.ox-cus-fold > summary::-webkit-details-marker { display: none; }
.ox-app .ox-cus-fold > summary .ox-card__title { margin: 0; }
.ox-cus-fold__meta { margin-left: auto; color: var(--ox-slate); font-size: 13px; font-weight: 500; }
.ox-cus-fold > summary::after { content: ""; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid var(--ox-slate); border-bottom: 2px solid var(--ox-slate); transform: rotate(45deg); transition: transform .2s; }
.ox-cus-fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.ox-cus-fold > summary:hover .ox-cus-fold__meta { color: var(--ox-primary); }
.ox-cus-fold[open] > summary { margin-bottom: 14px; }

/* Thanh Lưu dính đáy */
.ox-cus-actionsbar { z-index: 5; margin-top: -4px; padding: 12px 0 4px; }

/* ---------- Màn hình vừa ---------- */
@media (max-width: 1280px) {
    .ox-cus-filters, .ox-cus-filters.has-clear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ox-cus-filters .ox-filters__search { grid-column: 1 / -1; }
    .ox-cus-filters.has-clear { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
    .ox-cus-filters.has-clear .ox-filters__search { grid-column: 1 / 4; }
    .ox-cus-filters.has-clear .ox-filters__clear { grid-column: 4; grid-row: 1; }
    .ox-cus-search { max-width: none; }
}

/* ---------- Điện thoại: bảng thành thẻ gọn ---------- */
@media (max-width: 760px) {
    .ox-cus-tabs, .ox-cus-toolbar .ox-pills, .ox-cus-period .ox-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ox-cus-tabs::-webkit-scrollbar, .ox-cus-toolbar .ox-pills::-webkit-scrollbar, .ox-cus-period .ox-pills::-webkit-scrollbar { display: none; }
    .ox-cus-tabs a, .ox-cus-toolbar .ox-pills a, .ox-cus-period .ox-pills a { flex: none; padding: 7px 12px; }
    .ox-cus-toolbar { margin-bottom: 0; }
    .ox-cus-toolbar > * { width: 100%; }
    .ox-cus-search { flex-basis: auto; }
    .ox-app .ox-cus-search select { width: 42%; }
    .ox-cus-filters, .ox-cus-filters.has-clear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ox-cus-filters .ox-filters__search, .ox-cus-filters.has-clear .ox-filters__search { grid-column: 1 / -1; }
    .ox-cus-filters.has-clear .ox-filters__clear { grid-column: auto; grid-row: auto; justify-self: stretch; }
    .ox-cus-period { flex-direction: column; align-items: stretch; }
    .ox-cus-period .ox-period__custom { justify-content: space-between; }
    .ox-app .ox-cus-period .ox-period__custom input[type="date"] { flex: 1; min-width: 0; padding: 4px; }

    .ox-cus-table tr { gap: 8px 12px; padding: 14px 16px; }
    .ox-cus-table td { min-width: 0 !important; }
    .ox-cus-table td::before { font-size: 10.5px; }
    .ox-cus-table .ox-cus-expiry { white-space: normal; }
    .ox-cus-table td.ox-cus-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; grid-column: 1 / -1; width: auto; padding: 6px 0 0; }
    .ox-cus-table td.ox-cus-actions::before { content: none; }
    /* Danh sách website: thẻ = tên + hạn (cột trái) | phí (phải) */
    .ox-table--selectable.ox-cus-table td[data-label="Khởi tạo"] { display: none; }
    .ox-cus-table td[data-label="Website"] .ox-cell-title { font-size: 15px; }
    .ox-cus-table td.ox-num small { white-space: normal; }
    .ox-cus-table--people td[data-label="Dịch vụ"], .ox-cus-table--people td[data-label="Gia hạn gần nhất"], .ox-cus-table--people td[data-label="Nhóm"] { grid-column: 1 / -1; }
    .ox-cus-table--projects td[data-label="Gồm"] { grid-column: 1 / -1; }
    .ox-cus-table--projects td:first-child { grid-column: 1 / -1; }

    .ox-cus-card { padding: 18px 16px; }
    .ox-cus-fold__meta { flex-basis: 100%; margin-left: 0; order: 3; }
    .ox-cus-fold > summary::after { margin-left: auto; }
    .ox-cus-actionsbar .ox-btn { flex: 1; }
}

@media (max-width: 760px) {
    /* Phân tích: nút xem khách nằm góc phải thẻ, không chiếm 1 dòng */
    .ox-cus-table--people tr { position: relative; }
    .ox-cus-table--people td:first-child { padding-right: 40px; }
    .ox-cus-table--people td.ox-cus-actions { position: absolute; top: 10px; right: 8px; padding: 0; border: 0; }
}
@media (max-width: 560px) {
    /* Ô số liệu 2 cột: bỏ icon tròn để số không tràn */
    .ox-cus-kpis .ox-kpi { min-height: 0; padding: 14px; }
    .ox-cus-kpis .ox-kpi::before, .ox-cus-kpis .ox-kpi::after { content: none; }
    .ox-cus-kpis .ox-kpi .ox-kpi__value { font-size: 19px; overflow-wrap: anywhere; }
    .ox-cus-kpis .ox-kpi small { white-space: normal; }
}
@media (min-width: 400px) and (max-width: 760px) {
    /* Form website trên điện thoại: ô ngắn đi đôi, ô dài cả dòng */
    .ox-cus-card .ox-form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
    .ox-cus-card .ox-form-grid--4 > .ox-field:has(.ox-segment), .ox-cus-card .ox-form-grid--4 > .ox-field:has(input[type="email"]), .ox-cus-card .ox-form-grid--4 > .ox-field:has(#dbh_diachi), .ox-cus-card .ox-form-grid--4 > .ox-field:has(select[name="post_status"]),
    .ox-cus-card .ox-form-grid--4 > .ox-total--inline, .ox-cus-card .ox-form-grid--4 > .ox-field--half, .ox-cus-card .ox-form-grid--4 > .ox-profit { grid-column: 1 / -1; }
    .ox-cus-card .ox-form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ox-cus-card .ox-form-grid--3 > .ox-field:last-child { grid-column: 1 / -1; }
}
/* ==================== PHÂN TÍCH KHÁCH HÀNG (kiểu báo cáo CRM) ==================== */
.ins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ins-head h2 { font-size: 16px; }
.ins-head small { font-size: 12px; white-space: nowrap; }
/* Chỉ số */
.ins-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ins-kpi { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--ox-border); border-radius: 18px; background: #fff; box-shadow: var(--ox-shadow); color: var(--ox-text) !important; transition: transform .2s, box-shadow .2s; }
a.ins-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(23, 32, 46, .3); }
.ins-kpi.is-alert { border-color: #ffd0ca; background: linear-gradient(180deg, #fff, #fff6f4); }
.ins-kpi > div { display: flex; flex-direction: column; min-width: 0; }
.ins-kpi small { color: var(--ox-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-kpi strong { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-kpi em { font-style: normal; color: var(--ox-slate); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-kpi em.is-up { color: var(--ox-green); }
.ins-kpi em.is-down { color: var(--ox-red); }
/* Vòng đời */
.ins-life__bar { display: flex; gap: 3px; height: 14px; margin-bottom: 16px; }
.ins-life__bar a { min-width: 6px; border-radius: 4px; transition: opacity .15s, transform .15s; }
.ins-life__bar a:hover { transform: scaleY(1.3); }
.is-red { --c: var(--ox-red); } .is-amber { --c: #e0a106; } .is-blue { --c: var(--ox-blue); } .is-green { --c: var(--ox-green); } .is-slate { --c: #a3acba; }
.ins-life__bar a, .ins-care__dot, .ins-stage__top i { background: var(--c); }
.ins-life__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ins-stage { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--ox-border); border-radius: 14px; color: var(--ox-text) !important; transition: border-color .15s, background .15s; }
.ins-stage:hover { border-color: #f1d9cd; background: #fffaf6; }
.ins-stage.is-active { border-color: var(--ox-primary); background: var(--ox-primary-soft); }
.ins-stage.is-zero { opacity: .5; }
.ins-stage--red { --c: var(--ox-red); } .ins-stage--amber { --c: #e0a106; } .ins-stage--blue { --c: var(--ox-blue); } .ins-stage--green { --c: var(--ox-green); } .ins-stage--slate { --c: #a3acba; }
.ins-stage__top { display: flex; align-items: center; gap: 7px; color: var(--ox-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ins-stage__top i { width: 9px; height: 9px; border-radius: 3px; }
.ins-stage strong { font-size: 22px; line-height: 1.2; }
.ins-stage strong small { color: var(--ox-slate); font-size: 12.5px; font-weight: 600; }
.ins-stage__val { color: var(--ox-muted); font-size: 12.5px; }
/* Lưới 3 thẻ */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr); gap: 16px; align-items: start; }
.ins-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px; border-radius: 12px; background: var(--ox-green-soft); color: var(--ox-green); font-weight: 600; font-size: 13.5px; }
.ins-empty--pad { margin: 16px; }
.ins-care__list { list-style: none; margin: 0; padding: 0; }
.ins-care__list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto 34px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--ox-border); }
.ins-care__list li:first-child { border-top: 0; padding-top: 0; }
.ins-care__dot { width: 8px; height: 8px; border-radius: 50%; }
.ins-care__main { display: flex; flex-direction: column; min-width: 0; color: var(--ox-text) !important; }
.ins-care__main strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-care__main small { color: var(--ox-slate); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-care__money { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-care__list .ox-icon-btn { width: 32px; height: 32px; }
.ins-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; font-size: 13px; }
.ins-top__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ins-top__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 64px; align-items: center; gap: 8px; font-size: 13px; }
.ins-top__list b { color: var(--ox-slate); font-size: 12px; text-align: right; }
.ins-top__list li:nth-child(-n+3) b { color: var(--ox-primary); }
.ins-top__list a { color: var(--ox-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-top__list a:hover { color: var(--ox-primary) !important; }
.ins-top__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-top__cum { position: relative; height: 18px; border-radius: 6px; background: var(--ox-gray-soft); overflow: hidden; }
.ins-top__cum i { position: absolute; inset: 0 auto 0 0; background: #ffd9c4; }
.ins-top__cum em { position: relative; display: block; padding-right: 6px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; text-align: right; color: #8a3a1f; }
.ins-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 190px; }
.ins-cols > div { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; }
.ins-cols em { font-style: normal; font-weight: 700; font-size: 13px; }
.ins-cols span { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.ins-cols i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #ff9a5c, #e8401c); }
.ins-cols small { color: var(--ox-muted); font-size: 11.5px; white-space: nowrap; }
.ins-note { margin-top: 10px; font-size: 12px; }
/* Bảng */
.ins-table__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--ox-border); }
.ins-table__bar .ox-pills { box-shadow: none; }
.ins-table__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-table__tools .ox-input-icon input { width: 240px; }
.ins-tbl td { vertical-align: middle; }
.ins-tbl td > small { display: block; margin-top: 2px; font-size: 12px; }
.ins-name { color: var(--ox-text) !important; font-weight: 600; }
.ins-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--ox-blue-soft); color: var(--ox-blue); font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.ins-share { display: block; width: 90px; height: 4px; margin: 5px 0 0 auto; border-radius: 4px; background: var(--ox-gray-soft); overflow: hidden; }
.ins-share i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a5c, #e8401c); }
.ins-act { width: 1%; text-align: right; }
.ins-table__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--ox-border); font-size: 13px; }
.ins-table__foot .ox-pagination { margin: 0; padding: 0; border: 0; }
@media (max-width: 1400px) { .ins-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ins-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ins-care { grid-column: 1 / -1; } }
@media (max-width: 900px) { .ins-life__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .ins-kpi { padding: 12px; gap: 10px; } .ins-kpi .ox-ic { width: 34px; height: 34px; } .ins-kpi strong { font-size: 17px; }
    .ins-life__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ins-care__list li { grid-template-columns: 8px minmax(0, 1fr) auto 32px; } .ins-care__money { display: none; }
    .ins-table__tools, .ins-table__tools .ox-input-icon, .ins-table__tools .ox-input-icon input { width: 100%; }
    .ins-table__bar .ox-pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .ins-share { margin-left: 0; }
}
.ins-table__tools { flex-wrap: nowrap; align-items: center; }
.ins-table__tools > *, .ins-table__tools select { width: auto; flex: none; margin: 0; }
.ins-table__tools select { min-width: 170px; }
.ins-cols span { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.ins-cols span em { text-align: center; }
@media (max-width: 760px) { .ins-table__tools { flex-wrap: wrap; } .ins-table__tools select { flex: 1; min-width: 0; } }

/* ==================== DOANH THU DỰ ÁN ==================== */
.prj-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.prj-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; border: 1.5px dashed var(--ox-border); border-radius: 14px; color: var(--ox-muted); font-size: 13.5px; text-align: center; }
.prj-costs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prj-costs li { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto 36px; align-items: center; gap: 8px; font-size: 13px; }
.prj-costs li.is-zero { opacity: .45; }
.prj-costs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj-costs i { height: 6px; border-radius: 6px; background: var(--ox-gray-soft); overflow: hidden; }
.prj-costs b { display: block; height: 100%; background: linear-gradient(90deg, #ffb27a, #e8401c); }
.prj-costs strong { font-variant-numeric: tabular-nums; text-align: right; }
.prj-costs em { color: var(--ox-slate); font-style: normal; font-size: 12px; text-align: right; }
.prj-fill__bar { position: relative; height: 22px; border-radius: 8px; background: var(--ox-gray-soft); overflow: hidden; }
.prj-fill__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ox-grad); }
.prj-fill__bar b { position: relative; display: block; padding: 0 10px; color: var(--ox-text); font-size: 12px; line-height: 22px; }
.prj-fill__note { margin: 12px 0 6px; color: var(--ox-slate); font-size: 12px; }
.prj-fill__list { list-style: none; margin: 0; padding: 0; }
.prj-fill__list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--ox-border); }
.prj-fill__list li:first-child { border-top: 0; }
.prj-fill__list li > a:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; color: var(--ox-text) !important; }
.prj-fill__list strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj-fill__list small { color: var(--ox-slate); font-size: 12px; }
.prj-more { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ox-primary); font: inherit; font-weight: 600; font-size: 13px; }
.prj-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 2px 4px; font-size: 16px; }
.prj-none { justify-content: flex-start; background: var(--ox-surface-2); color: var(--ox-muted); }
.prj-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prj-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ox-border); border-radius: 12px; }
.prj-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ox-grad); color: #fff; font-weight: 700; font-size: 12.5px; }
.prj-steps li > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prj-steps strong { font-size: 13.5px; } .prj-steps small { color: var(--ox-muted); font-size: 12px; }
@media (max-width: 1400px) { .prj-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .prj-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .prj-grid { grid-template-columns: minmax(0, 1fr); } }

/* Thẻ website mobile: dùng .mc chung (app.css) */
@media (max-width: 760px) {
    .ox-table.ox-cus-table tbody td.ox-cell-check { top: 18px; right: 14px; }
    .ox-cus-table .mc__head { padding-right: 34px; }
    .ox-table.ox-cus-table tbody td.ox-cus-actions .ox-icon-btn { flex: 1; justify-content: center; width: auto; height: 34px; font-size: 12.5px; }
}
/* ===== Form website: khối phí gia hạn (giá hosting · giá tên miền · khách thanh toán) ===== */
.ox-cus-fee { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.ox-cus-sum { grid-column: span 2; min-width: 0; }
.ox-cus-sum__bar { display: flex; align-items: center; gap: 6px 22px; min-height: 42px; padding: 6px 16px; border: 1px solid #f3dccd; border-radius: var(--ox-radius-sm, 10px); background: #fff8f3; font-variant-numeric: tabular-nums; }
.ox-cus-sum__bar > span { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ox-cus-sum__bar small { color: var(--ox-muted); font-size: 12px; }
.ox-cus-sum__bar b { font-size: 14px; font-weight: 700; }
.ox-cus-sum__bar .is-main { margin-left: auto; }
.ox-cus-sum__bar .is-main small { color: var(--ox-text); font-weight: 600; }
.ox-cus-sum__bar strong { color: #e8401c; font-size: 17px; font-weight: 800; }
.ox-cus-sum__words { display: block; margin-top: 5px; color: var(--ox-muted); font-size: 12px; font-style: italic; }
.ox-cus-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 18px; }
.ox-cus-flag { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--ox-border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ox-cus-flag:hover { border-color: #e2c9b8; }
.ox-cus-flag:has(input:checked) { border-color: #ffc6a8; background: #fff6f0; }
.ox-cus-flag input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #e8401c; }
.ox-cus-flag span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ox-cus-flag b { font-size: 13.5px; font-weight: 600; }
.ox-cus-flag small { color: var(--ox-muted); font-size: 12px; line-height: 1.4; }
/* Nhãn ô cùng hàng luôn cao bằng nhau (nhãn có nút "Check theo tên miền") để ô nhập thẳng hàng */
.ox-cus-card .ox-form-grid--4 > .ox-field > .ox-field__label { display: flex; align-items: center; gap: 8px; min-height: 22px; }
@media (max-width: 1100px) {
    .ox-cus-fee { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ox-cus-sum { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .ox-cus-sum__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 12px; }
    .ox-cus-sum__bar > span { justify-content: space-between; }
    .ox-cus-sum__bar .is-main { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 8px; border-top: 1px dashed #f0cdb8; }
    .ox-cus-flags { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
}

/* ===== Popup Thêm website nhanh: 3 khối Website / Khách hàng / Thời hạn & phí, lưới 2 cột cả trên điện thoại ===== */
.ox-addf { display: flex; flex-direction: column; gap: 16px; }
.ox-addf__sec + .ox-addf__sec { padding-top: 14px; border-top: 1px dashed var(--ox-border); }
.ox-app .ox-addf .ox-addf__title, .ox-addf__title { display: flex; align-items: center; gap: 7px; margin: 0 0 12px !important; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ox-text); }
.ox-addf__title .ox-icon { color: #e8401c; }
.ox-addf__title small { margin-left: 2px; color: var(--ox-muted); font-size: 11.5px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.ox-addf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ox-addf__full { grid-column: 1 / -1; }
.ox-addf .ox-field { min-width: 0; }
.ox-addf .ox-field input, .ox-addf .ox-field select { width: 100%; min-width: 0; }
.ox-addf .ox-segment { flex-wrap: nowrap; gap: 6px; }
.ox-addf .ox-segment label { min-width: 0; }
.ox-addf__hint { margin-top: -6px; color: var(--ox-muted); font-size: 11.5px; }
.ox-addf__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 10px 14px; border: 1px solid #f3dccd; border-radius: 12px; background: #fff8f3; font-variant-numeric: tabular-nums; }
.ox-addf__sumlbl { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.ox-addf__sumlbl small { color: var(--ox-muted); font-size: 11.5px; font-weight: 400; }
.ox-addf__sumlbl small b { font-weight: 600; color: var(--ox-text); }
.ox-addf__sum > strong { color: #e8401c; font-size: 18px; font-weight: 800; white-space: nowrap; }
.ox-addf__words { grid-column: 1 / -1; color: var(--ox-muted); font-size: 11.5px; font-style: italic; }
.ox-addf__check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ox-addf__check input { width: 16px; height: 16px; margin: 0; accent-color: #e8401c; }
@media (max-width: 560px) {
    .ox-addf__grid { gap: 10px; }
    .ox-addf .ox-field__label { font-size: 12.5px; }
    .ox-addf input[type=date] { padding-left: 10px; padding-right: 6px; font-size: 13.5px; }
}