/* ==========================================================================
   KNTISSUE PRICING TABLE STYLES
   ========================================================================== */

.knt-pricing-container {
    max-width: 1240px;
    margin: 0 auto 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.5;
}

/* 1. Simple Title */
.knt-price-simple-title {
    text-align: center;
    margin-bottom: 24px;
}

.knt-price-simple-title h2 {
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.knt-price-vat-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* 1. Header Card (Legacy fallback) */
.knt-price-header-card {
    display: none;
}

.knt-price-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.knt-price-logo {
    max-height: 55px;
    width: auto;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
}

.knt-company-name {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.knt-company-meta {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.knt-company-meta a {
    color: #ffde59;
    text-decoration: underline;
}

.knt-price-title-wrap {
    text-align: center;
    padding-top: 4px;
}

.knt-price-main-title {
    margin: 0 0 4px 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.knt-price-vat-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-style: italic;
    color: #ffde59;
}

/* 2. Filter Tabs */
/* Filter Tabs (3 Tabs cố định, không cần kéo qua) */
.knt-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px auto 10px auto;
    max-width: 550px;
    padding: 0;
    background: transparent;
    border: none;
}

.knt-filter-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    background: #ffffff;
    border: 2px solid #03afff;
    border-radius: 10px;
    color: #03afff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.knt-filter-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

.knt-filter-btn.active {
    background: #03afff !important;
    border-color: #03afff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(3, 175, 255, 0.35) !important;
}

.knt-filter-btn {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.knt-tab-name, .knt-tab-sub {
    pointer-events: none;
}

.knt-tab-name {
    font-size: 0.92rem;
    font-weight: 800;
}

.knt-tab-sub {
    font-size: 0.74rem;
    opacity: 0.85;
    margin-top: 2px;
}

.knt-filter-btn.active .knt-tab-sub {
    opacity: 1;
    color: #e0f2fe;
}

.knt-filter-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 8px auto 14px auto;
    padding: 4px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #475569;
    width: fit-content;
    max-width: 95%;
    box-sizing: border-box;
}

.knt-filter-status .status-text {
    white-space: nowrap;
}

.knt-filter-status strong {
    color: #0284c7;
    font-weight: 700;
}

#kntFilterResetBtn {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

#kntFilterResetBtn:hover,
#kntFilterResetBtn:active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}



.knt-table-scroll-hint {
    display: none;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: #d97706;
    background: #fef3c7;
    padding: 6px 12px;
    border-radius: 6px;
}

/* 3. Pricing Table (Table 1) */
.knt-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    margin-bottom: 28px;
}

/* 3. Pricing Table (Table 1) - Tối ưu không gian, Căn giữa, Font gọn */
.knt-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    margin-bottom: 28px;
}

.knt-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.81rem !important; /* Size chữ nhỏ lại để tối ưu không gian */
    letter-spacing: -0.25px !important; /* Khoảng cách ký tự nhỏ lại */
    margin: 0;
}

.knt-pricing-table th,
.knt-pricing-table td {
    padding: 7px 6px !important; /* Thu nhỏ padding hàng để tối ưu chiều dọc */
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle !important;
    text-align: center !important; /* CĂN GIỮA TOÀN BỘ CÁC CỘT */
}

.knt-pricing-table th:last-child,
.knt-pricing-table td:last-child {
    border-right: none;
}

/* Table Header Colors & Typography - Căn giữa, Font nhỏ, Ký tự gọn */
.knt-pricing-table thead tr:first-child th {
    background: #03afff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem !important;
    line-height: 1.25;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    letter-spacing: -0.25px !important;
    padding: 7px 5px !important;
}

.knt-pricing-table thead tr:first-child th small {
    font-size: 0.67rem !important;
    font-weight: 400;
    opacity: 0.92;
    display: block;
    margin-top: 1px;
    letter-spacing: -0.2px;
}

.knt-pricing-table thead tr.thead-sub th {
    background: #009ceb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.73rem !important;
    line-height: 1.25;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #028ad1;
    white-space: nowrap;
    letter-spacing: -0.25px !important;
    padding: 5px 3px !important;
}

.knt-pricing-table thead tr.thead-sub th small {
    font-size: 0.64rem !important;
    font-weight: 400;
    opacity: 0.9;
}

.knt-pricing-table thead th.col-mong {
    background: #009ceb;
}

.knt-pricing-table thead tr.thead-sub th:nth-child(1),
.knt-pricing-table thead tr.thead-sub th:nth-child(2) {
    background: #008cd4;
}

.knt-pricing-table thead th.col-ghep {
    background: #028ecf;
}

.knt-pricing-table thead tr.thead-sub th:nth-child(3),
.knt-pricing-table thead tr.thead-sub th:nth-child(4) {
    background: #017db8;
}

/* Cố định độ rộng cột tối ưu không gian & Căn giữa */
.knt-pricing-table th.col-stt,
.knt-pricing-table td:nth-child(1) {
    width: 36px;
    min-width: 36px;
    text-align: center !important;
    white-space: nowrap;
    padding: 7px 2px !important;
    font-size: 0.78rem;
}

.knt-pricing-table th.col-loai,
.knt-pricing-table td:nth-child(2) {
    min-width: 72px;
    text-align: center !important;
    white-space: nowrap;
    font-weight: 600;
}

.knt-pricing-table th.col-size,
.knt-pricing-table td:nth-child(3) {
    min-width: 68px;
    text-align: center !important;
    white-space: nowrap;
}

.knt-pricing-table th.col-tron,
.knt-pricing-table td:nth-child(4) {
    min-width: 66px;
    text-align: center !important;
    white-space: nowrap;
}

.knt-pricing-table th.col-sub,
.knt-pricing-table td.font-price {
    min-width: 66px;
    text-align: center !important;
    white-space: nowrap;
}

.knt-pricing-table th.col-note,
.knt-pricing-table td:last-child {
    min-width: 190px;
    text-align: center !important;
    white-space: nowrap;
}

.knt-pricing-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.knt-pricing-table tbody tr:hover {
    background-color: #ecfeff !important;
}

.knt-pricing-table tbody tr.row-highlight {
    background-color: #fffbeb !important;
    border-left: 3px solid #f59e0b;
}

.knt-pricing-table td.font-price {
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem !important;
    letter-spacing: -0.2px !important;
}

.knt-pricing-table td.text-accent {
    color: #d97706;
}

.badge {
    display: inline-block;
    padding: 2px 8px !important;
    border-radius: 4px;
    font-size: 0.75rem !important;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.2px !important;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-popular {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

.badge-paper {
    background: #dcfce7;
    color: #15803d;
}

.badge-vip {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.text-muted {
    color: #64748b;
    font-size: 0.77rem !important;
    white-space: nowrap;
    letter-spacing: -0.2px !important;
}

/* Helpers */
.text-center { text-align: center !important; }
.text-right { text-align: center !important; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: Consolas, monospace; }
.text-primary { color: #0284c7; }
.text-success { color: #16a34a; }
.text-accent { color: #d97706; }

/* 4. Specs Grid */
.knt-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.knt-spec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knt-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.knt-spec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.knt-spec-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.knt-spec-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.knt-spec-card ul {
    margin: 0;
    padding-left: 16px; /* Bullet sát mép lề trái */
    font-size: 0.88rem;
    color: #475569;
}

.knt-spec-card li {
    margin-bottom: 8px;
    line-height: 1.45;
}

.knt-spec-card li:last-child {
    margin-bottom: 0;
}

.knt-spec-card code {
    background: #fee2e2;
    color: #b91c1c;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}

/* 5. Promotion Box (Redesigned, Harmonized & Elegant) */
.knt-promo-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px 24px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

.knt-promo-header {
    text-align: center;
    margin-bottom: 22px;
}

.knt-promo-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 14px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.knt-mobile-br {
    display: none;
}

.knt-promo-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.knt-promo-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.knt-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Individual Promo Cards */
.knt-promo-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.knt-promo-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(3, 175, 255, 0.08);
}

.knt-promo-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.knt-promo-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
}

.knt-promo-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.knt-promo-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.knt-promo-card-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.25;
}

/* Tier Rows */
.knt-promo-tiers-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.knt-promo-tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
}

.tier-qty {
    font-size: 0.86rem;
    color: #334155;
}

.tier-qty strong {
    color: #0f172a;
}

.tier-val {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid #fecaca;
    line-height: 1.2;
}

.tier-val.tier-val-blue {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.tier-val.tier-val-hot {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.knt-promo-tier-row.best-deal {
    background: #fff5f5;
    border-color: #fca5a5;
}

/* Card 3: Khổ từ 24cm trở lên (Full Width) */
.knt-promo-card-full {
    grid-column: auto;
}

/* Card 4: Flexo Special Offer Banner (Harmonious Light Blue Gradient) */
.knt-promo-banner-flexo {
    grid-column: 1 / -1 !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f7fa 100%) !important;
    border: 1.5px solid #38bdf8 !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15) !important;
    box-sizing: border-box !important;
}

.flexo-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(3, 175, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.flexo-banner-content {
    flex: 1;
    min-width: 0;
}

.flexo-banner-badge {
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.flexo-banner-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.4;
}

.flexo-banner-main strong {
    color: #0284c7;
    font-weight: 800;
}

.free-val {
    background: #ffffff;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.88rem;
    margin-left: 4px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #fecaca;
}

.flexo-banner-sub {
    font-size: 0.9rem;
    color: #334155;
    margin-top: 4px;
    line-height: 1.45;
}

.flexo-banner-sub strong {
    color: #0f172a;
}

/* Backward compatibility aliases */
.knt-promo-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #03afff;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.knt-promo-item.knt-promo-col-full,
.knt-promo-item.full-width {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 18px 22px !important;
    gap: 16px !important;
}

.knt-promo-special {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f7fa 100%);
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* 6. Kiểu In Section & Table */
.knt-print-method-section {
    margin-bottom: 36px;
}

.knt-section-heading {
    text-align: center;
    margin-bottom: 20px;
}

.knt-badge-pill {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 6px;
}

.knt-section-heading h3 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

.knt-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.knt-print-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.81rem !important;
    letter-spacing: -0.2px !important;
    margin: 0;
}

.knt-print-table th,
.knt-print-table td {
    padding: 8px 10px !important;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    vertical-align: top;
}

.knt-print-table th:last-child,
.knt-print-table td:last-child {
    border-right: none;
}

.knt-print-table thead th {
    background: #03afff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 2px solid #009ceb;
    letter-spacing: -0.2px !important;
    padding: 7px 6px !important;
}

.knt-print-table tbody tr:hover {
    background-color: #f8fafc;
}

.print-type-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.type-flexo { color: #0284c7; }
.type-small-cyl { color: #d97706; }
.type-large-cyl { color: #7c3aed; }

.print-sub-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.text-success-bold {
    color: #15803d;
    font-weight: 700;
}

.text-danger-note {
    color: #b91c1c;
    font-size: 0.84rem;
    background: #fef2f2;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
}

.text-warning-note {
    color: #b45309;
    font-size: 0.84rem;
    background: #fffbeb;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
}

.text-success-note {
    color: #166534;
    font-size: 0.84rem;
    background: #f0fdf4;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.knt-table-bullet-list {
    margin: 0 !important;
    padding-left: 12px !important;
    list-style-type: disc !important;
    font-size: 0.77rem !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    text-align: left !important;
}

.knt-table-bullet-list li {
    margin-bottom: 4px !important;
}

.knt-table-bullet-list li:last-child {
    margin-bottom: 0 !important;
}

.knt-print-table td {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
}

.text-danger-note,
.text-warning-note,
.text-success-note {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
    padding: 5px 6px !important;
    text-align: left !important;
}

.mb-1 { margin-bottom: 6px; }
.mb-0 { margin-bottom: 0; }

/* 7. CTA Bar */
.knt-price-cta-bar {
    background: linear-gradient(135deg, #03afff 0%, #2635aa 100%);
    border-radius: 12px;
    padding: 24px 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(3, 175, 255, 0.25);
}

.knt-cta-copy h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.knt-cta-copy p {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.92rem;
}

.knt-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.knt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.knt-btn-primary {
    background: #ffde59;
    color: #0f172a;
}

.knt-btn-primary:hover {
    background: #facc15;
    transform: translateY(-1px);
}

.knt-btn-zalo {
    background: #0088cc;
    color: #ffffff;
}

.knt-btn-zalo:hover {
    background: #0077b5;
    transform: translateY(-1px);
}

.knt-btn-call {
    background: #22c55e;
    color: #ffffff;
}

.knt-btn-call:hover {
    background: #16a34a;
    transform: translateY(-1px);
}


/* ==========================================================================
   IN-PLACE INTERACTIVE ZOOM & CARD WRAPPER
   ========================================================================== */
.knt-table-card-wrapper {
    margin-bottom: 24px;
    position: relative;
    background: #ffffff;
    border-radius: 10px;
}

.knt-table-action-bar {
    display: none;
}

.knt-toggle-zoom-btn {
    display: none;
}

.knt-table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    transition: all 0.25s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.knt-table-scroll-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET) - OPTIMIZED FOR FULL TABLE
   ========================================================================== */
@media (max-width: 768px) {
    .knt-price-header-card {
        padding: 18px 16px;
    }

    .knt-price-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .knt-company-meta {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .knt-price-main-title {
        font-size: 1.45rem;
    }

    /* Filter Tabs trên Mobile: 3 Tab cố định 3 cột cân đối, không cần kéo qua */
    .knt-filter-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin: 10px 0 8px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .knt-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .knt-filter-label {
        display: none !important;
    }

    .knt-filter-btn {
        width: 100% !important;
        padding: 8px 2px !important;
        border-radius: 8px !important;
        border: 1.5px solid #03afff !important;
        background: #ffffff !important;
        color: #03afff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        white-space: normal !important;
    }

    .knt-filter-btn.active {
        background: #03afff !important;
        border-color: #03afff !important;
        color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(3, 175, 255, 0.35) !important;
    }

    .knt-tab-name {
        font-size: 0.84rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .knt-tab-sub {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        opacity: 0.85 !important;
        white-space: nowrap !important;
        margin-top: 1px !important;
    }

    .knt-filter-btn.active .knt-tab-sub {
        opacity: 1 !important;
        color: #e0f2fe !important;
    }

    .knt-filter-status {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px !important;
        padding: 5px 10px !important;
        font-size: 0.74rem !important;
    }

    /* Table Card & In-place Zoom Button trên Mobile */
    .knt-table-card-wrapper {
        margin-bottom: 20px !important;
        position: relative !important;
    }

    /* Nút phóng to nằm dưới bảng và căn giữa */
    .knt-table-action-bar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 10px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    .knt-toggle-zoom-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: #e0f2fe !important;
        border: 1px solid #7dd3fc !important;
        color: #0284c7 !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        padding: 7px 18px !important;
        border-radius: 20px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
        transition: all 0.2s ease !important;
        margin: 0 auto !important;
    }

    .knt-toggle-zoom-btn:active {
        transform: scale(0.96) !important;
    }

    .knt-toggle-zoom-btn.is-zoomed {
        background: #0284c7 !important;
        color: #ffffff !important;
        border-color: #0284c7 !important;
        box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
    }

    /* Bỏ thanh trượt dọc hoàn toàn trên mobile */
    .knt-table-scroll-container {
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .knt-table-scroll-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .knt-table-scroll-container.mode-fit {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .knt-table-scroll-container.mode-fit::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .knt-table-scroll-container.mode-zoom {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Thanh trạng thái lọc căn giữa gọn gàng trên mobile */
    .knt-filter-status {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: fit-content !important;
        max-width: 95% !important;
        box-sizing: border-box !important;
        margin: 6px auto 10px auto !important;
        padding: 4px 12px !important;
        font-size: 0.74rem !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
    }

    .knt-filter-status .status-text {
        white-space: nowrap !important;
    }

    #kntFilterResetBtn {
        white-space: nowrap !important;
        padding: 2px 8px !important;
        font-size: 0.7rem !important;
    }

    .knt-table-scroll-hint {
        display: none !important;
    }

    /* Thanh nhắc vuốt ngang trên Mobile */
    .knt-table-scroll-hint {
        display: block !important;
        background: #e0f2fe !important;
        border: 1px solid #bae6fd !important;
        color: #0369a1 !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    /* Bảng hiển thị full, cuộn mượt, cố định cột STT & Loại vải bên trái */
    .knt-table-responsive {
        border-radius: 10px !important;
        margin-bottom: 24px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

        .knt-pricing-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .knt-table-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-bottom: 20px !important;
    }

    .knt-pricing-table,
    .knt-print-table {
        width: max-content !important;
        min-width: 100% !important;
    }

    /* Main page table columns are static (fits full screen) */
    .knt-pricing-table th:nth-child(1),
    .knt-pricing-table td:nth-child(1),
    .knt-pricing-table th:nth-child(2),
    .knt-pricing-table td:nth-child(2) {
        position: static !important;
        box-shadow: none !important;
    }

    .knt-pricing-table tbody tr:nth-child(even) td:nth-child(1),
    .knt-pricing-table tbody tr:nth-child(even) td:nth-child(2) {
        background: #f8fafc !important;
    }

    .knt-pricing-table tbody tr.row-highlight td:nth-child(1),
    .knt-pricing-table tbody tr.row-highlight td:nth-child(2) {
        background: #fffbeb !important;
    }

    /* Promotion Box (Mobile Polish & Zero Overflow) */
    .knt-mobile-br {
        display: block !important;
    }

    .knt-promo-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 24px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .knt-promo-header {
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .knt-promo-badge {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
        margin-bottom: 6px !important;
    }

    .knt-promo-header h3 {
        font-size: 1.02rem !important;
        line-height: 1.35 !important;
        margin: 0 0 4px 0 !important;
        color: #0f172a !important;
        word-break: normal !important;
    }

    .knt-promo-header p {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: #64748b !important;
    }

    .knt-promo-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .knt-promo-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 11px 10px !important;
        border-radius: 9px !important;
        box-sizing: border-box !important;
    }

    .knt-promo-card-top {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }

    .knt-promo-icon-badge {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.15rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .knt-promo-title-group {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .knt-promo-card-name {
        font-size: 0.86rem !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        display: block !important;
    }

    .knt-promo-card-sub {
        font-size: 0.71rem !important;
        line-height: 1.25 !important;
        color: #64748b !important;
        display: block !important;
        margin-top: 2px !important;
    }

    .knt-promo-tiers-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .knt-promo-tier-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 9px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        gap: 6px !important;
    }

    .tier-qty {
        font-size: 0.77rem !important;
        line-height: 1.25 !important;
        color: #334155 !important;
        white-space: nowrap !important;
    }

    .tier-val {
        font-size: 0.73rem !important;
        padding: 2.5px 7px !important;
        white-space: nowrap !important;
        border-radius: 5px !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
        text-align: right !important;
    }

    .knt-promo-banner-flexo {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 13px 10px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .flexo-banner-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.4rem !important;
        margin: 0 auto !important;
    }

    .flexo-banner-badge {
        font-size: 0.69rem !important;
        padding: 2px 8px !important;
        margin-bottom: 4px !important;
    }

    .flexo-banner-main {
        font-size: 0.84rem !important;
        line-height: 1.4 !important;
        color: #0369a1 !important;
        word-break: break-word !important;
    }

    .flexo-banner-main .free-val {
        display: inline-block !important;
        font-size: 0.76rem !important;
        padding: 2px 6px !important;
        margin-top: 3px !important;
        margin-left: 2px !important;
    }

    .flexo-banner-sub {
        font-size: 0.73rem !important;
        line-height: 1.35 !important;
        color: #475569 !important;
        margin-top: 4px !important;
        word-break: break-word !important;
    }

    .knt-promo-item.knt-promo-col-full {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .knt-promo-special {
        flex-direction: column;
        text-align: center;
        padding: 16px !important;
    }

    .knt-price-cta-bar {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .knt-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .knt-btn {
        width: 100%;
    }

    /* Khắc phục triệt để lỗi chồng đè tiêu đề "Chọn Loại Vải" và Tabs báo giá trên Mobile */
    .st_problem div[id^="col-"] > .col-inner {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .st_problem .col p {
        text-align: center !important;
        margin-top: 15px !important;
        margin-bottom: 12px !important;
    }

    .st_problem .tabbed-content .nav-pills {
        margin-top: 6px !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .st_problem .tabbed-content .nav-pills li.tab {
        margin: 0 !important;
    }

    .st_problem .tabbed-content .nav-pills li.tab a {
        padding: 8px 18px !important;
        font-size: 0.88rem !important;
    }
}
