/* KMS-DARK.CSS — TỰ SINH từ các file CSS của KMS: đổi mọi màu nền sáng / chữ tối cố định sang bảng màu tối. Không sửa tay — sửa ở kms-polish.css */
/* ---- style.css ---- */
html[data-theme="dark"] .header-glow-border-fx::before{background:conic-gradient(
    transparent 0deg,
    transparent 140deg,
    rgba(245,158,11,0.30) 180deg,
    rgba(245,158,11,0.30) 210deg,
    #1e293b 230deg,
    rgba(245,158,11,0.30) 250deg,
    transparent 290deg
  ) !important}
html[data-theme="dark"] .hsh-badge{background:rgba(245,158,11,0.30);color:#fca5a5}
html[data-theme="dark"] .header-icon-btn:hover{border-color:rgba(245,158,11,.38) !important}
html[data-theme="dark"] .hsh-top-right-logo .logo-house-o{background:rgba(234,179,8,0.22);color:#fca5a5}
html[data-theme="dark"] .notif-dropdown-menu{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .notif-dropdown-header{background:#172236 !important;border-bottom:1px solid #334155 !important}
html[data-theme="dark"] .notif-title{color:#fca5a5 !important}
html[data-theme="dark"] .notif-mark-read-btn{color:#93c5fd !important}
html[data-theme="dark"] .notif-item{border-bottom:1px solid #334155 !important}
html[data-theme="dark"] .notif-item:hover{background:#172236 !important}
html[data-theme="dark"] .notif-item.unread{background:#1c2840 !important}
html[data-theme="dark"] .notif-item.read{background:#1e293b !important}
html[data-theme="dark"] .notif-item-text{color:#93c5fd !important}
html[data-theme="dark"] .notif-dropdown-footer{background:#172236 !important;border-top:1px solid #334155 !important}
html[data-theme="dark"] .notif-dropdown-footer a{color:#fca5a5 !important}
html[data-theme="dark"] .notif-detail-card{background:#1e293b}
html[data-theme="dark"] .notif-detail-title{color:#93c5fd}
html[data-theme="dark"] .notif-detail-meta{color:#93c5fd}
html[data-theme="dark"] .notif-detail-content{color:#93c5fd}
html[data-theme="dark"] .notif-detail-foot{border-top:1px solid #334155;background:#172236}
html[data-theme="dark"] .search-box input{border:1px solid #334155;background:#1c2840}
html[data-theme="dark"] .sidebar-kst{background:#1e293b;border-right:1px solid #334155}
html[data-theme="dark"] .sidebar-kst::-webkit-scrollbar-thumb{background:#334155}
html[data-theme="dark"] .sidebar-link:hover{color:#fca5a5}
@media(min-width:992px){
html[data-theme="dark"] .sidebar-kst{background:#1e293b !important;border-right:1px solid #334155 !important}
}
html[data-theme="dark"] .calendar-day.today.has-task::after{background:#1e293b}
html[data-theme="dark"] .stat-card.duesoon .num{color:#fbbf24}
html[data-theme="dark"] .task-card.is-urgent,
html[data-theme="dark"] .urgent-task-item,
html[data-theme="dark"] .card-urgent-highlight{background:linear-gradient(135deg,#1c2840 0%,#1c2840 100%) !important;border:1px solid rgba(239,68,68,.38) !important}
html[data-theme="dark"] .task-card.is-expired{background:#172236 !important;border:1px solid #334155 !important}
html[data-theme="dark"] .skeleton::after{background:linear-gradient(90deg,transparent,#1e293b,transparent)}
html[data-theme="dark"] .checklist li{border:1px solid #334155;background:#172236}
html[data-theme="dark"] .checklist li.done{background:#172236}
html[data-theme="dark"] .hsh-brand-title{background:linear-gradient(135deg,rgba(234,179,8,0.15) 0%,rgba(245,158,11,0.22) 50%,#D97706 100%) !important}
html[data-theme="dark"] .login-checkbox input:checked + .checkbox-fake{background:rgba(245,158,11,0.22);border-color:rgba(245,158,11,.38)}
html[data-theme="dark"] .btn-gold-submit{background:linear-gradient(135deg,rgba(245,158,11,0.30) 0%,#D97706 50%,#C8102E 100%) !important}
html[data-theme="dark"] .user-avatar-blue-retro svg circle:first-child{fill:#93c5fd !important}
html[data-theme="dark"] .library-btn{background:#1e293b}
html[data-theme="dark"] .library-btn .lib-name{color:#93c5fd}
html[data-theme="dark"] .library-btn .lib-note{color:#93c5fd}
html[data-theme="dark"] .view-header-banner{background:#1e293b;border:1px solid #334155}
html[data-theme="dark"] .view-header-banner h2{color:#fca5a5}
html[data-theme="dark"] .view-header-banner p{color:#93c5fd}
html[data-theme="dark"] .policy-card-item{background:#1e293b;border:1px solid #334155}
html[data-theme="dark"] .policy-card-item .lib-name{color:#93c5fd}
html[data-theme="dark"] .policy-card-item .lib-note{color:#93c5fd}
html[data-theme="dark"] .policy-card-item .policy-card-tag{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .td-top-medal.r1{color:#fbbf24}
html[data-theme="dark"] .td-top-medal.r2{color:#93c5fd}
html[data-theme="dark"] .td-top-medal.r3{color:#fdba74}
html[data-theme="dark"] .td-badge-red{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .td-badge-orange{background:rgba(249,115,22,0.15);color:#fdba74}
html[data-theme="dark"] .td-badge-yellow{background:rgba(234,179,8,0.15);color:#fbbf24;border-color:rgba(245,158,11,.38)}
html[data-theme="dark"] .td-luyke-red{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .td-luyke-orange{background:rgba(249,115,22,0.15);color:#fdba74}
html[data-theme="dark"] .td-luyke-yellow{background:rgba(234,179,8,0.15);color:#fbbf24;border:1px solid rgba(245,158,11,.38)}
html[data-theme="dark"] .td-huongxuly{background:#172236;color:#4ade80;border:1px solid rgba(34,197,94,.38)}
html[data-theme="dark"] .glow-card-gold::before{background:conic-gradient(
    transparent 0deg,
    transparent 130deg,
    rgba(245,158,11,0.30) 170deg,
    rgba(245,158,11,0.30) 200deg,
    #1e293b 220deg,
    rgba(245,158,11,0.30) 240deg,
    transparent 280deg
  ) !important}
html[data-theme="dark"] .copyright-text{color:#93c5fd !important}
html[data-theme="dark"] .nn-card:hover{border-color:#334155}
html[data-theme="dark"] .nn-card-badge{color:#fca5a5;background:#1c2840}
html[data-theme="dark"] .nn-card-link{color:#fca5a5}
html[data-theme="dark"] .nn-article-body h3{color:#fca5a5}
html[data-theme="dark"] .v-playlist-item:hover,
html[data-theme="dark"] .v-playlist-item.active{background:#1c2840}
html[data-theme="dark"] .v-thumb-box{background:#263349}
html[data-theme="dark"] .v-item-title{color:#93c5fd}
html[data-theme="dark"] .v-item-meta{color:#93c5fd}
html[data-theme="dark"] .btn-submit-complete-exact:disabled{background:rgba(59,130,246,0.30) !important}
html[data-theme="dark"] .support-pill-content{border:1.5px solid rgba(245,158,11,.38) !important}
html[data-theme="dark"] .floating-support-wrapper .chat-badge{border:2px solid #334155 !important}
html[data-theme="dark"] .chat-widget-box{background:#1e293b;border:1px solid #334155}
html[data-theme="dark"] .chat-welcome-msg{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] #chatMessage::-webkit-scrollbar-thumb{background:#334155 !important}
html[data-theme="dark"] #chatMessage::-webkit-scrollbar-thumb:hover{background:rgba(59,130,246,0.30) !important}
html[data-theme="dark"] .btn-primary-add-task{background:linear-gradient(135deg, rgba(245,158,11,0.30) 0%, #CA8A04 100%) !important}
html[data-theme="dark"] .urgent-banner-card{background:linear-gradient(135deg, #1c2840 0%, #1c2840 100%) !important;border:1px solid rgba(239,68,68,.38) !important}
html[data-theme="dark"] .urgent-banner-text{color:#fca5a5 !important}
html[data-theme="dark"] .btn-urgent-action{color:#fca5a5 !important}
html[data-theme="dark"] .access-denied-card{background:linear-gradient(135deg, #1e293b 0%, #1c2840 100%) !important;border:2px solid rgba(239,68,68,.38) !important}
html[data-theme="dark"] .denied-title{color:#fca5a5 !important}
html[data-theme="dark"] .denied-desc{color:#93c5fd !important}
html[data-theme="dark"] .btn-back-home{border:1.5px solid rgba(245,158,11,.38) !important}
html[data-theme="dark"] .zalo-reminder-widget.compact-bar:not(.d-none){background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .zalo-title{color:#93c5fd !important}
html[data-theme="dark"] .zalo-badge{background:rgba(34,197,94,0.15) !important;color:#4ade80 !important}
html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months{color:#93c5fd !important;background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .flatpickr-current-month input.cur-year{color:#93c5fd !important;background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .flatpickr-calendar{background:#1e293b !important}
html[data-theme="dark"] .btn-sync-trigger{color:#fbbf24}
html[data-theme="dark"] .td-st-new{background:rgba(59,130,246,0.15);color:#93c5fd;border-color:rgba(59,130,246,.38)}
html[data-theme="dark"] .td-st-open{background:rgba(249,115,22,0.15);color:#fca5a5}
html[data-theme="dark"] .td-st-relapse{background:rgba(239,68,68,0.15);color:#fca5a5}
html[data-theme="dark"] .td-st-wait{background:rgba(234,179,8,0.15);color:#fdba74;border-color:rgba(245,158,11,.38)}
html[data-theme="dark"] .td-st-done{background:rgba(34,197,94,0.15);color:#4ade80;border-color:rgba(34,197,94,.38)}
/* ---- dms.css ---- */
html[data-theme="dark"] .dms-kpi-card.kpi-active-filter{outline:3px solid #334155}
html[data-theme="dark"] .kpi-phanloai{background:linear-gradient(135deg,rgba(245,158,11,0.30),#D97706)}
html[data-theme="dark"] .kpi-xacminh{background:linear-gradient(135deg,rgba(34,197,94,0.30),#059669)}
html[data-theme="dark"] .kpi-chuaxacminh{background:linear-gradient(135deg,rgba(249,115,22,0.30),#EA580C)}
html[data-theme="dark"] .dms-btn-gold{background:linear-gradient(135deg,rgba(245,158,11,0.30) 0%,var(--dms-gold) 45%,var(--dms-red) 130%);color:#fca5a5}
html[data-theme="dark"] .dms-btn-outline{background:#1e293b}
html[data-theme="dark"] .dms-btn-outline:hover{background:#172236;border-color:#334155}
html[data-theme="dark"] table.dms-table thead th{background:#172236}
html[data-theme="dark"] table.dms-table tbody tr:hover{background:#172236}
html[data-theme="dark"] .table-responsive-container{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .dms-customer-table th{background:#1c2840 !important;color:#93c5fd !important}
html[data-theme="dark"] .dms-customer-table td{border-bottom:1px solid #334155 !important;color:#93c5fd !important}
html[data-theme="dark"] .table-responsive-container::-webkit-scrollbar-track{background:#1c2840 !important}
html[data-theme="dark"] .table-responsive-container::-webkit-scrollbar-thumb{background:rgba(59,130,246,0.30) !important;border:2px solid #334155 !important}
html[data-theme="dark"] .dms-customer-table th:nth-child(5),
html[data-theme="dark"] .dms-customer-table td:nth-child(5){color:#5eead4 !important}
html[data-theme="dark"] .dms-customer-table tbody tr:hover{background-color:#172236 !important}
html[data-theme="dark"] .dms-badge-verified{color:#4ade80}
html[data-theme="dark"] .dms-badge-unverified{color:#fdba74}
html[data-theme="dark"] .dms-filter-chip{background:#172236;border:1px solid rgba(34,197,94,.38);color:#4ade80}
html[data-theme="dark"] .dms-filter-chip button{color:#4ade80}
html[data-theme="dark"] .dms-filter-chip.unverified{background:#172236;color:#fca5a5}
html[data-theme="dark"] .dms-filter-chip.unverified button{color:#fca5a5}
html[data-theme="dark"] .dms-action-btn{background:linear-gradient(135deg,rgba(245,158,11,0.15),rgba(245,158,11,0.30));color:#fbbf24}
html[data-theme="dark"] .dms-action-btn:hover{background:linear-gradient(135deg,rgba(245,158,11,0.30),rgba(245,158,11,0.30))}
html[data-theme="dark"] .dms-page-btn{background:#1e293b}
html[data-theme="dark"] .dms-field input,
html[data-theme="dark"] .dms-field select,
html[data-theme="dark"] .dms-field textarea{background:#172236}
html[data-theme="dark"] .dms-field input:focus,
html[data-theme="dark"] .dms-field select:focus,
html[data-theme="dark"] .dms-field textarea:focus{background:#1e293b}
html[data-theme="dark"] .dms-denied-lock{background:radial-gradient(circle at 35% 30%, rgba(234,179,8,0.15), rgba(245,158,11,0.22) 55%, #8B0000 130%)}
html[data-theme="dark"] .dms-btn-danger-outline{color:#fca5a5 !important}
html[data-theme="dark"] .dms-modal-close-circle{background:#1c2840 !important}
html[data-theme="dark"] .khachhang-detail-sidebar{border-right:1px solid #334155 !important}
html[data-theme="dark"] .khachhang-tab-btn{color:#93c5fd !important}
html[data-theme="dark"] .khachhang-tab-btn:hover{background:#1c2840 !important;color:#93c5fd !important}
html[data-theme="dark"] .khachhang-tab-btn.active{background:#1c2840 !important;color:#fca5a5 !important}
html[data-theme="dark"] .khachhang-detail-body .info-item label{color:#93c5fd !important}
html[data-theme="dark"] .khachhang-detail-body .info-item .info-value-box{background:#172236 !important;border:1px solid #334155 !important;color:#93c5fd !important}
@media (max-width: 720px){
html[data-theme="dark"] .khachhang-detail-sidebar{border-bottom:1px solid #334155 !important}
}
html[data-theme="dark"] .dms-delete-title{color:#fca5a5}
html[data-theme="dark"] .dms-delete-warning-box{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .dms-delete-warning-strong{color:#fca5a5}
html[data-theme="dark"] .dms-delete-error{color:#fca5a5}
html[data-theme="dark"] .dms-btn-small-outline{background:#1e293b}
html[data-theme="dark"] .dms-btn-small-outline:hover{background:#172236}
html[data-theme="dark"] .doc-card{background:linear-gradient(135deg,#1e293b 0%,#172236 100%) !important;border-left:5px solid #334155 !important}
html[data-theme="dark"] .doc-card-available .doc-card-status{color:#4ade80 !important}
html[data-theme="dark"] .doc-card-available .doc-card-arrow{color:#4ade80 !important}
html[data-theme="dark"] .doc-card-nolink .doc-card-status{color:#fdba74 !important}
html[data-theme="dark"] .doc-card-missing{border-left-color:#334155 !important}
html[data-theme="dark"] .customer-eval-3d-card{background:linear-gradient(135deg, #1e293b 0%, #172236 100%) !important;border:1px solid #334155 !important}
html[data-theme="dark"] .eval-title{color:#fca5a5 !important}
html[data-theme="dark"] .eval-card-body{color:#93c5fd !important}
html[data-theme="dark"] .glow-card-gold::before{background:conic-gradient(
    transparent 0deg,
    transparent 140deg,
    rgba(245,158,11,0.30) 180deg,
    rgba(245,158,11,0.30) 210deg,
    #1e293b 230deg,
    rgba(245,158,11,0.30) 250deg,
    transparent 290deg
  ) !important}
html[data-theme="dark"] .copyright-text{color:#93c5fd !important}
html[data-theme="dark"] .dms-nav-menu-btn:hover{border-color:rgba(245,158,11,.38) !important}
html[data-theme="dark"] .dms-dropdown-card{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .dropdown-item-link:hover{background:#1c2840 !important}
html[data-theme="dark"] .dropdown-item-link.active{background:#1c2840 !important}
html[data-theme="dark"] .dropdown-item-link .item-title{color:#93c5fd !important}
html[data-theme="dark"] .dropdown-item-link .item-desc{color:#93c5fd !important}
html[data-theme="dark"] .nhansu-detail-sidebar{border-right:1px solid #334155 !important}
html[data-theme="dark"] .nhansu-tab-btn{color:#93c5fd !important}
html[data-theme="dark"] .nhansu-tab-btn:hover{background:#1c2840 !important;color:#93c5fd !important}
html[data-theme="dark"] .nhansu-tab-btn.active{background:#1c2840 !important;color:#fca5a5 !important}
html[data-theme="dark"] .info-item label{color:#93c5fd !important}
html[data-theme="dark"] .info-item span{color:#93c5fd !important;background:#172236 !important;border:1px solid #334155 !important}
@media (max-width: 720px){
html[data-theme="dark"] .nhansu-detail-sidebar{border-bottom:1px solid #334155 !important}
}
html[data-theme="dark"] .btn-add-employee{background:linear-gradient(135deg, rgba(245,158,11,0.30) 0%, #CA8A04 100%) !important}
html[data-theme="dark"] .btn-add-employee:hover{background:linear-gradient(135deg, rgba(245,158,11,0.30) 0%, #D97706 100%) !important}
html[data-theme="dark"] .toolbar-title{color:#93c5fd !important}
html[data-theme="dark"] .toolbar-badge{background:#1c2840 !important;color:#fca5a5 !important;border:1px solid rgba(239,68,68,.38) !important}
html[data-theme="dark"] .dms-input-search{border:1px solid #334155 !important;background:#1e293b !important;color:#93c5fd !important}
html[data-theme="dark"] .btn-export-excel,
html[data-theme="dark"] .btn-reload-data{background:#1e293b !important;border:1px solid #334155 !important;color:#93c5fd !important}
html[data-theme="dark"] .btn-export-excel:hover,
html[data-theme="dark"] .btn-reload-data:hover{background:#172236 !important}
html[data-theme="dark"] .kst-section-container{background:#172236 !important}
html[data-theme="dark"] .kst-subtab-btn{border:1.5px solid #334155 !important;background:#1e293b !important;color:#93c5fd !important}
html[data-theme="dark"] .kst-subtab-btn:hover{color:#fca5a5 !important}
html[data-theme="dark"] .kst-kpi-card{background:linear-gradient(135deg, #1e293b 0%, #1c2840 100%) !important}
html[data-theme="dark"] .kst-kpi-card.danger{background:linear-gradient(135deg, #1e293b 0%, rgba(239,68,68,0.15) 100%) !important}
html[data-theme="dark"] .kst-kpi-value{color:#93c5fd !important}
html[data-theme="dark"] .kst-kpi-card.danger .kst-kpi-value{color:#fca5a5 !important}
html[data-theme="dark"] .kst-kpi-label{color:#93c5fd !important}
html[data-theme="dark"] .kst-panel{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kst-panel-title{color:#93c5fd !important}
html[data-theme="dark"] .kst-badge-done{background:rgba(34,197,94,0.15) !important;color:#4ade80 !important}
html[data-theme="dark"] .kst-badge-progress{background:rgba(245,158,11,0.15) !important;color:#fdba74 !important}
html[data-theme="dark"] .kst-badge-pending{background:#1c2840 !important;color:#93c5fd !important}
html[data-theme="dark"] .kst-store-card{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kst-store-card.duesoon::before{background:rgba(245,158,11,0.30) !important}
html[data-theme="dark"] .kst-store-name{color:#93c5fd !important}
html[data-theme="dark"] .kst-store-meta{color:#93c5fd !important}
html[data-theme="dark"] .kst-store-days{color:#4ade80 !important}
html[data-theme="dark"] .kst-store-days.overdue-text{color:#fca5a5 !important}
html[data-theme="dark"] .kst-store-days.duesoon-text{color:#fdba74 !important}
html[data-theme="dark"] .kst-timeline-title{color:#93c5fd !important}
html[data-theme="dark"] .kst-timeline-sub{color:#93c5fd !important}
html[data-theme="dark"] .kst-timeline-warn{color:#fdba74 !important}
html[data-theme="dark"] .kst-checklist-pct{color:#4ade80 !important}
html[data-theme="dark"] .kst-checklist-progress{background:#1c2840 !important}
html[data-theme="dark"] .kst-checklist-row{background:#172236 !important}
html[data-theme="dark"] .kst-checklist-label{color:#93c5fd !important}
html[data-theme="dark"] .kst-toggle-switch{background:#334155 !important}
html[data-theme="dark"] .kst-toggle-knob{background:#1e293b !important}
html[data-theme="dark"] .kst-risk-table th{color:#93c5fd !important;border-bottom:2px solid #334155 !important}
html[data-theme="dark"] .kst-risk-table td{border-bottom:1px solid #334155 !important;color:#93c5fd !important}
html[data-theme="dark"] .kst-filter-bar::-webkit-scrollbar-thumb{background:#263349 !important}
html[data-theme="dark"] .kst-filter-bar select{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .kst-filter-bar select:hover{background:#172236 !important;border-color:#334155 !important}
html[data-theme="dark"] #kstDaysFilter{background:#172236 !important;border-color:rgba(245,158,11,.38) !important;color:#fdba74 !important}
html[data-theme="dark"] .kst-filter-date-wrap{background:#1c2840 !important}
html[data-theme="dark"] .kst-filter-date-wrap:hover{background:#263349 !important}
html[data-theme="dark"] .kst-filter-date-wrap:focus-within{background:#1e293b !important}
html[data-theme="dark"] .kst-filter-date-icon{color:#fca5a5 !important}
html[data-theme="dark"] .kst-filter-date-label{color:#fca5a5 !important}
html[data-theme="dark"] .kst-filter-date-input{color:#fca5a5 !important}
html[data-theme="dark"] .kst-checklist-toolbar select{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .kst-period-btn{border:1.5px solid #334155 !important;background:#1e293b !important;color:#93c5fd !important}
html[data-theme="dark"] .kst-period-btn:hover{color:#fca5a5 !important}
html[data-theme="dark"] .kst-date-picker{color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .flatpickr-calendar{background:#1e293b !important}
html[data-theme="dark"] .flatpickr-months .flatpickr-month,
html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months{color:#93c5fd !important}
html[data-theme="dark"] .btn-view-detail{background:#1c2840 !important;color:#93c5fd !important;border:1px solid rgba(59,130,246,.38) !important}
html[data-theme="dark"] .chart-card-vip{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kst-detail-header-row{background:#172236 !important}
html[data-theme="dark"] .kst-detail-store-name{color:#93c5fd !important}
html[data-theme="dark"] .kst-detail-store-meta{color:#93c5fd !important}
html[data-theme="dark"] .kst-detail-days-badge{background:rgba(239,68,68,0.15) !important;color:#fca5a5 !important}
html[data-theme="dark"] .kst-detail-value{background:#172236 !important;color:#93c5fd !important}
html[data-theme="dark"] .kst-detail-issues-block label{color:#93c5fd !important}
html[data-theme="dark"] .kst-detail-issue-item{background:#172236 !important;border:1px solid rgba(245,158,11,.38) !important;color:#fdba74 !important}
/* ---- kms.css ---- */
html[data-theme="dark"] .kst-date-input{color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .wizard-progress-bar{background:linear-gradient(135deg, #172236 0%, #1c2840 100%) !important}
html[data-theme="dark"] .wizard-step-dot .dot-num{background:#263349 !important;color:#93c5fd !important}
html[data-theme="dark"] .wizard-step-dot.active .dot-label{color:#fca5a5 !important}
html[data-theme="dark"] .wizard-step-dot.done .dot-num{background:linear-gradient(135deg, rgba(245,158,11,0.30) 0%, rgba(245,158,11,0.30) 100%) !important;color:#fca5a5 !important}
html[data-theme="dark"] .wizard-step-line{background:#263349 !important}
html[data-theme="dark"] .wizard-dyn-row input{border:1.5px solid #334155 !important}
html[data-theme="dark"] .wizard-error-card{background:#172236 !important;border:1px solid #334155 !important}
html[data-theme="dark"] .wizard-error-card-head{color:#fca5a5 !important}
html[data-theme="dark"] .wizard-row-remove{background:rgba(239,68,68,0.15) !important;color:#fca5a5 !important}
html[data-theme="dark"] .btn-filter-pill{background:#1e293b !important;color:#fca5a5 !important}
html[data-theme="dark"] .btn-filter-pill svg{stroke:#fca5a5 !important}
html[data-theme="dark"] .kst-filter-panel select{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .kst-filter-result-badge{color:#fdba74 !important;background:#172236 !important;border:1px solid rgba(245,158,11,.38) !important}
html[data-theme="dark"] .kst-filter-empty-title{color:#93c5fd !important}
html[data-theme="dark"] .kms-sub-nav{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kms-sub-nav-status{border-left:1px solid #334155 !important;color:#93c5fd !important}
html[data-theme="dark"] .kms-sub-nav .nav-btn{color:#93c5fd !important}
html[data-theme="dark"] .kms-sub-nav .nav-btn:hover:not(.active){background:#1c2840 !important;color:#fca5a5 !important}
html[data-theme="dark"] .kst-kpi-card{border-color:rgba(239,68,68,.38) !important}
html[data-theme="dark"] .btn-calendar-trigger{background:#1c2840 !important;color:#fca5a5 !important}
html[data-theme="dark"] .kms-calpop{background:var(--surface-solid, #1e293b) !important;border:1px solid var(--surface-border, #334155) !important}
html[data-theme="dark"] .kms-calpop-head .calendar-selects select{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .kms-calpop .calendar-dow span{color:#93c5fd !important}
html[data-theme="dark"] .kms-calpop .calendar-day:not(.other-month):hover{background:#1c2840 !important;color:#fca5a5 !important}
html[data-theme="dark"] .kms-filter-bar{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .filter-input-search{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#172236 !important}
html[data-theme="dark"] .filter-input-search:focus{background:#1e293b !important}
html[data-theme="dark"] .filter-select{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#172236 !important}
html[data-theme="dark"] .btn-create-kms{background:linear-gradient(135deg, rgba(245,158,11,0.30) 0%, rgba(245,158,11,0.30) 100%) !important;color:#fca5a5 !important}
html[data-theme="dark"] .kst-timeline-item,
html[data-theme="dark"] .kst-store-card{background:#172236 !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kst-card-avatar-chip{color:#fca5a5 !important}
html[data-theme="dark"] .kms-confirm-title{color:#fca5a5 !important}
html[data-theme="dark"] .kms-confirm-desc{color:#93c5fd !important}
html[data-theme="dark"] .btn-cancel-modal{background:#1c2840 !important;color:#93c5fd !important}
html[data-theme="dark"] .btn-cancel-modal:hover{background:#263349 !important}
html[data-theme="dark"] .report-bcc-location-select.form-select-custom{border:1.5px solid #334155 !important;color:#93c5fd !important;background:#1e293b !important}
html[data-theme="dark"] .kst-group-card{background:#1e293b !important;border:1px solid #334155 !important}
html[data-theme="dark"] .kst-group-header{background:linear-gradient(135deg, #172236 0%, #1c2840 100%) !important;border-bottom:1px solid rgba(245,158,11,.38) !important}
html[data-theme="dark"] .kst-group-badge-cum{background:#1e293b !important;color:#fdba74 !important}
html[data-theme="dark"] .kst-group-item{background:#172236 !important;border:1px solid #334155 !important}
/* ---- ndtc.css ---- */
html[data-theme="dark"] .nd-side{background:#1e293b;border:1px solid #334155}
html[data-theme="dark"] .nd-side::-webkit-scrollbar-thumb{background:#334155}
html[data-theme="dark"] .nd-side-grp{color:#94a3b8}
html[data-theme="dark"] .nd-side-grp::before{background:linear-gradient(90deg, #c8102e, rgba(245,158,11,0.30))}
html[data-theme="dark"] .nd-nav{color:#93c5fd}
html[data-theme="dark"] .nd-ico{background:color-mix(in srgb, var(--ic, rgba(59,130,246,0.30)) 14%, #1e293b)}
html[data-theme="dark"] .nd-nav:hover{background:#1c2840;color:#93c5fd}
html[data-theme="dark"] .nd-nav.active .nd-nav-count{background:#1e293b;color:#fca5a5}
html[data-theme="dark"] .nd-side-foot{border-top:1px solid #334155;color:#94a3b8}
html[data-theme="dark"] .nd-head h2{color:#93c5fd}
html[data-theme="dark"] .nd-head p{color:#93c5fd}
html[data-theme="dark"] .nd-sec-title{color:#93c5fd}
/* ---- kehoach.css ---- */
/* ---- kmsside.css ---- */
html[data-theme="dark"] .nd-side-grp.nd-grp-toggle:hover{background:#1c2840}
/* ---- bb.css ---- */
html[data-theme="dark"] .bb-st{background:color-mix(in srgb, var(--c, rgba(59,130,246,0.30)) 14%, transparent);color:var(--c, #93c5fd)}
html[data-theme="dark"] .bb-st::before{background:var(--c, rgba(59,130,246,0.30))}
html[data-theme="dark"] .bb-top h2{color:#93c5fd}
html[data-theme="dark"] .bb-sub button.on em{background:#1e293b}
@media print{
html[data-theme="dark"] #bbPrev{background:#1e293b !important}
}
html[data-theme="dark"] .bb-xsel{background:var(--nd-surface, #1e293b)}
html[data-theme="dark"] .bb-pv-opt{background:var(--nd-surface, #1e293b);color:var(--nd-text, #93c5fd)}
html[data-theme="dark"] .bb-combo-b:hover{background:var(--nd-brand-soft, rgba(239,68,68,0.15))}
html[data-theme="dark"] .bb-combo-pop{background:var(--nd-surface, #1e293b);color:var(--nd-text, #93c5fd)}
html[data-theme="dark"] .bb-combo-pop button:hover{background:var(--nd-brand-soft, rgba(239,68,68,0.15))}
html[data-theme="dark"] .bb-combo-pop small{color:var(--nd-faint, #93c5fd)}
html[data-theme="dark"] .bx-dot{background:rgba(59,130,246,0.30)}
html[data-theme="dark"] .bx-tab.st-warn .bx-dot,
html[data-theme="dark"] .bx-dot.st-warn{background:rgba(245,158,11,0.30)}
html[data-theme="dark"] .bx-tab.st-empty .bx-dot,
html[data-theme="dark"] .bx-dot.st-empty{background:#334155}
html[data-theme="dark"] .bx-chip.st-ok{color:#4ade80}
html[data-theme="dark"] .bx-chip.st-warn{color:#fdba74}
html[data-theme="dark"] .bx-chip.st-empty{color:#93c5fd}
html[data-theme="dark"] .bx-chip.st-na{color:#93c5fd}
html[data-theme="dark"] .bx-t th.au{color:#93c5fd}
html[data-theme="dark"] .bx-t th.hd{color:#fdba74}
html[data-theme="dark"] .bx-x{color:#fca5a5}
html[data-theme="dark"] .bx-ph img{background:#1e293b}
html[data-theme="dark"] .bx-sug{background:var(--nd-surface, #1e293b);color:var(--nd-text, #93c5fd)}
html[data-theme="dark"] .bx-sug button:hover{background:var(--nd-brand-soft, rgba(239,68,68,0.15))}
html[data-theme="dark"] .bx-sug small{color:var(--nd-faint, #93c5fd)}
/* ---- rp.css ---- */
html[data-theme="dark"] .nd-nav .rp-ico{color:var(--nd-brand, #fca5a5)}
html[data-theme="dark"] .rp-mbox{background:var(--nd-surface, #1e293b);color:var(--nd-text, #93c5fd)}
/* ---- kms-enterprise.css ---- */
html[data-theme="dark"] #kmsApp .nd-nav-count{background:#1c2840}
html[data-theme="dark"] #kmsApp .nd-nav.active .nd-nav-count{background:#1e293b}
html[data-theme="dark"] .kp-ic{background:#1c2840}
html[data-theme="dark"] .kp-chip.crit{background:#1c2840;color:#fca5a5;border-color:rgba(239,68,68,.38)}
html[data-theme="dark"] .kp-chip.warn{background:#172236;color:#fdba74;border-color:rgba(245,158,11,.38)}
html[data-theme="dark"] .kp-bar{background:#263349}
html[data-theme="dark"] .kp-card.danger .kp-ic{background:rgba(239,68,68,0.15)}
html[data-theme="dark"] .kp-seg{background:#263349}
html[data-theme="dark"] .kp-seg button.on{background:#1e293b}
html[data-theme="dark"] .kp-b.now{background:#1c2840;color:#fca5a5;border-color:rgba(239,68,68,.38)}
html[data-theme="dark"] .kp-b.next{background:#1c2840;color:#93c5fd;border-color:rgba(59,130,246,.38)}
html[data-theme="dark"] .kp-b.ok{background:#172236;color:#4ade80;border-color:rgba(34,197,94,.38)}
html[data-theme="dark"] .kp-b.none{background:#1c2840;color:#93c5fd;border-color:#334155}
html[data-theme="dark"] #kmsApp .kh-tile:hover{border-color:#334155}
html[data-theme="dark"] #kmsApp .kh-t-focus{border-color:#334155}
html[data-theme="dark"] #kmsApp .kh-cell.past{background:#334155}
/* ---- kms-v49.css ---- */
html[data-theme="dark"] body.dms-body{background:#1c2840 !important}
html[data-theme="dark"] .ke-btn{border-color:#334155}
html[data-theme="dark"] .kc-bar{background:#263349}
html[data-theme="dark"] .kc-bar i{background:rgba(59,130,246,0.30)}
html[data-theme="dark"] .kc-bar.a i{background:rgba(245,158,11,0.30)}
html[data-theme="dark"] .kc-bar.z i{background:#334155}
html[data-theme="dark"] .kc-r.now{background:#1c2840;border-color:rgba(59,130,246,.38)}
html[data-theme="dark"] .kc-r.now .kc-r-h span,
html[data-theme="dark"] .kc-r.now .kc-r-h b,
html[data-theme="dark"] .kc-r.now .kc-r-s svg{color:#93c5fd}
html[data-theme="dark"] .kc-r.ok{background:#172236;border-color:rgba(34,197,94,.38);color:#4ade80}
html[data-theme="dark"] .kc-r.none{border-color:#334155}
html[data-theme="dark"] .kc-pill{background:#1c2840}
html[data-theme="dark"] .kc-add{border:1px dashed rgba(239,68,68,.38)}
html[data-theme="dark"] .mw-pills button em{background:#1c2840}
html[data-theme="dark"] .mw-pills button:hover{border-color:#334155}
html[data-theme="dark"] .mw-pills button.on{border-color:rgba(239,68,68,.38)}
html[data-theme="dark"] .mw-pills button.on em{background:#1e293b}
html[data-theme="dark"] .mw-row:hover{background:#172236}
html[data-theme="dark"] .mw-k.self{background:#1c2840;color:#93c5fd}
html[data-theme="dark"] .mw-k.given{background:#1c2840;color:#93c5fd}
html[data-theme="dark"] .mw-cd.late{color:#fca5a5}
html[data-theme="dark"] .mw-cd.soon{color:#fdba74}
html[data-theme="dark"] .mw-cd.ok{color:#4ade80}
html[data-theme="dark"] .mw-pr.high{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .mw-pr.norm{background:#1c2840;color:#93c5fd}
html[data-theme="dark"] .mw-st.late{background:#1c2840;color:#fca5a5}
html[data-theme="dark"] .mw-st.doing{background:#172236;color:#fdba74}
html[data-theme="dark"] .mw-st.todo{background:#1c2840;color:#93c5fd}
html[data-theme="dark"] .mw-st.done{background:#172236;color:#4ade80}
html[data-theme="dark"] .mw-ib:hover{background:#1c2840}
html[data-theme="dark"] .mw-ib.ok:hover,
html[data-theme="dark"] .mw-ib.ok.on{background:#172236;color:#4ade80}
html[data-theme="dark"] .mw-card{background:#1e293b}
html[data-theme="dark"] .mw-x:hover{background:#1c2840}
html[data-theme="dark"] .mw-f input[type="text"],
html[data-theme="dark"] .mw-f input[type="date"],
html[data-theme="dark"] .mw-f select{background:#172236}
html[data-theme="dark"] .mw-f input:focus,
html[data-theme="dark"] .mw-f select:focus{background:#1e293b}
html[data-theme="dark"] .mw-seg span{background:#1e293b}
html[data-theme="dark"] .mw-card-f{background:#172236}
html[data-theme="dark"] .mw-btn{border:1px solid #334155;background:#1e293b}
html[data-theme="dark"] .mw-btn:hover{background:#172236}
html[data-theme="dark"] .cl-periods{background:#263349}
html[data-theme="dark"] #kmsApp .cl-periods .kst-period-btn.active{background:#1e293b !important}
html[data-theme="dark"] .cl-tools select{background:#1e293b}
html[data-theme="dark"] .cl-prog.ok .cl-prog-t em{color:#4ade80}
html[data-theme="dark"] .cl-bar{background:#263349}
html[data-theme="dark"] .cl-prog.warn .cl-bar i{background:rgba(245,158,11,0.30)}
html[data-theme="dark"] .cl-row.is-fail{background:#1c2840}
html[data-theme="dark"] .cl-box{border:2px solid #334155;background:#1e293b}
html[data-theme="dark"] .cl-res{background:#1c2840}
html[data-theme="dark"] .cl-note input{border:1px solid rgba(239,68,68,.38);background:#1e293b}
/* ---- bb-workflow.css ---- */
/* ---- pw-modal.css ---- */
html[data-theme="dark"] .pw-hic{background:#1c2840;border:1px solid rgba(239,68,68,.38);color:#fca5a5}
html[data-theme="dark"] .pw-meter[data-level="1"] .pw-meter-t{color:#fca5a5}
html[data-theme="dark"] .pw-meter[data-level="2"] i:nth-child(-n+2){background:rgba(245,158,11,0.30)}
html[data-theme="dark"] .pw-meter[data-level="2"] .pw-meter-t{color:#fdba74}
html[data-theme="dark"] .pw-meter[data-level="3"] i:nth-child(-n+3){background:rgba(34,197,94,0.30)}
html[data-theme="dark"] .pw-meter[data-level="3"] .pw-meter-t{color:#4ade80}
html[data-theme="dark"] .pw-meter[data-level="4"] .pw-meter-t{color:#4ade80}
html[data-theme="dark"] .pw-match.ok{color:#4ade80}
html[data-theme="dark"] .pw-match.bad{color:#fca5a5}
html[data-theme="dark"] .pw-card .login-gate-error{background:#1c2840;color:#fca5a5;border:1px solid rgba(239,68,68,.38)}
html[data-theme="dark"] .pw-card .login-gate-success{background:#172236;color:#4ade80;border:1px solid rgba(34,197,94,.38)}
/* ---- inline style="" do JS tạo ---- */
html[data-theme="dark"] [style*="color:#15803d" i]{color:#4ade80 !important}
html[data-theme="dark"] [style*="color: #15803d" i]{color:#4ade80 !important}
html[data-theme="dark"] [style*="color:#DC2626" i]{color:#fca5a5 !important}
html[data-theme="dark"] [style*="color: #DC2626" i]{color:#fca5a5 !important}
html[data-theme="dark"] [style*="color:#b45309" i]{color:#fdba74 !important}
html[data-theme="dark"] [style*="color: #b45309" i]{color:#fdba74 !important}
html[data-theme="dark"] [style*="color:#b91c1c" i]{color:#fca5a5 !important}
html[data-theme="dark"] [style*="color: #b91c1c" i]{color:#fca5a5 !important}
