/* Stella Creator 2.1 — form từng bước, ưu tiên màn hình nhỏ */
.scf-v21-layout .scf-work{min-width:0}.scf-v21-section-title{display:flex;align-items:center;gap:10px;margin:28px 0 12px;color:#102c58}.scf-v21-section-title h2{margin:0;font-size:19px}.scf-v21-list{display:grid;gap:12px}.scf-v21-row{background:#f0f7ff;border:1px solid #c9e1ff;border-radius:18px;padding:17px;display:flex;justify-content:space-between;gap:14px;align-items:center}.scf-v21-row:nth-child(3n+2){background:#edfafa;border-color:#c3e9e9}.scf-v21-row:nth-child(3n){background:#f5f1ff;border-color:#ded4ff}.scf-v21-video{background:#fff}.scf-v21-row-main{display:flex;align-items:flex-start;gap:13px;min-width:0}.scf-v21-row-main h3{margin:0 0 4px;color:#12305e;font-size:17px}.scf-v21-row-main p{margin:0 0 9px;color:#305a85;overflow-wrap:anywhere}.scf-v21-icon{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#d9eaff;color:#174f9f;font-weight:800}.scf-v21-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex-shrink:0}.scf-v21-note{margin-top:9px;background:#fff;padding:9px 12px;border-left:3px solid #3176d5;border-radius:8px;color:#143867}.scf-v21-modal .scf-dialog{width:min(600px,calc(100vw - 28px));max-width:600px;border-radius:24px;padding:30px;background:#fff;max-height:calc(100dvh - 28px);overflow-y:auto}.scf-v21-progress{display:flex;align-items:center;gap:15px;color:#2267bb;font-size:12px;letter-spacing:.09em;font-weight:800;margin:0 30px 20px 0}.scf-v21-progress #scf-v21-track{height:6px;background:#e2eeff;flex:1;border-radius:20px;overflow:hidden}.scf-v21-progress i{height:100%;display:block;width:20%;background:#1467cb;border-radius:20px;transition:width .2s}.scf-v21-dialog h2{font-size:clamp(22px,4vw,29px);color:#102b57;margin:0 0 8px;line-height:1.25}.scf-v21-desc{color:#326092;margin:0 0 24px}.scf-v21-choice{width:100%;display:flex;align-items:center;gap:17px;text-align:left;background:#f0f7ff;border:2px solid #d7e8ff;border-radius:18px;padding:22px;margin:12px 0;color:#10417d;cursor:pointer}.scf-v21-choice:hover,.scf-v21-choice:focus-visible{border-color:#1467cb;background:#e3f0ff}.scf-v21-choice>.dashicons{font-size:33px;width:38px;height:38px}.scf-v21-choice span:nth-child(2){flex:1}.scf-v21-choice b{display:block;font-size:18px}.scf-v21-choice small{display:block;margin-top:5px;font-size:13px;color:#346492}.scf-v21-choices{display:grid;gap:10px}.scf-v21-check{display:flex!important;align-items:center;gap:12px;background:#f1f8ff;border:1px solid #cfe4fc;border-radius:13px;padding:14px 16px;cursor:pointer;color:#123967;font-weight:650}.scf-v21-check:has(input:checked){border-color:#2875cf;background:#e4f1ff}.scf-v21-check input{width:19px;height:19px;accent-color:#1467cb}.scf-v21-page label{display:block;margin:0 0 16px;font-weight:650;color:#133966}.scf-v21-page input:not([type=checkbox]),.scf-v21-page select,.scf-v21-page textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #bdd7f7;border-radius:13px;background:#f8fbff;color:#102e56;min-height:47px;padding:11px 13px;margin-top:8px;font-size:16px}.scf-v21-page textarea{min-height:135px}.scf-v21-page input:focus,.scf-v21-page select:focus,.scf-v21-page textarea:focus{outline:2px solid #4089dc;outline-offset:1px;background:#fff}.scf-v21-page input[type=file]{padding:12px}.scf-v21-image small{color:#35648f}.scf-v21-image #scf-v21-preview{display:flex;gap:8px;margin:10px 0}.scf-v21-image img{width:86px;height:86px;object-fit:cover;border-radius:12px;border:1px solid #bed6f3}.scf-v21-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:25px;padding-top:18px;border-top:1px solid #ddecff}.scf-v21-footer .scf-btn{border-radius:12px;min-height:44px}.scf-v21-footer button:first-child{margin-right:auto}.scf-v21-summary{background:#f1f7ff;border:1px solid #cfdef2;border-radius:15px;padding:18px}.scf-v21-summary>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #d5e6fa;overflow-wrap:anywhere;color:#143765}.scf-v21-summary>div:last-child{border-bottom:none}.scf-v21-warning{padding:12px 14px;background:#fff0ed;border:1px solid #efae9c;color:#a12a21;border-radius:12px;margin-bottom:14px}.scf-v21-page[hidden],.scf-v21-footer [hidden]{display:none!important}@media(max-width:767px){.scf-v21-row{align-items:stretch;flex-direction:column;padding:15px}.scf-v21-actions{width:100%}.scf-v21-actions .scf-btn{flex:1;text-align:center;justify-content:center}.scf-v21-dialog{padding:22px!important;border-radius:18px!important}.scf-v21-choice{padding:18px 15px}.scf-v21-summary>div{grid-template-columns:1fr;gap:4px}.scf-v21-footer{display:grid;grid-template-columns:1fr 1fr}.scf-v21-footer .scf-btn{width:100%;margin:0!important}.scf-v21-footer button:first-child{grid-column:1 / -1}}

/* V2.1.1 — lựa chọn rõ ràng, số thứ tự và chữ lớn trên desktop/mobile */
.scf-v21-choices{gap:14px}
.scf-v21-check{gap:13px;padding:17px 18px;min-height:66px;border-width:2px;font-size:17px;line-height:1.35}
.scf-v21-check .scf-v21-index{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;background:#d9eaff;color:#124d98;border-radius:11px;font-size:15px;font-weight:800}
.scf-v21-check .scf-v21-checktext{flex:1;font-weight:750;color:#113968}
.scf-v21-check input[type=checkbox]{width:23px;height:23px;flex-shrink:0}
.scf-v21-check:has(input:checked) .scf-v21-index{background:#155ec1;color:white}
.scf-v21-field-title{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:800;line-height:1.4;margin-bottom:8px;color:#113968}
.scf-v21-field-title b{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:11px;background:#155ec1;color:white;font-size:14px}
.scf-v21-page select{font-weight:650;font-size:17px;min-height:54px}
.scf-v21-page option{font-size:16px}
@media(max-width:767px){.scf-v21-check{padding:15px 12px;font-size:17px}.scf-v21-field-title{font-size:17px}.scf-v21-page select{font-size:16px}}

/* V2.1.6: Màu trạng thái rõ ràng khi nhân viên theo dõi yêu cầu và video. */
.scf-v21-layout .scf-request-card.scf-request-active{background:#eaf5ff;border:1.5px solid #8bbcf4;border-left:5px solid #2580dc}
.scf-v21-layout .scf-request-card.scf-request-complete{background:#effbf6;border:1.5px solid #9cdec0;border-left:5px solid #17a66d}
.scf-v21-layout .scf-v21-video.scf-video-pending{background:#fff7ea;border:1.5px solid #efcf8f;border-left:5px solid #e49622}
.scf-v21-layout .scf-v21-video.scf-video-approved{background:#e9faf1;border:1.5px solid #97ddbd;border-left:5px solid #15945e}
.scf-v21-layout .scf-v21-video.scf-video-empty{background:#eff6ff;border:1.5px solid #b9d9f8;border-left:5px solid #387fc9}
.scf-v21-layout .scf-v21-video.scf-video-pending .scf-v21-icon{background:#ffebbf;color:#955100}
.scf-v21-layout .scf-v21-video.scf-video-approved .scf-v21-icon{background:#c8f2dc;color:#087149}
.scf-v21-layout .scf-request-card.scf-request-active .scf-v21-icon{background:#d0e7ff;color:#1455a6}
.scf-v21-layout .scf-request-card.scf-request-complete .scf-v21-icon{background:#c8f2dc;color:#087149}
.scf-v21-layout .scf-v21-row .scf-badge{border-radius:999px;padding:6px 11px;font-size:12px}
.scf-v21-layout .scf-v21-row h3{font-size:17px;line-height:1.4}
@media(max-width:767px){.scf-v21-layout .scf-v21-row{border-left-width:5px}.scf-v21-layout .scf-v21-actions .scf-btn{min-height:42px}}

/* V2.1.8 — phân cấp màu theo mục đích và trạng thái, form nghiệm thu 2 cột. */
.scf-v21-layout{--scf-ink:#092b55;--scf-cyan:#087d98;--scf-success:#0b8050;--scf-amber:#a15b08;--scf-surface:#f5f9ff;background:#f3f8ff;color:var(--scf-ink)}
.scf-v21-layout .scf-sidebar{background:linear-gradient(170deg,#071e40 0%,#0b3769 65%,#0b566e 100%)}
.scf-v21-layout .scf-profile{background:#ffffff10;padding:14px 12px;border:1px solid #88baff50;border-radius:14px;overflow-wrap:anywhere}
.scf-v21-layout .scf-metrics>div:nth-child(1){background:#174778}.scf-v21-layout .scf-metrics>div:nth-child(2){background:#0b5f78}.scf-v21-layout .scf-metrics>div:nth-child(3){background:#234f8b}.scf-v21-layout .scf-metrics>div:nth-child(4){background:#106750}
.scf-v21-layout .scf-scoreline{padding:11px 0;gap:15px;border-bottom-color:#a8d9ed55}.scf-v21-layout .scf-scoreline b{color:#b4f3e0}
.scf-v21-layout .scf-sidebar .scf-btn.scf-outline{background:#ffffff16!important;color:#fff!important;border:1px solid #c8e2ff66}.scf-v21-layout .scf-sidebar .scf-btn.scf-outline:hover{background:#ffffff30!important}
.scf-v21-layout .scf-top{background:#fff;padding:20px 22px;border-radius:20px;border:1px solid #d2e3f8;box-shadow:0 7px 22px #1042740a}
.scf-v21-layout .scf-v21-new{background:#165dcb!important;box-shadow:0 6px 18px #145ac12b}.scf-v21-layout .scf-v21-new:hover{background:#08449f!important}
.scf-v21-layout .scf-v21-row{box-shadow:0 7px 16px #13396009;transition:border-color .15s,box-shadow .15s}
.scf-v21-layout .scf-v21-row:hover{box-shadow:0 9px 22px #123a6b16}
.scf-v21-layout .scf-request-card.scf-request-active{background:#ebf5ff;border-color:#a4cdf8;border-left:5px solid #2874cc}
.scf-v21-layout .scf-request-card.scf-request-complete{background:#e8faf7;border-color:#a2e4d8;border-left:5px solid #159982}
.scf-v21-layout .scf-v21-video.scf-video-pending{background:#fff6e7;border-color:#f2d4a1;border-left:5px solid #e89a23}
.scf-v21-layout .scf-v21-video.scf-video-approved{background:#e9f9ef;border-color:#a4dec0;border-left:5px solid #179058}
.scf-v21-layout .scf-v21-video.scf-video-empty{background:#eff5ff;border-color:#c4d8f5;border-left:5px solid #5b83bb}
.scf-v21-layout .scf-request-card .scf-btn[data-scf-wizard=submit]{background:#0c8579!important}.scf-v21-layout .scf-request-card .scf-btn[data-scf-wizard=submit]:hover{background:#076257!important}
.scf-v21-layout .scf-v21-video .scf-btn[data-scf-wizard=edit-entry]{background:#ba7419!important}.scf-v21-layout .scf-v21-video .scf-btn[data-scf-wizard=edit-entry]:hover{background:#965700!important}
.scf-v21-layout .scf-v21-row .scf-btn.scf-outline{background:#fff!important;color:#164d8b!important;border:1px solid #abc7e5}
.scf-v21-layout .scf-request-card .scf-v21-note{background:#fff;border-left-color:#18888c}
.scf-v21-layout .scf-v21-video .scf-v21-note{background:#fff;border-left-color:#dc9224}
.scf-v21-layout .scf-v21-row .scf-badge.scf-orange{background:#ffe0ab!important;color:#874b00!important}
.scf-v21-layout .scf-v21-row .scf-badge.scf-green{background:#d2f3e2!important;color:#096540!important}
.scf-v21-layout .scf-v21-row .scf-badge.scf-blue{background:#dcecff!important;color:#124b91!important}
.scf-v21-layout .scf-v21-actions .scf-btn{font-size:13px;min-height:40px}
.scf-v21-dialog:has([data-step=video]:not([hidden])){width:min(960px,calc(100vw - 28px));max-width:960px}
.scf-v218-video-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.scf-v218-video-fields,.scf-v218-evidence{min-width:0;border:1px solid #cce1f8;border-radius:18px;padding:20px;background:#f3f8ff}
.scf-v218-evidence{background:#effaf8;border-color:#b9e5dd}
.scf-v218-kicker{display:flex;align-items:center;gap:7px;color:#123c76;font-size:12px;font-weight:850;letter-spacing:.07em;margin-bottom:16px}
.scf-v218-evidence .scf-v218-kicker{color:#0a6864;flex-wrap:wrap}
.scf-v218-kicker .dashicons{font-size:20px;width:21px;height:21px}
.scf-v218-kicker em{font-style:normal;font-size:10px;letter-spacing:0;background:#d4f3e8;color:#087251;border-radius:999px;padding:5px 9px;margin-left:auto}
.scf-v218-required{color:#a82847;background:#ffe6ee;border-radius:999px;padding:3px 7px;font-size:10px;margin-left:6px}
.scf-v21-page .scf-v218-video-fields label{font-size:14px}
.scf-v218-link-hint{display:flex;gap:7px;align-items:center;color:#2a608f;font-size:12px;line-height:1.5;margin-top:-5px}
.scf-v218-help{color:#17635e;font-size:13px;line-height:1.55;margin:0 0 12px}
.scf-v218-upload-grid{display:grid;gap:8px}
.scf-v21-page .scf-v218-upload{background:#fff;border:1px dashed #84c8bc;border-radius:12px;padding:10px 12px;margin:0;color:#145c58;font-size:13px}
.scf-v21-page .scf-v218-upload input[type=file]{background:#f7fffd;border:0;margin:5px 0 0;padding:4px;min-height:38px;font-size:12px}
.scf-v218-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0 0;min-height:118px}
.scf-v218-preview-card{position:relative;background:#fff;border:1px solid #a1d9cf;border-radius:13px;overflow:hidden;min-width:0}
.scf-v218-preview-grid .scf-v218-preview-card img{width:100%;height:150px;max-height:none;max-width:none;object-fit:contain;background:#fff;border:0;border-radius:0}
.scf-v218-preview-card span{display:block;background:#e0f5ec;color:#0b614e;font-weight:750;font-size:11px;padding:6px 10px}
.scf-v218-placeholder{grid-column:1/-1;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;text-align:center;background:#fff;border:1.5px dashed #94cec3;border-radius:13px;padding:14px;color:#155b59;min-height:120px}
.scf-v218-placeholder .dashicons{font-size:28px;width:30px;height:30px;color:#329d8f}.scf-v218-placeholder b{font-size:13px}.scf-v218-placeholder small{font-size:12px;color:#497e78}
.scf-v21-dialog .scf-v21-footer .scf-btn.scf-outline{background:#e5effd!important;color:#16509b!important}
.scf-v21-dialog .scf-v21-footer #scf-v21-save{background:#0c8867!important}
.scf-v21-dialog .scf-v21-footer #scf-v21-next{background:#175fca!important}
@media(max-width:767px){.scf-v218-video-layout{grid-template-columns:1fr;gap:12px}.scf-v218-video-fields,.scf-v218-evidence{padding:15px}.scf-v21-dialog:has([data-step=video]:not([hidden])){width:100%;max-width:100%}.scf-v21-layout .scf-top{padding:17px}.scf-v218-preview-grid .scf-v218-preview-card img{height:130px}}

/* V2.3.4 — giao diện Mobile-first, số lượt thống nhất và thumbnail nghiệm thu. */
.scf-v21-layout .scf-v21-list{gap:13px}
.scf-v21-layout .scf-v21-row-main{flex:1;min-width:0;align-items:center}
.scf-v21-layout .scf-v21-row-main>div{min-width:0;flex:1}
.scf-v21-layout .scf-v21-row-main h3{overflow-wrap:anywhere}
.scf-v21-layout .scf-v234-number{flex:0 0 64px;width:64px;height:64px;font-size:20px;border-radius:16px}
.scf-v234-thumb{position:relative;flex:0 0 76px;width:76px;height:76px;display:block;overflow:hidden;border-radius:15px;background:#fff;border:2px solid #b5d2f2;box-shadow:0 3px 10px #163c6712}
.scf-v234-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.scf-v234-thumb span{position:absolute;left:4px;bottom:4px;padding:1px 7px;border-radius:7px;background:#092d58e8;color:#fff;font-size:11px;font-weight:800}
.scf-v21-page .scf-v218-video-fields select{min-width:0;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:33px;-webkit-appearance:menulist;appearance:auto}
.scf-v234-selected{display:block;margin-top:7px;font-weight:600;font-size:14px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;color:#164f8d}
.scf-v21-dialog,.scf-v218-video-fields,.scf-v218-evidence{box-sizing:border-box;min-width:0}
@media(max-width:767px){
 .scf-v21-modal{padding:0!important;align-items:stretch!important}
 .scf-v21-modal .scf-v21-dialog,.scf-v21-modal .scf-v21-dialog:has([data-step=video]:not([hidden])){position:relative;display:block;width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh;overflow-x:hidden;overflow-y:auto;border-radius:0!important;margin:0;padding:calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom))!important}
 .scf-v21-dialog h2{font-size:24px;padding-right:25px}
 .scf-v21-dialog .scf-close{right:13px;top:calc(10px + env(safe-area-inset-top))}
 .scf-v218-video-layout{grid-template-columns:minmax(0,1fr);gap:13px}
 .scf-v218-video-fields,.scf-v218-evidence{padding:15px 13px}
 .scf-v21-page input:not([type=checkbox]),.scf-v21-page select,.scf-v21-page textarea{max-width:100%;font-size:16px;min-width:0}
 .scf-v21-page .scf-v218-upload input[type=file]{font-size:14px;max-width:100%;overflow:hidden}
 .scf-v218-upload-grid{grid-template-columns:minmax(0,1fr)}
 .scf-v21-footer{position:sticky;bottom:0;z-index:3;background:#fff;padding:13px 0 calc(5px + env(safe-area-inset-bottom));box-shadow:0 -9px 16px #ffffffd9}
 .scf-v21-layout .scf-v21-row-main{align-items:center}
 .scf-v21-layout .scf-v234-number{width:56px;height:56px;flex-basis:56px}
 .scf-v234-thumb{width:65px;height:65px;flex-basis:65px}
 .scf-v21-layout .scf-v21-row-main h3{font-size:15px}
}
@media(max-width:365px){.scf-v21-dialog .scf-v21-footer .scf-btn{font-size:13px;padding:8px}.scf-v21-layout .scf-v21-row{padding:11px}.scf-v21-layout .scf-v21-row-main{gap:9px}}

/* V2.3.5 — Hai danh sách riêng: phiếu hỗ trợ 3 cột, video 1 danh sách có thumbnail. */
.scf-v21-layout .scf-v235-support-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:stretch}
.scf-v21-layout .scf-v235-support-grid .scf-request-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-width:0;padding:17px;gap:15px;background:#edf6ff;border:1px solid #aacff6;border-left:4px solid #2d7cd3}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main{display:flex;flex-direction:column;align-items:stretch;gap:11px;min-width:0}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main>div{width:100%;min-width:0}
.scf-v21-layout .scf-v235-support-grid .scf-v234-number{width:42px;height:42px;flex:0 0 42px;font-size:14px;border-radius:12px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main h3{font-size:15px;line-height:1.45;margin-bottom:8px;overflow-wrap:anywhere}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main p{font-size:13px;overflow-wrap:anywhere}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px;margin-top:auto}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions .scf-btn{flex:1;min-width:0;white-space:normal;text-align:center;min-height:43px}
.scf-v21-layout .scf-v235-support-grid .scf-resource-link{white-space:normal;overflow-wrap:anywhere;text-align:center}
.scf-v21-layout .scf-v235-support-grid .scf-support-reply-button{font-size:13px;text-align:left}
.scf-v21-layout .scf-v235-video-list{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
.scf-v21-layout .scf-v235-video-list .scf-v21-video{min-width:0}
.scf-v21-layout .scf-v235-video-list .scf-v234-thumb{width:84px;height:84px;flex-basis:84px;aspect-ratio:1/1}
.scf-v235-empty{grid-column:1/-1;border:1px dashed #b5d3f3;background:#f7fbff;border-radius:16px;padding:23px;color:#285b91;text-align:center}
@media(max-width:1150px){.scf-v21-layout .scf-v235-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.scf-v21-layout .scf-v235-support-grid{grid-template-columns:minmax(0,1fr)}.scf-v21-layout .scf-v235-support-grid .scf-request-card{padding:15px}.scf-v21-layout .scf-v235-video-list .scf-v234-thumb{width:68px;height:68px;flex-basis:68px}.scf-v21-layout .scf-v235-video-list .scf-v21-row-main{align-items:center}}

/* V2.3.6 — Phiếu hỗ trợ: 4 thẻ gọn trên desktop rộng, 2 trên tablet, 1 trên điện thoại. */
.scf-v21-layout .scf-v235-support-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.scf-v21-layout .scf-v235-support-grid .scf-request-card{padding:13px;gap:10px;border-radius:14px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main{gap:8px}
.scf-v21-layout .scf-v235-support-grid .scf-v234-number{width:34px;height:34px;flex-basis:34px;border-radius:9px;font-size:12px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main h3{font-size:14px;line-height:1.4;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.scf-v21-layout .scf-v235-support-grid .scf-v21-row-main p{font-size:12px;line-height:1.4;margin-bottom:6px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-note{padding:7px 9px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions{gap:6px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions .scf-btn{font-size:12px;min-height:37px;padding:7px 8px}
.scf-v21-layout .scf-v235-support-grid .scf-resource-link{font-size:12px;min-height:36px}
@media(max-width:1280px){.scf-v21-layout .scf-v235-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.scf-v21-layout .scf-v235-support-grid{grid-template-columns:minmax(0,1fr)}}

/* V2.3.9 — Hành động của Sales: thêm/sửa/xóa phiếu và bài; bảng chấm điểm Sidebar. */
.scf-v21-layout .scf-v239-rubric{margin:18px 0;padding:15px;border:1px solid #5475a7;border-radius:14px;background:#142f53;color:#fff}
.scf-v21-layout .scf-v239-rubric h2{display:flex;gap:7px;align-items:center;margin:0 0 7px;color:#fff;font-size:16px}
.scf-v21-layout .scf-v239-rubric p{color:#c9def5;margin:0 0 12px;font-size:12px;line-height:1.45}
.scf-v21-layout .scf-v239-score-list{display:grid;gap:7px}
.scf-v21-layout .scf-v239-score-row{display:flex;justify-content:space-between;gap:10px;align-items:start;border-radius:9px;background:#21466e;padding:9px;font-size:12px;line-height:1.35}
.scf-v21-layout .scf-v239-score-row span{flex:1;min-width:0}
.scf-v21-layout .scf-v239-score-row strong{color:#c9f5df;white-space:nowrap;font-size:12px}
.scf-v21-layout .scf-v239-delete{margin:0;display:inline-flex;min-width:0}
.scf-v21-layout .scf-v239-danger{background:#fff0f1!important;color:#ac2434!important;border:1px solid #ffc9cf!important;display:inline-flex;align-items:center;justify-content:center;gap:3px}
.scf-v21-layout .scf-v239-danger:hover{background:#ffe0e3!important;color:#8f1628!important}
.scf-v21-layout .scf-v239-danger .dashicons{font-size:15px;width:15px;height:15px}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions{align-items:center}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions .scf-v239-delete{flex:1}
.scf-v21-layout .scf-v235-support-grid .scf-v21-actions .scf-v239-delete .scf-btn{width:100%}
@media(max-width:767px){.scf-v21-layout .scf-v235-video-list .scf-v21-actions{display:flex;flex-wrap:wrap;gap:8px}.scf-v21-layout .scf-v235-video-list .scf-v239-delete{max-width:100%}}

/* V2.4.9 – Điều chỉnh UX riêng màn Sales / Wizard. Không thay đổi giao diện Admin. */
.scf-v21-layout .scf-top{padding:17px 20px;min-height:0;align-items:center;gap:14px}
.scf-v21-layout .scf-top h1{line-height:1.2;margin:4px 0 5px}
.scf-v21-layout .scf-top p{margin:0;line-height:1.5}
.scf-v21-layout .scf-metrics{display:flex;flex-direction:column;gap:7px;margin:15px 0}
.scf-v21-layout .scf-metrics>div{display:flex!important;justify-content:space-between;align-items:center;min-height:39px;padding:8px 13px;gap:9px;border-radius:11px;background:#1b4678;color:#fff}
.scf-v21-layout .scf-metrics>div:nth-child(2){background:#735018}
.scf-v21-layout .scf-metrics>div:nth-child(3){background:#0a6550}
.scf-v21-layout .scf-metrics>div span{font-size:13px;color:#fff}
.scf-v21-layout .scf-metrics>div b{font-size:18px;color:#fff}
.scf-v21-layout .scf-v249-rubric{padding:0;overflow:hidden;border:1px solid #ffffff45;border-radius:13px;margin:13px 0;background:#ffffff0d}
.scf-v21-layout .scf-v249-rubric summary{display:flex;align-items:center;gap:9px;padding:12px;cursor:pointer;font-weight:750;font-size:14px;color:#fff;list-style:none}
.scf-v21-layout .scf-v249-rubric summary::-webkit-details-marker{display:none}
.scf-v21-layout .scf-v249-rubric summary .dashicons:last-child{margin-left:auto;transition:transform .15s}
.scf-v21-layout .scf-v249-rubric[open] summary .dashicons:last-child{transform:rotate(180deg)}
.scf-v21-layout .scf-v249-rubric p{padding:0 12px;margin:0 0 10px;font-size:12px;color:#e1eeff}
.scf-v21-layout .scf-v249-rubric .scf-v239-score-list{padding:0 9px 11px}
.scf-v21-layout .scf-v249-rubric .scf-v239-score-row{padding:8px 9px}
.scf-v21-layout .scf-v21-section-title{margin:21px 0 10px}
.scf-v21-layout .scf-v235-support-section .scf-v21-section-title>.dashicons{color:#1a65c3}
.scf-v21-layout .scf-v235-video-section .scf-v21-section-title>.dashicons{color:#07816d}
.scf-v21-layout .scf-v235-empty,.scf-v21-layout .scf-empty{min-height:100px;box-sizing:border-box;padding:17px 13px}
.scf-v21-layout .scf-empty .dashicons{font-size:27px;width:27px;height:27px}
.scf-v21-layout .scf-empty h3{margin:6px 0 3px}
.scf-v21-layout .scf-empty p{margin:3px 0}
.scf-v21-dialog .scf-v21-progress[hidden]{display:none!important}
.scf-v21-dialog .scf-v21-choice{transition:border-color .14s,background .14s,transform .14s,box-shadow .14s}
.scf-v21-dialog .scf-v21-choice[data-scf-pick=own]{background:#edfaf8;border-color:#c7e8e1;color:#075e56}
.scf-v21-dialog .scf-v21-choice[data-scf-pick=own]:hover,.scf-v21-dialog .scf-v21-choice[data-scf-pick=own]:focus-visible{border-color:#0d8a78;background:#def6f0}
.scf-v21-dialog .scf-v21-choice:hover{transform:translateY(-1px);box-shadow:0 8px 22px #123f7512}
.scf-v21-dialog .scf-v21-check{min-height:64px;box-sizing:border-box;transition:background .13s,border-color .13s}
.scf-v21-dialog .scf-v21-check:focus-within{outline:2px solid #307be1;outline-offset:2px}
.scf-v21-dialog .scf-v21-checktext{font-size:16px}
.scf-v21-dialog .scf-v249-empty-items{padding:14px;border:1px solid #f0cea2;border-radius:12px;background:#fff7e8;color:#79500e}
.scf-v21-dialog .scf-v21-page [aria-invalid=true]{border-color:#d4394b!important;outline:2px solid #d4394b33!important}
.scf-v21-dialog .scf-v249-field-error{display:block;margin:7px 0 0;color:#a91e36;font-weight:700;font-size:12px;line-height:1.4}
.scf-v21-dialog .scf-v218-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.scf-v21-dialog .scf-v218-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.scf-v21-dialog .scf-v249-preview-slot{display:flex;flex-direction:column;min-width:0;background:#fff}
.scf-v21-dialog .scf-v249-preview-media{aspect-ratio:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#fff;color:#32867a;min-width:0;overflow:hidden}
.scf-v21-dialog .scf-v249-preview-media img{width:100%;height:100%;max-height:none;object-fit:cover;display:block}
.scf-v21-dialog .scf-v249-preview-media .dashicons{font-size:27px;width:27px;height:27px}
.scf-v21-dialog .scf-v249-preview-media small{font-size:12px}
.scf-v21-dialog .scf-v249-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;padding:8px;background:#e9f7f3}
.scf-v21-dialog .scf-v249-preview-footer span{padding:0;color:#155d51;font-size:12px}
.scf-v21-dialog .scf-v249-preview-footer small{font-size:10px;color:#286c63}
.scf-v21-dialog .scf-v249-clear-image{cursor:pointer;border:1px solid #e8adb6;border-radius:8px;background:#fff;color:#a12539;padding:5px 7px;font-size:11px}
.scf-v21-dialog .scf-v249-clear-image:hover{background:#fff0f0}
.scf-v21-dialog .scf-v21-footer .scf-btn[disabled]{opacity:.6;cursor:wait}
@media(max-width:900px){.scf-v21-layout .scf-top{align-items:flex-start}}
@media(max-width:767px){
 .scf-v21-layout .scf-top{padding:15px}
 .scf-v21-layout .scf-top .scf-v21-new{width:100%;justify-content:center}
 .scf-v21-layout .scf-metrics{display:grid;grid-template-columns:1fr 1fr}
 .scf-v21-layout .scf-metrics>div:last-child{grid-column:1/-1}
 .scf-v21-dialog .scf-v218-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .scf-v21-dialog .scf-v218-upload input[type=file]{font-size:12px;max-width:100%}
 .scf-v21-dialog .scf-v21-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
 .scf-v21-dialog .scf-v21-footer .scf-btn{width:auto;flex:1;min-width:0;min-height:48px;margin:0!important;justify-content:center}
 .scf-v21-dialog .scf-v21-footer .scf-btn[hidden]{display:none!important}
 .scf-v21-dialog .scf-v21-footer:has([data-scf-wizard=cancel]:not([hidden])) [data-scf-wizard=cancel]{flex:0 0 auto}
 .scf-v21-dialog .scf-v21-footer:has([data-scf-wizard=cancel]:not([hidden])){justify-content:flex-start}
}

/* Preview hai ảnh: ghi đè quy tắc flex kế thừa của bản trước. */
.scf-v21-dialog #scf-v21-preview.scf-v218-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
.scf-v21-dialog .scf-v249-preview-slot img{width:100%;height:100%;object-fit:cover}

/* V2.5.0: Chuẩn hóa nút/icon trên mọi hàng, bao gồm dashboard, wizard, Admin. */
.scf-portal .scf-btn,.scf-admin .scf-btn,.scf-admin .button,.scf-admin button.button,.scf-v21-dialog .scf-btn{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;
 min-height:44px;height:auto;line-height:1.3;text-align:center;border-radius:10px;
 padding:9px 14px;box-sizing:border-box;white-space:normal;
}
.scf-portal .scf-btn-sm,.scf-admin .scf-delete-small,.scf-admin .scf-row-actions .button{min-height:36px;padding:7px 11px}
.scf-portal .scf-btn .dashicons,.scf-admin .button .dashicons,.scf-admin .scf-btn .dashicons,.scf-v21-dialog .scf-btn .dashicons{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;
 width:18px;height:18px;font-size:18px;line-height:1;vertical-align:middle;margin:0;
}
.scf-portal .scf-v21-actions,.scf-admin .scf-admin-actions,.scf-admin .scf-manage-actions,.scf-admin .scf-v246-actionbar{
 display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.scf-portal .scf-v21-actions form,.scf-admin .scf-admin-actions form,.scf-admin .scf-manage-actions form{display:inline-flex;align-items:center;margin:0}
.scf-v21-dialog .scf-v21-footer{display:flex;align-items:center;gap:10px}
.scf-v21-dialog .scf-v21-footer .scf-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.scf-v250-upload-status{margin-top:14px;padding:12px 14px;background:#eaf4ff;border:1px solid #b9d7fa;border-radius:12px;color:#113d74;font-weight:700;font-size:13px}
.scf-v250-upload-status[hidden]{display:none!important}
.scf-v250-upload-track{height:6px;border-radius:8px;background:#c9def6;margin-top:9px;overflow:hidden}
.scf-v250-upload-track i{display:block;width:0;height:100%;background:#1671cf;transition:width .2s ease}
.scf-v21-dialog[aria-busy=true] .scf-close{opacity:.5;cursor:wait}
@media(max-width:767px){
 .scf-v21-modal.scf-modal{inset:0;padding:0;align-items:stretch;overscroll-behavior:contain}
 .scf-v21-modal .scf-v21-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;
  border-radius:0!important;padding:20px 16px calc(20px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
 .scf-v21-dialog #scf-v21-form{min-width:0}
 .scf-v21-dialog .scf-v218-video-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;width:100%}
 .scf-v21-dialog .scf-v218-video-fields,.scf-v21-dialog .scf-v218-evidence{min-width:0;max-width:100%}
 .scf-v21-dialog .scf-v218-upload-grid{grid-template-columns:minmax(0,1fr)!important}
 .scf-v21-dialog .scf-v218-upload input[type=file]{width:100%;max-width:100%;min-width:0;font-size:14px}
 .scf-v21-dialog input,.scf-v21-dialog select,.scf-v21-dialog textarea{max-width:100%;font-size:16px!important}
 .scf-v21-dialog .scf-v21-footer{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));z-index:5;
  margin:20px -16px calc(-20px - env(safe-area-inset-bottom));padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #d2e5fa;box-shadow:0 -8px 20px #103f7010;}
 .scf-v21-dialog .scf-v21-footer .scf-btn{min-width:0;min-height:48px}
 .scf-v21-dialog .scf-v218-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){.scf-v21-dialog .scf-v21-footer .scf-btn{padding:9px 8px;font-size:13px}}


/* V2.5.2 — Danh sách video: desktop đồng hàng, mobile thẻ compact, checkbox thuần.
   Chỉ giới hạn trong khu vực video, không ảnh hưởng phiếu hỗ trợ, Admin hay Wizard. */
.scf-v21-layout .scf-v235-video-list .scf-v252-video{
 display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;
 align-items:center;min-height:88px;padding:11px 14px;border-radius:13px;
 background:#fff;border:1px solid #d7e5f5;border-left:4px solid #e1a045;
 box-sizing:border-box;box-shadow:none;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video:has(.scf-green){border-left-color:#15945e}
.scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v244-sale-select{
 display:grid!important;place-items:center;align-self:center;width:24px;height:36px;
 padding:0!important;margin:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;border-radius:0!important;
 min-width:0;flex:none;cursor:pointer;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v244-sale-entry{
 display:block!important;appearance:auto!important;-webkit-appearance:checkbox!important;
 width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
 margin:0!important;padding:0!important;border-radius:4px!important;box-shadow:none!important;
 transform:none!important;accent-color:#175ec0;cursor:pointer;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v21-row-main{
 display:flex;align-items:center;gap:12px;min-width:0;overflow:hidden;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v234-thumb,
.scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v234-number{
 width:60px!important;height:60px!important;flex:0 0 60px!important;
 aspect-ratio:1;box-sizing:border-box;border-radius:10px;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-info{min-width:0;flex:1;overflow-wrap:anywhere}
.scf-v21-layout .scf-v235-video-list .scf-v252-info h3{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
 font-size:15px;line-height:1.35;margin:0 0 3px;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-info>p{font-size:12px;line-height:1.35;margin:0 0 4px}
.scf-v21-layout .scf-v235-video-list .scf-v252-info>.scf-badge{font-size:11px;line-height:1.35;padding:3px 8px}
.scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions{
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;
 width:auto;min-width:0;margin:0;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions .scf-btn{
 flex:none;display:inline-flex;align-items:center;justify-content:center;
 min-height:36px;height:36px;padding:6px 11px;line-height:1.2;
 white-space:nowrap;font-size:12px;box-sizing:border-box;margin:0;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions .scf-v239-delete{
 display:inline-flex;align-items:center;margin:0;flex:none;
}
.scf-v21-layout .scf-v235-video-list .scf-v252-expand{display:none}
.scf-v21-layout .scf-v252-filters{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:0 0 2px}
.scf-v21-layout .scf-v252-filter{
 min-height:34px;padding:7px 13px;border:1px solid #c5d9f3;border-radius:18px;
 background:#fff;color:#174575;font-size:12px;font-weight:700;cursor:pointer;
}
.scf-v21-layout .scf-v252-filter.is-active{background:#165abb;border-color:#165abb;color:#fff}
.scf-v21-layout .scf-v252-more{display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 0}
.scf-v21-layout .scf-v252-more #scf-v252-shown{font-size:12px;color:#345a7e}
.scf-v21-layout .scf-v252-video[hidden],.scf-v21-layout .scf-v252-more[hidden]{display:none!important}
@media(max-width:767px){
 .scf-v21-layout .scf-v235-video-list .scf-v252-video{
  display:grid!important;grid-template-columns:20px 52px minmax(0,1fr) 28px!important;
  column-gap:8px;row-gap:0;align-items:center;min-height:80px!important;
  padding:9px 9px!important;border-radius:12px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v244-sale-select{
  grid-column:1;grid-row:1;align-self:center;width:20px;height:38px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-row-main{display:contents!important}
 .scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v234-thumb,
 .scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v234-number{
  grid-column:2;grid-row:1;width:52px!important;height:52px!important;
  flex-basis:52px!important;border-radius:9px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video .scf-v252-info{
  grid-column:3;grid-row:1;min-width:0;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-info h3{
  font-size:13px;line-height:1.26;margin-bottom:3px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-info>p{
  font-size:11px;margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:1;
  -webkit-box-orient:vertical;overflow:hidden;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-info>.scf-badge{
  padding:2px 7px;font-size:10px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v252-expand{
  grid-column:4;grid-row:1;display:flex!important;align-items:center;justify-content:center;
  width:28px;height:38px;padding:0;border:0;background:transparent;color:#1b5ba9;
  cursor:pointer;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-expand .dashicons{font-size:18px;width:18px;height:18px;transition:transform .15s}
 .scf-v21-layout .scf-v235-video-list .scf-v252-video.is-expanded .scf-v252-expand .dashicons{transform:rotate(180deg)}
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions{
  grid-column:1/-1;grid-row:2;display:none!important;width:100%;margin-top:9px;
  padding-top:9px;border-top:1px solid #d7e5f5;gap:6px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video.is-expanded>.scf-v21-actions{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions .scf-btn{
  width:100%;height:38px;min-height:38px;padding:5px 4px;font-size:11px;
  white-space:normal;line-height:1.15;gap:3px;
 }
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions form{width:100%;margin:0;min-width:0}
 .scf-v21-layout .scf-v235-video-list .scf-v252-video>.scf-v21-actions .dashicons{font-size:14px;width:14px;height:14px;flex-basis:14px}
 .scf-v21-layout .scf-v244-sale-tools{display:flex;align-items:center;gap:8px;padding:8px 10px;min-height:42px;margin-bottom:8px}
 .scf-v21-layout .scf-v244-sale-tools .scf-v244-sale-check-all{font-size:12px;min-width:0}
 .scf-v21-layout .scf-v244-sale-tools #scf-v244-sale-count{margin-left:auto;font-size:11px}
 .scf-v21-layout .scf-v244-sale-tools select,.scf-v21-layout .scf-v244-sale-tools #scf-v244-sale-apply{display:none!important}
 .scf-v21-layout .scf-v244-sale-tools.has-selection select{display:block!important;flex:1 1 100%;max-width:none}
 .scf-v21-layout .scf-v244-sale-tools.has-selection #scf-v244-sale-apply{display:inline-flex!important;flex:0 0 auto;min-height:36px}
 .scf-v21-layout .scf-v252-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .scf-v21-layout .scf-v252-filter{flex:0 0 auto;white-space:nowrap}
}
