@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --qnp-bg: #eef2ff;
    --qnp-surface: rgba(255, 255, 255, 0.94);
    --qnp-surface-strong: #ffffff;
    --qnp-surface-soft: #f8fafc;
    --qnp-text: #0f172a;
    --qnp-muted: #64748b;
    --qnp-border: rgba(148, 163, 184, 0.24);
    --qnp-brand: #004f9e;
    --qnp-brand-2: #00aeef;
    --qnp-success: #008a4e;
    --qnp-warning: #f59e0b;
    --qnp-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    --qnp-shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.22);
    --qnp-radius: 18px;
    --qnp-radius-lg: 28px;
    --qnp-font: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

.qnp-ct-wrap,
.qnp-ct-wrap * {
    box-sizing: border-box;
}

.qnp-ct-wrap {
    position: relative;
    max-width: 100%;
    font-family: var(--qnp-font);
    color: var(--qnp-text);
    /* overflow: hidden đã được bỏ để modal popup không bị clip */
}

/* .qnp-ct-wrap::before,
.qnp-ct-wrap::after {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.9;
}

.qnp-ct-wrap::before {
    top: -70px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(37, 99, 235, 0.10);
}

.qnp-ct-wrap::after {
    left: -50px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    background: rgba(16, 185, 129, 0.09);
} */

.qnp-ct-title {
    position: relative;
    margin: 0 0 22px;
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.qnp-ct-form {
    position: relative;
    z-index: 1;
}

.qnp-ct-form-row {
    display: flex;
    align-items: center;
    background: #ebebeb;
    border-radius: 999px;
    padding: 2px 12px 2px 24px;
    border: 1px solid #dcdcdc;
}

.qnp-ct-input {
    flex: 1;
    height: 42px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    padding: 0;
    font-size: 17px;
    font-weight: 400;
    color: #3c4043;
    text-transform: none;
    letter-spacing: normal;
}

.qnp-ct-input::placeholder {
    color: #8a8a8a;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

@media (max-width: 640px) {
    .qnp-ct-form-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        padding: 0 4px 0 16px !important;
    }

    .qnp-ct-input {
        font-size: 16px !important;
        height: 44px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .qnp-ct-btn-search {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
}

.qnp-ct-btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
}

.qnp-ct-btn-search:focus {
    outline: none;
}

.qnp-ct-btn-search:hover {
    color: var(--qnp-brand);
}

.qnp-ct-btn-search.is-loading {
    opacity: 0.4;
    cursor: progress;
}

.qnp-ct-message {
    margin: 14px 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--qnp-muted);
}

.qnp-ct-message.is-error {
    color: #b91c1c;
}

.qnp-ct-message.is-success {
    color: #047857;
}

/* =============================================================
   MODAL POPUP – thoát hoàn toàn khỏi stacking context của
   section cha (Bricks / Elementor / WPBakery có thể set
   transform / filter / will-change tạo ra new stacking context
   khiến position:fixed không còn gắn vào viewport).
   Giải pháp: portal modal ra body qua JS hoặc dùng các trick
   CSS dưới đây để đảm bảo hiển thị đúng.
   ============================================================= */
.qnp-ct-modal {
    /* Gắn chắc vào viewport, KHÔNG phụ thuộc vào phần tử cha */
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 24px !important;
    /* z-index cao nhất, vượt qua header sticky / mega-menu */
    z-index: 2147483647 !important;
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Thoát khỏi clip / overflow của bất kỳ ancestor nào */
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    /* Đảm bảo không bị ảnh hưởng bởi transform của ancestor */
    transform: none !important;
    /* Đảm bảo pointer-events hoạt động */
    pointer-events: auto !important;
    /* Isolation: tạo stacking context riêng, không kế thừa từ cha */
    isolation: isolate;
}

.qnp-ct-modal[hidden],
.qnp-ct-modal[hidden=""] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.qnp-ct-modal-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.54)),
        rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(10px);
}

.qnp-ct-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: var(--qnp-surface);
    box-shadow: var(--qnp-shadow-lg);
    transform-origin: center;
    animation: qnp-modal-in 0.28s ease both;
}

@keyframes qnp-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qnp-ct-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--qnp-brand) 0%, #003a75 100%);
    color: #fff;
    flex-shrink: 0;
}

.qnp-ct-modal-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.qnp-ct-modal-badge-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--qnp-brand-2) 0%, var(--qnp-brand) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 79, 158, 0.25);
    flex: 0 0 auto;
}

.qnp-ct-modal-badge-icon svg {
    width: 24px;
    height: 24px;
}

.qnp-ct-modal-badge-text {
    min-width: 0;
}

.qnp-ct-modal-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.74);
    margin-bottom: 4px;
}

.qnp-ct-modal-container-no {
    width: min(460px, 100%);
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    caret-color: transparent;
}

.qnp-ct-btn-close {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.qnp-ct-btn-close::before,
.qnp-ct-btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.qnp-ct-btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.qnp-ct-btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.qnp-ct-btn-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.qnp-ct-view-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--qnp-border);
    flex-shrink: 0;
}

.qnp-ct-view-tabs-left {
    display: flex;
    gap: 8px;
}

.qnp-ct-view-tabs-left::-webkit-scrollbar {
    display: none;
}

.qnp-ct-modal-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--qnp-border);
    border-radius: 12px;
    padding: 0 4px 0 14px;
    height: 42px;
    width: 320px;
    flex-shrink: 0;
    max-width: 100%;
    transition: all 0.2s ease;
}

.qnp-ct-modal-search:focus-within {
    border-color: var(--qnp-brand);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
    width: 360px;
}

.qnp-ct-modal-search-input {
    flex: 1;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    height: 100%;
    font-size: 16px;
    font-weight: 700;
    color: var(--qnp-text);
    padding: 0 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qnp-ct-modal-search-input::placeholder {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--qnp-muted);
}

.qnp-ct-modal-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--qnp-muted);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.qnp-ct-modal-search-btn:hover {
    color: var(--qnp-brand);
    background: rgba(0, 174, 239, 0.08);
}

.qnp-ct-modal-search-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.qnp-ct-view-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--qnp-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.qnp-ct-view-tab:hover {
    transform: translateY(-1px);
    color: var(--qnp-brand);
    box-shadow: 0 10px 18px rgba(0, 79, 158, 0.06);
}

.qnp-ct-view-tab.is-active {
    background: linear-gradient(135deg, var(--qnp-brand) 0%, var(--qnp-brand-2) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(0, 79, 158, 0.22);
}

.qnp-ct-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98));
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.qnp-ct-modal-body::-webkit-scrollbar {
    width: 10px;
}

.qnp-ct-modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.qnp-ct-panel {
    display: none;
}

.qnp-ct-panel.is-active {
    display: block;
}

.qnp-lux-body {
    padding-bottom: 8px;
}

.qnp-timeline-box {
    position: relative;
    margin: 24px;
    padding: 30px 28px 24px;
    border: 1px solid var(--qnp-border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: var(--qnp-shadow);
}

.qnp-track-line {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
    overflow: visible;
}

.qnp-track-line::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e 0%, #2563eb 100%);
}

.qnp-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 84px;
}

.qnp-node.is-start {
    left: 0;
}

.qnp-node.is-active {
    left: 50%;
}

.qnp-node.is-end {
    left: 100%;
}

.qnp-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid var(--qnp-success);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
}

.qnp-dot-main {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 4px solid rgba(37, 99, 235, 0.16);
    background: #fff;
    color: var(--qnp-brand);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.qnp-note {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--qnp-muted);
}

.qnp-note-main {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--qnp-brand);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.qnp-tag {
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--qnp-brand);
    font-size: 11px;
    font-weight: 700;
}

.qnp-empty-lux {
    margin: 24px;
    padding: 28px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    text-align: center;
    color: var(--qnp-muted);
}

.qnp-empty-lux strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 18px;
    color: var(--qnp-text);
}

.qnp-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px 24px;
}

.qnp-card-lux {
    min-width: 0;
    padding: 18px 18px 14px;
    border: 1px solid var(--qnp-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--qnp-shadow);
}

.qnp-card-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--qnp-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.qnp-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qnp-rich-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qnp-item-icon {
    width: 24px;
    height: 24px;
    color: rgba(100, 116, 139, 0.9);
    flex: 0 0 auto;
}

.qnp-item-icon svg {
    width: 100%;
    height: 100%;
}

.qnp-item-content {
    min-width: 0;
}

.qnp-item-label {
    margin-bottom: 4px;
    color: var(--qnp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qnp-item-val {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--qnp-text);
    word-break: break-word;
}

.qnp-item-val.is-empty {
    color: rgba(100, 116, 139, 0.72);
}

.qnp-item-val.text-blue {
    color: var(--qnp-brand);
}

.qnp-item-val.text-green {
    color: var(--qnp-success);
}

.qnp-item-val.text-gold {
    color: #b45309;
}

.qnp-item-val.text-pink {
    color: #db2777;
}

.qnp-item-val.text-navy {
    color: #1e3a8a;
}

.qnp-table-wrap {
    padding: 24px;
}

.qnp-lux-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--qnp-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--qnp-shadow);
}

.qnp-lux-table th {
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--qnp-brand);
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.qnp-lux-table tr td:first-child {
    font-weight: 600;
}

.qnp-lux-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.96);
    color: var(--qnp-text);
    font-size: 15px;
    vertical-align: top;
}

.qnp-lux-table tr:last-child td {
    border-bottom: 0;
}

.qnp-lux-table td.fw-bold {
    font-weight: 800;
}

.qnp-lux-table tr.qnp-table-divider td {
    height: 12px;
    background: rgba(241, 245, 249, 0.6);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.qnp-lux-table tr:hover td {
    background: rgba(248, 250, 252, 0.8);
}

.qnp-record-view {
    padding: 22px 22px 26px;
}

.qnp-data-grid {
    display: grid;
    gap: 16px;
}

.qnp-data-card {
    padding: 18px;
    border: 1px solid var(--qnp-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--qnp-shadow);
}

.qnp-data-card-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--qnp-brand);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.qnp-data-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.qnp-field-item {
    min-width: 0;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    transition: background-color 0.2s ease;
}

.qnp-field-item:nth-child(3n) {
    border-right: 0;
}

.qnp-field-item:hover {
    background: rgba(0, 174, 239, 0.03);
}

.qnp-field-label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .qnp-data-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qnp-field-item:nth-child(3n) {
        border-right: 1px solid rgba(148, 163, 184, 0.15);
    }

    .qnp-field-item:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .qnp-data-card-grid {
        grid-template-columns: 1fr;
    }

    .qnp-field-item {
        border-right: 0;
    }
}

.qnp-field-value {
    min-width: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.qnp-field-value.is-emphasis {
    color: var(--qnp-brand);
}

.qnp-field-value.is-empty {
    color: rgba(100, 116, 139, 0.72);
}

.qnp-empty-lux {
    margin: 22px;
    padding: 26px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    color: var(--qnp-muted);
}

.qnp-empty-lux strong {
    display: block;
    margin-bottom: 8px;
    color: var(--qnp-text);
    font-size: 18px;
    font-weight: 700;
}

.qnp-empty-lux p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 1100px) {
    .qnp-data-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qnp-field-item:nth-child(3n) {
        border-right: 1px solid rgba(148, 163, 184, 0.15);
    }

    .qnp-field-item:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 768px) {

    .qnp-lux-table th,
    .qnp-data-card-title {
        font-size: 14px;
    }

    .qnp-lux-table td {
        font-size: 13px;
    }

    .qnp-field-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }

    .qnp-field-label {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .qnp-field-value {
        font-size: 14px;
        font-weight: 700;
    }

    .qnp-ct-form-row {
        flex-direction: row;
        /* Keep as pill row on tablet/mobile */
        padding: 2px 12px 2px 20px;
    }

    .qnp-ct-input {
        width: auto;
        font-size: 14px;
    }

    .qnp-ct-modal {
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .qnp-ct-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
        margin: 0;
    }

    .qnp-ct-modal-toolbar {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .qnp-ct-modal-badge {
        gap: 12px;
    }

    .qnp-ct-modal-badge-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .qnp-ct-modal-container-no {
        max-width: calc(100vw - 120px);
        /* Leave space for close button */
        font-size: 18px;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qnp-ct-view-tabs {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .qnp-ct-view-tabs-left {
        justify-content: space-between;
    }

    .qnp-ct-modal-search {
        width: 100% !important;
        height: 40px;
    }

    .qnp-ct-view-tab {
        flex: 1;
        text-align: center;
        min-height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }

    .qnp-timeline-box {
        margin: 16px;
        padding: 22px 16px 18px;
    }

    .qnp-grid-layout {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .qnp-table-wrap {
        padding: 16px;
    }

    .qnp-lux-table th,
    .qnp-lux-table td {
        padding: 14px 14px;
    }

    .qnp-record-view {
        padding: 16px 16px 20px;
    }

    .qnp-record-head {
        padding: 16px;
    }

    .qnp-record-badge {
        align-self: flex-start;
    }

    .qnp-data-card {
        padding: 16px;
    }

    .qnp-data-card-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .qnp-ct-title {
        text-align: left;
        margin-bottom: 16px;
    }

    .qnp-ct-form-row {
        gap: 10px;
    }

    .qnp-node {
        min-width: 72px;
    }

    .qnp-node.is-active {
        transform: translate(-50%, -50%) scale(0.92);
    }

    .qnp-node.is-start .qnp-note,
    .qnp-node.is-end .qnp-note {
        max-width: 88px;
    }

    .qnp-record-head {
        flex-direction: column;
    }
}