/* 彻底消除 TailwindCSS 对百度/腾讯地图 Canvas 及瓦片图片的样式污染 */
#customer-full-map-container canvas,
#location-picker-map-container canvas,
#map-container canvas,
.bmapgl-container canvas,
.BMap_canvas,
.BMap_mask,
.bmapgl-container {
    max-width: none !important;
    vertical-align: baseline !important;
}
.bmapgl-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background-color: #f8fafc !important;
}
.hidden { display: none !important; }
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spinSlow 12s linear infinite;
}
body {
    font-family: '"Plus Jakarta Sans"', '"Noto Sans SC"', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f1f5f9;
    margin: 0;
    padding: 0;
}
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #080c14 0%, #0f172a 50%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#login-screen.hidden {
    display: none !important;
}
.tab-btn {
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}
.tab-btn:hover:not(.active-tab) {
    background-color: #e2e8f0;
    color: #0f172a;
}
.tab-btn.active-tab {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    border-color: #bae6fd !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}
#license-banner .tab-btn.active-tab {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
.col-divider {
    border-right: 2px solid #cbd5e1 !important;
}
#reconciliation-table-footer .col-divider {
    border-right: 2px solid #a5b4fc !important;
}

/* ================= 黑白日夜主题切换 (Linear / GitHub Dark 四层视觉景深) ================= */
.nt-top-pill-active {
    background-color: #38bdf8 !important;
    color: #0f172a !important;
}
body.nt-sys-dark {
    background-color: #0b0f17 !important;
    color: #e2e8f0 !important;
    color-scheme: dark;
}
/* 自定义高对比度复选框，彻底消除暗黑模式下泛白与刺眼白底 */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid #94a3b8;
    background-color: #ffffff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    vertical-align: middle;
    flex-shrink: 0;
}
input[type="checkbox"]::before {
    content: "";
    width: 9px;
    height: 9px;
    transform: scale(0);
    transition: 0.12s transform ease-in-out;
    background-color: #ffffff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}
input[type="checkbox"]:checked::before {
    transform: scale(1);
}
input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35) !important;
}
body.nt-sys-dark input[type="checkbox"] {
    background-color: #0d1322 !important;
    border-color: #475569 !important;
}
body.nt-sys-dark input[type="checkbox"]:hover {
    border-color: #818cf8 !important;
}
body.nt-sys-dark input[type="checkbox"]:checked {
    background-color: #6366f1 !important;
    border-color: #818cf8 !important;
}
body.nt-sys-dark label:has(input[type="checkbox"]:checked) {
    background-color: rgba(99, 102, 241, 0.18) !important;
    border-color: rgba(129, 140, 248, 0.55) !important;
    color: #e0e7ff !important;
}
body:not(.nt-sys-dark) #login-screen {
    background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 50%, #e0e7ff 100%) !important;
}
#login-screen .nt-login-card {
    background-color: #ffffff !important;
    border-color: rgba(226, 232, 240, 0.85) !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15) !important;
}
body.nt-sys-dark #login-screen .nt-login-card {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}
body.nt-sys-dark header,
body.nt-sys-dark .bg-white:not(.nt-login-card),
body.nt-sys-dark .bg-white\/95:not(.nt-login-card),
body.nt-sys-dark .bg-white\/90:not(.nt-login-card) {
    background-color: #131b2e !important;
    background-image: none !important;
    border-color: #23304c !important;
    color: #f8fafc !important;
}
body.nt-sys-dark footer {
    background-color: transparent !important;
    border-color: #1e293b !important;
    color: #64748b !important;
}
body.nt-sys-dark [class*="bg-slate-50"] {
    background-color: #172136 !important;
    border-color: #23304c !important;
    color: #cbd5e1 !important;
}
body.nt-sys-dark [class*="bg-slate-100"] {
    background-color: #0d1322 !important;
    border-color: #1e2b45 !important;
    color: #cbd5e1 !important;
}
body.nt-sys-dark [class*="bg-slate-200"] {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.nt-sys-dark header .tab-btn:not(.active-tab) {
    color: #cbd5e1 !important;
}
body.nt-sys-dark header .tab-btn:hover:not(.active-tab) {
    background-color: #1e293b !important;
    color: #ffffff !important;
}
body.nt-sys-dark header .tab-btn.active-tab {
    background-color: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}
body.nt-sys-dark thead tr,
body.nt-sys-dark thead th {
    background-color: #101728 !important;
    color: #94a3b8 !important;
    border-color: #23304c !important;
}
body.nt-sys-dark tbody tr {
    border-color: #1d2840 !important;
}
body.nt-sys-dark tbody tr:hover {
    background-color: rgba(56, 189, 248, 0.06) !important;
}
body.nt-sys-dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
body.nt-sys-dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #1d2840 !important;
}
body.nt-sys-dark .text-slate-900,
body.nt-sys-dark .text-slate-800 {
    color: #f8fafc !important;
}
body.nt-sys-dark .text-slate-700 {
    color: #e2e8f0 !important;
}
body.nt-sys-dark .text-slate-600,
body.nt-sys-dark .text-slate-500 {
    color: #94a3b8 !important;
}
body.nt-sys-dark [class*="border-slate-100"],
body.nt-sys-dark [class*="border-slate-200"],
body.nt-sys-dark [class*="border-slate-300"] {
    border-color: #23304c !important;
}
body.nt-sys-dark input:not([type="checkbox"]):not([type="radio"]),
body.nt-sys-dark input:not([type="checkbox"]):not([type="radio"]):focus,
body.nt-sys-dark select,
body.nt-sys-dark select:focus,
body.nt-sys-dark textarea,
body.nt-sys-dark textarea:focus {
    background-color: #0d1322 !important;
    border-color: #3b4f7a !important;
    color: #f8fafc !important;
    outline: none !important;
}
body.nt-sys-dark select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.nt-sys-dark [class*="bg-emerald-50"],
body.nt-sys-dark [class*="bg-emerald-100"] {
    background-color: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}
body.nt-sys-dark [class*="bg-indigo-50"],
body.nt-sys-dark [class*="bg-indigo-100"] {
    background-color: rgba(99, 102, 241, 0.16) !important;
    border-color: rgba(129, 140, 248, 0.35) !important;
    color: #a5b4fc !important;
}
body.nt-sys-dark .text-indigo-900,
body.nt-sys-dark .text-indigo-800,
body.nt-sys-dark .text-indigo-700 {
    color: #c7d2fe !important;
}
body.nt-sys-dark #matrix-table-footer td {
    background-color: #172554 !important;
    color: #ffffff !important;
    border-top: 4px double #818cf8 !important;
}
body.nt-sys-dark [class*="bg-sky-50"],
body.nt-sys-dark [class*="bg-cyan-50"],
body.nt-sys-dark [class*="bg-blue-50"] {
    background-color: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}
body.nt-sys-dark [class*="bg-amber-50"],
body.nt-sys-dark [class*="bg-amber-100"] {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #fbbf24 !important;
}
body.nt-sys-dark [class*="bg-rose-50"],
body.nt-sys-dark [class*="bg-rose-100"] {
    background-color: rgba(244, 63, 94, 0.15) !important;
    border-color: rgba(251, 113, 133, 0.35) !important;
    color: #fb7185 !important;
}
body.nt-sys-dark #wechat-login-qrcode-box,
body.nt-sys-dark [id*="qrcode"] {
    background-color: #ffffff !important;
}
#wechat-login-qrcode-box canvas,
#wechat-login-qrcode-box img {
    width: 180px !important;
    height: 180px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}
