/* =========================================================
   PKDS / SKD Kho SIM
   CSS chuẩn hóa theo layout kho sim hiện tại
   - Lấy desktop + mobile của kho sim làm chuẩn
   - Làm sạch file, bỏ rule test/vá sai hướng
   - Giữ nguyên cảm quan đã chốt, chỉ chuẩn hóa cấu trúc
   ========================================================= */

:root {
    /* PKDS shell bridge */
    /* Desktop ưu tiên bám đúng shell/content size chung của site trước,
     chỉ fallback về chuẩn an toàn khi site chưa khai báo token. */
    --skd-wrap-max: var(--pkds-shell-max, var(--pkds-content-max, var(--wp--style--global--content-size, 1120px)));
    --skd-wrap-margin-y: var(--pkds-shell-margin-y, 20px);
    --skd-wrap-pad-x: var(--pkds-shell-pad-x, var(--pkds-content-pad-x, 0px));
    --skd-wrap-pad-x-mobile: var(--pkds-shell-pad-x-mobile, 8px);
    --skd-wrap-pad-x-mobile-sm: var(--pkds-shell-pad-x-mobile-sm, 6px);

    /* Section / filter */
    --skd-section-gap: var(--pkds-section-gap, 16px);
    --skd-filter-pad: var(--pkds-space-2xl, 16px);
    --skd-filter-radius: var(--pkds-radius-2xl, 18px);
    --skd-filter-shadow: var(--pkds-shadow-sm, 0 6px 18px rgba(0, 0, 0, .04));

    /* Grid / spacing */
    --skd-grid-gap: var(--pkds-grid-gap, 12px);
    --skd-card-gap: var(--pkds-card-gap, 6px);

    /* Card */
    --skd-card-pad-y: var(--pkds-card-pad-y, 12px);
    --skd-card-pad-x: var(--pkds-card-pad-x, 14px);
    --skd-card-radius: var(--pkds-card-radius, 18px);
    --skd-card-shadow: 0 7px 20px rgba(0, 0, 0, .04);

    /* Inputs / buttons */
    --skd-field-height: var(--pkds-field-height, 46px);
    --skd-field-radius: var(--pkds-radius-lg, 14px);
    --skd-btn-radius: var(--pkds-radius-lg, 14px);

    /* Colors - đồng bộ palette theo mẫu Kinh Dịch Cổ,
     đậm hơn Kho SIM cũ một nhịp nhưng vẫn giữ độ sáng học thuật */
    --skd-text: var(--pkds-text, #2c2011);
    --skd-text-soft: var(--pkds-text-soft, #665234);
    --skd-text-mute: var(--pkds-text-mute, #7b6541);
    --skd-gold-1: var(--pkds-gold-1, #dcc08a);
    --skd-gold-2: var(--pkds-gold-2, #c39a52);
    --skd-gold-3: var(--pkds-gold-4, #a67821);
    --skd-surface-1: var(--pkds-panel-bg-1, #fcf6e8);
    --skd-surface-2: var(--pkds-panel-bg-2, #f1e1bb);
    --skd-surface-3: var(--pkds-panel-soft, #f7ecd1);
    --skd-surface-4: var(--pkds-panel-soft-2, #f2dfb1);
    --skd-chip-bg: var(--pkds-bg-cream, #faefd7);
    --skd-chip-bd: var(--pkds-gold-1, #dcc08a);
    --skd-danger-1: var(--pkds-red-1, #7f1414);
    --skd-danger-2: var(--pkds-red-2, #9e1a1a);
    --skd-danger-text: var(--pkds-red-2, #9e1a1a);
    --skd-danger-deep: var(--pkds-red-deep, #651010);
    --skd-danger-bg: var(--pkds-color-danger-bg, linear-gradient(180deg, var(--skd-danger-1), var(--skd-danger-2)));
    --skd-danger-border: rgba(145, 0, 0, .20);
    --skd-danger-shadow: 0 6px 14px rgba(145, 0, 0, .10);

    --skd-accent-bg: var(--pkds-color-accent-bg, linear-gradient(180deg, #f7e5b1 0%, #e4c06a 38%, #bf8f2f 100%));
    --skd-accent-text: var(--pkds-color-accent-text, #5a3908);
    --skd-accent-border: #ad7f24;
    --skd-accent-shadow: 0 8px 18px rgba(167, 120, 18, .22), inset 0 1px 0 rgba(255, 252, 234, .78);
    --skd-accent-shadow-hover: 0 10px 22px rgba(167, 120, 18, .26), inset 0 1px 0 rgba(255, 252, 234, .9);
    --skd-accent-text-shadow: 0 1px 0 rgba(255, 250, 229, .72);

    --skd-chip-text: #6a4d14;
    --skd-label-text: #6f4910;
    --skd-label-text-soft: #8a734b;
    --skd-section-title: #6a4610;

    --skd-metric-bar-bg: var(--pkds-metric-bar-bg, #ece7dc);
    --skd-metric-neg: var(--pkds-metric-neg, #111111);
    --skd-metric-low: var(--pkds-metric-low, #7b8087);
    --skd-metric-mid: var(--pkds-metric-mid, #8b6500);
    --skd-metric-high: var(--pkds-metric-high, #926900);
    --skd-metric-bar-low: linear-gradient(90deg, #8a6500, #bf9336);
    --skd-metric-bar-high: linear-gradient(90deg, #9d7200 0%, #ffd46a 23%, #fff1b5 45%, #ffd46a 67%, #9d7200 100%);
    --skd-metric-bar-high-glow: 0 0 8px rgba(255, 212, 106, .45);

    --skd-sim-gradient: linear-gradient(180deg, var(--skd-danger-1) 0%, var(--skd-danger-2) 28%, #c82a24 52%, #a31a18 76%, var(--skd-danger-deep) 100%);
    --skd-sim-stroke: .2px rgba(95, 0, 6, .18);
    --skd-sim-shadow: 0 1px 0 rgba(255, 255, 255, .28), 0 1px 10px rgba(170, 16, 22, .10);
}

/* =========================
   1) WRAP / FILTER / META
   Phase 2B: token map only, không đổi output
   ========================= */

.skd-khosim-wrap {
    width: min(100%, var(--skd-wrap-max));
    max-width: var(--skd-wrap-max);
    margin: var(--skd-wrap-margin-y) auto;
    padding: 0 var(--skd-wrap-pad-x);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--skd-text);
}

.skd-khosim-filter {
    background: linear-gradient(180deg, var(--skd-surface-1) 0%, var(--skd-surface-2) 100%);
    border: 1px solid var(--skd-gold-1);
    border-radius: var(--skd-filter-radius);
    padding: var(--skd-filter-pad);
    margin-bottom: var(--skd-section-gap);
    box-shadow: var(--skd-filter-shadow);
}

.skd-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 14px;
}

.skd-filter-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--skd-section-title);
}

.skd-filter-head p {
    margin: 0;
    max-width: 74ch;
    font-size: 14px;
    line-height: 1.7;
    color: var(--skd-text-soft);
}

.skd-filter-hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--skd-gold-1);
    background: var(--skd-surface-3);
    color: #805819;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.skd-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--skd-grid-gap);
    align-items: end;
}

.skd-fitem {
    min-width: 0;
}

.skd-fitem-priceband,
.skd-fitem-btn {
    grid-column: auto;
}

.skd-fitem-search--primary {
    grid-column: auto;
}

.skd-fitem label {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--skd-label-text);
    letter-spacing: .01em;
}

.skd-fitem label small {
    display: inline-block;
    margin-left: 6px;
    color: var(--skd-label-text-soft);
    font-size: 11px;
    font-weight: 600;
}

.skd-fitem input,
.skd-fitem select,
.skd-fitem button {
    width: 100%;
    min-width: 0;
    height: var(--skd-field-height);
    box-sizing: border-box;
}

.skd-fitem input,
.skd-fitem select {
    display: block;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid var(--skd-gold-2);
    border-radius: var(--skd-field-radius);
    outline: none;
    font-size: 14px;
    color: #3b2a12;
}

.skd-fitem input:focus,
.skd-fitem select:focus {
    border-color: var(--skd-gold-3);
    box-shadow: 0 0 0 3px rgba(187, 139, 46, .14);
}

.skd-fitem-search--primary label {
    color: #8f1717;
    font-weight: 800;
}

.skd-fitem-search--primary .pkds-input,
.skd-fitem-search--primary input {
    height: var(--skd-field-height);
    padding: 10px 12px;
    border-color: #b11e1e;
    background: linear-gradient(180deg, #fffdfa 0%, #fff6e8 100%);
    color: #3b2a12;
    font-size: 14px;
    box-shadow: 0 0 0 2px rgba(177, 30, 30, .06);
}

.skd-fitem-search--primary .pkds-input::placeholder,
.skd-fitem-search--primary input::placeholder {
    color: #9b7b52;
}

.skd-fitem-search--primary .pkds-input:focus,
.skd-fitem-search--primary input:focus {
    border-color: #8f1717;
    box-shadow: 0 0 0 3px rgba(177, 30, 30, .14);
}

.skd-fitem.is-dev select {
    background: #fbf8f1;
    color: var(--skd-label-text-soft);
    border-style: dashed;
}

.skd-fitem-btn button {
    border: none;
    border-radius: var(--skd-btn-radius);
    background: var(--skd-danger-bg);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.skd-fitem-btn button:hover {
    filter: brightness(1.04);
}

.skd-hide {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.skd-academic-wrap {
    margin-top: 12px;
    border-top: 1px solid #efdfbf;
    padding-top: 12px;
}

.skd-academic-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #d8be83;
    border-radius: 14px;
    background: #fffdf8;
    color: #5f4512;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.skd-academic-toggle:hover {
    background: #fff9ef;
}

.skd-academic-toggle:after {
    content: "▾";
    flex: 0 0 auto;
    transition: transform .18s ease;
}

.skd-academic-toggle[aria-expanded="true"]:after {
    transform: rotate(180deg);
}

.skd-academic-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a6925;
    font-size: 12px;
    font-weight: 700;
}

.skd-academic-state:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c9a443;
    box-shadow: 0 0 0 3px rgba(201, 164, 67, .14);
}

.skd-academic-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--skd-gold-1);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff8ee 100%);
}

.skd-academic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--skd-grid-gap);
    align-items: end;
}

.skd-academic-grid .skd-fitem label {
    min-height: 36px;
    line-height: 1.35;
}

.skd-active-filters {
    margin: 0 0 12px;
    padding: 12px 13px;
    border: 1px solid #e8d7b2;
    border-radius: 14px;
    background: #fff9ee;
    color: #674d18;
}

.skd-active-filters-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.55;
}

.skd-active-filters-head strong {
    color: #533c10;
}

.skd-active-filters-note {
    display: inline-block;
    margin-left: 8px;
    color: #7a6541;
}

.skd-active-filters a {
    color: #8f0000;
    text-decoration: none;
    font-weight: 800;
}

.skd-active-filters a:hover {
    text-decoration: underline;
}

.skd-active-filters-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.skd-active-filters-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e4cf9e;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.skd-active-filters-tags b {
    margin-right: 5px;
    color: #5a4210;
}

.skd-khosim-meta {
    margin: 10px 0 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.skd-khosim-meta strong {
    color: var(--skd-label-text);
    font-size: 18px;
}

.skd-global-note {
    max-width: 72ch;
    font-size: 13px;
    line-height: 1.7;
    color: var(--skd-text-mute);
}

/* =========================
   2) LIST / CARD
   ========================= */

#skd-khosim-list.skd-khosim-list {
    display: flex;
    flex-direction: column;
    gap: var(--skd-card-gap);
}

.skd-desktop-only {
    display: block;
}

.skd-mobile-only {
    display: none !important;
}

.skd-item,
.skd-item.skd-item-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--skd-surface-1) 0%, var(--skd-surface-3) 100%);
    border: 1px solid var(--skd-gold-1);
    border-radius: var(--skd-card-radius);
    padding: var(--skd-card-pad-y) var(--skd-card-pad-x);
    box-shadow: var(--skd-card-shadow);
}

.skd-item.skd-item-premium:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(460px 150px at 14% -12%, rgba(255, 214, 112, .18), transparent 62%),
        radial-gradient(320px 130px at 110% 10%, rgba(153, 0, 0, .06), transparent 58%);
}

.skd-item-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 12px;
    align-items: start;
}

.skd-col-info,
.skd-col-metrics {
    min-width: 0;
}

.skd-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.skd-sim,
.skd-sim-gold {
    font-size: 29px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: .9px;
    background: var(--skd-sim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--skd-danger-2);
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: var(--skd-sim-stroke);
    text-shadow: var(--skd-sim-shadow);
}

.skd-price,
.skd-price-red {
    flex: 0 0 auto;
    padding-top: 2px;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    color: var(--skd-danger-text);
    white-space: nowrap;
}

.skd-tags,
.skd-card-meta2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skd-tags {
    margin-top: 8px;
}

.skd-card-meta2 {
    margin-top: 8px;
}

.skd-tags span,
.skd-card-meta2 span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--skd-chip-bd);
    background: var(--skd-chip-bg);
    color: var(--skd-chip-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

.skd-tags .skd-menh {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
}

.skd-tags .menh-kim {
    background: #f5e6b3;
    color: #7a5b00;
}

.skd-tags .menh-moc {
    background: #d7f5d7;
    color: #1f7a1f;
}

.skd-tags .menh-thuy {
    background: #d6ecff;
    color: #0b5394;
}

.skd-tags .menh-hoa {
    background: #ffd6d6;
    color: #a61c00;
}

.skd-tags .menh-tho {
    background: #f5e1c6;
    color: #7a4f00;
}

.skd-tag-focus {
    background: linear-gradient(180deg, var(--skd-surface-3), var(--skd-surface-4));
    border-color: var(--skd-gold-2);
}

.skd-card-summary {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.58;
    color: #413015;
    max-width: 62ch;
}

.skd-card-summary strong,
.skd-desktop-focus strong {
    color: #2b1c07;
}

.skd-card-focus {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: #725f3d;
}

.skd-desktop-copy {
    margin-top: 9px;
}

.skd-desktop-focus {
    font-size: 12px;
    line-height: 1.45;
    color: #38270e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skd-desktop-summary {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.42;
    color: #6f5d3d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skd-reason-box {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #e4c7bb;
    border-radius: 12px;
    background: linear-gradient(180deg, #fdf5ec 0%, #f8e6d9 100%);
}

.skd-reason-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9a5b0d;
}

.skd-reason-box ul {
    margin: 5px 0 0 16px;
    padding: 0;
}

.skd-reason-box li {
    margin: 2px 0;
    color: #62482a;
    font-size: 11.5px;
    line-height: 1.35;
}

.skd-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.skd-actions a,
.skd-actions button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 104px;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.skd-actions button:focus-visible,
.skd-actions a:focus-visible {
    outline: 1px solid rgba(146, 0, 0, .26);
    outline-offset: 1px;
}

.skd-actions-after-reason {
    display: none;
}

.skd-btn-mobile {
    display: none;
    white-space: nowrap;
}

.skd-btn-desktop {
    display: inline;
    white-space: nowrap;
}

.skd-detail-btn,
.skd-luan-btn {
    background: var(--skd-danger-bg);
    color: #fff;
    border: 1px solid var(--skd-danger-border);
    box-shadow: var(--skd-danger-shadow);
}

.skd-detail-btn:hover,
.skd-luan-btn:hover {
    filter: brightness(1.04);
}

.skd-hold-btn,
.skd-order-btn {
    background: var(--skd-accent-bg);
    color: var(--skd-accent-text);
    border: 1px solid var(--skd-accent-border);
    box-shadow: var(--skd-accent-shadow);
    text-shadow: var(--skd-accent-text-shadow);
}

.skd-hold-btn:hover,
.skd-order-btn:hover {
    filter: brightness(1.04);
    box-shadow: var(--skd-accent-shadow-hover);
}

/* =========================
   3) METRICS
   ========================= */

.skd-metrics-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-content: start;
}

.skd-metric-primary,
.skd-metric-card,
.skd-metric-alert {
    background: rgba(255, 251, 244, .9);
    border: 1px solid var(--skd-gold-1);
    border-radius: 14px;
}

.skd-metric-primary {
    grid-column: 1 / -1;
    padding: 9px 11px 8px;
    background: linear-gradient(180deg, var(--skd-surface-1) 0%, var(--skd-surface-3) 100%);
}

.skd-metric-primary-kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d641d;
}

.skd-metric-primary-label {
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    color: #7b4f07;
}

.skd-metric-primary-value {
    margin-top: 2px;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.skd-metric-primary-value.neg,
.skd-metric-card-value.neg,
.skd-metric-alert-main .is-neg {
    color: var(--skd-metric-neg);
}

.skd-metric-primary-value.lv0,
.skd-metric-card-value.lv0,
.skd-metric-alert-main .is-low {
    color: var(--skd-metric-low);
}

.skd-metric-primary-value.lv50,
.skd-metric-card-value.lv50,
.skd-metric-alert-main .is-mid {
    color: var(--skd-metric-mid);
}

.skd-metric-primary-value.lv80,
.skd-metric-card-value.lv80,
.skd-metric-alert-main .is-high {
    color: var(--skd-metric-high);
}

.skd-bar {
    height: 7px;
    border-radius: 999px;
    background: var(--skd-metric-bar-bg);
    overflow: hidden;
}

.skd-bar-primary {
    margin-top: 8px;
}

.skd-barfill {
    display: block;
    height: 100%;
    border-radius: 999px;
    width: 0;
}

.skd-barfill.lv0 {
    background: var(--skd-metric-low);
}

.skd-barfill.lv50 {
    background: var(--skd-metric-bar-low);
}

.skd-barfill.lv80 {
    background: var(--skd-metric-bar-high);
    box-shadow: var(--skd-metric-bar-high-glow);
}

.skd-barfill.neg {
    background: var(--skd-metric-neg);
}

.skd-metric-primary-note {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #7a6947;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skd-metric-card,
.skd-metric-alert {
    padding: 7px 8px 7px;
}

.skd-metric-card-head {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: baseline;
    margin-bottom: 5px;
}

.skd-metric-card-label {
    font-size: 11px;
    font-weight: 800;
    color: #5b4414;
}

.skd-metric-card-value {
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}


.skd-metric-note {
    margin-top: 5px;
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 700;
    color: #6d4f18;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skd-metric-alert {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-color: #e1d0ac;
    background: linear-gradient(180deg, #fffdfa 0%, #fff6e5 100%);
}

.skd-metric-alert-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #806126;
}

.skd-metric-alert-main {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--skd-text);
}


.skd-metric-alert-text {
    font-size: 13px;
    line-height: 1.6;
    color: #6f5d3d;
}

.skd-empty {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed #d9c49a;
    background: #fffdf8;
}

.skd-khosim-more {
    margin: 16px 0 0;
    text-align: center;
}

.skd-khosim-more button {
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 14px;
    background: var(--skd-danger-bg);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================
   4) RESPONSIVE
   ========================= */

@media (max-width: 1080px) {
    .skd-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skd-filter-head,
    .skd-khosim-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .skd-fitem-priceband,
    .skd-fitem-btn {
        grid-column: 1 / -1;
    }

    .skd-academic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skd-item-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .skd-desktop-only {
        display: none !important;
    }

    .skd-mobile-only {
        display: block !important;
    }

    .skd-card-meta2.skd-mobile-only {
        display: flex !important;
    }

    .skd-metrics-panel.skd-mobile-only {
        display: grid !important;
    }

    .entry-content.alignfull.skd-khosim-entryfix {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .skd-khosim-wrap {
        width: auto !important;
        max-width: none !important;
        margin: 16px auto !important;
        padding: 0 var(--skd-wrap-pad-x-mobile) !important;
        box-sizing: border-box;
    }

    .skd-khosim-filter,
    #skd-khosim-list.skd-khosim-list,
    .skd-khosim-more {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .skd-khosim-filter {
        padding: 5px 5px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .skd-filter-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .skd-filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .skd-filter-head h2 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .skd-filter-head p {
        font-size: 12px;
        line-height: 1.55;
    }

    .skd-filter-hint {
        width: 100%;
        justify-content: center;
        min-height: 34px;
        padding: 7px 11px;
        font-size: 11px;
        white-space: normal;
    }

    .skd-fitem-type {
        display: none;
    }

    .skd-fitem-search--primary,
    .skd-fitem-priceband {
        grid-column: auto;
    }

    .skd-fitem-btn {
        grid-column: 1 / -1;
    }

    .skd-academic-wrap {
        margin-top: 10px;
        padding-top: 10px;
    }

    .skd-academic-toggle {
        padding: 10px 11px;
        font-size: 13px;
    }

    .skd-academic-state {
        font-size: 11px;
    }

    .skd-academic-panel {
        margin-top: 8px;
        padding: 11px;
        border-radius: 14px;
    }

    .skd-academic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .skd-active-filters {
        padding: 10px 11px;
        margin-bottom: 10px;
    }

    .skd-active-filters-head,
    .skd-active-filters-tags span {
        font-size: 12px;
    }

    .skd-active-filters-note {
        display: block;
        margin: 4px 0 0;
    }

    .skd-fitem label {
        font-size: 11.5px;
        margin-bottom: 4px;
    }

    .skd-fitem input,
    .skd-fitem select,
    .skd-fitem button {
        height: 40px;
        font-size: 13.5px;
        border-radius: 13px;
    }

    .skd-khosim-meta {
        margin: 8px 0 10px;
        gap: 8px;
    }

    .skd-khosim-meta strong {
        font-size: 16px;
    }

    .skd-global-note {
        font-size: 12px;
        line-height: 1.55;
    }

    #skd-khosim-list.skd-khosim-list {
        gap: 5px;
    }

    .skd-item,
    .skd-item.skd-item-premium {
        padding: 5px 5px;
        border-radius: 17px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .045);
    }

    .skd-item-main {
        gap: 5px;
    }

    .skd-head {
        gap: 10px;
        align-items: flex-start;
    }

    .skd-sim,
    .skd-sim-gold {
        font-size: 22px;
        letter-spacing: .3px;
    }

    .skd-price,
    .skd-price-red {
        font-size: 16px;
        padding-top: 3px;
    }

    .skd-tags {
        gap: 6px;
        margin-top: 9px;
    }

    .skd-card-meta2 {
        gap: 6px;
        margin-top: 8px;
    }

    .skd-tags span,
    .skd-card-meta2 span {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .skd-card-summary {
        margin-top: 8px;
        font-size: 12.5px;
        line-height: 1.5;
    }

    .skd-card-focus {
        display: none;
    }

    .skd-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 6px;
    }

    .skd-actions-primary {
        display: none;
    }

    .skd-actions-after-reason {
        display: grid !important;
        margin-top: 6px;
    }

    .skd-actions a,
    .skd-actions button {
        width: 100%;
        min-height: 42px;
        min-width: 0;
        padding: 8px 14px;
        font-size: 12.5px;
        border-radius: 12px;
        white-space: nowrap;
    }

    .skd-btn-desktop {
        display: none;
    }

    .skd-btn-mobile {
        display: inline;
    }

    .skd-metrics-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .skd-metric-card,
    .skd-metric-alert {
        padding: 6px 7px;
        border-radius: 13px;
    }

    .skd-metric-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 5px;
    }

    .skd-metric-card-label {
        min-height: 0;
        font-size: 10.5px;
        line-height: 1.15;
        flex: 1 1 auto;
    }

    .skd-metric-card-value {
        margin-top: 0;
        margin-left: 6px;
        flex: 0 0 auto;
        font-size: 15px;
        line-height: 1;
    }

    .skd-bar {
        height: 5px;
    }

    .skd-metric-note {
        display: none;
    }

    .skd-metric-alert {
        gap: 4px;
    }

    .skd-metric-alert-label {
        font-size: 11px;
    }

    .skd-metric-alert-main {
        font-size: 16px;
    }

    .skd-metric-alert-text {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .skd-khosim-wrap {
        padding: 0 var(--skd-wrap-pad-x-mobile-sm) !important;
    }

    .skd-khosim-filter,
    #skd-khosim-list.skd-khosim-list,
    .skd-khosim-more {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .skd-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skd-khosim-filter {
        padding: 10px 8px;
    }

    .skd-filter-head h2 {
        font-size: 16px;
    }

    .skd-filter-head p {
        display: none;
    }

    .skd-sim,
    .skd-sim-gold {
        font-size: 20px;
    }

    .skd-price,
    .skd-price-red {
        font-size: 15px;
    }

    .skd-tags span,
    .skd-card-meta2 span {
        font-size: 10px;
        padding: 3px 7px;
    }

    .skd-card-summary {
        font-size: 12px;
    }

    .skd-actions a,
    .skd-actions button {
        min-height: 40px;
        min-width: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    .skd-metric-card-label {
        min-height: 17px;
        font-size: 10px;
    }

    .skd-metric-card-value {
        font-size: 14px;
    }

    .skd-metric-alert-main {
        font-size: 15px;
    }
}

@media (min-width: 1081px) {
    .skd-khosim-list .skd-item.skd-item-premium {
        margin-bottom: 0;
    }

    .skd-col-info {
        display: flex;
        flex-direction: column;
    }

    .skd-actions {
        margin-top: 6px;
    }
}
/* PKDS BCLS Kho Số v3.8.4 - restore full listing, clean BCLS public labels only */
.skd-bcls-filter-head label small,
.skd-bcls-card em{
  font-size: 11px;
  font-style: normal;
  opacity: .76;
}
.skd-bcls-card{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 12px;
  background: rgba(248, 250, 252, .85);
  font-size: 13px;
  line-height: 1.45;
}
.skd-bcls-head{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.skd-bcls-head span{
  font-weight: 700;
}
.skd-bcls-head strong{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}
.skd-bcls-decision{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(180, 83, 9, .10);
  color: rgba(120, 53, 15, .95);
  font-weight: 700;
}
.skd-bcls-card.is-low .skd-bcls-decision{
  background: rgba(100, 116, 139, .12);
  color: rgba(71, 85, 105, .95);
}
.skd-bcls-line{
  color: rgba(15, 23, 42, .82);
  margin-top: 2px;
}
.skd-bcls-highlight{
  margin-top: 4px;
}
.skd-bcls-axis-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.skd-bcls-axis{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: rgba(15, 23, 42, .82);
  white-space: nowrap;
}
.skd-bcls-axis b{
  font-weight: 600;
}
.skd-bcls-axis em{
  font-size: 11px;
  font-weight: 700;
  opacity: .82;
}
@media (max-width: 767px){
  .skd-bcls-card{
    padding: 9px 10px;
    font-size: 12px;
  }
  .skd-bcls-axis-list{
    gap: 5px;
  }
  .skd-bcls-axis{
    padding: 3px 6px;
  }
}

/* =========================
   9) COPY LIST / GỬI BẢNG
   Module chọn nhiều số để copy danh sách gửi đối tác.
   Scope chặt trong Kho Sim, không ảnh hưởng engine/listing data.
   ========================= */

.skd-khosim-wrap .skd-copy-pick {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 6px;
}

.skd-khosim-wrap .skd-copy-pick__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid rgba(166, 120, 33, .24);
    border-radius: 999px;
    background: rgba(255, 250, 235, .72);
    color: var(--skd-label-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.skd-khosim-wrap .skd-copy-pick__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.skd-khosim-wrap .skd-copy-pick__box {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--skd-gold-3);
    border-radius: 4px;
    background: #fffaf0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.skd-khosim-wrap .skd-copy-pick__input:checked + .skd-copy-pick__box {
    background: var(--skd-danger-bg);
    border-color: var(--skd-danger-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.skd-khosim-wrap .skd-copy-pick__input:checked + .skd-copy-pick__box:after {
    content: "";
    display: block;
    width: 7px;
    height: 4px;
    margin: 3px 0 0 3px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.skd-khosim-wrap .skd-copy-pick__input:focus-visible + .skd-copy-pick__box {
    outline: 2px solid var(--skd-gold-2);
    outline-offset: 2px;
}

.skd-khosim-wrap .skd-item.is-copy-selected {
    border-color: var(--skd-danger-2);
    box-shadow: var(--skd-card-shadow), 0 0 0 2px rgba(158, 26, 26, .08);
}

.skd-khosim-wrap .skd-copylist-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    padding: 9px 10px;
    border: 1px solid var(--skd-gold-1);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8e8 0%, var(--skd-surface-3) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .035);
    position: relative;
    z-index: 5;
}

.skd-khosim-wrap .skd-copylist-toolbar__summary {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--skd-text-soft);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.skd-khosim-wrap .skd-copylist-toolbar__summary strong {
    min-width: 22px;
    color: var(--skd-danger-2);
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.skd-khosim-wrap .skd-copylist-toolbar__actions,
.skd-copylist-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.skd-khosim-wrap .skd-copylist-toolbar__status {
    flex: 0 0 100%;
    min-height: 14px;
    color: var(--skd-danger-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.skd-copylist-btn {
    appearance: none;
    border: 1px solid var(--skd-gold-1);
    border-radius: 999px;
    background: #fffaf0;
    color: var(--skd-label-text);
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.skd-copylist-btn--primary {
    border-color: var(--skd-danger-2);
    background: var(--skd-danger-bg);
    color: #fff;
    box-shadow: var(--skd-danger-shadow);
}

.skd-copylist-btn--ghost {
    background: transparent;
}

.skd-copylist-btn:disabled {
    cursor: not-allowed;
    opacity: .46;
    box-shadow: none;
}

.skd-copylist-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.skd-copylist-modal[hidden] {
    display: none !important;
}

.skd-copylist-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.skd-copylist-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 16, 8, .52);
}

.skd-copylist-modal__dialog {
    position: relative;
    width: min(94vw, 560px);
    max-height: min(86vh, 720px);
    overflow: auto;
    border: 1px solid var(--skd-gold-1);
    border-radius: 18px;
    background: #fffaf0;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    color: var(--skd-text);
}

.skd-copylist-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--skd-text-mute);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.skd-copylist-modal__dialog h3 {
    margin: 0 36px 8px 0;
    color: var(--skd-danger-2);
    font-size: 22px;
    line-height: 1.2;
}

.skd-copylist-modal__note {
    margin: 0 0 10px;
    color: var(--skd-text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.skd-copylist-modal__textarea {
    width: 100%;
    min-height: 240px;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid var(--skd-gold-1);
    border-radius: 12px;
    background: #fff;
    color: var(--skd-text);
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    line-height: 1.5;
}

.skd-copylist-modal__actions {
    justify-content: flex-start;
    margin-top: 12px;
}

@media (max-width: 767px) {
    .skd-khosim-wrap .skd-copy-pick {
        margin-bottom: 4px;
    }

    .skd-khosim-wrap .skd-copy-pick__label {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .skd-khosim-wrap .skd-copylist-toolbar {
        gap: 8px;
        margin: 6px 0 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .skd-khosim-wrap .skd-copylist-toolbar.is-active {
        position: sticky;
        bottom: 8px;
        z-index: 60;
    }

    .skd-khosim-wrap .skd-copylist-toolbar__summary {
        flex: 1 1 100%;
        font-size: 12px;
    }

    .skd-khosim-wrap .skd-copylist-toolbar__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .skd-copylist-btn {
        width: 100%;
        min-height: 34px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .skd-khosim-wrap .skd-copylist-toolbar.is-empty .skd-copylist-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .skd-khosim-wrap .skd-copylist-toolbar.is-empty [data-skd-copy-action],
    .skd-khosim-wrap .skd-copylist-toolbar.is-empty [data-skd-open-copylist],
    .skd-khosim-wrap .skd-copylist-toolbar.is-empty [data-skd-open-copyimage],
    .skd-khosim-wrap .skd-copylist-toolbar.is-empty [data-skd-clear-copylist] {
        display: none;
    }

    .skd-copylist-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .skd-copylist-modal__dialog {
        width: 100%;
        max-height: 86vh;
        border-radius: 18px 18px 14px 14px;
        padding: 15px;
    }

    .skd-copylist-modal__dialog h3 {
        font-size: 20px;
    }

    .skd-copylist-modal__textarea {
        min-height: 220px;
        font-size: 14px;
    }

    .skd-copylist-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* PKDS Kho Sim Copy Image: tạo ảnh thẻ luận sim đã chọn. */
.skd-copyimage-modal[hidden] {
    display: none !important;
}

.skd-copyimage-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.skd-copyimage-modal__dialog {
    width: min(96vw, 1040px);
    max-height: min(90vh, 820px);
}

.skd-copyimage-stage {
    width: 100%;
    max-height: 58vh;
    overflow: auto;
    border: 1px solid var(--skd-gold-1);
    border-radius: 16px;
    background: #fff7e6;
    padding: 10px;
}

.skd-copyimage-preview {
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
    background: #fff7e6;
}

.skd-copyimage-preview * {
    box-sizing: border-box;
}

.skd-copyimage-sheet {
    width: 920px;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
    background: #fff7e6;
    color: var(--skd-text);
    font-family: inherit;
}

.skd-copyimage-head,
.skd-copyimage-foot {
    border: 1px solid var(--skd-gold-1);
    border-radius: 16px;
    background: #fffdf6;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.skd-copyimage-head {
    margin-bottom: 12px;
    padding: 14px 16px;
}

.skd-copyimage-brand {
    color: var(--skd-danger-2);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1.2;
}

.skd-copyimage-title {
    margin-top: 4px;
    color: var(--skd-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.skd-copyimage-sub {
    margin-top: 4px;
    color: var(--skd-text-soft);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.skd-copyimage-card {
    margin: 0 0 12px 0 !important;
    box-shadow: none !important;
}

.skd-copyimage-card .skd-copy-pick,
.skd-copyimage-card .skd-actions {
    display: none !important;
}

.skd-copyimage-card .skd-desktop-only {
    display: block !important;
}

.skd-copyimage-card .skd-mobile-only {
    display: none !important;
}

.skd-copyimage-card .skd-item-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr) !important;
    gap: 14px !important;
}

.skd-copyimage-foot {
    padding: 10px 14px;
    color: var(--skd-text-soft);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.skd-copyimage-status {
    min-height: 18px;
    margin-top: 10px;
    color: var(--skd-text-soft);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.skd-copyimage-status.is-error {
    color: var(--skd-danger-2);
}

@media (max-width: 767px) {
    .skd-khosim-wrap .skd-copylist-toolbar.is-empty [data-skd-open-copyimage] {
        display: none;
    }

    .skd-copyimage-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .skd-copyimage-modal__dialog {
        width: 100%;
        max-height: 88vh;
    }

    .skd-copyimage-stage {
        max-height: 52vh;
        padding: 8px;
    }

    .skd-copyimage-sheet {
        width: 860px;
        max-width: 860px;
        padding: 14px;
    }
}

.skd-copyimage-card .skd-metrics-panel.skd-desktop-only {
    display: grid !important;
}

/* PKDS Kho Sim v3.8.9.2: copy ảnh luận bằng canvas nội bộ, không dùng foreignObject/SVG. */
.skd-copyimage-stage {
    overflow-x: hidden;
}

.skd-copyimage-preview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.skd-copyimage-rendered {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--skd-gold-1);
    border-radius: 14px;
    background: #fff4dc;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.skd-copyimage-loading {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--skd-text-soft);
    font-size: 13px;
    font-weight: 800;
}

.skd-copyimage-loading.is-error {
    color: var(--skd-danger-2);
}


/* PKDS v3.9.0: quick presets inherit the native Kho SIM filter. */
.skd-quick-presets{margin:0 0 16px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#071b32,#0b463f);color:#fff;box-shadow:0 16px 40px rgba(2,14,28,.14)}
.skd-quick-presets__head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.skd-quick-presets__head strong{font-size:18px;line-height:1.25;color:#f7d36a}.skd-quick-presets__head span{font-size:13px;opacity:.88}
.skd-quick-presets__chips,.skd-quick-presets__tools,.skd-quick-menh{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.skd-quick-presets__chips{margin-bottom:10px}.skd-quick-presets__tools{border-top:1px solid rgba(255,255,255,.14);padding-top:12px}.skd-quick-menh span{font-size:13px;font-weight:700;opacity:.92}
.skd-quick-chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border-radius:999px;text-decoration:none!important;background:rgba(255,255,255,.12);color:#fff!important;border:1px solid rgba(255,255,255,.22);font-weight:700;font-size:13px;transition:.18s ease}.skd-quick-chip:hover,.skd-quick-chip.is-active{background:#f7d36a;color:#142033!important;border-color:#f7d36a}.skd-quick-chip--small{min-height:30px;padding:5px 10px;font-size:12px}.skd-quick-year{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.skd-quick-year label{font-size:13px;font-weight:700}.skd-quick-year .pkds-input{width:110px;min-height:34px}.skd-quick-year .pkds-button--small{min-height:34px;padding:6px 12px}.skd-quick-clear{color:#ffe28a!important;font-weight:700;text-decoration:underline;text-underline-offset:3px;font-size:13px}
@media(max-width:640px){.skd-quick-presets{padding:14px;border-radius:16px}.skd-quick-chip{flex:1 1 calc(50% - 8px)}.skd-quick-menh .skd-quick-chip{flex:0 0 auto}.skd-quick-year{width:100%}.skd-quick-year .pkds-input{flex:1;min-width:120px}}

/* PKDS v3.9.0.1: gộp lọc nhanh vào bộ lọc chính, ẩn khung lọc nhanh cũ do setup plugin ghi vào trang. */
.skd-quick-presets{display:none!important;}
/* v3.9.0.9: Do NOT hide .pkds-filter-box / .pkds-visible-filter-box.
   Old page content may use these wrapper classes, and hiding them can blank the entire /kho-sim/ page. */
.skd-inline-quick{margin:0 0 16px;padding:14px;border-radius:16px;border:1px solid rgba(138,23,23,.18);background:linear-gradient(180deg,#fffaf2,#fff7e7);box-shadow:0 8px 22px rgba(0,0,0,.04);scroll-margin-top:110px}
.skd-inline-quick__title{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:baseline;margin-bottom:10px;color:#1f2937}
.skd-inline-quick__title strong{font-size:18px;color:#8a1717;line-height:1.2}.skd-inline-quick__title span{font-size:13px;color:#5b6675;line-height:1.45}
.skd-inline-quick__row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.skd-inline-quick__row--sub{padding-top:10px;border-top:1px dashed rgba(138,23,23,.2)}
.skd-inline-quick__label{font-weight:800;color:#374151;font-size:13px}.skd-inline-chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border-radius:999px;text-decoration:none!important;background:#fff;color:#0b3c47!important;border:1px solid #d7e0ea;font-weight:800;font-size:13px;transition:.16s ease}.skd-inline-chip:hover,.skd-inline-chip.is-active{background:#8a1717;color:#fff!important;border-color:#8a1717}.skd-inline-chip--small{min-height:30px;padding:5px 10px;font-size:12px}.skd-inline-year{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0}.skd-inline-year span{font-size:13px;font-weight:800;color:#374151}.skd-inline-year .pkds-input{width:118px;min-height:34px}.skd-inline-year__btn{min-height:34px;padding:6px 12px}.skd-inline-clear{color:#8a1717!important;font-weight:800;text-decoration:underline;text-underline-offset:3px;font-size:13px}
@media(max-width:640px){.skd-inline-quick{padding:12px;border-radius:14px}.skd-inline-chip{flex:1 1 calc(50% - 8px)}.skd-inline-chip--small{flex:0 0 auto}.skd-inline-year{width:100%}.skd-inline-year .pkds-input{flex:1;min-width:120px}.skd-inline-year__btn{flex:0 0 auto}}


/* v3.9.0.3: Kho SIM page hero moved out of post_content to avoid raw CSS being printed */
.pkds-kho-hero{max-width:1100px;margin:18px auto 26px;padding:42px 36px;border-radius:22px;background:radial-gradient(circle at 82% 18%,rgba(236,185,77,.28),transparent 28%),linear-gradient(135deg,#072f3b 0%,#0b4a57 54%,#06242e 100%);color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.12);overflow:hidden;position:relative}
.pkds-kho-hero:before{content:"";position:absolute;right:-80px;bottom:-120px;width:360px;height:360px;border:2px solid rgba(236,185,77,.45);border-radius:50%;box-shadow:0 0 0 22px rgba(236,185,77,.08),0 0 0 48px rgba(236,185,77,.05)}
.pkds-kho-hero__inner{position:relative;z-index:1;max-width:760px}
.pkds-kho-eyebrow{margin:0 0 12px;color:#f0c66b!important;font-weight:800;letter-spacing:.04em;text-transform:uppercase;font-size:14px}
.pkds-kho-hero h1{margin:0 0 12px;font-size:42px;line-height:1.12;color:#fff!important}
.pkds-kho-hero p{font-size:18px;line-height:1.55;margin:0 0 20px;color:#eaf5f7!important}
.pkds-kho-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.pkds-kho-tags a,.pkds-kho-tags span{display:inline-flex;align-items:center;border-radius:999px;background:#fff;color:#7d1717!important;font-weight:800;padding:9px 15px;font-size:14px;border:1px solid rgba(236,185,77,.45);text-decoration:none!important}
.pkds-kho-tags a:hover{background:#f7d984;color:#0b3c47!important}.pkds-kho-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.pkds-kho-actions a{display:inline-block;text-decoration:none!important;border-radius:12px;padding:12px 18px;font-weight:900}.pkds-kho-actions .primary{background:#e43131;color:#fff!important}.pkds-kho-actions .secondary{background:#fff;color:#0b3c47!important}.pkds-kho-note{font-size:14px!important;color:#d7e9ed!important;margin-top:16px!important}.pkds-anchor-offset{scroll-margin-top:110px}
@media(max-width:700px){.pkds-kho-hero{padding:30px 20px;border-radius:16px}.pkds-kho-hero h1{font-size:30px}.pkds-kho-hero p{font-size:16px}.pkds-kho-tags a,.pkds-kho-tags span{font-size:13px;padding:8px 12px}}


/* v3.9.1.0 scoped recovery: keep Kho SIM page content visible if old CSS cached elsewhere. */
body.page-id-189 .wp-block-post-content,
body.page-id-189 .entry-content,
body.page-id-189 .pkds-filter-box,
body.page-id-189 .pkds-visible-filter-box,
body.page-id-189 .skd-khosim-wrap{display:block!important;visibility:visible!important;opacity:1!important;max-height:none!important;height:auto!important;overflow:visible!important;}
body.page-id-189 .wp-block-post-title{display:block!important;visibility:visible!important;opacity:1!important;}
