.scf-portal,.scf-admin{--navy:#08244e;--blue:#1659bd;--pale:#eaf3ff;--white:#fff;--line:#c9def7;--green:#08774e;--red:#b81e3b;--orange:#a45a00;color:var(--navy);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;line-height:1.55}.scf-portal *,.scf-admin *{box-sizing:border-box}.scf-portal button,.scf-portal input,.scf-portal select,.scf-portal textarea,.scf-admin button,.scf-admin input,.scf-admin textarea,.scf-admin select{font:inherit}.scf-portal input:not([type=checkbox]):not([type=radio]),.scf-portal select,.scf-portal textarea,.scf-admin input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.scf-admin select,.scf-admin textarea{display:block;width:100%;max-width:100%;min-height:43px;background:#fff;color:#092e5d;border:1px solid #afccef;border-radius:12px;padding:10px 13px;margin:6px 0 13px;box-shadow:none}.scf-portal input:focus,.scf-portal select:focus,.scf-portal textarea:focus,.scf-admin input:focus,.scf-admin select:focus{outline:2px solid #2c76db;outline-offset:1px}.scf-portal label,.scf-admin label{display:block;font-weight:650;font-size:14px}.scf-portal small,.scf-admin small{font-size:12px;font-weight:400}.scf-portal h1,.scf-admin h1{color:var(--navy);line-height:1.2}.scf-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:850;color:#2462b0}.scf-btn{border:0;border-radius:12px;padding:11px 17px;min-height:44px;display:inline-flex;gap:7px;align-items:center;justify-content:center;background:#1457bc;color:white!important;font-weight:750;cursor:pointer;text-decoration:none!important;white-space:normal}.scf-btn:hover{background:#092f77;color:#fff!important}.scf-btn-lg{width:100%;font-size:15px;padding:14px 20px}.scf-btn-sm{font-size:12px;min-height:35px;padding:8px 10px}.scf-btn.scf-outline{background:#e7f2ff;color:#11417f!important}.scf-btn.scf-danger{background:#fff0f2;color:#ab1937!important}.scf-auth{display:grid;grid-template-columns:1fr 1fr;max-width:1180px;margin:38px auto;min-height:580px;background:white;border-radius:24px;overflow:hidden;box-shadow:0 18px 70px #0a326122;border:1px solid #d8e8ff}.scf-hero{background-color:#092752;background-size:cover;background-position:center;min-height:370px}.scf-authside{display:flex;justify-content:center;flex-direction:column;padding:clamp(24px,5vw,72px)}.scf-authside h1{font-size:clamp(29px,3vw,42px);margin:13px 0}.scf-authside p{color:#31577f}.scf-minor{text-align:center}.scf-minor a{color:#125dc2;font-weight:700}.scf-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scf-password{position:relative}.scf-password input{padding-right:67px!important}.scf-togglepass{position:absolute;top:10px;right:7px;border:0;background:#e5f0ff;color:#154b8a;padding:3px 8px;border-radius:8px;cursor:pointer;font-size:12px!important}.scf-notice{background:#e5f3ff;padding:13px 17px;border:1px solid #8bb8ee;border-radius:12px;margin:12px 0;font-weight:600;color:#0c457e}.scf-dash{display:grid;grid-template-columns:minmax(250px,290px) minmax(0,1fr);min-height:80vh;background:#f4f9ff;border-radius:22px;overflow:hidden}.scf-sidebar{background:#082b5b;color:white;padding:26px 20px}.scf-brand{font-size:22px;letter-spacing:.02em;margin-bottom:22px}.scf-profile{display:flex;gap:12px;align-items:center;padding:17px 0;border-block:1px solid #6f9cce}.scf-profile>.dashicons{font-size:33px;width:36px;height:36px}.scf-profile small{display:block;color:#d5eaff}.scf-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.scf-metrics>div{background:#164577;padding:12px;border-radius:12px}.scf-metrics span{display:block;font-size:11px;color:#d4ecff}.scf-metrics b{font-size:19px;display:block}.scf-sidebar h3{color:white;margin-top:30px}.scf-scoreline{display:flex;justify-content:space-between;border-bottom:1px solid #36669b;gap:8px;padding:9px 0;font-size:12px}.scf-scoreline b{white-space:nowrap}.scf-sidebar .scf-outline{margin-top:22px;width:100%}.scf-work{padding:clamp(16px,3vw,33px);min-width:0}.scf-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.scf-top h1{margin:4px 0}.scf-top p{color:#41648b}.scf-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}.scf-card{border:1px solid #bdd9fc;border-radius:17px;padding:19px;background:#eaf3ff;min-width:0}.scf-card-2,.scf-card-5{background:#e9f9f7;border-color:#b6ebe5}.scf-card-3,.scf-card-6{background:#f0edff;border-color:#dcd4ff}.scf-card-4{background:#fff7e5;border-color:#f1dcaf}.scf-card h3{font-size:18px;color:#0a2e61;margin:16px 0 5px;overflow-wrap:anywhere}.scf-cardtop{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.scf-badge{display:inline-block;padding:5px 9px;border-radius:9px;font-size:12px;font-weight:750}.scf-green{background:#d9f8e9!important;color:#086c42!important}.scf-red{background:#ffe3e8!important;color:#af1736!important}.scf-orange{background:#fff0d2!important;color:#a35700!important}.scf-blue{background:#dcebff!important;color:#1255a7!important}.scf-subtle{color:#31567c;font-size:13px}.scf-smalllink{color:#0958b3;font-weight:700;overflow-wrap:anywhere}.scf-cardactions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:18px}.scf-cardactions form{margin:0}.scf-thumb{width:80px;height:75px;object-fit:cover;border-radius:10px;margin:7px 7px 0 0;border:2px solid #a6cafa}.scf-note{border-left:4px solid #2a6fd0;background:#fff;padding:10px;border-radius:8px;margin-top:10px}.scf-empty{padding:35px;text-align:center;background:#fff;border:1px dashed #a5c7f0;border-radius:16px}.scf-empty .dashicons{font-size:40px;width:40px;height:40px}.scf-modal{position:fixed;inset:0;z-index:999999;background:#03162ac9;display:none;align-items:center;justify-content:center;padding:18px}.scf-modal.scf-visible{display:flex}.scf-modal-open{overflow:hidden}.scf-dialog{position:relative;background:#fff;color:#092b59;border-radius:20px;padding:26px;max-width:750px;width:100%;max-height:92vh;overflow-y:auto;box-shadow:0 20px 70px #0005}.scf-dialog h2{padding-right:36px}.scf-close{position:absolute;right:15px;top:12px;background:#e6f0ff;color:#123b73;border:0;border-radius:11px;font-size:25px;cursor:pointer;width:36px;height:36px}.scf-mode-row{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.scf-mode-row label{border:1px solid #aecdf2;padding:10px 12px;border-radius:12px}.scf-topic{display:flex!important;align-items:flex-start;gap:10px;padding:12px;border:1px solid #c5dcf7;border-radius:11px;margin:8px 0;cursor:pointer}.scf-topic[hidden]{display:none!important}.scf-topic input{margin-top:5px}.scf-topic b{display:inline-block;color:#0b56ad;margin-right:6px}.scf-inline{font-size:12px!important;font-weight:400!important}.scf-preview img{display:block;max-width:160px;max-height:120px;object-fit:contain;border-radius:12px}.scf-copyrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.scf-copyrow input{flex:1;min-width:170px}.scf-modal-footer{display:flex;justify-content:space-between;margin:16px 0}.scf-state-select{font-weight:850!important}.scf-state-red{background:#ffe4ea!important;color:#ac1836!important;border-color:#d45b75!important}.scf-state-green{background:#def9e9!important;color:#0a714a!important;border-color:#52b689!important}.scf-admin .scf-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.scf-kpis>div{background:#e8f2ff;border:1px solid #bbd7f7;border-radius:14px;padding:16px}.scf-kpis b{display:block;font-size:24px}.scf-table-scroll{overflow-x:auto;margin:14px 0}.scf-matrix th,.scf-matrix td{text-align:center!important;white-space:nowrap}.scf-matrix th:nth-child(2),.scf-matrix td:nth-child(2){text-align:left!important}.scf-matrix-pill{display:inline-block;padding:6px 9px;border-radius:9px;text-decoration:none;font-weight:700}.scf-matrix-pill.scf-pending{background:#ffe1e6;color:#a11935}.scf-matrix-pill.scf-done{background:#d8f6e6;color:#08744b}.scf-admin-six{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.scf-admin-box{background:#eef5ff;border:1px solid #bed7f7;border-radius:14px;padding:16px;min-width:0}.scf-admin-box h3{overflow-wrap:anywhere}.scf-admin-box button{display:block;margin-top:12px}.scf-admin-profile{background:#e8f3ff;padding:17px;border-radius:15px}.scf-admin-form{margin:8px 0 14px}.scf-admin-list>form{display:inline-block;margin-right:8px}.scf-admin-list input:not([type=checkbox]){min-width:160px}.scf-gridform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.scf-topic-admin{display:grid;grid-template-columns:120px 150px minmax(190px,2fr) minmax(160px,1fr) 70px 85px auto;gap:9px;align-items:end}.scf-topic-admin>label{min-width:0}.scf-admin .button-primary{background:#1358b7;border-color:#1358b7;border-radius:9px}.scf-admin .button{border-radius:9px}.scf-floating{position:fixed;bottom:22px;right:22px;background:#0b3269;color:white;padding:14px 17px;border-radius:12px;z-index:999999;box-shadow:0 4px 18px #0004}.scf-floating button{margin-left:10px}.scf-portal .dashicons{vertical-align:middle}.scf-portal [hidden],.scf-admin [hidden]{display:none!important}
@media(max-width:900px){.scf-dash{grid-template-columns:1fr}.scf-sidebar{padding:20px}.scf-scoreline{display:flex}.scf-cards{grid-template-columns:1fr}.scf-top{align-items:flex-start;flex-direction:column}.scf-auth{grid-template-columns:1fr;margin:0;border-radius:0}.scf-auth .scf-hero{min-height:240px}.scf-authside{padding:22px}.scf-admin-six{grid-template-columns:repeat(2,1fr)}.scf-topic-admin{grid-template-columns:repeat(2,minmax(0,1fr))}.scf-admin .scf-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.scf-auth .scf-hero{min-height:200px}.scf-two,.scf-gridform,.scf-admin-six{grid-template-columns:1fr}.scf-modal{padding:0;align-items:stretch}.scf-dialog{max-height:100dvh;border-radius:0;padding:22px 15px}.scf-copyrow{display:block}.scf-copyrow .scf-btn{margin-right:7px}.scf-dash{border-radius:0}.scf-card{padding:14px}.scf-admin .scf-kpis{grid-template-columns:1fr 1fr}}

body.scf-fullscreen{margin:0;background:#f2f8ff}body.scf-fullscreen #scf-main{max-width:100%;margin:0 auto}body.scf-fullscreen .scf-portal{max-width:100%;min-height:100vh}

/* Thông báo và thông tin trong thẻ bài dự thi, bản 2.0.2 */
.scf-form-warning{padding:12px 14px;margin:0 0 15px;background:#ffe7e9;color:#a11b35;border:1px solid #e9a8b2;border-radius:12px;font-weight:750}.scf-required{color:#b81e3b;font-weight:900}.scf-card .scf-subtle{margin:8px 0;line-height:1.55}.scf-card .scf-note{overflow-wrap:anywhere}.scf-card .scf-thumb{vertical-align:middle}.scf-notice{position:relative;border-left:5px solid #16804f;background:#e9f9f0;color:#075d3c;border-color:#8ddab2}.scf-notice.scf-error{background:#fff0f1;color:#a11b35;border-color:#edacb8}.scf-entry-name small{display:block;margin:-5px 0 12px;color:#3b618d}.scf-cardactions button:focus-visible,.scf-btn:focus-visible{outline:3px solid #f5b43e;outline-offset:3px}

/* Danh sách chủ đề phụ thuộc hạng mục: chỉ hiển thị khi chọn hạng mục. */
.scf-topic-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0 8px;color:#0d376d}.scf-topic-heading strong{font-size:15px}.scf-topic-heading span{background:#e9f4ff;color:#1257aa;border-radius:20px;padding:4px 11px;font-size:12px;font-weight:750}.scf-topic-empty{background:#fff5df;border:1px solid #f1d28e;color:#844800;border-radius:12px;padding:13px;line-height:1.5}.scf-topic-list{max-height:320px;overflow:auto}.scf-topic{background:#f7fbff;transition:background .12s,border-color .12s}.scf-topic:has(input:checked){background:#e1f2ff;border-color:#1460c8;box-shadow:0 0 0 1px #1460c8}.scf-topic input{accent-color:#1760c8;flex-shrink:0}
/* Bảng dán dữ liệu dạng trang tính: ranh giới ô rõ ràng, cuộn ngang khi hẹp. */
.scf-admin .scf-sheet-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 10px}.scf-sheet-toolbar strong{font-size:15px;color:#113b75}.scf-sheet-scroller{overflow:auto;max-height:620px;background:white;border:2px solid #3178d4;border-radius:13px;box-shadow:0 6px 20px #0c3d7612}.scf-sheet-table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:930px;width:100%;font-size:13px}.scf-sheet-index-col{width:54px}.scf-sheet-code-col{width:150px}.scf-sheet-category-col{width:210px}.scf-sheet-topic-col{width:350px}.scf-sheet-word-col{width:260px}.scf-sheet-table thead th{background:#123a73;color:white;font-weight:750;border-right:1px solid #6594d1;padding:12px 9px;text-align:left;position:sticky;top:0;z-index:2}.scf-sheet-table thead th span{color:#ffc968}.scf-sheet-table td,.scf-sheet-table tbody th{border-right:1px solid #b8cfe9;border-bottom:1px solid #b8cfe9;padding:0!important;background:#fff}.scf-sheet-table tbody tr:nth-child(even) td{background:#f2f7ff}.scf-sheet-table tbody th.scf-sheet-index{padding:10px 5px!important;text-align:center;font-size:12px;font-weight:700;color:#285c99;background:#e8f2ff}.scf-admin .scf-sheet-table textarea.scf-cell{display:block;width:100%;max-width:none;min-height:46px;resize:vertical;margin:0!important;padding:11px 9px;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.scf-admin .scf-sheet-table textarea.scf-cell:focus{background:#e5f2ff!important;box-shadow:inset 0 0 0 2px #1d6de0!important}.scf-sheet-table td:focus-within{background:#e5f2ff!important}#scf-sheet-status{padding:11px 14px;background:#eaf4ff;border-radius:10px;border:1px solid #bad7fa;color:#0e508d;font-weight:600;min-height:44px}

/* Trang tính trực tiếp: các ô nằm ngang, vùng chọn rõ ràng */
.scf-sheet-help{margin:18px 0;background:#edf5ff;border:1px solid #b8d5ff;border-radius:14px;padding:16px;color:#123b72}.scf-sheet-help p{margin:8px 0 0}.scf-sheet-tools{display:flex;gap:8px;flex-wrap:wrap}.scf-admin .scf-sheet-danger{border-color:#e6a7b1;color:#b21d35;background:#fff6f7}.scf-sheet-table td.scf-cell-selected{background:#d8eaff!important;box-shadow:inset 0 0 0 2px #2873da}.scf-sheet-table tr.scf-row-checked td{background:#e8f3ff!important}.scf-sheet-table .scf-sheet-index{white-space:nowrap}.scf-sheet-rowcheck{vertical-align:middle;margin:0 5px 0 2px!important}.scf-sheet-savebar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:16px;margin:16px 0;border:1px solid #b9d4f6;border-radius:12px;background:white}.scf-sheet-savebar label{display:flex;flex-direction:column;gap:5px;font-weight:650;color:#163b71}.scf-sheet-savebar select{min-width:280px}.scf-sheet-error{background:#fff0f1!important;border-color:#db7380!important;color:#9e1d30!important}.scf-admin .scf-sheet-table textarea.scf-cell{resize:none;min-height:43px;max-height:80px}.scf-topic-admin{display:grid;grid-template-columns:110px minmax(150px,1fr) minmax(250px,2fr) minmax(180px,1.5fr) auto auto auto;align-items:end;gap:10px}.scf-topic-admin label{min-width:0}.scf-topic-admin input,.scf-topic-admin select,.scf-topic-admin textarea{width:100%;box-sizing:border-box}.scf-category-row .scf-admin-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.scf-category-row .scf-admin-form label{display:flex;flex-direction:column;gap:4px}@media(max-width:1000px){.scf-topic-admin{grid-template-columns:1fr 1fr}.scf-sheet-savebar select{min-width:0;max-width:100%}}

/* V2.0.8: Bảng danh sách gọn, chỉ mở form khi bấm Sửa. */
.scf-admin .scf-manage-table{border:1px solid #bed6f4;border-radius:12px;overflow:hidden}
.scf-admin .scf-manage-table th{background:#153c74;color:#fff;padding:12px}
.scf-admin .scf-manage-table td{vertical-align:middle;padding:10px 12px;overflow-wrap:anywhere}
.scf-admin .scf-manage-table tr.scf-edit-detail td{background:#eaf4ff;padding:15px}
.scf-admin .scf-inline-edit{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.scf-admin .scf-inline-edit form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0}
.scf-admin .scf-inline-edit label{min-width:170px;flex:1}
.scf-admin .scf-inline-edit label.scf-wide{flex:2;min-width:230px}
.scf-admin .scf-inline-edit label.scf-flag{flex:0 0 auto;min-width:0;white-space:nowrap;align-self:center}
.scf-admin .scf-inline-edit input:not([type=checkbox]),.scf-admin .scf-inline-edit select{margin:4px 0 0}
.scf-admin .scf-add-details{background:#f0f6ff;border:1px solid #bfd8f8;border-radius:12px;margin:12px 0 24px;padding:14px}
.scf-admin .scf-add-details summary{cursor:pointer;color:#1455a9;font-weight:750}
.scf-admin .scf-add-details form{margin-top:15px}
.scf-sheet-table{min-width:760px}.scf-sheet-category-col{width:230px}.scf-sheet-topic-col{width:400px}.scf-sheet-word-col{width:300px}

/* V2.0.9: Chọn nhiều hàng và thao tác hàng loạt trong Hạng mục & Chủ đề. */
.scf-admin .scf-mass-actions{position:sticky;top:32px;z-index:8;background:#eaf4ff;border:1px solid #b9d4fa;border-radius:12px;padding:13px 16px;margin:18px 0;box-shadow:0 3px 14px #10457a10}.scf-admin .scf-mass-actions form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}.scf-admin .scf-mass-actions select{min-width:220px}.scf-admin #scf-mass-count{color:#15509d;font-weight:700}.scf-admin .scf-manage-table input[type=checkbox]{width:18px;height:18px;accent-color:#145abb}.scf-admin .scf-manage-table th:first-child,.scf-admin .scf-manage-table td:first-child{width:44px;text-align:center}.scf-admin .scf-manage-table .scf-edit-detail td:first-child{text-align:left;width:auto}

/* V2.1.4: quản lý yêu cầu hỗ trợ - xanh trắng, nút rõ ràng và form gọn */
.scf-support-admin-list{display:grid;gap:16px;margin-top:18px}.scf-support-admin-card{border:1px solid #c9ddfb;border-radius:16px;background:#fff;padding:20px 22px;box-shadow:0 5px 16px rgba(19,65,125,.06)}.scf-support-admin-header{display:flex;justify-content:space-between;gap:16px;align-items:center}.scf-support-overline{color:#276ac5;font-weight:800;font-size:11px;letter-spacing:.1em}.scf-support-admin-header h2{margin:6px 0;color:#153e78}.scf-support-admin-header p{margin:0;color:#295b95}.scf-support-admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:16px}.scf-support-admin-actions .button{border-radius:10px;min-height:39px;display:inline-flex;align-items:center;gap:5px;padding:4px 12px;font-weight:650}.scf-support-admin-actions .dashicons{vertical-align:middle}.scf-support-mail-state{color:#2261a6;font-weight:600;margin-left:auto}.scf-support-admin-form{margin-top:18px;border:1px solid #c9dfff;border-radius:14px;background:#f2f8ff;padding:19px}.scf-support-admin-form[hidden]{display:none}.scf-support-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.scf-support-admin-fields label{display:block;font-weight:700;color:#113b75}.scf-support-admin-fields input[type=url],.scf-support-admin-fields select,.scf-support-admin-fields textarea{width:100%;max-width:none;margin-top:7px;background:white;border:1px solid #bfd6f4;border-radius:11px;min-height:42px;padding:9px;color:#153f78}.scf-support-admin-fields textarea{min-height:84px}.scf-support-admin-fields small{display:block;font-weight:400;margin-top:5px}.scf-support-checks{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.scf-support-checks span{background:white;border:1px solid #cbdffb;padding:9px 12px;border-radius:10px}.scf-support-send{background:#e0f0ff!important;color:#124c9b!important;border-color:#8cbdf1!important}.scf-support-admin-form .scf-support-admin-actions small{color:#315e93}@media(max-width:780px){.scf-support-admin-fields{grid-template-columns:1fr}.scf-support-admin-header{align-items:start;flex-direction:column}.scf-support-mail-state{margin-left:0}.scf-support-admin-card{padding:15px}.scf-support-admin-form{padding:14px}}

/* V2.1.6: Bảng quản lý phẳng, form chỉ hiển thị khi người quản trị yêu cầu. */
.scf-admin .scf-manage-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#eff6ff;border:1px solid #c7ddfa;border-radius:16px;padding:18px 20px;margin:18px 0}
.scf-admin .scf-manage-head h2{color:#0b346b;margin:0 0 3px;font-size:20px}.scf-admin .scf-manage-head p{margin:0;color:#306197}
.scf-admin .scf-manage-add{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;min-height:40px;font-weight:700}
.scf-admin .scf-manage-add .dashicons,.scf-admin .scf-manage-actions .dashicons{font-size:16px;width:16px;height:16px;vertical-align:middle}
.scf-admin .scf-manage-editor{background:#f1f7ff;border:1px solid #c4dcfb;border-radius:14px;padding:18px 21px;margin:12px 0}.scf-admin .scf-manage-editor h3{margin:0 0 14px;color:#143d77;font-size:17px}
.scf-admin .scf-manage-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-width:950px}.scf-admin .scf-manage-fields label{font-weight:700}
.scf-admin .scf-manage-editor .scf-admin-form{margin:0}.scf-admin .scf-manage-help{color:#356193;margin:2px 0 14px;font-weight:550}
.scf-admin .scf-manage-table{border:1px solid #cbdff9;border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0;min-width:650px}
.scf-admin .scf-manage-table thead th{background:#123b74;color:white;padding:14px 16px;border-bottom:0;font-weight:750}.scf-admin .scf-manage-table tbody td{padding:12px 16px;vertical-align:middle;color:#173b6c}
.scf-admin .scf-manage-table tbody tr:not(.scf-manage-editrow):nth-of-type(even) td{background:#f0f7ff}
.scf-admin .scf-manage-table tbody tr:not(.scf-manage-editrow):hover td{background:#e4f1ff}
.scf-admin .scf-manage-table .scf-manage-editrow>td{background:#fff!important;padding:8px 16px 16px}
.scf-admin .scf-manage-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.scf-admin .scf-manage-actions form{margin:0!important;display:inline-block}
.scf-admin .scf-manage-actions .button{display:inline-flex;align-items:center;gap:4px;border-color:#c4d9f6;background:#fff;color:#1455a1;font-weight:700;padding:4px 10px;min-height:33px}
.scf-admin .scf-manage-actions .scf-delete-small{border-color:#ffc3d0;background:#fff3f5;color:#aa2140}.scf-admin .scf-manage-hint{font-size:12px;color:#a65a00}
.scf-admin .scf-scoring-table th:nth-child(1){width:53%}.scf-admin .scf-scoring-table th:nth-child(2){width:12%}.scf-admin .scf-scoring-table th:nth-child(3){width:17%}.scf-admin .scf-scoring-table th:nth-child(4){width:18%}
.scf-admin .scf-score-number{font-size:18px;color:#0c56ad}.scf-admin .scf-money{font-size:17px;color:#077451}
@media(max-width:700px){.scf-admin .scf-manage-head{align-items:stretch;padding:14px}.scf-admin .scf-manage-add{justify-content:center;width:100%}.scf-admin .scf-manage-fields{grid-template-columns:1fr}.scf-admin .scf-manage-table tbody td{padding:10px 11px}}

/* Đăng ký nhiều đại lý: khung điều kiện không tạo khoảng trống khi ẩn. */
.scf-portal #scf-company-other-wrap[hidden],.scf-portal #scf-company-line-wrap[hidden]{display:none!important}
.scf-portal .scf-required{color:#c32443;font-weight:800}

/* Thông báo V2.1.9: chấm đỏ chỉ biến mất sau khi chính người nhận đọc. */
.scf-bell{position:relative;margin:12px 0 22px;max-width:570px;z-index:15;color:#0e376b}.scf-bell summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;border:1px solid #bfdaff;border-radius:14px;background:#fff;color:#113f77;padding:11px 14px;font-weight:800;min-height:44px;box-shadow:0 4px 16px rgba(16,72,132,.06)}.scf-bell summary::-webkit-details-marker{display:none}.scf-bell summary .dashicons{color:#2078ef}.scf-notify-dot{display:inline-flex;width:9px;height:9px;min-width:9px;background:#ed3352;border-radius:50%;box-shadow:0 0 0 3px rgba(237,51,82,.10)}.scf-notify-dot[hidden],.scf-notify-count[hidden]{display:none!important}.scf-notify-count{margin-left:auto;background:#fbe5e9;color:#b41339;border-radius:999px;padding:2px 8px;font-size:12px}.scf-bell-panel{margin-top:7px;border:1px solid #cfe3ff;border-radius:15px;background:#fff;box-shadow:0 14px 45px rgba(15,51,100,.12);max-height:450px;overflow:auto}.scf-bell-head{display:flex;justify-content:space-between;gap:12px;padding:14px 15px;background:#eaf4ff;color:#123b70;border-radius:15px 15px 0 0}.scf-bell-head small{color:#38618a}.scf-bell-empty{padding:16px!important;margin:0!important;color:#37618a}.scf-notify-form{margin:0!important}.scf-notify-item{width:100%;display:flex;align-items:flex-start;gap:12px;background:#fff;border:0;border-bottom:1px solid #e2eeff;text-align:left;padding:13px 15px;cursor:pointer;color:#113b73;font:inherit}.scf-notify-item:hover,.scf-notify-form.is-unread .scf-notify-item{background:#f0f7ff}.scf-notify-item>span:nth-child(2){flex:1;min-width:0}.scf-notify-item b,.scf-notify-item small,.scf-notify-item time{display:block}.scf-notify-item b{font-size:14px}.scf-notify-item small{font-size:13px;line-height:1.5;color:#285785;margin:4px 0}.scf-notify-item time{font-size:11px;color:#567697}.scf-notify-item .dashicons{color:#2777e6}.scf-notify-clear{width:100%;background:#e9f4ff;color:#0c55af;border:0;padding:12px;cursor:pointer;font-weight:800}.scf-notify-clear:hover{background:#dbeeff}.scf-sidebar .scf-bell{color:#102f5c}.scf-sidebar .scf-bell summary{color:#0d3a72}.scf-admin .scf-bell{margin:14px 0 18px}.scf-admin .scf-bell-panel{box-sizing:border-box}@media(max-width:767px){.scf-bell{width:100%;max-width:none}.scf-bell-head{flex-wrap:wrap}.scf-notify-item{padding:14px 11px}}

/* V2.2.0: Thông báo theo đúng vị trí phát sinh; không phủ chấm đỏ toàn thẻ hỗ trợ. */
.scf-v21-layout .scf-resource-row{margin:12px 0!important}
.scf-v21-layout .scf-resource-link{display:inline-flex!important;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap;background:#fff!important;border:1.5px solid #79b7e8!important;color:#0a4f91!important;font-weight:800;padding:10px 14px!important;border-radius:12px!important}
.scf-v21-layout .scf-resource-link .dashicons{color:#177bd0}
.scf-context-dot{display:inline-block;vertical-align:middle;width:10px;height:10px;min-width:10px;border-radius:50%;background:#ec2949;box-shadow:0 0 0 4px #ec29491c;flex-shrink:0;animation:scf-context-pulse 1.7s ease-in-out 2}
.scf-context-dot[hidden],.scf-context-read[hidden]{display:none!important}
.scf-support-response .scf-context-dot{margin:0 6px}
.scf-context-read{display:inline-flex;align-items:center;gap:4px;margin:6px 0 11px 0;background:#fff;border:1px solid #92c9ed;color:#15578e;border-radius:9px;padding:7px 10px;cursor:pointer;font-size:12px;font-weight:750}
.scf-context-read:hover{background:#e9f4ff}
.scf-context-read .dashicons{font-size:16px;width:16px;height:16px}
.scf-v21-layout .scf-request-card:target{outline:2px solid #54a7ee;outline-offset:3px;scroll-margin-top:20px}
@keyframes scf-context-pulse{50%{box-shadow:0 0 0 7px #ec29490a}}
@media(prefers-reduced-motion:reduce){.scf-context-dot{animation:none}}

/* V2.2.1 — Chấm đỏ tại mục phát sinh thay cho chuông chung. */
.scf-menu-dot{display:inline-block!important;width:8px;height:8px;min-width:8px;border-radius:50%;background:#e32848;box-shadow:0 0 0 3px rgba(227,40,72,.15);vertical-align:middle;margin-left:6px}
.scf-inline-new{display:inline-flex;align-items:center;gap:8px;cursor:pointer;background:#fff4f3;color:#a52235;border:1px solid #fac8ce;padding:6px 10px;border-radius:10px;margin:6px 0 0;font-weight:750}
.scf-inline-new[hidden]{display:none!important}
.scf-support-reply-button{display:block!important;width:100%;text-align:left;cursor:pointer;font:inherit;color:#153b68;border:1px solid #c6dfff;border-radius:12px;padding:12px 14px;background:#f2f8ff;line-height:1.55}
.scf-support-reply-button:hover,.scf-support-reply-button:focus-visible{background:#e6f2ff;border-color:#80b7f7}
.scf-support-admin-header .scf-context-dot{margin-left:10px;vertical-align:middle}

/* V2.3 – thẻ có hỗ trợ / tự chuẩn bị; ngày trong ma trận; cấu hình đăng ký */
.scf-v21-row.scf-v23-supported{background:#e8f4ff;border-color:#9bcaf5;border-left:5px solid #2474c5}
.scf-v21-row.scf-v23-self{background:#e9fbf4;border-color:#9adac3;border-left:5px solid #168b70}
.scf-v21-row.scf-v23-self:has(.scf-orange){background:#fff4e3;border-color:#f1c078;border-left-color:#db8909}
.scf-v23-date{display:block;font-size:11px;font-weight:500;margin-top:5px;white-space:nowrap;opacity:.9}
.scf-matrix th{white-space:nowrap}.scf-matrix td{vertical-align:middle}.scf-v23-admin-card{background:#fff;border:1px solid #bfd7f1;padding:18px;margin:16px 0;border-radius:15px}
.scf-v23-admin-card input,.scf-v23-admin-card select{border-radius:9px;min-height:38px}
.scf-v21-page select{font-size:16px;min-height:46px;border-radius:12px}

.scf-v23-manage-grid{display:flex;align-items:end;gap:15px;flex-wrap:wrap}.scf-v23-manage-grid label{display:flex;flex-direction:column;gap:6px;font-weight:600}.scf-v23-manage-grid .scf-v23-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;align-self:center}.scf-v23-admin-card>form+form{margin-top:10px}.scf-v23-manage-grid input:not([type=checkbox]),.scf-v23-manage-grid select{min-width:210px}

/* V2.3.1 — Cấu hình đăng ký dạng danh mục, có khung xem trước. */
.scf-reg-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,340px);align-items:start;gap:20px;margin-top:20px;max-width:1660px}
.scf-reg-main,.scf-reg-side{min-width:0;display:grid;gap:20px}
.scf-reg-side{position:sticky;top:42px}
.scf-reg-panel{background:#fff;border:1px solid #cbdff5;box-shadow:0 8px 24px #103e7710;border-radius:16px;overflow:hidden}
.scf-reg-panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 22px;border-bottom:1px solid #e0ecfa;background:linear-gradient(100deg,#f2f8ff 0%,#fff 100%)}
.scf-reg-panel-head h2{display:flex;align-items:center;gap:9px;margin:0 0 5px;color:#11396b;font-size:17px;line-height:1.45}
.scf-reg-panel-head h2 .dashicons{font-size:21px;width:22px;height:22px;color:#1769bd}
.scf-reg-panel-head p{margin:0;color:#35618c;font-size:12px;line-height:1.5}
.scf-reg-panel .button{border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:34px}
.scf-reg-panel .button-primary{background:#1769bd;border-color:#1769bd;color:white}
.scf-reg-panel .button-primary:hover{background:#105296;border-color:#105296}
.scf-reg-panel .button .dashicons{font-size:15px;width:16px;height:16px;line-height:16px}
.scf-reg-tablewrap{overflow-x:auto}
.scf-reg-table{border:0!important;box-shadow:none!important;border-collapse:separate;border-spacing:0;width:100%;min-width:575px}
.scf-reg-table thead th{color:#174d82;background:#f1f7ff;font-size:12px;font-weight:700;padding:12px 14px;white-space:nowrap;border-bottom:1px solid #d8e7fa}
.scf-reg-table td{padding:13px 14px;border-bottom:1px solid #e6effa;color:#193e67;vertical-align:middle}
.scf-reg-table tbody tr:last-child td{border-bottom:0}
.scf-reg-table tr.scf-reg-company.is-selected:not(.scf-reg-editrow) td{background:#eaf4ff}
.scf-reg-name{padding:0!important;border:0!important;background:transparent!important;color:#135ba5!important;font-size:14px;font-weight:700;cursor:pointer;text-align:left}
.scf-reg-table td small{display:block;color:#567ba3;margin-top:4px;font-size:11px}
.scf-reg-count{display:inline-flex;min-width:25px;height:25px;border-radius:9px;background:#e8f2ff;color:#145dab;align-items:center;justify-content:center;font-weight:700}
.scf-reg-status{display:inline-block;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap}
.scf-reg-status.is-on{background:#e1f8ee;color:#086c47}.scf-reg-status.is-off{background:#fff1df;color:#975600}
.scf-reg-actions{display:flex;gap:7px;align-items:center;justify-content:flex-start}.scf-reg-actions form{margin:0}
.scf-reg-actions .scf-reg-delete{border-color:#f5cdd1;color:#ae3044;background:#fff8f9;width:34px;padding:0}
.scf-reg-editor{background:#f2f8ff;padding:18px 20px;border:1px solid #d6e9ff;border-radius:12px;margin:14px 18px}
.scf-reg-editrow .scf-reg-editor{margin:0}.scf-reg-editrow td{background:#f8fbff}
.scf-reg-editor h3{color:#113f73;margin:0 0 14px;font-size:15px}
.scf-reg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:center}
.scf-reg-fields label{display:grid;gap:7px;color:#174b7f;font-weight:650}.scf-reg-fields input:not([type=checkbox]),.scf-reg-fields select{width:100%;min-width:0;border:1px solid #b8d1ed;border-radius:9px;min-height:40px;background:#fff;color:#173a60}
.scf-reg-fields .scf-reg-check{display:flex;align-items:center;gap:9px}.scf-reg-check input{accent-color:#1769bd}
.scf-reg-form-actions{display:flex;gap:8px;margin-top:16px}
.scf-reg-empty{text-align:center;color:#436c91;padding:24px!important}
.scf-reg-preview{padding:20px;background:#fff}.scf-reg-preview-title{font-weight:800;color:#124c8a;font-size:13px;letter-spacing:.8px}.scf-reg-preview-title span{color:#1486c9}.scf-reg-preview h3{margin:17px 0;color:#113966;font-size:21px}.scf-reg-preview label{display:grid;gap:7px;color:#194979;font-size:13px;font-weight:700;margin-bottom:13px}.scf-reg-preview input,.scf-reg-preview select{width:100%;max-width:100%;min-height:42px;border:1px solid #b8d1eb;border-radius:10px;color:#153f6b;background:#fff}.scf-reg-preview input:disabled{background:#f3f8ff;color:#6786a4}.scf-reg-preview label span{color:#d1374d}.scf-reg-preview-button{background:#1468bc;color:#fff;text-align:center;padding:13px;border-radius:11px;font-weight:800;margin-top:17px}.scf-reg-preview>small{display:block;text-align:center;margin-top:10px;color:#567b9e}.scf-reg-rule{padding:18px 20px}.scf-reg-rule h3{margin:0 0 13px;color:#143f70}.scf-reg-rule form{display:grid;gap:13px}.scf-reg-rule .scf-reg-check{display:flex;gap:9px;align-items:center;color:#194979;font-weight:650}.scf-reg-rule button{justify-self:start}
@media(max-width:1150px){.scf-reg-layout{grid-template-columns:minmax(0,1fr)}.scf-reg-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.scf-reg-layout{gap:14px}.scf-reg-side{grid-template-columns:minmax(0,1fr)}.scf-reg-panel-head{padding:16px;align-items:flex-start;flex-direction:column}.scf-reg-panel-head .button{width:100%}.scf-reg-editor{margin:12px;padding:13px}.scf-reg-fields{grid-template-columns:1fr}.scf-reg-form-actions{flex-wrap:wrap}}

/* V2.3.2 — Tên hiển thị trường đăng ký có khung xem trước */
.scf-reg-label-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.scf-reg-label-grid label{font-weight:600;color:#153b64;font-size:13px;display:flex;flex-direction:column;gap:5px}
.scf-reg-label-grid input{max-width:100%;width:100%;border:1px solid #b9d6f2;border-radius:10px;padding:9px 11px;background:#fff;color:#092b50}
.scf-reg-label-grid input:focus{border-color:#1769b2;box-shadow:0 0 0 2px #cae7ff}
@media(max-width:780px){.scf-reg-label-grid{grid-template-columns:1fr}}

/* V2.3.3 — Danh mục đăng ký hiển thị dạng cây: công ty → chi nhánh. */
.scf-reg-tree{padding:16px;display:grid;gap:13px;background:#f6faff}
.scf-tree-company{border:1px solid #c7dbf2;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #15457b0a}
.scf-tree-company.is-selected{border-color:#6ca8ec;box-shadow:0 0 0 2px #deedff}
.scf-tree-company.is-muted{opacity:.78}
.scf-tree-parent{padding:14px 16px;display:flex;align-items:center;gap:10px;background:#f0f7ff;min-width:0}
.scf-tree-expand{border:1px solid #b5d5f8;border-radius:9px;background:white;color:#175da6;cursor:pointer;min-width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}
.scf-tree-expand .dashicons{line-height:1}
.scf-tree-company-name{min-width:0;flex:1;display:grid;gap:4px}
.scf-tree-title{border:0;background:transparent;text-align:left;font-size:16px;font-weight:800;color:#113c6d;cursor:pointer;padding:2px 0;overflow-wrap:anywhere}
.scf-tree-company-name small{color:#4f7195;font-size:12px}
.scf-tree-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.scf-tree-actions form{margin:0}
.scf-tree-actions .button{min-width:34px;padding:0 8px;border-radius:9px}
.scf-tree-children{padding:7px 14px 13px 30px;border-top:1px solid #d8e9fa;background:#fff}
.scf-tree-children[hidden],.scf-reg-editor[hidden]{display:none!important}
.scf-tree-branch{position:relative;display:flex;gap:10px;align-items:center;min-width:0;padding:11px 10px 11px 19px;border-bottom:1px solid #e5effb}
.scf-tree-branch::before{content:"";position:absolute;left:0;top:0;bottom:50%;width:10px;border-left:2px solid #bfd6ef;border-bottom:2px solid #bfd6ef;border-bottom-left-radius:5px}
.scf-tree-branch-index{min-width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#e8f3ff;color:#155a9e;font-weight:800;font-size:12px}
.scf-tree-branch-label{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:650;color:#164674;font-size:14px}
.scf-tree-add{margin:12px 0 0 19px;border:1px dashed #88b9eb;background:#eff7ff;color:#145aa0;border-radius:9px;min-height:38px;padding:7px 13px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-weight:700}
.scf-tree-add:hover{background:#dfefff}.scf-tree-empty{padding:15px 18px;color:#52799c}
.scf-tree-inner-editor{margin:12px 0 14px 19px}
@media(max-width:720px){.scf-reg-tree{padding:10px}.scf-tree-parent{flex-wrap:wrap;padding:12px}.scf-tree-company-name{flex-basis:calc(100% - 50px)}.scf-tree-parent>.scf-reg-status{margin-left:44px}.scf-tree-parent>.scf-tree-actions{margin-left:auto}.scf-tree-children{padding-left:10px;padding-right:10px}.scf-tree-branch{flex-wrap:wrap}.scf-tree-branch-label{flex-basis:calc(100% - 50px)}.scf-tree-branch>.scf-reg-status{margin-left:36px}.scf-tree-branch>.scf-tree-actions{margin-left:auto}}

/* V2.3.8 — Trình biên tập nội dung đăng ký và khung xem trước */
.scf-reg-preview-description{color:#315b80;font-size:13px;line-height:1.55;margin:0 0 17px}
.scf-reg-preview-footer{text-align:center;color:#224a73;font-size:13px;margin-top:15px}
.scf-reg-preview-footer b{color:#1468bc}
.scf-reg-copy-input{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #b9d6f2!important;border-radius:10px!important;padding:9px 11px!important;background:#fff;color:#092b50;min-height:40px}
.scf-reg-copy-input:focus{border-color:#1769b2!important;box-shadow:0 0 0 2px #cae7ff!important}
.scf-reg-label-grid label:has(textarea){grid-column:1/-1}

/* V2.4.0: Danh sách phiếu trước, màn hình chi tiết sau. */
.scf-support-summary{background:#fff;border:1px solid #cbdcf8;padding:18px;border-radius:16px;margin:18px 0;box-shadow:0 5px 20px rgba(13,61,122,.05)}
.scf-support-summary .scf-manage-head h2{margin:2px 0 5px;color:#123d77}
.scf-support-summary-table{border-radius:12px;overflow:hidden;border:1px solid #c7dcfa!important;margin-top:14px}
.scf-support-summary-table th{background:#123e77;color:#fff;font-weight:700;padding:13px 10px}
.scf-support-summary-table td{vertical-align:middle;padding:12px 10px;max-width:220px;overflow-wrap:anywhere}
.scf-support-summary-table td:first-child,.scf-support-summary-table td:nth-child(2){white-space:nowrap}
.scf-support-summary-table .button{border-radius:9px;white-space:nowrap}
.scf-support-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 12px}
.scf-support-detail-heading h2{color:#123d77;font-size:21px;margin:0}
.scf-support-delete-form{margin-top:14px;padding-top:12px;border-top:1px solid #daebfc}
.scf-support-delete-button{display:inline-flex!important;align-items:center;gap:5px;color:#a52034!important;border-color:#e3a3ad!important;border-radius:10px!important}
@media(max-width:782px){.scf-support-summary{padding:12px}.scf-support-detail-heading{flex-wrap:wrap}.scf-support-summary .scf-table-scroll{overflow-x:auto}}

/* V2.4.2: màu chữ tiêu đề hỗ trợ và nút thao tác nhất quán trên mọi theme quản trị */
body.wp-admin .scf-admin h1,body.wp-admin .scf-admin .scf-support-summary h2,body.wp-admin .scf-admin .scf-support-detail-heading h2,body.wp-admin .scf-admin .scf-support-admin-card h2,body.wp-admin .scf-admin .scf-manage-head h2{color:#102f5a!important;opacity:1!important;text-shadow:none!important}
body.wp-admin .scf-admin .scf-support-overline{color:#1255a3!important}
body.wp-admin .scf-admin .scf-support-summary-table thead th{background:#123e77!important;color:#fff!important}
body.wp-admin .scf-admin .scf-support-admin-card p,body.wp-admin .scf-admin .scf-support-summary p{color:#254b79}
body.wp-admin .scf-admin .scf-manage-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:160px}
body.wp-admin .scf-admin .scf-manage-actions form{display:inline-flex;margin:0}
body.wp-admin .scf-admin .scf-manage-actions .button{display:inline-flex;align-items:center;gap:3px;min-height:31px;border-radius:8px;white-space:nowrap}
body.wp-admin .scf-admin .scf-manage-actions .dashicons{font-size:16px;width:17px;height:17px}
body.wp-admin .scf-admin .scf-manage-actions .scf-delete-small{color:#b42340;border-color:#f5b6c3;background:#fff7f8}
body.wp-admin .scf-admin .scf-manage-editrow[hidden],body.wp-admin .scf-admin .scf-manage-editor[hidden]{display:none!important}
body.wp-admin .scf-admin .scf-support-summary-table td:last-child{min-width:165px}

/* V2.4.2: Số thứ tự công ty */
.scf-tree-company-index{flex:0 0 29px;height:29px;border-radius:9px;display:grid;place-items:center;background:#dcecff;color:#14529c;font-weight:800;font-size:12px}

/* V2.4.3 — Cài đặt: các nhóm rõ ràng, hai ảnh và khung preview thực tế. */
.scf-admin .scf-settings-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:20px;align-items:start;max-width:1560px;margin-top:20px}
.scf-settings-main,.scf-settings-aside{min-width:0}
.scf-admin .scf-settings-card{background:#fff;border:1px solid #cbdfff;border-radius:18px;padding:19px;margin:0 0 17px;box-shadow:0 6px 24px rgba(17,57,115,.045)}
.scf-admin .scf-settings-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px;color:#153a69}
.scf-admin .scf-settings-title>.dashicons{width:39px;height:39px;line-height:39px;font-size:20px;text-align:center;background:#eaf3ff;border-radius:12px;flex-shrink:0;color:#1659b5}
.scf-admin .scf-settings-title h2,.scf-admin .scf-settings-live h2{font-size:17px!important;font-weight:750;margin:0 0 5px;color:#153a69!important;padding:0}
.scf-admin .scf-settings-title p{color:#47658a;margin:0;line-height:1.55}
.scf-admin .scf-settings-fields{display:grid;grid-template-columns:1fr;gap:13px}
.scf-admin .scf-settings-2col{grid-template-columns:repeat(2,minmax(0,1fr))}
.scf-admin .scf-settings-fields label,.scf-admin .scf-settings-test label{font-weight:650;color:#153a69;display:flex;flex-direction:column;gap:6px;min-width:0}
.scf-admin .scf-settings-fields input:not([type=checkbox]),.scf-admin .scf-settings-fields select,.scf-admin .scf-settings-test input{width:100%;max-width:none;min-height:43px;border:1px solid #bdd3f6;border-radius:10px;background:#f8fbff;padding:9px 12px;font-size:14px;color:#133862}
.scf-admin .scf-settings-span{grid-column:1/-1}
.scf-admin .scf-settings-span:has(input[type=checkbox]){flex-direction:row;align-items:center;background:#eff6ff;border-radius:10px;padding:12px}
.scf-admin .scf-settings-fields small,.scf-admin .scf-settings-hint{font-size:12px;color:#506e93;font-weight:400;line-height:1.6}
.scf-admin .scf-settings-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.scf-admin .scf-settings-image{border:1px solid #d3e4fb;background:#f7fbff;border-radius:14px;padding:12px;min-width:0}
.scf-admin .scf-settings-image h3{margin:0 0 4px;font-size:15px;color:#143863}
.scf-admin .scf-settings-image p{color:#4d6b90;margin:0 0 12px;font-size:12px}
.scf-admin .scf-settings-img-preview{height:175px;border:1px dashed #a7c9f3;background:#eaf3ff;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;overflow:hidden;color:#4b6f9d}
.scf-admin .scf-settings-img-preview img{width:100%;height:100%;object-fit:cover;display:block}
.scf-admin .scf-settings-img-preview .dashicons{font-size:32px;width:32px;height:32px}
.scf-admin .scf-settings-img-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.scf-admin .scf-settings-img-actions .button,.scf-admin .scf-settings-test .button,.scf-admin .scf-settings-save .button{min-height:39px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.scf-admin .scf-settings-save{position:sticky;bottom:0;z-index:10;padding:12px;background:#eff6ff;border:1px solid #cbdfff;border-radius:14px;margin-bottom:17px}
.scf-admin .scf-settings-save .button{width:100%;min-height:46px;font-size:14px;font-weight:700}
.scf-admin .scf-settings-test{display:flex;align-items:end;gap:10px}.scf-admin .scf-settings-test label{flex:1}
.scf-admin .scf-settings-live{position:sticky;top:50px;overflow:hidden}
.scf-admin .scf-settings-live h2{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.scf-admin .scf-settings-live-hero{height:180px;border-radius:13px;background:#eaf3ff;overflow:hidden}.scf-admin .scf-settings-live-hero img{width:100%;height:100%;object-fit:cover}
.scf-admin .scf-settings-live-copy{padding:18px 4px 4px}.scf-admin .scf-settings-live-copy small{color:#2165bd;font-weight:800;letter-spacing:1px}
.scf-admin .scf-settings-live-copy h3{font-size:23px;line-height:1.2;color:#13345f;margin:12px 0}.scf-admin .scf-settings-live-copy p{color:#385d86;line-height:1.5}.scf-admin .scf-settings-live-slogan{font-weight:750;color:#175fbd!important}
.scf-admin .scf-settings-live-cta{display:block;text-align:center;background:#175ec2;color:white;border-radius:11px;padding:12px;font-weight:800;margin-top:16px}
.scf-portal-slogan{color:#2164bd;font-weight:750}
@media(max-width:1180px){.scf-admin .scf-settings-wrap{grid-template-columns:minmax(0,1fr)}.scf-admin .scf-settings-live{position:static}}
@media(max-width:680px){.scf-admin .scf-settings-images,.scf-admin .scf-settings-2col{grid-template-columns:1fr}.scf-admin .scf-settings-test{flex-direction:column;align-items:stretch}.scf-admin .scf-settings-card{padding:14px}}
/* V2.4.4: Bộ lọc Tổng quan + chọn nhiều video, giữ tương phản xanh/trắng */
.scf-v244-toolbar,.scf-v244-bulk-bar,.scf-v244-sale-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:15px;border:1px solid #c9daf9;border-radius:15px;background:#f4f8ff;margin:12px 0}
.scf-v244-toolbar label,.scf-v244-bulk-bar label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#153968}
.scf-v244-toolbar input,.scf-v244-toolbar select,.scf-v244-bulk-bar select,.scf-v244-sale-tools select{min-height:40px;border:1px solid #b4cbef!important;border-radius:10px!important;background:#fff;color:#142d52;max-width:100%;font-size:14px}
.scf-v244-toolbar input{min-width:250px}.scf-v244-toolbar .button,.scf-v244-bulk-bar .button{min-height:40px;border-radius:10px!important}
.scf-v244-bulk-bar small{color:#335880;flex-basis:100%}.scf-v244-selected{font-weight:700;color:#164d96}.scf-v244-video-cell{display:flex;align-items:center;gap:7px}
.scf-v244-matrix th:first-child,.scf-v244-matrix td:first-child{width:35px;text-align:center}.scf-v244-matrix [type=checkbox],.scf-v244-sale-tools [type=checkbox],.scf-v244-sale-select [type=checkbox]{width:17px;height:17px;cursor:pointer;accent-color:#1658bd}
.scf-v244-matrix tr[hidden]{display:none}.scf-v244-count{font-size:13px;color:#194274}.scf-v244-sortable{cursor:pointer}.scf-v244-sortable::after{content:' ↕';opacity:.45;font-size:12px}
.scf-v244-sale-tools{align-items:center;background:#eef6ff;margin:0 0 16px}.scf-v244-sale-check-all{display:flex;align-items:center;gap:8px;font-weight:700;color:#153968}.scf-v244-sale-tools select{flex:1;min-width:175px;max-width:270px}.scf-v244-sale-tools #scf-v244-sale-count{font-size:13px;font-weight:700;color:#28588e}
.scf-v244-sale-select{display:flex;align-items:center;align-self:flex-start;padding:9px;margin:0 4px 0 0;border:1px solid #c9daf9;border-radius:11px;background:#fff;flex-shrink:0}
.scf-v21-video:has(.scf-v244-sale-entry:checked){outline:2px solid #2365ca;outline-offset:2px}
@media(max-width:700px){.scf-v244-toolbar,.scf-v244-bulk-bar{align-items:stretch}.scf-v244-toolbar label,.scf-v244-toolbar input,.scf-v244-toolbar select{width:100%;min-width:0}.scf-v244-sale-tools{gap:9px}.scf-v244-sale-tools select{min-width:0;width:100%;max-width:none}.scf-v244-sale-select{padding:7px}.scf-v244-sale-tools #scf-v244-sale-count{margin-left:auto}}

/* 2.4.5 — chấm mới theo nội dung, nút đánh dấu xem, không dùng chuông tổng hợp */
.scf-v245-notices{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;margin:12px 0;background:#f0f7ff;border:1px solid #bfdaff;border-radius:13px}
.scf-v245-notices .button{display:inline-flex;align-items:center;gap:5px;border-radius:9px;min-height:36px}
.scf-v245-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.scf-v245-row-read{color:#1366bd!important;border-color:#b5d2f3!important;background:#fff!important}
.scf-v245-people-count{font-weight:600;color:#244c7e}
.scf-menu-dot{display:inline-block!important;width:9px;height:9px;margin-left:6px;vertical-align:middle;border-radius:50%;background:#e02c48;box-shadow:0 0 0 3px rgba(224,44,72,.13)}
@media(max-width:782px){.scf-v245-notices{align-items:stretch}.scf-v245-notices .button{justify-content:center;flex:1 1 180px}}

.scf-menu-dot[hidden],#adminmenu .scf-menu-dot[hidden]{display:none!important}

/* V2.4.6 – Chuẩn nút, vị trí thanh thao tác, chấm thông báo tại đúng dữ liệu. */
body.wp-admin #adminmenu .wp-submenu .scf-menu-dot,
body.wp-admin #adminmenu .scf-menu-dot{display:inline-block!important;position:relative;vertical-align:middle;width:9px;height:9px;min-width:9px;margin-left:8px;border-radius:50%;background:#e3274c;box-shadow:0 0 0 3px rgba(227,39,76,.18)}
body.wp-admin #adminmenu .scf-menu-dot[hidden]{display:none!important}
body.wp-admin .scf-admin .scf-v246-actionbar{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;padding:13px 16px;margin:12px 0 16px;border:1px solid #c4dbf9;background:#f1f7ff;border-radius:13px}
body.wp-admin .scf-admin .scf-v246-toolbar-label{font-size:12px;letter-spacing:.06em;font-weight:800;color:#174776;margin-right:5px}
body.wp-admin .scf-admin .scf-v246-actionbar .button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;height:auto;white-space:normal;line-height:1.3;padding:8px 13px;border-radius:9px;margin:0}
body.wp-admin .scf-admin .scf-v246-actionbar .dashicons{width:18px;height:18px;font-size:18px;line-height:18px}
body.wp-admin .scf-admin .scf-v246-actionbar .scf-v245-support-count,body.wp-admin .scf-admin .scf-v246-actionbar .scf-v245-people-count{margin-left:auto;white-space:nowrap}
body.wp-admin .scf-admin .scf-v244-bulk-bar{display:flex;align-items:end;justify-content:flex-start;gap:10px;flex-wrap:wrap}
body.wp-admin .scf-admin .scf-v244-bulk-bar label{margin:0;min-width:195px;max-width:260px}
body.wp-admin .scf-admin .scf-v244-bulk-bar select{margin:4px 0 0;min-height:39px}
body.wp-admin .scf-admin .scf-v244-bulk-bar .scf-v244-submit{margin:0 0 1px}
body.wp-admin .scf-admin .scf-v244-bulk-bar small{flex-basis:100%;line-height:1.4;color:#365a7c}
body.wp-admin .scf-admin .scf-support-summary .scf-manage-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.wp-admin .scf-admin .scf-support-summary-table td{vertical-align:middle}
body.wp-admin .scf-admin .scf-support-summary-table .scf-manage-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:max-content}
body.wp-admin .scf-admin .scf-support-summary-table .scf-manage-actions form{display:inline-flex;margin:0}
body.wp-admin .scf-admin .scf-support-summary-table .scf-manage-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:4px 10px;border-radius:9px;line-height:1.4;margin:0}
body.wp-admin .scf-admin .scf-support-summary-table .scf-manage-actions .dashicons{font-size:16px;width:16px;height:16px;line-height:16px}
body.wp-admin .scf-admin .scf-context-dot{display:inline-block;vertical-align:middle;width:9px;height:9px;min-width:9px;margin-left:6px;border-radius:50%;background:#e3274c;box-shadow:0 0 0 3px #e3274c22}
body.wp-admin .scf-admin .scf-context-dot[hidden]{display:none!important}
@media(max-width:782px){body.wp-admin .scf-admin .scf-v246-actionbar{align-items:stretch}body.wp-admin .scf-admin .scf-v246-actionbar .button{flex:1 1 160px}body.wp-admin .scf-admin .scf-v246-actionbar .scf-v245-support-count,body.wp-admin .scf-admin .scf-v246-actionbar .scf-v245-people-count{margin-left:0;align-self:center}body.wp-admin .scf-admin .scf-support-summary-table .scf-manage-actions{flex-wrap:wrap;min-width:160px}}

/* V2.4.8 — Bộ lọc ngang, thu gọn chiều cao trang quản trị. */
body.wp-admin .scf-admin .scf-v247-filter{box-sizing:border-box;margin:13px 0 15px;padding:13px 16px;background:#f3f8ff;border:1px solid #c9defb;border-radius:14px;box-shadow:0 3px 12px rgba(19,64,126,.035)}
body.wp-admin .scf-admin .scf-v247-filter-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 11px;color:#133b70}
body.wp-admin .scf-admin .scf-v247-filter-title strong{display:inline-flex;gap:7px;align-items:center;font-size:14px}
body.wp-admin .scf-admin .scf-v247-filter-title>span{font-size:12px;color:#3a6492}
body.wp-admin .scf-admin .scf-v247-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:end}
body.wp-admin .scf-admin .scf-v247-filter-grid label,body.wp-admin .scf-admin .scf-v247-date-grid label{display:flex;min-width:0;flex-direction:column;gap:4px;color:#174477;font-size:12px;font-weight:750;line-height:1.35;margin:0}
body.wp-admin .scf-admin .scf-v247-filter-grid select,body.wp-admin .scf-admin .scf-v247-date-grid input{box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:38px;margin:0;padding:4px 27px 4px 10px;border:1px solid #b4d0ef;border-radius:9px;background-color:#fff;color:#173b6a;font-size:13px}
body.wp-admin .scf-admin .scf-v247-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 0}
body.wp-admin .scf-admin .scf-v247-filter-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:9px;min-height:36px;padding:4px 12px;margin:0}
body.wp-admin .scf-admin .scf-v247-filter-actions .dashicons{font-size:16px;width:16px;height:16px;line-height:16px}
body.wp-admin .scf-admin .scf-v247-result{margin-left:auto;color:#245487;font-size:12px;font-weight:700}
body.wp-admin .scf-admin .scf-v247-advanced{margin-top:9px;color:#1b508a;font-size:12px}
body.wp-admin .scf-admin .scf-v247-advanced summary{cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-weight:700}
body.wp-admin .scf-admin .scf-v247-advanced .dashicons{font-size:15px;width:15px;height:15px}
body.wp-admin .scf-admin .scf-v247-date-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:9px 0}
body.wp-admin .scf-admin .scf-v247-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
body.wp-admin .scf-admin .scf-v247-chip{padding:5px 8px;border:1px solid #b5d3fa;border-radius:999px;background:#fff;color:#1453a0;cursor:pointer;font-size:12px}
body.wp-admin .scf-admin .scf-v247-stats{font-size:12px;color:#345982;margin-top:6px}
@media(max-width:1200px){body.wp-admin .scf-admin .scf-v247-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:782px){body.wp-admin .scf-admin .scf-v247-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wp-admin .scf-admin .scf-v247-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wp-admin .scf-admin .scf-v247-filter-title>span{display:none}body.wp-admin .scf-admin .scf-v247-result{margin-left:0;width:100%}}
@media(max-width:460px){body.wp-admin .scf-admin .scf-v247-filter{padding:11px}body.wp-admin .scf-admin .scf-v247-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.wp-admin .scf-admin .scf-v247-filter-grid label{font-size:11px}body.wp-admin .scf-admin .scf-v247-filter-grid select{font-size:12px;padding-left:7px}body.wp-admin .scf-admin .scf-v247-date-grid{grid-template-columns:1fr}}

/* V2.5.0 — thống nhất chiều cao nút và tâm icon trong danh sách quản trị. */
.scf-admin .button .dashicons,.scf-admin button .dashicons{vertical-align:middle;line-height:1}
.scf-admin .scf-filterbar .button,.scf-admin .scf-v246-actionbar .button{min-height:40px}
.scf-admin .scf-v246-actionbar form{margin:0}

/* V2.5.3 – Nút cập nhật thủ công của Admin: không tự reload khi Sales gửi dữ liệu. */
.scf-admin .scf-admin-headbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.scf-admin .scf-admin-headbar h1{margin:0}
.scf-admin .scf-admin-refresh-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scf-admin .scf-admin-refresh-status{font-size:12px;color:#a62643;font-weight:650}
.scf-admin .scf-admin-refresh{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;height:auto;padding:7px 14px;border:1px solid #8fb8eb;border-radius:10px;background:#f4f9ff;color:#123f7e;font-weight:650;line-height:1.2;cursor:pointer}
.scf-admin .scf-admin-refresh .dashicons{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px;line-height:1}
.scf-admin .scf-admin-refresh-dot:not([hidden]){display:block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#e12b4d;box-shadow:0 0 0 3px #ffe7ec}
.scf-admin .scf-admin-refresh.scf-has-updates{border-color:#e9aab7;background:#fff8fa}
@media(max-width:782px){.scf-admin .scf-admin-headbar{align-items:flex-start}.scf-admin .scf-admin-refresh-wrap{width:100%;justify-content:flex-start}}

/* V2.5.4: Nhãn hình thức Sales khai báo; chỉ BTC quyết định điểm. */
.scf-admin .scf-declared-inline{margin:8px 0 12px;font-size:13px;line-height:1.45;color:#154a82}.scf-admin .scf-declared-inline strong{font-weight:750}.scf-admin .scf-declared-review{display:grid;gap:5px;margin:12px 0 18px;padding:13px 15px;background:#eaf4ff;border:1px solid #a4caf8;border-left:4px solid #1764c3;border-radius:11px;color:#123e78}.scf-admin .scf-declared-review strong{font-size:12px;text-transform:uppercase;letter-spacing:.04em}.scf-admin #scf-declared-type{font-size:16px;font-weight:750;line-height:1.4}.scf-admin .scf-declared-review small{color:#315982}
/* V2.5.6 – Bộ lọc và công cụ xuất báo cáo gọn, tương thích mobile. */
.scf-report-panel{background:#f4f8ff;border:1px solid #bcd3ff;border-radius:14px;padding:18px;margin:16px 0 22px}
.scf-report-panel h2{margin:0 0 14px;color:#123864}
.scf-report-filters{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:12px}
.scf-report-filters label{display:flex;flex-direction:column;gap:5px;font-weight:600;color:#163b69}
.scf-report-filters select,.scf-report-filters input{width:100%;min-width:0;max-width:100%;min-height:40px;border-radius:9px}
.scf-report-export{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:16px}
.scf-report-export .button{min-height:40px;display:inline-flex;align-items:center;gap:6px;border-radius:9px}
.scf-report-export select{min-height:40px;border-radius:9px}
@media(max-width:1100px){.scf-report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.scf-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.scf-report-export .button{width:100%;justify-content:center}}

/* V2.5.7 – Công cụ xuất báo cáo trực tiếp từ Tổng quan */
.scf-export257{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #c5d9ff;border-radius:14px;padding:14px 18px;margin:14px 0 18px;box-shadow:0 6px 18px rgba(18,56,100,.04)}
.scf-export257-copy{display:flex;gap:10px;align-items:center;color:#153967}.scf-export257-copy>.dashicons{font-size:25px;width:26px;height:26px;color:#1762cc}.scf-export257-copy strong,.scf-export257-copy small{display:block}.scf-export257-copy strong{font-size:15px}.scf-export257-copy small{font-size:12px;margin-top:4px}
#scf-export257{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#scf-export257 select{height:40px;max-width:280px;border-radius:9px}#scf-export257 .button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px}
@media(max-width:782px){.scf-export257,#scf-export257{width:100%}#scf-export257 select,#scf-export257 .button{flex:1 1 100%;max-width:none}}

/* V2.5.8 — Thanh xuất Excel nhỏ, thẳng hàng và không tạo thêm box lớn. */
body.wp-admin .scf-admin .scf-export258{margin:10px 0 16px;padding:10px 12px;background:#fff;border:1px solid #c9def9;border-radius:12px;box-shadow:none}
body.wp-admin .scf-admin #scf-export257{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:10px;margin:0;width:100%}
body.wp-admin .scf-admin #scf-export257>label{display:flex;flex:0 1 235px;min-width:175px;flex-direction:column;gap:4px;margin:0;font-size:12px;line-height:1.25;font-weight:650;color:#173e72}
body.wp-admin .scf-admin #scf-export257 select{box-sizing:border-box;display:block;width:100%;max-width:none;min-width:0;height:40px;min-height:40px;margin:0;padding:4px 28px 4px 10px;border:1px solid #aec9eb;border-radius:9px;background-color:#fff;color:#153d71;font-size:13px;font-weight:500}
body.wp-admin .scf-admin #scf-export257 .scf-export258-button{box-sizing:border-box;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;min-height:40px;height:40px;padding:0 16px;margin:0;border-radius:9px;font-size:13px;line-height:1.2}
body.wp-admin .scf-admin #scf-export257 .scf-export258-button .dashicons{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:16px;line-height:16px;margin:0}
body.wp-admin .scf-admin .scf-export258-help{align-self:center;flex:1 1 225px;min-width:160px;margin:0;color:#4a6686;font-size:12px;line-height:1.4}
@media(max-width:782px){body.wp-admin .scf-admin #scf-export257>label{flex:1 1 145px;min-width:0}body.wp-admin .scf-admin #scf-export257 .scf-export258-button{flex:1 1 100%}body.wp-admin .scf-admin .scf-export258-help{flex:1 1 100%}}
@media(max-width:430px){body.wp-admin .scf-admin .scf-export258{padding:10px}body.wp-admin .scf-admin #scf-export257>label{flex:1 1 100%}}


/* V2.6.0 – Bảng Admin cố định cột, thumbnail nhẹ (ảnh nghiệm thu, không tải từ bên thứ ba). */
.scf-admin .scf-v260-matrix{width:100%;min-width:980px;table-layout:auto}
.scf-admin .scf-v260-matrix th,.scf-admin .scf-v260-matrix td{vertical-align:middle!important;padding:10px 9px;text-align:left!important;white-space:normal}
.scf-admin .scf-v260-matrix th:nth-child(1),.scf-admin .scf-v260-matrix td:nth-child(1),.scf-admin .scf-v260-matrix th:nth-child(2),.scf-admin .scf-v260-matrix td:nth-child(2){text-align:center!important}
.scf-v260-preview{display:flex;align-items:center;gap:6px;min-width:126px}
.scf-v260-preview-link{display:inline-flex;position:relative;text-decoration:none;flex:0 0 auto;border:2px solid #eda64d;border-radius:10px;padding:2px;background:white}
.scf-v260-preview-link.is-approved{border-color:#24a66a}
.scf-v260-thumb{display:inline-flex;justify-content:center;align-items:center;width:var(--scf-thumb-size,48px);height:var(--scf-thumb-size,48px);min-width:var(--scf-thumb-size,48px);overflow:hidden;background:#e6effb;border-radius:7px}
.scf-v260-thumb-img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;display:block}
.scf-v260-thumb-empty{color:#20569a}
.scf-v260-thumb-empty .dashicons{width:22px;height:22px;font-size:22px}
.scf-v260-new{position:absolute;width:9px;height:9px;right:-3px;top:-3px;border-radius:50%;border:2px solid #fff;background:#d92343;box-sizing:content-box}
.scf-v260-more{font-weight:700;color:#1858af!important;text-decoration:none;padding:6px;white-space:nowrap}
.scf-v260-count{display:inline-block;min-width:28px;padding:4px 8px;text-align:center;border-radius:9px;font-weight:700}
.scf-v260-count-pending{background:#ffe6e9;color:#a4213b}.scf-v260-count-approved{background:#def8ea;color:#087349}
.scf-v260-detail-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.scf-v260-detail-heading h2{margin:0 0 5px}.scf-v260-detail-heading p{margin:0;color:#375c85}
.scf-v260-detail-tabs{display:flex;flex-wrap:wrap;gap:7px}
.scf-admin .scf-v260-detail-table{width:100%;min-width:730px}
.scf-admin .scf-v260-detail-table td,.scf-admin .scf-v260-detail-table th{vertical-align:middle;padding:10px 11px}
.scf-admin .scf-v260-detail-table td:nth-child(3){min-width:150px;overflow-wrap:anywhere}
.scf-v260-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:15px 0}
@media(max-width:1100px){.scf-v260-preview{min-width:96px}.scf-v260-preview-link .scf-v260-thumb{--scf-thumb-size:36px!important}}

/* V2.6.1 — Màu chỉ xuất hiện khi thật sự có bài cần xử lý / đã duyệt. */
.scf-admin .scf-v260-matrix .scf-v261-status{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:4px 10px;border-radius:9px;white-space:nowrap;font-weight:750;font-size:12px;line-height:1.25}
.scf-admin .scf-v260-matrix .scf-v261-pending{color:#a61d39;background:#ffe5e9}
.scf-admin .scf-v260-matrix .scf-v261-approved,.scf-admin .scf-v260-matrix .scf-v261-complete{color:#086743;background:#dcf7e9}
.scf-admin .scf-v260-matrix .scf-v261-empty,.scf-admin .scf-v260-matrix .scf-v261-total-empty{color:#697c90}
.scf-admin .scf-v260-matrix .scf-v261-total{color:#133b6a;font-size:14px}
.scf-admin .scf-v260-matrix .scf-v261-review-button{background:#1558bb;border-color:#1558bb;color:#fff}
.scf-admin .scf-v260-matrix .scf-v261-review-button:hover,.scf-admin .scf-v260-matrix .scf-v261-review-button:focus{background:#0c438f;border-color:#0c438f;color:#fff}

/* V2.6.3 — Nhãn trạng thái Ẩn và Vô hiệu hóa hoàn toàn độc lập. */
.scf-v263-visibility-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.scf-v263-hidden-badge,.scf-v263-inactive-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:600;margin-left:6px;background:#e5e7eb;color:#4b5563;white-space:nowrap}
.scf-v263-inactive-badge{background:#fef3c7;color:#92400e}
.scf-v263-account-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:16px 0;padding:16px;border:1px solid #dce4ee;border-radius:10px;background:#fff}
.scf-v263-account-controls h3,.scf-v263-account-controls p{width:100%;margin:0}
.scf-v263-account-controls p{color:#4b5563;margin-bottom:6px}

.scf-v263-inline-toggle{margin:0;display:inline-flex}.scf-v263-inline-toggle .button{min-width:47px}

/* V2.6.4 — Tài khoản ẩn luôn ở cuối bảng, hiển thị mờ nhưng nút khôi phục vẫn rõ. */
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row>td{background:#f2f4f7!important;color:#82909e!important;border-bottom-color:#e6eaf0!important}
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row>td>a:not(.button),.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row>td strong,.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row .scf-v261-status{color:#85919e!important}
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row .scf-v261-status{background:#e5e9ee!important}
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row .scf-v260-preview{opacity:.45;filter:grayscale(1)}
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row .scf-v263-hidden-badge{background:#dce2e9;color:#445366;font-weight:750}
.scf-admin .scf-v260-matrix tr.scf-v264-hidden-row .scf-v245-row-actions .button{opacity:1}

/* V2.6.5: trạng thái sau chấm & chốt tiền; hộp xác nhận giờ khóa. */
.scf-v265-wait{display:inline-block;background:#fff2d5;color:#88530a;border-radius:7px;padding:5px 9px;font-weight:700}.scf-v265-failed,.scf-gray{display:inline-block;background:#e9edf2;color:#4c5969;border-radius:7px;padding:5px 9px;font-weight:700}.scf-v265-done{display:inline-block;color:#136c50;background:#dbf6e9;border-radius:7px;padding:6px 9px;font-weight:700}.scf-v265-shade{position:fixed;inset:0;z-index:999999;background:rgba(7,19,46,.7);display:grid;place-items:center;padding:16px}.scf-v265-dialog{width:min(440px,100%);background:white;padding:25px;border-radius:15px;box-shadow:0 10px 50px #0005}.scf-v265-dialog h3{color:#10264c;font-size:18px;margin:0 0 12px}.scf-v265-dialog p{font-size:15px;line-height:1.6}.scf-v265-actions{display:flex;justify-content:flex-end;gap:10px}.scf-v265-period,.scf-v265-panel{background:white;padding:14px;margin:15px 0;border:1px solid #dbe3f1;border-radius:9px}.scf-v265-final-form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.scf-v265-final-form select{max-width:230px}.scf-v260-preview-link.is-failed img{border-color:#8994a3!important}

#scf-approved.scf-state-fail{color:#495464!important;border-color:#a8b1bb!important;background:#edf0f4!important}

/* V2.6.7: tiến độ chốt duyệt lần hai ở Tổng quan và cùng popup chấm cấp một. */
.scf-v267-blue,.scf-v267-wait,.scf-v267-complete,.scf-v267-failed{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 8px;margin:2px;border-radius:7px;font-size:12px;font-weight:750}
.scf-v267-blue{color:#1556a4;background:#e3f0ff}.scf-v267-wait{color:#965508;background:#fff0d2}.scf-v267-complete{color:#11539d;background:#dcecff}.scf-v267-failed{color:#5d6874;background:#eceff2}
.scf-v267-final-section{border:1px solid #98c3fa;border-left:4px solid #2475d4;border-radius:10px;padding:15px;margin:17px 0;background:#f4f9ff}
.scf-v267-final-section h3{margin:0 0 12px;color:#195da8}.scf-v267-final-section label{display:block;margin:10px 0}.scf-v267-final-section select,.scf-v267-final-section textarea{width:100%;max-width:100%}
.scf-v267-submit{background:#1765bd!important;color:#fff!important;border-color:#1765bd!important;font-weight:750}.scf-v267-submit:hover{background:#114b94!important}
.scf-v267-permissions{margin:14px 0;background:#fff;padding:12px;border:1px solid #d7e2f1;border-radius:8px}.scf-v267-permission-option{display:block;padding:6px}

/* V2.6.8 – 5 box tổng quan: mỗi loại số liệu có một tông riêng */
.scf-admin .scf-kpis.scf-v268-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.scf-v268-kpis>div{min-width:0;font-weight:650;overflow-wrap:anywhere}
.scf-v268-kpis>div:nth-child(1){background:#eef2ff;border-color:#b9c6f9;color:#263e91}
.scf-v268-kpis>div:nth-child(2){background:#e6f4ff;border-color:#a7d6fb;color:#0d5285}
.scf-v268-kpis>div:nth-child(3){background:#fff1e6;border-color:#f8c7a1;color:#9b420c}
.scf-v268-kpis>div:nth-child(4){background:#e9f8ed;border-color:#addfba;color:#17653a}
.scf-v268-kpis>div:nth-child(5){background:#f3eaff;border-color:#d2b8f2;color:#66379a}
.scf-v268-kpis b{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.scf-v268-day-label{display:inline-flex!important;align-items:center;gap:7px;margin:0 8px}
.scf-admin .scf-v268-day-label input[type=date]{width:auto;min-height:35px;margin:0;padding:4px 8px;border-radius:7px}
@media(max-width:1280px){.scf-admin .scf-kpis.scf-v268-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.scf-admin .scf-kpis.scf-v268-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V2.6.9: Khắc phục mũi tên lặp và trạng thái select khóa trong popup Admin. */
#scf-score-modal select,
#scf-score-modal select:disabled {
  background-image: none !important;
  background-repeat: no-repeat !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  color: #123b69 !important;
  opacity: 1 !important;
  text-overflow: ellipsis;
  padding-right: 24px !important;
}
#scf-score-modal select:disabled {background-color: #edf3fa !important;border-color: #b6cce4 !important;}
#scf-v267-final-section [hidden] {display:none !important;}
#scf-v267-first-result,#scf-v267-final-result {font-weight:700;color:#114b8b;}
/* V2.7.14 — Thanh lọc thời gian + Excel gọn trên một hàng */
body.wp-admin .scf-admin .scf-reportbar{display:flex;align-items:flex-end;gap:10px;margin:12px 0 6px;padding:10px 12px;background:#fff;border:1px solid #d7e3f3;border-radius:12px;box-shadow:0 1px 2px rgba(15,35,70,.03)}
body.wp-admin .scf-admin .scf-reportbar .scf-v265-period{display:flex;align-items:flex-end;gap:8px;flex:1 1 auto;margin:0;padding:0;border:0;background:transparent;min-width:0}
body.wp-admin .scf-admin .scf-reportbar label{display:flex;flex-direction:column;gap:4px;min-width:142px;color:#4a6686;font-size:11px;font-weight:700}
body.wp-admin .scf-admin .scf-reportbar input[type=date],body.wp-admin .scf-admin .scf-reportbar select{height:36px;min-height:36px;border-color:#bfd2ee;border-radius:8px;background:#fff;font-size:12px;color:#17365f}
body.wp-admin .scf-admin .scf-reportbar .scf-range-arrow{align-self:center;margin-top:17px;color:#7d90aa;font-weight:800}
body.wp-admin .scf-admin .scf-range-presets{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-bottom:1px}
body.wp-admin .scf-admin .scf-range-presets a{display:inline-flex;align-items:center;height:34px;padding:0 9px;border:1px solid #d6e2f2;border-radius:8px;background:#f8fbff;color:#315b91;text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap}
body.wp-admin .scf-admin .scf-range-presets a:hover{background:#edf5ff;border-color:#9fc1ee;color:#164f9e}
body.wp-admin .scf-admin .scf-range-apply,body.wp-admin .scf-admin .scf-range-export-btn{height:36px;min-height:36px;border-radius:8px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
body.wp-admin .scf-admin .scf-range-export{display:flex;align-items:flex-end;gap:7px;flex:0 0 auto;margin:0}
body.wp-admin .scf-admin .scf-reportbar-more{position:relative;margin:0}
body.wp-admin .scf-admin .scf-reportbar-more>summary{height:34px;display:flex;align-items:center;padding:0 10px;border:1px solid #d6e2f2;border-radius:8px;background:#fff;color:#466586;font-size:11px;font-weight:700;cursor:pointer;list-style:none;white-space:nowrap}
body.wp-admin .scf-admin .scf-reportbar-more>summary::-webkit-details-marker{display:none}
body.wp-admin .scf-admin .scf-reportbar-more[open]>div{position:absolute;right:0;top:41px;z-index:20;width:260px;padding:11px;background:#fff;border:1px solid #ccdcef;border-radius:10px;box-shadow:0 10px 28px rgba(20,44,78,.14)}
body.wp-admin .scf-admin .scf-reportbar-more[open] label{min-width:0}
body.wp-admin .scf-admin .scf-reportbar-more select{width:100%}
body.wp-admin .scf-admin .scf-range-caption{margin:0 2px 12px;color:#607892;font-size:11px}
body.wp-admin .scf-admin .scf-range-caption strong{color:#23486f}
@media(max-width:1200px){body.wp-admin .scf-admin .scf-reportbar{align-items:stretch;flex-wrap:wrap}body.wp-admin .scf-admin .scf-reportbar .scf-v265-period{flex-wrap:wrap}body.wp-admin .scf-admin .scf-range-export{margin-left:auto}}
@media(max-width:782px){body.wp-admin .scf-admin .scf-reportbar{padding:10px}body.wp-admin .scf-admin .scf-reportbar .scf-v265-period{width:100%}body.wp-admin .scf-admin .scf-reportbar label{flex:1 1 130px}.scf-range-arrow{display:none}body.wp-admin .scf-admin .scf-range-presets{flex:1 1 100%}body.wp-admin .scf-admin .scf-range-export{width:100%;justify-content:flex-end}}


/* ==========================================================
   V2.7.17 - TRẠNG THÁI CHƯƠNG TRÌNH
   Chỉ khóa thao tác Sales; không thay đổi dữ liệu đã nộp.
   ========================================================== */
.scf-contest-status-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0 22px;padding:20px 22px;border:1px solid #dcdcde;border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.05)}
.scf-contest-status-main{display:flex;align-items:flex-start;gap:14px;min-width:0}.scf-contest-status-dot{width:12px;height:12px;border-radius:50%;margin-top:7px;flex:0 0 auto;background:#16a34a;box-shadow:0 0 0 5px rgba(22,163,74,.10)}
.scf-contest-status-panel.is-closed .scf-contest-status-dot{background:#dc2626;box-shadow:0 0 0 5px rgba(220,38,38,.10)}
.scf-contest-status-label{font-size:11px;font-weight:800;letter-spacing:.08em;color:#64748b}.scf-contest-status-panel h2{margin:2px 0 4px;font-size:21px}.scf-contest-status-panel p{margin:0;color:#475569}.scf-contest-status-panel small{display:block;margin-top:7px;color:#64748b}
.scf-contest-close-button{border-color:#dc2626!important;color:#b91c1c!important;background:#fff!important}.scf-contest-close-button:hover{background:#fef2f2!important;border-color:#b91c1c!important;color:#991b1b!important}
.scf-contest-closed-notice{display:flex;gap:12px;align-items:flex-start;margin:0 0 20px;padding:16px 18px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7;color:#7f1d1d}.scf-contest-closed-notice .dashicons{margin-top:2px}.scf-contest-closed-notice strong{display:block;font-size:15px}.scf-contest-closed-notice p{margin:4px 0 0;color:#991b1b}
.scf-contest-readonly{cursor:default!important;opacity:.92}.scf-contest-closed-auth{display:flex;flex-direction:column;gap:6px;margin:18px 0;padding:16px 18px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7;color:#7f1d1d}.scf-contest-closed-auth span{line-height:1.55;color:#991b1b}
@media(max-width:782px){.scf-contest-status-panel{align-items:stretch;flex-direction:column}.scf-contest-status-panel form,.scf-contest-status-panel form button{width:100%}}
