/*
    Fix 81-1: тёмная тема JD Group.
    Все правила работают только при html[data-theme="dark"] — светлая тема не меняется.
    Тему включает jd-theme.js (кнопка у «Выйти»; по умолчанию — как в системе).
    Основная часть файла сгенерирована автоматически из стилей сайта: светлые фоны → тёмные,
    тёмный текст → светлый, рамки и тени — под тёмный фон. Ручные правки — в начале и в конце файла.
*/

/* ----- Кнопка темы (видна в обеих темах) ----- */
.jd-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 0;
    margin: 8px 0 0;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
}
.jd-theme-toggle:hover { background: #f3f4f6; color: #111827; }
/* В боковом меню элементы расставлены через order — кнопка темы идёт сразу после «Выйти». */
html body aside.sidebar > .jd-theme-toggle,
html body .sidebar > .jd-theme-toggle { order: 4 !important; flex: 0 0 auto !important; }
.jd-theme-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.jd-theme-toggle svg { flex: 0 0 auto; }
html[data-theme="dark"] .jd-theme-toggle { border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .jd-theme-toggle:hover { background: #1e293b; color: #f1f5f9; }

/* ----- База ----- */
html[data-theme="dark"] { color-scheme: dark; background: #0b1120; }
html[data-theme="dark"] body { background: #0b1120; color: #e5e7eb; }
html[data-theme="dark"] a { color: #93c5fd; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #64748b; }
html[data-theme="dark"] option { background: #111827; color: #e5e7eb; }
html[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.92); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }


/* ===== Автоматически пересчитанные цвета всех стилей сайта ===== */
/* --- auth.css --- */
html[data-theme="dark"] body { background: radial-gradient(circle at top left, rgba(0, 122, 255, 0.18), transparent 35%),
        linear-gradient(135deg, #181e2c, #151b27); color: #d1d9eb; }
html[data-theme="dark"] .auth-card { background: rgba(26, 33, 48, 0.86); border: 1px solid rgba(42, 51, 70, 0.7); border-radius: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.216); }
html[data-theme="dark"] .brand-logo { border-radius: 18px; background: linear-gradient(135deg, #374666, #415278); color: white; }
html[data-theme="dark"] .brand p { color: #a5aab4; }
html[data-theme="dark"] .auth-form label { color: #bdc5d2; }
html[data-theme="dark"] .auth-form input { border: 1px solid #323c53; border-radius: 16px; outline: none; background: #1a2130; }
html[data-theme="dark"] .auth-form input:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .auth-form button { border: none; border-radius: 16px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .auth-form button:hover { background: #303d5a; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.396); }
html[data-theme="dark"] .error-message { color: #e66666; }
html[data-theme="dark"] .dashboard-page { background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.14), transparent 32%),
        linear-gradient(135deg, #181e2c, #151b27); }
html[data-theme="dark"] .sidebar-logo p { color: #a5aab4; }
html[data-theme="dark"] .logout-btn { border: none; border-radius: 16px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .logout-btn:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.396); }
html[data-theme="dark"] .dashboard-header p { color: #a5aab4; }
html[data-theme="dark"] .dashboard-card { background: rgba(26, 33, 48, 0.88); border: 1px solid rgba(48, 58, 80, 0.9); border-radius: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .dashboard-card:hover { box-shadow: 0 28px 80px rgba(0, 0, 0, 0.216); }
html[data-theme="dark"] .card-label { color: #61a4ed; }
html[data-theme="dark"] .dashboard-card p { color: #a5aab4; }
html[data-theme="dark"] .status-badge { border-radius: 999px; background: rgba(0, 122, 255, 0.1); color: #61a4ed !important; }
html[data-theme="dark"] .telegram-btn { border-radius: 16px; background: #374666; color: white; }
html[data-theme="dark"] .telegram-btn:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.396); }
html[data-theme="dark"] .manager-item { border-radius: 20px; background: #181e2c; color: #d1d9eb; }
html[data-theme="dark"] .manager-item:hover { background: #151b27; }
html[data-theme="dark"] .manager-item span { color: #61a4ed; }
html[data-theme="dark"] .inventory-table { border-collapse: collapse; }
html[data-theme="dark"] .inventory-table th { color: #a5aab4; border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .inventory-table td { color: #d1d9eb; border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .inventory-table tr:hover { background: #181e2c; }
html[data-theme="dark"] .stock-good { border-radius: 999px; background: rgba(34, 197, 94, 0.12); color: #86efad; }
html[data-theme="dark"] .stock-low { border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #efb470; }
html[data-theme="dark"] .stock-critical { border-radius: 999px; background: rgba(220, 38, 38, 0.12); color: #e66666; }
html[data-theme="dark"] .margin-text { color: #61a4ed; }
html[data-theme="dark"] .sale-form label { color: #bdc5d2; }
html[data-theme="dark"] .sale-form input,
html[data-theme="dark"] .sale-form select { border: 1px solid #323c53; border-radius: 16px; outline: none; background: #1a2130; }
html[data-theme="dark"] .sale-form input:focus,
html[data-theme="dark"] .sale-form select:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .form-main-btn { border: none; }
html[data-theme="dark"] .secondary-btn { border-radius: 16px; background: #151b27; color: #d1d9eb; }
html[data-theme="dark"] .secondary-btn:hover { background: #121722; }
html[data-theme="dark"] .order-position { border-radius: 22px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .delete-position-btn { border: none; border-radius: 16px; background: rgba(220, 38, 38, 0.1); color: #e66666; }
html[data-theme="dark"] .delete-position-btn:hover { background: rgba(220, 38, 38, 0.16); }
html[data-theme="dark"] .edit-btn,
html[data-theme="dark"] .delete-btn { border-radius: 12px; border: none; }
html[data-theme="dark"] .edit-btn { background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .edit-btn:hover { background: rgba(0, 122, 255, 0.16); }
html[data-theme="dark"] .delete-btn { background: rgba(220, 38, 38, 0.1); color: #e66666; }
html[data-theme="dark"] .delete-btn:hover { background: rgba(220, 38, 38, 0.16); }
html[data-theme="dark"] .order-total { border-radius: 16px; background: #181e2c; color: #a5aab4; }
html[data-theme="dark"] .order-total strong { color: #d1d9eb; }
html[data-theme="dark"] .empty-order-text { border-radius: 18px; background: #181e2c; color: #a5aab4; }
html[data-theme="dark"] .selected-product-item { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .selected-product-info h3 { color: #d1d9eb; }
html[data-theme="dark"] .selected-product-info p { color: #a5aab4; }
html[data-theme="dark"] .selected-product-controls input { border: 1px solid #323c53; border-radius: 12px; }
html[data-theme="dark"] .selected-product-controls strong { color: #d1d9eb; }
html[data-theme="dark"] .price-search { border: 1px solid #323c53; border-radius: 16px; outline: none; background: #1a2130; }
html[data-theme="dark"] .price-search:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .price-item { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .price-item:hover { background: #151b27; }
html[data-theme="dark"] .price-item-info span { color: #61a4ed; }
html[data-theme="dark"] .price-item-info h3 { color: #d1d9eb; }
html[data-theme="dark"] .price-item-info p { color: #d1d9eb; }
html[data-theme="dark"] .price-quantity { border: 1px solid #323c53; border-radius: 12px; }
html[data-theme="dark"] .add-product-btn { border: none; border-radius: 12px; background: #374666; color: white; }
html[data-theme="dark"] .add-product-btn:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .status-select { border-radius: 12px; border: 1px solid #323c53; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .status-select:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .category-card h3 { color: #d1d9eb; }
html[data-theme="dark"] .category-card p { color: #a5aab4; }
html[data-theme="dark"] .price-header p { color: #a5aab4; }
html[data-theme="dark"] .category-back-btn { border: none; }
html[data-theme="dark"] .category-card { border: 1px solid #303a50; border-radius: 22px; background: #181e2c; }
html[data-theme="dark"] .category-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.144); background: #1a2130; }
html[data-theme="dark"] .category-image-wrap { background: #151b27; }
html[data-theme="dark"] .category-card-content h3 { color: #d1d9eb; }
html[data-theme="dark"] .category-card-content p { color: #a5aab4; }
html[data-theme="dark"] .admin-order-row:hover { background: #181e2c; }
html[data-theme="dark"] .order-modal-overlay { background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .order-modal { background: rgba(26, 33, 48, 0.96); border: 1px solid rgba(48, 58, 80, 0.9); border-radius: 30px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
html[data-theme="dark"] .order-modal-header h2 { color: #d1d9eb; }
html[data-theme="dark"] .modal-close-btn { color: #ffffff; }
html[data-theme="dark"] .modal-close-btn:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.396); }
html[data-theme="dark"] .order-modal-info { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .order-modal-info span { color: #a5aab4; }
html[data-theme="dark"] .order-modal-info strong { color: #d1d9eb; }
html[data-theme="dark"] .modal-products-block h3 { color: #d1d9eb; }
html[data-theme="dark"] .modal-product-item { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .modal-product-item h4 { color: #d1d9eb; }
html[data-theme="dark"] .modal-product-item p { color: #a5aab4; }
html[data-theme="dark"] .modal-product-item strong { color: #d1d9eb; }
html[data-theme="dark"] .chat-messages { border-radius: 22px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .chat-message-bubble { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .chat-message.is-own .chat-message-bubble { background: #374666; color: #ffffff; }
html[data-theme="dark"] .chat-message-meta { color: #a5aab4; }
html[data-theme="dark"] .chat-message.is-own .chat-message-meta { color: rgba(255, 255, 255, 0.7); }
html[data-theme="dark"] .chat-form input { border: 1px solid #323c53; border-radius: 16px; outline: none; }
html[data-theme="dark"] .chat-form input:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .chat-form button { border: none; }
html[data-theme="dark"] .chat-user-item { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .chat-user-item:hover,
html[data-theme="dark"] .chat-user-item.is-active { background: #374666; color: #ffffff; }
html[data-theme="dark"] .chat-user-item span { color: #a5aab4; }
html[data-theme="dark"] .chat-user-item:hover span,
html[data-theme="dark"] .chat-user-item.is-active span { color: rgba(255, 255, 255, 0.75); }
html[data-theme="dark"] .admin-product-controls label { color: #bdc5d2; }
html[data-theme="dark"] .admin-product-controls input,
html[data-theme="dark"] .admin-product-controls select { border: 1px solid #323c53; border-radius: 14px; outline: none; background: #1a2130; }
html[data-theme="dark"] .admin-product-controls button { border: none; }
html[data-theme="dark"] .client-order-summary-card { border-radius: 22px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .client-order-summary-card:hover { background: #151b27; }
html[data-theme="dark"] .client-open-order-btn { border: none; }
html[data-theme="dark"] .status-approved { background: rgba(34, 197, 94, 0.12); color: #86efad; }
html[data-theme="dark"] .status-declined { background: rgba(220, 38, 38, 0.12); color: #e66666; }
html[data-theme="dark"] .status-changed { background: rgba(245, 158, 11, 0.14); color: #efb470; }
html[data-theme="dark"] .status-pending { background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .warning-text { color: #efb470 !important; }
html[data-theme="dark"] .client-answer-badge { border-radius: 999px; }
html[data-theme="dark"] .client-answer-new { background: rgba(245, 158, 11, 0.16); color: #efb470; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08); }
html[data-theme="dark"] .client-answer-approved { background: rgba(34, 197, 94, 0.12); color: #86efad; }
html[data-theme="dark"] .client-answer-declined { background: rgba(220, 38, 38, 0.12); color: #e66666; }
html[data-theme="dark"] .client-answer-waiting { background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .client-answer-default { background: #151b27; color: #a5aab4; }
html[data-theme="dark"] .client-product-status { border-radius: 999px; }
html[data-theme="dark"] .client-cancel-order-btn { border-radius: 16px; }
html[data-theme="dark"] .price-compare-warning { color: #efb470 !important; }
html[data-theme="dark"] .compact-table { border-collapse: collapse; }
html[data-theme="dark"] .compact-table th { color: #a5aab4; }
html[data-theme="dark"] .compact-table td { color: #d1d9eb; }
html[data-theme="dark"] .compact-table .edit-btn,
html[data-theme="dark"] .compact-table .delete-btn { border-radius: 13px; }
html[data-theme="dark"] .actual-price-cell span { color: #a5aab4; }
html[data-theme="dark"] .price-compare-good { color: #86efad !important; }
html[data-theme="dark"] .price-compare-danger { color: #e66666 !important; }
html[data-theme="dark"] .price-compare-neutral { color: #d1d9eb !important; }
html[data-theme="dark"] .orders-table { border-collapse: collapse; }
html[data-theme="dark"] .orders-table th { color: #a5aab4; }
html[data-theme="dark"] .orders-table td { color: #d1d9eb; }
html[data-theme="dark"] .orders-table .edit-btn,
html[data-theme="dark"] .orders-table .delete-btn { border-radius: 13px; }
html[data-theme="dark"] .orders-table .edit-btn,
html[data-theme="dark"] .orders-table .delete-btn,
html[data-theme="dark"] .sales-table .edit-btn,
html[data-theme="dark"] .sales-table .delete-btn { border-radius: 14px; }
html[data-theme="dark"] .orders-summary-table th { color: #a5aab4; }
html[data-theme="dark"] .orders-summary-table td { color: #d1d9eb; }
html[data-theme="dark"] .order-summary-row:hover { background: #181e2c; }
html[data-theme="dark"] .order-position-card p { color: #a5aab4; }
html[data-theme="dark"] .order-position-card p strong { color: #d1d9eb; }
html[data-theme="dark"] .order-position-totals { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .order-position-totals span { color: #a5aab4; }
html[data-theme="dark"] .order-position-totals strong { color: #d1d9eb; }
html[data-theme="dark"] .order-modal-positions-table th { color: #a5aab4; }
html[data-theme="dark"] .order-modal-positions-table td { color: #d1d9eb; }
html[data-theme="dark"] .auto-restock-description { color: #a5aab4; }
html[data-theme="dark"] .auto-order-profile label { color: #bdc5d2; }
html[data-theme="dark"] .auto-order-profile input { border: 1px solid #313c52; border-radius: 16px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .auto-restock-item p { color: #a5aab4; }
html[data-theme="dark"] .auto-restock-ordered-text { color: #efb470 !important; }
html[data-theme="dark"] .auto-restock-quantity-badge { border-radius: 999px; background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .auto-restock-price { color: #a5aab4; }
html[data-theme="dark"] .auto-restock-reset-btn { border-radius: 14px; }
html[data-theme="dark"] .inventory-table thead th { background: #1a2130; }
html[data-theme="dark"] .inventory-table-wrapper::-webkit-scrollbar-track,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] .inventory-table-wrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] .inventory-table-wrapper::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .inventory-table tbody tr { background: #1a2130; }
html[data-theme="dark"] .stock-table thead th { background: #1a2130; }
html[data-theme="dark"] .inventory-card:has(.stock-table) .inventory-table-wrapper::-webkit-scrollbar-track,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] .inventory-card:has(.stock-table) .inventory-table-wrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] .inventory-card:has(.stock-table) .inventory-table-wrapper::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .stock-inventory-card .stock-table thead th { background: #1a2130; }
html[data-theme="dark"] .stock-inventory-card .inventory-table-wrapper::-webkit-scrollbar-track,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] .stock-inventory-card .inventory-table-wrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] .stock-inventory-card .inventory-table-wrapper::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #autoRestockCartItems::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .auto-restock-profile-panel { border-radius: 24px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .auto-restock-profile-panel h3 { color: #d1d9eb; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile label { color: #bdc5d2; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile input { border: 1px solid #313c52; border-radius: 15px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .auto-restock-cart-panel { border-radius: 24px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .auto-restock-scroll-list .auto-restock-item { border-radius: 18px; }
html[data-theme="dark"] #autoRestockCartItems.auto-restock-scroll-list::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #autoRestockCartItems.auto-restock-scroll-list::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] #autoRestockCartItems.auto-restock-scroll-list::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .auto-restock-scroll-list .auto-restock-price { color: #a5aab4; }
html[data-theme="dark"] .admin-users-table tbody tr:hover { background: #181e2c; }
html[data-theme="dark"] .admin-tab-btn { border: none; border-radius: 16px; background: #192843; color: #61a4ed; }
html[data-theme="dark"] .admin-tab-btn.is-active { background: #354463; color: #ffffff; }
html[data-theme="dark"] .restock-notification-card { border-radius: 24px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .restock-notification-card.restock-status-new { border-color: rgba(0, 122, 255, 0.35); background: #191f2e; }
html[data-theme="dark"] .restock-notification-topline span:last-child { color: #a5aab4; }
html[data-theme="dark"] .restock-notification-card h3 { color: #d1d9eb; }
html[data-theme="dark"] .restock-notification-card p { color: #a5aab4; }
html[data-theme="dark"] .restock-notification-card p strong { color: #d1d9eb; }
html[data-theme="dark"] .restock-notification-price { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .restock-notification-price span { color: #a5aab4; }
html[data-theme="dark"] .restock-notification-price strong { color: #d1d9eb; }
html[data-theme="dark"] .restock-notification-grid div { border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .restock-notification-grid span { color: #a5aab4; }
html[data-theme="dark"] .restock-notification-grid strong { color: #d1d9eb; }
html[data-theme="dark"] .restock-notification-actions .write-chat-btn { background: #354463; color: #ffffff; border-color: #7585a3; }
html[data-theme="dark"] .restock-notification-actions .write-chat-btn:hover { background: #374666; }
html[data-theme="dark"] .chat-unread-badge { border-radius: 999px; background: #732626; color: #ffffff; box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28); }
html[data-theme="dark"] .chat-user-unread-badge { border-radius: 50%; background: #6d2424; color: #ffffff; box-shadow: 0 8px 18px rgba(255, 75, 75, 0.28); }
html[data-theme="dark"] .chat-user-item.is-active .chat-user-unread-badge { background: #6d2424; color: #ffffff; }
html[data-theme="dark"] .chat-user-item .chat-user-unread-badge,
html[data-theme="dark"] .chat-user-item.is-active .chat-user-unread-badge,
html[data-theme="dark"] .chat-user-unread-badge { color: #ffffff !important; background: #6d2424 !important; }
html[data-theme="dark"] .chat-user-item .chat-user-unread-badge { border-radius: 50%; box-shadow: 0 8px 18px rgba(255, 75, 75, 0.28); }
html[data-theme="dark"] .my-orders-unread-badge { border-radius: 50%; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 10px 24px rgba(255, 77, 79, 0.22); }
html[data-theme="dark"] .sidebar-nav a .chat-unread-badge,
html[data-theme="dark"] .sidebar-nav a .my-orders-unread-badge { border-radius: 50%; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 10px 24px rgba(255, 77, 79, 0.22); }
html[data-theme="dark"] .order-admin-change-badge { border-radius: 50%; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 10px 24px rgba(255, 77, 79, 0.22); }
html[data-theme="dark"] .edit-btn.inventory-action-btn { background: #1a2d45; color: #61a4ed; }
html[data-theme="dark"] .delete-btn.inventory-action-btn { background: #451a1a; color: #e66666; }
html[data-theme="dark"] .inventory-row-btn { border: none; border-radius: 12px; }
html[data-theme="dark"] .inventory-edit-btn { background: #1a2c44; color: #61a4ed; }
html[data-theme="dark"] .inventory-delete-btn { background: #451a1a; color: #e66666; }
html[data-theme="dark"] .orders-row-btn { border: none; border-radius: 12px; }
html[data-theme="dark"] .orders-edit-btn { background: #1a2c44 !important; color: #61a4ed !important; }
html[data-theme="dark"] .orders-delete-btn { background: #451a1a !important; color: #e66666 !important; }
html[data-theme="dark"] .accounting-card { border-radius: 34px; background: #1a2130; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .accounting-header h1 { color: #d1d9eb; }
html[data-theme="dark"] .accounting-header p { color: #a5aab4; }
html[data-theme="dark"] .accounting-dark-btn { border: none; border-radius: 18px; background: #354463; color: #ffffff !important; }
html[data-theme="dark"] .accounting-client-select label,
html[data-theme="dark"] .accounting-form label { color: #bdc5d2; }
html[data-theme="dark"] .accounting-admin-panel select,
html[data-theme="dark"] .accounting-admin-panel input { border: 1px solid #354058; border-radius: 14px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .finance-summary-card { border: 1px solid #303a50; border-radius: 24px; background: #181e2c; }
html[data-theme="dark"] .finance-summary-card span { color: #a5aab4; }
html[data-theme="dark"] .finance-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .accounting-section-header h2 { color: #d1d9eb; }
html[data-theme="dark"] .accounting-table-wrapper { border: 1px solid #303a50; border-radius: 24px; background: #1a2130; }
html[data-theme="dark"] .accounting-table { border-collapse: collapse; }
html[data-theme="dark"] .accounting-table thead { background: #181e2c; }
html[data-theme="dark"] .accounting-table th { color: #a5aab4; border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .accounting-table td { color: #d1d9eb; border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .accounting-table tbody tr:last-child td { border-bottom: none; }
html[data-theme="dark"] .finance-operation-order { color: #ced7ed !important; }
html[data-theme="dark"] .finance-operation-payment { color: #86efad !important; }
html[data-theme="dark"] .finance-operation-withdrawal { color: #e66666 !important; }
html[data-theme="dark"] .sidebar { background: #181e2c; border-right: 1px solid #2c4158; }
html[data-theme="dark"] .sidebar-nav a { color: #b4bcc6; border-radius: 12px; }
html[data-theme="dark"] .sidebar-nav a:hover { background: #151b27; color: #d1d9eb; }
html[data-theme="dark"] .sidebar-nav a.active { color: #d1d9eb; }
html[data-theme="dark"] .accounting-page { background: #151b27; }
@media (max-width: 760px) {
    html[data-theme="dark"] .accounting-card { border-radius: 26px; }
}
html[data-theme="dark"] .accounting-admin-panel { border-radius: 26px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .accounting-admin-panel label { color: #bdc5d2 !important; }
html[data-theme="dark"] .accounting-admin-panel input,
html[data-theme="dark"] .accounting-admin-panel select { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; }
html[data-theme="dark"] .accounting-admin-panel .accounting-form .accounting-dark-btn { border-radius: 18px !important; }
html[data-theme="dark"] .accounting-admin-panel select,
html[data-theme="dark"] .accounting-client-select select,
html[data-theme="dark"] #accountingClientSelect,
html[data-theme="dark"] #transactionType,
html[data-theme="dark"] #transactionMethod { background-color: #1a2130 !important; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-size: 14px 14px !important; background-position: right 10px center !important; }
html[data-theme="dark"] .accounting-edit-form .delete-btn { border: none; }
html[data-theme="dark"] .accounting-edit-modal select,
html[data-theme="dark"] #editTransactionType,
html[data-theme="dark"] #editTransactionMethod { background-color: #1a2130 !important; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-size: 14px 14px !important; background-position: right 10px center !important; }
html[data-theme="dark"] .payment-method-item { border-radius: 18px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .payment-method-item strong { color: #d1d9eb; }
html[data-theme="dark"] #orderPaymentMethod { background: #1a2130; }
html[data-theme="dark"] #orderPaymentMethod { border: 1px solid #323c53; border-radius: 16px; background-color: #1a2130; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px 14px; background-position: right 10px center; color: #d1d9eb; outline: none; }
html[data-theme="dark"] #orderPaymentMethod:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .card-payment-settings { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .card-payment-summary { color: #a5aab4; }
html[data-theme="dark"] .card-payment-total-box div { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .card-payment-total-box span { color: #a5aab4; }
html[data-theme="dark"] .card-payment-total-box strong { color: #d1d9eb; }
html[data-theme="dark"] .card-payment-method-item { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .card-payment-method-item strong { color: #d1d9eb; }
html[data-theme="dark"] .card-payment-method-item p { color: #a5aab4; }
html[data-theme="dark"] .card-payment-amount-input { border: 1px solid #323c53; border-radius: 15px; background: #1a2130; outline: none; }
html[data-theme="dark"] .card-payment-amount-input:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] #openCardPaymentModalBtn { border-radius: 18px !important; }
html[data-theme="dark"] .modal-payment-method-btn { border: none; background: transparent; color: #d1d9eb; }
html[data-theme="dark"] .modal-payment-method-btn.is-clickable { border-radius: 999px; background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .modal-payment-method-btn.is-clickable:hover { background: rgba(0, 122, 255, 0.16); }
html[data-theme="dark"] .order-payment-details-summary { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .order-payment-details-summary span { color: #a5aab4; }
html[data-theme="dark"] .order-payment-details-summary strong { color: #d1d9eb; }
html[data-theme="dark"] .order-payment-detail-item { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .order-payment-detail-item span { color: #a5aab4; }
html[data-theme="dark"] .order-payment-detail-item strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-user-payment-methods { border-radius: 24px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-user-card-item { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-user-card-item span { color: #a5aab4; }
html[data-theme="dark"] .admin-user-card-item strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-card-form input { border: 1px solid #323c53; border-radius: 16px; }
html[data-theme="dark"] .admin-payment-methods-short-info { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-payment-methods-short-info span { color: #a5aab4; }
html[data-theme="dark"] .admin-cards-list-modal .admin-user-card-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-cards-list-modal .admin-user-card-item span { color: #a5aab4; }
html[data-theme="dark"] .admin-cards-list-modal .admin-user-card-item strong { color: #d1d9eb; }
html[data-theme="dark"] .imei-order-card { border-radius: 24px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .imei-product-row span { color: #a5aab4; }
html[data-theme="dark"] .imei-input-row input,
html[data-theme="dark"] .imei-input-row select { border: 1px solid #323c53; border-radius: 16px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .imei-input-row input:focus,
html[data-theme="dark"] .imei-input-row select:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .imei-order-card-button { border-radius: 22px; border: 1px solid #303a50; background: #181e2c; }
html[data-theme="dark"] .imei-order-card-button:hover { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08); }
html[data-theme="dark"] .imei-order-card-button.is-complete { background: #1a4430; border-color: #2d5e3e; }
html[data-theme="dark"] .imei-order-main h3 { color: #d1d9eb; }
html[data-theme="dark"] .imei-order-main p { color: #a5aab4; }
html[data-theme="dark"] .imei-order-short-info div { border-radius: 16px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .imei-order-short-info span,
html[data-theme="dark"] .order-products-modal-info span,
html[data-theme="dark"] .imei-product-row span { color: #a5aab4; }
html[data-theme="dark"] .imei-order-short-info strong,
html[data-theme="dark"] .order-products-modal-info strong { color: #d1d9eb; }
html[data-theme="dark"] .order-products-modal-info div { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .imei-product-row { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .imei-product-row:hover { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08); }
html[data-theme="dark"] .imei-product-row.is-complete { background: #1a4430; border-color: #2d5e3e; }
html[data-theme="dark"] .imei-product-row strong { color: #d1d9eb; }
html[data-theme="dark"] .imei-help-box { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .imei-help-box strong { color: #d1d9eb; }
html[data-theme="dark"] .imei-help-box span { color: #a5aab4; }
html[data-theme="dark"] .imei-input-row span { color: #a5aab4; }
html[data-theme="dark"] .imei-input-row input { border: 1px solid #323c53; border-radius: 16px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .imei-input-row input:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .shipping-order-card p { color: #bebebe; }
html[data-theme="dark"] .modal-overlay { background: rgba(48, 61, 90, 0.5); }
html[data-theme="dark"] .modal { background: #1a2130; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .modal-product-item { border-bottom: 1px solid #2f384e; }
html[data-theme="dark"] .modal-close-btn { background: #151a27; border: none; border-radius: 6px; }
html[data-theme="dark"] .modal-close-btn:hover { background: #0e121a; }
html[data-theme="dark"] .modal-close-btn,
html[data-theme="dark"] .order-modal-header .modal-close-btn { border: none !important; border-radius: 14px !important; background: #374666 !important; color: #ffffff !important; box-shadow: none !important; }
html[data-theme="dark"] .modal-close-btn:hover,
html[data-theme="dark"] .order-modal-header .modal-close-btn:hover { background: #303d5a !important; color: #ffffff !important; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.396) !important; }
html[data-theme="dark"] .modal-close-btn:active,
html[data-theme="dark"] .order-modal-header .modal-close-btn:active { box-shadow: none !important; }
html[data-theme="dark"] #shippingOrdersList { border-radius: 28px !important; }
html[data-theme="dark"] .shipping-order-card { border: 1px solid #303a50 !important; border-radius: 20px !important; background: #1a2130 !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09) !important; }
html[data-theme="dark"] .shipping-order-card:hover { background: #181e2c !important; border-color: #354058 !important; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.144) !important; }
html[data-theme="dark"] .shipping-card-number { color: #61a4ed !important; }
html[data-theme="dark"] .shipping-card-left h3 { color: #d1d9eb !important; }
html[data-theme="dark"] .shipping-card-meta { color: #a5aab4 !important; }
html[data-theme="dark"] .shipping-card-metric span { color: #a5aab4 !important; }
html[data-theme="dark"] .shipping-card-metric strong { color: #d1d9eb !important; }
html[data-theme="dark"] .auto-card-payment-settings { border-radius: 16px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .auto-card-payment-settings .secondary-btn { border: none; }
html[data-theme="dark"] .auto-card-payment-settings .card-payment-summary { color: #a5aab4; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile select,
html[data-theme="dark"] #autoOrderPaymentMethod { border: 1px solid #313c52 !important; border-radius: 15px !important; background-color: #1a2130 !important; color: #d1d9eb !important; outline: none !important; background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%); background-position: calc(100% - 22px) 21px,
        calc(100% - 15px) 21px; background-size: 7px 7px,
        7px 7px; background-repeat: no-repeat; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile select:hover,
html[data-theme="dark"] #autoOrderPaymentMethod:hover { border-color: #344559 !important; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile select:focus,
html[data-theme="dark"] #autoOrderPaymentMethod:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .auto-restock-profile-panel .auto-order-profile select option,
html[data-theme="dark"] #autoOrderPaymentMethod option { color: #d1d9eb; background: #1a2130; }
html[data-theme="dark"] #autoCardPaymentMethodsList .card-payment-method-item { border-radius: 20px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] #autoCardPaymentMethodsList .card-payment-method-item strong { color: #d1d9eb !important; }
html[data-theme="dark"] #autoCardPaymentMethodsList .card-payment-method-item p { color: #a5aab4 !important; }
html[data-theme="dark"] .auto-card-payment-amount-wrap span { color: #a5aab4 !important; }
html[data-theme="dark"] .auto-card-payment-amount-input,
html[data-theme="dark"] #autoCardPaymentMethodsList .auto-card-payment-amount-input { border: 1px solid #323c53 !important; border-radius: 15px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; }
html[data-theme="dark"] .auto-card-payment-amount-input:focus,
html[data-theme="dark"] #autoCardPaymentMethodsList .auto-card-payment-amount-input:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .auto-card-payment-amount-input::placeholder { color: #9ca3af !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-item,
html[data-theme="dark"] #autoRestockCartItems.auto-restock-scroll-list .auto-restock-item { border-radius: 16px !important; background: #181e2c !important; border: 1px solid #303a50 !important; box-shadow: none !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-item .card-label { color: #61a4ed !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-item h3 { color: #d1d9eb !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-item p { color: #a5aab4 !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-item p strong { color: #d1d9eb !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-quantity-badge { border-radius: 999px !important; background: rgba(0, 122, 255, 0.1) !important; color: #61a4ed !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-controls strong { color: #d1d9eb !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-price { color: #a5aab4 !important; }
html[data-theme="dark"] #autoRestockCartItems .auto-restock-reset-btn { border-radius: 12px !important; }
html[data-theme="dark"] .order-info-imei-btn { border: none; border-radius: 12px; background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .order-info-imei-btn:hover:not(:disabled) { background: rgba(0, 122, 255, 0.16); }
html[data-theme="dark"] .order-info-imei-btn:disabled,
html[data-theme="dark"] .order-info-imei-btn.is-disabled { background: #161c29; color: #9ca3af; }
html[data-theme="dark"] .order-imei-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .order-imei-item span { color: #a5aab4; }
html[data-theme="dark"] .order-imei-item p { color: #d1d9eb; }
html[data-theme="dark"] .order-imei-item strong { color: #d1d9eb; }
html[data-theme="dark"] .inventory-clickable-row:hover { background: #181e2c; }
html[data-theme="dark"] #inventoryModalActualPrice.price-compare-good { color: #86efad; }
html[data-theme="dark"] #inventoryModalActualPrice.price-compare-danger { color: #e66666; }
html[data-theme="dark"] #inventoryModalActualPrice.price-compare-neutral { color: #a5aab4; }
html[data-theme="dark"] .inventory-imeis-click-card:hover:not(.is-disabled) { background: #181e2c; border-color: #344559; }
html[data-theme="dark"] .inventory-imeis-open-btn { border: none; border-radius: 12px; background: rgba(0, 122, 255, 0.1); color: #61a4ed; }
html[data-theme="dark"] .inventory-imeis-open-btn:hover:not(:disabled) { background: rgba(0, 122, 255, 0.16); }
html[data-theme="dark"] .inventory-imeis-open-btn:disabled,
html[data-theme="dark"] .inventory-imeis-open-btn.is-disabled { background: #161c29; color: #9ca3af; }
html[data-theme="dark"] .inventory-imei-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .inventory-imei-item span { color: #a5aab4; }
html[data-theme="dark"] .inventory-imei-item strong { color: #d1d9eb; }
html[data-theme="dark"] .sale-imeis-block h3 { color: #d1d9eb; }
html[data-theme="dark"] .sale-imeis-hint { color: #a5aab4; }
html[data-theme="dark"] .sale-imeis-block { border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-theme="dark"] .sale-imei-field span { color: #d1d9eb !important; }
html[data-theme="dark"] .sale-imei-input { outline: none !important; box-shadow: none !important; }
html[data-theme="dark"] .sale-imei-input:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .sale-imei-input::placeholder { color: #a5aab4 !important; }
html[data-theme="dark"] .sale-imei-suggestions { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .sale-imei-suggestion-item { border: none !important; border-radius: 12px !important; background: transparent !important; color: #d1d9eb !important; }
html[data-theme="dark"] .sale-imei-suggestion-item:hover { background: #171d2a !important; }
html[data-theme="dark"] .sale-imei-suggestion-empty { color: #a5aab4 !important; }
html[data-theme="dark"] .sale-items-header h3 { color: #d1d9eb; }
html[data-theme="dark"] .sale-item-card-header h4 { color: #d1d9eb; }
html[data-theme="dark"] .sale-item-remove-btn { border: none; border-radius: 14px; background: #461b1b; color: #e66666; }
html[data-theme="dark"] .sale-item-imeis-block { border-radius: 20px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .sale-item-imeis-top h4 { color: #d1d9eb; }
html[data-theme="dark"] .sale-item-imeis-hint { color: #a5aab4; }
html[data-theme="dark"] .sale-imei-field span { color: #d1d9eb; }
html[data-theme="dark"] .sale-imei-input { outline: none; }
html[data-theme="dark"] .sale-imei-input:focus { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .sale-imei-input.imei-input-error { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
html[data-theme="dark"] .sale-imei-suggestions { border: 1px solid #323c53; border-radius: 16px; background: #1a2130; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .sale-imei-suggestion-item { border: none; border-radius: 12px; background: transparent; color: #d1d9eb; }
html[data-theme="dark"] .sale-imei-suggestion-item:hover { background: #171d2a; }
html[data-theme="dark"] .sale-imei-suggestion-empty { color: #a5aab4; }
html[data-theme="dark"] .sale-total-panel div { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .sale-total-panel span { color: #a5aab4; }
html[data-theme="dark"] .sale-total-panel strong { color: #d1d9eb; }
html[data-theme="dark"] .sale-clickable-row:hover { background: #181e2c; }
html[data-theme="dark"] .sale-imeis-click-card:hover:not(.is-disabled) { background: #181e2c; border-color: #344559; }
html[data-theme="dark"] .sale-imeis-open-btn { border: none; border-radius: 14px; background: rgba(0, 122, 255, 0.11); color: #61a4ed; }
html[data-theme="dark"] .sale-imeis-open-btn:hover:not(:disabled) { background: rgba(0, 122, 255, 0.18); }
html[data-theme="dark"] .sale-imeis-open-btn:disabled,
html[data-theme="dark"] .sale-imeis-open-btn.is-disabled { background: #161c29; color: #9ca3af; }
html[data-theme="dark"] .sale-imei-modal-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .sale-imei-modal-item span { color: #a5aab4; }
html[data-theme="dark"] .sale-imei-modal-item strong { color: #d1d9eb; }
html[data-theme="dark"] .multi-sale-card label,
html[data-theme="dark"] .sale-item-card label { color: #cad4e1 !important; }
html[data-theme="dark"] .multi-sale-card input,
html[data-theme="dark"] .multi-sale-card select,
html[data-theme="dark"] .sale-item-card input,
html[data-theme="dark"] .sale-item-card select { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; box-shadow: none !important; }
html[data-theme="dark"] .multi-sale-card input:focus,
html[data-theme="dark"] .multi-sale-card select:focus,
html[data-theme="dark"] .sale-item-card input:focus,
html[data-theme="dark"] .sale-item-card select:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .multi-sale-card input::placeholder,
html[data-theme="dark"] .sale-item-card input::placeholder { color: #a5aab4 !important; }
html[data-theme="dark"] .sale-item-card { border: 1px solid #303a50 !important; border-radius: 24px !important; background: #181e2c !important; }
html[data-theme="dark"] .sale-item-price-diff { color: #86efad !important; }
html[data-theme="dark"] .sale-imei-input { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; }
html[data-theme="dark"] .sale-item-model,
html[data-theme="dark"] .multi-sale-card select,
html[data-theme="dark"] .sale-item-card select { background-image: linear-gradient(45deg, transparent 50%, #374666 50%),
        linear-gradient(135deg, #374666 50%, transparent 50%) !important; background-position: calc(100% - 22px) 50%,
        calc(100% - 16px) 50% !important; background-size: 6px 6px,
        6px 6px !important; background-repeat: no-repeat !important; }
html[data-theme="dark"] .sale-item-card .sale-imei-suggestions { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .sale-item-card .sale-imei-suggestion-item { border: none !important; border-radius: 12px !important; background: transparent !important; color: #d1d9eb !important; }
html[data-theme="dark"] .sale-item-card .sale-imei-suggestion-item:hover { background: #171d2a !important; }
html[data-theme="dark"] .sale-item-card .sale-imei-suggestion-empty { color: #a5aab4 !important; }
html[data-theme="dark"] .add-order-card label,
html[data-theme="dark"] .order-item-card label { color: #cad4e1 !important; }
html[data-theme="dark"] .add-order-card input,
html[data-theme="dark"] .order-item-card input { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; }
html[data-theme="dark"] .add-order-card input:focus,
html[data-theme="dark"] .order-item-card input:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .order-items-header h3 { color: #d1d9eb !important; }
html[data-theme="dark"] .order-item-card { border: 1px solid #303a50 !important; background: #181e2c !important; }
html[data-theme="dark"] .order-item-card-header h4 { color: #d1d9eb !important; }
html[data-theme="dark"] .order-item-remove-btn { border: none !important; background: #461b1b !important; color: #e66666 !important; }
html[data-theme="dark"] .order-imei-checkbox-label { border-radius: 16px !important; }
html[data-theme="dark"] .order-item-imeis-block { border-radius: 20px !important; border: 1px solid #303a50 !important; background: #1a2130 !important; }
html[data-theme="dark"] .order-item-imeis-block h4 { color: #d1d9eb !important; }
html[data-theme="dark"] .order-item-imeis-hint { color: #a5aab4 !important; }
html[data-theme="dark"] .order-item-imei-field span { color: #d1d9eb !important; }
html[data-theme="dark"] .order-item-imei-input { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; }
html[data-theme="dark"] .order-item-imei-input:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .order-total-panel div { border-radius: 18px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .order-total-panel span { color: #a5aab4 !important; }
html[data-theme="dark"] .order-total-panel strong { color: #d1d9eb !important; }
html[data-theme="dark"] .order-imei-edit-btn { border: none !important; background: rgba(0, 122, 255, 0.11) !important; color: #61a4ed !important; }
html[data-theme="dark"] .order-imei-edit-btn:hover { background: rgba(0, 122, 255, 0.18) !important; }
html[data-theme="dark"] .order-imei-modal-field span { color: #d1d9eb !important; }
html[data-theme="dark"] .order-imei-modal-input { border: 1px solid #323c53 !important; border-radius: 16px !important; background: #1a2130 !important; color: #d1d9eb !important; outline: none !important; }
html[data-theme="dark"] .order-imei-modal-input:focus { border-color: #007aff !important; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12) !important; }
html[data-theme="dark"] .order-imei-modal-input.imei-input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important; }
html[data-theme="dark"] .order-item-card { border-radius: 22px !important; }
html[data-theme="dark"] .order-item-remove-btn { border-radius: 14px !important; }
html[data-theme="dark"] .order-item-card input { border-radius: 15px !important; }
html[data-theme="dark"] .order-imei-toggle-row { border-radius: 16px !important; border: 1px solid #323c53 !important; background: #1a2130 !important; }
html[data-theme="dark"] .order-imei-checkbox-label { border: none !important; background: transparent !important; }
html[data-theme="dark"] .order-imei-checkbox-label input { accent-color: #61a4ed !important; }
html[data-theme="dark"] .order-imei-checkbox-label span { color: #d1d9eb !important; }
html[data-theme="dark"] .order-imei-status { border-radius: 999px !important; background: #171d2a !important; color: #a5aab4 !important; }
html[data-theme="dark"] .order-imei-status-good { background: #1c482b !important; color: #86efad !important; }
html[data-theme="dark"] .order-imei-status-warning { background: #4d441d !important; color: #efb470 !important; }
html[data-theme="dark"] .order-imei-edit-btn { border-radius: 12px !important; }
html[data-theme="dark"] .inventory-page-action-btn { border-radius: 14px !important; background: #374666 !important; color: #ffffff !important; box-shadow: none !important; }
html[data-theme="dark"] .inventory-page-action-btn:hover { background: #303d5a !important; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .stock-inventory-card .inventory-page-action-btn { border-radius: 14px !important; }
html[data-theme="dark"] .receipts-page-actions .telegram-btn,
html[data-theme="dark"] .receipts-page-actions .secondary-btn { border-radius: 14px; }
html[data-theme="dark"] .receipt-action-btn { border: none !important; border-radius: 15px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .receipt-action-btn:hover { background: #303d5a !important; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36) !important; }
html[data-theme="dark"] .receipts-history-top .receipt-action-btn { border: none !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .receipts-history-top .receipt-action-btn:hover { background: #303d5a !important; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .receipts-history-top .receipt-action-btn { border-radius: 15px !important; }
html[data-theme="dark"] .receipts-table .edit-btn,
html[data-theme="dark"] .receipts-table .delete-btn,
html[data-theme="dark"] #receiptsTableBody .edit-btn,
html[data-theme="dark"] #receiptsTableBody .delete-btn { border-radius: 14px !important; }
html[data-theme="dark"] #receiptsTableBody .edit-btn,
html[data-theme="dark"] #receiptsTableBody .delete-btn { border-radius: 12px !important; }
html[data-theme="dark"] .sales-history-top .sales-action-btn { border: none !important; border-radius: 15px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .sales-history-top .sales-action-btn:hover { background: #303d5a !important; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36) !important; }
html[data-theme="dark"] .orders-history-top .orders-action-btn { border: none !important; border-radius: 15px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .orders-history-top .orders-action-btn:hover { background: #303d5a !important; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36) !important; }
html[data-theme="dark"] #selectedProducts::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #selectedProducts::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] #selectedProducts::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .payment-orders-action-btn { border: none !important; border-radius: 15px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .payment-orders-action-btn:hover { background: #303d5a !important; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36) !important; }
html[data-theme="dark"] .payment-order-card { border: 1px solid #303a50; border-radius: 22px; background: #181e2c; color: #d1d9eb; }
html[data-theme="dark"] .payment-order-card:hover { background: #151b27; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .payment-order-card.is-partial { background: rgba(245, 158, 11, 0.08); }
html[data-theme="dark"] .payment-order-card-main h3 { color: #d1d9eb; }
html[data-theme="dark"] .payment-order-card-main p { color: #a5aab4; }
html[data-theme="dark"] .payment-order-card-metrics div { border-radius: 16px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .payment-order-card-metrics span { color: #a5aab4; }
html[data-theme="dark"] .payment-order-card-metrics strong { color: #d1d9eb; }
html[data-theme="dark"] .payment-order-form-block { border-radius: 22px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .payment-order-form-grid label { color: #bdc5d2; }
html[data-theme="dark"] .payment-order-form-grid input,
html[data-theme="dark"] .payment-order-form-grid select { border: 1px solid #323c53; border-radius: 15px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .payment-order-payment-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .payment-order-payment-item strong { color: #d1d9eb; }
html[data-theme="dark"] .payment-order-payment-item p,
html[data-theme="dark"] .payment-order-payment-item span { color: #a5aab4; }
html[data-theme="dark"] .payment-order-card-select-block { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .payment-order-card-summary { color: #a5aab4; }
html[data-theme="dark"] .payment-cards-overlay { background: rgba(55, 70, 102, 0.72); }
html[data-theme="dark"] .payment-card-choice-item { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .payment-card-choice-item strong { color: #d1d9eb; }
html[data-theme="dark"] .payment-card-choice-item p { color: #a5aab4; }
html[data-theme="dark"] .payment-card-choice-input { border: 1px solid #323c53; border-radius: 14px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .admin-menu-badge { border-radius: 50%; background: #6d2425; color: #ffffff; box-shadow: 0 8px 20px rgba(255, 77, 79, 0.28); }
html[data-theme="dark"] .sidebar-nav .admin-menu-badge { border-radius: 50% !important; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 5px 12px rgba(255, 77, 79, 0.22) !important; }
html[data-theme="dark"] .sidebar-nav .chat-unread-badge { border-radius: 50% !important; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 5px 12px rgba(255, 77, 79, 0.22) !important; }
html[data-theme="dark"] .sidebar-nav a[data-chat-badge] > .chat-unread-badge { border-radius: 50% !important; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 5px 12px rgba(255, 77, 79, 0.22) !important; }
html[data-theme="dark"] .sidebar-nav a[data-my-orders-badge] > .my-orders-unread-badge { border-radius: 50% !important; background: #6d2425 !important; color: #ffffff !important; box-shadow: 0 5px 12px rgba(255, 77, 79, 0.22) !important; }
html[data-theme="dark"] .sidebar-nav .chat-unread-badge,
html[data-theme="dark"] .sidebar-nav .my-orders-unread-badge,
html[data-theme="dark"] .sidebar-nav .admin-menu-badge { border-radius: 50% !important; }
html[data-theme="dark"] #myOrdersList.client-orders-list::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #myOrdersList.client-orders-list::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] #myOrdersList.client-orders-list::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .expenses-table td:nth-child(5) .edit-btn,
html[data-theme="dark"] .expenses-table td:nth-child(5) .delete-btn { border-radius: 14px !important; }
html[data-theme="dark"] .admin-create-user-form { border-radius: 24px; background: #181e2c; border: 1px solid #283953; }
html[data-theme="dark"] .admin-create-user-form label { color: #a3aebe; }
html[data-theme="dark"] .admin-create-user-form input,
html[data-theme="dark"] .admin-create-user-form select { border: 1px solid #2a3e57; border-radius: 16px; background: #1a2130; color: #cddcf5; }
html[data-theme="dark"] .user-access-badge { border-radius: 999px; background: #192d43; color: #61a4ed; }
html[data-theme="dark"] .subscription-card { border: 1px solid #293b54 !important; background: linear-gradient(135deg, #1a2130, #191f2e) !important; }
html[data-theme="dark"] .subscription-card.subscription-warning { border-color: #685d32 !important; background: #443b1a !important; }
html[data-theme="dark"] .subscription-card.subscription-danger,
html[data-theme="dark"] .subscription-card.subscription-expired { border-color: #582b2b !important; background: #171d2b !important; }
html[data-theme="dark"] .subscription-card.subscription-danger .subscription-warning-text,
html[data-theme="dark"] .subscription-card.subscription-expired .subscription-warning-text { color: #e66666 !important; }
html[data-theme="dark"] .admin-subscription-badge { border-radius: 999px; background: #1c482b; color: #86efad; }
html[data-theme="dark"] .admin-subscription-badge.warning { background: #4d441d; color: #efb470; }
html[data-theme="dark"] .admin-subscription-badge.danger,
html[data-theme="dark"] .admin-subscription-badge.expired { background: #461a1e; color: #e66666; }
html[data-theme="dark"] .admin-subscription-until,
html[data-theme="dark"] .subscription-muted { color: #9ea9b9; }
html[data-theme="dark"] .admin-users-table .admin-user-row:hover { background: #191f2e; }
html[data-theme="dark"] .admin-selected-subscription-card { border: 1px solid #293b54; background: linear-gradient(135deg, #1a2130, #191f2e); border-radius: 28px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .admin-selected-subscription-card.warning { border-color: #685d32; background: #443b1a; }
html[data-theme="dark"] .admin-selected-subscription-card.danger,
html[data-theme="dark"] .admin-selected-subscription-card.expired { border-color: #582b2b; background: #171d2b; }
html[data-theme="dark"] .admin-selected-subscription-card.muted { background: #181e2c; border-color: #283953; }
html[data-theme="dark"] .admin-selected-subscription-main h3 { color: #cddcf5; }
html[data-theme="dark"] .admin-selected-subscription-main p { color: #a3aebe; }
html[data-theme="dark"] .admin-selected-subscription-form label { color: #a3aebe; }
html[data-theme="dark"] .admin-selected-subscription-form input,
html[data-theme="dark"] .admin-selected-subscription-form select { border: 1px solid #2a3e57; border-radius: 16px; background: #1a2130; color: #cddcf5; }
html[data-theme="dark"] .admin-selected-subscription-form button { border-radius: 16px !important; }
html[data-theme="dark"] .admin-subscription-mini-badge { border-radius: 999px; background: #1c482b; color: #86efad; }
html[data-theme="dark"] .admin-subscription-mini-badge.warning { background: #4d441d; color: #efb470; }
html[data-theme="dark"] .admin-subscription-mini-badge.danger,
html[data-theme="dark"] .admin-subscription-mini-badge.expired { background: #461a1e; color: #e66666; }
html[data-theme="dark"] .admin-selected-subscription-form.only-manual label { color: #a3aebe; }
html[data-theme="dark"] .admin-selected-subscription-form.only-manual input,
html[data-theme="dark"] .admin-selected-subscription-form.only-manual select { border-radius: 16px; border: 1px solid #2a3e57; color: #cddcf5; background: #1a2130; }
html[data-theme="dark"] .admin-selected-subscription-form.only-manual .days-field input { border-color: #007aff; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08); }
@media (max-width: 900px) {
    html[data-theme="dark"] .sidebar { border-right: 0; border-bottom: 1px solid rgba(53, 64, 88, 0.75); background: rgba(26, 33, 48, 0.94); }
    html[data-theme="dark"] .sidebar-logo .brand-logo { border-radius: 16px; }
    html[data-theme="dark"] .sidebar-nav a { border-radius: 14px; background: rgba(25, 45, 67, 0.8); }
    html[data-theme="dark"] .logout-btn { border-radius: 14px; }
    html[data-theme="dark"] .dashboard-card { border-radius: 22px; }
    html[data-theme="dark"] .modal-content,
    html[data-theme="dark"] .modal-card,
    html[data-theme="dark"] .order-modal-content,
    html[data-theme="dark"] .payment-modal-content,
    html[data-theme="dark"] .client-modal-content { border-radius: 24px !important; }
}
@media (max-width: 640px) {
    html[data-theme="dark"] .auth-card { border-radius: 24px; }
    html[data-theme="dark"] .brand-logo { border-radius: 16px; }
    html[data-theme="dark"] .dashboard-card { border-radius: 20px; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.inventory-page .stock-inventory-card .inventory-table-wrapper::-webkit-scrollbar-track { background: #161c29 !important; border-radius: 999px !important; }
    html[data-theme="dark"] body.inventory-page .stock-inventory-card .inventory-table-wrapper::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.sales-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.sales-page .sidebar-nav a { border-radius: 16px !important; }
}
html[data-theme="dark"] body.sales-page #salesTableScroll .sales-table,
html[data-theme="dark"] body.sales-page #salesTableScroll table { border-collapse: collapse !important; }
html[data-theme="dark"] body.sales-page #salesTableScroll::-webkit-scrollbar-track { background: #161c29 !important; border-radius: 999px !important; }
html[data-theme="dark"] body.sales-page #salesTableScroll::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
@media (max-width: 768px) {
    html[data-theme="dark"] body.add-sale-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.add-sale-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.orders-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.orders-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.marketplace-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.marketplace-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.place-order-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.place-order-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.my-orders-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.my-orders-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.accounting-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.accounting-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.admin-orders-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.admin-orders-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.payment-orders-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.payment-orders-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.imeis-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.imeis-page .sidebar-nav a { border-radius: 16px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.shipping-orders-page .sidebar { border-right: none !important; border-bottom: 1px solid rgba(117, 131, 163, 0.08) !important; }
    html[data-theme="dark"] body.shipping-orders-page .sidebar-nav a { border-radius: 16px !important; }
}
html[data-theme="dark"] .dashboard-action-card { border-radius: 24px; background: #1a2130; border: 1px solid #2a3e58; color: #ced7ed; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .dashboard-action-card:hover { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18); }
html[data-theme="dark"] .dashboard-action-card span { color: #ced7ed; }
html[data-theme="dark"] .dashboard-action-card small { color: #9ea9b9; }
html[data-theme="dark"] .regional-procurement-box { border: 1px solid #2a3e58 !important; border-radius: 20px !important; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%) !important; }
html[data-theme="dark"] .regional-procurement-head strong { color: #ced7ed !important; }
html[data-theme="dark"] .regional-procurement-grid p { border-radius: 14px !important; background: #171d2a !important; border: 1px solid #293d55 !important; }
html[data-theme="dark"] .regional-procurement-grid span { color: #9ea9b9 !important; }
html[data-theme="dark"] .regional-procurement-grid strong { color: #ced7ed !important; }
html[data-theme="dark"] .regional-procurement-note,
html[data-theme="dark"] .regional-procurement-warning,
html[data-theme="dark"] .regional-procurement-success { border-radius: 14px !important; }
html[data-theme="dark"] .regional-procurement-note { background: #161c29 !important; color: #b0baca !important; }
html[data-theme="dark"] .regional-procurement-warning { background: #43311a !important; color: #f09c79 !important; }
html[data-theme="dark"] .regional-procurement-success { background: #1a442b !important; color: #9aeeba !important; }
html[data-theme="dark"] .imei-product-row small { color: #9ea9b9; }
html[data-theme="dark"] .imei-external-toggle { border: 1px solid #2a3e58; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .imei-external-toggle input { accent-color: #5b96ed; }
html[data-theme="dark"] .imei-external-toggle small { color: #9ea9b9; }
html[data-theme="dark"] .imei-external-warning { color: #9ea9b9; }
html[data-theme="dark"] .imei-source-note { border-radius: 14px; background: #192d43; color: #bac5d6; border: 1px solid #293d55; }
html[data-theme="dark"] .shipping-product-imeis { color: #b0baca; }
html[data-theme="dark"] .shipping-product-imeis span { border-radius: 999px; background: #192d43; border: 1px solid #293d55; color: #96abe8; }
html[data-theme="dark"] .client-order-progress-grid div { background: #191f2e; border: 1px solid #293b55; border-radius: 16px; }
html[data-theme="dark"] .client-order-progress-grid span,
html[data-theme="dark"] .client-price-stat span { color: #9ea9b9; }
html[data-theme="dark"] .client-order-progress-grid strong { color: #ced7ed; }
html[data-theme="dark"] .client-order-status-row span,
html[data-theme="dark"] .client-order-status-pill { border-radius: 999px; background: #192d43; color: #699eee; border: 1px solid #293d55; }
html[data-theme="dark"] .client-order-details-panel { background: #1a2130; border: 1px solid #2a3e58; border-radius: 22px; }
html[data-theme="dark"] .client-order-details-head h3 { color: #ced7ed; }
html[data-theme="dark"] .client-order-payment-row { border: 1px solid #293b55; background: #191f2e; border-radius: 16px; }
html[data-theme="dark"] .client-order-payment-row span,
html[data-theme="dark"] .client-order-payment-row p,
html[data-theme="dark"] .client-fulfillment-note,
html[data-theme="dark"] .client-imei-empty { color: #9ea9b9; }
html[data-theme="dark"] .client-product-fulfillment { border-top: 1px solid #2d374c; }
html[data-theme="dark"] .client-imei-list span { border-radius: 999px; background: #161c29; border: 1px solid #303a50; color: #ced7ed; }
html[data-theme="dark"] .jd-chat-context-menu { border-radius: 14px; background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.12); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .jd-chat-context-menu button { border: none; background: transparent; border-radius: 10px; color: #d1d9eb; }
html[data-theme="dark"] .jd-chat-context-menu button:hover { background: rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .dashboard-action-card[href="place-order.html"],
html[data-theme="dark"] .dashboard-action-card[href="supplier-client-transfer.html"] { background: linear-gradient(135deg, #1a2130, #191f2e); border-color: #293a55; }
html[data-theme="dark"] .dashboard-action-card[href="place-order.html"] span,
html[data-theme="dark"] .dashboard-action-card[href="supplier-client-transfer.html"] span { color: #ced7ed; }
html[data-theme="dark"] .sidebar .sidebar-nav a.active,
html[data-theme="dark"] .sidebar .sidebar-nav a.active-link { color: #d1d9eb; }
html[data-theme="dark"] body.admin-orders-page .admin-product-controls { border-top: 1px solid #303a50 !important; }
@media (max-width: 640px) {
    html[data-theme="dark"] body.admin-orders-page .order-modal { border-radius: 22px !important; }
}
html[data-theme="dark"] body.admin-orders-page .admin-orders-table-wrapper,
html[data-theme="dark"] body.admin-orders-page .inventory-table-wrapper.admin-orders-table-wrapper { border-radius: 18px !important; }
html[data-theme="dark"] body.admin-orders-page .admin-orders-table,
html[data-theme="dark"] body.admin-orders-page .inventory-table.admin-orders-table { border-collapse: collapse !important; }
html[data-theme="dark"] body.place-order-page .category-display-card,
html[data-theme="dark"] body.place-order-page .category-card { border-radius: 26px; background: #1a2130; border: 1px solid #2a3f57; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] body.place-order-page .category-display-card:hover,
html[data-theme="dark"] body.place-order-page .category-card:hover { box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18); }
html[data-theme="dark"] body.place-order-page .category-image-wrap { border-radius: 22px; background: linear-gradient(135deg, #181e2c 0%, #1a2e45 100%); border: 1px solid #293f55; }
html[data-theme="dark"] body.place-order-page .category-card-content h3 { color: #cfdaf5; }
html[data-theme="dark"] body.place-order-page .category-card-content p { color: #9fa7b5; }
html[data-theme="dark"] body.place-order-page .price-item-info span { color: #61a4ed; }
html[data-theme="dark"] body.place-order-page .price-card .category-display-card,
html[data-theme="dark"] body.place-order-page .price-card .category-card { border-radius: 24px !important; background: #1a2130 !important; border: 1px solid #2a3f57 !important; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.108) !important; }
html[data-theme="dark"] body.place-order-page .price-card .category-image-wrap { border-radius: 18px !important; background: linear-gradient(135deg, #181f2d 0%, #1a2c43 100%) !important; border: 1px solid #293f55 !important; }
html[data-theme="dark"] body.place-order-page .price-card .category-card-content h3 { color: #cfdaf5 !important; }
html[data-theme="dark"] body.place-order-page .price-card .category-card-content p { color: #a1abb8 !important; }
html[data-theme="dark"] body.place-order-page .price-card .category-display-card:hover,
html[data-theme="dark"] body.place-order-page .price-card .category-card:hover { box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18) !important; }
html[data-theme="dark"] .order-stock-note { color: #9ea9b9; }
html[data-theme="dark"] body:not(.auth-page) .sidebar.jd-162055-sidebar-fixed .sidebar-nav a.active,
html[data-theme="dark"] body:not(.auth-page) .sidebar.jd-162055-sidebar-fixed .sidebar-nav a.active-link { color: #d1d9eb !important; }
@media (max-width: 980px) {
    html[data-theme="dark"].jd-mobile-stable,
    html[data-theme="dark"].jd-mobile-stable body { background: #151b27 !important; }
    html[data-theme="dark"].jd-mobile-stable .dashboard-page,
    html[data-theme="dark"].jd-mobile-stable body > .dashboard-page,
    html[data-theme="dark"].jd-mobile-stable .accounting-page,
    html[data-theme="dark"].jd-mobile-stable .internal-market-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-physical-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-clients-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-accounting-page,
    html[data-theme="dark"].jd-mobile-stable .regional-retail-page,
    html[data-theme="dark"].jd-mobile-stable .retail-customer-page { background: #151b27 !important; }
    html[data-theme="dark"].jd-mobile-stable .dashboard-action-card,
    html[data-theme="dark"].jd-mobile-stable .card,
    html[data-theme="dark"].jd-mobile-stable [class*="card"],
    html[data-theme="dark"].jd-mobile-stable [class*="panel"] { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.144) !important; }
}
html[data-theme="dark"] body.admin-orders-page .external-procurement-box { border-style: dashed; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form input,
html[data-theme="dark"] body.admin-orders-page .external-procurement-form textarea { border-radius: 12px; outline: none; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-box { background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%) !important; border: 1px dashed #2d425e !important; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.108) !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-box .regional-procurement-head strong { color: #ced7ed !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-box .regional-procurement-note { background: #161c29 !important; color: #b0baca !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form { background: #1a2130 !important; border: 1px solid #293d56 !important; border-radius: 18px !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form label { color: #c0cee3 !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form input,
html[data-theme="dark"] body.admin-orders-page .external-procurement-form textarea { background: #1a2130 !important; border: 1px solid #2c425c !important; color: #ced7ed !important; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.054) !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form input::placeholder,
html[data-theme="dark"] body.admin-orders-page .external-procurement-form textarea::placeholder { color: #9ea9b9 !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form input:focus,
html[data-theme="dark"] body.admin-orders-page .external-procurement-form textarea:focus { border-color: #314965 !important; background: #1a2130 !important; color: #ced7ed !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10) !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-summary p { background: #171d2a !important; border-color: #293d55 !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-summary span { color: #9ea9b9 !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-summary strong { color: #ced7ed !important; }
html[data-theme="dark"] body.my-orders-page .client-order-row-card { border-radius: 24px; background: linear-gradient(135deg, #1a2130 0%, #181e2c 100%); border: 1px solid #293e56; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] body.my-orders-page .client-order-row-card:hover { background: linear-gradient(135deg, #1a2130 0%, #192d43 100%); border-color: #2c425b; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.162); }
html[data-theme="dark"] body.my-orders-page .client-order-row-card:focus-visible { outline: 3px solid rgba(0, 122, 255, 0.22); outline-offset: 3px; }
html[data-theme="dark"] body.my-orders-page .client-order-row-card.has-admin-changes { border-color: rgba(255, 77, 79, 0.34); }
html[data-theme="dark"] body.my-orders-page .client-order-row-title h3 { color: #ced7ed; }
html[data-theme="dark"] body.my-orders-page .client-order-row-title p { color: #9ea9b9; }
html[data-theme="dark"] body.my-orders-page .client-order-row-title strong { color: #ced7ed; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip { border-radius: 16px; background: #191f2e; border: 1px solid #293b54; color: #698beb; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip small { color: #9ea9b9; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip strong { color: inherit; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip.is-primary { background: #192d43; border-color: #2a3e57; color: #6da3ef; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip.is-good { background: #1a442b; border-color: #2d5e3e; color: #9aeeba; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip.is-warning { background: #443b1a; border-color: #685d32; color: #f1b281; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip.is-danger { background: #171d2b; border-color: #582a30; color: #f07895; }
html[data-theme="dark"] body.my-orders-page .client-order-compact-chip.is-muted { background: #181e2c; border-color: #303a50; color: #b0baca; }
html[data-theme="dark"] body.my-orders-page .client-order-row-total span { color: #9ea9b9; }
html[data-theme="dark"] body.my-orders-page .client-order-row-total strong { color: #ced7ed; }
html[data-theme="dark"] body.my-orders-page .client-order-row-total p,
html[data-theme="dark"] body.my-orders-page .client-order-row-total em { color: #9ea9b9; }
html[data-theme="dark"] body.my-orders-page .client-order-row-total em { color: #f07895; }
html[data-theme="dark"] body.my-orders-page .client-order-row-total em.is-paid { color: #9aeeba; }
html[data-theme="dark"] body.my-orders-page .client-open-order-btn { border-radius: 16px; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form select { border: 1px solid #2c425c !important; border-radius: 12px; background: #1a2130 !important; color: #ced7ed !important; outline: none; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.054) !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-form select:focus { border-color: #314965 !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10) !important; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-live-preview { background: #191f2e; border: 1px solid #293e56; border-radius: 18px; }
html[data-theme="dark"] body.admin-orders-page .external-procurement-live-preview > strong { color: #ced7ed; }
html[data-theme="dark"] .orders-live-status { border-radius: 999px !important; background: #192d43 !important; color: #5887ec !important; }
html[data-theme="dark"] .orders-live-status::before { border-radius: 999px !important; background: currentColor !important; }
html[data-theme="dark"] .orders-live-status.is-ok { background: #1a442b !important; color: #9aeeba !important; }
html[data-theme="dark"] .orders-live-status.is-loading { background: #43311a !important; color: #f09c79 !important; }
html[data-theme="dark"] .orders-live-status.is-error { background: #171d2b !important; color: #f07895 !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-box { border: 1px solid #293b54 !important; border-radius: 18px !important; background: linear-gradient(180deg, #191f2e 0%, #1a2130 100%) !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-item { border: 1px solid #303a50 !important; border-radius: 16px !important; background: #1a2130 !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-item > div { border-radius: 13px !important; background: #171d2a !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-item span,
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace label > span,
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace-head span { color: #9ea9b9 !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-item strong { color: #ced7ed !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace { border: 1px solid #303a50 !important; border-radius: 18px !important; background: #181e2c !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace-head strong { color: #ced7ed !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace label { color: #ced7ed !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace input,
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace select { border: 1px solid #344559 !important; border-radius: 14px !important; background: #1a2130 !important; color: #ced7ed !important; outline: none !important; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.054) !important; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace input:focus,
html[data-theme="dark"] body.admin-orders-page .regional-procurement-imei-replace select:focus { border-color: #60a5fa !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important; }
html[data-theme="dark"] body.admin-orders-page .semi-auto-procurement-panel { border: 1px solid rgba(99, 102, 241, 0.22); border-radius: 16px; background: rgba(24, 30, 44, 0.88); }
html[data-theme="dark"] body.admin-orders-page .semi-auto-procurement-head strong { color: #d1d9eb; }
html[data-theme="dark"] body.admin-orders-page .semi-auto-procurement-comment { color: #bdc5d2; }
html[data-theme="dark"] body.admin-orders-page .semi-auto-procurement-comment textarea { border: 1px solid rgba(148, 163, 184, 0.75); border-radius: 12px; color: #d1d9eb; background: #1a2130; outline: none; }
html[data-theme="dark"] body.admin-orders-page .semi-auto-procurement-comment textarea:focus { border-color: rgba(37, 99, 235, 0.85); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-secondary-btn,
html[data-theme="dark"] body.admin-orders-page .regional-procurement-danger-btn { border: 0; border-radius: 12px; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-secondary-btn { background: #111620; color: #d1d9eb; }
html[data-theme="dark"] body.admin-orders-page .regional-procurement-danger-btn { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .payment-order-finance-panel { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px; background: rgba(55, 70, 102, 0.03); }
html[data-theme="dark"] .danger-text { color: #e66666 !important; }
html[data-theme="dark"] .order-reversal-panel { border-color: rgba(244, 63, 94, 0.22); }
html[data-theme="dark"] .order-reversal-panel.is-canceled { background: linear-gradient(135deg, rgba(115, 38, 51, 0.08), rgba(26, 33, 48, 0.98)); }
html[data-theme="dark"] .order-reversal-panel.is-exchange { background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(26, 33, 48, 0.98)); }
html[data-theme="dark"] .order-reversal-form label { color: #9ea9b9; }
html[data-theme="dark"] .order-reversal-form label span { color: #bac5d6; }
html[data-theme="dark"] .order-reversal-form input,
html[data-theme="dark"] .order-reversal-form select { border: 1px solid #2a3d58; border-radius: 12px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .client-order-reversal-box { border: 1px solid rgba(244, 63, 94, 0.2); border-radius: 16px; background: rgba(115, 38, 51, 0.06); }
html[data-theme="dark"] .client-order-reversal-box p { color: #9ea9b9; }
html[data-theme="dark"] .client-order-reversal-box strong { color: #f07895; }
html[data-theme="dark"] .jd-site-notification-bell { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.32); background: #374666; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .jd-site-notification-bell-badge,
html[data-theme="dark"] .jd-menu-notification-badge { border-radius: 999px; background: #732626; color: #fff; }
html[data-theme="dark"] .jd-notifications-select,
html[data-theme="dark"] .jd-notifications-toggle { border: 1px solid #2a3e58; border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .jd-notification-card { border: 1px solid #303a50; border-left: 5px solid #94a3b8; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .jd-notification-card.is-unread { background: #191f2e; border-color: #2c415b; }
html[data-theme="dark"] .jd-notification-card.success { border-left-color: #22c55e; }
html[data-theme="dark"] .jd-notification-card.warning { border-left-color: #f59e0b; }
html[data-theme="dark"] .jd-notification-card.danger { border-left-color: #ef4444; }
html[data-theme="dark"] .jd-notification-type { color: #5887ec; }
html[data-theme="dark"] .jd-notification-date { color: #9ea9b9; }
html[data-theme="dark"] .jd-notification-card h3 { color: #ced7ed; }
html[data-theme="dark"] .jd-notification-card p { color: #b0baca; }
html[data-theme="dark"] .jd-notification-link,
html[data-theme="dark"] .jd-notification-read-btn { border-radius: 12px; border: 1px solid #2a3e58; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .jd-notification-link { background: #374666; color: #fff; border-color: #7584a3; }
html[data-theme="dark"] .jd-telegram-panel { border: 1px solid rgba(37, 99, 235, 0.16); background: linear-gradient(135deg, rgba(25, 44, 67, 0.96), rgba(26, 33, 48, 0.98)); }
html[data-theme="dark"] .jd-telegram-status-card { border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .jd-telegram-status-card span,
html[data-theme="dark"] .jd-telegram-code-card span { color: #9ea9b9; }
html[data-theme="dark"] .jd-telegram-status-card strong { color: #ced7ed; }
html[data-theme="dark"] .jd-telegram-code-card { border: 1px dashed rgba(37, 99, 235, 0.38); border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .jd-telegram-code-card strong { border-radius: 14px; background: #374666; color: #fff; }
html[data-theme="dark"] .jd-telegram-code-card p,
html[data-theme="dark"] .jd-telegram-note { color: #b0baca; }
html[data-theme="dark"] #telegramStatusText.is-error { color: #eb7a7a; }
html[data-theme="dark"] .jd-telegram-code-card .jd-telegram-code-value { border-radius: 14px; background: #374666; color: #fff; }
html[data-theme="dark"] .jd-telegram-copy-btn { border: 1px solid rgba(37, 99, 235, 0.18); border-radius: 14px; background: rgba(37, 99, 235, 0.08); color: #698beb; }
html[data-theme="dark"] .jd-telegram-copy-btn:hover { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12); background: rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] .jd-telegram-copy-btn.is-copied { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.26); color: #9aeeba; }
html[data-theme="dark"] .jd-telegram-code-card .jd-telegram-open-bot { border-radius: 14px; }
html[data-theme="dark"] .jd-telegram-code-expire { color: #9ea9b9 !important; }
html[data-theme="dark"] .jd-telegram-code-card .jd-telegram-check-link { border-radius: 14px; }
html[data-theme="dark"] .jd-telegram-wait-status { border-radius: 14px; background: rgba(37, 99, 235, 0.08); color: #698beb !important; }
html[data-theme="dark"] .jd-telegram-wait-status.is-error { background: rgba(115, 38, 38, 0.08); color: #eb7a7a !important; }
html[data-theme="dark"] .jd-telegram-status-card.is-ok { border-color: rgba(34, 197, 94, 0.26); background: linear-gradient(135deg, rgba(23, 29, 42, 0.96), #1a2130); }
html[data-theme="dark"] .jd-telegram-status-card.is-warning { border-color: rgba(245, 158, 11, 0.28); background: linear-gradient(135deg, rgba(68, 59, 26, 0.96), #1a2130); }
html[data-theme="dark"] .jd-telegram-status-card.is-muted { border-color: rgba(148, 163, 184, 0.24); background: linear-gradient(135deg, rgba(24, 30, 44, 0.96), #1a2130); }
html[data-theme="dark"] .jd-telegram-status-card.is-ok strong { color: #9aeeba; }
html[data-theme="dark"] .jd-telegram-status-card.is-warning strong { color: #f1b281; }
html[data-theme="dark"] .jd-telegram-status-card.is-muted strong { color: #b0baca; }
html[data-theme="dark"] #telegramToggleEnabled.is-enabled { background: linear-gradient(135deg, #16a34a, #16833f); color: #fff; border-color: rgba(22, 163, 74, 0.28); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .jd-telegram-code-card.is-error { border-color: rgba(239, 68, 68, 0.28); background: rgba(23, 29, 43, 0.96); }
html[data-theme="dark"] .admin-order-number-badge { border-radius: 14px; background: #192843; border: 1px solid #2a3a57; color: #5d8bed; }
html[data-theme="dark"] .admin-order-row.jd-workflow-target .admin-order-number-badge { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 0 0 5px rgba(37,99,235,.15); }
@media (max-width: 800px) {
    html[data-theme="dark"] .admin-order-number-badge { border-radius: 12px; }
}
/* --- jd-menu.css --- */
html[data-theme="dark"] jd-menu { --jdm-bg: #181e2c; --jdm-border: #303a50; --jdm-text: #bac5d6; --jdm-text-strong: #ced7ed; --jdm-text-muted: #9ea9b9; --jdm-hover-bg: #151b27; --jdm-active-bg: #1b2e48; --jdm-active-text: #ced7ed; --jdm-logo-bg: linear-gradient(145deg, #3b4b6e, #374666); --jdm-badge-bg: #732626; --jdm-danger: #eb7a7a; --jdm-backdrop: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .jdm-panel { background: var(--jdm-bg); border-right: 1px solid var(--jdm-border); }
html[data-theme="dark"] .jdm-logo { border-radius: 14px; background: var(--jdm-logo-bg); color: var(--jdm-logo-text); }
html[data-theme="dark"] .jdm-title { color: var(--jdm-text-strong); }
html[data-theme="dark"] .jdm-subtitle { color: var(--jdm-text-muted); }
html[data-theme="dark"] .jdm-nav { scrollbar-color: #2a3849 transparent; }
html[data-theme="dark"] .jdm-section { color: var(--jdm-text-muted); }
html[data-theme="dark"] .jdm-link { border-radius: var(--jdm-radius); color: var(--jdm-text); }
html[data-theme="dark"] .jdm-link:hover { background: var(--jdm-hover-bg); color: var(--jdm-text-strong); }
html[data-theme="dark"] .jdm-link[aria-current="page"] { background: var(--jdm-active-bg); color: var(--jdm-active-text); }
html[data-theme="dark"] .jdm-link:focus-visible,
html[data-theme="dark"] .jdm-logout:focus-visible,
html[data-theme="dark"] .jdm-toggle:focus-visible,
html[data-theme="dark"] .jdm-close:focus-visible { outline: 2px solid var(--jdm-accent); outline-offset: 2px; }
html[data-theme="dark"] .jdm-badge { border-radius: 10px; background: var(--jdm-badge-bg); color: var(--jdm-badge-text); }
html[data-theme="dark"] .jdm-logout { border: 1px solid var(--jdm-border); border-radius: var(--jdm-radius); background: #1a2130; color: var(--jdm-danger); }
html[data-theme="dark"] .jdm-logout:hover { background: #171d2b; border-color: #582b2b; }
@media (max-width: 720px) {
    html[data-theme="dark"] .jdm-toggle { border: 1px solid var(--jdm-border); border-radius: 12px; background: #1a2130; color: var(--jdm-text-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.144); }
    html[data-theme="dark"] .jdm-toggle-icon,
    html[data-theme="dark"] .jdm-toggle-icon::before,
    html[data-theme="dark"] .jdm-toggle-icon::after { border-radius: 2px; background: currentColor; }
    html[data-theme="dark"] .jdm-backdrop { background: var(--jdm-backdrop); }
    html[data-theme="dark"] .jdm-panel { border-right: none; box-shadow: 12px 0 32px rgba(0, 0, 0, 0.324); }
    html[data-theme="dark"] .jdm-close { border: none; border-radius: 10px; background: transparent; color: var(--jdm-text-muted); }
    html[data-theme="dark"] .jdm-close:hover { background: var(--jdm-hover-bg); }
}
/* --- action-log.css --- */
html[data-theme="dark"] .action-log-header { border-radius: 24px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(55, 70, 102, 0.04)); border: 1px solid rgba(148, 163, 184, 0.24); }
html[data-theme="dark"] .action-log-header p { color: #9ea9b9; }
html[data-theme="dark"] .action-log-notice,
html[data-theme="dark"] .action-log-admin-note,
html[data-theme="dark"] .action-log-info { border-radius: 18px; background: #192c43; color: #96abe8; border: 1px solid rgba(59, 130, 246, 0.22); }
html[data-theme="dark"] .action-log-notice.is-error { background: #171d2b; color: #eb8d8d; border-color: rgba(239, 68, 68, 0.28); }
html[data-theme="dark"] .action-log-admin-note { background: #43311a; color: #f1a48a; border-color: rgba(249, 115, 22, 0.24); }
html[data-theme="dark"] .action-log-info { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .action-log-stat { border-radius: 18px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .action-log-stat span { color: #9ea9b9; }
html[data-theme="dark"] .action-log-stat strong { color: #ced7ed; }
html[data-theme="dark"] .action-log-card-head p,
html[data-theme="dark"] .action-log-card-head small { color: #9ea9b9; }
html[data-theme="dark"] .action-log-filter-form label,
html[data-theme="dark"] .action-log-note-form label { color: #b0baca; }
html[data-theme="dark"] .action-log-filter-form input,
html[data-theme="dark"] .action-log-filter-form select,
html[data-theme="dark"] .action-log-note-form input,
html[data-theme="dark"] .action-log-note-form select,
html[data-theme="dark"] .action-log-note-form textarea { border: 1px solid #344559; border-radius: 14px; color: #ced7ed; background: #1a2130; outline: none; }
html[data-theme="dark"] .action-log-table-wrap { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px; }
html[data-theme="dark"] .action-log-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .action-log-table th,
html[data-theme="dark"] .action-log-table td { border-bottom: 1px solid rgba(48, 58, 80, 0.9); }
html[data-theme="dark"] .action-log-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .action-log-table tr:last-child td { border-bottom: none; }
html[data-theme="dark"] .action-log-level { border-radius: 999px; }
html[data-theme="dark"] .action-log-level.is-critical,
html[data-theme="dark"] .action-log-level.is-danger { color: #eb8d8d; background: #461b1b; }
html[data-theme="dark"] .action-log-level.is-warning { color: #f3b590; background: #4d441d; }
html[data-theme="dark"] .action-log-level.is-info { color: #698beb; background: #1b2f48; }
html[data-theme="dark"] .action-log-level.is-success { color: #aaedc3; background: #1c482b; }
html[data-theme="dark"] .action-log-muted { color: #9ea9b9; }
html[data-theme="dark"] .action-log-payload { color: #9ea9b9; }
/* --- admin-platform.css --- */
html[data-theme="dark"] .admin-platform-notice { border-radius: 18px; background: rgba(0, 122, 255, 0.10); color: #ced7ed; border: 1px solid rgba(0, 122, 255, 0.18); }
html[data-theme="dark"] .admin-platform-notice.is-error { background: rgba(220, 38, 38, 0.10); border-color: rgba(220, 38, 38, 0.18); color: #eb8d8d; }
html[data-theme="dark"] .admin-platform-summary-card strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-list-item { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-list-item h3 { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-list-item p { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-pill { border-radius: 999px; background: #161c29; color: #bdc5d2; }
html[data-theme="dark"] .admin-platform-pill.is-ok { background: rgba(34, 197, 94, 0.12); color: #9aeeba; }
html[data-theme="dark"] .admin-platform-pill.is-warning { background: rgba(245, 158, 11, 0.14); color: #f1b281; }
html[data-theme="dark"] .admin-platform-pill.is-danger { background: rgba(220, 38, 38, 0.12); color: #eb7a7a; }
html[data-theme="dark"] .admin-platform-muted { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-empty { border-radius: 18px; background: #181e2c; color: #a5aab4; }
html[data-theme="dark"] .admin-platform-search-input { border: 1px solid #354058; border-radius: 14px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .admin-platform-search-input:focus { border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .admin-platform-subtitle { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-select { border: 1px solid #354058; border-radius: 12px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-action-btn { border: 0; border-radius: 12px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .admin-platform-client-warning { color: #eb7a7a; }
html[data-theme="dark"] .admin-platform-error-stat { border: 1px solid #303a50; border-radius: 16px; background: #181e2c; color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-error-item { border: 1px solid #303a50; border-left-width: 5px; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-error-item.is-danger { border-left-color: #dc2626; }
html[data-theme="dark"] .admin-platform-error-item.is-warning { border-left-color: #f59e0b; }
html[data-theme="dark"] .admin-platform-error-item.is-ok { border-left-color: #22c55e; }
html[data-theme="dark"] .admin-platform-error-head h3 { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-error-head p,
html[data-theme="dark"] .admin-platform-error-reason,
html[data-theme="dark"] .admin-platform-error-action { color: #b4bcc6; }
html[data-theme="dark"] .admin-platform-user-stat { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .admin-platform-user-stat span { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-user-stat strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-user-main strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-user-details { border: 1px solid #293b54; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] .admin-platform-user-details-head h3 { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-user-details-head p { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-field label { color: #bdc5d2; }
html[data-theme="dark"] .admin-platform-field input,
html[data-theme="dark"] .admin-platform-field select,
html[data-theme="dark"] .admin-platform-field textarea { border: 1px solid #354058; border-radius: 14px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .admin-platform-field input:focus,
html[data-theme="dark"] .admin-platform-field select:focus,
html[data-theme="dark"] .admin-platform-field textarea:focus { border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .admin-platform-danger-btn { border: none; border-radius: 14px; background: #dc2626; color: #ffffff; }
html[data-theme="dark"] .admin-platform-danger-btn:hover { background: #b91c1c; }
html[data-theme="dark"] .admin-platform-ok-btn { border: none; border-radius: 14px; background: #16a34a; color: #ffffff; }
html[data-theme="dark"] .admin-platform-ok-btn:hover { background: #16833f; }
html[data-theme="dark"] .admin-platform-user-note { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-stat { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .admin-platform-chat-stat span { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-stat strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-chat-item { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-chat-item:hover,
html[data-theme="dark"] .admin-platform-chat-item.is-active { border-color: rgba(0, 122, 255, 0.45); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.144); background: #191f2e; }
html[data-theme="dark"] .admin-platform-chat-item-head strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-chat-item-head span { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-item p { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-last { color: #bdc5d2 !important; }
html[data-theme="dark"] .admin-platform-chat-details { border: 1px solid #303a50; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-chat-details-head h3 { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-chat-details-head p { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-participants div { border: 1px solid #303a50; border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .admin-platform-chat-participants span { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-participants strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-chat-messages { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-platform-chat-message { border-radius: 18px 18px 18px 6px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .admin-platform-chat-message.is-admin { border-radius: 18px 18px 6px 18px; background: #1a2c44; border-color: #2c415b; }
html[data-theme="dark"] .admin-platform-chat-message.is-system { border-radius: 16px; background: #43311a; border-color: #60492e; }
html[data-theme="dark"] .admin-platform-chat-message-meta { color: #a5aab4; }
html[data-theme="dark"] .admin-platform-chat-message-text { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-chat-reply-form textarea { border: 1px solid #354058; border-radius: 16px; outline: none; }
html[data-theme="dark"] .admin-platform-chat-reply-form textarea:focus { border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
html[data-theme="dark"] .admin-platform-security-stat { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 16px; background: rgba(55, 70, 102, 0.36); }
html[data-theme="dark"] .admin-platform-security-stat span { color: #94a3b8; }
html[data-theme="dark"] .admin-platform-security-stat strong { color: #f8fafc; }
html[data-theme="dark"] .admin-platform-security-item,
html[data-theme="dark"] .admin-platform-protected-page { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 15px; background: rgba(55, 70, 102, 0.32); }
html[data-theme="dark"] .admin-platform-security-item.is-ok { border-color: rgba(34, 197, 94, 0.28); }
html[data-theme="dark"] .admin-platform-security-item.is-warning { border-color: rgba(245, 158, 11, 0.34); }
html[data-theme="dark"] .admin-platform-security-item.is-danger { border-color: rgba(239, 68, 68, 0.4); }
html[data-theme="dark"] .admin-platform-security-item strong,
html[data-theme="dark"] .admin-platform-protected-page strong { color: #f8fafc; }
html[data-theme="dark"] .admin-platform-security-item p,
html[data-theme="dark"] .admin-platform-protected-page p { color: #cbd5e1; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-card { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 28px; background: linear-gradient(180deg, #1a2130 0%, #181e2c 100%); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-top { border-bottom: 1px solid rgba(48, 58, 80, 0.95); }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-top .card-label { border-radius: 999px; background: rgba(0, 122, 255, 0.10); color: #5887ec; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-top h2 { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-top p { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-actions .secondary-btn,
html[data-theme="dark"] .admin-platform-page #adminPlatformSecurityRefreshBtn { border: 1px solid #7584a3; border-radius: 18px; background: #1a2130; color: #d1d9eb; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .admin-platform-page #adminPlatformSecurityRefreshBtn:hover { background: #181e2c; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.216); }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat { border: 1px solid #303a50; border-radius: 22px; background: #1a2130; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat::before { background: #2563eb; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat.is-ok::before { background: #22c55e; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat.is-warning::before { background: #f59e0b; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat.is-danger::before { background: #732626; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat span { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-stat strong { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-card .admin-platform-pill { border-radius: 999px; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-card .admin-platform-subtitle { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item,
html[data-theme="dark"] .admin-platform-page .admin-platform-protected-page { border: 1px solid #303a50; border-radius: 20px; background: #1a2130; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item.is-ok { border-left: 5px solid #22c55e; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item.is-warning { border-left: 5px solid #f59e0b; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item.is-danger { border-left: 5px solid #ef4444; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item strong,
html[data-theme="dark"] .admin-platform-page .admin-platform-protected-page strong { color: #d1d9eb; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-item p,
html[data-theme="dark"] .admin-platform-page .admin-platform-protected-page p { color: #b0baca; }
html[data-theme="dark"] .admin-platform-page .admin-platform-protected-page { border-left: 5px solid #94a3b8; }
html[data-theme="dark"] .admin-platform-page .admin-platform-security-card .admin-platform-muted { color: #9ea9b9; }
@media (max-width: 760px) {
    html[data-theme="dark"] .admin-platform-page .admin-platform-security-card { border-radius: 22px; }
}
html[data-theme="dark"] .dashboard-page.admin-platform-page .dashboard-card.admin-platform-security-card,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card { background: #1a2130 !important; background-image: none !important; border: 1px solid #303a50 !important; border-radius: 28px !important; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.144) !important; color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card *,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card * { text-shadow: none !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-top,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-top { border-bottom: 1px solid #303a50 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-top .card-label,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-top .card-label { background: #1b3547 !important; color: #8ecff2 !important; border: 1px solid #2d4c5d !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-top h2,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-top h2,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card h2,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card h2 { color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-top p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-top p,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card p { color: #b0baca !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-actions .secondary-btn,
html[data-theme="dark"] .dashboard-page.admin-platform-page #adminPlatformSecurityRefreshBtn,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-actions .secondary-btn,
html[data-theme="dark"] main.admin-platform-page #adminPlatformSecurityRefreshBtn { background: #374666 !important; color: #ffffff !important; border: 1px solid #7584a3 !important; border-radius: 16px !important; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-actions .secondary-btn:hover,
html[data-theme="dark"] .dashboard-page.admin-platform-page #adminPlatformSecurityRefreshBtn:hover,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-actions .secondary-btn:hover,
html[data-theme="dark"] main.admin-platform-page #adminPlatformSecurityRefreshBtn:hover { background: #374666 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat { background: #1a2130 !important; background-image: none !important; border: 1px solid #303a50 !important; border-radius: 22px !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.108) !important; color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat::before,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat::before { background: #2563eb !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat.is-ok::before,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat.is-ok::before { background: #16a34a !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat.is-warning::before,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat.is-warning::before { background: #f59e0b !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat.is-danger::before,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat.is-danger::before { background: #dc2626 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat span,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat span { color: #b0baca !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat strong,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat strong { color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat em,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat em { color: #bac5d6 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-subtitle,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-subtitle { color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-protected-page,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item,
html[data-theme="dark"] main.admin-platform-page .admin-platform-protected-page { background: #1a2130 !important; background-image: none !important; border: 1px solid #303a50 !important; border-radius: 20px !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09) !important; color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item.is-ok,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item.is-ok { border-left: 6px solid #16a34a !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item.is-warning,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item.is-warning { border-left: 6px solid #f59e0b !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item.is-danger,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item.is-danger { border-left: 6px solid #dc2626 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-protected-page,
html[data-theme="dark"] main.admin-platform-page .admin-platform-protected-page { border-left: 6px solid #64748b !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item strong,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-protected-page strong,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item strong,
html[data-theme="dark"] main.admin-platform-page .admin-platform-protected-page strong { color: #ced7ed !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-item p,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-protected-page p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-item p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-protected-page p { color: #b0baca !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-pill,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-pill { border-radius: 999px !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-ok,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-ok { background: #1c482b !important; color: #aaedc3 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-warning,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-warning { background: #4d441d !important; color: #f3b590 !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-danger,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-pill.is-danger { background: #461b1b !important; color: #eb8d8d !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card .admin-platform-muted,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card .admin-platform-muted { color: #9ea9b9 !important; }
@media (max-width: 760px) {
    html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-card,
    html[data-theme="dark"] main.admin-platform-page .admin-platform-security-card { border-radius: 22px !important; }
}
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat { border: 1px solid #303a50; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat:hover,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat:hover { box-shadow: 0 18px 34px rgba(0, 0, 0, 0.198); border-color: #314a66; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat.is-selected,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat.is-selected { border-color: #2563eb; box-shadow: 0 18px 38px rgba(37, 99, 235, 0.16); }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-stat small,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-stat small { color: #9ea9b9; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-details,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-details { border: 1px solid #293b54; border-radius: 24px; background: linear-gradient(135deg, #192c43 0%, #1a2130 55%, #181e2c 100%); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-details-head h3,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-details-head h3 { color: #ced7ed; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-details-head p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-details-head p { color: #b0baca; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-link-btn,
html[data-theme="dark"] main.admin-platform-page .admin-platform-link-btn,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-open-page-link,
html[data-theme="dark"] main.admin-platform-page .admin-platform-open-page-link { border-radius: 999px; border: 1px solid #2c415b; background: #1a2130; color: #698beb; box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-link-btn:hover,
html[data-theme="dark"] main.admin-platform-page .admin-platform-link-btn:hover,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-open-page-link:hover,
html[data-theme="dark"] main.admin-platform-page .admin-platform-open-page-link:hover { background: #192c43; border-color: #60a5fa; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-card,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-card { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-main strong,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-main strong { color: #ced7ed; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-main p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-main p { color: #b0baca; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-stats span,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-stats span { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-note,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-note { border-radius: 14px; background: #171d2b; color: #eb8d8d; }
@media (max-width: 560px) {
    html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-details,
    html[data-theme="dark"] main.admin-platform-page .admin-platform-security-details { border-radius: 18px; }
}
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-details-hint,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-details-hint { border-radius: 16px; background: #181e2c; border: 1px solid #303a50; color: #b0baca; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-card:hover,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-card:hover { border-color: #314a66; box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-security-user-open,
html[data-theme="dark"] main.admin-platform-page .admin-platform-security-user-open { border-radius: 999px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .admin-platform-security-modal-backdrop { background: rgba(55, 70, 102, 0.58); }
html[data-theme="dark"] .admin-platform-security-modal-panel { border-radius: 28px; border: 1px solid #293b54; background: #1a2130; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.432); color: #ced7ed; }
html[data-theme="dark"] .admin-platform-security-modal-close { border-radius: 999px; border: 1px solid #303a50; background: #181e2c; color: #ced7ed; }
html[data-theme="dark"] .admin-platform-security-modal-close:hover { background: #192c43; border-color: #314a66; }
html[data-theme="dark"] .admin-platform-security-modal-head h3 { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-security-modal-head p { color: #b0baca; }
html[data-theme="dark"] .admin-platform-security-modal-row { border-radius: 16px; border: 1px solid #303a50; background: #181e2c; }
html[data-theme="dark"] .admin-platform-security-modal-row span { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-security-modal-row strong { color: #ced7ed; }
@media (max-width: 720px) {
    html[data-theme="dark"] .admin-platform-security-modal-panel { border-radius: 22px; }
}
html[data-theme="dark"] .admin-platform-security-modal .admin-platform-link-btn,
html[data-theme="dark"] .admin-platform-security-modal button.admin-platform-link-btn,
html[data-theme="dark"] .admin-platform-security-modal a.admin-platform-link-btn { border: 1px solid #2563eb; border-radius: 999px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff; box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24); }
html[data-theme="dark"] .admin-platform-security-modal .admin-platform-link-btn::before,
html[data-theme="dark"] .admin-platform-security-modal button.admin-platform-link-btn::before,
html[data-theme="dark"] .admin-platform-security-modal a.admin-platform-link-btn::before { border-radius: 999px; background: rgba(26, 33, 48, 0.18); color: #ffffff; }
html[data-theme="dark"] .admin-platform-security-modal .admin-platform-link-btn:hover,
html[data-theme="dark"] .admin-platform-security-modal button.admin-platform-link-btn:hover,
html[data-theme="dark"] .admin-platform-security-modal a.admin-platform-link-btn:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); border-color: #1e40af; box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32); }
html[data-theme="dark"] .admin-platform-security-modal .admin-platform-link-btn:active,
html[data-theme="dark"] .admin-platform-security-modal button.admin-platform-link-btn:active,
html[data-theme="dark"] .admin-platform-security-modal a.admin-platform-link-btn:active { box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22); }
html[data-theme="dark"] .admin-platform-security-modal .admin-platform-link-btn:focus-visible,
html[data-theme="dark"] .admin-platform-security-modal button.admin-platform-link-btn:focus-visible,
html[data-theme="dark"] .admin-platform-security-modal a.admin-platform-link-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.22); outline-offset: 3px; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .dashboard-header,
html[data-theme="dark"] main.admin-platform-page .dashboard-header { border: 1px solid #303a50; background: linear-gradient(135deg, #1a2130 0%, #191f2e 100%); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .admin-platform-header p,
html[data-theme="dark"] .admin-platform-card .inventory-top p,
html[data-theme="dark"] .admin-platform-card p { color: #b0baca; }
html[data-theme="dark"] .admin-platform-section-nav { border: 1px solid #303a50; border-radius: 24px; background: rgba(26, 33, 48, 0.94); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .admin-platform-section-nav a { border-radius: 999px; border: 1px solid #303a50; background: #1a2130; color: #bac5d6; }
html[data-theme="dark"] .admin-platform-section-nav a:hover,
html[data-theme="dark"] .admin-platform-section-nav a.is-active { border-color: #2563eb; background: #192c43; color: #698beb; box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] .admin-platform-page .admin-platform-card,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-card,
html[data-theme="dark"] main.admin-platform-page .admin-platform-card { border: 1px solid #303a50; border-radius: 28px; background: #1a2130; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .admin-platform-page .admin-platform-card > .inventory-top,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-card > .inventory-top,
html[data-theme="dark"] main.admin-platform-page .admin-platform-card > .inventory-top { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .admin-platform-page .card-label,
html[data-theme="dark"] .dashboard-page.admin-platform-page .card-label,
html[data-theme="dark"] main.admin-platform-page .card-label { border-radius: 999px; background: #192c43; color: #8ecff2; }
html[data-theme="dark"] .admin-platform-page .admin-platform-card h2,
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-card h2,
html[data-theme="dark"] main.admin-platform-page .admin-platform-card h2 { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-summary-card,
html[data-theme="dark"] .admin-platform-user-stat,
html[data-theme="dark"] .admin-platform-chat-stat,
html[data-theme="dark"] .admin-platform-error-stat,
html[data-theme="dark"] .admin-platform-security-card-small,
html[data-theme="dark"] .admin-platform-security-metric,
html[data-theme="dark"] .admin-platform-list-item,
html[data-theme="dark"] .admin-platform-chat-item,
html[data-theme="dark"] .admin-platform-security-check,
html[data-theme="dark"] .admin-platform-protected-page,
html[data-theme="dark"] .admin-platform-security-user-card { border: 1px solid #303a50; background: #1a2130; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .admin-platform-summary-card { border-left: 5px solid #2563eb; }
html[data-theme="dark"] .admin-platform-summary-card h2,
html[data-theme="dark"] .admin-platform-user-stat strong,
html[data-theme="dark"] .admin-platform-chat-stat strong,
html[data-theme="dark"] .admin-platform-error-stat strong,
html[data-theme="dark"] .admin-platform-security-metric strong { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-list,
html[data-theme="dark"] .admin-platform-errors-list,
html[data-theme="dark"] .admin-platform-chats-list,
html[data-theme="dark"] .admin-platform-security-list,
html[data-theme="dark"] .admin-platform-security-users-scroll,
html[data-theme="dark"] .admin-platform-table-wrap { scrollbar-color: #3a4657 #161c29; }
html[data-theme="dark"] .admin-platform-list::-webkit-scrollbar-track,
html[data-theme="dark"] .admin-platform-errors-list::-webkit-scrollbar-track,
html[data-theme="dark"] .admin-platform-chats-list::-webkit-scrollbar-track,
html[data-theme="dark"] .admin-platform-security-list::-webkit-scrollbar-track,
html[data-theme="dark"] .admin-platform-security-users-scroll::-webkit-scrollbar-track,
html[data-theme="dark"] .admin-platform-table-wrap::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] .admin-platform-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-platform-errors-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-platform-chats-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-platform-security-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-platform-security-users-scroll::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-platform-table-wrap::-webkit-scrollbar-thumb { background: #3a4657; border-radius: 999px; border: 2px solid #2d364b; }
html[data-theme="dark"] .admin-platform-users-table-wrap,
html[data-theme="dark"] .admin-platform-relations-table-wrap,
html[data-theme="dark"] .admin-platform-table-wrap { border: 1px solid #303a50; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-table thead th { background: #181e2c; color: #bac5d6; }
html[data-theme="dark"] .admin-platform-table tbody tr:hover td { background: #191f2e; }
html[data-theme="dark"] .admin-platform-search-input,
html[data-theme="dark"] .admin-platform-select { border-color: #2a3d58; background: #1a2130; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.063); }
html[data-theme="dark"] .admin-platform-page .telegram-btn,
html[data-theme="dark"] .admin-platform-page .secondary-btn,
html[data-theme="dark"] .admin-platform-page .admin-platform-link-btn,
html[data-theme="dark"] .admin-platform-page .admin-platform-danger-btn,
html[data-theme="dark"] .admin-platform-page .admin-platform-ok-btn { border-radius: 999px; }
html[data-theme="dark"] .admin-platform-page .telegram-btn { box-shadow: 0 16px 30px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .admin-platform-page .secondary-btn,
html[data-theme="dark"] .admin-platform-page .admin-platform-small-link { border: 1px solid #2c415b; background: #1a2130; color: #698beb; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .admin-platform-page .secondary-btn:hover,
html[data-theme="dark"] .admin-platform-page .admin-platform-small-link:hover { border-color: #2563eb; background: #192c43; }
html[data-theme="dark"] .admin-platform-empty { border: 1px dashed #344559; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-security-modal-panel,
html[data-theme="dark"] .admin-platform-user-details,
html[data-theme="dark"] .admin-platform-chat-details { border: 1px solid #293b54; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18); }
html[data-theme="dark"] .admin-platform-user-details { border-radius: 26px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-chat-details { border-radius: 24px; background: #1a2130; }
@media (max-width: 640px) {
    html[data-theme="dark"] .admin-platform-page .admin-platform-card,
    html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-card,
    html[data-theme="dark"] main.admin-platform-page .admin-platform-card { border-radius: 22px; }
    html[data-theme="dark"] .admin-platform-section-nav { border-radius: 20px; }
}
html[data-theme="dark"] .dashboard-page.admin-platform-page .dashboard-header.admin-platform-header,
html[data-theme="dark"] main.admin-platform-page .dashboard-header.admin-platform-header { border: 1px solid #293b54 !important; border-radius: 30px !important; background: radial-gradient(circle at right top, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(135deg, #1a2130 0%, #191f2e 58%, #192d43 100%) !important; box-shadow: 0 22px 58px rgba(0, 0, 0, 0.144) !important; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-hero-label,
html[data-theme="dark"] main.admin-platform-page .admin-platform-hero-label { border-radius: 999px; border: 1px solid #2d4c5d; background: #192c43; color: #8ecff2; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-header h1,
html[data-theme="dark"] main.admin-platform-page .admin-platform-header h1 { color: #ced7ed; }
html[data-theme="dark"] .dashboard-page.admin-platform-page .admin-platform-header p,
html[data-theme="dark"] main.admin-platform-page .admin-platform-header p { color: #b0baca; }
html[data-theme="dark"] .dashboard-page.admin-platform-page #adminPlatformRepairBtn,
html[data-theme="dark"] main.admin-platform-page #adminPlatformRepairBtn { background: #1a2130; }
html[data-theme="dark"] .dashboard-page.admin-platform-page #adminPlatformRefreshBtn,
html[data-theme="dark"] main.admin-platform-page #adminPlatformRefreshBtn { background: #374666; color: #ffffff; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.324); }
@media (max-width: 640px) {
    html[data-theme="dark"] .dashboard-page.admin-platform-page .dashboard-header.admin-platform-header,
    html[data-theme="dark"] main.admin-platform-page .dashboard-header.admin-platform-header { border-radius: 24px !important; }
}
html[data-theme="dark"] .admin-platform-summary-card-clickable { border: 0; }
html[data-theme="dark"] .admin-platform-summary-card-clickable:hover { box-shadow: 0 18px 38px rgba(0, 0, 0, 0.216); border-color: rgba(37, 99, 235, 0.34); background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .admin-platform-summary-card-clickable:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.24); outline-offset: 3px; }
html[data-theme="dark"] .admin-platform-summary-card-clickable em { border-radius: 999px; background: rgba(37, 99, 235, 0.08); color: #698beb; }
html[data-theme="dark"] .admin-platform-action-log-stat { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 16px; background: rgba(26, 33, 48, 0.72); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .admin-platform-action-log-stat span { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-action-log-stat strong { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-action-log-stat.is-warning { border-color: rgba(245, 158, 11, 0.35); background: rgba(68, 59, 26, 0.82); }
html[data-theme="dark"] .admin-platform-action-log-stat.is-danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(23, 29, 43, 0.82); }
html[data-theme="dark"] .admin-platform-action-log-note { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-action-log-note code { border-radius: 8px; background: rgba(55, 70, 102, 0.06); color: #ced7ed; }
html[data-theme="dark"] .admin-platform-closed-periods-card { border: 1px solid rgba(124, 92, 255, 0.18); }
html[data-theme="dark"] .admin-platform-closed-periods-form,
html[data-theme="dark"] .admin-platform-closed-periods-warnings { background: rgba(26, 33, 48, 0.72); border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 18px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .admin-platform-closed-periods-form label,
html[data-theme="dark"] .admin-platform-closed-periods-dates label { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-textarea { border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 14px; color: #ced7ed; background: #1a2130; }
html[data-theme="dark"] .admin-platform-closed-period-stat { border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(24, 30, 44, 0.85); border-radius: 16px; }
html[data-theme="dark"] .admin-platform-closed-period-stat span { color: #9ea9b9; }
html[data-theme="dark"] .admin-platform-closed-period-stat strong { color: #ced7ed; }
html[data-theme="dark"] .admin-platform-closed-period-stat.is-warning { border-color: rgba(245, 158, 11, 0.35); background: rgba(68, 59, 26, 0.85); }
html[data-theme="dark"] .admin-platform-closed-period-stat.is-danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(23, 29, 43, 0.88); }
html[data-theme="dark"] .admin-platform-closed-period-stat.is-ok { border-color: rgba(34, 197, 94, 0.28); background: rgba(23, 29, 42, 0.86); }
html[data-theme="dark"] .admin-platform-closed-period-warning { border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .admin-platform-closed-period-warning.is-danger { border-color: rgba(239, 68, 68, 0.28); background: rgba(23, 29, 43, 0.7); }
html[data-theme="dark"] .admin-platform-closed-period-warning.is-warning { border-color: rgba(245, 158, 11, 0.28); background: rgba(68, 59, 26, 0.7); }
html[data-theme="dark"] .admin-platform-closed-period-warning.is-ok { border-color: rgba(34, 197, 94, 0.26); background: rgba(23, 29, 42, 0.72); }
html[data-theme="dark"] .admin-platform-closed-period-warning p { color: #b0baca; }
html[data-theme="dark"] .admin-platform-period-adjustments { border-top: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .admin-platform-period-adjustment-form { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px; background: rgba(55, 70, 102, 0.04); }
/* --- admin-product-catalog.css --- */
html[data-theme="dark"] .product-catalog-card-head p { color: #9ea9b9; }
html[data-theme="dark"] .product-search-row input,
html[data-theme="dark"] .product-list-filters input,
html[data-theme="dark"] .product-list-filters select,
html[data-theme="dark"] .product-catalog-form input,
html[data-theme="dark"] .product-catalog-form textarea { border: 1px solid rgba(148, 163, 184, 0.55); border-radius: 14px; background: #1a2130; outline: none; }
html[data-theme="dark"] .product-catalog-form label { color: #ced7ed; }
html[data-theme="dark"] .product-normalized-box,
html[data-theme="dark"] .product-catalog-message { border-radius: 16px; background: #192c43; border: 1px solid rgba(59, 130, 246, 0.25); color: #96abe8; }
html[data-theme="dark"] .product-catalog-message.is-error { background: #171d2b; border-color: rgba(239, 68, 68, 0.28); color: #eb8d8d; }
html[data-theme="dark"] .product-catalog-message.is-success { background: #1a4430; border-color: rgba(16, 185, 129, 0.28); color: #adf6e1; }
html[data-theme="dark"] .product-result-card { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 18px; background: #1a2130; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .product-result-card p { color: #b0baca; }
html[data-theme="dark"] .product-score { border-radius: 999px; background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-catalog-table-wrap { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; }
html[data-theme="dark"] .product-catalog-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .product-catalog-table th,
html[data-theme="dark"] .product-catalog-table td { border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .product-catalog-table th { background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .product-title-cell small { color: #9ea9b9; }
html[data-theme="dark"] .product-status-badge { border-radius: 999px; background: #111620; color: #bac5d6; }
html[data-theme="dark"] .product-status-badge.active { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-status-badge.inactive { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .product-row-actions button { border: 0; border-radius: 999px; }
html[data-theme="dark"] .product-edit-btn { background: #1b2f48; color: #698beb; }
html[data-theme="dark"] .product-toggle-btn { background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .product-requests-card { border-color: rgba(37, 99, 235, 0.18); background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .product-request-empty { border: 1px dashed rgba(148, 163, 184, 0.55); border-radius: 18px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .product-request-card { border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 20px; background: #1a2130; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .product-request-topline strong { color: #ced7ed; }
html[data-theme="dark"] .product-request-card p { color: #b0baca; }
html[data-theme="dark"] .product-request-card small { color: #9ea9b9; }
html[data-theme="dark"] .product-request-status { border-radius: 999px; background: #1b2f48; color: #698beb; }
html[data-theme="dark"] .product-request-status.created,
html[data-theme="dark"] .product-request-status.linked { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-request-status.rejected { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .product-request-actions button { border: 0; border-radius: 999px; }
html[data-theme="dark"] .product-request-create { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-request-link { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .product-request-reject { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .product-field-hint { color: #9ea9b9; }
html[data-theme="dark"] .product-duplicate-box { border: 1px solid rgba(245, 158, 11, 0.32); border-radius: 18px; background: #443b1a; }
html[data-theme="dark"] .product-duplicate-head strong { color: #f3b590; }
html[data-theme="dark"] .product-duplicate-head p { color: #f3b590; }
html[data-theme="dark"] .product-duplicate-head span { border-radius: 999px; background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .product-duplicate-item { border: 1px solid rgba(245, 158, 11, 0.3); background: #1a2130; border-radius: 14px; }
html[data-theme="dark"] .product-duplicate-item small { color: #9ea9b9; }
html[data-theme="dark"] .product-copy-btn,
html[data-theme="dark"] .product-copy-inline { background: #221a45 !important; color: #a67de7 !important; }
html[data-theme="dark"] .product-catalog-compact-table tbody tr:hover,
html[data-theme="dark"] .product-catalog-compact-table tbody tr:focus-within { background: #191f2e; }
html[data-theme="dark"] .product-compact-title small,
html[data-theme="dark"] .product-compact-usage small { color: #9ea9b9; }
html[data-theme="dark"] .product-compact-specs,
html[data-theme="dark"] .product-compact-usage { color: #bac5d6; }
html[data-theme="dark"] .product-actions-menu summary { border-radius: 999px; background: #192343; color: #a09edc; }
html[data-theme="dark"] .product-actions-popover { border: 1px solid rgba(148, 163, 184, 0.32); border-radius: 16px; background: #1a2130; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .product-actions-popover button { border: 0; border-radius: 12px; }
html[data-theme="dark"] .product-details-btn { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .product-details-backdrop { background: rgba(55, 70, 102, 0.46); }
html[data-theme="dark"] .product-details-dialog { border-radius: 26px; background: #1a2130; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .product-details-close { border: 0; border-radius: 999px; background: #161c29; color: #ced7ed; }
html[data-theme="dark"] .product-details-head h2 { color: #ced7ed; }
html[data-theme="dark"] .product-details-head p,
html[data-theme="dark"] .product-muted { color: #9ea9b9; }
html[data-theme="dark"] .product-detail-row { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .product-detail-row span { color: #9ea9b9; }
html[data-theme="dark"] .product-detail-row strong { color: #ced7ed; }
html[data-theme="dark"] .product-alias-list span { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .product-details-actions button { border: 0; border-radius: 999px; }
html[data-theme="dark"] .product-catalog-import-card { border-color: rgba(99, 102, 241, 0.18); background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .product-catalog-import-form label { color: #ced7ed; }
html[data-theme="dark"] .product-catalog-import-form input[type="file"] { border: 1px solid rgba(148, 163, 184, 0.55); border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .product-import-summary span { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .product-import-summary .danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .product-import-preview-table-wrap { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .product-import-preview-table { border-collapse: collapse; }
html[data-theme="dark"] .product-import-preview-table th,
html[data-theme="dark"] .product-import-preview-table td { border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .product-import-preview-table th { background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .product-import-preview-table small { color: #9ea9b9; }
html[data-theme="dark"] .product-import-preview-table tr.has-error td { background: #181f2d; }
html[data-theme="dark"] .product-import-error { color: #eb8d8d; }
@media (max-width: 760px) {
    html[data-theme="dark"] .product-details-dialog { border-radius: 22px; }
}
html[data-theme="dark"] .product-import-safe-note { border: 1px solid rgba(59, 130, 246, 0.22); background: #192c43; color: #96abe8; border-radius: 16px; }
html[data-theme="dark"] .product-import-summary .skip { background: #1a4144; color: #a0dbee; }
html[data-theme="dark"] .product-import-preview-table tr.has-skip td { background: #171d2a; }
html[data-theme="dark"] .product-import-preview-table tr.has-update td { background: #181e2c; }
html[data-theme="dark"] .product-import-sheets { color: #b0baca; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 14px; }
html[data-theme="dark"] .product-import-progress { border: 1px solid rgba(37, 99, 235, 0.18); background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); border-radius: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .product-import-progress-head { color: #ced7ed; }
html[data-theme="dark"] .product-import-progress-head span { color: #698beb; }
html[data-theme="dark"] .product-import-progress-bar { border-radius: 999px; background: #111620; border: 1px solid rgba(148, 163, 184, 0.35); }
html[data-theme="dark"] .product-import-progress-bar span { background: linear-gradient(90deg, #2563eb, #22c55e); }
html[data-theme="dark"] .product-import-progress-current { color: #b0baca; }
html[data-theme="dark"] .product-import-progress-stats span { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .product-catalog-table-wrap .product-catalog-table thead th { box-shadow: 0 1px 0 rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .product-import-filter-btn { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 999px; background: #1a2130; color: #bac5d6; }
html[data-theme="dark"] .product-import-filter-btn b { color: #698beb; }
html[data-theme="dark"] .product-import-filter-btn.active { background: #3b4b6e; border-color: #7587a3; color: #ffffff; }
html[data-theme="dark"] .product-import-filter-btn.active b { color: #bfdbfe; }
html[data-theme="dark"] .product-import-duplicates-note { border: 1px solid rgba(14, 116, 144, 0.18); background: #1a4144; color: #a0dbee; border-radius: 16px; }
html[data-theme="dark"] .product-import-action-pill { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .product-import-action-pill.add { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-import-action-pill.update { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .product-import-action-pill.skip { background: #1d4d43; color: #adf0ec; }
html[data-theme="dark"] .product-import-action-pill.error { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .product-list-meta { border: 1px solid rgba(59, 130, 246, 0.16); background: #191f2e; color: #bac5d6; border-radius: 16px; }
html[data-theme="dark"] .product-list-meta b { color: #698beb; }
html[data-theme="dark"] .product-request-link-meta { border: 1px solid rgba(59, 130, 246, 0.22); border-radius: 18px; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .product-request-link-search input,
html[data-theme="dark"] .product-request-link-aliases textarea { border: 1px solid rgba(148, 163, 184, 0.55); border-radius: 14px; background: #1a2130; outline: none; }
html[data-theme="dark"] .product-request-link-aliases { color: #ced7ed; }
html[data-theme="dark"] .product-request-link-aliases small { color: #9ea9b9; }
html[data-theme="dark"] .product-request-link-empty { border: 1px dashed rgba(148, 163, 184, 0.55); border-radius: 16px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .product-request-link-empty.is-error { background: #171d2b; border-color: rgba(239, 68, 68, 0.28); color: #eb8d8d; }
html[data-theme="dark"] .product-request-link-result { border: 1px solid rgba(148, 163, 184, 0.32); border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .product-request-link-result strong { color: #ced7ed; }
html[data-theme="dark"] .product-request-link-result small { color: #9ea9b9; }
html[data-theme="dark"] .product-requests-summary { border: 1px solid rgba(37, 99, 235, 0.16); border-radius: 16px; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .product-request-source { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .product-request-source.supplier_physical_inventory { background: #221a45; color: #a67de7; }
html[data-theme="dark"] .product-request-source.internal_market_inventory { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .product-request-source.private_price { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .product-request-source.supplier_regional_inventory { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .product-request-status.review { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .product-request-card.is-created,
html[data-theme="dark"] .product-request-card.is-linked { background: linear-gradient(180deg, #1a2130 0%, #181f2d 100%); }
/* --- admin-reset-platform.css --- */
html[data-theme="dark"] .reset-alert,
html[data-theme="dark"] .reset-message { border-radius: 18px; border: 1px solid rgba(117, 131, 163, 0.08); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .reset-alert.is-danger { background: #171d2b; color: #f187a5; border-color: #582a30; }
html[data-theme="dark"] .reset-message { background: #192c43; color: #96abe8; border-color: #2c415b; }
html[data-theme="dark"] .reset-message.is-error { background: #461b1b; color: #eb8d8d; border-color: #582b2b; }
html[data-theme="dark"] .reset-message.is-success { background: #1a4430; color: #adf6e1; border-color: #2d5e3e; }
html[data-theme="dark"] .reset-mini-card,
html[data-theme="dark"] .reset-panel { background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .reset-mini-card span,
html[data-theme="dark"] .section-kicker { color: #9ea9b9; }
html[data-theme="dark"] .reset-mini-card strong { color: #ced7ed; }
html[data-theme="dark"] .reset-mini-card p,
html[data-theme="dark"] .muted { color: #9ea9b9; }
html[data-theme="dark"] .panel-head h2 { color: #ced7ed; }
html[data-theme="dark"] .reset-table-wrap { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .reset-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .reset-table th,
html[data-theme="dark"] .reset-table td { border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .reset-table th { background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .reset-table tr:last-child td { border-bottom: 0; }
html[data-theme="dark"] .is-confirm-panel { border-color: #582b2b; background: linear-gradient(180deg, #1a2130 0%, #181f2d 100%); }
html[data-theme="dark"] .reset-check { color: #bac5d6; }
html[data-theme="dark"] .reset-confirm-field label { color: #ced7ed; }
html[data-theme="dark"] .reset-confirm-field input { border: 1px solid #344559; border-radius: 14px; outline: none; }
html[data-theme="dark"] .reset-confirm-field input:focus { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
html[data-theme="dark"] .reset-confirm-field small { color: #9ea9b9; }
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .danger-btn { border: 0; border-radius: 14px; }
html[data-theme="dark"] .secondary-btn { background: #111620; color: #ced7ed; }
html[data-theme="dark"] .danger-btn { background: #dc2626; color: #ffffff; box-shadow: 0 10px 24px rgba(220, 38, 38, 0.25); }
html[data-theme="dark"] .danger-btn:disabled { box-shadow: none; }
/* --- chat-control.css --- */
html[data-theme="dark"] .chat-control-summary span { color: #959dae; }
html[data-theme="dark"] .chat-control-field label { color: #959dae; }
html[data-theme="dark"] .chat-control-field input,
html[data-theme="dark"] .chat-control-field select,
html[data-theme="dark"] .chat-control-form input { border: 1px solid rgba(120, 130, 160, 0.28); border-radius: 14px; background: #1a2130; color: #cfd5e1; outline: none; }
html[data-theme="dark"] .chat-control-chat-item { border: 1px solid rgba(120, 130, 160, 0.18); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .chat-control-chat-item:hover,
html[data-theme="dark"] .chat-control-chat-item.is-active { border-color: rgba(46, 95, 255, 0.48); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .chat-control-chat-title { color: #cfd5e1; }
html[data-theme="dark"] .chat-control-chat-subtitle,
html[data-theme="dark"] .chat-control-chat-last,
html[data-theme="dark"] .chat-control-chat-meta { color: #959dae; }
html[data-theme="dark"] .chat-control-badge { border-radius: 999px; background: #732b26; color: #fff; }
html[data-theme="dark"] .chat-control-status { border-radius: 999px; background: rgba(39, 57, 116, 0.08); color: #2e5fff; }
html[data-theme="dark"] .chat-control-status.is-conflict,
html[data-theme="dark"] .chat-control-status.is-attention { background: rgba(255, 149, 0, 0.14); color: #f2c187; }
html[data-theme="dark"] .chat-control-status.is-closed,
html[data-theme="dark"] .chat-control-status.is-resolved { background: rgba(34, 197, 94, 0.12); color: #9aeeba; }
html[data-theme="dark"] .chat-control-dialog-head p { color: #959dae; }
html[data-theme="dark"] .chat-control-status-panel { border: 1px solid rgba(120, 130, 160, 0.16); border-radius: 18px; background: rgba(25, 31, 46, 0.8); }
html[data-theme="dark"] .chat-control-messages { border: 1px solid rgba(120, 130, 160, 0.16); border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .chat-control-message-bubble { border-radius: 18px; background: #1a2130; border: 1px solid rgba(120, 130, 160, 0.16); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .chat-control-message.is-own .chat-control-message-bubble,
html[data-theme="dark"] .chat-control-message.is-admin .chat-control-message-bubble { background: #1a2843; }
html[data-theme="dark"] .chat-control-message-text { color: #cfd5e1; }
html[data-theme="dark"] .chat-control-message-meta { color: #959dae; }
html[data-theme="dark"] .chat-control-message.is-deleted .chat-control-message-text { color: #9aa3b8; }
html[data-theme="dark"] .chat-control-hint { color: #959dae; }
html[data-theme="dark"] .chat-control-context-menu { border-radius: 14px; background: #1a2130; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.324); border: 1px solid rgba(120, 130, 160, 0.18); }
html[data-theme="dark"] .chat-control-context-menu button { border: 0; background: transparent; border-radius: 10px; color: #cfd5e1; }
html[data-theme="dark"] .chat-control-context-menu button:hover { background: #171d2b; }
/* --- finance-accounting.css --- */
html[data-theme="dark"] .finance-accounting-page { background: #171d2b; }
html[data-theme="dark"] .finance-accounting-header p,
html[data-theme="dark"] .finance-accounting-card p,
html[data-theme="dark"] .finance-accounting-info,
html[data-theme="dark"] .finance-accounting-muted { color: #a8b0bb; }
html[data-theme="dark"] .finance-accounting-notice,
html[data-theme="dark"] .finance-accounting-admin-note,
html[data-theme="dark"] .finance-accounting-info { border-radius: 18px; background: #193043; color: #9ad4f4; border: 1px solid rgba(14, 116, 144, 0.18); }
html[data-theme="dark"] .finance-accounting-notice.is-error { background: #171d2b; color: #f07895; border-color: rgba(225, 29, 72, 0.2); }
html[data-theme="dark"] .finance-accounting-stat { background: rgba(26, 33, 48, 0.88); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .finance-accounting-stat span { color: #9ea9b9; }
html[data-theme="dark"] .finance-accounting-stat strong { color: #ced7ed; }
html[data-theme="dark"] .finance-accounting-card { border-radius: 26px; }
html[data-theme="dark"] .finance-accounting-form label,
html[data-theme="dark"] .finance-accounting-manual-form label { color: #ced7ed; }
html[data-theme="dark"] .finance-accounting-form input,
html[data-theme="dark"] .finance-accounting-form select,
html[data-theme="dark"] .finance-accounting-manual-form input,
html[data-theme="dark"] .finance-accounting-manual-form select,
html[data-theme="dark"] .finance-accounting-manual-form textarea { border: 1px solid #2a3f58; border-radius: 15px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .finance-accounting-operation,
html[data-theme="dark"] .finance-accounting-debt { border-radius: 18px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .finance-accounting-operation-number { color: #5e9ced; }
html[data-theme="dark"] .finance-event-backdrop { background: rgba(55, 70, 102, 0.62); }
html[data-theme="dark"] .finance-event-dialog { background: #1a2130; border-radius: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .finance-event-close { border: 0; background: #161c29; border-radius: 50%; }
html[data-theme="dark"] .finance-event-grid div { border: 1px solid #2a3f58; border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .finance-event-grid span { color: #9ea9b9; }
html[data-theme="dark"] .finance-accounting-operation-sub,
html[data-theme="dark"] .finance-accounting-debt-sub { color: #9ea9b9; }
html[data-theme="dark"] .finance-accounting-pill { border-radius: 999px; background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .finance-accounting-pill.is-income { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .finance-accounting-pill.is-expense { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .finance-accounting-pill.is-debt { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .finance-accounting-pill.is-neutral { background: #111620; color: #bac5d6; }
html[data-theme="dark"] .finance-accounting-direction-item { border-radius: 22px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .finance-accounting-direction-item.is-active { border-color: rgba(37, 99, 235, 0.36); box-shadow: 0 18px 42px rgba(37, 99, 235, 0.10); }
html[data-theme="dark"] .finance-accounting-direction-top strong { color: #ced7ed; }
html[data-theme="dark"] .finance-accounting-direction-top span,
html[data-theme="dark"] .finance-accounting-direction-hint { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .finance-accounting-direction-item p { color: #abb6c3; }
html[data-theme="dark"] .finance-accounting-direction-item ul { color: #bac5d6; }
html[data-theme="dark"] .finance-accounting-direction-hint { border-radius: 16px; background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .finance-payment-account-form label span { color: #c6d1e2; }
html[data-theme="dark"] .finance-payment-account-form input,
html[data-theme="dark"] .finance-payment-account-form select { border: 1px solid #2a3e57; border-radius: 16px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .finance-payment-account-item { border-radius: 18px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.24); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .finance-payment-account-item strong { color: #ced7ed; }
html[data-theme="dark"] .finance-payment-account-item span,
html[data-theme="dark"] .finance-payment-account-item p { color: #9ea9b9; }
html[data-theme="dark"] .finance-payment-account-delete { border: 0; border-radius: 12px; background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .finance-payment-account-empty { border-radius: 18px; background: #181e2c; border: 1px dashed #2a3e57; color: #9ea9b9; }
html[data-theme="dark"] .finance-accounting-operation-account { color: #b0baca; }
html[data-theme="dark"] .finance-report-card { border-radius: 24px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.24); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .finance-report-head h3 { color: #ced7ed; }
html[data-theme="dark"] .finance-report-card > p { color: #abb6c3; }
html[data-theme="dark"] .finance-report-select { border: 0; border-radius: 14px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .finance-report-item { border-radius: 18px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.18); }
html[data-theme="dark"] .finance-report-item span,
html[data-theme="dark"] .finance-report-item em { color: #9ea9b9; }
html[data-theme="dark"] .finance-report-item strong { color: #ced7ed; }
html[data-theme="dark"] .finance-report-item.is-good strong { color: #aaedc3; }
html[data-theme="dark"] .finance-report-item.is-warning strong { color: #f3b590; }
html[data-theme="dark"] .finance-report-item.is-danger strong { color: #eb8d8d; }
html[data-theme="dark"] .finance-report-item.is-neutral strong { color: #bac5d6; }
html[data-theme="dark"] .finance-report-alerts div { border-radius: 14px; background: #43311a; color: #f1a48a; border: 1px solid rgba(234, 88, 12, 0.15); }
html[data-theme="dark"] .finance-report-empty { border-radius: 20px; background: #181e2c; border: 1px dashed #2a3e57; color: #9ea9b9; }
html[data-theme="dark"] .finance-link-card { border-radius: 24px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.24); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .finance-link-card.is-ok { border-color: rgba(22, 163, 74, 0.26); }
html[data-theme="dark"] .finance-link-card.is-warning { border-color: rgba(234, 179, 8, 0.34); }
html[data-theme="dark"] .finance-link-card.is-empty { border-color: rgba(148, 163, 184, 0.34); }
html[data-theme="dark"] .finance-link-card.is-error { border-color: rgba(220, 38, 38, 0.28); }
html[data-theme="dark"] .finance-link-head h3 { color: #ced7ed; }
html[data-theme="dark"] .finance-link-head > strong { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .finance-link-card.is-ok .finance-link-head > strong { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .finance-link-card.is-warning .finance-link-head > strong { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .finance-link-card.is-empty .finance-link-head > strong { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .finance-link-card.is-error .finance-link-head > strong { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .finance-link-card > p { color: #abb6c3; }
html[data-theme="dark"] .finance-link-rows div { border-radius: 18px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.18); }
html[data-theme="dark"] .finance-link-rows span { color: #9ea9b9; }
html[data-theme="dark"] .finance-link-rows strong { color: #ced7ed; }
html[data-theme="dark"] .finance-link-problems p { border-radius: 14px; background: #43311a; color: #f1a48a; border: 1px solid rgba(234, 88, 12, 0.15); }
html[data-theme="dark"] .finance-link-empty { border-radius: 20px; background: #181e2c; border: 1px dashed #2a3e57; color: #9ea9b9; }
html[data-theme="dark"] .finance-period-guard-card { border-color: rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .finance-period-status { border-radius: 22px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .finance-period-status span { color: #9ea9b9; }
html[data-theme="dark"] .finance-period-status strong { color: #ced7ed; }
html[data-theme="dark"] .finance-period-status em { border-radius: 999px; color: #ced7ed; background: #192343; }
html[data-theme="dark"] .finance-period-status.is-ok { background: #171d2a; border-color: #2d5e3e; }
html[data-theme="dark"] .finance-period-status.is-warning { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .finance-period-status.is-danger { background: #171d2b; border-color: #582b2b; }
html[data-theme="dark"] .finance-period-stat { border-radius: 18px; border: 1px solid #303a50; background: #181e2c; }
html[data-theme="dark"] .finance-period-stat span { color: #9ea9b9; }
html[data-theme="dark"] .finance-period-stat strong { color: #ced7ed; }
html[data-theme="dark"] .finance-period-stat em { color: #9ea9b9; }
html[data-theme="dark"] .finance-period-stat.is-warning { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .finance-period-stat.is-danger { background: #171d2b; border-color: #582b2b; }
html[data-theme="dark"] .finance-period-stat.is-good { background: #171d2a; border-color: #2d5e3e; }
html[data-theme="dark"] .finance-period-warnings div,
html[data-theme="dark"] .finance-period-ok,
html[data-theme="dark"] .finance-period-empty { border-radius: 16px; }
html[data-theme="dark"] .finance-period-warnings div { background: #43311a; border: 1px solid #60492e; color: #f1a48a; }
html[data-theme="dark"] .finance-period-ok { background: #171d2a; border: 1px solid #2d5e3e; color: #aaedc3; }
html[data-theme="dark"] .finance-period-empty { background: #181e2c; border: 1px dashed #344559; color: #9ea9b9; }
html[data-theme="dark"] .finance-period-rules { border-radius: 20px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .finance-period-rules strong { color: #ced7ed; }
html[data-theme="dark"] .finance-period-rules ul { color: #b0baca; }
html[data-theme="dark"] .finance-accounting-operation-adjustment { border-radius: 999px; background: #443b1a; color: #f3b590; border: 1px solid #685d32; }
html[data-theme="dark"] .finance-event-button.finance-accounting-operation:hover { border-color: rgba(6, 114, 255, 0.45); box-shadow: 0 16px 34px rgba(6, 114, 255, 0.12); }
html[data-theme="dark"] .finance-event-button.finance-accounting-operation:focus-visible { outline: 3px solid rgba(6, 114, 255, 0.45); outline-offset: 2px; }
html[data-theme="dark"] .jd-combo-list { background: #1a2130; border: 1px solid #2a3f58; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.252); }
html[data-theme="dark"] .jd-combo-group { color: #9ea9b9; }
html[data-theme="dark"] .jd-combo-option { border-radius: 10px; color: #ced7ed; }
html[data-theme="dark"] .jd-combo-option:hover,
html[data-theme="dark"] .jd-combo-option.is-active { background: #161c29; }
html[data-theme="dark"] .jd-combo-empty { color: #9ea9b9; }
html[data-theme="dark"] .finance-toast { border-radius: 14px; background: #374666; color: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .finance-toast.is-error { background: #b91c1c; }
html[data-theme="dark"] #financeOperations.finance-accounting-list { scrollbar-color: #2a3849 transparent; }
html[data-theme="dark"] #financeOperations.finance-accounting-list::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 8px; }
/* --- hosting-check.css --- */
html[data-theme="dark"] .hosting-check-alert { border-radius: 18px; border: 1px solid rgba(234, 179, 8, 0.22); background: #43311a; color: #f1a48a; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .hosting-status-help > div { border: 1px solid rgba(49, 74, 102, 0.38); background: rgba(25, 44, 67, 0.78); border-radius: 20px; }
html[data-theme="dark"] .hosting-status-help strong { color: #ced7ed; }
html[data-theme="dark"] .hosting-status-help p { color: #b0baca; }
html[data-theme="dark"] .hosting-mini-card,
html[data-theme="dark"] .hosting-panel { background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 24px; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .hosting-mini-card span,
html[data-theme="dark"] .section-kicker { color: #9ea9b9; }
html[data-theme="dark"] .hosting-mini-card strong { color: #ced7ed; }
html[data-theme="dark"] .hosting-mini-card p,
html[data-theme="dark"] .muted { color: #9ea9b9; }
html[data-theme="dark"] .panel-head h2 { color: #ced7ed; }
html[data-theme="dark"] .hosting-table-wrap { border: 1px solid rgba(48, 58, 80, 0.95); border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .hosting-table { border-collapse: separate; border-spacing: 0; }
html[data-theme="dark"] .hosting-table th,
html[data-theme="dark"] .hosting-table td { border-bottom: 1px solid rgba(48, 58, 80, 0.88); }
html[data-theme="dark"] .hosting-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .hosting-table td { color: #ced7ed; }
html[data-theme="dark"] .hosting-table tr:last-child td { border-bottom: 0; }
html[data-theme="dark"] .hosting-table tbody tr:hover td { background: rgba(24, 30, 44, 0.7); }
html[data-theme="dark"] .status-pill { border-radius: 999px; }
html[data-theme="dark"] .status-pill.is-success { color: #aaedc3; background: #1c482b; }
html[data-theme="dark"] .status-pill.is-warning { color: #f3b590; background: #4d441d; }
html[data-theme="dark"] .status-pill.is-danger { color: #eb8d8d; background: #461b1b; }
html[data-theme="dark"] .status-pill.is-info { color: #8099e9; background: #1b2f48; }
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .secondary-btn { border: 0; border-radius: 14px; }
html[data-theme="dark"] .primary-btn { background: #374666; color: #fff; }
html[data-theme="dark"] .secondary-btn { background: #111620; color: #ced7ed; }
html[data-theme="dark"] .hosting-transfer-panel { border-color: rgba(59, 130, 246, 0.18); }
html[data-theme="dark"] .hosting-transfer-panel .section-kicker { color: #5b96ed; }
html[data-theme="dark"] .hosting-clean-panel { border-color: rgba(234, 179, 8, 0.22); }
html[data-theme="dark"] .hosting-clean-panel .section-kicker { color: #f1b281; }
html[data-theme="dark"] .hosting-db-panel { border-color: rgba(16, 185, 129, 0.2); }
html[data-theme="dark"] .hosting-db-panel .section-kicker { color: #a1f5dd; }
/* --- integrity-control.css --- */
html[data-theme="dark"] .integrity-control-page { background: #171d2b; }
html[data-theme="dark"] .integrity-control-header p,
html[data-theme="dark"] .integrity-control-card p,
html[data-theme="dark"] .integrity-control-info,
html[data-theme="dark"] .integrity-control-muted { color: #a8b0bb; }
html[data-theme="dark"] .integrity-control-notice,
html[data-theme="dark"] .integrity-control-admin-note,
html[data-theme="dark"] .integrity-control-info { border-radius: 18px; background: #193043; color: #9ad4f4; border: 1px solid rgba(14, 116, 144, 0.18); }
html[data-theme="dark"] .integrity-control-notice.is-error { background: #171d2b; color: #f07895; border-color: rgba(225, 29, 72, 0.2); }
html[data-theme="dark"] .integrity-control-stat { background: rgba(26, 33, 48, 0.88); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .integrity-control-stat span { color: #9ea9b9; }
html[data-theme="dark"] .integrity-control-stat strong { color: #ced7ed; }
html[data-theme="dark"] .integrity-control-card { border-radius: 26px; }
html[data-theme="dark"] .integrity-control-form label { color: #ced7ed; }
html[data-theme="dark"] .integrity-control-form input,
html[data-theme="dark"] .integrity-control-form select { border: 1px solid #2a3f58; border-radius: 15px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .integrity-control-issue,
html[data-theme="dark"] .integrity-control-history-item { border-radius: 18px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .integrity-control-issue strong,
html[data-theme="dark"] .integrity-control-history-item strong { color: #ced7ed; }
html[data-theme="dark"] .integrity-control-issue-sub,
html[data-theme="dark"] .integrity-control-history-sub { color: #9ea9b9; }
html[data-theme="dark"] .integrity-control-pill { border-radius: 999px; background: #1b3547; color: #8ecff2; }
html[data-theme="dark"] .integrity-control-pill.is-danger,
html[data-theme="dark"] .integrity-control-stat.is-danger strong { color: #f07895; }
html[data-theme="dark"] .integrity-control-pill.is-danger { background: #461a1e; }
html[data-theme="dark"] .integrity-control-pill.is-warning,
html[data-theme="dark"] .integrity-control-stat.is-warning strong { color: #f1b281; }
html[data-theme="dark"] .integrity-control-pill.is-warning { background: #4d441d; }
html[data-theme="dark"] .integrity-control-pill.is-info { background: #1b3547; color: #8ecff2; }
html[data-theme="dark"] .integrity-control-pill.is-success,
html[data-theme="dark"] .integrity-control-stat.is-success strong { color: #a1f5dd; }
html[data-theme="dark"] .integrity-control-pill.is-success { background: #1c482b; }
/* --- internal-market-absolute.css --- */
html[data-theme="dark"] .jd-im-abs-page { background: linear-gradient(120deg,#181e2c 0%,#192d43 100%); color: #d1d9eb; }
html[data-theme="dark"] .jd-im-abs-hero { background: #1a2130; border-radius: 28px; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .stage-label,
html[data-theme="dark"] .section-label { color: #5793ec; }
html[data-theme="dark"] .jd-im-abs-hero h1,
html[data-theme="dark"] .jd-im-abs-card h2 { color: #ced7ed; }
html[data-theme="dark"] .jd-im-abs-hero p,
html[data-theme="dark"] .jd-im-abs-card p { color: #9ea9b9; }
html[data-theme="dark"] .soft-btn,
html[data-theme="dark"] .outline-btn,
html[data-theme="dark"] .dark-btn { border: 0; border-radius: 16px; }
html[data-theme="dark"] .soft-btn { background: #161c29; color: #ced7ed; }
html[data-theme="dark"] .outline-btn { background: #1a2130; color: #ced7ed; border: 2px solid #7583a3; }
html[data-theme="dark"] .dark-btn { background: #374666; color: #fff; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .jd-im-abs-alert { background: #461b1b; color: #eb8d8d; border-radius: 18px; }
html[data-theme="dark"] .jd-im-abs-card { background: #1a2130; border-radius: 24px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .jd-im-abs-form label { color: #bac5d6; }
html[data-theme="dark"] .jd-im-abs-form select { border: 1px solid #2a3d58; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .jd-im-abs-metric { background: #1a2130; border-radius: 20px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .jd-im-abs-metric span { color: #9ea9b9; }
html[data-theme="dark"] .jd-im-abs-metric strong { color: #ced7ed; }
html[data-theme="dark"] .jd-im-abs-status-box { border-radius: 18px; background: #181e2c; color: #bac5d6; }
html[data-theme="dark"] .jd-im-abs-status-box.success { background: #1a4430; color: #aaedc3; }
html[data-theme="dark"] .jd-im-abs-status-box.warning { background: #443b1a; color: #f3b590; }
html[data-theme="dark"] .jd-im-abs-status-box.critical { background: #171d2b; color: #eb8d8d; }
html[data-theme="dark"] .jd-im-abs-issue { border: 1px solid #303a50; border-radius: 18px; }
html[data-theme="dark"] .jd-im-abs-badge { border-radius: 999px; }
html[data-theme="dark"] .jd-im-abs-badge.success { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .jd-im-abs-badge.warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .jd-im-abs-badge.critical,
html[data-theme="dark"] .jd-im-abs-badge.danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .jd-im-abs-badge.info { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .jd-im-abs-badge.pending { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .jd-im-abs-table-wrap { border-radius: 18px; border: 1px solid #303a50; }
html[data-theme="dark"] .jd-im-abs-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .jd-im-abs-table th,
html[data-theme="dark"] .jd-im-abs-table td { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .jd-im-abs-table th { background: #181e2c; color: #bac5d6; }
html[data-theme="dark"] .jd-im-abs-table td { color: #cad4e1; }
html[data-theme="dark"] .jd-im-abs-small { color: #9ea9b9; }
html[data-theme="dark"] .jd-im-abs-empty { background: #181e2c; border-radius: 16px; color: #9ea9b9; }
html[data-theme="dark"] .jd-im-abs-link-btn { border: 0; border-radius: 12px; background: #192d43; color: #6fa7ef; }
html[data-theme="dark"] .jd-im-abs-alert.is-success { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .jd-im-abs-alert.is-warning { background: #4d441d; color: #f3b590; }
/* --- internal-market.css --- */
html[data-theme="dark"] .internal-market-tab-btn { border: 0; background: #192d43; color: #61a2ed; border-radius: 18px; }
html[data-theme="dark"] .internal-market-tab-btn:hover,
html[data-theme="dark"] .internal-market-tab-btn.is-active { background: #374666; color: #ffffff; }
html[data-theme="dark"] .internal-market-muted { color: #9fa9b8; }
html[data-theme="dark"] .internal-market-notice { border-radius: 20px; background: #45381a; border: 1px solid #675332; color: #ced7ed; }
html[data-theme="dark"] .internal-market-notice.success { background: #1a4426; border-color: #2f613b; }
html[data-theme="dark"] .internal-market-notice.error { background: #171d2b; border-color: #5a2b2b; }
html[data-theme="dark"] .internal-market-flow div { border-radius: 18px; background: #192d43; color: #61a2ed; }
html[data-theme="dark"] .internal-market-flow span { color: #9fa9b8; }
html[data-theme="dark"] .internal-market-form-grid label,
html[data-theme="dark"] .internal-market-inline-form label { color: #bac5d6; }
html[data-theme="dark"] .internal-market-form-grid input,
html[data-theme="dark"] .internal-market-form-grid select,
html[data-theme="dark"] .internal-market-inline-form input,
html[data-theme="dark"] .internal-market-filter-row input,
html[data-theme="dark"] .internal-market-offer-mini-form input { border: 1px solid #2b3f59; border-radius: 16px; color: #ced7ed; outline: none; background: #1a2130; }
html[data-theme="dark"] .internal-market-form-grid input:focus,
html[data-theme="dark"] .internal-market-form-grid select:focus,
html[data-theme="dark"] .internal-market-inline-form input:focus,
html[data-theme="dark"] .internal-market-filter-row input:focus,
html[data-theme="dark"] .internal-market-offer-mini-form input:focus { border-color: #0077ff; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12); }
html[data-theme="dark"] .internal-market-table { border-collapse: collapse; }
html[data-theme="dark"] .internal-market-table th,
html[data-theme="dark"] .internal-market-table td { border-bottom: 1px solid #2a3c56; }
html[data-theme="dark"] .internal-market-table th { color: #9fa9b8; }
html[data-theme="dark"] .internal-market-status { border-radius: 999px; background: #192d43; color: #61a2ed; }
html[data-theme="dark"] .internal-market-status.warning { background: #45321a; color: #efa670; }
html[data-theme="dark"] .internal-market-status.success { background: #1b482c; color: #8befb1; }
html[data-theme="dark"] .internal-market-action-stack button { border-radius: 12px; }
html[data-theme="dark"] .internal-market-price-card,
html[data-theme="dark"] .internal-market-request-card,
html[data-theme="dark"] .internal-market-request-item,
html[data-theme="dark"] .internal-market-my-offer-card { border: 1px solid #2a3c56; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .internal-market-price-card h3,
html[data-theme="dark"] .internal-market-request-card h3,
html[data-theme="dark"] .internal-market-request-item h4,
html[data-theme="dark"] .internal-market-my-offer-card h3 { color: #ced7ed; }
html[data-theme="dark"] .internal-market-meta-grid > div { border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .internal-market-meta-grid span,
html[data-theme="dark"] .internal-market-offers-list span { color: #9fa9b8; }
html[data-theme="dark"] .internal-market-supplier-line { border-radius: 14px; background: #191f2e; }
html[data-theme="dark"] .internal-market-offer-row { border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .internal-market-empty { border-radius: 18px; background: #191f2e; color: #9fa9b8; }
html[data-theme="dark"] .internal-market-request-item.manual { background: #191f2e; }
html[data-theme="dark"] .internal-market-rate-panel { background: linear-gradient(135deg, #1a2130 0%, #181f2d 100%); border: 1px solid #293d55; border-radius: 28px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .internal-market-bulk-rate-label { color: #becae1; }
html[data-theme="dark"] .internal-market-bulk-rate-input { border: 1px solid #2a3f58; border-radius: 18px; background: #1a2130; color: #ccdbf6; outline: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .internal-market-bulk-rate-input:focus { border-color: #2f83ff; background: #19202e; box-shadow: 0 0 0 4px rgba(47, 131, 255, 0.14); }
html[data-theme="dark"] .internal-market-bulk-rate-input-wrap span { color: #a1acbd; }
html[data-theme="dark"] .internal-market-bulk-rate-btn { border-radius: 18px !important; }
html[data-theme="dark"] .internal-market-modal-backdrop { background: rgba(55, 70, 102, 0.58); }
html[data-theme="dark"] .internal-market-modal-card { background: #1a2130; border-radius: 32px; box-shadow: 0 35px 90px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .internal-market-buy-info > div { border-radius: 20px; background: #181e2c; border: 1px solid #293e54; }
html[data-theme="dark"] .internal-market-buy-info span { color: #a1acbd; }
html[data-theme="dark"] .internal-market-modal-actions button { border-radius: 18px; }
@media (max-width: 700px) {
    html[data-theme="dark"] .internal-market-modal-card { border-radius: 24px; }
}
html[data-theme="dark"] .internal-market-tab-btn { border: none; background: #192d43; color: #61a1ed; border-radius: 20px; }
html[data-theme="dark"] .internal-market-tab-btn:hover { background: #1b3047; }
html[data-theme="dark"] .internal-market-tab-btn.is-active { background: #183d81; color: #ffffff; }
html[data-theme="dark"] .internal-market-clickable-card:hover { border-color: #2c405c; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-card { background: #1a2130; border: 1px solid #2a3c56; border-radius: 28px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .internal-market-chat-list-item { border: 1px solid #2a3c56; background: #191f2e; border-radius: 20px; }
html[data-theme="dark"] .internal-market-chat-list-item:hover,
html[data-theme="dark"] .internal-market-chat-list-item.is-active { background: #192d43; border-color: #2c405c; }
html[data-theme="dark"] .internal-market-chat-list-item.is-active { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-chat-list-item strong { color: #ccdbf6; }
html[data-theme="dark"] .internal-market-chat-list-item p { color: #9fa9b8; }
html[data-theme="dark"] .internal-market-chat-unread { border-radius: 999px; background: #6e252b; color: #ffffff; }
html[data-theme="dark"] .internal-market-chat-window { border: 1px solid #2a3c56; border-radius: 24px; background: #1a2130; }
html[data-theme="dark"] .internal-market-chat-window-head { border-bottom: 1px solid #2a3c56; background: #191f2e; }
html[data-theme="dark"] .internal-market-chat-messages { background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .internal-market-chat-bubble { border-radius: 18px; background: #192d43; border: 1px solid #293c55; color: #ccdbf6; }
html[data-theme="dark"] .internal-market-chat-message.is-mine .internal-market-chat-bubble { background: #183d81; border-color: #7586a3; color: #ffffff; }
html[data-theme="dark"] .internal-market-chat-message.is-system .internal-market-chat-bubble { background: #45381a; border-color: #675332; color: #ccdbf6; }
html[data-theme="dark"] .internal-market-chat-form { border-top: 1px solid #2a3c56; background: #1a2130; }
html[data-theme="dark"] .internal-market-chat-form input { border: 1px solid #2b3f59; border-radius: 18px; outline: none; }
html[data-theme="dark"] .internal-market-chat-form input:focus { border-color: #0077ff; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12); }
html[data-theme="dark"] .internal-market-chat-form button { border-radius: 18px; }
html[data-theme="dark"] .internal-market-chat-message.system,
html[data-theme="dark"] .internal-market-chat-message.is-system,
html[data-theme="dark"] .internal-market-chat-message.system-message,
html[data-theme="dark"] .internal-market-chat-system-message { background: #44361a !important; border: 1px solid #675432 !important; border-radius: 18px !important; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09) !important; color: #ced7ed !important; }
html[data-theme="dark"] .internal-market-chat-message.system .internal-market-chat-message-time,
html[data-theme="dark"] .internal-market-chat-message.is-system .internal-market-chat-message-time,
html[data-theme="dark"] .internal-market-chat-system-message .internal-market-chat-message-time { color: #9ea9b9 !important; }
html[data-theme="dark"] .internal-market-chat-messages > .im-chat-system-compact,
html[data-theme="dark"] .im-chat-system-compact { background: #45361a !important; border: 1px solid #675332 !important; border-radius: 16px !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09) !important; color: #ced7ed !important; }
html[data-theme="dark"] .im-chat-system-date { color: #9ea9b9 !important; }
html[data-theme="dark"] .im-chat-system-text { color: #d2dafa !important; }
html[data-theme="dark"] .internal-market-clickable-card:hover { border-color: #2c405c; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-textarea { border: 1px solid #2a3e58; border-radius: 18px; outline: none; background: #1a2130; color: #ccdbf6; }
html[data-theme="dark"] .internal-market-textarea:focus { border-color: #324967; box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.12); }
html[data-theme="dark"] .internal-market-chat-search-box input { border: 1px solid #2a3e58; border-radius: 18px; background: #1a2130; color: #ccdbf6; outline: none; }
html[data-theme="dark"] .internal-market-chat-search-box input::placeholder { color: #a5aab4; }
html[data-theme="dark"] .internal-market-chat-search-box input:focus { border-color: #324967; box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.12); }
html[data-theme="dark"] .internal-market-chat-delete-btn { border: 2px solid #ff4d4f; border-radius: 16px; background: #181e2c; color: #ee696e; }
html[data-theme="dark"] .internal-market-chat-delete-btn:hover { background: #451a1a; box-shadow: 0 12px 28px rgba(215, 25, 32, 0.15); }
html[data-theme="dark"] .internal-market-chat-list-date { color: #9ea9b9 !important; }
html[data-theme="dark"] .internal-market-chat-unread { border-radius: 999px !important; background: #71262a !important; color: #ffffff !important; box-shadow: 0 8px 18px rgba(255, 59, 70, 0.32) !important; }
html[data-theme="dark"] .internal-market-chat-list-item.is-active .internal-market-chat-unread { background: #71262a !important; color: #ffffff !important; }
html[data-theme="dark"] .internal-market-chat-message:not(.is-system) .internal-market-chat-bubble { border-radius: 18px !important; }
html[data-theme="dark"] .internal-market-chat-message.is-mine:not(.is-system) .internal-market-chat-bubble { background: #183d81 !important; color: #ffffff !important; border-radius: 18px 18px 6px 18px !important; }
html[data-theme="dark"] .internal-market-chat-message:not(.is-mine):not(.is-system) .internal-market-chat-bubble { background: #171d2b !important; color: #ccdbf6 !important; border: 1px solid #2a3e58 !important; border-radius: 18px 18px 18px 6px !important; }
html[data-theme="dark"] .internal-market-sales-header { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-sales-row { border: 1px solid #2a3e58; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .internal-market-sales-row:hover { border-color: #2c405c; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-sales-cell span { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-sales-cell strong { color: #ccdbf6; }
html[data-theme="dark"] .internal-market-sale-status-select { border: none; border-radius: 999px; outline: none; }
html[data-theme="dark"] .internal-market-sale-status-select.warning { background: #48351b; color: #ed9559; }
html[data-theme="dark"] .internal-market-sale-status-select.info { background: #1b2f48; color: #61a1ed; }
html[data-theme="dark"] .internal-market-sale-status-select.success { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .internal-market-sale-status-select:focus { box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.12); }
html[data-theme="dark"] .internal-market-sale-status-select,
html[data-theme="dark"] .internal-market-sales-cell.status .internal-market-status { border-radius: 999px !important; }
html[data-theme="dark"] .im-table-price-cell span,
html[data-theme="dark"] .im-table-price-cell small { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-table { border-collapse: collapse; }
html[data-theme="dark"] .im-table-price-cell span,
html[data-theme="dark"] .im-table-price-cell small { color: #9ea9b9; }
html[data-theme="dark"] .im-table-price-cell span,
html[data-theme="dark"] .im-table-price-cell small { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-table { border-collapse: collapse; }
html[data-theme="dark"] .im-table-price-cell span,
html[data-theme="dark"] .im-table-price-cell small { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-zero-stock { border-radius: 999px; background: #461a1e; color: #e66666; }
html[data-theme="dark"] .internal-market-status.danger { background: #461a1e; color: #e66666; }
html[data-theme="dark"] .internal-market-inventory-row:hover td { background: #191f2e; }
html[data-theme="dark"] .im-inventory-detail-summary > div,
html[data-theme="dark"] .im-inventory-detail-card { border: 1px solid #2a3e58; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .im-inventory-detail-summary span,
html[data-theme="dark"] .im-inventory-detail-card p,
html[data-theme="dark"] .im-inventory-detail-table th { color: #9ea9b9; }
html[data-theme="dark"] .im-inventory-detail-summary strong { color: #ccdbf6; }
html[data-theme="dark"] .im-inventory-detail-summary strong.is-danger { color: #ee696e; }
html[data-theme="dark"] .im-inventory-detail-card h3 { color: #ccdbf6; }
html[data-theme="dark"] .im-inventory-detail-section h3 { color: #ccdbf6; }
html[data-theme="dark"] .im-inventory-detail-table-wrap { border: 1px solid #2a3e58; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .im-inventory-detail-table { border-collapse: collapse; }
html[data-theme="dark"] .im-inventory-detail-table th,
html[data-theme="dark"] .im-inventory-detail-table td { border-bottom: 1px solid #2d364b; }
html[data-theme="dark"] .im-inventory-detail-table th { background: #191f2e; }
html[data-theme="dark"] .im-inventory-detail-table td { color: #ccdbf6; }
html[data-theme="dark"] .im-inventory-detail-table tr:last-child td { border-bottom: none; }
html[data-theme="dark"] .internal-market-empty.error { color: #ee696e; background: #181e2c; border-color: #582b2b; }
html[data-theme="dark"] #imInventoryDetailModal .internal-market-modal-card { border-radius: 34px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] #imInventoryDetailModal .internal-market-modal-head { border-bottom: 1px solid #2a3e57; background: #1a2130; }
html[data-theme="dark"] #imInventoryDetailModal .internal-market-modal-head h2 { color: #ccdbf6; }
html[data-theme="dark"] #imInventoryDetailModal .internal-market-modal-head p { color: #9ea9b9; }
html[data-theme="dark"] #imInventoryDetailBody { background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-summary > div { border: 1px solid #2a3e57; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-summary span { color: #9ea9b9; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-summary strong { color: #ccdbf6; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-summary strong.is-danger { color: #ef4444; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-card { border: 1px solid #2a3e57; border-radius: 24px; background: #1a2130; box-shadow: 0 16px 35px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-card h3 { color: #ccdbf6; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-card p { color: #9ea9b9; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-section h3 { color: #ccdbf6; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table-wrap { border: 1px solid #2a3e57; border-radius: 24px; background: #1a2130; box-shadow: 0 16px 35px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table { border-collapse: collapse; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table th,
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table td { border-bottom: 1px solid #2d364b; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table th { background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table td { color: #ccdbf6; }
html[data-theme="dark"] #imInventoryDetailBody .im-inventory-detail-table tr:last-child td { border-bottom: none; }
html[data-theme="dark"] #imInventoryDetailBody .internal-market-empty { border-radius: 22px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] #imInventoryDetailBody .internal-market-status { border-radius: 999px; }
@media (max-width: 700px) {
    html[data-theme="dark"] #imInventoryDetailModal .internal-market-modal-card { border-radius: 24px; }
}
html[data-theme="dark"] .internal-market-imei-field textarea,
html[data-theme="dark"] .internal-market-textarea { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; color: #ccdbf6; outline: none; }
html[data-theme="dark"] .internal-market-imei-field textarea:focus,
html[data-theme="dark"] .internal-market-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14); }
html[data-theme="dark"] .internal-market-imei-mini { border-radius: 999px; background: #192d43; color: #5887ec; }
html[data-theme="dark"] .internal-market-imei-check { border: 1px solid #2a3e57; border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .internal-market-imei-check input { accent-color: #d3dcf0; }
html[data-theme="dark"] .internal-market-imei-check span { color: #ccdbf6; }
html[data-theme="dark"] .internal-market-imei-check small { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-imei-check:has(input:checked) { border-color: #60a5fa; background: #192c43; }
html[data-theme="dark"] .internal-market-imei-control-box { border: 1px solid #2a3e57; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .internal-market-imei-control-box strong { color: #ccdbf6; }
html[data-theme="dark"] .internal-market-imei-control-box span { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-imei-hint { border: 1px solid #2a3e57; border-radius: 18px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .internal-market-imei-hint strong { color: #ccdbf6; }
html[data-theme="dark"] .internal-market-imeis-textarea { border: 1px solid #2a3e57; border-radius: 18px; color: #ccdbf6; outline: none; }
html[data-theme="dark"] .internal-market-imeis-textarea:focus { border-color: #0077ff; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.14); }
html[data-theme="dark"] #imInventoryImeisModal .internal-market-modal-card { border-radius: 32px; }
html[data-theme="dark"] .internal-market-imei-device-row { border: 1px solid #293e56; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .internal-market-imei-device-number { border-radius: 14px; background: #1a2e44; color: #61a0ed; }
html[data-theme="dark"] .internal-market-imei-device-row label { color: #9eabbc; }
html[data-theme="dark"] .internal-market-imei-device-input { border: 1px solid #2a3f58; border-radius: 15px; background: #1a2130; color: #cddcf5; outline: none; }
html[data-theme="dark"] .internal-market-imei-device-input:focus { border-color: #0072ff; box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.12); }
html[data-theme="dark"] #imInventoryImeisCounter,
html[data-theme="dark"] #imInventoryImeisSummary { color: #9eabbc; }
html[data-theme="dark"] .internal-market-imei-summary-block { border: 1px solid #2a3e58; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .internal-market-imei-toggle-btn { border-radius: 14px; border: 1px solid #2c405b; background: #1a2130; }
html[data-theme="dark"] .internal-market-selected-imei-chip { border-radius: 999px; background: #1a2e44; color: #61a0ed; }
html[data-theme="dark"] .internal-market-imei-modal-counter { color: #9eabbc; }
html[data-theme="dark"] .internal-market-imei-card { border: 1px solid #2a3d56; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .internal-market-imei-card:hover { border-color: #0072ff; box-shadow: 0 8px 24px rgba(0, 114, 255, 0.08); }
html[data-theme="dark"] .internal-market-imei-card.is-selected { border-color: #0072ff; background: #181e2c; }
html[data-theme="dark"] .internal-market-imei-card-number { color: #cddcf5; }
html[data-theme="dark"] .internal-market-imei-card-status { border-radius: 999px; }
html[data-theme="dark"] .internal-market-imei-card-status.available { background: #141a26; color: #8ae9b1; }
html[data-theme="dark"] .internal-market-imei-card-status.selected { background: #1a2e44; color: #61a0ed; }
html[data-theme="dark"] #imDirectOrderImeiSearch { border-radius: 18px; border: 1px solid #2a3f58; background: #1a2130; }
html[data-theme="dark"] #imDirectOrderImeiModalCounter { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-imei-picker-card { border: 1px solid #2a3f58; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] .internal-market-imei-picker-card:hover { border-color: #314a66; background: #192d43; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-imei-picker-card.is-selected { border-color: #007aff; background: linear-gradient(135deg, #1a2e44, #1a2130); box-shadow: 0 16px 38px rgba(0, 122, 255, 0.16); }
html[data-theme="dark"] .internal-market-imei-picker-card.is-disabled { background: #161c29; }
html[data-theme="dark"] .internal-market-imei-picker-check { border-radius: 50%; border: 2px solid #344559; background: #1a2130; color: #ffffff; }
html[data-theme="dark"] .internal-market-imei-picker-card.is-selected .internal-market-imei-picker-check { background: #007aff; border-color: #007aff; }
html[data-theme="dark"] .internal-market-imei-picker-label { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-imei-picker-content strong { color: #ced7ed; }
html[data-theme="dark"] .internal-market-imei-picker-status { border-radius: 999px; }
html[data-theme="dark"] .internal-market-imei-picker-status.success { color: #86efad; background: #1c482b; }
html[data-theme="dark"] .internal-market-imei-picker-status.warning { color: #ee9465; background: #4a361c; }
html[data-theme="dark"] .internal-market-imei-picker-status.danger { color: #e66666; background: #461b1b; }
html[data-theme="dark"] .internal-market-imei-picker-status.default { color: #b0baca; background: #111620; }
html[data-theme="dark"] .internal-market-request-timer { border-radius: 999px; background: #192d43; color: #61a4ed; }
html[data-theme="dark"] .internal-market-request-timer.is-expired { background: #461b1b; color: #e66666; }
html[data-theme="dark"] .internal-market-price-card.internal-market-clickable-card:hover { box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-best-supplier-line { border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .internal-market-best-supplier-line strong { color: #d2defa; }
html[data-theme="dark"] .internal-market-best-supplier-price span,
html[data-theme="dark"] .internal-market-offer-modal-price span { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-best-supplier-price strong,
html[data-theme="dark"] .internal-market-offer-modal-price strong { color: #d2defa; }
html[data-theme="dark"] .internal-market-offer-modal-row { border: 1px solid #2a3e57; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .internal-market-status.info { background: #1b2f48; color: #6199ed; }
html[data-theme="dark"] .internal-market-offer-submit-btn { border-radius: 16px !important; }
html[data-theme="dark"] .internal-market-offer-chat-btn { border-radius: 14px !important; }
html[data-theme="dark"] .internal-market-offer-chat-btn { border-radius: 14px !important; }
html[data-theme="dark"] .internal-market-best-offer-row { border: 1px solid #293b54; background: #191f2e; }
html[data-theme="dark"] .internal-market-request-item.internal-market-clickable-card:hover { background: #19202f; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .internal-market-offer-modal-row { border: 1px solid #2a3e57; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .internal-market-offer-modal-row span,
html[data-theme="dark"] .internal-market-offer-modal-price span { color: #9ea9b9; }
html[data-theme="dark"] .internal-market-offer-modal-row strong,
html[data-theme="dark"] .internal-market-offer-modal-price strong { color: #d2defa; }
html[data-theme="dark"] #imTabInventory .internal-market-table-wrap { border-radius: 22px; border: 1px solid #2a3e57; background: #1a2130; }
html[data-theme="dark"] #imTabInventory .internal-market-table { border-collapse: collapse; }
html[data-theme="dark"] #imTabInventory .internal-market-table thead th { background: #1a2130; }
html[data-theme="dark"] #imTabCreateRequest #imRequestItemsList::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #imTabCreateRequest #imRequestItemsList::-webkit-scrollbar-thumb { background: #3a4657; border-radius: 999px; }
html[data-theme="dark"] #imTabInventory .inventory-row-btn { border-radius: 14px !important; }
html[data-theme="dark"] #imTabCreateRequest .im-create-request-main-fields label { color: #bac5d6; }
html[data-theme="dark"] #imTabCreateRequest .im-create-request-main-fields input { border: 1px solid #2b3f59; border-radius: 18px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] #imTabCreateRequest .im-create-request-main-fields input:focus { border-color: #0077ff; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12); }
html[data-theme="dark"] #imTabCreateRequest .im-request-items-head-left h3 { color: #d2defa; }
html[data-theme="dark"] #imTabCreateRequest .im-request-time-note { border: 1px solid #2a3e57 !important; border-radius: 18px !important; background: #191f2e !important; color: #bac5d6 !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09) !important; }
html[data-theme="dark"] #imTabCreateRequest .form-actions { background: transparent !important; }
html[data-theme="dark"] .im-period-btn { border: 1px solid #2a3e57; border-radius: 14px; background: #181e2c; color: #61a2ed; }
html[data-theme="dark"] .im-period-btn:hover { background: #1a2d45; }
html[data-theme="dark"] .im-period-btn.is-active { background: #364464; border-color: #7585a3; color: #ffffff; }
html[data-theme="dark"] .im-my-offer-update-box { border: 1px solid #2a3e57; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .im-my-offer-update-grid label { color: #9ea9b9; }
html[data-theme="dark"] .im-my-offer-update-grid input { border: 1px solid #2b3f59; border-radius: 15px; background: #1a2130; color: #d2defa; }
html[data-theme="dark"] .im-my-offer-update-grid .telegram-btn { border-radius: 15px; }
html[data-theme="dark"] .im-my-offer-closed-note { border-radius: 16px; background: #43311a; color: #ee9465; }
html[data-theme="dark"] .im-my-offer-inactive-row .secondary-btn { border-radius: 16px; }
html[data-theme="dark"] #imTabMyOffers #imMyOffersList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabMyOffers #imMyOffersList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabMyOffers #imMyOffersList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabRequestsToMe .internal-market-list::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabDirectRequests .internal-market-list::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabIncomingRequests .internal-market-list::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabRequestsToMe #imDirectOrdersList::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabDirectRequests #imDirectOrdersList::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabIncomingRequests #imDirectOrdersList::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabRequestsToMe #imRequestsToMeList::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabDirectRequests #imRequestsToMeList::-webkit-scrollbar-track,
html[data-theme="dark"] #imTabIncomingRequests #imRequestsToMeList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabRequestsToMe .internal-market-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabDirectRequests .internal-market-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabIncomingRequests .internal-market-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabRequestsToMe #imDirectOrdersList::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabDirectRequests #imDirectOrdersList::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabIncomingRequests #imDirectOrdersList::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabRequestsToMe #imRequestsToMeList::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabDirectRequests #imRequestsToMeList::-webkit-scrollbar-thumb,
html[data-theme="dark"] #imTabIncomingRequests #imRequestsToMeList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabRequestsToMe .internal-market-list::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabDirectRequests .internal-market-list::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabIncomingRequests .internal-market-list::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabRequestsToMe #imDirectOrdersList::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabDirectRequests #imDirectOrdersList::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabIncomingRequests #imDirectOrdersList::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabRequestsToMe #imRequestsToMeList::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabDirectRequests #imRequestsToMeList::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #imTabIncomingRequests #imRequestsToMeList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabDirectInbox #imDirectInboxList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabDirectInbox #imDirectInboxList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabDirectInbox #imDirectInboxList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] .im-direct-inbox-chat-btn { border-radius: 16px; }
html[data-theme="dark"] #imTabMyRequests #imMyRequestsList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabMyRequests #imMyRequestsList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabMyRequests #imMyRequestsList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] .im-deals-filter-block > span { color: #9ea9b9; }
html[data-theme="dark"] .im-deals-search-row input { border: 1px solid #2b3f59; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .im-deals-search-row input:focus { border-color: #0077ff; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12); }
html[data-theme="dark"] .im-deal-card { border: 1px solid #2a3e57; border-radius: 24px; background: #1a2130; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .im-deal-actions .secondary-btn { border-radius: 15px; }
html[data-theme="dark"] .im-deal-details-section { border: 1px solid #2a3e57; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .im-deal-details-section h3 { color: #d2defa; }
html[data-theme="dark"] .im-deal-details-section p { color: #bac5d6; }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabDeals #imDealsList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabDeals .im-deal-card.im-deal-row { border-radius: 18px !important; }
html[data-theme="dark"] #imTabDeals .im-deal-row:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] #imTabDeals .im-deal-card.im-deal-row { border-radius: 18px !important; }
html[data-theme="dark"] #imTabDeals .im-deal-row:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .internal-market-sale-status-select.danger { background: #461a1e; color: #e66666; }
html[data-theme="dark"] #imTabPrices #imPriceList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabPrices #imPriceList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabPrices #imPriceList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabDirectSales #imDirectSalesList::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] #imTabInventory .im-work-panel { border-radius: 24px !important; }
html[data-theme="dark"] #imTabInventory #imWorkStatusBadge.danger { background: #461a1e; color: #e66666; }
html[data-theme="dark"] #imTabInventory #imWorkStatusBadge.success { background: #1c482b; color: #86efad; }
html[data-theme="dark"] .internal-market-sales-cell.debt small { color: #9ea9b9; }
html[data-theme="dark"] .im-debt-card { border: 1px solid #2a3e58; border-radius: 24px; background: #1a2130; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .im-debt-card.danger { border-color: #582a30; background: #181f2d; }
html[data-theme="dark"] .im-debt-card.success { border-color: #2d5e3e; background: #181f2d; }
html[data-theme="dark"] .im-debt-card h3 { color: #ccdbf6; }
html[data-theme="dark"] .im-debt-card-amounts div { border-radius: 18px; background: #181e2c; border: 1px solid #283953; }
html[data-theme="dark"] .im-debt-card-amounts span { color: #9ea9b9; }
html[data-theme="dark"] .im-debt-card-amounts strong { color: #ccdbf6; }
html[data-theme="dark"] .im-debt-comment { border-radius: 18px; background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .im-sale-debt-form-grid label { color: #a3aebe; }
html[data-theme="dark"] .internal-market-status.muted { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] #imTabInventory .internal-market-table { border-collapse: collapse !important; }
html[data-theme="dark"] .im-accounting-filters select { border-radius: 16px; border: 1px solid #2a3e57; color: #cddcf5; background: #1a2130; }
html[data-theme="dark"] .im-accounting-entry,
html[data-theme="dark"] .im-accounting-client-card { border: 1px solid #293b54; background: #1a2130; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .im-accounting-entry-meta span { border-radius: 999px; background: #161c29; color: #a3aebe; }
html[data-theme="dark"] .internal-market-status.sale,
html[data-theme="dark"] .im-accounting-entry.sale .internal-market-status { background: #1c482b; color: #86efad; }
html[data-theme="dark"] .internal-market-status.purchase,
html[data-theme="dark"] .im-accounting-entry.purchase .internal-market-status { background: #1b3547; color: #7bc9f0; }
html[data-theme="dark"] .internal-market-status.money-in,
html[data-theme="dark"] .im-accounting-entry.money-in .internal-market-status { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .internal-market-status.money-out,
html[data-theme="dark"] .im-accounting-entry.money-out .internal-market-status { background: #43311a; color: #ee9465; }
html[data-theme="dark"] .internal-market-status.debt,
html[data-theme="dark"] .im-accounting-entry.debt .internal-market-status { background: #4d441d; color: #f1b281; }
html[data-theme="dark"] .internal-market-status.cancel,
html[data-theme="dark"] .im-accounting-entry.cancel .internal-market-status { background: #461a1e; color: #e66666; }
html[data-theme="dark"] #imTabAccounting .im-accounting-list::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] #imTabAccounting .im-accounting-list::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.25); border-radius: 999px; }
html[data-theme="dark"] #imTabAccounting .im-accounting-list::-webkit-scrollbar-thumb:hover { background: rgba(55, 70, 102, 0.4); }
html[data-theme="dark"] .im-tab-badge { border-radius: 999px; background: #71262d; color: #ffffff; box-shadow: 0 10px 22px rgba(255, 59, 79, 0.35); }
@media (max-width: 900px) {
    html[data-theme="dark"] .internal-market-section-card { border-radius: 22px; }
    html[data-theme="dark"] .internal-market-modal-card { border-radius: 22px !important; }
}
@media (max-width: 640px) {
    html[data-theme="dark"] .internal-market-tab-btn { border-radius: 15px; }
    html[data-theme="dark"] .internal-market-section-card { border-radius: 20px; }
    html[data-theme="dark"] .internal-market-notice { border-radius: 16px; }
    html[data-theme="dark"] .internal-market-meta-grid > div,
    html[data-theme="dark"] .internal-market-summary .dashboard-card { border-radius: 18px; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] #imTabInventory .internal-market-table { border-collapse: collapse !important; }
}
html[data-theme="dark"] .im-private-list-card { border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(55, 70, 102, 0.32); border-radius: 16px; }
html[data-theme="dark"] .im-private-list-card-meta span { border-radius: 999px; background: rgba(58, 70, 87, 0.14); color: #cbd5e1; }
html[data-theme="dark"] .im-private-access-box { border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(55, 70, 102, 0.24); border-radius: 16px; }
html[data-theme="dark"] .im-private-access-row { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 14px; background: rgba(51, 65, 95, 0.22); }
html[data-theme="dark"] .im-private-access-row span { color: #94a3b8; }
html[data-theme="dark"] .im-private-table-wrap { border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); }
html[data-theme="dark"] .im-private-table { border-collapse: collapse; }
html[data-theme="dark"] .im-private-table th,
html[data-theme="dark"] .im-private-table td { border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
html[data-theme="dark"] .im-private-table th { color: #94a3b8; background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .im-private-table tr:last-child td { border-bottom: none; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-search-box { background: linear-gradient(180deg, #1a2130 0%, #181f2d 100%) !important; border: 1px solid #293c56 !important; border-radius: 22px !important; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.108) !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-search-label { border-radius: 999px !important; background: #192d43 !important; border: 1px solid #293d55 !important; color: #5690ec !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-search-row::before { color: #94a3b8 !important; }
html[data-theme="dark"] #imTabPrivatePrices #imPrivateItemsSearch { border: 1px solid #2a3e58 !important; border-radius: 18px !important; background: #1a2130 !important; color: #ced7ed !important; outline: none !important; }
html[data-theme="dark"] #imTabPrivatePrices #imPrivateItemsSearch::placeholder { color: #94a3b8 !important; }
html[data-theme="dark"] #imTabPrivatePrices #imPrivateItemsSearch:focus { border-color: #33496a !important; box-shadow: 0 0 0 4px rgba(22, 112, 255, 0.10) !important; background: #1a2130 !important; }
html[data-theme="dark"] #imTabPrivatePrices #imPrivateItemsSearchBtn { border-radius: 18px !important; border: 1px solid #7583a3 !important; background: #374666 !important; color: #ffffff !important; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.288) !important; }
html[data-theme="dark"] #imTabPrivatePrices #imPrivateItemsSearchBtn:hover { background: #2e406b !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.36) !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-search-box small { color: #9ea9b9 !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-state-actions .secondary-btn { border-radius: 15px !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-access-box,
html[data-theme="dark"] #imTabPrivatePrices .im-private-list-card,
html[data-theme="dark"] #imTabPrivatePrices .im-private-table-wrap,
html[data-theme="dark"] .im-table-import-box { background: #1a2130 !important; border: 1px solid #2a3e58 !important; color: #bac5d6 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-access-box { background: #191f2e !important; border-radius: 18px !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-table th { background: #151b28 !important; color: #9ea9b9 !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-table td { background: #1a2130 !important; color: #bac5d6 !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-table td strong,
html[data-theme="dark"] #imTabPrivatePrices .im-private-list-card strong,
html[data-theme="dark"] #imTabPrivatePrices .im-private-access-box h4 { color: #c6d3e7 !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-list-card-meta span { background: #151b28 !important; color: #9ea9b9 !important; }
html[data-theme="dark"] .im-table-import-box { border-radius: 18px; }
html[data-theme="dark"] .im-table-import-head h3,
html[data-theme="dark"] .im-table-import-head h4 { color: #c6d3e7; }
html[data-theme="dark"] .im-table-import-form input,
html[data-theme="dark"] .im-table-import-form select { border-radius: 16px; border: 1px solid #2a3e58; background: #1a2130; color: #c6d3e7; }
html[data-theme="dark"] .im-table-import-summary span { border-radius: 999px; background: #151b28; color: #bac5d6; }
html[data-theme="dark"] .im-table-import-summary span.danger { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .im-table-import-preview-table-wrap { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .im-table-import-preview-table { border-collapse: collapse; }
html[data-theme="dark"] .im-table-import-preview-table th,
html[data-theme="dark"] .im-table-import-preview-table td { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .im-table-import-preview-table th { background: #151b28; color: #9ea9b9; }
html[data-theme="dark"] .im-table-import-preview-table tr.has-error td { background: #181f2d; }
html[data-theme="dark"] .internal-market-error-text { color: #eb7a7a; }
html[data-theme="dark"] .im-table-import-box { background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%) !important; border: 1px solid #2a3e58 !important; border-radius: 26px !important; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108) !important; color: #bac5d6 !important; }
html[data-theme="dark"] .im-table-import-box::before { background: linear-gradient(90deg, #1670ff 0%, #213763 45%, #1b2f48 100%); }
html[data-theme="dark"] .im-table-import-head .card-label { background: #192d43 !important; color: #5690ec !important; border: 1px solid #293d55 !important; border-radius: 999px !important; }
html[data-theme="dark"] .im-table-import-head h3,
html[data-theme="dark"] .im-table-import-head h4 { color: #c6d3e7 !important; }
html[data-theme="dark"] .im-table-import-head p { color: #9ea9b9 !important; }
html[data-theme="dark"] .im-table-import-links .secondary-btn { background: #161c29 !important; color: #c6d3e7 !important; border: 1px solid #2a3e58 !important; border-radius: 16px !important; box-shadow: none !important; }
html[data-theme="dark"] .im-table-import-links .secondary-btn:hover { background: #1b2f46 !important; }
html[data-theme="dark"] .im-table-import-form { background: #1a2130 !important; border: 1px solid #293b55 !important; border-radius: 22px !important; }
html[data-theme="dark"] .im-table-import-form label { color: #bac5d6 !important; }
html[data-theme="dark"] .im-table-import-form select,
html[data-theme="dark"] .im-table-import-form input[type="file"] { background: #191f2e !important; color: #c6d3e7 !important; border: 1px solid #2a3e58 !important; border-radius: 18px !important; outline: none !important; }
html[data-theme="dark"] .im-table-import-form select:focus,
html[data-theme="dark"] .im-table-import-form input[type="file"]:focus { border-color: #334a6b !important; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important; }
html[data-theme="dark"] .im-table-import-form input[type="file"]::file-selector-button { border: none !important; border-radius: 12px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .im-table-import-form input[type="file"]::file-selector-button:hover { background: #2e406b !important; }
html[data-theme="dark"] .im-table-import-form .telegram-btn { border-radius: 18px !important; background: #374666 !important; color: #ffffff !important; border: 1px solid #7583a3 !important; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.324) !important; }
html[data-theme="dark"] .im-table-import-form .telegram-btn:hover { background: #2e406b !important; }
html[data-theme="dark"] .im-table-import-preview { background: #1a2130 !important; border: 1px solid #293b55 !important; border-radius: 22px !important; }
html[data-theme="dark"] .im-table-import-summary span { background: #161c29 !important; color: #bac5d6 !important; border: 1px solid #2a3e58 !important; border-radius: 999px !important; }
html[data-theme="dark"] .im-table-import-summary span.danger { background: #461b1b !important; color: #eb7a7a !important; border-color: #582b2b !important; }
html[data-theme="dark"] .im-table-import-preview-table-wrap { border: 1px solid #2a3e58 !important; border-radius: 18px !important; background: #1a2130 !important; }
html[data-theme="dark"] .im-table-import-preview-table { border-collapse: collapse !important; }
html[data-theme="dark"] .im-table-import-preview-table th { background: #151b28 !important; color: #9ea9b9 !important; }
html[data-theme="dark"] .im-table-import-preview-table td,
html[data-theme="dark"] .im-table-import-preview-table th { border-bottom: 1px solid #2d374c !important; }
html[data-theme="dark"] .im-table-import-preview-table td { color: #bac5d6 !important; background: #1a2130 !important; }
html[data-theme="dark"] .im-table-import-preview-table tr:hover td { background: #191f2e !important; }
html[data-theme="dark"] .im-table-import-preview-table tr.has-error td { background: #181f2d !important; }
html[data-theme="dark"] .internal-market-error-text { color: #eb7a7a !important; }
html[data-theme="dark"] .jd-chat-context-menu { border-radius: 14px; background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.12); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .jd-chat-context-menu button { border: none; background: transparent; border-radius: 10px; color: #d1d9eb; }
html[data-theme="dark"] .jd-chat-context-menu button:hover { background: rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .im-absolute-accounting-box { border: 1px solid rgba(37, 99, 235, 0.16); border-radius: 28px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06)); }
html[data-theme="dark"] .im-absolute-accounting-head h3 { color: #ced7ed; }
html[data-theme="dark"] .im-absolute-accounting-status { border-radius: 18px; color: #bac5d6; background: rgba(24, 30, 44, 0.9); border: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .im-absolute-accounting-status.ok { color: #aaedc3; background: #1c482b; border-color: #346c48; }
html[data-theme="dark"] .im-absolute-accounting-status.warning { color: #f3b590; background: #4d441d; border-color: #685d32; }
html[data-theme="dark"] .im-absolute-accounting-status.pending,
html[data-theme="dark"] .im-absolute-accounting-status.empty { color: #698beb; background: #1b2f48; border-color: #2c415b; }
html[data-theme="dark"] .im-absolute-accounting-row { border-radius: 20px; background: #1a2130; border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .im-absolute-accounting-row.warning { border-left: 5px solid #f59e0b; }
html[data-theme="dark"] .im-absolute-accounting-row.pending { border-left: 5px solid #3b82f6; }
html[data-theme="dark"] .im-absolute-accounting-row.cancel { border-left: 5px solid #ef4444; }
html[data-theme="dark"] .im-absolute-accounting-row.ok { border-left: 5px solid #22c55e; }
html[data-theme="dark"] .im-absolute-accounting-row-top strong { color: #ced7ed; }
html[data-theme="dark"] .im-absolute-accounting-row small { color: #9ea9b9; }
@media (max-width: 760px) {
    html[data-theme="dark"] .im-absolute-accounting-box { border-radius: 22px; }
}
html[data-theme="dark"] .internal-market-absolute-hint { border: 1px solid rgba(0, 119, 255, 0.18); border-radius: 18px; background: linear-gradient(135deg, rgba(0,119,255,.08), rgba(37,99,235,.04)); color: #96abe8; }
html[data-theme="dark"] .im-deal-absolute-banner { border: 1px solid rgba(14, 165, 233, .22); border-radius: 22px; background: linear-gradient(135deg, #171d2b, #1a2130); }
html[data-theme="dark"] .im-deal-absolute-banner h3 { color: #d2defa; }
html[data-theme="dark"] .im-deal-absolute-banner p,
html[data-theme="dark"] .im-deal-note { color: #b0baca; }
html[data-theme="dark"] .im-deal-flow-status-card { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-deal-flow-status-card > span { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-path-step { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-deal-path-step.done { border-color: rgba(34, 197, 94, .25); background: rgba(23, 29, 42, 0.8); }
html[data-theme="dark"] .im-deal-path-step.warning,
html[data-theme="dark"] .im-deal-path-step.waiting { border-color: rgba(245, 158, 11, .28); background: rgba(68, 59, 26, 0.85); }
html[data-theme="dark"] .im-deal-path-step.future,
html[data-theme="dark"] .im-deal-path-step.pending { border-color: rgba(59, 130, 246, .22); background: rgba(25, 44, 67, 0.75); }
html[data-theme="dark"] .im-deal-path-step-number { border-radius: 14px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .im-deal-path-step-head strong { color: #d2defa; }
html[data-theme="dark"] .im-deal-path-step-body p { color: #b0baca; }
html[data-theme="dark"] .im-deal-imei-card { border: 1px solid #2a3e57; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .im-deal-imei-card strong { color: #d2defa; }
html[data-theme="dark"] .im-deal-imei-card span { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-mini-table { border-collapse: separate; border-spacing: 0 8px; }
html[data-theme="dark"] .im-deal-mini-table th { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-mini-table td { background: #1a2130; border-top: 1px solid #303a50; border-bottom: 1px solid #303a50; color: #bac5d6; }
html[data-theme="dark"] .im-deal-mini-table td:first-child { border-left: 1px solid #303a50; border-radius: 12px 0 0 12px; }
html[data-theme="dark"] .im-deal-mini-table td:last-child { border-right: 1px solid #303a50; border-radius: 0 12px 12px 0; }
html[data-theme="dark"] .im-deal-two-columns h4 { color: #d2defa; }
html[data-theme="dark"] .im-deal-issue-card { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-deal-issue-card.critical { border-color: rgba(239, 68, 68, .28); background: rgba(23, 29, 43, 0.75); }
html[data-theme="dark"] .im-deal-issue-card.warning { border-color: rgba(245, 158, 11, .30); background: rgba(68, 59, 26, 0.8); }
html[data-theme="dark"] .im-deal-issue-card.info { border-color: rgba(59, 130, 246, .22); background: rgba(25, 44, 67, 0.75); }
html[data-theme="dark"] .im-deal-issue-head strong { color: #d2defa; }
html[data-theme="dark"] .im-deal-issue-card p { color: #bac5d6; }
html[data-theme="dark"] .im-deal-issue-card small { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-ok-box,
html[data-theme="dark"] .internal-market-loading-box { border: 1px solid rgba(34, 197, 94, .25); border-radius: 18px; background: rgba(23, 29, 42, 0.82); color: #aaedc3; }
html[data-theme="dark"] .internal-market-loading-box { border-color: rgba(59, 130, 246, .24); background: rgba(25, 44, 67, 0.78); color: #698beb; }
html[data-theme="dark"] .im-deal-events-section { border-color: rgba(245, 158, 11, .24); background: linear-gradient(135deg, rgba(68, 59, 26, 0.72), rgba(26, 33, 48, 0.95)); }
html[data-theme="dark"] .im-deal-event-card { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-deal-event-card.danger { border-color: rgba(239, 68, 68, .30); background: rgba(23, 29, 43, 0.8); }
html[data-theme="dark"] .im-deal-event-card.warning { border-color: rgba(245, 158, 11, .30); background: rgba(68, 59, 26, 0.82); }
html[data-theme="dark"] .im-deal-event-card.success { border-color: rgba(34, 197, 94, .28); background: rgba(23, 29, 42, 0.82); }
html[data-theme="dark"] .im-deal-event-card.info { border-color: rgba(59, 130, 246, .24); background: rgba(25, 44, 67, 0.78); }
html[data-theme="dark"] .im-deal-event-head strong { color: #d2defa; }
html[data-theme="dark"] .im-deal-event-head span:not(.internal-market-status) { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-event-meta span { border-radius: 999px; background: rgba(55, 70, 102, 0.06); color: #bac5d6; }
html[data-theme="dark"] .im-deal-event-card p { color: #bac5d6; }
html[data-theme="dark"] .im-deal-event-actions-box { border: 1px dashed rgba(117, 131, 163, 0.22); border-radius: 18px; background: rgba(26, 33, 48, 0.76); }
html[data-theme="dark"] .im-deal-event-actions-box strong { color: #d2defa; }
html[data-theme="dark"] .im-deal-event-row-note { color: #f3b590 !important; }
html[data-theme="dark"] .im-deal-event-hint { border: 1px solid rgba(59, 130, 246, .22); border-radius: 16px; background: rgba(25, 44, 67, 0.78); }
html[data-theme="dark"] .im-deal-event-actions .secondary-btn.danger,
html[data-theme="dark"] .secondary-btn.danger { border-color: rgba(220, 38, 38, .28); background: rgba(23, 29, 43, 0.92); color: #eb8d8d; }
html[data-theme="dark"] .im-deal-event-actions .secondary-btn.danger:hover,
html[data-theme="dark"] .secondary-btn.danger:hover { background: rgba(70, 27, 27, 0.96); }
html[data-theme="dark"] .im-nested-imei-options label { border: 1px solid #2a3f58; border-radius: 14px; background: #191f2e; }
html[data-theme="dark"] .im-imei-change-btn { border: 0; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0874f9 0%, #0758d1 100%); box-shadow: 0 10px 24px rgba(8, 116, 249, .24); }
html[data-theme="dark"] .im-imei-change-btn:hover { box-shadow: 0 14px 30px rgba(8, 116, 249, .3); filter: brightness(1.04); }
html[data-theme="dark"] .im-imei-change-btn:focus-visible { outline: 3px solid rgba(8, 116, 249, .25); outline-offset: 3px; }
html[data-theme="dark"] .im-imei-summary { border: 1px solid #2a3f58; border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .im-nested-imei-readonly span { border-radius: 999px; background: #1a2c43; border: 1px solid #2b3f59; }
html[data-theme="dark"] .im-integrity-main-status { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; background: rgba(55, 70, 102, 0.03); }
html[data-theme="dark"] .im-integrity-main-status p { color: #9ea9b9; }
html[data-theme="dark"] .im-integrity-main-status.critical { border-color: rgba(239, 68, 68, 0.28); background: rgba(115, 38, 38, 0.07); }
html[data-theme="dark"] .im-integrity-main-status.warning { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.08); }
html[data-theme="dark"] .im-integrity-main-status.success { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.07); }
html[data-theme="dark"] .im-integrity-mini-grid > div { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 14px; background: rgba(24, 30, 44, 0.85); }
html[data-theme="dark"] .im-integrity-mini-grid span { color: #9ea9b9; }
html[data-theme="dark"] .im-integrity-mini-grid strong { color: #ced7ed; }
html[data-theme="dark"] .im-integrity-issue-card { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 18px; background: #1a2130; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .im-integrity-issue-card.critical { border-color: rgba(239, 68, 68, 0.35); background: rgba(23, 29, 43, 0.88); }
html[data-theme="dark"] .im-integrity-issue-card.warning { border-color: rgba(245, 158, 11, 0.35); background: rgba(68, 59, 26, 0.9); }
html[data-theme="dark"] .im-integrity-issue-card.info { border-color: rgba(59, 130, 246, 0.25); background: rgba(25, 44, 67, 0.85); }
html[data-theme="dark"] .im-integrity-issue-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-integrity-issue-card p { color: #bac5d6; }
html[data-theme="dark"] .im-integrity-issue-card small { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-integrity-section { border-color: rgba(14, 165, 233, 0.22); background: rgba(23, 29, 43, 0.55); }
html[data-theme="dark"] .im-integrity-fix-btn.is-danger { border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.08); }
html[data-theme="dark"] .im-deal-unified-status-box { border: 1px solid #2a3e57; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .im-deal-unified-status-box.warning { border-color: #60492e; background: #171e2b; }
html[data-theme="dark"] .im-deal-unified-status-box.critical,
html[data-theme="dark"] .im-deal-unified-status-box.danger { border-color: #582b2b; background: #181e2c; }
html[data-theme="dark"] .im-deal-unified-status-box.success { border-color: #2d5e3e; background: #181e2c; }
html[data-theme="dark"] .im-deal-unified-status-head h3 { color: #d2defa; }
html[data-theme="dark"] .im-deal-unified-status-head p { color: #b0baca; }
html[data-theme="dark"] .im-deal-unified-status-grid > div { border: 1px solid #293e54; border-radius: 14px; background: rgba(26, 33, 48, 0.78); }
html[data-theme="dark"] .im-deal-unified-status-grid span { color: #9ea9b9; }
html[data-theme="dark"] .im-deal-unified-status-grid strong { color: #ced7ed; }
html[data-theme="dark"] .im-deal-status-note { border: 1px solid #2a3e57; border-radius: 14px; background: #191f2e; color: #bac5d6; }
html[data-theme="dark"] .im-deal-status-note.is-warning { border-color: #60492e; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .im-buyer-stock-empty strong { color: #d1d9eb; }
html[data-theme="dark"] .im-buyer-stock-empty span,
html[data-theme="dark"] .im-buyer-stock-empty small { color: #a5aab4; }
html[data-theme="dark"] .im-imei-control-section { border-color: rgba(37, 99, 235, 0.16); }
html[data-theme="dark"] .im-imei-control-head { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 18px; background: rgba(24, 30, 44, 0.9); }
html[data-theme="dark"] .im-imei-control-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-imei-control-summary > div { border-radius: 16px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.28); }
html[data-theme="dark"] .im-imei-control-summary span,
html[data-theme="dark"] .im-imei-control-meta span { color: #9ea9b9; }
html[data-theme="dark"] .im-imei-control-summary strong { color: #ced7ed; }
html[data-theme="dark"] .im-imei-control-card { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.28); background: #1a2130; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .im-imei-control-card.success { border-color: rgba(34, 197, 94, 0.28); background: rgba(23, 29, 42, 0.55); }
html[data-theme="dark"] .im-imei-control-card.warning { border-color: rgba(245, 158, 11, 0.32); background: rgba(68, 59, 26, 0.75); }
html[data-theme="dark"] .im-imei-control-card.danger { border-color: rgba(239, 68, 68, 0.32); background: rgba(23, 29, 43, 0.72); }
html[data-theme="dark"] .im-imei-control-card-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-imei-control-card p { color: #b0baca; }
html[data-theme="dark"] .im-imei-card-warning { color: #f1b281; }
html[data-theme="dark"] .im-imei-action-btn { border-radius: 12px; }
html[data-theme="dark"] .im-imei-action-btn.is-danger,
html[data-theme="dark"] .im-integrity-fix-btn.is-danger { border-color: rgba(220, 38, 38, 0.38); color: #eb7a7a; background: rgba(23, 29, 43, 0.8); }
html[data-theme="dark"] .im-imei-history-box { border-radius: 18px; border: 1px dashed rgba(148, 163, 184, 0.45); background: rgba(24, 30, 44, 0.72); }
html[data-theme="dark"] .im-imei-history-box h4 { color: #ced7ed; }
html[data-theme="dark"] .im-imei-history-item { border-radius: 14px; background: #1a2130; border: 1px solid rgba(48, 58, 80, 0.95); }
html[data-theme="dark"] .im-imei-history-item.event { background: rgba(25, 44, 67, 0.85); }
html[data-theme="dark"] .im-imei-history-item span,
html[data-theme="dark"] .im-imei-history-item small { color: #9ea9b9; }
html[data-theme="dark"] .im-imei-history-item p { color: #bac5d6; }
html[data-theme="dark"] .im-stock-control-section { border-color: rgba(16, 185, 129, 0.18); }
html[data-theme="dark"] .im-stock-control-head { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 18px; background: rgba(23, 29, 42, 0.78); }
html[data-theme="dark"] .im-stock-control-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-stock-control-summary > div,
html[data-theme="dark"] .im-stock-position-card,
html[data-theme="dark"] .im-stock-lot-card { border-radius: 16px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.28); }
html[data-theme="dark"] .im-stock-control-summary span,
html[data-theme="dark"] .im-stock-control-meta span { color: #9ea9b9; }
html[data-theme="dark"] .im-stock-control-summary strong { color: #ced7ed; }
html[data-theme="dark"] .im-stock-section-subtitle { color: #ced7ed; }
html[data-theme="dark"] .im-stock-lot-card { background: #1a2130; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .im-stock-lot-card.success { border-color: rgba(34, 197, 94, 0.28); background: rgba(23, 29, 42, 0.55); }
html[data-theme="dark"] .im-stock-lot-card.warning { border-color: rgba(245, 158, 11, 0.32); background: rgba(68, 59, 26, 0.75); }
html[data-theme="dark"] .im-stock-lot-card.danger { border-color: rgba(239, 68, 68, 0.32); background: rgba(23, 29, 43, 0.72); }
html[data-theme="dark"] .im-stock-lot-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-stock-warning { color: #f1b281; }
html[data-theme="dark"] .im-stock-ok { color: #a1f5dd; }
html[data-theme="dark"] .im-stock-action-btn { border-radius: 12px; }
html[data-theme="dark"] .im-stock-action-btn.is-danger { border-color: rgba(220, 38, 38, 0.38); color: #eb7a7a; background: rgba(23, 29, 43, 0.8); }
html[data-theme="dark"] .im-stock-movements-box h4 { color: #ced7ed; }
html[data-theme="dark"] .im-accounting-control-section { border-color: rgba(59, 130, 246, 0.18); }
html[data-theme="dark"] .im-accounting-control-head { border: 1px solid rgba(49, 74, 102, 0.45); border-radius: 18px; background: rgba(25, 44, 67, 0.82); }
html[data-theme="dark"] .im-accounting-control-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-accounting-control-summary > div,
html[data-theme="dark"] .im-accounting-event-card,
html[data-theme="dark"] .im-accounting-log-item { border-radius: 16px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.28); }
html[data-theme="dark"] .im-accounting-control-summary span,
html[data-theme="dark"] .im-accounting-event-card span,
html[data-theme="dark"] .im-accounting-log-item span { color: #9ea9b9; }
html[data-theme="dark"] .im-accounting-control-summary strong { color: #ced7ed; }
html[data-theme="dark"] .im-accounting-action-btn { border-radius: 12px; }
html[data-theme="dark"] .im-accounting-section-subtitle { color: #ced7ed; }
html[data-theme="dark"] .im-accounting-event-card strong,
html[data-theme="dark"] .im-accounting-log-item strong { color: #ced7ed; }
html[data-theme="dark"] .im-accounting-event-card small,
html[data-theme="dark"] .im-accounting-log-item p { color: #b0baca; }
html[data-theme="dark"] .im-accounting-table-box h4 { color: #ced7ed; }
html[data-theme="dark"] .im-risk-control-section { border-color: rgba(245, 158, 11, 0.26); }
html[data-theme="dark"] .im-risk-control-head { border: 1px solid rgba(245, 158, 11, 0.24); border-radius: 18px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(26, 33, 48, 0.92)); }
html[data-theme="dark"] .im-risk-control-head strong { color: #d1d9eb; }
html[data-theme="dark"] .im-risk-rating-banner { border-radius: 20px; border: 1px solid rgba(117, 131, 163, 0.08); background: #181e2c; }
html[data-theme="dark"] .im-risk-rating-banner span,
html[data-theme="dark"] .im-risk-rating-banner small { color: #9ea9b9; }
html[data-theme="dark"] .im-risk-rating-banner strong { color: #ced7ed; }
html[data-theme="dark"] .im-risk-rating-banner b { border-radius: 16px; background: rgba(55, 70, 102, 0.08); color: #ced7ed; }
html[data-theme="dark"] .im-risk-rating-banner.success { background: rgba(34, 197, 94, 0.10); border-color: rgba(34, 197, 94, 0.20); }
html[data-theme="dark"] .im-risk-rating-banner.info { background: rgba(38, 67, 115, 0.1); border-color: rgba(59, 130, 246, 0.20); }
html[data-theme="dark"] .im-risk-rating-banner.warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); }
html[data-theme="dark"] .im-risk-rating-banner.danger { background: rgba(115, 38, 38, 0.1); border-color: rgba(239, 68, 68, 0.24); }
html[data-theme="dark"] .im-risk-control-summary > div { border-radius: 16px; background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .im-risk-control-summary span { color: #9ea9b9; }
html[data-theme="dark"] .im-risk-control-summary strong { color: #ced7ed; }
html[data-theme="dark"] .im-risk-recommendation-box,
html[data-theme="dark"] .im-risk-issue-card,
html[data-theme="dark"] .im-risk-debt-card,
html[data-theme="dark"] .im-risk-event-card,
html[data-theme="dark"] .im-risk-log-item { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); background: #1a2130; }
html[data-theme="dark"] .im-risk-recommendation-box { background: rgba(14, 165, 233, 0.08); border-color: rgba(14, 165, 233, 0.20); color: #ced7ed; }
html[data-theme="dark"] .im-risk-issue-card.critical,
html[data-theme="dark"] .im-risk-issue-card.danger,
html[data-theme="dark"] .im-risk-debt-card.is-overdue { background: rgba(115, 38, 38, 0.08); border-color: rgba(239, 68, 68, 0.20); }
html[data-theme="dark"] .im-risk-issue-card.warning { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.22); }
html[data-theme="dark"] .im-risk-issue-card.info { background: rgba(38, 67, 115, 0.08); border-color: rgba(59, 130, 246, 0.18); }
html[data-theme="dark"] .im-risk-issue-card strong,
html[data-theme="dark"] .im-risk-debt-card strong,
html[data-theme="dark"] .im-risk-event-card strong,
html[data-theme="dark"] .im-risk-log-item strong { color: #d1d9eb; }
html[data-theme="dark"] .im-risk-issue-card p,
html[data-theme="dark"] .im-risk-issue-card small,
html[data-theme="dark"] .im-risk-debt-card span,
html[data-theme="dark"] .im-risk-event-card span,
html[data-theme="dark"] .im-risk-event-card small,
html[data-theme="dark"] .im-risk-log-item span,
html[data-theme="dark"] .im-risk-log-item p { color: #9ea9b9; }
html[data-theme="dark"] .im-risk-settings-form,
html[data-theme="dark"] .im-risk-settings-readonly { border-radius: 18px; background: rgba(24, 30, 44, 0.9); border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .im-risk-settings-form label,
html[data-theme="dark"] .im-risk-wide-label { color: #b0baca; }
html[data-theme="dark"] .im-risk-settings-form input,
html[data-theme="dark"] .im-risk-settings-form select,
html[data-theme="dark"] .im-risk-settings-form textarea { border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 12px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .im-risk-section-subtitle { color: #ced7ed; }
html[data-theme="dark"] .im-clients-search-row input { border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .im-client-avatar { border-radius: 17px; color: #fff; background: linear-gradient(135deg,#0874f9,#0647ad); box-shadow: 0 9px 20px rgba(8,116,249,.2); }
html[data-theme="dark"] .im-client-stat { color: #9ea9b9; }
html[data-theme="dark"] .im-client-stat b { color: #ced7ed; }
html[data-theme="dark"] .im-client-last-action { border: 1px solid #293b54; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .im-client-last-action span,
html[data-theme="dark"] .im-client-last-action small { color: #9ea9b9; }
html[data-theme="dark"] .im-client-section-launchers button { border: 1px solid #293b54; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-client-section-launchers button:hover { border-color: #324968; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .im-client-section-launchers span { color: #cddcf5; }
html[data-theme="dark"] .im-client-section-launchers small { color: #9ea9b9; }
html[data-theme="dark"] .im-client-section-launchers b { color: #609fed; }
html[data-theme="dark"] .im-client-card-panel { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 22px; background: rgba(24, 30, 44, 0.82); }
html[data-theme="dark"] .im-client-row { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 20px; background: rgba(26, 33, 48, 0.96); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .im-client-row:hover,
html[data-theme="dark"] .im-client-row:focus-visible { border-color: rgba(37, 99, 235, 0.36); box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12); outline: none; }
html[data-theme="dark"] .im-client-row.is-active { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 14px 34px rgba(59, 130, 246, 0.12); }
html[data-theme="dark"] .im-client-rating-banner { border-radius: 20px; border: 1px solid rgba(117, 131, 163, 0.08); background: rgba(26, 33, 48, 0.95); }
html[data-theme="dark"] .im-client-rating-banner.success { background: rgba(28, 72, 43, 0.85); border-color: rgba(34, 197, 94, 0.25); }
html[data-theme="dark"] .im-client-rating-banner.info { background: rgba(27, 47, 72, 0.72); border-color: rgba(59, 130, 246, 0.22); }
html[data-theme="dark"] .im-client-rating-banner.warning { background: rgba(78, 74, 30, 0.82); border-color: rgba(234, 179, 8, 0.25); }
html[data-theme="dark"] .im-client-rating-banner.danger { background: rgba(70, 27, 27, 0.82); border-color: rgba(239, 68, 68, 0.25); }
html[data-theme="dark"] .im-client-rating-banner span,
html[data-theme="dark"] .im-client-rating-banner small { color: #9ea9b9; }
html[data-theme="dark"] .im-client-rating-banner strong { color: #ced7ed; }
html[data-theme="dark"] .im-client-rating-banner b { color: #ced7ed; }
html[data-theme="dark"] .im-client-section { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 18px; background: rgba(26, 33, 48, 0.96); }
html[data-theme="dark"] .im-client-mini-card { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); background: rgba(24, 30, 44, 0.9); }
html[data-theme="dark"] .im-client-mini-card.is-overdue { border-color: rgba(239, 68, 68, 0.28); background: rgba(70, 27, 27, 0.55); }
html[data-theme="dark"] .im-client-mini-card small { color: #9ea9b9; }
html[data-theme="dark"] .im-client-imei-card { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); background: rgba(24, 30, 44, 0.9); }
html[data-theme="dark"] .im-client-imei-card strong { color: #ced7ed; }
html[data-theme="dark"] .im-client-imei-card small { color: #9ea9b9; }
html[data-theme="dark"] .im-catalog-picker { border: 1px solid #293c56; border-radius: 24px; background: linear-gradient(180deg, #191f2e 0%, #192d43 100%); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .im-catalog-picker::before { border-radius: inherit; background: radial-gradient(circle at 18% 0%, rgba(0, 119, 255, 0.10), transparent 34%); }
html[data-theme="dark"] .im-catalog-picker label { color: #ced7ed; }
html[data-theme="dark"] .im-catalog-picker input { background: #1a2130; border-color: #2b4059; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .im-catalog-help { color: #9ea9b9; }
html[data-theme="dark"] .im-catalog-results { border: 1px solid #2b4059; border-radius: 18px; background: #1a2130; box-shadow: 0 20px 46px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .im-catalog-result { border: 1px solid transparent; border-radius: 14px; background: transparent; }
html[data-theme="dark"] .im-catalog-result:hover { background: #171d2b; border-color: #2d415d; }
html[data-theme="dark"] .im-catalog-result strong,
html[data-theme="dark"] .im-catalog-selected strong { color: #ced7ed; }
html[data-theme="dark"] .im-catalog-result span,
html[data-theme="dark"] .im-catalog-selected span { color: #9ea9b9; }
html[data-theme="dark"] .im-catalog-selected,
html[data-theme="dark"] .im-catalog-empty { border-radius: 16px; }
html[data-theme="dark"] .im-catalog-selected { border: 1px solid #2d5e3e; background: #171d2a; }
html[data-theme="dark"] .im-catalog-selected strong::before { color: #86efad; }
html[data-theme="dark"] .im-catalog-empty { color: #f3b590; border: 1px solid #685d32; background: #443b1a; }
html[data-theme="dark"] .im-catalog-badge { border-radius: 999px; background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .im-catalog-badge.missing { background: #4d441d; color: #f1b281; }
html[data-theme="dark"] body > .im-catalog-results.im-catalog-results-layer { border: 1px solid #2b4059; border-radius: 18px; background: #1a2130; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.432); }
html[data-theme="dark"] body > .im-catalog-results.im-catalog-results-layer .im-catalog-loading { color: #bac5d6; border-color: #293b54; background: #192c43; }
html[data-theme="dark"] .im-private-catalog-picker { border: 1px solid #293c56; border-radius: 22px; background: linear-gradient(180deg, #191f2e 0%, #192d43 100%); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .im-private-catalog-picker > span { color: #ced7ed; }
html[data-theme="dark"] .im-private-catalog-picker input { background: #1a2130; border-color: #2b4059; }
html[data-theme="dark"] .im-private-catalog-picker small { color: #9ea9b9; }
html[data-theme="dark"] body > .im-catalog-results.im-private-catalog-results-layer { border: 1px solid #2b4059; border-radius: 18px; background: #1a2130; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.432); }
html[data-theme="dark"] #imTabPrivatePrices .im-private-price-cell { color: #c6d3e7 !important; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-actions-cell .secondary-btn,
html[data-theme="dark"] #imTabPrivatePrices .im-private-actions-cell .telegram-btn { border-radius: 14px; }
html[data-theme="dark"] .im-catalog-request-btn { border-radius: 14px; }
html[data-theme="dark"] .im-catalog-request-status { border-radius: 14px; border: 1px solid #293b54; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .im-catalog-request-status.is-success { border-color: #2d5e3e; background: #171d2a; color: #aaedc3; }
html[data-theme="dark"] .im-catalog-request-status.is-error { border-color: #582b2b; background: #171d2b; color: #eb8d8d; }
html[data-theme="dark"] .im-catalog-request-modal { background: rgba(55, 70, 102, 0.52); }
html[data-theme="dark"] .im-catalog-request-dialog { border-radius: 26px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.576); }
html[data-theme="dark"] .im-catalog-request-head h3 { color: #ced7ed; }
html[data-theme="dark"] .im-catalog-request-head p { color: #9ea9b9; }
html[data-theme="dark"] .im-catalog-request-form label { color: #ced7ed; }
html[data-theme="dark"] .im-catalog-request-form input,
html[data-theme="dark"] .im-catalog-request-form textarea { border: 1px solid #2a3d57; border-radius: 14px; background: #1a2130; outline: none; }
@media (max-width: 620px) {
    html[data-theme="dark"] .im-catalog-request-dialog { border-radius: 20px; }
}
html[data-theme="dark"] .im-catalog-link-mini { border: 1px solid #2c415b; border-radius: 999px; background: #192c43; color: #6095ed; }
html[data-theme="dark"] .im-catalog-link-mini:hover { background: #1b2f48; }
html[data-theme="dark"] #imTabPrivatePrices .im-private-link-catalog-btn { border-color: #2c415b; background: #192c43; color: #6095ed; }
html[data-theme="dark"] .im-private-physical-box { border: 1px solid #2a3e58; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] .im-private-physical-head h4 { color: #c6d3e7; }
html[data-theme="dark"] .im-private-physical-search input { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .im-private-physical-search input:focus { border-color: #334a6b; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .im-private-physical-card { border: 1px solid #2a3e58; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .im-private-physical-remain { border-radius: 16px; background: #151b28; }
html[data-theme="dark"] .im-private-physical-remain span { color: #9ea9b9; }
html[data-theme="dark"] .im-private-physical-remain strong { color: #c6d3e7; }
html[data-theme="dark"] .im-private-physical-form label { color: #c6d3e7; }
html[data-theme="dark"] .im-private-physical-form input { border: 1px solid #2a3e58; border-radius: 14px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .im-catalog-badge.physical { background: #141925; color: #a2efc7; border-color: #2e6042; }
html[data-theme="dark"] .im-catalog-badge.physical { background: #141925; color: #a2efc7; border: 1px solid #2e6042; }
html[data-theme="dark"] .im-physical-source-card { border: 1px solid rgba(245, 158, 11, 0.28); background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(55, 70, 102, 0.02)); }
html[data-theme="dark"] .im-physical-duplicate-warning { border-radius: 16px; border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(68, 59, 26, 0.95); color: #f3bc9d; }
html[data-theme="dark"] .im-physical-duplicate-item { border: 1px solid rgba(245, 158, 11, 0.35); background: #1a2130; border-radius: 12px; }
html[data-theme="dark"] .im-physical-duplicate-item span { color: #f3b590; }
html[data-theme="dark"] #imTabInventory .inventory-row-btn.im-open-physical-btn { border-radius: 999px !important; color: #89b7f2 !important; background: linear-gradient(180deg, #192d43 0%, #1b3547 100%) !important; border: 1px solid #2c415b !important; box-shadow: none !important; }
html[data-theme="dark"] #imTabInventory .inventory-row-btn.im-open-physical-btn::before { border-radius: 999px; background: #1b2f48; color: #698beb; }
html[data-theme="dark"] #imTabInventory .inventory-row-btn.im-open-physical-btn:hover { border-color: #314a66 !important; background: #1b2f48 !important; }
html[data-theme="dark"] #imTabInventory .internal-market-action-stack .im-open-physical-btn,
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[title="Открыть физический склад"],
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[aria-label="Открыть физический склад"] { border-radius: 999px !important; }
html[data-theme="dark"] #imTabInventory .internal-market-action-stack .im-open-physical-btn::before,
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[title="Открыть физический склад"]::before,
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[aria-label="Открыть физический склад"]::before { border-radius: 999px !important; background: #1b2f48 !important; color: #698beb !important; }
html[data-theme="dark"] #imTabInventory .internal-market-action-stack .im-open-physical-btn::after,
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[title="Открыть физический склад"]::after,
html[data-theme="dark"] #imTabInventory .internal-market-action-stack button[aria-label="Открыть физический склад"]::after { color: inherit !important; }
html[data-theme="dark"] .im-direct-sale-extra-section { border: 1px solid #2a3e57; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] .im-direct-sale-extra-section h3 { color: #d2defa; }
html[data-theme="dark"] .im-direct-sale-extra-grid > div,
html[data-theme="dark"] .im-direct-sale-imei-card,
html[data-theme="dark"] .im-direct-sale-imei-chip { border: 1px solid #293e54; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .im-direct-sale-extra-grid span,
html[data-theme="dark"] .im-direct-sale-imei-card span { color: #a1acbd; }
html[data-theme="dark"] .im-direct-sale-extra-grid strong,
html[data-theme="dark"] .im-direct-sale-imei-card strong,
html[data-theme="dark"] .im-direct-sale-imei-chip { color: #d2defa; }
html[data-theme="dark"] .im-direct-sale-imei-card small { border-radius: 999px; background: #1a2a44; color: #619eed; }
html[data-theme="dark"] .im-deal-unified-status-grid small { color: #94a3b8; }
html[data-theme="dark"] .im-direct-sale-imei-picker p { color: #a2a9b7; }
html[data-theme="dark"] .im-direct-sale-imei-options label { border: 1px solid #2a3f58; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .im-imei-picker > label { color: #bac5d6; }
html[data-theme="dark"] .im-imei-picker-field input:disabled { background: #181e2c; color: #94a3b8; }
html[data-theme="dark"] .im-imei-chip { border-radius: 999px; background: #374666; color: #ffffff; }
html[data-theme="dark"] .im-imei-chip button { border: 0; border-radius: 50%; background: rgba(26, 33, 48, 0.16); color: #ffffff; }
html[data-theme="dark"] .im-imei-chip button:hover,
html[data-theme="dark"] .im-imei-chip button:focus-visible { background: rgba(26, 33, 48, 0.32); outline: none; }
html[data-theme="dark"] .im-imei-picker-list { border: 1px solid #2b3f59; border-radius: 16px; background: #1a2130; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.288); }
html[data-theme="dark"] .im-imei-option { border: 0; border-radius: 10px; background: transparent; color: #ced7ed; }
html[data-theme="dark"] .im-imei-option:hover,
html[data-theme="dark"] .im-imei-option.is-active { background: #192c43; }
html[data-theme="dark"] .im-imei-option em { border-radius: 999px; background: #161c29; color: #b0baca; }
html[data-theme="dark"] .im-imei-option em.defect { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .im-imei-option-empty { color: #9ea9b9; }
html[data-theme="dark"] .im-imei-picker-note { color: #9ea9b9; }
html[data-theme="dark"] #imDealEventQty[readonly] { background: #181e2c; }
html[data-theme="dark"] .im-rr-item { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .im-rr-item:hover { border-color: #2c415b; }
html[data-theme="dark"] .im-rr-item.is-active { border-color: #7583a3; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65); }
html[data-theme="dark"] .im-rr-item.is-waiting { border-left: 4px solid #ff3b4f; }
html[data-theme="dark"] .im-rr-item-meta { color: #9ea9b9; }
html[data-theme="dark"] .im-rr-item-last { color: #bac5d6; }
html[data-theme="dark"] .im-rr-status { border-radius: 999px; }
html[data-theme="dark"] .im-rr-status-mine { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .im-rr-status-wait { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .im-rr-status-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .im-rr-status-closed { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .im-rr-detail { border: 1px solid #303a50; border-radius: 20px; background: #181e2c; }
html[data-theme="dark"] .im-rr-detail-empty { color: #9ea9b9; }
html[data-theme="dark"] .im-rr-detail-head h3 { color: #ced7ed; }
html[data-theme="dark"] .im-rr-detail-head p { color: #b0baca; }
html[data-theme="dark"] .im-rr-terms > div { border-radius: 14px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .im-rr-terms span { color: #9ea9b9; }
html[data-theme="dark"] .im-rr-terms strong { color: #ced7ed; }
html[data-theme="dark"] .im-rr-decision { border-radius: 16px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .im-rr-decision.is-mine { border-color: #582b2b; background: #181f2d; }
html[data-theme="dark"] .im-rr-decision p { color: #bac5d6; }
html[data-theme="dark"] .im-rr-propose label { color: #bac5d6; }
html[data-theme="dark"] .im-rr-propose input,
html[data-theme="dark"] .im-rr-composer textarea { border: 1px solid #2b3f59; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .im-rr-msg { border-radius: 14px 14px 14px 4px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .im-rr-msg.is-mine { border-radius: 14px 14px 4px 14px; background: #192c43; border-color: #2c415b; }
html[data-theme="dark"] .im-rr-msg-head { color: #9ea9b9; }
html[data-theme="dark"] .im-rr-msg-head strong { color: #ced7ed; }
html[data-theme="dark"] .im-rr-msg em { color: #8ecff2; }
html[data-theme="dark"] .im-rr-msg-accept em { color: #aaedc3; }
html[data-theme="dark"] .im-rr-msg-decline em,
html[data-theme="dark"] .im-rr-msg-cancel em { color: #eb7a7a; }
html[data-theme="dark"] .im-rr-msg p { color: #ced7ed; }
html[data-theme="dark"] .im-rr-deal-row { border: 1px solid #303a50; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .im-sale-pay-note { border-radius: 14px; background: #171d2b; border: 1px solid #2d4c5d; color: #a2d7f5; }
html[data-theme="dark"] .im-pay-claim { border-radius: 14px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .im-pay-claim.is-mine { background: #181f2d; border-color: #582b2b; }
html[data-theme="dark"] .im-pay-claim.is-rejected { background: #171d2b; border-color: #582b2b; }
html[data-theme="dark"] .im-pay-claim strong { color: #ced7ed; }
html[data-theme="dark"] .im-pay-claim span { color: #9ea9b9; }
html[data-theme="dark"] .im-pay-claim em { color: #f1b281; }
html[data-theme="dark"] .internal-market-offer-modal-row.im-offer-selected { border-color: #346c48; background: #171d2a; }
html[data-theme="dark"] .im-debt-payments { border-radius: 14px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .im-debt-payments-title { color: #bac5d6; }
html[data-theme="dark"] .im-debt-payment-row { border-top: 1px solid #2d374c; }
html[data-theme="dark"] .im-debt-payment-row:first-of-type { border-top: 0; }
html[data-theme="dark"] .im-debt-payment-row span { color: #9ea9b9; }
html[data-theme="dark"] .im-debt-payment-row em { color: #b0baca; }
html[data-theme="dark"] .im-debt-payment-row.is-reverted strong { color: #94a3b8; }
html[data-theme="dark"] .im-debt-payment-row.is-reverted em { color: #eb7a7a; }
html[data-theme="dark"] .im-rr-overpay { color: #b0baca; }
html[data-theme="dark"] .im-rr-overpay select { border: 1px solid #344559; border-radius: 10px; color: #ced7ed; background: #1a2130; }
html[data-theme="dark"] .im-inv-sale-row:hover td { background: #171d2b; }
html[data-theme="dark"] .im-inv-returned { color: #f1b281; }
html[data-theme="dark"] .im-link-btn { border: 0; background: none; color: #8ecff2; }
html[data-theme="dark"] .im-inv-imei-chips span { border-radius: 999px; background: #161c29; color: #bac5d6; }
/* --- inventory-audit.css --- */
html[data-theme="dark"] .inventory-audit-page { background: #171d2b; }
html[data-theme="dark"] .inventory-audit-header p,
html[data-theme="dark"] .inventory-audit-card p,
html[data-theme="dark"] .inventory-audit-info,
html[data-theme="dark"] .inventory-audit-muted { color: #a8b0bb; }
html[data-theme="dark"] .inventory-audit-notice,
html[data-theme="dark"] .inventory-audit-admin-note,
html[data-theme="dark"] .inventory-audit-info { border-radius: 18px; background: #193043; color: #9ad4f4; border: 1px solid rgba(14, 116, 144, 0.18); }
html[data-theme="dark"] .inventory-audit-notice.is-error { background: #171d2b; color: #f07895; border-color: rgba(225, 29, 72, 0.2); }
html[data-theme="dark"] .inventory-audit-stat { background: rgba(26, 33, 48, 0.88); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .inventory-audit-stat span { color: #9ea9b9; }
html[data-theme="dark"] .inventory-audit-stat strong { color: #ced7ed; }
html[data-theme="dark"] .inventory-audit-card { border-radius: 26px; }
html[data-theme="dark"] .inventory-audit-form label { color: #ced7ed; }
html[data-theme="dark"] .inventory-audit-form input,
html[data-theme="dark"] .inventory-audit-form select,
html[data-theme="dark"] .inventory-audit-form textarea,
html[data-theme="dark"] .inventory-audit-line-input,
html[data-theme="dark"] .inventory-audit-line-reason,
html[data-theme="dark"] .inventory-audit-line-comment { border: 1px solid #2a3f58; border-radius: 15px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .inventory-audit-form small { color: #9ea9b9; }
html[data-theme="dark"] .inventory-audit-table { border-collapse: separate; border-spacing: 0 10px; }
html[data-theme="dark"] .inventory-audit-table th { color: #9ea9b9; }
html[data-theme="dark"] .inventory-audit-table td { background: #1a2130; border-top: 1px solid #2d374c; border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .inventory-audit-table td:first-child { border-left: 1px solid #2d374c; border-radius: 18px 0 0 18px; }
html[data-theme="dark"] .inventory-audit-table td:last-child { border-right: 1px solid #2d374c; border-radius: 0 18px 18px 0; }
html[data-theme="dark"] .inventory-audit-product-title { color: #ced7ed; }
html[data-theme="dark"] .inventory-audit-product-sub,
html[data-theme="dark"] .inventory-audit-history-sub { color: #9ea9b9; }
html[data-theme="dark"] .inventory-audit-line-grid label { color: #9ea9b9; }
html[data-theme="dark"] .inventory-audit-pill { border-radius: 999px; background: #192843; color: #698beb; }
html[data-theme="dark"] .inventory-audit-pill.is-warning { background: #43311a; color: #f09c79; }
html[data-theme="dark"] .inventory-audit-pill.is-ok { background: #1a4430; color: #a1f5dd; }
html[data-theme="dark"] .inventory-audit-history-item { background: #1a2130; border: 1px solid #2d374c; border-radius: 18px; }
html[data-theme="dark"] .inventory-audit-history-top strong { color: #ced7ed; }
/* --- jd-catalog-filter.css --- */
html[data-theme="dark"] .jdcf { --jdcf-bg: #1a2130; --jdcf-border: #303a50; --jdcf-text: #d1d9eb; --jdcf-muted: #a5aab4; --jdcf-chip: #161c29; --jdcf-chip-hover: #111620; --jdcf-active: #374666; background: var(--jdcf-bg); border: 1px solid var(--jdcf-border); border-radius: 16px; }
html[data-theme="dark"] .jdcf-sticky { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .jdcf-search svg { color: var(--jdcf-muted); }
html[data-theme="dark"] .jdcf .jdcf-input { border: 1px solid var(--jdcf-border); border-radius: 12px; background: var(--jdcf-bg); color: var(--jdcf-text); }
html[data-theme="dark"] .jdcf .jdcf-input:focus { outline: none; border-color: var(--jdcf-focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
html[data-theme="dark"] .jdcf .jdcf-clear { border: 0; border-radius: 50%; background: var(--jdcf-chip); color: var(--jdcf-muted); box-shadow: none; }
html[data-theme="dark"] .jdcf .jdcf-clear:hover { background: var(--jdcf-chip-hover); color: var(--jdcf-text); }
html[data-theme="dark"] .jdcf-chips-sub { border-top: 1px dashed var(--jdcf-border); }
html[data-theme="dark"] .jdcf .jdcf-chip { border: 1px solid transparent; border-radius: 999px; background: var(--jdcf-chip); color: var(--jdcf-text); box-shadow: none; }
html[data-theme="dark"] .jdcf .jdcf-chip:hover { background: var(--jdcf-chip-hover); }
html[data-theme="dark"] .jdcf .jdcf-chip:focus-visible { outline: 2px solid var(--jdcf-focus); outline-offset: 2px; }
html[data-theme="dark"] .jdcf .jdcf-chip.is-active { background: var(--jdcf-active); color: var(--jdcf-active-text); }
html[data-theme="dark"] .jdcf-empty { border: 1px dashed var(--jdcf-border); border-radius: 14px; color: var(--jdcf-muted); }
@media (max-width: 720px) {
    html[data-theme="dark"] .jdcf { border-radius: 14px; }
}
html[data-theme="dark"] .jdcf.jdcf-compact { box-shadow: none; }
/* --- marketplace-analytics.css --- */
html[data-theme="dark"] .marketplace-tab-btn { border: none; border-radius: 16px; background: #192b43; color: #61a2ed; }
html[data-theme="dark"] .marketplace-tab-btn.is-active { background: #374666; color: #ffffff; }
html[data-theme="dark"] .marketplace-period input,
html[data-theme="dark"] .marketplace-period select,
html[data-theme="dark"] .marketplace-form-grid input,
html[data-theme="dark"] .marketplace-form-grid select,
html[data-theme="dark"] .marketplace-form-grid textarea { border: 1px solid #2e3f55; border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .marketplace-card-value { color: #c9d6f6; }
html[data-theme="dark"] .marketplace-form-grid label { color: #bac5d6; }
html[data-theme="dark"] .marketplace-connection-item,
html[data-theme="dark"] .marketplace-insight-item,
html[data-theme="dark"] .marketplace-product-item { border-radius: 20px; background: #181e2c; border: 1px solid #2f394f; }
html[data-theme="dark"] .marketplace-insight-icon { border-radius: 50%; }
html[data-theme="dark"] .marketplace-insight-item.good .marketplace-insight-icon { background: #1c482b; color: #86efad; }
html[data-theme="dark"] .marketplace-insight-item.info .marketplace-insight-icon { background: #1b2f48; color: #61a2ed; }
html[data-theme="dark"] .marketplace-insight-item.warning .marketplace-insight-icon { background: #4d441d; color: #efb470; }
html[data-theme="dark"] .marketplace-insight-item.danger .marketplace-insight-icon { background: #461b1b; color: #ef4444; }
html[data-theme="dark"] .marketplace-product-meta div { background: #1a2130; border-radius: 14px; }
html[data-theme="dark"] .marketplace-product-meta span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-product-meta strong { color: #ced7ed; }
html[data-theme="dark"] .marketplace-chart-box { border-radius: 22px; background: #181e2c; border: 1px solid #2f394f; }
html[data-theme="dark"] .marketplace-chart-bar { border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #0077ff, #1f3d5e); }
html[data-theme="dark"] .marketplace-chart-bar:hover::after { background: #374666; color: white; border-radius: 10px; }
html[data-theme="dark"] .marketplace-table { border-collapse: collapse; }
html[data-theme="dark"] .marketplace-table th,
html[data-theme="dark"] .marketplace-table td { border-bottom: 1px solid #2f394f; }
html[data-theme="dark"] .marketplace-table th { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-muted { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-status { border-radius: 999px; background: #1b3547; color: #61a2ed; }
html[data-theme="dark"] .marketplace-status.error { background: #461b1b; color: #ef4444; }
html[data-theme="dark"] .marketplace-status.success { background: #1c482b; color: #86efad; }
html[data-theme="dark"] .marketplace-operation-btn { border: none; border-radius: 16px; background: #192b43; color: #61a2ed; }
html[data-theme="dark"] .marketplace-operation-btn.is-active { background: #374666; color: #ffffff; }
html[data-theme="dark"] .marketplace-small-form { border-radius: 22px; background: #181e2c; border: 1px solid #2f394f; }
html[data-theme="dark"] .marketplace-empty-cell { color: #9ea9b9; background: #181e2c; border-radius: 16px; }
html[data-theme="dark"] .marketplace-expense-chip { border-radius: 999px; background: #192b43; color: #ced7ed; }
html[data-theme="dark"] .marketplace-expense-chip span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-expense-chip strong { color: #61a2ed; }
html[data-theme="dark"] .danger-text { color: #ef4444 !important; }
html[data-theme="dark"] .marketplace-muted { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-purpose-box { border-radius: 22px; background: rgba(24, 30, 44, 0.88); border: 1px solid rgba(148, 163, 184, 0.24); }
html[data-theme="dark"] .marketplace-order-settings .marketplace-order-help { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-notification-item { border-radius: 22px; background: rgba(26, 33, 48, 0.9); border: 1px solid rgba(48, 58, 80, 0.95); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .marketplace-notification-item.warning { border-color: rgba(255, 190, 90, 0.65); background: linear-gradient(135deg, rgba(68, 59, 26, 0.98), rgba(26, 33, 48, 0.92)); }
html[data-theme="dark"] .marketplace-notification-item strong { color: #ced7ed; }
html[data-theme="dark"] .marketplace-notification-item span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-status.warning { background: #43311a; color: #ee9465; }
html[data-theme="dark"] .marketplace-inline-link { color: #61a4ed; }
html[data-theme="dark"] .marketplace-shipping-mini-form select,
html[data-theme="dark"] .marketplace-shipping-mini-form input[type="text"],
html[data-theme="dark"] .marketplace-shipping-mini-form input[type="file"] { border-radius: 12px; border: 1px solid #2a3f58; background: #1a2130; }
html[data-theme="dark"] .marketplace-modal-label { color: #bac5d6; }
html[data-theme="dark"] .marketplace-modal-label select { border-radius: 16px; border: 1px solid #2a3f58; background: #1a2130; }
html[data-theme="dark"] #mpBuyoutModal.modal-overlay { background: rgba(55, 70, 102, 0.55) !important; }
html[data-theme="dark"] #mpBuyoutModal .marketplace-buyout-modal { background: #1a2130 !important; border-radius: 32px !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45) !important; border: 1px solid rgba(148, 163, 184, 0.25) !important; }
html[data-theme="dark"] #mpBuyoutModal .modal-header h2 { color: #ced7ed !important; }
html[data-theme="dark"] #mpBuyoutModal .modal-header p { color: #9ea9b9 !important; }
html[data-theme="dark"] #mpBuyoutModal .modal-close-btn { border: none !important; background: #374666 !important; color: #ffffff !important; border-radius: 18px !important; }
html[data-theme="dark"] #mpBuyoutModal .marketplace-form label { color: #bac5d6 !important; }
html[data-theme="dark"] #mpBuyoutModal .marketplace-form select,
html[data-theme="dark"] #mpBuyoutModal .marketplace-form input { border: 1px solid #2a3e58 !important; border-radius: 18px !important; background: #1a2130 !important; color: #ced7ed !important; outline: none !important; }
html[data-theme="dark"] #mpBuyoutModal .marketplace-form select:focus,
html[data-theme="dark"] #mpBuyoutModal .marketplace-form input:focus { border-color: #0077ff !important; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12) !important; }
html[data-theme="dark"] #mpBuyoutModal .form-main-btn,
html[data-theme="dark"] #mpBuyoutModal .secondary-btn { border-radius: 18px !important; }
html[data-theme="dark"] #mpBuyoutModal .form-main-btn { background: #374666 !important; color: #ffffff !important; border: none !important; }
html[data-theme="dark"] #mpBuyoutModal .secondary-btn { background: #1a2130 !important; color: #ced7ed !important; border: 2px solid #7583a3 !important; }
@media (max-width: 700px) {
    html[data-theme="dark"] #mpBuyoutModal .marketplace-buyout-modal { border-radius: 24px !important; }
}
html[data-theme="dark"] .marketplace-payment-detail-row { border: 1px solid #303a50 !important; border-radius: 18px !important; background: #181e2c !important; }
html[data-theme="dark"] .marketplace-payment-detail-row label { color: #bac5d6 !important; }
html[data-theme="dark"] .marketplace-payment-detail-row input { border: 1px solid #2a3e58 !important; border-radius: 14px !important; }
html[data-theme="dark"] #mpPaymentDetailsModal { background: rgba(55, 70, 102, 0.55) !important; }
html[data-theme="dark"] #mpPaymentDetailsModal .modal-card,
html[data-theme="dark"] #mpPaymentDetailsModal .marketplace-buyout-modal { background: #1a2130 !important; border-radius: 32px !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.504) !important; border: 1px solid rgba(148, 163, 184, 0.25) !important; }
html[data-theme="dark"] .marketplace-payment-detail-row select { border: 1px solid #2a3e58 !important; border-radius: 14px !important; background: #1a2130 !important; }
html[data-theme="dark"] .marketplace-price-check-box { border: 1px solid #303a50 !important; border-radius: 22px !important; background: #181e2c !important; }
html[data-theme="dark"] .marketplace-price-check-header h3 { color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-price-check-header p,
html[data-theme="dark"] #mpPriceCheckStatus { color: #9ea9b9 !important; }
html[data-theme="dark"] #mpPriceCheckStatus span { color: #94a3b8 !important; }
html[data-theme="dark"] .marketplace-price-check-loading,
html[data-theme="dark"] .marketplace-price-check-warning,
html[data-theme="dark"] .marketplace-price-check-found { border-radius: 18px !important; background: #1a2130 !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .marketplace-price-check-product { border-radius: 20px !important; background: #1a2130 !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .marketplace-price-check-product.found,
html[data-theme="dark"] .marketplace-price-check-product.exact,
html[data-theme="dark"] .marketplace-price-check-product.mapped,
html[data-theme="dark"] .marketplace-price-check-product.selected { border-color: rgba(34, 197, 94, 0.28) !important; background: #171d2a !important; }
html[data-theme="dark"] .marketplace-price-check-product.similar { border-color: rgba(245, 158, 11, 0.35) !important; background: #443b1a !important; }
html[data-theme="dark"] .marketplace-price-check-product.not_found { border-color: rgba(239, 68, 68, 0.25) !important; background: #43311a !important; }
html[data-theme="dark"] .marketplace-price-check-product-main strong { color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-price-check-product-main p,
html[data-theme="dark"] .marketplace-price-check-found p,
html[data-theme="dark"] .marketplace-price-check-warning p { color: #b0baca !important; }
html[data-theme="dark"] .marketplace-price-candidate-label { color: #bac5d6 !important; }
html[data-theme="dark"] .marketplace-price-candidate-label select { border: 1px solid #2a3e58 !important; border-radius: 16px !important; background: #1a2130 !important; }
html[data-theme="dark"] .marketplace-price-check-total { border-radius: 18px !important; background: #374666 !important; color: #ffffff !important; }
html[data-theme="dark"] .marketplace-price-check-total span { color: #cbd5e1 !important; }
html[data-theme="dark"] #mpSectionJdProcurements table,
html[data-theme="dark"] table:has(#marketplaceJdProcurementsTable) { border-collapse: collapse; }
html[data-theme="dark"] #mpSectionJdProcurements table,
html[data-theme="dark"] table:has(#marketplaceJdProcurementsTable) { border-collapse: collapse !important; }
html[data-theme="dark"] #mpSectionJdProcurements .edit-btn,
html[data-theme="dark"] #mpSectionJdProcurements .secondary-btn,
html[data-theme="dark"] #mpSectionJdProcurements .delete-btn { border-radius: 14px !important; }
html[data-theme="dark"] #mpSectionJdProcurements tr.jd-procurement-card-row,
html[data-theme="dark"] #mpSectionJdProcurements tr.jd-procurement-card-row td { border: 0 !important; }
html[data-theme="dark"] .jd-procurement-card { border: 1px solid #2f394f; border-radius: 24px; background: #1a2130; }
html[data-theme="dark"] #mpSectionJdProcurements table,
html[data-theme="dark"] table:has(#marketplaceJdProcurementsTable) { border-collapse: collapse !important; }
html[data-theme="dark"] #marketplaceJdProcurementsTable .jd-procurement-compact-head th,
html[data-theme="dark"] #marketplaceJdProcurementsTable .jd-procurement-compact-row td { border-bottom: 1px solid #2f394f !important; }
html[data-theme="dark"] #marketplaceJdProcurementsTable .jd-procurement-compact-head th { color: #9ea9b9 !important; }
html[data-theme="dark"] .jd-shipping-open-btn { border-radius: 16px !important; }
html[data-theme="dark"] .jd-shipping-modal { background: rgba(55, 70, 102, 0.58) !important; }
html[data-theme="dark"] .jd-shipping-modal-card { border-radius: 32px !important; background: #1a2130 !important; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.504) !important; }
html[data-theme="dark"] .jd-shipping-modal-status { border: 1px solid #2f394f !important; border-radius: 22px !important; background: #181e2c !important; }
html[data-theme="dark"] .jd-shipping-modal-form .marketplace-shipping-mini-form select,
html[data-theme="dark"] .jd-shipping-modal-form .marketplace-shipping-mini-form input,
html[data-theme="dark"] .jd-shipping-modal-form .marketplace-shipping-mini-form button { border-radius: 16px !important; }
html[data-theme="dark"] .marketplace-manual-sale-btn { background: #1a2130 !important; border: 2px solid #7583a3 !important; color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-manual-sale-modal-overlay { background: rgba(55, 70, 102, 0.58) !important; }
html[data-theme="dark"] .marketplace-manual-sale-modal { border-radius: 32px !important; background: #1a2130 !important; border: 1px solid rgba(148, 163, 184, 0.25) !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.504) !important; }
html[data-theme="dark"] .marketplace-manual-sale-modal .modal-header h2 { color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-manual-sale-modal .modal-header p { color: #9ea9b9 !important; }
html[data-theme="dark"] .marketplace-manual-sale-modal .modal-close-btn { border: 2px solid #7583a3 !important; background: #1a2130 !important; color: #ced7ed !important; border-radius: 18px !important; }
html[data-theme="dark"] .marketplace-manual-sale-form label { color: #bac5d6 !important; }
html[data-theme="dark"] .marketplace-manual-sale-form input { border: 1px solid #2a3e58 !important; border-radius: 16px !important; background: #1a2130 !important; color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-manual-sale-form input:focus { outline: none !important; border-color: #0077ff !important; box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12) !important; }
html[data-theme="dark"] .marketplace-manual-sale-summary { border-radius: 20px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"] .marketplace-manual-sale-summary span { color: #9ea9b9 !important; }
html[data-theme="dark"] .marketplace-manual-sale-summary strong { color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-manual-sale-form .form-actions button { border-radius: 18px !important; }
@media (max-width: 800px) {
    html[data-theme="dark"] .marketplace-manual-sale-modal { border-radius: 24px !important; }
}
html[data-theme="dark"] .marketplace-notification-item .secondary-btn { border-radius: 14px !important; }
html[data-theme="dark"] #marketplaceOrdersTable .marketplace-status { border-radius: 14px !important; }
html[data-theme="dark"] #marketplaceOrdersTable .edit-btn,
html[data-theme="dark"] #marketplaceOrdersTable .secondary-btn,
html[data-theme="dark"] #marketplaceOrdersTable .delete-btn { border-radius: 13px !important; }
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .edit-btn,
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .secondary-btn,
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .delete-btn { border-radius: 13px !important; }
html[data-theme="dark"] #marketplaceOrdersTable .marketplace-status { border-radius: 14px !important; }
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-clickable-row:hover { background: rgba(0, 119, 255, 0.035); }
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .edit-btn,
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .secondary-btn,
html[data-theme="dark"] #marketplaceOrdersTable .mp-order-action-cell .delete-btn { border-radius: 13px !important; }
html[data-theme="dark"] .marketplace-order-info-item { border: 1px solid #2a3c56; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .marketplace-order-info-item span { color: #9fa9b8; }
html[data-theme="dark"] .marketplace-order-info-item strong { color: #ced7ed; }
html[data-theme="dark"] #mpOrderInfoModal { background: rgba(55, 70, 102, 0.58) !important; }
html[data-theme="dark"] #mpOrderInfoModal .marketplace-order-info-modal { border-radius: 34px !important; background: #1a2130 !important; background-color: #1a2130 !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.63) !important; border: 1px solid rgba(48, 58, 80, 0.9) !important; }
html[data-theme="dark"] #mpOrderInfoModal .modal-close-btn { border-radius: 18px !important; background: #374666 !important; color: #ffffff !important; border: none !important; }
html[data-theme="dark"] #mpOrderInfoModal .card-label { color: #61a2ed !important; }
html[data-theme="dark"] #mpOrderInfoModal h2 { color: #ced7ed !important; }
html[data-theme="dark"] .marketplace-order-info-item { border: 1px solid #2a3c56 !important; border-radius: 18px !important; background: #191f2e !important; }
html[data-theme="dark"] .marketplace-order-info-item span { color: #9fa9b8 !important; }
html[data-theme="dark"] .marketplace-order-info-item strong { color: #ced7ed !important; }
@media (max-width: 760px) {
    html[data-theme="dark"] #mpOrderInfoModal .marketplace-order-info-modal { border-radius: 26px !important; }
}
@media (max-width: 768px) {
    html[data-theme="dark"] body.marketplace-page #marketplaceTabsScroll::-webkit-scrollbar-track { background: #1a2a44 !important; border-radius: 999px !important; }
    html[data-theme="dark"] body.marketplace-page #marketplaceTabsScroll::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
}
html[data-theme="dark"] #marketplaceRequestsScroll table { border-collapse: collapse !important; }
@media (max-width: 768px) {
    html[data-theme="dark"] body.marketplace-page #marketplaceRequestsScroll::-webkit-scrollbar-track { background: #1a2a44 !important; border-radius: 999px !important; }
    html[data-theme="dark"] body.marketplace-page #marketplaceRequestsScroll::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
}
html[data-theme="dark"] body.marketplace-page .marketplace-scroll-x table,
html[data-theme="dark"] body.marketplace-page .marketplace-table-wrapper table,
html[data-theme="dark"] body.marketplace-page table.marketplace-table,
html[data-theme="dark"] body.marketplace-page table.detail-table { border-collapse: collapse !important; }
@media (max-width: 768px) {
    html[data-theme="dark"] body.marketplace-page .marketplace-table-wrapper::-webkit-scrollbar-track,
    html[data-theme="dark"] body.marketplace-page .marketplace-scroll-x::-webkit-scrollbar-track { background: #1a2a44 !important; border-radius: 999px !important; }
    html[data-theme="dark"] body.marketplace-page .marketplace-table-wrapper::-webkit-scrollbar-thumb,
    html[data-theme="dark"] body.marketplace-page .marketplace-scroll-x::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
}
html[data-theme="dark"] #marketplaceJdProcurementsScroll .jd-procurements-table,
html[data-theme="dark"] #marketplaceJdProcurementsScroll table { border-collapse: collapse !important; }
@media (max-width: 768px) {
    html[data-theme="dark"] body.marketplace-page #marketplaceJdProcurementsScroll::-webkit-scrollbar-track { background: #1a2a44 !important; border-radius: 999px !important; }
    html[data-theme="dark"] body.marketplace-page #marketplaceJdProcurementsScroll::-webkit-scrollbar-thumb { background: #2a3849 !important; border-radius: 999px !important; }
}
html[data-theme="dark"] .marketplace-status.danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .marketplace-order-info-history { border-top: 1px solid #303a50; }
html[data-theme="dark"] .marketplace-automation-timeline-item { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .marketplace-automation-timeline-item span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-automation-timeline-item strong { color: #ced7ed; }
html[data-theme="dark"] .marketplace-automation-timeline-item p { color: #b0baca; }
html[data-theme="dark"] .marketplace-automation-timeline-item.success { border-color: #2d5e3e; background: #171d2a; }
html[data-theme="dark"] .marketplace-automation-timeline-item.warning { border-color: #685d32; background: #443b1a; }
html[data-theme="dark"] .marketplace-automation-timeline-item.danger { border-color: #582b2b; background: #171d2b; }
html[data-theme="dark"] .marketplace-status.warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .marketplace-status.success { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .marketplace-order-info-attention { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
html[data-theme="dark"] .marketplace-flow-summary-card { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 16px; background: rgba(55, 70, 102, 0.03); }
html[data-theme="dark"] .marketplace-flow-summary-card span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-flow-summary-card.success { border-color: rgba(34, 197, 94, 0.35); }
html[data-theme="dark"] .marketplace-flow-summary-card.warning { border-color: rgba(245, 158, 11, 0.4); }
html[data-theme="dark"] .marketplace-flow-summary-card.danger { border-color: rgba(239, 68, 68, 0.4); }
html[data-theme="dark"] .marketplace-flow-issue { border-radius: 12px; background: rgba(55, 70, 102, 0.04); border: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .marketplace-flow-issue span { color: #9ea9b9; }
html[data-theme="dark"] .marketplace-flow-issue.warning { border-color: rgba(245, 158, 11, 0.35); }
html[data-theme="dark"] .marketplace-flow-issue.danger { border-color: rgba(239, 68, 68, 0.35); }
/* --- marketplace-order-flow.css --- */
html[data-theme="dark"] .marketplace-purpose-box { border-radius: 22px; background: rgba(24, 30, 44, 0.88); border: 1px solid rgba(148, 163, 184, 0.24); }
html[data-theme="dark"] .marketplace-order-settings .marketplace-order-help { color: #9ea9b9; }
/* --- period-close.css --- */
html[data-theme="dark"] .period-close-header p { color: #a8b0bb; }
html[data-theme="dark"] .period-close-card-head p,
html[data-theme="dark"] .period-close-form small { color: #a2a9b7; }
html[data-theme="dark"] .period-close-form label { color: #cad4e1; }
html[data-theme="dark"] .period-close-form input,
html[data-theme="dark"] .period-close-form select,
html[data-theme="dark"] .period-close-form textarea { border: 1px solid #313e55; border-radius: 14px; background: #1a2130; color: #d1d9eb; outline: none; }
html[data-theme="dark"] .period-close-form input:focus,
html[data-theme="dark"] .period-close-form select:focus,
html[data-theme="dark"] .period-close-form textarea:focus { border-color: #2656ff; box-shadow: 0 0 0 3px rgba(38, 86, 255, .12); }
html[data-theme="dark"] .period-close-stat { border: 1px solid #2f394e; border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .period-close-stat span { color: #a2a9b7; }
html[data-theme="dark"] .period-close-stat.is-danger { background: #171d2b; border-color: #582a30; }
html[data-theme="dark"] .period-close-stat.is-warning { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .period-close-stat.is-ok { background: #1a4430; border-color: #2d5e3e; }
html[data-theme="dark"] .period-close-warnings { color: #a2a9b7; }
html[data-theme="dark"] .period-close-warning { border: 1px solid #2f394e; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .period-close-warning strong { color: #d1d9eb; }
html[data-theme="dark"] .period-close-warning p { color: #a2a9b7; }
html[data-theme="dark"] .period-close-warning.is-danger { border-color: #582a30; background: #171d2b; }
html[data-theme="dark"] .period-close-warning.is-warning { border-color: #685d32; background: #443b1a; }
html[data-theme="dark"] .period-close-warning.is-ok { border-color: #2d5e3e; background: #1a4430; }
html[data-theme="dark"] .period-close-pill { border-radius: 999px; background: #192343; color: #698beb; }
html[data-theme="dark"] .period-close-pill.is-danger { background: #461a1e; color: #f07895; }
html[data-theme="dark"] .period-close-pill.is-warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .period-close-pill.is-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .period-close-table { border-collapse: collapse; }
html[data-theme="dark"] .period-close-table th,
html[data-theme="dark"] .period-close-table td { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .period-close-table th { color: #a2a9b7; }
html[data-theme="dark"] .period-close-muted { color: #a2a9b7; }
html[data-theme="dark"] .period-close-notice,
html[data-theme="dark"] .period-close-info { border-radius: 16px; background: #192343; color: #96abe7; }
html[data-theme="dark"] .period-close-notice.is-error { background: #171d2b; color: #f07895; }
html[data-theme="dark"] .period-close-notice.is-hidden { color: #b1bbc9; border: 1px solid #2f394e; border-radius: 16px; background: #181e2c; color: #b1bbc9; color: #d1d9eb; border-radius: 14px; background: #1a2130; color: #a2a9b7; }
/* --- platform-check.css --- */
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .secondary-btn { border: none; border-radius: 14px; }
html[data-theme="dark"] .primary-btn { background: #374666; color: #ffffff; }
html[data-theme="dark"] .secondary-btn { background: #192343; color: #c1cbe3; }
html[data-theme="dark"] .platform-check-alert { border-radius: 16px; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .platform-mini-card,
html[data-theme="dark"] .platform-panel { background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 20px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .platform-mini-card span,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .muted { color: #9ea9b9; }
html[data-theme="dark"] .platform-mini-card strong { color: #d1d9eb; }
html[data-theme="dark"] .platform-mini-card p { color: #9ea9b9; }
html[data-theme="dark"] .panel-head h2 { color: #d1d9eb; }
html[data-theme="dark"] .platform-table-wrap { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .platform-table { border-collapse: collapse; }
html[data-theme="dark"] .platform-table th,
html[data-theme="dark"] .platform-table td { border-bottom: 1px solid rgba(117, 131, 163, 0.07); }
html[data-theme="dark"] .platform-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .platform-table td { color: #cad4e1; }
html[data-theme="dark"] .status-pill { border-radius: 999px; background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .status-pill.is-success { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .status-pill.is-warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .status-pill.is-danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .status-pill.is-info { background: #1b3547; color: #9ad4f4; }
/* --- product-catalog-request.css --- */
html[data-theme="dark"] .jd-product-request-backdrop { background: rgba(55, 70, 102, 0.54); }
html[data-theme="dark"] .jd-product-request-dialog { border-radius: 28px; background: #1a2130; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45); }
html[data-theme="dark"] .jd-product-request-head h2 { color: #ced7ed; }
html[data-theme="dark"] .jd-product-request-head p { color: #9ea9b9; }
html[data-theme="dark"] .jd-product-request-form label { color: #c1cbe3; }
html[data-theme="dark"] .jd-product-request-form input,
html[data-theme="dark"] .jd-product-request-form textarea { border: 1px solid #2a3e57; border-radius: 16px; color: #ced7ed; background: #1a2130; outline: none; }
html[data-theme="dark"] .jd-product-request-form input:focus,
html[data-theme="dark"] .jd-product-request-form textarea:focus { border-color: #314a66; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
html[data-theme="dark"] .jd-product-request-message { border-radius: 16px; }
html[data-theme="dark"] .jd-product-request-message.is-info { background: #192c43; color: #698beb; }
html[data-theme="dark"] .jd-product-request-message.is-error,
html[data-theme="dark"] .jd-product-request-status.is-error { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .jd-product-request-status.is-success,
html[data-theme="dark"] .jd-product-request-message.is-success { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .jd-product-request-status { border-radius: 16px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .jd-product-request-inline-button { border: 1px solid #354058; border-radius: 14px; background: #181e2c; color: #ced7ed; }
html[data-theme="dark"] .jd-product-request-inline-button:hover { background: #192343; }
@media (max-width: 720px) {
    html[data-theme="dark"] .jd-product-request-dialog { border-radius: 22px; }
}
html[data-theme="dark"] .jd-product-request-status.is-warning,
html[data-theme="dark"] .jd-product-request-message.is-warning { background: #4d441d; color: #f3b590; }
/* --- regional-retail-accounting.css --- */
html[data-theme="dark"] .regional-retail-note { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.18); border-radius: 18px; color: #cad4e1; }
html[data-theme="dark"] .retail-summary-card strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-summary-card small { color: #a5aab4; }
html[data-theme="dark"] .retail-section-head p { color: #a5aab4; }
html[data-theme="dark"] .retail-foundation-grid > div { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-foundation-grid strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-foundation-grid p { color: #a5aab4; }
html[data-theme="dark"] .retail-transfer-status { color: #a5aab4; }
html[data-theme="dark"] .retail-transfer-status.is-ok { color: #9aeeba; }
html[data-theme="dark"] .retail-transfer-status.is-error { color: #eb7a7a; }
html[data-theme="dark"] .retail-empty-state { border: 1px dashed #354058; border-radius: 16px; color: #a5aab4; background: #181e2c; }
html[data-theme="dark"] .retail-row { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-row-title strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-row-title small,
html[data-theme="dark"] .retail-cell small { color: #a5aab4; }
html[data-theme="dark"] .retail-cell b { color: #d1d9eb; }
html[data-theme="dark"] .retail-badge { border-radius: 999px; background: #161c29; color: #bdc5d2; }
html[data-theme="dark"] .retail-badge.ready { background: rgba(22, 163, 74, 0.1); color: #9aeeba; }
html[data-theme="dark"] .retail-badge.done { background: rgba(37, 99, 235, 0.1); color: #698beb; }
html[data-theme="dark"] .retail-order-card,
html[data-theme="dark"] .retail-movement-card,
html[data-theme="dark"] .retail-imei-card { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-order-head strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-order-meta,
html[data-theme="dark"] .retail-order-items { color: #b4bcc6; }
html[data-theme="dark"] .retail-order-items { border-top: 1px solid #2d364b; }
html[data-theme="dark"] .retail-modal-overlay { background: rgba(55, 70, 102, 0.55); }
html[data-theme="dark"] .retail-modal { background: #1a2130; border-radius: 22px; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .retail-muted { color: #a5aab4; }
html[data-theme="dark"] .retail-badge.danger { background: rgba(220, 38, 38, 0.1); color: #eb7a7a; }
html[data-theme="dark"] .retail-modal-subtitle { color: #a5aab4; }
html[data-theme="dark"] .retail-form-grid label,
html[data-theme="dark"] .retail-form-full { color: #bdc5d2; }
html[data-theme="dark"] .retail-form-grid input,
html[data-theme="dark"] .retail-form-grid select,
html[data-theme="dark"] .retail-form-full textarea { border: 1px solid #354058; border-radius: 12px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .retail-form-grid input[readonly],
html[data-theme="dark"] .retail-form-grid input:disabled { background: #181e2c; color: #a5aab4; }
html[data-theme="dark"] .retail-sale-totals > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .retail-sale-totals small { color: #a5aab4; }
html[data-theme="dark"] .retail-sale-totals strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-sale-warning { border-color: rgba(220, 38, 38, 0.24) !important; background: rgba(220, 38, 38, 0.08) !important; color: #eb8d8d; }
html[data-theme="dark"] .primary-btn { border: none; border-radius: 12px; background: #374666; color: #fff; }
html[data-theme="dark"] .retail-cash-card strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-card-actions { border-top: 1px solid #2d364b; }
html[data-theme="dark"] .retail-customer-card,
html[data-theme="dark"] .retail-customer-detail-row { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-customer-stats > div,
html[data-theme="dark"] .retail-customer-detail-summary > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .retail-customer-stats small,
html[data-theme="dark"] .retail-customer-detail-summary small { color: #a5aab4; }
html[data-theme="dark"] .retail-customer-stats b,
html[data-theme="dark"] .retail-customer-detail-summary strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-customer-comment-form { border-bottom: 1px solid #2d364b; }
html[data-theme="dark"] .retail-customer-detail-block h3 { color: #d1d9eb; }
html[data-theme="dark"] .retail-debt-card { border-color: rgba(220, 38, 38, 0.22); background: linear-gradient(180deg, rgba(23, 29, 43, 0.72), #1a2130); }
html[data-theme="dark"] .retail-debt-stats > div { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .retail-debt-stats small { color: #a5aab4; }
html[data-theme="dark"] .retail-debt-stats b { color: #d1d9eb; }
html[data-theme="dark"] .retail-warranty-card { border-color: rgba(37, 99, 235, 0.18); background: linear-gradient(180deg, rgba(25, 44, 67, 0.72), #1a2130); }
html[data-theme="dark"] .retail-receipt-paper { background: rgba(26, 33, 48, 0.96); border: 1px solid rgba(117, 132, 163, 0.12); border-radius: 18px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .retail-receipt-title strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-receipt-title span { color: #a5aab4; }
html[data-theme="dark"] .retail-receipt-row { border-bottom: 1px dashed rgba(107, 114, 128, 0.35); }
html[data-theme="dark"] .retail-receipt-row span,
html[data-theme="dark"] .retail-receipt-product span,
html[data-theme="dark"] .retail-receipt-note span { color: #a5aab4; }
html[data-theme="dark"] .retail-receipt-row b { color: #d1d9eb; }
html[data-theme="dark"] .retail-receipt-product strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-receipt-product small { color: #b4bcc6; }
html[data-theme="dark"] .retail-receipt-note { border-top: 1px dashed rgba(107, 114, 128, 0.35); }
html[data-theme="dark"] .retail-receipt-note p { color: #d1d9eb; }
html[data-theme="dark"] .retail-receipt-footnote { color: #a5aab4; }
@media (max-width: 640px) {
    html[data-theme="dark"] .retail-receipt-paper { border-radius: 14px; }
}
html[data-theme="dark"] .retail-stock-hints-card { border-color: rgba(37, 99, 235, 0.14); }
html[data-theme="dark"] .retail-hint-card { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .retail-hint-card.out,
html[data-theme="dark"] .retail-hint-card.critical,
html[data-theme="dark"] .retail-hint-card.no_imei { border-color: rgba(220, 38, 38, 0.22); background: linear-gradient(180deg, rgba(23, 29, 43, 0.74), #1a2130); }
html[data-theme="dark"] .retail-hint-card.low,
html[data-theme="dark"] .retail-hint-card.imei_partial { border-color: rgba(245, 158, 11, 0.24); background: linear-gradient(180deg, rgba(68, 59, 26, 0.78), #1a2130); }
html[data-theme="dark"] .retail-hint-main h3 { color: #d1d9eb; }
html[data-theme="dark"] .retail-hint-main small { color: #a5aab4; }
html[data-theme="dark"] .retail-hint-main p { color: #b4bcc6; }
html[data-theme="dark"] .retail-hint-stats > div { border: 1px solid rgba(48, 58, 80, 0.9); border-radius: 14px; background: rgba(26, 33, 48, 0.82); }
html[data-theme="dark"] .retail-hint-stats small { color: #a5aab4; }
html[data-theme="dark"] .retail-hint-stats b { color: #d1d9eb; }
html[data-theme="dark"] .retail-reorder-card { border: 1px solid rgba(37, 99, 235, 0.14); }
html[data-theme="dark"] .retail-reorder-toolbar { border-radius: 18px; background: rgba(37, 99, 235, 0.06); }
html[data-theme="dark"] .retail-reorder-toolbar p { color: #9ea9b9; }
html[data-theme="dark"] .retail-reorder-card { border-radius: 20px; background: #1a2130; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .retail-reorder-main small,
html[data-theme="dark"] .retail-reorder-main p { color: #9ea9b9; }
html[data-theme="dark"] .retail-reorder-actions label { color: #9ea9b9; }
html[data-theme="dark"] .retail-reorder-actions input { border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 12px; }
html[data-theme="dark"] .retail-sales-analytics-card { border: 1px solid rgba(16, 185, 129, 0.14); }
html[data-theme="dark"] .retail-analytics-period { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-period select { border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .retail-analytics-card { border-radius: 20px; background: #1a2130; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .retail-analytics-rank { border-radius: 14px; background: rgba(16, 185, 129, 0.12); color: #a1f5dd; }
html[data-theme="dark"] .retail-analytics-main small,
html[data-theme="dark"] .retail-analytics-main p,
html[data-theme="dark"] .retail-analytics-subhead p { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-stats > div { border-radius: 14px; background: rgba(24, 30, 44, 0.92); }
html[data-theme="dark"] .retail-analytics-stats small { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-stats b { color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-margin.done { color: #a1f5dd; }
html[data-theme="dark"] .retail-analytics-margin.danger { color: #eb7a7a; }
html[data-theme="dark"] .retail-day-report-controls label { color: #a5aab4; }
html[data-theme="dark"] .retail-day-report-controls input,
html[data-theme="dark"] .retail-day-report-controls select { border: 1px solid #354058; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .retail-day-report-summary > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .retail-day-report-summary small { color: #a5aab4; }
html[data-theme="dark"] .retail-day-report-summary strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-day-report-item { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .retail-day-report-stats span { border-radius: 999px; background: #161c29; }
html[data-theme="dark"] .retail-negative-money { color: #eb7a7a !important; }
html[data-theme="dark"] .retail-loss-sale { border-color: rgba(220, 38, 38, 0.28) !important; background: linear-gradient(180deg, rgba(23, 29, 43, 0.85), rgba(26, 33, 48, 0.96)); }
html[data-theme="dark"] .retail-loss-badge { background: rgba(220, 38, 38, 0.12) !important; color: #eb8d8d !important; border: 1px solid rgba(220, 38, 38, 0.2); }
html[data-theme="dark"] .retail-stale-stock-card { border-color: rgba(234, 88, 12, 0.16); }
html[data-theme="dark"] .retail-stale-card { border: 1px solid rgba(245, 158, 11, 0.24); border-radius: 20px; background: linear-gradient(180deg, rgba(68, 59, 26, 0.76), #1a2130); box-shadow: 0 14px 35px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .retail-stale-card.stale,
html[data-theme="dark"] .retail-stale-card.severe { border-color: rgba(220, 38, 38, 0.25); background: linear-gradient(180deg, rgba(23, 29, 43, 0.8), #1a2130); }
html[data-theme="dark"] .retail-stale-main small,
html[data-theme="dark"] .retail-stale-main p { color: #9ea9b9; }
html[data-theme="dark"] .retail-stale-stats > div { border-radius: 14px; background: rgba(26, 33, 48, 0.86); border: 1px solid rgba(48, 58, 80, 0.9); }
html[data-theme="dark"] .retail-stale-stats small { color: #9ea9b9; }
html[data-theme="dark"] .retail-stale-reorder-note { border-radius: 12px; background: rgba(245, 158, 11, 0.12); color: #f3b590 !important; }
html[data-theme="dark"] .retail-product-rating-card { border-color: rgba(79, 70, 229, 0.16); }
html[data-theme="dark"] .retail-rating-card { border: 1px solid rgba(48, 58, 80, 0.95); border-radius: 20px; background: #1a2130; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .retail-rating-card.good { border-color: rgba(22, 163, 74, 0.22); background: linear-gradient(180deg, rgba(23, 29, 42, 0.75), #1a2130); }
html[data-theme="dark"] .retail-rating-card.medium,
html[data-theme="dark"] .retail-rating-card.new { border-color: rgba(37, 99, 235, 0.18); background: linear-gradient(180deg, rgba(25, 44, 67, 0.75), #1a2130); }
html[data-theme="dark"] .retail-rating-card.weak,
html[data-theme="dark"] .retail-rating-card.stale { border-color: rgba(220, 38, 38, 0.24); background: linear-gradient(180deg, rgba(23, 29, 43, 0.75), #1a2130); }
html[data-theme="dark"] .retail-rating-main h3 { color: #d1d9eb; }
html[data-theme="dark"] .retail-rating-main small,
html[data-theme="dark"] .retail-rating-main p,
html[data-theme="dark"] .retail-rating-main li { color: #9ea9b9; }
html[data-theme="dark"] .retail-rating-score { border: 1px solid rgba(48, 58, 80, 0.95); border-radius: 16px; background: rgba(26, 33, 48, 0.9); }
html[data-theme="dark"] .retail-rating-score small { color: #9ea9b9; }
html[data-theme="dark"] .retail-rating-score strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-rating-stats > div { border-radius: 14px; background: rgba(26, 33, 48, 0.86); border: 1px solid rgba(48, 58, 80, 0.9); }
html[data-theme="dark"] .retail-rating-stats small { color: #9ea9b9; }
html[data-theme="dark"] .retail-rating-reorder-note { border-radius: 12px; background: rgba(37, 99, 235, 0.10); color: #698beb !important; }
html[data-theme="dark"] .retail-rating-reorder-note.good { background: rgba(22, 163, 74, 0.12); color: #aaedc3 !important; }
html[data-theme="dark"] .retail-rating-reorder-note.weak,
html[data-theme="dark"] .retail-rating-reorder-note.stale { background: rgba(245, 158, 11, 0.13); color: #f3b590 !important; }
html[data-theme="dark"] .regional-retail-subscription-notice { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.28); background: rgba(24, 30, 44, 0.94); }
html[data-theme="dark"] .regional-retail-subscription-notice.success { border-color: rgba(34, 197, 94, 0.25); background: rgba(23, 29, 42, 0.95); }
html[data-theme="dark"] .regional-retail-subscription-notice.warning { border-color: rgba(245, 158, 11, 0.28); background: rgba(68, 59, 26, 0.95); }
html[data-theme="dark"] .regional-retail-subscription-notice.danger { border-color: rgba(239, 68, 68, 0.28); background: rgba(23, 29, 43, 0.95); }
html[data-theme="dark"] .regional-retail-subscription-notice strong { color: #ced7ed; }
html[data-theme="dark"] .regional-retail-subscription-notice p { color: #b0baca; }
html[data-theme="dark"] .regional-retail-subscription-meta span { border-radius: 999px; background: rgba(26, 33, 48, 0.75); color: #bac5d6; }
html[data-theme="dark"] .retail-return-card { border-color: rgba(245, 158, 11, 0.22); background: linear-gradient(180deg, rgba(68, 59, 26, 0.92), rgba(26, 33, 48, 0.96)); }
html[data-theme="dark"] .retail-return-card .retail-badge.danger { background: rgba(115, 38, 38, 0.12); color: #eb8d8d; }
html[data-theme="dark"] .retail-return-card .retail-badge.ready { background: rgba(37, 99, 235, 0.10); color: #698beb; }
html[data-theme="dark"] .retail-return-card .retail-badge.done { background: rgba(22, 163, 74, 0.12); color: #aaedc3; }
html[data-theme="dark"] .retail-integrity-card { border-color: rgba(37, 99, 235, 0.22); background: linear-gradient(180deg, rgba(25, 44, 67, 0.78), rgba(26, 33, 48, 0.96)); }
html[data-theme="dark"] .retail-integrity-chip { border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.24); background: rgba(26, 33, 48, 0.86); }
html[data-theme="dark"] .retail-integrity-chip small { color: #9ea9b9; }
html[data-theme="dark"] .retail-integrity-chip strong { color: #ced7ed; }
html[data-theme="dark"] .retail-integrity-chip.danger { border-color: rgba(239, 68, 68, 0.28); background: rgba(23, 29, 43, 0.92); }
html[data-theme="dark"] .retail-integrity-chip.warning { border-color: rgba(245, 158, 11, 0.34); background: rgba(68, 59, 26, 0.94); }
html[data-theme="dark"] .retail-integrity-chip.info { border-color: rgba(37, 99, 235, 0.24); background: rgba(25, 44, 67, 0.9); }
html[data-theme="dark"] .retail-integrity-issue { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; background: rgba(26, 33, 48, 0.94); }
html[data-theme="dark"] .retail-integrity-issue.critical { border-color: rgba(239, 68, 68, 0.32); background: rgba(23, 29, 43, 0.82); }
html[data-theme="dark"] .retail-integrity-issue.warning { border-color: rgba(245, 158, 11, 0.32); background: rgba(68, 59, 26, 0.84); }
html[data-theme="dark"] .retail-integrity-issue-main strong { color: #ced7ed; }
html[data-theme="dark"] .retail-integrity-issue-main p { color: #b0baca; }
html[data-theme="dark"] .retail-integrity-meta span { border-radius: 999px; background: rgba(55, 70, 102, 0.06); color: #bac5d6; }
html[data-theme="dark"] .retail-integrity-log-wrap { border-top: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .retail-integrity-log-wrap h3 { color: #ced7ed; }
html[data-theme="dark"] .retail-integrity-log-row { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 14px; background: rgba(26, 33, 48, 0.82); }
html[data-theme="dark"] .retail-integrity-log-row strong { color: #ced7ed; }
html[data-theme="dark"] .retail-integrity-log-row span,
html[data-theme="dark"] .retail-integrity-log-row small { color: #9ea9b9; }
html[data-theme="dark"] .retail-integrity-ok { border-color: rgba(34, 197, 94, 0.26); background: rgba(23, 29, 42, 0.92); color: #aaedc3; }
html[data-theme="dark"] .retail-quick-sale-card { border-color: #293b54; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .retail-quick-sale-form label { color: #bdc5d2; }
html[data-theme="dark"] .retail-quick-sale-form input { border: 1px solid #354058; border-radius: 12px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .retail-quick-sale-found-card { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-quick-sale-found-head strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-quick-sale-grid > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .retail-quick-sale-grid small { color: #a5aab4; }
html[data-theme="dark"] .retail-quick-sale-grid b { color: #d1d9eb; }
html[data-theme="dark"] .retail-quick-sale-ok,
html[data-theme="dark"] .retail-quick-sale-problems { border-radius: 14px; }
html[data-theme="dark"] .retail-quick-sale-ok { border: 1px solid rgba(34, 197, 94, 0.24); background: rgba(23, 29, 42, 0.92); color: #aaedc3; }
html[data-theme="dark"] .retail-quick-sale-problems { border: 1px solid #582b2b; background: #171d2b; color: #eb8d8d; }
html[data-theme="dark"] .retail-transfer-card { border-color: #293b54; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .retail-transfer-item { border-top: 1px dashed #303a50; }
html[data-theme="dark"] .retail-transfer-item:first-child { border-top: 0; }
html[data-theme="dark"] .retail-transfer-item span { color: #a5aab4; }
html[data-theme="dark"] .retail-transfer-warning { border-radius: 14px; border: 1px solid #685d32; background: #443b1a; color: #f3b590; }
html[data-theme="dark"] .retail-badge.danger { background: rgba(220, 38, 38, 0.1); color: #eb7a7a; }
html[data-theme="dark"] .retail-cash-period-controls span { color: #a1a8b6; }
html[data-theme="dark"] .retail-cash-period-controls select { border: 1px solid #2e3d58; border-radius: 10px; background: #1a2130; }
html[data-theme="dark"] .retail-cash-control-summary > div { border: 1px solid #2f394f; border-radius: 14px; background: #19202f; }
html[data-theme="dark"] .retail-cash-control-summary small,
html[data-theme="dark"] .retail-cash-control-summary span { color: #a1a8b6; }
html[data-theme="dark"] .retail-cash-ok,
html[data-theme="dark"] .retail-cash-alert { border-radius: 12px; border: 1px solid #293b56; background: #191f2e; }
html[data-theme="dark"] .retail-cash-ok { border-color: #2d5d3e; background: #171d2a; }
html[data-theme="dark"] .retail-cash-alert.danger { border-color: #5d2d2d; background: #181f2d; }
html[data-theme="dark"] .retail-cash-alert.ready { border-color: #61522f; background: #171d2b; }
html[data-theme="dark"] .retail-cash-alert p { color: #a9b4c5; }
html[data-theme="dark"] .retail-cash-subhead p { color: #a1a8b6; }
html[data-theme="dark"] #saleDebtAmount[readonly],
html[data-theme="dark"] #salePaidAmount[readonly] { background: #181e2c; }
html[data-theme="dark"] .retail-debt-control-card { border: 1px solid rgba(239, 68, 68, 0.14); }
html[data-theme="dark"] .retail-debt-controls select,
html[data-theme="dark"] .retail-debt-controls input { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 12px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .retail-debt-control-summary > div { background: linear-gradient(180deg, rgba(24, 30, 44, 0.95), rgba(22, 28, 41, 0.95)); border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 16px; }
html[data-theme="dark"] .retail-debt-control-summary small,
html[data-theme="dark"] .retail-debt-control-summary span { color: #9ea9b9; }
html[data-theme="dark"] .retail-debt-control-summary strong { color: #ced7ed; }
html[data-theme="dark"] .retail-debt-card.is-overdue { border-color: rgba(239, 68, 68, 0.38); box-shadow: 0 10px 28px rgba(239, 68, 68, 0.08); }
html[data-theme="dark"] .retail-debt-due-editor input[type="date"] { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .retail-subsection-title { color: #ced7ed; }
html[data-theme="dark"] .retail-debt-log-row { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 14px; background: rgba(24, 30, 44, 0.72); }
html[data-theme="dark"] .retail-debt-log-row small { color: #9ea9b9; }
html[data-theme="dark"] .retail-customers-tools input,
html[data-theme="dark"] .retail-customers-tools select { border: 1px solid #354058; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .retail-customers-summary > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .retail-customers-summary small { color: #a5aab4; }
html[data-theme="dark"] .retail-customers-summary strong { color: #d1d9eb; }
html[data-theme="dark"] .retail-customer-card.is-overdue { border-color: #582b2b; background: #181f2d; }
html[data-theme="dark"] .retail-customer-card.is-debtor { border-color: #60492e; }
html[data-theme="dark"] .retail-customer-contact-grid > div { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .retail-warranty-control-actions input,
html[data-theme="dark"] .retail-warranty-control-actions select { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 12px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .retail-warranty-detail-card { border: 1px solid rgba(37, 99, 235, 0.22); border-radius: 18px; background: linear-gradient(180deg, rgba(25, 44, 67, 0.85), rgba(26, 33, 48, 0.96)); box-shadow: 0 16px 35px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .retail-detail-grid > div,
html[data-theme="dark"] .retail-mini-summary-card { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 14px; background: rgba(26, 33, 48, 0.9); }
html[data-theme="dark"] .retail-detail-grid small,
html[data-theme="dark"] .retail-mini-summary-card span { color: #9ea9b9; }
html[data-theme="dark"] .retail-detail-grid strong,
html[data-theme="dark"] .retail-mini-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .retail-log-row { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 12px; background: rgba(24, 30, 44, 0.86); }
html[data-theme="dark"] .retail-log-row span,
html[data-theme="dark"] .retail-log-row small { color: #9ea9b9; }
html[data-theme="dark"] .retail-warranty-card.is-warning { border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(180deg, rgba(23, 29, 43, 0.9), rgba(26, 33, 48, 0.96)); }
html[data-theme="dark"] .retail-error-state { border: 1px solid rgba(239, 68, 68, 0.24); border-radius: 14px; background: rgba(23, 29, 43, 0.9); color: #eb8d8d; }
html[data-theme="dark"] .retail-stock-tips-controls label { color: #9ea9b9; }
html[data-theme="dark"] .retail-stock-tips-controls select,
html[data-theme="dark"] .retail-stock-tips-controls input { border: 1px solid #2a3f58; border-radius: 12px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .retail-stock-tips-summary > div { border: 1px solid rgba(42, 63, 88, 0.92); border-radius: 16px; background: linear-gradient(180deg, rgba(24, 30, 44, 0.96), #1a2130); }
html[data-theme="dark"] .retail-stock-tips-summary small { color: #9ea9b9; }
html[data-theme="dark"] .retail-stock-tips-summary b { color: #ced7ed; }
html[data-theme="dark"] .retail-hint-card.smart-buy,
html[data-theme="dark"] .retail-hint-card.good { border-color: rgba(22, 163, 74, 0.22); background: linear-gradient(180deg, rgba(23, 29, 42, 0.72), #1a2130); }
html[data-theme="dark"] .retail-hint-card.smart-stale,
html[data-theme="dark"] .retail-hint-card.smart-weak,
html[data-theme="dark"] .retail-hint-card.weak,
html[data-theme="dark"] .retail-hint-card.stale { border-color: rgba(220, 38, 38, 0.22); background: linear-gradient(180deg, rgba(23, 29, 43, 0.76), #1a2130); }
html[data-theme="dark"] .retail-hint-card.smart-attention { border-color: rgba(245, 158, 11, 0.26); background: linear-gradient(180deg, rgba(68, 59, 26, 0.74), #1a2130); }
html[data-theme="dark"] .retail-badge.muted { background: #161c29; color: #b0baca; border: 1px solid #303a50; }
html[data-theme="dark"] .retail-stock-tip-recommendation { border-radius: 12px; background: rgba(55, 70, 102, 0.04); color: #bac5d6 !important; }
html[data-theme="dark"] .retail-reorder-cart-card { border: 1px solid rgba(37, 99, 235, 0.14); }
html[data-theme="dark"] .retail-reorder-cart-summary > div { border-radius: 14px; background: rgba(55, 70, 102, 0.04); border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .retail-reorder-cart-summary small { color: #9ea9b9; }
html[data-theme="dark"] .retail-reorder-cart-summary b { color: #ced7ed; }
html[data-theme="dark"] .retail-reorder-cart-item { border: 1px solid rgba(117, 131, 163, 0.1); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-reorder-cart-main p { color: #b0baca; }
html[data-theme="dark"] .retail-reorder-cart-controls label { color: #9ea9b9; }
html[data-theme="dark"] .retail-reorder-cart-controls input { border: 1px solid rgba(117, 131, 163, 0.14); border-radius: 10px; }
html[data-theme="dark"] .retail-reorder-cart-stats > div { border-radius: 12px; background: rgba(24, 30, 44, 0.95); }
html[data-theme="dark"] .retail-reorder-cart-stats small { color: #9ea9b9; }
html[data-theme="dark"] .secondary-btn.danger { color: #eb7a7a; border-color: rgba(185, 28, 28, 0.24); background: rgba(23, 29, 43, 0.92); }
html[data-theme="dark"] .retail-analytics-control-card { border: 1px solid rgba(124, 58, 237, 0.16); }
html[data-theme="dark"] .retail-analytics-control-actions label { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-control-actions select,
html[data-theme="dark"] .retail-analytics-control-actions input { border: 1px solid #2a3e58; border-radius: 10px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-metric { border: 1px solid #283c54; border-radius: 14px; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .retail-analytics-metric small,
html[data-theme="dark"] .retail-analytics-metric span { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-metric strong { color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-rec { border: 1px solid #283c54; border-left: 4px solid #3b82f6; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .retail-analytics-rec.warning { border-left-color: #f59e0b; }
html[data-theme="dark"] .retail-analytics-rec.danger { border-left-color: #ef4444; }
html[data-theme="dark"] .retail-analytics-rec.success { border-left-color: #10b981; }
html[data-theme="dark"] .retail-analytics-rec strong { color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-rec p { color: #b0baca; }
html[data-theme="dark"] .retail-analytics-control-panel { border: 1px solid #283c54; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-analytics-control-panel h3 { color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-row { border: 1px solid #2d374c; border-radius: 12px; background: #191f2e; }
html[data-theme="dark"] .retail-analytics-row.warning { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .retail-analytics-row.danger { background: #171d2b; border-color: #582a30; }
html[data-theme="dark"] .retail-analytics-row strong { color: #ced7ed; }
html[data-theme="dark"] .retail-analytics-row p { color: #9ea9b9; }
html[data-theme="dark"] .retail-analytics-row-stats { color: #bac5d6; }
html[data-theme="dark"] .retail-customer-flags span { border-radius: 999px; background: #43311a; border: 1px solid rgba(234, 88, 12, 0.18); color: #f1a48a; }
html[data-theme="dark"] .retail-customer-alert { border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.22); background: #181e2c; }
html[data-theme="dark"] .retail-customer-alert span { color: #9ea9b9; }
html[data-theme="dark"] .retail-customer-alert.warning { background: #443b1a; border-color: rgba(217, 119, 6, 0.25); }
html[data-theme="dark"] .retail-customer-alert.warning strong { color: #f3b590; }
html[data-theme="dark"] .retail-customer-alert.danger { background: #171d2b; border-color: rgba(220, 38, 38, 0.22); }
html[data-theme="dark"] .retail-customer-alert.danger strong { color: #eb8d8d; }
html[data-theme="dark"] .retail-customer-alert.done { background: #171d2a; border-color: rgba(22, 163, 74, 0.22); }
html[data-theme="dark"] .retail-customer-alert.done strong { color: #aaedc3; }
html[data-theme="dark"] .retail-customer-quick-actions { border-radius: 16px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.2); }
html[data-theme="dark"] .retail-customer-actions-title { color: #b0baca; }
html[data-theme="dark"] .retail-imei-card,
html[data-theme="dark"] .retail-receipt-row,
html[data-theme="dark"] .retail-action-log-row { background: #1a2130; }
html[data-theme="dark"] .retail-customer-detail-block h3::before { border-radius: 999px; background: currentColor; }
@media (max-width: 760px) {
    html[data-theme="dark"] .retail-customer-alert,
    html[data-theme="dark"] .retail-customer-quick-actions { border-radius: 12px; }
}
/* --- regional-returns.css --- */
html[data-theme="dark"] .rr-header p { color: #b0baca; }
html[data-theme="dark"] .rr-scope-btn { border-radius: 999px; border: 1px solid #2a3e58; background: #181e2c; color: #8ecff2; }
html[data-theme="dark"] .rr-scope-btn.is-active { background: #374666; border-color: #7583a3; color: #fff; }
html[data-theme="dark"] .rr-client-filter { border-radius: 12px; border: 1px solid #2b3f59; }
html[data-theme="dark"] .rr-item { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .rr-item.is-active { border-color: #7583a3; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65); }
html[data-theme="dark"] .rr-item.is-waiting { border-left: 4px solid #ff3b4f; }
html[data-theme="dark"] .rr-item-meta { color: #9ea9b9; }
html[data-theme="dark"] .rr-status { border-radius: 999px; }
html[data-theme="dark"] .rr-status.is-mine { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .rr-status.is-wait { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .rr-status.is-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .rr-status.is-closed { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .rr-detail { border: 1px solid #303a50; border-radius: 20px; background: #181e2c; }
html[data-theme="dark"] .rr-detail h3 { color: #ced7ed; }
html[data-theme="dark"] .rr-sub { color: #b0baca; }
html[data-theme="dark"] .rr-empty { color: #9ea9b9; }
html[data-theme="dark"] .rr-terms > div { border-radius: 14px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .rr-terms span { color: #9ea9b9; }
html[data-theme="dark"] .rr-terms strong { color: #ced7ed; }
html[data-theme="dark"] .rr-decision { border-radius: 16px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .rr-decision.is-mine { border-color: #582b2b; background: #181f2d; }
html[data-theme="dark"] .rr-decision p { color: #bac5d6; }
html[data-theme="dark"] .rr-danger { color: #eb7a7a !important; }
html[data-theme="dark"] .rr-propose label,
html[data-theme="dark"] .rr-form label { color: #bac5d6; }
html[data-theme="dark"] .rr-propose input,
html[data-theme="dark"] .rr-form input,
html[data-theme="dark"] .rr-form select,
html[data-theme="dark"] .rr-form textarea,
html[data-theme="dark"] .rr-composer textarea { border: 1px solid #2b3f59; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .rr-label { color: #bac5d6; }
html[data-theme="dark"] .rr-imei-pick { border: 1px solid #303a50; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .rr-imei { border-radius: 999px; background: #161c29; }
html[data-theme="dark"] .rr-hint { color: #9ea9b9; }
html[data-theme="dark"] .rr-msg { border-radius: 14px 14px 14px 4px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .rr-msg.is-mine { border-radius: 14px 14px 4px 14px; background: #192c43; border-color: #2c415b; }
html[data-theme="dark"] .rr-msg-head { color: #9ea9b9; }
html[data-theme="dark"] .rr-msg-head strong { color: #ced7ed; }
html[data-theme="dark"] .rr-msg em { color: #8ecff2; }
html[data-theme="dark"] .rr-msg p { color: #ced7ed; }
html[data-theme="dark"] .rr-modal-backdrop { background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .rr-modal-card { background: #1a2130; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .rr-modal-close { border: 0; border-radius: 12px; background: #161c29; }
html[data-theme="dark"] .rr-menu-badge { border-radius: 999px; background: #71262d; color: #fff; }
html[data-theme="dark"] .rr-overpay { color: #b0baca; }
html[data-theme="dark"] .rr-overpay select { border: 1px solid #344559; border-radius: 10px; color: #ced7ed; background: #1a2130; }
/* --- retail-customer-center.css --- */
html[data-theme="dark"] .retail-customer-center-page { background: linear-gradient(120deg, #181e2c 0%, #192b43 100%); }
html[data-theme="dark"] .retail-customer-header,
html[data-theme="dark"] .retail-customer-filter-card,
html[data-theme="dark"] .retail-customer-list-card,
html[data-theme="dark"] .retail-customer-detail-card,
html[data-theme="dark"] .retail-customer-admin-owners { border-radius: 24px; border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(26, 33, 48, 0.92); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .retail-customer-header p,
html[data-theme="dark"] .retail-customer-filter-card p,
html[data-theme="dark"] .retail-customer-list-card p,
html[data-theme="dark"] .retail-customer-detail-card p { color: #9ea9b9; }
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .telegram-btn,
html[data-theme="dark"] .retail-customer-mini-btn { border-radius: 18px; border: 1px solid rgba(117, 131, 163, 0.18); background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .telegram-btn,
html[data-theme="dark"] .retail-customer-mini-btn.is-primary { background: #374666; color: #fff; border-color: #7584a3; }
html[data-theme="dark"] .retail-customer-notice,
html[data-theme="dark"] .retail-customer-admin-note { border-radius: 18px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .retail-customer-notice.is-error { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .retail-customer-stat { border-radius: 20px; background: rgba(26, 33, 48, 0.94); border: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .retail-customer-stat span { color: #9ea9b9; }
html[data-theme="dark"] .retail-customer-stat strong { color: #ced7ed; }
html[data-theme="dark"] .retail-customer-filter-form label { color: #bac5d6; }
html[data-theme="dark"] .retail-customer-filter-form input,
html[data-theme="dark"] .retail-customer-detail textarea { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .retail-customer-item { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .retail-customer-item:hover,
html[data-theme="dark"] .retail-customer-item.is-active { border-color: #60a5fa; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .retail-customer-item-title { color: #ced7ed; }
html[data-theme="dark"] .retail-customer-meta,
html[data-theme="dark"] .retail-customer-item small { color: #9ea9b9; }
html[data-theme="dark"] .retail-customer-badge { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .retail-customer-badge.is-good { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .retail-customer-badge.is-medium { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .retail-customer-badge.is-risk { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .retail-customer-detail-empty { border-radius: 18px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .retail-customer-detail-stat { border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .retail-customer-detail-stat span { color: #9ea9b9; }
html[data-theme="dark"] .retail-customer-section { border-top: 1px solid #303a50; }
html[data-theme="dark"] .retail-customer-table-wrap { border-radius: 16px; border: 1px solid #303a50; }
html[data-theme="dark"] .retail-customer-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .retail-customer-table th,
html[data-theme="dark"] .retail-customer-table td { border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .retail-customer-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .retail-customer-admin-owner { border: 1px solid #303a50; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .rcc-filters button { border: 1px solid #2a3d58; background: #1a2130; border-radius: 999px; color: #ced7ed; }
html[data-theme="dark"] .rcc-filters button b { color: #9ea9b9; }
html[data-theme="dark"] .rcc-filters button.is-active { background: #374666; color: #fff; border-color: #7584a3; }
html[data-theme="dark"] .rcc-filters button.is-active b { color: #cbd5e1; }
html[data-theme="dark"] .rcc-table { border-collapse: collapse; }
html[data-theme="dark"] .rcc-table th { color: #9ea9b9; border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .rcc-table th[data-rcc-sort]:hover { color: #ced7ed; }
html[data-theme="dark"] .rcc-table td { border-bottom: 1px solid #2d364b; color: #cad4e1; }
html[data-theme="dark"] .rcc-table tbody tr:hover { background: #181e2c; }
html[data-theme="dark"] .rcc-name { color: #ced7ed; }
html[data-theme="dark"] .rcc-muted { color: #94a3b8; }
html[data-theme="dark"] .rcc-debt { color: #f1b281; }
html[data-theme="dark"] .rcc-overdue { color: #eb7a7a; }
html[data-theme="dark"] .rcc-modal { background: rgba(55, 70, 102, 0.5); }
html[data-theme="dark"] .rcc-modal-dialog { background: #1a2130; border-radius: 26px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .rcc-modal-head p { color: #9ea9b9; }
html[data-theme="dark"] .rcc-close { border: 0; background: #161c29; border-radius: 14px; }
html[data-theme="dark"] .rcc-close:hover { background: #111620; }
/* --- return-warranty.css --- */
html[data-theme="dark"] .return-warranty-page { background: #171d2b; }
html[data-theme="dark"] .return-warranty-header p,
html[data-theme="dark"] .return-warranty-card p,
html[data-theme="dark"] .return-warranty-help-list span,
html[data-theme="dark"] .return-warranty-history-sub,
html[data-theme="dark"] .return-warranty-muted { color: #a8b0bb; }
html[data-theme="dark"] .return-warranty-notice,
html[data-theme="dark"] .return-warranty-admin-note { border-radius: 18px; background: #193043; color: #9ad4f4; border: 1px solid rgba(14, 116, 144, 0.18); }
html[data-theme="dark"] .return-warranty-notice.is-error { background: #171d2b; color: #f07895; border-color: rgba(225, 29, 72, 0.2); }
html[data-theme="dark"] .return-warranty-stat { background: rgba(26, 33, 48, 0.88); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .return-warranty-stat span { color: #9ea9b9; }
html[data-theme="dark"] .return-warranty-stat strong { color: #ced7ed; }
html[data-theme="dark"] .return-warranty-card { border-radius: 26px; }
html[data-theme="dark"] .return-warranty-form label { color: #ced7ed; }
html[data-theme="dark"] .return-warranty-form input,
html[data-theme="dark"] .return-warranty-form select,
html[data-theme="dark"] .return-warranty-form textarea { border: 1px solid #2a3f58; border-radius: 15px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .return-warranty-form small { color: #9ea9b9; }
html[data-theme="dark"] .return-warranty-help-list div,
html[data-theme="dark"] .return-warranty-history-item { border-radius: 18px; background: #1a2130; border: 1px solid #2d374c; }
html[data-theme="dark"] .return-warranty-help-list strong { color: #ced7ed; }
html[data-theme="dark"] .return-warranty-pill { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .return-warranty-pill.is-warning { background: #43311a; color: #f09c79; }
html[data-theme="dark"] .return-warranty-pill.is-danger { background: #171d2b; color: #f07895; }
html[data-theme="dark"] .return-warranty-pill.is-success { background: #1a4430; color: #a1f5dd; }
html[data-theme="dark"] .return-warranty-form select[size] option { border-radius: 8px; }
html[data-theme="dark"] .return-warranty-imei { border-radius: 999px; background: #161c29; }
html[data-theme="dark"] .return-warranty-preview { border-radius: 14px; background: #181e2c; border: 1px dashed #344559; color: #bac5d6; }
/* --- risk-debts.css --- */
html[data-theme="dark"] .risk-debts-page { background: #171e2b; }
html[data-theme="dark"] .risk-debts-header p,
html[data-theme="dark"] .risk-debts-card p,
html[data-theme="dark"] .risk-debts-info,
html[data-theme="dark"] .risk-debts-muted { color: #a7b0be; }
html[data-theme="dark"] .risk-debts-form label,
html[data-theme="dark"] .risk-debts-condition-form label { color: #d2d9e8; }
html[data-theme="dark"] .risk-debts-form input,
html[data-theme="dark"] .risk-debts-form select,
html[data-theme="dark"] .risk-debts-condition-form input,
html[data-theme="dark"] .risk-debts-condition-form select,
html[data-theme="dark"] .risk-debts-condition-form textarea { border: 1px solid #2a3c58; border-radius: 14px; background: #1a2130; color: #d0d9ec; outline: none; }
html[data-theme="dark"] .risk-debts-form input:focus,
html[data-theme="dark"] .risk-debts-form select:focus,
html[data-theme="dark"] .risk-debts-condition-form input:focus,
html[data-theme="dark"] .risk-debts-condition-form select:focus,
html[data-theme="dark"] .risk-debts-condition-form textarea:focus { border-color: #0d6efd; box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08); }
html[data-theme="dark"] .risk-debts-check { background: #191f2e; border: 1px solid #283a54; border-radius: 14px; }
html[data-theme="dark"] .risk-debts-summary-card { background: #1a2130; border: 1px solid #2e384d; border-radius: 20px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .risk-debts-summary-card span,
html[data-theme="dark"] .risk-debts-metric span { color: #97a2b2; }
html[data-theme="dark"] .risk-debts-summary-card strong,
html[data-theme="dark"] .risk-debts-metric strong { color: #d1d9eb; }
html[data-theme="dark"] .risk-debts-client { border: 1px solid #293b54; background: #1a2130; border-radius: 18px; }
html[data-theme="dark"] .risk-debts-client h3 { color: #d0d9ec; }
html[data-theme="dark"] .risk-debts-badge { border-radius: 999px; }
html[data-theme="dark"] .risk-debts-badge.trusted { background: #141a26; color: #a1f5cf; }
html[data-theme="dark"] .risk-debts-badge.normal { background: #1a2c43; color: #6fa3ef; }
html[data-theme="dark"] .risk-debts-badge.attention { background: #473c1b; color: #f3d296; }
html[data-theme="dark"] .risk-debts-badge.risk { background: #45291a; color: #f1aa81; }
html[data-theme="dark"] .risk-debts-badge.stop { background: #171d2b; color: #ee847d; }
html[data-theme="dark"] .risk-debts-metric { background: #191f2e; border: 1px solid #2d364b; border-radius: 14px; }
html[data-theme="dark"] .risk-debts-warning-list { color: #f4b69c; }
html[data-theme="dark"] .risk-debts-rule-item { border: 1px solid #2d364b; background: #1a2130; border-radius: 16px; }
html[data-theme="dark"] .risk-debts-notice,
html[data-theme="dark"] .risk-debts-admin-note,
html[data-theme="dark"] .risk-debts-info { border-radius: 18px; }
html[data-theme="dark"] .risk-debts-notice { background: #192d43; border: 1px solid #2a3e57; color: #84adee; }
html[data-theme="dark"] .risk-debts-notice.is-error { background: #171d2b; border-color: #582a30; color: #ee847d; }
html[data-theme="dark"] .risk-debts-admin-note { background: #45391a; border: 1px solid #61522f; color: #f5d5a2; }
html[data-theme="dark"] .risk-debts-info { background: #191f2e; border: 1px solid #293a54; }
/* --- settlements.css --- */
html[data-theme="dark"] .st-header p { color: #b0baca; }
html[data-theme="dark"] .st-total { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .st-total span { color: #9ea9b9; }
html[data-theme="dark"] .st-total strong { color: #ced7ed; }
html[data-theme="dark"] .st-total small { color: #94a3b8; }
html[data-theme="dark"] .st-total.is-in strong { color: #a1f5dd; }
html[data-theme="dark"] .st-total.is-out strong { color: #eb7a7a; }
html[data-theme="dark"] .st-search { border: 1px solid #2b3f59; border-radius: 12px; }
html[data-theme="dark"] .st-filter button { border-radius: 999px; border: 1px solid #2a3e58; background: #181e2c; color: #8ecff2; }
html[data-theme="dark"] .st-filter button.is-active { background: #374666; border-color: #7583a3; color: #fff; }
html[data-theme="dark"] .st-item { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .st-item:hover { border-color: #2c415b; }
html[data-theme="dark"] .st-item.is-active { border-color: #7583a3; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65); }
html[data-theme="dark"] .st-item-meta { color: #9ea9b9; }
html[data-theme="dark"] .st-in { color: #a1f5dd; }
html[data-theme="dark"] .st-out { color: #eb7a7a; }
html[data-theme="dark"] .st-zero { color: #9ea9b9; }
html[data-theme="dark"] .st-empty { color: #9ea9b9; }
html[data-theme="dark"] .st-detail { border: 1px solid #303a50; border-radius: 20px; background: #181e2c; }
html[data-theme="dark"] .st-detail-head h2 { color: #ced7ed; }
html[data-theme="dark"] .st-detail-head p { color: #9ea9b9; }
html[data-theme="dark"] .st-chip { border-radius: 999px; background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .st-numbers > div { border-radius: 14px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .st-numbers span { color: #9ea9b9; }
html[data-theme="dark"] .st-numbers strong { color: #ced7ed; }
html[data-theme="dark"] .st-saldo { border-radius: 14px; background: #1a2130; border: 1px dashed #344559; color: #bac5d6; }
html[data-theme="dark"] .st-note { color: #9ea9b9; }
html[data-theme="dark"] .st-section-title { color: #ced7ed; }
html[data-theme="dark"] .st-deal { border-radius: 14px; background: #1a2130; border: 1px solid #303a50; }
html[data-theme="dark"] .st-deal.is-overpay { border-color: #685d32; background: #443b1a; }
html[data-theme="dark"] .st-deal-title { color: #bac5d6; }
html[data-theme="dark"] .st-deal-math { color: #9ea9b9; }
html[data-theme="dark"] .st-deal-claim { border-radius: 10px; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .st-ledger-wrap { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .st-ledger { border-collapse: collapse; }
html[data-theme="dark"] .st-ledger th { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .st-ledger td { border-top: 1px solid #2d374c; color: #ced7ed; }
html[data-theme="dark"] .st-ledger td.st-date { color: #9ea9b9; }
html[data-theme="dark"] .st-ledger .st-muted { color: #94a3b8; }
html[data-theme="dark"] .st-ledger td.st-deal-cell { color: #b0baca; }
html[data-theme="dark"] .st-modal-backdrop { background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .st-modal-card { background: #1a2130; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .st-modal-close { border: 0; border-radius: 10px; background: #161c29; }
html[data-theme="dark"] .st-form label { color: #bac5d6; }
html[data-theme="dark"] .st-form input,
html[data-theme="dark"] .st-form select { border: 1px solid #2b3f59; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .st-form p { color: #b0baca; }
/* --- shop.css --- */
html[data-theme="dark"] .shop-root,
html[data-theme="dark"] .shop-modal,
html[data-theme="dark"] .shop-toast { --shop-ink: #ced7ed; --shop-muted: #b0baca; --shop-line: #303a50; --shop-soft: #181e2c; --shop-dark: #374666; --shop-red: #eb7a7a; --shop-amber: #f1b281; --shop-shadow: 0 10px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .shop-root { color: var(--shop-ink); }
html[data-theme="dark"] .shop-root h1,
html[data-theme="dark"] .shop-root h2,
html[data-theme="dark"] .shop-root h3,
html[data-theme="dark"] .shop-modal h2,
html[data-theme="dark"] .shop-modal h3 { color: var(--shop-ink); }
html[data-theme="dark"] .shop-root a,
html[data-theme="dark"] .shop-modal a { color: #6a97ee; }
html[data-theme="dark"] .shop-root a:hover,
html[data-theme="dark"] .shop-modal a:hover { color: #8caff2; }
html[data-theme="dark"] .shop-eyebrow { color: #6a97ee; }
html[data-theme="dark"] .shop-subtitle { color: var(--shop-muted); }
html[data-theme="dark"] .shop-seg { background: #1a2130; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .shop-root .shop-seg button,
html[data-theme="dark"] .shop-modal .shop-seg button { border: 0; border-radius: 12px; background: transparent; color: var(--shop-ink); box-shadow: none; }
html[data-theme="dark"] .shop-root .shop-seg button[aria-pressed="true"],
html[data-theme="dark"] .shop-modal .shop-seg button[aria-pressed="true"] { background: var(--shop-dark); color: #fff; }
html[data-theme="dark"] .shop-kpi { background: #1a2130; border-radius: 20px; box-shadow: var(--shop-shadow); }
html[data-theme="dark"] .shop-kpi-label { color: var(--shop-muted); }
html[data-theme="dark"] .shop-kpi-note { color: var(--shop-muted); }
html[data-theme="dark"] .shop-kpi-value.is-green { color: #9aeeba; }
html[data-theme="dark"] .shop-kpi-value.is-amber { color: var(--shop-amber); }
html[data-theme="dark"] .shop-kpi-value.is-red { color: var(--shop-red); }
html[data-theme="dark"] .shop-delta-up { color: #9aeeba; }
html[data-theme="dark"] .shop-delta-down { color: var(--shop-red); }
html[data-theme="dark"] .shop-delta-flat { color: var(--shop-muted); }
html[data-theme="dark"] .shop-card { background: #1a2130; border-radius: 24px; box-shadow: var(--shop-shadow); }
html[data-theme="dark"] .shop-hint { color: var(--shop-muted); }
html[data-theme="dark"] .shop-root .shop-btn,
html[data-theme="dark"] .shop-modal .shop-btn { border: 0; border-radius: 12px; background: var(--shop-dark); color: #fff; box-shadow: none; }
html[data-theme="dark"] .shop-root .shop-btn:hover,
html[data-theme="dark"] .shop-modal .shop-btn:hover { background: #3b4a6d; color: #fff; }
html[data-theme="dark"] .shop-root .shop-btn.is-light,
html[data-theme="dark"] .shop-modal .shop-btn.is-light { background: #1a2130; color: var(--shop-ink); border: 1px solid #344559; }
html[data-theme="dark"] .shop-root .shop-btn.is-light:hover,
html[data-theme="dark"] .shop-modal .shop-btn.is-light:hover { background: var(--shop-soft); }
html[data-theme="dark"] .shop-root .shop-btn.is-green,
html[data-theme="dark"] .shop-modal .shop-btn.is-green { background: var(--shop-green); }
html[data-theme="dark"] .shop-root .shop-btn.is-green:hover,
html[data-theme="dark"] .shop-modal .shop-btn.is-green:hover { background: #1b7e41; }
html[data-theme="dark"] .shop-root .shop-btn[disabled],
html[data-theme="dark"] .shop-modal .shop-btn[disabled] { background: #2a3849; color: var(--shop-muted); border: 0; }
html[data-theme="dark"] .shop-root .shop-btn.is-small,
html[data-theme="dark"] .shop-modal .shop-btn.is-small { border-radius: 10px; }
html[data-theme="dark"] .shop-root .shop-action { border: 1px solid #344559; border-radius: 20px; background: #1a2130; color: var(--shop-ink); box-shadow: none; }
html[data-theme="dark"] .shop-root .shop-action:hover { background: var(--shop-soft); color: var(--shop-ink); }
html[data-theme="dark"] .shop-root .shop-action.is-main { background: var(--shop-dark); color: #fff; border: 0; }
html[data-theme="dark"] .shop-root .shop-action.is-main:hover { background: #3b4a6d; color: #fff; }
html[data-theme="dark"] .shop-action-main-text span { color: #CBD5E1; }
html[data-theme="dark"] .shop-att { border-radius: 16px; background: var(--shop-soft); }
html[data-theme="dark"] .shop-att-dot { border-radius: 50%; background: #64748B; }
html[data-theme="dark"] .shop-att-dot.is-danger { background: #C2410C; }
html[data-theme="dark"] .shop-att-dot.is-warn { background: #D97706; }
html[data-theme="dark"] .shop-att-dot.is-info { background: var(--shop-blue); }
html[data-theme="dark"] .shop-att-text span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-empty { border-radius: 14px; background: var(--shop-soft); color: var(--shop-muted); }
html[data-theme="dark"] .shop-money-line { border-bottom: 1px solid var(--shop-line); }
html[data-theme="dark"] .shop-money-line:last-of-type { border-bottom: 0; }
html[data-theme="dark"] .shop-money-line span { color: var(--shop-ink); }
html[data-theme="dark"] .shop-money-line.is-muted span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-plus { color: #9aeeba; }
html[data-theme="dark"] .shop-minus { color: var(--shop-red); }
html[data-theme="dark"] .shop-root .shop-tabs button { border: 1px solid var(--shop-line); border-radius: 12px; background: var(--shop-soft); color: var(--shop-ink); box-shadow: none; }
html[data-theme="dark"] .shop-root .shop-tabs button[aria-selected="true"] { background: var(--shop-dark); color: #fff; border-color: var(--shop-dark); }
html[data-theme="dark"] .shop-table-wrap { border: 1px solid var(--shop-line); border-radius: 16px; }
html[data-theme="dark"] .shop-root table.shop-table { border-collapse: collapse; background: #1a2130; }
html[data-theme="dark"] .shop-root table.shop-table th { color: var(--shop-muted); background: var(--shop-soft); border: 0; }
html[data-theme="dark"] .shop-root table.shop-table td { border: 0; border-top: 1px solid var(--shop-line); color: var(--shop-ink); }
html[data-theme="dark"] .shop-sub { color: var(--shop-muted); }
html[data-theme="dark"] .shop-pill { border-radius: 999px; background: #161c29; color: var(--shop-muted); }
html[data-theme="dark"] .shop-pill.is-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .shop-pill.is-warn { background: #4a361c; color: #f1a48a; }
html[data-theme="dark"] .shop-pill.is-debt { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .shop-pill.is-info { background: #1b2547; color: #8f8adc; }
html[data-theme="dark"] .shop-list-row { border: 1px solid var(--shop-line); border-radius: 14px; }
html[data-theme="dark"] .shop-list-row > .c-date { color: var(--shop-muted); }
html[data-theme="dark"] .shop-list-row > .c-acc { color: var(--shop-muted); }
html[data-theme="dark"] .shop-notice { border-radius: 18px; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .shop-notice.is-error { background: #171d2b; color: var(--shop-red); }
html[data-theme="dark"] .shop-loading { color: var(--shop-muted); }
html[data-theme="dark"] .shop-modal { background: rgba(55, 70, 102, 0.5); color: #ced7ed; }
html[data-theme="dark"] .shop-dialog { background: #1a2130; border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .shop-modal .shop-x { border: 1px solid #344559; background: #1a2130; border-radius: 12px; color: #ced7ed; box-shadow: none; }
html[data-theme="dark"] .shop-sell-right { background: var(--shop-soft); border-radius: 20px; }
html[data-theme="dark"] .shop-modal label.shop-field { color: #ced7ed; }
html[data-theme="dark"] .shop-modal .shop-field input,
html[data-theme="dark"] .shop-modal .shop-field select { border: 1px solid #344559; border-radius: 12px; background: #1a2130; color: #ced7ed; box-shadow: none; }
html[data-theme="dark"] .shop-modal .shop-scan input { border: 2px solid #7584a3; border-radius: 14px; outline: none; }
html[data-theme="dark"] .shop-modal .shop-scan input:focus { box-shadow: 0 0 0 4px rgba(20, 87, 217, .18); border-color: #1457D9; }
html[data-theme="dark"] .shop-alert { border-radius: 12px; background: #4a361c; color: #f1a48a; }
html[data-theme="dark"] .shop-alert.is-error { background: #171d2b; color: #eb7a7a; }
html[data-theme="dark"] .shop-alert.is-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .shop-pick { border: 1px solid var(--shop-line); border-radius: 14px; }
html[data-theme="dark"] .shop-pick-text span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-cart-row { background: #1a2130; border-radius: 12px; }
html[data-theme="dark"] .shop-modal .shop-cart-price { border: 1px solid #344559; border-radius: 10px; }
html[data-theme="dark"] .shop-modal .shop-cart-price.is-loss { border-color: #B91C1C; color: #eb7a7a; }
html[data-theme="dark"] .shop-cart-warn { color: #eb7a7a; }
html[data-theme="dark"] .shop-modal .shop-x.is-small { border-radius: 10px; }
html[data-theme="dark"] .shop-total { border-top: 1px solid var(--shop-line); }
html[data-theme="dark"] .shop-modal .shop-checkout { border: 0; border-radius: 14px; background: #16833f; color: #fff; }
html[data-theme="dark"] .shop-modal .shop-checkout[disabled] { background: #2a3849; color: #b0baca; }
html[data-theme="dark"] .shop-modal .shop-seg { box-shadow: none; background: transparent; }
html[data-theme="dark"] .shop-modal .shop-seg button { border: 1px solid #344559; border-radius: 999px; background: #1a2130; }
html[data-theme="dark"] .shop-modal .shop-seg button[aria-pressed="true"] { border-color: #7584a3; }
html[data-theme="dark"] .shop-loss-box { border-radius: 14px; background: #171d2b; color: #eb7a7a; }
html[data-theme="dark"] .shop-toast { background: #374666; color: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.63); }
html[data-theme="dark"] .shop-bars { border-bottom: 1px solid #344559; }
html[data-theme="dark"] .shop-bar-top { color: var(--shop-muted); }
html[data-theme="dark"] .shop-bar { border-radius: 4px 4px 0 0; background: #1E3A8A; }
html[data-theme="dark"] .shop-bar.is-profit { background: #F59E0B; }
html[data-theme="dark"] .shop-bar-labels span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-legend { color: var(--shop-muted); }
html[data-theme="dark"] .shop-legend i { border-radius: 3px; background: #1E3A8A; }
html[data-theme="dark"] .shop-legend i.is-profit { background: #F59E0B; }
html[data-theme="dark"] .shop-track { background: #151b27; border-radius: 999px; }
html[data-theme="dark"] .shop-track > div { border-radius: 999px; background: #1E3A8A; }
html[data-theme="dark"] .shop-stale { background: var(--shop-soft); border-radius: 14px; }
html[data-theme="dark"] .shop-debt-bars { border-bottom: 1px solid #344559; }
html[data-theme="dark"] .shop-debt-col span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-debt-col div { border-radius: 4px 4px 0 0; background: #B45309; }
html[data-theme="dark"] .shop-debt-labels span { color: var(--shop-muted); }
html[data-theme="dark"] .shop-day { background: #374666; color: #fff; border-radius: 24px; }
html[data-theme="dark"] .shop-day-text .k { color: #93C5FD; }
html[data-theme="dark"] .shop-day-text strong { color: #fff; }
html[data-theme="dark"] .shop-day-text span { color: #CBD5E1; }
html[data-theme="dark"] .shop-root .shop-day .shop-btn.is-ghost { background: transparent; border: 1px solid #475569; color: #fff; }
html[data-theme="dark"] .shop-root .shop-day .shop-btn.is-white { background: #1a2130; color: #d1d9eb; }
@media (max-width: 720px) {
    html[data-theme="dark"] .shop-card { border-radius: 20px; }
    html[data-theme="dark"] .shop-kpi { border-radius: 16px; }
    html[data-theme="dark"] .shop-dialog { border-radius: 20px; }
}
@media print {
    html[data-theme="dark"] .shop-card,
    html[data-theme="dark"] .shop-kpi { box-shadow: none; border: 1px solid #303a50; }
}
/* --- site-full-test.css --- */
html[data-theme="dark"] .site-full-test-alert { border-radius: 18px; border: 1px solid rgba(245, 158, 11, 0.25); }
html[data-theme="dark"] .site-mini-card,
html[data-theme="dark"] .site-test-panel { background: rgba(26, 33, 48, 0.96); border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 22px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .site-mini-card span,
html[data-theme="dark"] .section-kicker { color: #9ea9b9; }
html[data-theme="dark"] .site-mini-card strong { color: #ced7ed; }
html[data-theme="dark"] .site-mini-card p { color: #9ea9b9; }
html[data-theme="dark"] .site-test-warning-panel { background: linear-gradient(135deg, #43311a, #1a2130); border-color: rgba(251, 146, 60, 0.28); }
html[data-theme="dark"] .site-test-warning-panel h2 { color: #f1a48a; }
html[data-theme="dark"] .site-test-warning-panel p { color: #f1b19c; }
html[data-theme="dark"] .panel-head h2 { color: #ced7ed; }
html[data-theme="dark"] .panel-head .muted { color: #9ea9b9; }
html[data-theme="dark"] .site-table-wrap { border: 1px solid rgba(48, 58, 80, 0.9); border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .site-test-table { border-collapse: separate; border-spacing: 0; }
html[data-theme="dark"] .site-test-table th,
html[data-theme="dark"] .site-test-table td { border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .site-test-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .site-test-table tr:last-child td { border-bottom: none; }
html[data-theme="dark"] .status-pill { border-radius: 999px; }
html[data-theme="dark"] .status-pill.is-success { color: #aaedc3; background: #1c482b; }
html[data-theme="dark"] .status-pill.is-warning { color: #f3b590; background: #4d441d; }
html[data-theme="dark"] .status-pill.is-danger { color: #eb8d8d; background: #461b1b; }
html[data-theme="dark"] .status-pill.is-info { color: #8099e9; background: #1b2f48; }
html[data-theme="dark"] .status-pill.is-pending { color: #b0baca; background: #111620; }
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .secondary-btn { border: none; border-radius: 14px; }
html[data-theme="dark"] .primary-btn { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
html[data-theme="dark"] .secondary-btn { color: #c7d1e2; background: #111620; }
html[data-theme="dark"] .test-run-select { border: 1px solid #344559; border-radius: 14px; color: #ced7ed; background: #1a2130; }
html[data-theme="dark"] .danger-lite-btn { color: #eb8d8d; background: #461b1b; }
html[data-theme="dark"] .site-test-run-panel { border-color: rgba(37, 99, 235, 0.18); background: linear-gradient(135deg, rgba(25, 44, 67, 0.96), rgba(26, 33, 48, 0.98)); }
/* --- smart-restock.css --- */
html[data-theme="dark"] .smart-restock-page { background: #171d2b; }
html[data-theme="dark"] .smart-restock-header { border-radius: 22px; background: #1a2130; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .smart-restock-header h1 { color: #d1d9eb; }
html[data-theme="dark"] .smart-restock-header p { color: #a2a9b8; }
html[data-theme="dark"] .smart-restock-summary-card { border-radius: 18px; background: #1a2130; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .smart-restock-summary-card span { color: #969eae; }
html[data-theme="dark"] .smart-restock-summary-card strong { color: #d1d9eb; }
html[data-theme="dark"] .smart-restock-card { border-radius: 22px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .smart-restock-card-head h2 { color: #d1d9eb; }
html[data-theme="dark"] .smart-restock-card-head p { color: #a2a9b8; }
html[data-theme="dark"] .smart-restock-form label { color: #bdc5d2; }
html[data-theme="dark"] .smart-restock-form input,
html[data-theme="dark"] .smart-restock-form select,
html[data-theme="dark"] .smart-restock-item input { border: 1px solid #303d55; border-radius: 12px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .smart-restock-item,
html[data-theme="dark"] .smart-restock-control-item { border: 1px solid #2f394f; border-radius: 16px; background: #19202f; }
html[data-theme="dark"] .smart-restock-item.is-stale { background: #171e2b; }
html[data-theme="dark"] .smart-restock-item-title strong { color: #d1d9eb; }
html[data-theme="dark"] .smart-restock-badge { border-radius: 999px; background: #192843; color: #86a6e5; }
html[data-theme="dark"] .smart-restock-badge.warning { background: #493c1c; color: #f4d59b; }
html[data-theme="dark"] .smart-restock-badge.danger { background: #461b1b; color: #eb8888; }
html[data-theme="dark"] .smart-restock-meta span { border-radius: 12px; background: #1a2130; color: #a7afbb; }
html[data-theme="dark"] .smart-restock-reason { border-radius: 999px; background: #151a27; color: #a9e3b3; }
html[data-theme="dark"] .smart-restock-check { color: #bdc5d2; }
html[data-theme="dark"] .smart-restock-empty { border-radius: 16px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .smart-restock-notice,
html[data-theme="dark"] .smart-restock-admin-note,
html[data-theme="dark"] .smart-restock-info { border-radius: 16px; background: #192d43; color: #a9c5e2; }
html[data-theme="dark"] .smart-restock-notice.is-error { background: #441a1a; color: #ea8989; }
html[data-theme="dark"] .smart-restock-info { background: #45381a; color: #f0d4a6; }
/* --- subscription-management.css --- */
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .primary-btn { border: none; border-radius: 14px; }
html[data-theme="dark"] .secondary-btn { background: #192343; color: #c1cbe3; }
html[data-theme="dark"] .primary-btn { background: #374666; color: #ffffff; }
html[data-theme="dark"] .subscription-alert { border-radius: 16px; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .subscription-mini-card,
html[data-theme="dark"] .subscription-panel,
html[data-theme="dark"] .regional-subscription-card { background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 20px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .subscription-mini-card span,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .muted { color: #9ea9b9; }
html[data-theme="dark"] .subscription-mini-card strong { color: #d1d9eb; }
html[data-theme="dark"] .subscription-mini-card p { color: #9ea9b9; }
html[data-theme="dark"] .panel-head h2 { color: #d1d9eb; }
html[data-theme="dark"] .subscription-table-wrap { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .subscription-table { border-collapse: collapse; }
html[data-theme="dark"] .subscription-table th,
html[data-theme="dark"] .subscription-table td { border-bottom: 1px solid rgba(117, 131, 163, 0.07); }
html[data-theme="dark"] .subscription-table th { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .subscription-table td { color: #cad4e1; }
html[data-theme="dark"] .status-pill { border-radius: 999px; background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .status-pill.is-ok { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .status-pill.is-warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .status-pill.is-danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .admin-form-grid label { color: #b0baca; }
html[data-theme="dark"] .admin-form-grid input { border: 1px solid rgba(117, 131, 163, 0.12); border-radius: 14px; }
html[data-theme="dark"] .regional-subscription-card { color: #cad4e1; }
html[data-theme="dark"] .regional-subscription-card p { color: #b0baca; }
/* --- supplier-accounting.css --- */
html[data-theme="dark"] .supplier-accounting-header h1 { color: #ced7ed; }
html[data-theme="dark"] .supplier-accounting-header p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-note { border: 1px solid #2c415b; border-radius: 22px; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .supplier-accounting-note strong { color: #b5c1eb; }
html[data-theme="dark"] .supplier-tab-btn { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #bac5d6; }
html[data-theme="dark"] .supplier-tab-btn:hover,
html[data-theme="dark"] .supplier-tab-btn.is-active { background: #374666; color: #ffffff; border-color: #7583a3; }
html[data-theme="dark"] .supplier-summary-card,
html[data-theme="dark"] .supplier-accounting-card { background: #1a2130; border: 1px solid #293b55; border-radius: 26px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .supplier-summary-card span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-card-head h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-accounting-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-accounting-form input,
html[data-theme="dark"] .supplier-accounting-form select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .supplier-accounting-form input:focus,
html[data-theme="dark"] .supplier-accounting-form select:focus { border-color: #334a6a; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .supplier-table-wrap { border: 1px solid #293b55; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .supplier-accounting-table { border-collapse: collapse; }
html[data-theme="dark"] .supplier-accounting-table th,
html[data-theme="dark"] .supplier-accounting-table td { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .supplier-accounting-table th { background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-table td { color: #ced7ed; }
html[data-theme="dark"] .supplier-mini-item,
html[data-theme="dark"] .supplier-counterparty-card,
html[data-theme="dark"] .supplier-purchase-card { border-radius: 20px; background: #181e2c; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-mini-item h3,
html[data-theme="dark"] .supplier-counterparty-card h3,
html[data-theme="dark"] .supplier-purchase-card h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-mini-item p,
html[data-theme="dark"] .supplier-counterparty-card p,
html[data-theme="dark"] .supplier-purchase-card p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-mini-item strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-counterparty-card,
html[data-theme="dark"] .supplier-purchase-card { background: #1a2130; }
html[data-theme="dark"] .supplier-badge { border-radius: 999px; background: #192d43; color: #5690ec; }
html[data-theme="dark"] .supplier-badge.danger { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .supplier-badge.good { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .supplier-badge.warning { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .supplier-purchase-item { border-radius: 16px; background: #181e2c; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-purchase-item h4 { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-item span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-purchase-item strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-muted { color: #9ea9b9; }
html[data-theme="dark"] .supplier-empty { border-radius: 18px; background: #181e2c; border: 1px dashed #344559; color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-table .income-text { color: #86efad; }
html[data-theme="dark"] .supplier-accounting-table .expense-text { color: #e66666; }
html[data-theme="dark"] .supplier-accounting-table .debt-text { color: #efb470; }
html[data-theme="dark"] .supplier-subcard { border: 1px solid #2a3e58; border-radius: 24px; background: #191f2e; }
html[data-theme="dark"] .supplier-subcard h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-finance-line span { border: 1px solid #293b55; border-radius: 999px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .supplier-finance-line strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-expense { border: 1px solid #293b55; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-purchase-expense span,
html[data-theme="dark"] .supplier-purchase-item small { color: #9ea9b9; }
html[data-theme="dark"] .delete-btn.small { border-radius: 12px; }
@media (max-width: 900px) {
    html[data-theme="dark"] .supplier-finance-line span { border-radius: 16px; }
}
html[data-theme="dark"] .supplier-source-note { border-radius: 999px; background: #192d43; border: 1px solid #293d56; color: #5887ec; }
html[data-theme="dark"] .supplier-purchase-card.is-system-generated { border-color: #2c415b; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .supplier-source-note { color: #9ea9b9 !important; }
html[data-theme="dark"] .supplier-muted-text { color: #9ea9b9; }
html[data-theme="dark"] .supplier-audit-item { border: 1px solid #283c54; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .supplier-audit-item h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-audit-item p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-audit-meta { color: #9ea9b9; }
html[data-theme="dark"] .supplier-audit-meta strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-accounting-tools { border: 1px solid #2a3e58; border-radius: 26px; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .supplier-accounting-tools h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-accounting-tools p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-filter-grid label { color: #bac5d6; }
html[data-theme="dark"] .supplier-accounting-filter-grid input,
html[data-theme="dark"] .supplier-accounting-filter-grid select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .supplier-accounting-filter-grid input:focus,
html[data-theme="dark"] .supplier-accounting-filter-grid select:focus { border-color: #334a6a; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .supplier-alert-item { border: 1px solid #2a3e58; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-alert-item strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-alert-item span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-alert-item.danger { background: #181f2d; border-color: #582b2b; }
html[data-theme="dark"] .supplier-alert-item.danger strong { color: #eb7a7a; }
html[data-theme="dark"] .supplier-alert-item.warning { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .supplier-alert-item.warning strong { color: #f3b590; }
html[data-theme="dark"] .supplier-alert-item.info { background: #192c43; border-color: #2c415b; }
html[data-theme="dark"] .supplier-alert-item.info strong { color: #698beb; }
html[data-theme="dark"] .supplier-scope-summary-item { border: 1px solid #2a3e57; border-radius: 22px; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); color: #ced7ed; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-scope-summary-item:hover { border-color: #314a66; box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] .supplier-scope-summary-item span { color: #8ecff2; }
html[data-theme="dark"] .supplier-scope-summary-item strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-scope-summary-item small { color: #b0baca; }
html[data-theme="dark"] .supplier-scope-summary-item em { color: #9ea9b9; }
html[data-theme="dark"] .supplier-badge.scope-general,
html[data-theme="dark"] .supplier-badge.warehouse-general { background: #192343; color: #8f8adc; }
html[data-theme="dark"] .supplier-badge.scope-regional,
html[data-theme="dark"] .supplier-badge.warehouse-regional_inventory { background: #1a4430; color: #a1f5dd; }
html[data-theme="dark"] .supplier-badge.scope-internal_market,
html[data-theme="dark"] .supplier-badge.warehouse-internal_market { background: #43311a; color: #f09c79; }
html[data-theme="dark"] .supplier-badge.scope-manual,
html[data-theme="dark"] .supplier-badge.warehouse-manual,
html[data-theme="dark"] .supplier-badge.warehouse-none { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-journal-quick-filters button { border: 1px solid #2a3e57; border-radius: 999px; background: #1a2130; color: #bac5d6; }
html[data-theme="dark"] .supplier-journal-quick-filters button:hover,
html[data-theme="dark"] .supplier-journal-quick-filters button.is-active { background: #374666; border-color: #7583a3; color: #ffffff; }
html[data-theme="dark"] .supplier-journal-summary div { border: 1px solid #293b55; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-journal-summary span,
html[data-theme="dark"] .supplier-journal-detail-grid span,
html[data-theme="dark"] .supplier-journal-detail-comment span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-journal-summary strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-scroll-top { background: #181e2c; border-radius: 999px; }
html[data-theme="dark"] .supplier-journal-scroll-top.is-floating { border: 1px solid #344559; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.288); }
html[data-theme="dark"] .supplier-journal-scroll-top::-webkit-scrollbar-thumb { background: #3a4657; border: 3px solid #2b3448; border-radius: 999px; }
html[data-theme="dark"] .supplier-journal-wrap::-webkit-scrollbar-thumb { background: #3a4657; border: 3px solid #2b3448; border-radius: 999px; }
html[data-theme="dark"] .supplier-journal-wrap::-webkit-scrollbar-track { background: #181e2c; }
html[data-theme="dark"] .supplier-journal-row:hover { background: #191f2e; }
html[data-theme="dark"] .supplier-journal-modal-backdrop { background: rgba(55, 70, 102, 0.58); }
html[data-theme="dark"] .supplier-journal-modal-card { border-radius: 28px; background: #1a2130; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.576); }
html[data-theme="dark"] .supplier-journal-modal-card h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-modal-close { border: 0; border-radius: 14px; background: #161c29; color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-detail-grid div,
html[data-theme="dark"] .supplier-journal-detail-comment { border: 1px solid #293b55; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-journal-detail-grid strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-detail-comment p { color: #bac5d6; }
@media (max-width: 620px) {
    html[data-theme="dark"] .supplier-journal-modal-card { border-radius: 22px; }
}
html[data-theme="dark"] .supplier-regional-sync-card { border: 1px solid rgba(117, 131, 163, 0.08); background: linear-gradient(135deg, #1a2130 0%, #181e2c 100%); }
html[data-theme="dark"] .supplier-regional-sync-stat { border-radius: 16px; border: 1px solid rgba(117, 131, 163, 0.08); background: #1a2130; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-regional-sync-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-regional-sync-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-regional-sync-stat small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-regional-sync-stat.ok { border-left: 4px solid #16a34a; }
html[data-theme="dark"] .supplier-regional-sync-stat.warning { border-left: 4px solid #f59e0b; }
html[data-theme="dark"] .supplier-regional-sync-stat.neutral { border-left: 4px solid #94a3b8; }
html[data-theme="dark"] .supplier-regional-sync-empty { color: #bac5d6; background: #181e2c; border: 1px dashed rgba(100, 116, 139, 0.35); border-radius: 12px; }
html[data-theme="dark"] .supplier-regional-sync-empty strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-regional-sync-empty.warning { background: #443b1a; border-color: #685d32; color: #f3b590; }
html[data-theme="dark"] .supplier-regional-sync-empty.warning strong { color: #f3bc9d; }
html[data-theme="dark"] .supplier-regional-sync-result { border-radius: 16px; background: #181e2c; border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .supplier-regional-sync-line { color: #bac5d6; }
html[data-theme="dark"] .supplier-regional-sync-line strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-regional-sync-ok { color: #aaedc3; background: #1c482b; border: 1px solid #2d5e3e; border-radius: 12px; }
html[data-theme="dark"] .supplier-regional-sync-errors { color: #eb8d8d; background: #461b1b; border: 1px solid #582b2b; border-radius: 12px; }
html[data-theme="dark"] .supplier-regional-sync-errors strong { color: #e89c9c; }
html[data-theme="dark"] .supplier-internal-sync-card { border: 1px solid rgba(37, 99, 235, 0.16); background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); }
html[data-theme="dark"] .supplier-internal-sync-card .card-label { color: #698beb; }
html[data-theme="dark"] .supplier-internal-sync-result { border-color: rgba(37, 99, 235, 0.16); }
html[data-theme="dark"] .supplier-journal-product-cell strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-product-cell span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-journal-detail-product { border: 1px solid #293b54; border-radius: 20px; background: linear-gradient(135deg, #191f2e 0%, #1a2130 100%); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .supplier-journal-detail-product > div:first-child span,
html[data-theme="dark"] .supplier-journal-imei-box > span { color: #8ecff2; }
html[data-theme="dark"] .supplier-journal-detail-product h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-detail-product p { color: #b0baca; }
html[data-theme="dark"] .supplier-journal-product-detail-row { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .supplier-journal-product-detail-row span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-journal-product-detail-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-journal-imei-box { border-radius: 16px; background: #161c29; }
html[data-theme="dark"] .supplier-imei-list span { border-radius: 999px; background: #1a2130; color: #ced7ed; border: 1px solid #344559; }
html[data-theme="dark"] .supplier-journal-empty-note { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-check-card { border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .supplier-accounting-check-stat { background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .supplier-accounting-check-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-check-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-accounting-check-stat small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-check-stat.ok { border-color: rgba(22, 163, 74, 0.22); }
html[data-theme="dark"] .supplier-accounting-check-stat.warning { border-color: rgba(245, 158, 11, 0.32); background: #443b1a; }
html[data-theme="dark"] .supplier-accounting-check-stat.danger { border-color: rgba(220, 38, 38, 0.28); background: #171d2b; }
html[data-theme="dark"] .supplier-accounting-check-stat.neutral { background: #181e2c; }
html[data-theme="dark"] .supplier-accounting-check-toolbar .secondary-btn.is-active { background: #374666; border-color: #7583a3; color: #ffffff; }
html[data-theme="dark"] .supplier-accounting-check-issue { background: #1a2130; border: 1px solid rgba(117, 131, 163, 0.09); border-radius: 18px; }
html[data-theme="dark"] .supplier-accounting-check-issue:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.198); border-color: rgba(37, 99, 235, 0.25); }
html[data-theme="dark"] .supplier-accounting-check-issue.critical { border-left: 5px solid #dc2626; }
html[data-theme="dark"] .supplier-accounting-check-issue.warning { border-left: 5px solid #f59e0b; }
html[data-theme="dark"] .supplier-accounting-check-issue.info { border-left: 5px solid #2563eb; }
html[data-theme="dark"] .supplier-check-issue-main strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-check-issue-main small { color: #b0baca; }
html[data-theme="dark"] .supplier-check-issue-meta { color: #9ea9b9; }
html[data-theme="dark"] .supplier-accounting-check-empty { border: 1px dashed rgba(117, 131, 163, 0.14); background: #181e2c; border-radius: 18px; color: #b0baca; }
html[data-theme="dark"] .supplier-accounting-check-empty.ok { border-color: rgba(22, 163, 74, 0.24); background: #171d2a; }
html[data-theme="dark"] .supplier-accounting-check-empty strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-check-modal-head { border-radius: 18px; background: #181e2c; border: 1px solid rgba(117, 131, 163, 0.08); }
html[data-theme="dark"] .supplier-check-modal-head h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-check-modal-head p { color: #b0baca; }
html[data-theme="dark"] .supplier-accounting-check-modal.critical .supplier-check-modal-head { background: #171d2b; border-color: rgba(220, 38, 38, 0.18); }
html[data-theme="dark"] .supplier-accounting-check-modal.warning .supplier-check-modal-head { background: #443b1a; border-color: rgba(245, 158, 11, 0.22); }
html[data-theme="dark"] .supplier-legacy-sync-stat { border: 1px solid rgba(117, 131, 163, 0.08); background: #1a2130; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-legacy-sync-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-legacy-sync-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-legacy-sync-stat small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-legacy-sync-stat.ok { border-left: 4px solid #22c55e; }
html[data-theme="dark"] .supplier-legacy-sync-stat.warning { border-left: 4px solid #f59e0b; }
html[data-theme="dark"] .supplier-legacy-sync-stat.danger { border-left: 4px solid #ef4444; }
html[data-theme="dark"] .supplier-legacy-sync-result-card,
html[data-theme="dark"] .supplier-legacy-sync-empty,
html[data-theme="dark"] .supplier-legacy-preview-empty { border: 1px solid rgba(117, 131, 163, 0.08); background: #181e2c; border-radius: 16px; color: #bac5d6; }
html[data-theme="dark"] .supplier-legacy-sync-result-card strong,
html[data-theme="dark"] .supplier-legacy-sync-empty strong,
html[data-theme="dark"] .supplier-legacy-preview-empty strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-legacy-sync-result-card.ok,
html[data-theme="dark"] .supplier-legacy-sync-empty.ok { background: #171d2a; border-color: rgba(34, 197, 94, 0.25); }
html[data-theme="dark"] .supplier-legacy-sync-result-card.warning,
html[data-theme="dark"] .supplier-legacy-sync-empty.warning { background: #443b1a; border-color: rgba(245, 158, 11, 0.35); }
html[data-theme="dark"] .supplier-legacy-sync-errors { color: #eb8d8d; }
html[data-theme="dark"] .supplier-legacy-preview-row { border: 1px solid rgba(117, 131, 163, 0.08); background: #1a2130; border-radius: 16px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.081); }
html[data-theme="dark"] .supplier-legacy-preview-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-legacy-preview-row p { color: #b0baca; }
html[data-theme="dark"] .supplier-legacy-preview-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-legacy-preview-row.warning { border-left: 4px solid #f59e0b; }
html[data-theme="dark"] .supplier-legacy-preview-row.danger { border-left: 4px solid #ef4444; }
html[data-theme="dark"] .supplier-legacy-preview-meta span,
html[data-theme="dark"] .supplier-legacy-preview-meta small { color: #9ea9b9; }
html[data-theme="dark"] #syncLegacyAccountingBtn.is-disabled,
html[data-theme="dark"] #syncLegacyAccountingBtn:disabled { box-shadow: none; }
html[data-theme="dark"] .supplier-legacy-preview-empty.ok { background: #171d2a; border-color: rgba(34, 197, 94, 0.25); color: #aaedc3; }
html[data-theme="dark"] .supplier-legacy-preview-empty.ok strong { color: #b5edcb; }
html[data-theme="dark"] .supplier-advanced-report-controls { border: 1px solid rgba(117, 131, 163, 0.08); border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .supplier-advanced-report-controls label { color: #b0baca; }
html[data-theme="dark"] .supplier-advanced-report-controls select,
html[data-theme="dark"] .supplier-advanced-report-controls input { border: 1px solid rgba(148, 163, 184, 0.55); border-radius: 12px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .supplier-advanced-report-controls input:disabled { color: #94a3b8; background: #151b27; }
html[data-theme="dark"] .supplier-advanced-summary-card { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; background: #1a2130; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .supplier-advanced-summary-card.highlight { background: linear-gradient(135deg, #374666, #3b4b6e); color: #ffffff; }
html[data-theme="dark"] .supplier-advanced-summary-card span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-advanced-summary-card.highlight span,
html[data-theme="dark"] .supplier-advanced-summary-card.highlight small { color: rgba(255,255,255,0.72); }
html[data-theme="dark"] .supplier-advanced-summary-card small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-advanced-panel { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px; background: #1a2130; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-card-head.compact h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-advanced-direction-item { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 14px; background: #181e2c; color: #ced7ed; }
html[data-theme="dark"] .supplier-advanced-direction-item:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10); }
html[data-theme="dark"] .supplier-advanced-direction-item small,
html[data-theme="dark"] .supplier-advanced-product-row small,
html[data-theme="dark"] .supplier-advanced-product-row p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-advanced-imei-box > div { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .supplier-advanced-imei-box > div.ok { background: #1a4430; border-color: rgba(16, 185, 129, 0.22); }
html[data-theme="dark"] .supplier-advanced-imei-box > div.warning { background: #443b1a; border-color: rgba(245, 158, 11, 0.25); }
html[data-theme="dark"] .supplier-advanced-imei-box span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-advanced-imei-box strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-advanced-product-row { border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.22); background: #181e2c; }
html[data-theme="dark"] .supplier-advanced-conclusion { color: #bac5d6; }
html[data-theme="dark"] .supplier-advanced-warning,
html[data-theme="dark"] .supplier-advanced-ok { border-radius: 14px; }
html[data-theme="dark"] .supplier-advanced-warning { background: #43311a; border: 1px solid rgba(249, 115, 22, 0.25); color: #f1a48a; }
html[data-theme="dark"] .supplier-advanced-ok { background: #1a4430; border: 1px solid rgba(16, 185, 129, 0.22); color: #adf6e1; }
html[data-theme="dark"] .supplier-final-review-stat { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.22); background: #1a2130; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-final-review-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-final-review-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-final-review-stat small { color: #b0baca; }
html[data-theme="dark"] .supplier-final-review-stat.ok { background: #1a4430; border-color: rgba(16, 185, 129, 0.25); }
html[data-theme="dark"] .supplier-final-review-stat.warning { background: #43311a; border-color: rgba(249, 115, 22, 0.28); }
html[data-theme="dark"] .supplier-final-review-stat.danger { background: #171d2b; border-color: rgba(239, 68, 68, 0.28); }
html[data-theme="dark"] .supplier-final-review-stat.neutral { background: #181e2c; }
html[data-theme="dark"] .supplier-final-review-progress { border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.22); background: #181e2c; }
html[data-theme="dark"] .supplier-final-progress-head { color: #ced7ed; }
html[data-theme="dark"] .supplier-final-progress-line { border-radius: 999px; background: #111620; }
html[data-theme="dark"] .supplier-final-progress-line span { border-radius: inherit; background: linear-gradient(90deg, #374666, #2563eb); }
html[data-theme="dark"] .supplier-final-review-progress p,
html[data-theme="dark"] .supplier-final-review-row p,
html[data-theme="dark"] .supplier-final-review-conclusion p { color: #b0baca; }
html[data-theme="dark"] .supplier-final-review-panel { border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.22); background: #1a2130; }
html[data-theme="dark"] .supplier-final-review-row { border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.22); background: #181e2c; }
html[data-theme="dark"] .supplier-final-review-row.ok { background: #1a4430; border-color: rgba(16, 185, 129, 0.20); }
html[data-theme="dark"] .supplier-final-review-row.warning { background: #43311a; border-color: rgba(249, 115, 22, 0.24); }
html[data-theme="dark"] .supplier-final-review-row.danger { background: #171d2b; border-color: rgba(239, 68, 68, 0.24); }
html[data-theme="dark"] .supplier-final-review-row.info { background: #181e2c; }
html[data-theme="dark"] .supplier-final-review-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-final-review-row .secondary-btn.small { border-radius: 12px; }
html[data-theme="dark"] .supplier-product-path-item.needs-attention { border-color: rgba(245, 158, 11, 0.35); }
html[data-theme="dark"] .supplier-path-step { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 14px; background: rgba(55, 70, 102, 0.03); }
html[data-theme="dark"] .supplier-path-step span,
html[data-theme="dark"] .supplier-path-operation-row span,
html[data-theme="dark"] .supplier-path-modal-section h4 { color: #9ea9b9; }
html[data-theme="dark"] .supplier-path-step strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-path-step small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-path-step.missing_purchase,
html[data-theme="dark"] .supplier-path-step.missing_sale { border-color: rgba(239, 68, 68, 0.25); background: rgba(115, 38, 38, 0.05); }
html[data-theme="dark"] .supplier-path-warnings,
html[data-theme="dark"] .supplier-path-ok { border-radius: 14px; }
html[data-theme="dark"] .supplier-path-warnings { border: 1px solid rgba(245, 158, 11, 0.32); background: rgba(245, 158, 11, 0.08); color: #f3b590; }
html[data-theme="dark"] .supplier-path-ok { border: 1px solid rgba(34, 197, 94, 0.26); background: rgba(34, 197, 94, 0.08); color: #aaedc3; }
html[data-theme="dark"] .supplier-path-operation-row { border-radius: 12px; background: rgba(55, 70, 102, 0.04); }
html[data-theme="dark"] .supplier-path-operation-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-mini-row { border-bottom: 1px solid rgba(148, 163, 184, .22); }
html[data-theme="dark"] .supplier-mini-row:last-child { border-bottom: 0; }
html[data-theme="dark"] .supplier-mini-row span { color: #e5e7eb; }
html[data-theme="dark"] .supplier-mini-row small { color: #94a3b8; }
html[data-theme="dark"] .supplier-path-step.extra_expense { border-color: rgba(248, 113, 113, .35); background: rgba(127, 29, 29, .16); }
html[data-theme="dark"] .supplier-profit-inline-note { color: #94a3b8; }
html[data-theme="dark"] .supplier-financial-balance-card { border: 1px solid rgba(20, 184, 166, 0.22); }
html[data-theme="dark"] .supplier-balance-warning { border-radius: 16px; background: rgba(55, 70, 102, 0.04); border: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .supplier-balance-warning strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-balance-warning span,
html[data-theme="dark"] .supplier-balance-warning small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-balance-warning.good { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.22); }
html[data-theme="dark"] .supplier-balance-warning.info { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.22); }
html[data-theme="dark"] .supplier-balance-warning.warning { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.25); }
html[data-theme="dark"] .supplier-balance-warning.danger { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.24); }
html[data-theme="dark"] .supplier-balance-row { border-radius: 14px; background: #181e2c; border: 1px solid rgba(148, 163, 184, 0.18); }
html[data-theme="dark"] .supplier-balance-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-balance-row span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-balance-row b { color: #ced7ed; }
html[data-theme="dark"] .supplier-balance-stock-top { border-top: 1px solid rgba(148, 163, 184, 0.22); }
html[data-theme="dark"] .supplier-balance-stock-top h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-tax-forecast-card { border: 1px solid rgba(37, 99, 235, 0.16); }
html[data-theme="dark"] .supplier-tax-settings-form .supplier-checkbox-line { border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 16px; background: rgba(24, 30, 44, 0.86); }
html[data-theme="dark"] .supplier-tax-warnings .good { border-color: rgba(22, 163, 74, 0.28); background: rgba(28, 72, 43, 0.65); }
html[data-theme="dark"] .supplier-tax-stock-item { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-tax-stock-item strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-tax-stock-item small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-adjustment-form textarea { border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 14px; background: rgba(55, 70, 102, 0.04); color: inherit; }
html[data-theme="dark"] .supplier-adjustment-preview { border: 1px solid rgba(59, 130, 246, 0.22); background: rgba(38, 67, 115, 0.08); border-radius: 16px; color: #c7d1e2; }
html[data-theme="dark"] .supplier-adjustment-row { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 16px; background: rgba(26, 33, 48, 0.72); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .supplier-adjustment-row span,
html[data-theme="dark"] .supplier-adjustment-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-adjustment-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-period-item { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 16px; background: rgba(55, 70, 102, 0.35); }
html[data-theme="dark"] .supplier-period-item p { color: rgba(226, 232, 240, 0.78); }
html[data-theme="dark"] .supplier-status-pill { border-radius: 999px; background: rgba(58, 70, 87, 0.15); color: rgba(226, 232, 240, 0.85); }
html[data-theme="dark"] .supplier-status-pill.active { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .supplier-status-pill.muted { background: rgba(58, 70, 87, 0.16); color: rgba(226, 232, 240, 0.65); }
html[data-theme="dark"] .supplier-balance-warning.ok { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08); }
html[data-theme="dark"] .supplier-balance-warning.critical { border-color: rgba(248, 113, 113, 0.4); background: rgba(102, 34, 34, 0.08); }
html[data-theme="dark"] .supplier-balance-warning.warning { border-color: rgba(251, 191, 36, 0.4); background: rgba(119, 97, 40, 0.08); }
html[data-theme="dark"] .supplier-action-filters label { color: #9ea9b9; }
html[data-theme="dark"] .supplier-action-filters input,
html[data-theme="dark"] .supplier-action-filters select { border: 1px solid #2a3e57; border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .supplier-action-log-item { border: 1px solid #283c54; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .supplier-action-log-item:hover { border-color: #2c415b; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .supplier-action-log-item h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-action-log-item p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-action-diff-grid > div { border: 1px solid #283c54; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-action-diff-grid > div > span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-action-diff-grid pre { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-row { border: 1px solid #293b55; border-radius: 20px; background: #1a2130; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .supplier-purchase-row:hover,
html[data-theme="dark"] .supplier-purchase-row:focus-visible { border-color: #2c415b; background: linear-gradient(180deg, #1a2130 0%, #191f2e 100%); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.144); outline: none; }
html[data-theme="dark"] .supplier-purchase-row.is-system-generated { border-color: #2c415b; }
html[data-theme="dark"] .supplier-purchase-row h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-row p,
html[data-theme="dark"] .supplier-purchase-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-purchase-row-numbers div { border: 1px solid #293b55; border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .supplier-purchase-row-numbers span,
html[data-theme="dark"] .supplier-purchase-row-status small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-purchase-row-numbers strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-row-actions .secondary-btn,
html[data-theme="dark"] .supplier-purchase-row-actions .telegram-btn { border-radius: 14px; }
html[data-theme="dark"] .supplier-purchase-modal-head h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-purchase-modal-section h4 { color: #ced7ed; }
@media (max-width: 720px) {
    html[data-theme="dark"] .supplier-purchase-row { border-radius: 18px; }
}
html[data-theme="dark"] .supplier-purchase-row .income-text,
html[data-theme="dark"] .supplier-journal-detail-grid .income-text { color: #86efad; }
html[data-theme="dark"] .supplier-purchase-row .expense-text,
html[data-theme="dark"] .supplier-journal-detail-grid .expense-text { color: #e66666; }
html[data-theme="dark"] .supplier-purchase-row .debt-text,
html[data-theme="dark"] .supplier-journal-detail-grid .debt-text { color: #efb470; }
html[data-theme="dark"] .supplier-badge.info { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .supplier-path-step.stock { border-color: rgba(14, 116, 144, 0.22); background: rgba(14, 165, 233, 0.06); }
html[data-theme="dark"] .supplier-path-imei-launcher p { color: #ced7ed; }
html[data-theme="dark"] .supplier-path-imei-launcher small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-path-imei-modal .supplier-journal-modal-backdrop { background: rgba(55, 70, 102, 0.35); }
html[data-theme="dark"] .supplier-path-imei-toolbar input { border: 1px solid #344559; border-radius: 12px; }
html[data-theme="dark"] .supplier-path-imei-toolbar input:focus-visible,
html[data-theme="dark"] .supplier-path-imei-filter:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
html[data-theme="dark"] .supplier-path-imei-filter { border: 1px solid #303a50; border-radius: 999px; background: #1a2130; color: #bac5d6; }
html[data-theme="dark"] .supplier-path-imei-filter.is-active { border-color: #7583a3; background: #374666; color: #ffffff; }
html[data-theme="dark"] .supplier-path-imei-count { color: #9ea9b9; }
html[data-theme="dark"] .supplier-path-imei-list { border: 1px solid #303a50; border-radius: 16px; }
html[data-theme="dark"] .supplier-path-imei-row { border-bottom: 1px solid #2d364b; }
html[data-theme="dark"] .supplier-path-imei-row:last-child { border-bottom: 0; }
html[data-theme="dark"] .supplier-path-imei-index { color: #94a3b8; }
html[data-theme="dark"] .supplier-path-imei-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-path-imei-row em { border-radius: 999px; background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-path-imei-row.sold em { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .supplier-path-imei-row.in_stock em { background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .supplier-path-imei-launcher > div > span { color: #8ecff2; }
html[data-theme="dark"] .supplier-sale-detail-comment { color: #b0baca; }
html[data-theme="dark"] .supplier-journal-detail-grid small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-sub-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-sub-row em { color: #ced7ed; background: transparent; }
html[data-theme="dark"] .supplier-path-imei-row.reserved em { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .supplier-mini-row span { color: #ced7ed; }
html[data-theme="dark"] .supplier-mini-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-mini-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-op-cancel-note { color: #eb7a7a; }
html[data-theme="dark"] .supplier-action-human-values > div { border: 0; background: none; }
html[data-theme="dark"] .supplier-action-human-values dt { color: #9ea9b9; }
html[data-theme="dark"] .supplier-action-human-values dd { color: #ced7ed; }
html[data-theme="dark"] .supplier-action-reason { border-color: #685d32 !important; background: #443b1a !important; }
html[data-theme="dark"] .supplier-ops-wrap { border: 1px solid #293b55; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-ops-table { border-collapse: separate; border-spacing: 0; }
html[data-theme="dark"] .supplier-ops-table th { background: #181e2c; color: #9ea9b9; border-bottom: 1px solid #293b55; }
html[data-theme="dark"] .supplier-ops-table td { border-bottom: 1px solid #2d374c; color: #ced7ed; }
html[data-theme="dark"] .supplier-ops-table tr:hover td { background: #19202e; }
html[data-theme="dark"] .supplier-ops-table .ops-date { color: #b0baca; }
html[data-theme="dark"] .ops-tag { border-radius: 999px; background: #161c29; color: #b0baca; }
html[data-theme="dark"] .ops-tag.is-origin { background: #1a2130; border: 1px solid #303a50; color: #9ea9b9; }
html[data-theme="dark"] .ops-tag.is-nomoney { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .supplier-ops-table .ops-amount.is-neutral strong { color: #9ea9b9; }
html[data-theme="dark"] .ops-comment-btn { border: 0; background: none; color: #bac5d6; }
html[data-theme="dark"] .ops-comment-btn.has-cancel { color: #eb7a7a; }
html[data-theme="dark"] .ops-action { border: 1px solid #2a3e58; border-radius: 8px; background: #1a2130; color: #8ecff2; }
html[data-theme="dark"] .ops-action:hover { border-color: #314a66; }
html[data-theme="dark"] .ops-action.is-danger { color: #eb7a7a; border-color: #582b2b; }
html[data-theme="dark"] tr.is-virtual-op td { background: #181e2c; }
/* --- supplier-client-center.css --- */
html[data-theme="dark"] .supplier-client-center-header { border-radius: 28px; background: rgba(26, 33, 48, 0.92); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.144); }
html[data-theme="dark"] .supplier-client-center-header h1,
html[data-theme="dark"] .client-center-filter-card h2,
html[data-theme="dark"] .client-center-card-head h2,
html[data-theme="dark"] .client-center-detail-card h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-client-center-header p,
html[data-theme="dark"] .client-center-filter-card p,
html[data-theme="dark"] .client-center-card-head p,
html[data-theme="dark"] .client-center-muted { color: #9ea9b9; }
html[data-theme="dark"] .client-center-notice,
html[data-theme="dark"] .client-center-admin-note { border-radius: 18px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .client-center-notice.is-error { background: #171d2b; color: #eb7a7a; }
html[data-theme="dark"] .client-center-admin-note { background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .client-center-stat { border-radius: 22px; background: rgba(26, 33, 48, 0.9); border: 1px solid rgba(48, 58, 80, 0.9); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .client-center-stat span { color: #9ea9b9; }
html[data-theme="dark"] .client-center-stat strong { color: #ced7ed; }
html[data-theme="dark"] .client-center-filter-form label { color: #ced7ed; }
html[data-theme="dark"] .client-center-filter-form input,
html[data-theme="dark"] .client-center-comment-form textarea { border: 1px solid #2a3d58; border-radius: 16px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .client-center-client { border: 1px solid #303a50; background: #1a2130; border-radius: 18px; }
html[data-theme="dark"] .client-center-client:hover,
html[data-theme="dark"] .client-center-client.is-active { border-color: #2563eb; box-shadow: 0 14px 35px rgba(37, 99, 235, 0.12); }
html[data-theme="dark"] .client-center-client strong { color: #ced7ed; }
html[data-theme="dark"] .client-center-client small,
html[data-theme="dark"] .client-center-row-sub { color: #9ea9b9; }
html[data-theme="dark"] .client-center-pill { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .client-center-pill.is-good,
html[data-theme="dark"] .client-center-pill.is-trusted { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .client-center-pill.is-risk,
html[data-theme="dark"] .client-center-pill.is-risky,
html[data-theme="dark"] .client-center-pill.is-stop { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .client-center-pill.is-medium,
html[data-theme="dark"] .client-center-pill.is-attention { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .client-center-detail-empty { border-radius: 22px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .client-center-section { border-radius: 22px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .client-center-mini-stat { border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .client-center-mini-stat span { color: #9ea9b9; }
html[data-theme="dark"] .client-center-mini-stat strong { color: #ced7ed; }
html[data-theme="dark"] .client-center-table { border-collapse: collapse; }
html[data-theme="dark"] .client-center-table th,
html[data-theme="dark"] .client-center-table td { border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .client-center-table th { color: #9ea9b9; }
html[data-theme="dark"] .client-center-warning { border-radius: 14px; background: #43311a; color: #f1a48a; }
/* --- supplier-client-price.css --- */
html[data-theme="dark"] .supplier-price-note,
html[data-theme="dark"] .client-price-note { border: 1px solid #293b54; border-radius: 22px; background: #191f2e; color: #bac5d6; }
html[data-theme="dark"] .supplier-price-card-head h2,
html[data-theme="dark"] .supplier-list-head h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-price-card-head p,
html[data-theme="dark"] .supplier-list-head p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-price-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-price-form input,
html[data-theme="dark"] .supplier-price-form select,
html[data-theme="dark"] #supplierPriceSearch,
html[data-theme="dark"] #clientPriceSearch,
html[data-theme="dark"] .client-order-panel input,
html[data-theme="dark"] .client-order-panel textarea { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .supplier-price-check { border: 1px solid #303a50; border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .supplier-price-check input { accent-color: #5690ec; }
html[data-theme="dark"] .supplier-price-rule,
html[data-theme="dark"] .supplier-price-item,
html[data-theme="dark"] .client-price-item,
html[data-theme="dark"] .client-cart-row { border: 1px solid #2a3e58; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .supplier-price-rule h3,
html[data-theme="dark"] .supplier-price-title h3,
html[data-theme="dark"] .client-price-title h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-price-rule p,
html[data-theme="dark"] .supplier-price-item p,
html[data-theme="dark"] .client-price-item p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-price-badge,
html[data-theme="dark"] .client-price-badge { border-radius: 999px; background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .supplier-price-badge.good,
html[data-theme="dark"] .client-price-badge.good { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .supplier-price-badge.danger { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .supplier-price-item.is-visible { border-color: #2d5e3e; background: linear-gradient(180deg,#1a2130,#191f2e); }
html[data-theme="dark"] .supplier-price-grid > div,
html[data-theme="dark"] .supplier-price-grid label,
html[data-theme="dark"] .client-price-stat { border: 1px solid #303a50; border-radius: 16px; background: #181e2c; }
html[data-theme="dark"] .supplier-price-grid span,
html[data-theme="dark"] .client-price-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-price-grid strong,
html[data-theme="dark"] .client-price-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-price-grid small { color: #9ea9b9; }
html[data-theme="dark"] .client-price-item-actions input { border: 1px solid #2a3e58; border-radius: 14px; }
html[data-theme="dark"] .client-order-panel h2 { color: #ced7ed; }
html[data-theme="dark"] .client-cart-row h4 { color: #ced7ed; }
html[data-theme="dark"] .client-cart-row p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-settings-card { border-color: #2c415b; background: linear-gradient(180deg,#1a2130 0%,#191f2e 100%); }
html[data-theme="dark"] .supplier-autoprice-status { border-radius: 999px; background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-status.is-on { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .supplier-autoprice-status.is-off { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .supplier-autoprice-status.is-error { background: #4a361c; color: #f1a48a; }
html[data-theme="dark"] .supplier-autoprice-main-toggle { border-color: #2c415b; background: #192c43; }
html[data-theme="dark"] .supplier-price-check small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-section h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-source-card { border: 1px solid #293b54; border-radius: 18px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-source-card.is-fixed { background: #181e2c; }
html[data-theme="dark"] .supplier-autoprice-source-card input { accent-color: #5690ec; }
html[data-theme="dark"] .supplier-autoprice-source-card small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-grid label { color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-grid input,
html[data-theme="dark"] .supplier-autoprice-grid select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .supplier-autoprice-preview { border: 1px dashed #2c415b; border-radius: 18px; background: #191f2e; color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-preview-head strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-preview-head span { color: #5887ec; }
html[data-theme="dark"] .supplier-autoprice-mini { border-radius: 14px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-mini strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-mini small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-mini.is-on span { color: #9aeeba; }
html[data-theme="dark"] .supplier-autoprice-mini.is-off span { color: #eb7a7a; }
html[data-theme="dark"] .supplier-price-editor { border-color: #2c415b !important; background: linear-gradient(180deg,#1a2130 0%,#191f2e 100%) !important; }
html[data-theme="dark"] .supplier-price-editor > span { color: #b0baca; }
html[data-theme="dark"] .supplier-price-input-wrap { border: 1px solid #293b54; border-radius: 14px; background: #1a2130; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.054); }
html[data-theme="dark"] .supplier-price-input-wrap:focus-within { border-color: #1670ff; box-shadow: 0 0 0 4px rgba(22,112,255,.10); }
html[data-theme="dark"] .supplier-price-input-wrap input { border: 0; outline: 0; background: transparent; color: #ced7ed; }
html[data-theme="dark"] .supplier-price-input-wrap em { color: #9ea9b9; }
html[data-theme="dark"] .supplier-price-editor small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-rules-card { border-color: #2b3459; background: linear-gradient(180deg,#1a2130 0%,#191f2e 100%); }
html[data-theme="dark"] .supplier-autoprice-rule-help { border: 1px solid #293b54; border-radius: 18px; background: #192c43; color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-rule-help strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-rule-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-rule-form input,
html[data-theme="dark"] .supplier-autoprice-rule-form select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .supplier-autoprice-rule-form input:focus,
html[data-theme="dark"] .supplier-autoprice-rule-form select:focus { border-color: #1670ff; box-shadow: 0 0 0 4px rgba(22,112,255,.10); }
html[data-theme="dark"] .supplier-autoprice-rules-empty { border: 1px dashed #2c415b; border-radius: 18px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-rules-empty strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-rule { border: 1px solid #293b54; border-radius: 20px; background: #1a2130; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.072); }
html[data-theme="dark"] .supplier-autoprice-rule.is-muted { background: #181e2c; }
html[data-theme="dark"] .supplier-autoprice-rule-kind,
html[data-theme="dark"] .supplier-autoprice-rule-exactness { border-radius: 999px; background: #192343; color: #8f8adc; }
html[data-theme="dark"] .supplier-autoprice-rule-exactness { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .supplier-autoprice-rule h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-rule p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-rule-numbers > div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .supplier-autoprice-rule-numbers span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-rule-numbers strong { color: #ced7ed; }
html[data-theme="dark"] .auto-rule-reference-preview { border: 1px solid #2c415b; border-radius: 18px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .auto-rule-reference-preview strong { color: #ced7ed; }
html[data-theme="dark"] .auto-rule-reference-preview span { color: #9ea9b9; }
html[data-theme="dark"] .auto-rule-search-result { border: 1px solid #293b54; border-radius: 16px; background: #1a2130; }
html[data-theme="dark"] .auto-rule-search-result:hover { border-color: #1670ff; box-shadow: 0 10px 24px rgba(22,112,255,.10); }
html[data-theme="dark"] .auto-rule-search-result strong { color: #ced7ed; }
html[data-theme="dark"] .auto-rule-search-result span { color: #9ea9b9; }
html[data-theme="dark"] .auto-rule-search-empty { border: 1px dashed #293b54; border-radius: 16px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .auto-rule-search-empty.is-error { border-color: #582b2b; background: #171d2b; color: #eb7a7a; }
html[data-theme="dark"] .auto-rule-picker input[type="search"] { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .auto-rule-picker input[type="search"]:focus { border-color: #1670ff; box-shadow: 0 0 0 4px rgba(22,112,255,.10); }
html[data-theme="dark"] .auto-rule-reference-results { border: 1px solid #2c415b; border-radius: 18px; background: #1a2130; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.252); }
html[data-theme="dark"] .auto-rule-search-empty.is-warning { border-color: #685d32; background: #443b1a; color: #f3b590; }
html[data-theme="dark"] .auto-rule-search-empty strong { color: inherit; }
html[data-theme="dark"] #autoRuleReferenceLabel.has-empty-reference .auto-rule-picker input[type="search"] { border-color: #685d32; background: #443b1a; }
html[data-theme="dark"] .supplier-empty-soft strong,
html[data-theme="dark"] .supplier-empty-error strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-empty-soft span,
html[data-theme="dark"] .supplier-empty-error span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-empty-error { border-color: #582b2b; background: #171d2b; }
html[data-theme="dark"] .supplier-empty-error span { color: #eb8d8d; }
html[data-theme="dark"] .auto-rule-search-note { border: 1px solid #293b54; border-radius: 14px; background: #192c43; color: #b0baca; }
html[data-theme="dark"] #autoRuleMatchLabel #autoRuleProductSearchResults { border: 1px solid #2c415b; border-radius: 18px; background: #1a2130; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.288); }
html[data-theme="dark"] .supplier-autoprice-source-summary > div { border: 1px solid #293b54; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-autoprice-source-summary span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-source-summary strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-source-summary small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-sources-empty { border: 1px dashed #2c415b; background: #192c43; border-radius: 18px; color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-sources-empty strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-source-row { border: 1px solid #293b54; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-source-row h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-source-row p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-source-row-numbers span,
html[data-theme="dark"] .supplier-autoprice-source-row-numbers small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-source-row-numbers strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-price-badge.warn { background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .supplier-autoprice-best-panel { border-top: 1px dashed #344559; }
html[data-theme="dark"] .supplier-autoprice-best-summary > div { background: #181e2c; border: 1px solid #293b54; border-radius: 16px; }
html[data-theme="dark"] .supplier-autoprice-best-summary span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-best-summary strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-best-summary small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-best-row { border: 1px solid #293b54; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-best-row h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-best-row p,
html[data-theme="dark"] .supplier-autoprice-best-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-best-numbers > div { background: #181e2c; border: 1px solid #303a50; border-radius: 14px; }
html[data-theme="dark"] .supplier-autoprice-best-numbers span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-best-numbers strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-price-badge.muted { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-rule-used { border: 1px dashed #344559; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .supplier-autoprice-rule-used strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-rule-used small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-best-numbers small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-tier-list { border-top: 1px solid #303a50; }
html[data-theme="dark"] .supplier-autoprice-tier-row { border: 1px solid #303a50; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-tier-row span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-tier-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-tier-row small { color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-source-row.is-selected { border-color: #2d5e3e; background: #171d2a; }
html[data-theme="dark"] .supplier-autoprice-source-row.is-hidden-source { border-color: #60492e; background: #43311a; }
html[data-theme="dark"] .supplier-autoprice-source-row.is-hidden-source h3 { color: #f1b19c; }
html[data-theme="dark"] .supplier-price-badge.muted { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-published-card { border: 1px solid #303a50; }
html[data-theme="dark"] .supplier-autoprice-published-summary > div { border: 1px solid #293b54; background: #191f2e; border-radius: 16px; }
html[data-theme="dark"] .supplier-autoprice-published-summary span,
html[data-theme="dark"] .supplier-autoprice-published-summary small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-published-summary strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-published-row { border-radius: 18px; border: 1px solid #293b54; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-published-row h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-published-row p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-refresh { border-radius: 16px; background: #181e2c; border: 1px solid #303a50; color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-live-dot { border-radius: 50%; background: #2a3849; }
html[data-theme="dark"] .supplier-autoprice-live-dot.is-on { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
html[data-theme="dark"] .supplier-autoprice-refresh-meta { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-refresh-meta .is-warn,
html[data-theme="dark"] .supplier-autoprice-refresh-meta .is-warn b { color: #f1b281; }
html[data-theme="dark"] .supplier-autoprice-refresh-error { border-radius: 10px; background: #171d2b; color: #eb8d8d; }
html[data-theme="dark"] .supplier-autoprice-rules-note { color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-hint { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-view-toolbar input[type="search"] { border: 1px solid #2b3f59; border-radius: 12px; }
html[data-theme="dark"] .supplier-autoprice-filters button { border-radius: 999px; border: 1px solid #2a3e58; background: #181e2c; color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-filters button b { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-filters button.is-active { background: #374666; border-color: #7583a3; color: #fff; }
html[data-theme="dark"] .supplier-autoprice-filters button.is-active b { color: #cbd5e1; }
html[data-theme="dark"] .supplier-autoprice-product { border-radius: 18px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-product.ap-state-needs_review { border-color: #fcd34d; background: #443b1a; }
html[data-theme="dark"] .supplier-autoprice-product.ap-state-hidden,
html[data-theme="dark"] .supplier-autoprice-product.ap-state-no_offers { background: #181e2c; }
html[data-theme="dark"] .supplier-autoprice-product-head h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-client-line { color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-product-controls label { color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-product-controls select { border: 1px solid #2b3f59; border-radius: 10px; background: #1a2130; }
html[data-theme="dark"] .supplier-price-check.compact { border: 1px solid #303a50; border-radius: 10px; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-note { color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-note.is-warn { color: #f3b590; }
html[data-theme="dark"] .supplier-autoprice-calc > div { border-radius: 12px; background: #181e2c; border: 1px solid #2d374c; }
html[data-theme="dark"] .supplier-autoprice-calc > div.is-final { background: #1a4430; border-color: #2d5e3e; }
html[data-theme="dark"] .supplier-autoprice-calc > i { color: #94a3b8; }
html[data-theme="dark"] .supplier-autoprice-calc span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-calc strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-autoprice-calc small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-ladder { border: 1px solid #303a50; border-radius: 12px; }
html[data-theme="dark"] .supplier-autoprice-ladder-head { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-ladder-row { border-top: 1px solid #2d374c; }
html[data-theme="dark"] .supplier-autoprice-ladder-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-sources-details summary { color: #8ecff2; }
html[data-theme="dark"] .supplier-autoprice-src { border-radius: 12px; border: 1px solid #2d374c; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-src.is-selected { border-color: #346c48; background: #171d2a; }
html[data-theme="dark"] .supplier-autoprice-src.is-review { border-color: #fcd34d; background: #443b1a; }
html[data-theme="dark"] .supplier-autoprice-src small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-src small.supplier-autoprice-src-reason { color: #b0baca; }
html[data-theme="dark"] .supplier-autoprice-rule.is-general { border-style: dashed; }
html[data-theme="dark"] .supplier-autoprice-rule-amount { color: #a1f5dd; }
html[data-theme="dark"] .supplier-autoprice-toggle { color: #bac5d6; }
html[data-theme="dark"] .supplier-autoprice-toggle span { border-radius: 999px; background: #2a3849; }
html[data-theme="dark"] .supplier-autoprice-toggle span::after { border-radius: 50%; background: #1a2130; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .supplier-autoprice-toggle input:checked + span { background: #22c55e; }
html[data-theme="dark"] .supplier-autoprice-toggle input:focus-visible + span { outline: 2px solid #0369a1; outline-offset: 2px; }
html[data-theme="dark"] .supplier-autoprice-rule-form-wrap > summary { color: #8ecff2; }
html[data-theme="dark"] .supplier-autoprice-product.ap-state-own_stock { background: #191f2e; border-color: #2d5e3e; }
html[data-theme="dark"] .supplier-autoprice-own-row { border-radius: 12px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .supplier-autoprice-own-row small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-autoprice-own-row span { color: #9ea9b9; }
/* --- supplier-client-transfer.css --- */
html[data-theme="dark"] .transfer-header h1,
html[data-theme="dark"] .transfer-card h2 { color: #d1d9eb; }
html[data-theme="dark"] .transfer-header p,
html[data-theme="dark"] .transfer-card p,
html[data-theme="dark"] .transfer-info,
html[data-theme="dark"] .transfer-order-meta,
html[data-theme="dark"] .transfer-event-meta { color: #a8b0bb; }
html[data-theme="dark"] .transfer-notice,
html[data-theme="dark"] .transfer-admin-note,
html[data-theme="dark"] .transfer-info { border-radius: 18px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .transfer-notice.is-error { background: #171d2b; border-color: #582a30; color: #f187a5; }
html[data-theme="dark"] .transfer-notice.is-success { background: #1a4430; border-color: #2d5e3e; color: #aaedc3; }
html[data-theme="dark"] .transfer-admin-note { background: #192c43; border-color: #2c415b; color: #96abe8; }
html[data-theme="dark"] .transfer-summary-card { border-radius: 18px; background: #1a2130; border: 1px solid #303a50; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .transfer-summary-card span { color: #9ea9b9; }
html[data-theme="dark"] .transfer-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .transfer-form label { color: #d1d9eb; }
html[data-theme="dark"] .transfer-form input,
html[data-theme="dark"] .transfer-form select { border: 1px solid #2a3d58; border-radius: 14px; background: #1a2130; color: #d1d9eb; }
html[data-theme="dark"] .transfer-order,
html[data-theme="dark"] .transfer-event,
html[data-theme="dark"] .transfer-empty { border: 1px solid #303a50; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .transfer-order h3,
html[data-theme="dark"] .transfer-event strong { color: #d1d9eb; }
html[data-theme="dark"] .transfer-badge { border-radius: 999px; background: #161c29; color: #bac5d6; }
html[data-theme="dark"] .transfer-badge.done { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .transfer-badge.ready { background: #4e4a1e; color: #f3c796; }
html[data-theme="dark"] .transfer-badge.error,
html[data-theme="dark"] .transfer-badge.danger { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .transfer-badge.info { background: #1b2f48; color: #698beb; }
html[data-theme="dark"] .transfer-order-item { border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .transfer-order-item strong { color: #d1d9eb; }
html[data-theme="dark"] .transfer-warning { border-radius: 14px; background: #43311a; color: #f1a48a; border: 1px solid #60492e; }
html[data-theme="dark"] .transfer-event { background: #19202f; }
/* --- supplier-clients.css --- */
html[data-theme="dark"] .supplier-settings-form label,
html[data-theme="dark"] .supplier-client-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-settings-form input,
html[data-theme="dark"] .supplier-settings-form select,
html[data-theme="dark"] .supplier-client-form input,
html[data-theme="dark"] #supplierClientsSearch { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .supplier-settings-form input:focus,
html[data-theme="dark"] .supplier-settings-form select:focus,
html[data-theme="dark"] .supplier-client-form input:focus,
html[data-theme="dark"] #supplierClientsSearch:focus { border-color: #334a6b; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] .supplier-mode-help { border-radius: 16px; background: #191f2e; border: 1px solid #2a3e58; color: #9ea9b9; }
html[data-theme="dark"] .supplier-client-card { border: 1px solid #2a3e58; border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .supplier-client-title h3 { color: #c6d3e7; }
html[data-theme="dark"] .supplier-badge { border-radius: 999px; background: #192d43; color: #5690ec; }
html[data-theme="dark"] .supplier-client-meta { color: #9ea9b9; }
html[data-theme="dark"] .supplier-client-payments { border-top: 1px solid #2d374c; }
html[data-theme="dark"] .supplier-payment-row { border-radius: 14px; background: #191f2e; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-payment-row strong { color: #c6d3e7; }
html[data-theme="dark"] .supplier-payment-form input { border: 1px solid #2a3e58; border-radius: 14px; }
html[data-theme="dark"] .supplier-empty { border: 1px dashed #2a3e58; border-radius: 18px; color: #9ea9b9; background: #191f2e; }
html[data-theme="dark"] .supplier-client-card:hover { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.144); border-color: #2d425d; }
html[data-theme="dark"] .supplier-client-hint { border-radius: 999px; background: #171d2a; color: #5690ec; }
html[data-theme="dark"] .supplier-client-modal-overlay { background: rgba(55, 70, 102, 0.52); }
html[data-theme="dark"] .supplier-client-modal { background: #1a2130; border-radius: 30px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.468); }
html[data-theme="dark"] .supplier-client-modal-head h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-client-modal-head p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-client-modal-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-client-modal-form input,
html[data-theme="dark"] .supplier-client-modal-form textarea { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .supplier-client-modal-form input:focus,
html[data-theme="dark"] .supplier-client-modal-form textarea:focus { border-color: #334a6a; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
@media (max-width: 760px) {
    html[data-theme="dark"] .supplier-client-modal { border-radius: 24px; }
}
html[data-theme="dark"] .supplier-client-card { border-radius: 24px !important; background: #1a2130 !important; }
html[data-theme="dark"] .supplier-client-meta { color: #9ea9b9 !important; }
html[data-theme="dark"] .supplier-client-meta span,
html[data-theme="dark"] .supplier-client-meta div { background: #191f2e !important; border: 1px solid #293b55 !important; border-radius: 999px !important; color: #9ea9b9 !important; }
html[data-theme="dark"] .supplier-client-actions button { border-radius: 16px !important; }
@media (max-width: 600px) {
    html[data-theme="dark"] .supplier-client-meta span,
    html[data-theme="dark"] .supplier-client-meta div { border-radius: 14px !important; }
}
html[data-theme="dark"] .supplier-settings-form select,
html[data-theme="dark"] .supplier-client-modal-form select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .supplier-settings-form select:focus,
html[data-theme="dark"] .supplier-client-modal-form select:focus { border-color: #334a6a; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .supplier-subscription-card { border: 1px solid rgba(59, 130, 246, 0.18); }
html[data-theme="dark"] .supplier-subscription-kpis div,
html[data-theme="dark"] .supplier-subscription-total { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 14px; background: rgba(55, 70, 102, 0.03); }
html[data-theme="dark"] .supplier-subscription-kpis span,
html[data-theme="dark"] .supplier-subscription-total span,
html[data-theme="dark"] .supplier-subscription-note { color: #9ea9b9; }
html[data-theme="dark"] .supplier-subscription-kpis strong,
html[data-theme="dark"] .supplier-subscription-total strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-subscription-badge { border-radius: 999px; background: rgba(58, 70, 87, 0.16); color: #b0baca; }
html[data-theme="dark"] .supplier-subscription-badge.free { background: rgba(34, 197, 94, 0.12); color: #9aeeba; }
html[data-theme="dark"] .supplier-subscription-badge.paid { background: rgba(38, 67, 115, 0.12); color: #698beb; }
html[data-theme="dark"] .supplier-subscription-badge.danger { background: rgba(115, 38, 38, 0.12); color: #eb7a7a; }
html[data-theme="dark"] .supplier-subscription-badge.muted { background: rgba(100, 116, 139, 0.14); color: #b0baca; }
html[data-theme="dark"] #supplierClientsTypeFilter { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] #supplierClientsTypeFilter:focus { border-color: #334a6b; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] .supplier-debt-chip { background: rgba(115, 38, 38, 0.08) !important; border-color: rgba(239, 68, 68, .18) !important; color: #eb7a7a !important; }
html[data-theme="dark"] .supplier-client-ops { border-bottom: 1px solid #2d374c; }
html[data-theme="dark"] .supplier-ops-head h3,
html[data-theme="dark"] .supplier-client-form-title h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-ops-head p,
html[data-theme="dark"] .supplier-client-form-title p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-ops-client-meta span { border-radius: 999px; background: #191f2e; border: 1px solid #293b55; color: #9ea9b9; }
html[data-theme="dark"] .supplier-ops-kpis div { border: 1px solid #293b55; border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .supplier-ops-kpis span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-ops-kpis strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-client-comment-box { border-radius: 18px; background: #19202f; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-client-comment-box label { color: #bac5d6; }
html[data-theme="dark"] .supplier-client-comment-box textarea { border: 1px solid #2a3e58; border-radius: 16px; }
html[data-theme="dark"] .supplier-ops-grid section { border: 1px solid #293b55; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .supplier-ops-grid h4 { color: #ced7ed; }
html[data-theme="dark"] .supplier-ops-row { border-radius: 14px; background: #191f2e; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-ops-row strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-ops-row span { color: #9ea9b9; }
html[data-theme="dark"] .compact-empty { border-radius: 14px !important; }
html[data-theme="dark"] .supplier-risk-badge { border-radius: 999px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .supplier-risk-badge.good { background: #1a442b; color: #a1f5dd; }
html[data-theme="dark"] .supplier-risk-badge.medium { background: #43311a; color: #f09c79; }
html[data-theme="dark"] .supplier-risk-badge.danger { background: #171d2b; color: #eb7a7a; }
html[data-theme="dark"] .supplier-risk-badge.new { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .supplier-risk-panel { border-radius: 22px; border: 1px solid #293b54; background: linear-gradient(180deg, #191f2e 0%, #1a2130 100%); }
html[data-theme="dark"] .supplier-risk-panel-head h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-risk-panel-head p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-risk-kpis div { background: #1a2130; }
html[data-theme="dark"] .supplier-risk-reason,
html[data-theme="dark"] .supplier-risk-note { border-radius: 16px; background: #1a2130; border: 1px solid #293b55; color: #bac5d6; }
html[data-theme="dark"] .supplier-risk-reason strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-risk-form { border-radius: 18px; background: #1a2130; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-risk-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-risk-form input,
html[data-theme="dark"] .supplier-risk-form select,
html[data-theme="dark"] .supplier-risk-form textarea { border: 1px solid #2a3e58; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .supplier-risk-debt-grid section { border-radius: 18px; background: #1a2130; border: 1px solid #293b55; }
html[data-theme="dark"] .supplier-risk-debt-grid h4 { color: #ced7ed; }
html[data-theme="dark"] .supplier-ops-row.is-overdue { background: #43311a; border-color: #60492e; }
html[data-theme="dark"] .supplier-clients-page .supplier-client-card.supplier-client-card--compact { border-radius: 18px !important; }
html[data-theme="dark"] .supplier-clients-page .supplier-client-meta--compact span { border-radius: 999px !important; }
html[data-theme="dark"] .supplier-clients-page .supplier-client-actions--compact .secondary-btn,
html[data-theme="dark"] .supplier-clients-page .supplier-client-actions--compact button { border-radius: 14px !important; }
html[data-theme="dark"] .supplier-client-card.supplier-client-card--compact,
html[data-theme="dark"] .supplier-client-card { border-radius: 16px !important; }
html[data-theme="dark"] .supplier-client-card.supplier-client-card--compact:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.126) !important; }
html[data-theme="dark"] .supplier-client-meta--compact span,
html[data-theme="dark"] .supplier-client-meta span,
html[data-theme="dark"] .supplier-client-meta div { border-radius: 999px !important; }
html[data-theme="dark"] .supplier-client-actions--compact button,
html[data-theme="dark"] .supplier-client-actions button { border-radius: 13px !important; }
html[data-theme="dark"] #supplierClientsList.supplier-clients-list::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #supplierClientsList.supplier-clients-list::-webkit-scrollbar-thumb { background: #213751; border-radius: 999px; border: 2px solid #2d364b; }
html[data-theme="dark"] #supplierClientsList.supplier-clients-list::-webkit-scrollbar-thumb:hover { background: #2c3e55; }
/* --- supplier-day-center-fix.css --- */
html[data-theme="dark"] .jd-smart-fix-overlay { background: rgba(48, 61, 90, 0.45); }
html[data-theme="dark"] .jd-smart-fix-window { background: #1a2130; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .jd-smart-fix-window input,
html[data-theme="dark"] .jd-smart-fix-window select { border: 1px solid #2c3c5c; border-radius: 10px; background: #1a2130; }
html[data-theme="dark"] .jd-smart-fix-window label { color: #9ea9b9; }
html[data-theme="dark"] .jd-smart-fix-actions button { border-radius: 10px; border: 0; }
html[data-theme="dark"] .jd-smart-fix-confirm { color: #ced7ed !important; }
html[data-theme="dark"] .jd-smart-fix-help { color: #9ea9b9; }
html[data-theme="dark"] .jd-smart-fix-source { border-radius: 12px; background: #171d2b; color: #bac5d6; }
/* --- supplier-day-center-modal-style.css --- */
html[data-theme="dark"] .jd-workspace-head span { color: #5988ed; }
html[data-theme="dark"] .jd-workspace-head h2 { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-grid > div { background: #1a2130; border: 1px solid #2a3e57; border-radius: 22px; }
html[data-theme="dark"] .jd-workspace-grid small,
html[data-theme="dark"] .jd-workspace-block > small { color: #9aa7b9; }
html[data-theme="dark"] .jd-workspace-grid strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-block { background: #1a2130; border: 1px solid #2a3e57; border-radius: 22px; }
html[data-theme="dark"] .jd-workspace-card-text { background: transparent !important; border: 0 !important; }
html[data-theme="dark"] .jd-workspace-card-text p { color: #bacce3; }
html[data-theme="dark"] .jd-workspace-action-box { background: #1a2a43 !important; border-radius: 18px !important; border: 0 !important; color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-comment { border: 1px solid #2a3e57; border-radius: 18px; color: #c8d9ee; outline: none; background: #1a2130; }
html[data-theme="dark"] .jd-workspace-comment::placeholder { color: #94a3b8; }
html[data-theme="dark"] .jd-workspace-actions button { border: 0; border-radius: 16px; background: #1a2a43; color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-actions button.primary { background: #2463eb; color: white; }
html[data-theme="dark"] .jd-workspace-status-badge { border-radius: 999px; background: #192843; color: #5988ed; }
html[data-theme="dark"] .jd-workspace-process-box { background: #181f2d; border: 1px solid #2a3e57; border-radius: 18px; }
html[data-theme="dark"] .jd-workspace-process-box strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-history-item { border-bottom: 1px solid #2d374c; color: #bacce3; }
html[data-theme="dark"] .jd-workspace-history-item:last-child { border-bottom: 0; }
html[data-theme="dark"] .jd-workspace-history-item small { color: #95a4b6; }
html[data-theme="dark"] .jd-workspace-process-box { background: #181f2d; border-radius: 18px; }
html[data-theme="dark"] .jd-process-label,
html[data-theme="dark"] .jd-process-next { color: #9ea9b9; }
html[data-theme="dark"] .jd-workspace-process-box strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-process-box p { color: #bacce3; }
html[data-theme="dark"] .jd-workspace-empty { background: #181f2d; border-radius: 16px; color: #9ea9b9; }
html[data-theme="dark"] .jd-workspace-history .jd-workspace-empty { background: #181f2d; color: #9aa7b9; }
html[data-theme="dark"] .jd-workspace-process-box { background: #181f2d; border: 1px solid #2a3e57; border-radius: 18px; }
html[data-theme="dark"] .jd-process-label,
html[data-theme="dark"] .jd-process-next { color: #9aa7b9; }
html[data-theme="dark"] .jd-workspace-process-box strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-process-box p { color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-history::-webkit-scrollbar-track { background: #151b27; border-radius: 999px; }
html[data-theme="dark"] .jd-workspace-history::-webkit-scrollbar-thumb { background: #293a53; border: 2px solid #2d374c; border-radius: 999px; }
html[data-theme="dark"] .jd-workspace-history-item { border: 0; border-bottom: 1px solid #2d374c; background: #1a2130; color: #bacce3; border-radius: 10px; }
html[data-theme="dark"] .jd-workspace-history-item:hover { background: #181f2d; }
html[data-theme="dark"] .jd-workspace-history-item time { color: #a2b1c3; }
html[data-theme="dark"] .jd-history-item-main strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-history-item-main small { color: #95a4b6; }
html[data-theme="dark"] .jd-history-item-more { color: #5988ed; }
html[data-theme="dark"] .jd-history-detail-backdrop { background: rgba(53, 68, 99, 0.56); }
html[data-theme="dark"] .jd-history-detail-window { background: #1a2130; border-radius: 24px; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .jd-history-detail-close { border: 0; border-radius: 50%; background: #161c29; color: #c8d9ee; }
html[data-theme="dark"] .jd-history-detail-kicker { color: #5988ed; }
html[data-theme="dark"] .jd-history-detail-window h3 { color: #c8d9ee; }
html[data-theme="dark"] .jd-history-detail-row { border-radius: 12px; background: #181f2d; border: 1px solid #293d55; }
html[data-theme="dark"] .jd-history-detail-row span { color: #9aa7b9; }
html[data-theme="dark"] .jd-history-detail-row strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-history-detail-content pre { border-radius: 14px; background: #181f2d; color: #bacce3; }
html[data-theme="dark"] .jd-history-detail-section { color: #5988ed; }
html[data-theme="dark"] .jd-workspace-history-item { border: 1px solid #293d55; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .jd-workspace-history-item:hover { border-color: #2d435d; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .jd-workspace-history-item time { color: #9aa7b9; }
html[data-theme="dark"] .jd-history-item-main strong { color: #c8d9ee; }
html[data-theme="dark"] .jd-history-item-more { color: #5988ed; }
html[data-theme="dark"] .jd-history-detail-section { border-bottom: 1px solid #293d55; }
html[data-theme="dark"] .jd-workspace-action-hint { color: #9ea9b9; }
/* --- supplier-day-center.css --- */
:root[data-theme="dark"] { --jd-ink: #c8d9ee; --jd-muted: #9aa7b9; --jd-line: #2a3e57; --jd-bg: #171d2b; --jd-blue-soft: #1a2a43; --jd-red-soft: #171d2b; --jd-orange-soft: #45381a; --jd-green-soft: #151b28; --jd-violet: #442775; --jd-violet-soft: #171d2b; --jd-cyan: #83dcf1; --jd-shadow: 0 18px 45px rgba(0, 0, 0, 0.162); }
html[data-theme="dark"] .jd-day-page { background: linear-gradient(135deg,#181e2c 0,#192b43 55%,#181f2d 100%); color: var(--jd-ink); }
html[data-theme="dark"] .jd-ops-header { border: 1px solid rgba(43, 63, 89, 0.9); border-radius: 28px; background: rgba(26, 33, 48, 0.92); box-shadow: var(--jd-shadow); }
html[data-theme="dark"] .jd-ops-kicker { color: #5988ed; }
html[data-theme="dark"] .jd-ops-header p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-btn { border: 0; border-radius: 14px; }
html[data-theme="dark"] .jd-btn-primary { background: var(--jd-blue); color: #fff; box-shadow: 0 10px 24px rgba(36,99,235,.24); }
html[data-theme="dark"] .jd-btn-soft { background: var(--jd-blue-soft); color: #5988ed; border: 1px solid #293956; }
html[data-theme="dark"] .jd-btn-ghost { background: #1a2130; color: #5988ed; border: 1px solid var(--jd-line); }
html[data-theme="dark"] .jd-btn-danger { background: var(--jd-red); color: #fff; }
html[data-theme="dark"] .jd-btn-small { border-radius: 11px; }
html[data-theme="dark"] .jd-day-status { border-radius: 15px; border: 1px solid #2a3a57; background: #192c43; color: #8aaee5; }
html[data-theme="dark"] .jd-day-status.is-ok { background: var(--jd-green-soft); border-color: #2e6043; color: #a1efc4; }
html[data-theme="dark"] .jd-day-status.is-warning { background: var(--jd-orange-soft); border-color: #644f30; color: #f3c893; }
html[data-theme="dark"] .jd-day-status.is-error { background: var(--jd-red-soft); border-color: #5a2b2f; color: #e8868f; }
html[data-theme="dark"] .jderp-status-dot { border-radius: 50%; background: currentColor; }
html[data-theme="dark"] .jd-pulse-card { background: #1a2130; border: 1px solid var(--jd-line); border-radius: 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.099); }
html[data-theme="dark"] .jd-pulse-card:after { background: var(--tone,var(--jd-blue)); }
html[data-theme="dark"] .jd-pulse-card span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-pulse-card small { color: var(--jd-muted); }
html[data-theme="dark"] .jd-ops-section { background: #1a2130; border: 1px solid var(--jd-line); border-radius: 28px; box-shadow: var(--jd-shadow); }
html[data-theme="dark"] .jd-step { border-radius: 14px; background: var(--jd-blue-soft); color: #5988ed; }
html[data-theme="dark"] .jd-section-title p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-action-main { border-radius: 24px; background: linear-gradient(135deg,#274772,#264573); color: #fff; }
html[data-theme="dark"] .jd-action-main:after { border-radius: 50%; background: rgba(37, 62, 112, 0.22); }
html[data-theme="dark"] .jd-action-label { color: #9fc1ff; }
html[data-theme="dark"] .jd-action-main p { color: #c9d7ea; }
html[data-theme="dark"] .jd-chip { border-radius: 999px; background: rgba(26, 33, 48, 0.11); }
html[data-theme="dark"] .jd-action-buttons .jd-btn-ghost { background: rgba(26, 33, 48, 0.12); border-color: rgba(42, 51, 70, 0.2); color: #fff; }
html[data-theme="dark"] .jd-impact-card { border: 1px solid #56292d; background: var(--jd-red-soft); border-radius: 20px; }
html[data-theme="dark"] .jd-impact-card.is-calm { background: var(--jd-green-soft); border-color: #2d5d41; }
html[data-theme="dark"] .jd-impact-card span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-impact-card p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-queue-item { border: 1px solid var(--jd-line); border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .jd-queue-item:hover { border-color: #2d405e; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .jd-queue-rank { border-radius: 13px; background: var(--jd-blue-soft); color: #5988ed; }
html[data-theme="dark"] .jd-queue-item.is-danger .jd-queue-rank { background: var(--jd-red-soft); color: var(--jd-red); }
html[data-theme="dark"] .jd-queue-item.is-high .jd-queue-rank { background: var(--jd-orange-soft); color: #f1c385; }
html[data-theme="dark"] .jd-queue-copy p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-mini-tag { border-radius: 999px; background: #161c29; color: #a3b1c4; }
html[data-theme="dark"] .jd-empty-work { border: 1px dashed #2d435d; border-radius: 20px; background: #191f2e; }
html[data-theme="dark"] .jd-empty-work p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-timeline:before { background: #1c2d49; }
html[data-theme="dark"] .jd-event:before { border-radius: 50%; background: var(--jd-blue); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .jd-event time { color: #a2b1c3; }
html[data-theme="dark"] .jd-event p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-stat-tile { border: 1px solid #2d5d3f; background: var(--jd-green-soft); border-radius: 18px; }
html[data-theme="dark"] .jd-stat-tile span { color: #adc1ba; }
html[data-theme="dark"] .jd-wait-card { border: 1px solid var(--jd-line); border-radius: 20px; background: #1a2130; }
html[data-theme="dark"] .jd-wait-card.is-risk { border-color: #5a2b30; background: var(--jd-red-soft); }
html[data-theme="dark"] .jd-wait-card.is-watch { border-color: #644e30; background: var(--jd-orange-soft); }
html[data-theme="dark"] .jd-wait-card span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-wait-card p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-control-card { border-radius: 18px; border: 1px solid var(--jd-line); background: #191f2e; }
html[data-theme="dark"] .jd-control-card span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-control-card a { color: #5988ed; }
html[data-theme="dark"] .jd-progress-box,
html[data-theme="dark"] .jd-health-box,
html[data-theme="dark"] .jd-finish-box { border: 1px solid var(--jd-line); border-radius: 20px; }
html[data-theme="dark"] .jd-progress-track { border-radius: 999px; background: #1b2f47; }
html[data-theme="dark"] .jd-progress-track i { background: linear-gradient(90deg,var(--jd-blue),var(--jd-green)); border-radius: 999px; }
html[data-theme="dark"] .jd-health-score strong { color: #84edb5; }
html[data-theme="dark"] .jd-health-row { border-radius: 11px; background: var(--jd-green-soft); }
html[data-theme="dark"] .jd-health-row.is-bad { background: var(--jd-red-soft); }
html[data-theme="dark"] .jd-finish-box p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-toast { background: #274772; color: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.396); }
html[data-theme="dark"] .jd-toast.is-ok { background: #13864a; }
html[data-theme="dark"] .jd-toast.is-warn { background: #a86300; }
html[data-theme="dark"] body[data-shift-mood="critical"] { --shift-soft: #171d2b; }
html[data-theme="dark"] body[data-shift-mood="attention"] { --shift-soft: #45381a; }
html[data-theme="dark"] body[data-shift-mood="calm"] { --shift-soft: #151b28; }
html[data-theme="dark"] .jd-shift-gate { border-radius: 32px; color: #fff; background: linear-gradient(135deg,#264673,#244575); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .jd-shift-gate.is-critical { background: linear-gradient(135deg,#6f2a3b,#8d2638); }
html[data-theme="dark"] .jd-shift-gate.is-attention { background: linear-gradient(135deg,#3a4a6c,#825817); }
html[data-theme="dark"] .jd-shift-gate.is-calm { background: linear-gradient(135deg,#237662,#1a7f5a); }
html[data-theme="dark"] .jd-shift-ambient { border-radius: 50%; background: rgba(26, 33, 48, 0.08); box-shadow: -200px 240px 0 80px rgba(0, 0, 0, 0.035); }
html[data-theme="dark"] .jd-shift-kicker { color: rgba(255,255,255,.72); }
html[data-theme="dark"] .jd-shift-icon { border-radius: 24px; background: rgba(26, 33, 48, 0.13); }
html[data-theme="dark"] .jd-shift-copy>p { color: rgba(255,255,255,.78); }
html[data-theme="dark"] .jd-shift-summary>div { border: 1px solid rgba(42, 51, 70, 0.14); border-radius: 20px; background: rgba(26, 33, 48, 0.08); }
html[data-theme="dark"] .jd-shift-summary span,
html[data-theme="dark"] .jd-shift-summary small { color: rgba(255,255,255,.7); }
html[data-theme="dark"] .jd-shift-start { background: #1a2130; color: #b5ceec; }
html[data-theme="dark"] .jd-shift-banner { border-radius: 24px; border: 1px solid var(--jd-line); background: var(--shift-soft); box-shadow: var(--jd-shadow); }
html[data-theme="dark"] .jd-shift-status-icon { border-radius: 17px; background: var(--shift-accent); color: #fff; }
html[data-theme="dark"] .jd-shift-banner span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-shift-banner p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-shift-mini { border-left: 1px solid var(--jd-line); }
html[data-theme="dark"] .jd-shift-mini strong { color: #84edb5; }
html[data-theme="dark"] .jd-shift-mini small { color: var(--jd-muted); }
html[data-theme="dark"] .jd-risk-panel { border-radius: 24px; border: 1px solid var(--jd-line); background: #191f2e; }
html[data-theme="dark"] .jd-risk-panel.is-danger { background: var(--jd-red-soft); border-color: #5a2b31; }
html[data-theme="dark"] .jd-risk-panel.is-high { background: var(--jd-orange-soft); border-color: #634e30; }
html[data-theme="dark"] .jd-risk-panel>span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-risk-panel p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-risk-clock { border-top: 1px solid rgba(140, 140, 140, 0.08); }
html[data-theme="dark"] .jd-risk-clock small { color: var(--jd-muted); }
html[data-theme="dark"] .jd-mission-card { border: 1px solid var(--jd-line); border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .jd-mission-card.is-danger { border-color: #5a2b31; }
html[data-theme="dark"] .jd-mission-card.is-high { border-color: #634e30; }
html[data-theme="dark"] .jd-mission-rank { background: var(--jd-blue-soft); color: #5988ed; }
html[data-theme="dark"] .jd-mission-card.is-danger .jd-mission-rank { background: var(--jd-red-soft); color: var(--jd-red); }
html[data-theme="dark"] .jd-mission-card.is-high .jd-mission-rank { background: var(--jd-orange-soft); color: #f2c68b; }
html[data-theme="dark"] .jd-mission-label { color: var(--jd-muted); }
html[data-theme="dark"] .jd-mission-main>p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-time-badge small { color: var(--jd-muted); }
html[data-theme="dark"] .jd-consequence { border-radius: 12px; background: #181e2c; }
html[data-theme="dark"] .jd-consequence span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-shift-complete { border-radius: 32px; background: linear-gradient(135deg,#161c29,#191f2e); border: 1px solid #2e6042; box-shadow: var(--jd-shadow); }
html[data-theme="dark"] .jd-complete-icon { border-radius: 28px; background: var(--jd-green); color: #fff; }
html[data-theme="dark"] .jd-shift-complete>span { color: #84edb5; }
html[data-theme="dark"] .jd-shift-complete>p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-complete-stats div { background: #1a2130; border: 1px solid #2b593e; border-radius: 18px; }
html[data-theme="dark"] .jd-complete-stats small { color: var(--jd-muted); }
html[data-theme="dark"] .jd-queue-toolbar { border-top: 1px solid var(--jd-line); border-bottom: 1px solid var(--jd-line); background: rgba(26, 33, 48, 0.96); }
html[data-theme="dark"] .jd-queue-toolbar span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-mission-scroll::-webkit-scrollbar-track { background: #151b27; border-radius: 999px; }
html[data-theme="dark"] .jd-mission-scroll::-webkit-scrollbar-thumb { background: #293a53; border-radius: 999px; border: 2px solid #2d374c; }
html[data-theme="dark"] .jd-mission-card { border-radius: 16px; }
html[data-theme="dark"] .jd-mission-footer .jd-btn-small { border-radius: 10px; }
html[data-theme="dark"] .jd-shift-preparing { border-radius: 32px; color: #fff; background: linear-gradient(135deg,#264673,#285a9a); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36); }
html[data-theme="dark"] .jd-preparing-spinner { border-radius: 50%; border: 6px solid rgba(42, 51, 70, 0.2); border-top-color: #2a3346; }
html[data-theme="dark"] .jd-shift-preparing>span { color: rgba(255,255,255,.72); }
html[data-theme="dark"] .jd-preparing-step { border-radius: 13px; background: rgba(26, 33, 48, 0.09); }
html[data-theme="dark"] .jd-preparing-step i { border-radius: 50%; background: #33c878; }
html[data-theme="dark"] .jd-workspace { background: transparent !important; }
html[data-theme="dark"] .jd-workspace-backdrop { background: rgba(53, 68, 99, 0.58); }
html[data-theme="dark"] .jd-workspace-close { border-radius: 50%; border: 0; background: #161c29; }
html[data-theme="dark"] .jd-workspace-card { border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .jd-workspace-actions button { border-radius: 12px; border: 0; }
html[data-theme="dark"] .jd-workspace-panel { border-radius: 30px; background: #1a2130; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .jd-workspace-head span { color: #5988ed; }
html[data-theme="dark"] .jd-workspace-grid div { border: 1px solid #2a3e57; border-radius: 20px; background: #19202f; }
html[data-theme="dark"] .jd-workspace-grid small { color: #9aa7b9; }
html[data-theme="dark"] .jd-workspace-actions button { background: #161c29; color: #c8d9ee; }
html[data-theme="dark"] .jd-workspace-actions button.primary { background: #2463eb; color: #fff; }
html[data-theme="dark"] .jd-workspace-backdrop { background: rgba(53, 68, 99, 0.62) !important; }
html[data-theme="dark"] .jd-workspace-grid strong { color: var(--jd-ink); }
html[data-theme="dark"] .jd-workspace-actions button.primary { background: var(--jd-blue); color: #fff; border-color: transparent; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-backdrop { background: rgba(53, 68, 99, 0.58) !important; }
html[data-theme="dark"] #jdWorkspace { background: transparent !important; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-backdrop { background: rgba(55, 70, 102, 0.58) !important; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-panel { background: #1a2130 !important; border-radius: 30px; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.504); }
html[data-theme="dark"] .jd-workspace-backdrop { background: rgba(55, 70, 102, 0.48) !important; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-card { background: #19202f; border: 1px solid #2a3e57; border-radius: 20px; color: #c8d9ee; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-card strong,
html[data-theme="dark"] #jdWorkspace .jd-workspace-card b { color: #c8d9ee; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-card p { color: #bac5d6; }
html[data-theme="dark"] #jdWorkspace .jd-workspace-card .label,
html[data-theme="dark"] #jdWorkspace .jd-workspace-card small { color: #9aa7b9; }
html[data-theme="dark"] #jdWorkspace textarea { border: 1px solid #2a3e57; border-radius: 14px; }
html[data-theme="dark"] .jd-workspace-panel { border-radius: 32px !important; background: var(--jd-bg,#171d2b) !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.396) !important; }
html[data-theme="dark"] .jd-workspace-head h2 { color: var(--jd-ink,#c8d9ee) !important; }
html[data-theme="dark"] .jd-workspace-grid div { background: #1a2130 !important; border: 1px solid var(--jd-line,#2a3e57) !important; border-radius: 22px !important; }
html[data-theme="dark"] .jd-workspace-grid small { color: var(--jd-muted,#9aa7b9) !important; }
html[data-theme="dark"] .jd-workspace-grid strong { color: var(--jd-ink,#c8d9ee) !important; }
html[data-theme="dark"] .jd-workspace-details,
html[data-theme="dark"] .jd-workspace-info,
html[data-theme="dark"] .jd-workspace-description { background: #1a2130; border: 1px solid var(--jd-line,#2a3e57); border-radius: 22px; color: var(--jd-ink,#c8d9ee); }
html[data-theme="dark"] .jd-workspace-details h3,
html[data-theme="dark"] .jd-workspace-info h3,
html[data-theme="dark"] .jd-workspace-description h3 { color: #5988ed; }
html[data-theme="dark"] .jd-workspace textarea,
html[data-theme="dark"] .jd-workspace textarea.form-control { border-radius: 18px; border: 1px solid var(--jd-line,#2a3e57); background: #1a2130; color: var(--jd-ink,#c8d9ee); }
html[data-theme="dark"] .jd-workspace-actions button { border-radius: 16px !important; }
html[data-theme="dark"] .jd-action-why { border-radius: 14px; background: rgba(26, 33, 48, 0.09); }
html[data-theme="dark"] .jd-action-why span { color: #9fc1ff; }
html[data-theme="dark"] .jd-action-why b { color: #eef5ff; }
html[data-theme="dark"] .jd-smart-queue-head { border-radius: 12px; background: #181e2c; border: 1px solid var(--jd-line); }
html[data-theme="dark"] .jd-smart-queue-head span { color: var(--jd-ink); }
html[data-theme="dark"] .jd-smart-queue-head p { color: var(--jd-muted); }
html[data-theme="dark"] .jd-smart-queue-head>b { border-radius: 999px; background: #1a2130; border: 1px solid var(--jd-line); }
html[data-theme="dark"] .jd-smart-queue-group.is-urgent .jd-smart-queue-head { background: var(--jd-red-soft); border-color: #5a2b31; }
html[data-theme="dark"] .jd-smart-queue-group.is-today .jd-smart-queue-head { background: var(--jd-orange-soft); border-color: #634e30; }
html[data-theme="dark"] .jd-priority-reason { border-radius: 11px; background: #181e2c; border: 1px solid #2f384e; }
html[data-theme="dark"] .jd-priority-reason span { color: var(--jd-muted); }
html[data-theme="dark"] .jd-priority-reason b { color: #b3c3d7; }
html[data-theme="dark"] .jd-mission-card.is-danger .jd-priority-reason { background: var(--jd-red-soft); border-color: #56292d; }
html[data-theme="dark"] .jd-mission-card.is-high .jd-priority-reason { background: var(--jd-orange-soft); border-color: #5d492d; }
/* --- supplier-physical-inventory.css --- */
html[data-theme="dark"] .physical-header p { color: #a1acbc; }
html[data-theme="dark"] .physical-warning { border: 1px solid #2c415b; border-radius: 24px; background: linear-gradient(135deg, #192c43, #1a2130); color: #bac5d6; box-shadow: 0 18px 46px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .physical-warning strong { color: #ced7ed; }
html[data-theme="dark"] .physical-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .physical-summary-card small { color: #9ea9b9; }
html[data-theme="dark"] .physical-section-head h2 { color: #ced7ed; }
html[data-theme="dark"] .physical-section-head p { color: #9ea9b9; }
html[data-theme="dark"] .physical-form label,
html[data-theme="dark"] .physical-imei-form label { color: #bac5d6; }
html[data-theme="dark"] .physical-form input,
html[data-theme="dark"] .physical-form textarea,
html[data-theme="dark"] #physicalInventorySearch,
html[data-theme="dark"] .physical-imei-form textarea { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .physical-form input:focus,
html[data-theme="dark"] .physical-form textarea:focus,
html[data-theme="dark"] #physicalInventorySearch:focus,
html[data-theme="dark"] .physical-imei-form textarea:focus { border-color: #314a66; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] #physicalInlineImeiHint { border-radius: 14px; background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] #physicalInlineImeiHint.is-ok { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] #physicalInlineImeiHint.is-error { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] #physicalInlineImeiHint.is-muted { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .physical-product-picker { border: 1px solid #2c415b; border-radius: 24px; background: #192c43; }
html[data-theme="dark"] .physical-product-picker > p,
html[data-theme="dark"] .physical-publication-box p { color: #9ea9b9; }
html[data-theme="dark"] .physical-product-results { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.324); }
html[data-theme="dark"] .physical-product-result { border: 0; border-bottom: 1px solid #2d364b; background: #1a2130; }
html[data-theme="dark"] .physical-product-result:hover { background: #191f2e; }
html[data-theme="dark"] .physical-product-result strong { color: #ced7ed; }
html[data-theme="dark"] .physical-product-result span { color: #9ea9b9; }
html[data-theme="dark"] .physical-product-selected { border: 1px solid #2d5e3e; border-radius: 18px; background: #1a4430; }
html[data-theme="dark"] .physical-product-selected strong { color: #adf6e1; }
html[data-theme="dark"] .physical-product-selected span { color: #9aeeba; }
html[data-theme="dark"] .physical-publication-box { border: 1px solid #2a3e57; border-radius: 24px; background: #191f2e; }
html[data-theme="dark"] .physical-publication-box h3 { color: #ced7ed; }
html[data-theme="dark"] .physical-check { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .physical-check small { color: #9ea9b9; }
html[data-theme="dark"] .physical-empty { border: 1px dashed #344559; border-radius: 20px; color: #9ea9b9; background: #181e2c; }
html[data-theme="dark"] .physical-item { border: 1px solid #2a3e57; border-radius: 24px; background: #1a2130; }
html[data-theme="dark"] .physical-title h3 { color: #ced7ed; }
html[data-theme="dark"] .physical-badge { border-radius: 999px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .physical-badge.active { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .physical-badge.archived { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .physical-meta span { border-radius: 999px; background: #161c29; color: #b0baca; }
html[data-theme="dark"] .physical-stat { border-radius: 18px; background: #161c29; }
html[data-theme="dark"] .physical-stat span { color: #9ea9b9; }
html[data-theme="dark"] .physical-stat strong { color: #ced7ed; }
html[data-theme="dark"] .physical-modal-overlay { background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .physical-modal { border-radius: 28px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.432); }
html[data-theme="dark"] .physical-imei-row { border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .physical-form select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .physical-form select:focus { border-color: #314a66; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] .physical-form-group { border: 1px solid #2a3e57; border-radius: 24px; background: linear-gradient(135deg, #191f2e, #1a2130); }
html[data-theme="dark"] .physical-form-group h3 { color: #ced7ed; }
html[data-theme="dark"] .physical-form-group p { color: #9ea9b9; }
html[data-theme="dark"] .physical-imei-inline small { color: #9ea9b9; }
html[data-theme="dark"] .physical-form input.is-readonly { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .physical-stat small { color: #9ea9b9; }
html[data-theme="dark"] .physical-filter-panel { border: 1px solid #2a3e57; border-radius: 24px; background: linear-gradient(135deg, #191f2e, #1a2130); }
html[data-theme="dark"] .physical-filter-panel label { color: #bac5d6; }
html[data-theme="dark"] .physical-filter-panel input,
html[data-theme="dark"] .physical-filter-panel select { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #ced7ed; outline: none; }
html[data-theme="dark"] .physical-filter-panel input:focus,
html[data-theme="dark"] .physical-filter-panel select:focus { border-color: #314a66; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] .physical-list-status { border: 1px solid #2a3e57; border-radius: 18px; background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .physical-list-status strong { color: #ced7ed; }
html[data-theme="dark"] .physical-list-status span { color: #9ea9b9; }
html[data-theme="dark"] .physical-item-detailed { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.108); }
html[data-theme="dark"] .physical-item-detailed.is-empty-stock { border-color: #582b2b; }
html[data-theme="dark"] .physical-warning-line span { border-radius: 999px; background: #43311a; color: #f09c79; }
html[data-theme="dark"] .physical-stock-card { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .physical-stock-card span,
html[data-theme="dark"] .physical-detail-block .card-label { color: #9ea9b9; }
html[data-theme="dark"] .physical-stock-card strong,
html[data-theme="dark"] .physical-detail-block strong { color: #ced7ed; }
html[data-theme="dark"] .physical-stock-card small,
html[data-theme="dark"] .physical-detail-block small { color: #9ea9b9; }
html[data-theme="dark"] .physical-stock-card.is-available { background: #1a4430; border-color: #2d5e3e; }
html[data-theme="dark"] .physical-stock-card.is-available strong { color: #a1f5dd; }
html[data-theme="dark"] .physical-stock-card.is-reserved { background: #192c43; border-color: #2c415b; }
html[data-theme="dark"] .physical-stock-card.is-reserved strong { color: #698beb; }
html[data-theme="dark"] .physical-stock-card.is-sold { background: #161c29; }
html[data-theme="dark"] .physical-detail-block { border: 1px solid #2a3e57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .physical-publication-pill { border-radius: 999px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .physical-publication-pill.is-muted { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .physical-publication-pill.is-warning { background: #43311a; color: #f09c79; }
html[data-theme="dark"] #physicalQuantityTotal.is-readonly { background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .physical-publication-box { background: linear-gradient(135deg, #191f2e 0%, #1a2130 100%); border-color: #2b4059; }
html[data-theme="dark"] .physical-publication-card { border: 1px solid #2a3e57; border-radius: 22px; background: #1a2130; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .physical-publication-switch { background: #181e2c; }
html[data-theme="dark"] .physical-publication-switch input:checked + span,
html[data-theme="dark"] .physical-publication-switch:has(input:checked) span { color: #ced7ed; }
html[data-theme="dark"] .physical-duplicate-warning { border: 1px solid #60492e; border-radius: 18px; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .physical-duplicate-warning p { color: #f1a48a; }
html[data-theme="dark"] .physical-duplicate-list button { border: 1px solid #6d5135; border-radius: 14px; background: #1a2130; }
html[data-theme="dark"] .physical-duplicate-list button:hover { background: #443b1a; }
html[data-theme="dark"] .physical-duplicate-list span { color: #ced7ed; }
html[data-theme="dark"] .physical-duplicate-list small { color: #9ea9b9; }
html[data-theme="dark"] .physical-integrity-panel { border: 1px solid #2a3e57; border-radius: 18px; background: #181e2c; color: #bac5d6; }
html[data-theme="dark"] .physical-integrity-panel.is-ok { border-color: #2d5e3e; background: #171d2a; color: #aaedc3; }
html[data-theme="dark"] .physical-integrity-panel.has-errors { border-color: #60492e; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .physical-integrity-issues div { border-radius: 12px; background: rgba(26, 33, 48, 0.7); color: #bac5d6; }
html[data-theme="dark"] .physical-integrity-issues .is-error { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .physical-integrity-issues .is-warning { background: #4a361c; color: #f1a48a; }
html[data-theme="dark"] .physical-integrity-issues .is-muted { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .physical-imei-delete { border: 0; border-radius: 12px; background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .physical-imei-delete:hover { background: #4d1d1d; }
html[data-theme="dark"] .physical-publication-card:has(#publishRegionalClients) { border-color: #2d5e3e; background: linear-gradient(180deg, #1a2130 0%, #171d2a 100%); }
html[data-theme="dark"] .physical-publication-card:has(#publishRegionalClients) .physical-publication-switch span small { color: #aaedc3; }
html[data-theme="dark"] .physical-reservations-line { border: 1px solid rgba(234, 179, 8, 0.28); border-radius: 14px; background: rgba(234, 179, 8, 0.08); color: #f0c7a2; }
html[data-theme="dark"] .physical-reservations-line span { border-radius: 999px; background: rgba(26, 33, 48, 0.78); border: 1px solid rgba(234, 179, 8, 0.25); color: #f3bc9d; }
html[data-theme="dark"] #physicalInventoryList.physical-list-detailed::-webkit-scrollbar-track { background: #161c29; border-radius: 999px; }
html[data-theme="dark"] #physicalInventoryList.physical-list-detailed::-webkit-scrollbar-thumb { background: #2a3849; border-radius: 999px; }
html[data-theme="dark"] #physicalInventoryList.physical-list-detailed::-webkit-scrollbar-thumb:hover { background: #3a4657; }
html[data-theme="dark"] .physical-item-compact:hover,
html[data-theme="dark"] .physical-item-compact:focus-visible { border-color: #2c415b; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.144); outline: none; }
html[data-theme="dark"] .physical-item-compact.is-empty-stock { border-color: #582b2b; }
html[data-theme="dark"] .physical-compact-publications span { border-radius: 999px; background: #192c43; color: #698beb; }
html[data-theme="dark"] .physical-details-title h3 { color: #ced7ed; }
html[data-theme="dark"] .physical-private-publication-card { border-color: rgba(124, 58, 237, 0.18); }
html[data-theme="dark"] .physical-publication-fields select { border: 1px solid #2b3f59; border-radius: 14px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .physical-publication-help { color: #9ea9b9; }
html[data-theme="dark"] .physical-save-result { border-radius: 18px; background: #171d2b; border: 1px solid #2c415b; color: #a6cbf2; }
html[data-theme="dark"] .physical-save-result.is-error { background: #171d2b; border-color: #582a30; color: #eb8d8d; }
html[data-theme="dark"] .physical-batches { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .physical-batches-head small { color: #9ea9b9; }
html[data-theme="dark"] .physical-batches-row { border-radius: 12px; background: #1a2130; color: #ced7ed; }
html[data-theme="dark"] .physical-batches-row.is-head { background: transparent; color: #9ea9b9; }
html[data-theme="dark"] .physical-batches-row small,
html[data-theme="dark"] .physical-batches-row em { color: #9ea9b9; }
html[data-theme="dark"] .physical-batches-row em { color: #8ecff2; }
/* --- supplier-regional-inventory.css --- */
html[data-theme="dark"] .supplier-inventory-note { border: 1px solid #685d32; border-radius: 22px; background: #443b1a; color: #f3b590; }
html[data-theme="dark"] .supplier-inventory-note strong { color: #f3bc9d; }
html[data-theme="dark"] .supplier-summary-card strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-section-head h2,
html[data-theme="dark"] .supplier-list-head h2 { color: #ced7ed; }
html[data-theme="dark"] .supplier-section-head p,
html[data-theme="dark"] .supplier-list-head p { color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-form label,
html[data-theme="dark"] .regional-imei-form label { color: #bac5d6; }
html[data-theme="dark"] .supplier-inventory-form input,
html[data-theme="dark"] .supplier-inventory-form textarea,
html[data-theme="dark"] .regional-imei-form textarea,
html[data-theme="dark"] #regionalInventorySearch { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .supplier-inventory-form input:focus,
html[data-theme="dark"] .supplier-inventory-form textarea:focus,
html[data-theme="dark"] .regional-imei-form textarea:focus,
html[data-theme="dark"] #regionalInventorySearch:focus { border-color: #334a6b; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
html[data-theme="dark"] .supplier-inventory-item { border: 1px solid #2a3e58; border-radius: 22px; background: #1a2130; }
html[data-theme="dark"] .supplier-inventory-title h3 { color: #ced7ed; }
html[data-theme="dark"] .supplier-inventory-badge { border-radius: 999px; background: #192d43; color: #5690ec; }
html[data-theme="dark"] .supplier-inventory-meta span { border: 1px solid #293b55; border-radius: 999px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-actions button { border-radius: 15px; }
html[data-theme="dark"] .supplier-inventory-stat { border-radius: 16px; background: #181e2c; border: 1px solid #303a50; }
html[data-theme="dark"] .supplier-inventory-stat span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-stat strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-empty { border: 1px dashed #2a3e58; border-radius: 18px; color: #9ea9b9; background: #191f2e; }
html[data-theme="dark"] .regional-imei-modal-overlay { background: rgba(55, 70, 102, 0.48); }
html[data-theme="dark"] .regional-imei-modal { border-radius: 30px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.432); }
html[data-theme="dark"] .regional-imei-modal-head h2 { color: #ced7ed; }
html[data-theme="dark"] .regional-imei-modal-head p { color: #9ea9b9; }
html[data-theme="dark"] .regional-imei-row { border: 1px solid #293b55; border-radius: 16px; background: #191f2e; }
html[data-theme="dark"] .regional-imei-row strong { color: #ced7ed; }
html[data-theme="dark"] .regional-imei-status { border-radius: 999px; background: #111620; color: #bac5d6; }
html[data-theme="dark"] .regional-imei-status.available { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .regional-imei-status.reserved { background: #4d441d; color: #f1b281; }
html[data-theme="dark"] .regional-imei-status.sold { background: #461b1b; color: #eb7a7a; }
html[data-theme="dark"] .supplier-inventory-check { border: 1px solid #293b54; border-radius: 18px; background: #191f2e; }
html[data-theme="dark"] .supplier-inventory-check input { accent-color: #5690ec; }
html[data-theme="dark"] .supplier-inventory-check span { color: #ced7ed; }
html[data-theme="dark"] .supplier-inventory-check small { color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-badge.price-visible { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .supplier-inventory-badge.price-hidden { background: #161c29; color: #9ea9b9; }
html[data-theme="dark"] .regional-product-picker { border: 1px solid #2c415b; border-radius: 22px; background: linear-gradient(180deg, #192c43 0%, #1a2130 100%); }
html[data-theme="dark"] .regional-product-help { color: #9ea9b9; }
html[data-theme="dark"] .regional-product-results { border: 1px solid #293b54; border-radius: 18px; background: #1a2130; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.288); }
html[data-theme="dark"] .regional-product-result { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .regional-product-result:hover { border-color: #314a66; background: #192c43; }
html[data-theme="dark"] .regional-product-result strong,
html[data-theme="dark"] .regional-product-selected strong { color: #ced7ed; }
html[data-theme="dark"] .regional-product-result span,
html[data-theme="dark"] .regional-product-selected span { color: #9ea9b9; }
html[data-theme="dark"] .regional-product-selected,
html[data-theme="dark"] .regional-product-empty { border-radius: 16px; border: 1px solid #2b3459; background: #192343; }
html[data-theme="dark"] .regional-product-empty { border-color: #60492e; background: #43311a; color: #f1a48a; }
html[data-theme="dark"] .supplier-inventory-form input[readonly] { background: #181e2c; color: #b0baca; }
html[data-theme="dark"] .supplier-inventory-badge.catalog-linked { background: #1c482b; color: #9aeeba; }
html[data-theme="dark"] .supplier-inventory-badge.catalog-missing { background: #4d441d; color: #f1b281; }
html[data-theme="dark"] .regional-product-request-btn { border-radius: 14px; }
html[data-theme="dark"] .regional-product-request-status { border-radius: 14px; border: 1px solid #293b54; background: #192c43; color: #96abe8; }
html[data-theme="dark"] .regional-product-request-status.is-success { border-color: #2d5e3e; background: #171d2a; color: #aaedc3; }
html[data-theme="dark"] .regional-product-request-modal { background: rgba(55, 70, 102, 0.52); }
html[data-theme="dark"] .regional-product-request-dialog { border-radius: 26px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.576); }
html[data-theme="dark"] .regional-product-request-head h3 { color: #ced7ed; }
html[data-theme="dark"] .regional-product-request-head p { color: #9ea9b9; }
html[data-theme="dark"] .regional-product-request-form label { color: #ced7ed; }
html[data-theme="dark"] .regional-product-request-form input,
html[data-theme="dark"] .regional-product-request-form textarea { border: 1px solid #2a3d57; border-radius: 14px; background: #1a2130; outline: none; }
@media (max-width: 620px) {
    html[data-theme="dark"] .regional-product-request-dialog { border-radius: 20px; }
}
html[data-theme="dark"] .supplier-inventory-actions .catalog-link-btn { border-color: #2c415b; background: #192c43; color: #6095ed; }
html[data-theme="dark"] .supplier-inventory-actions .catalog-link-btn:hover { background: #1b2f48; }
html[data-theme="dark"] .supplier-inventory-badge.physical-linked { border-color: #2d5e3e; background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .supplier-inventory-actions .physical-open-btn { border-color: #2c415b; background: #192c43; color: #6095ed; }
html[data-theme="dark"] .supplier-inventory-actions .physical-open-btn:hover { background: #1b2f48; }
html[data-theme="dark"] .supplier-inventory-item:has(.physical-linked) { border-color: #2d5e3e; background: linear-gradient(180deg, #1a2130 0%, #171d2a 100%); }
html[data-theme="dark"] .supplier-physical-source-card { border: 1px solid rgba(245, 158, 11, 0.28); background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(55, 70, 102, 0.02)); }
html[data-theme="dark"] .supplier-physical-duplicate-warning { border-radius: 16px; border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(68, 59, 26, 0.9); color: #f3bc9d; }
html[data-theme="dark"] .supplier-physical-duplicate-item { border: 1px solid rgba(245, 158, 11, 0.35); background: #1a2130; border-radius: 12px; }
html[data-theme="dark"] .supplier-physical-duplicate-item span { color: #f3b590; }
html[data-theme="dark"] .supplier-inventory-item-compact { border-radius: 20px; }
html[data-theme="dark"] .supplier-inventory-item-compact:hover { border-color: #2c415b; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.144); background: #19202f; }
html[data-theme="dark"] .supplier-inventory-compact-meta span { border: 1px solid #303a50; border-radius: 999px; background: #181e2c; color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-compact-numbers div,
html[data-theme="dark"] .regional-detail-stats div { border: 1px solid #303a50; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .supplier-inventory-compact-numbers span,
html[data-theme="dark"] .regional-detail-stats span { color: #9ea9b9; }
html[data-theme="dark"] .supplier-inventory-compact-numbers strong,
html[data-theme="dark"] .regional-detail-stats strong { color: #ced7ed; }
html[data-theme="dark"] .supplier-inventory-compact-actions button { border-radius: 13px; }
html[data-theme="dark"] .regional-item-detail-modal-overlay { background: rgba(55, 70, 102, 0.48); }
html[data-theme="dark"] .regional-item-detail-modal { border-radius: 30px; background: #1a2130; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.432); }
html[data-theme="dark"] .regional-item-detail-head h2 { color: #ced7ed; }
html[data-theme="dark"] .regional-item-detail-head p { color: #9ea9b9; }
html[data-theme="dark"] .regional-detail-meta span { border: 1px solid #293b55; border-radius: 999px; background: #191f2e; color: #9ea9b9; }
html[data-theme="dark"] .regional-detail-actions button { border-radius: 14px; }
@media (max-width: 800px) {
    html[data-theme="dark"] .regional-item-detail-modal { border-radius: 24px; }
}
html[data-theme="dark"] .regional-source-mode { border: 1px solid #293b54; border-radius: 22px; background: #191f2e; }
html[data-theme="dark"] .regional-source-option { border: 1px solid #2a3d57; border-radius: 18px; background: #1a2130; }
html[data-theme="dark"] .regional-source-option input { accent-color: #5690ec; }
html[data-theme="dark"] .regional-source-option strong { color: #ced7ed; }
html[data-theme="dark"] .regional-source-option small { color: #9ea9b9; }
html[data-theme="dark"] .regional-source-option:has(input:checked) { border-color: #314a66; background: #192c43; box-shadow: 0 0 0 4px rgba(37, 99, 235, .06); }
html[data-theme="dark"] .supplier-inventory-badge.external-manual { background: #4d441d; color: #f3b590; }
/* --- inline-0 --- */
html[data-theme="dark"] .profile-money-card { color: inherit; }
html[data-theme="dark"] .profile-money-card:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18); }
/* --- inline-1 --- */
html[data-theme="dark"] .sale-pay-badge { border-radius: 999px; }
html[data-theme="dark"] .sale-pay-badge.is-paid { background: #1c482b; color: #aaedc3; }
html[data-theme="dark"] .sale-pay-badge.is-debt { background: #4d441d; color: #f3b590; }
html[data-theme="dark"] .sale-pay-badge.is-overdue { background: #461b1b; color: #eb8d8d; }
html[data-theme="dark"] .sale-pay-badge.is-muted { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .sale-pay-debt { color: #f3b590; }
html[data-theme="dark"] .sale-pay-method { color: #9ea9b9; }
html[data-theme="dark"] .sale-pay-btn { border: 0; border-radius: 12px; background: #374666; color: #fff; }
html[data-theme="dark"] .sale-retail-note { color: #9ea9b9; }
html[data-theme="dark"] .sale-return-note { color: #f3b590; }
html[data-theme="dark"] .unified-report-hide { border: 0; border-radius: 12px; background: #374666; color: #fff; }
html[data-theme="dark"] .unified-report p { color: #b0baca; }
html[data-theme="dark"] .unified-report ul { color: #ced7ed; }
html[data-theme="dark"] .unified-report.is-warning { border: 1px solid #685d32; background: #443b1a; }
html[data-theme="dark"] .sale-pay-overlay { background: rgba(55, 70, 102, 0.45); }
html[data-theme="dark"] .sale-pay-dialog { background: #1a2130; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
html[data-theme="dark"] .sale-pay-dialog p { color: #b0baca; }
html[data-theme="dark"] .sale-pay-dialog label { color: #bac5d6; }
html[data-theme="dark"] .sale-pay-dialog input,
html[data-theme="dark"] .sale-pay-dialog select { border: 1px solid #344559; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .sale-pay-actions button { border-radius: 12px; border: 1px solid #344559; background: #1a2130; }
html[data-theme="dark"] .sale-pay-actions .is-primary { background: #374666; color: #fff; border-color: #7584a3; }
/* --- inline-2 --- */
html[data-theme="dark"] .price-item-ladder .ladder-badge { border-radius: 999px; background: #1b3547; color: #9ad4f4; }
html[data-theme="dark"] .price-item-ladder .ladder-hint { color: #9ea9b9; }
html[data-theme="dark"] .ladder-modal-hint { color: #b0baca; }
html[data-theme="dark"] .ladder-modal-auto label { color: #bac5d6; }
html[data-theme="dark"] .ladder-modal-auto input { border: 1px solid #2b3f59; border-radius: 10px; }
html[data-theme="dark"] .ladder-modal-rows { border: 1px solid #303a50; border-radius: 14px; }
html[data-theme="dark"] .ladder-modal-row { border-top: 1px solid #2d374c; }
html[data-theme="dark"] .ladder-modal-row:first-child { border-top: 0; }
html[data-theme="dark"] .ladder-modal-row-head { background: #161c29; color: #b0baca; }
html[data-theme="dark"] .ladder-modal-row input { border: 1px solid #2b3f59; border-radius: 10px; }
html[data-theme="dark"] .ladder-modal-total { color: #ced7ed; }
/* --- inline-3 --- */
html[data-theme="dark"] .procurement-market-picker { border: 1px dashed #344559; border-radius: 14px; background: #181e2c; }
html[data-theme="dark"] .procurement-market-picker > small { color: #9ea9b9; }
html[data-theme="dark"] .procurement-picker-head small { color: #9ea9b9; }
html[data-theme="dark"] .procurement-picker-row { border-radius: 12px; border: 1px solid #303a50; background: #1a2130; }
html[data-theme="dark"] .procurement-picker-row.is-current { border-color: #346c48; background: #171d2a; }
html[data-theme="dark"] .procurement-picker-main small { color: #9ea9b9; }
html[data-theme="dark"] .procurement-picker-num span { color: #9ea9b9; }
html[data-theme="dark"] .order-status-pill { border-radius: 999px; background: #192343; color: #96abe8; }
html[data-theme="dark"] .order-step-btn { border-radius: 10px; border: 1px solid #7583a3; background: #374666; color: #fff; }
html[data-theme="dark"] .order-step-btn.is-secondary { background: #1a2130; color: #ced7ed; border-color: #344559; }
html[data-theme="dark"] .order-step-btn.is-danger { background: #1a2130; color: #eb7a7a; border-color: #582b2b; }
html[data-theme="dark"] .order-step-hint { color: #9ea9b9; }
html[data-theme="dark"] .order-action-muted { color: #94a3b8; }
/* --- inline-5 --- */
html[data-theme="dark"] .customer-payments-summary div { background: #181e2c; border: 1px solid #303a50; border-radius: 16px; }
html[data-theme="dark"] .customer-payments-summary span { color: #9ea9b9; }
html[data-theme="dark"] .customer-payments-summary strong { color: #ced7ed; }
html[data-theme="dark"] .cp-amount { color: #9aeeba; }
/* --- inline-6 --- */
html[data-theme="dark"] .rr-stock-warning { border-radius: 14px; background: #171d2b; color: #eb8d8d; }
html[data-theme="dark"] .rr-imei.is-blocked small { color: #eb8d8d; }
/* --- inline-8 --- */
html[data-theme="dark"] body .sidebar .sidebar-nav .jd-menu-section { color: #9ea9b9 !important; background: none !important; border: 0 !important; }
/* --- inline-9 --- */
html[data-theme="dark"] .mny-card { background: #1a2130; border-radius: 24px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.126); }
html[data-theme="dark"] .mny-head p { color: #9ea9b9; }
html[data-theme="dark"] .mny-label { color: #5793ec; }
html[data-theme="dark"] .mny-btn { border: 1px solid #344559; background: #1a2130; border-radius: 12px; color: #ced7ed; }
html[data-theme="dark"] .mny-btn.is-dark { background: #374666; color: #fff; border-color: #7584a3; }
html[data-theme="dark"] .mny-acc { border: 1px solid #303a50; border-radius: 18px; background: #181e2c; }
html[data-theme="dark"] .mny-acc span { color: #9ea9b9; }
html[data-theme="dark"] .mny-acc strong { color: #ced7ed; }
html[data-theme="dark"] .mny-acc .mny-acc-title { color: #ced7ed; }
html[data-theme="dark"] .mny-acc .mny-acc-tools button { border: 0; background: #111620; border-radius: 10px; }
html[data-theme="dark"] .mny-acc.is-unassigned { background: #443b1a; border-color: #685d32; }
html[data-theme="dark"] .mny-chips button { border: 1px solid #2a3d58; background: #1a2130; border-radius: 999px; color: #ced7ed; }
html[data-theme="dark"] .mny-chips button.is-active { background: #374666; color: #fff; border-color: #7584a3; }
html[data-theme="dark"] .mny-filters label { color: #bac5d6; }
html[data-theme="dark"] .mny-filters input,
html[data-theme="dark"] .mny-filters select { border: 1px solid #344559; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .mny-periods button { border: 1px solid #303a50; background: #181e2c; border-radius: 10px; }
html[data-theme="dark"] .mny-totals div { background: #181e2c; border: 1px solid #303a50; border-radius: 16px; }
html[data-theme="dark"] .mny-totals span { color: #9ea9b9; }
html[data-theme="dark"] .mny-table { border-collapse: collapse; }
html[data-theme="dark"] .mny-table th { color: #9ea9b9; border-bottom: 1px solid #303a50; }
html[data-theme="dark"] .mny-table td { border-bottom: 1px solid #2d364b; }
html[data-theme="dark"] .mny-in { color: #9aeeba; }
html[data-theme="dark"] .mny-out { color: #eb7a7a; }
html[data-theme="dark"] .mny-move { color: #b0baca; }
html[data-theme="dark"] .mny-sub { color: #9ea9b9; }
html[data-theme="dark"] .mny-table select { border: 1px solid #344559; border-radius: 10px; }
html[data-theme="dark"] .mny-table select.is-auto { border-style: dashed; }
html[data-theme="dark"] .mny-empty { color: #9ea9b9; background: #181e2c; border-radius: 16px; }
html[data-theme="dark"] .mny-overlay { background: rgba(55, 70, 102, 0.5); }
html[data-theme="dark"] .mny-dialog { background: #1a2130; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54); }
html[data-theme="dark"] .mny-dialog p { color: #b0baca; }
html[data-theme="dark"] .mny-dialog label { color: #bac5d6; }
html[data-theme="dark"] .mny-dialog input,
html[data-theme="dark"] .mny-dialog select { border: 1px solid #344559; border-radius: 12px; }
/* --- inline-10 --- */
html[data-theme="dark"] #imPrivateBuyModal .internal-market-modal-card { border-radius: 28px; }
html[data-theme="dark"] .im-private-buy-product-card { background: #191f2e; border: 1px solid #2a3e58; border-radius: 20px; }
html[data-theme="dark"] .im-private-buy-product-card span { color: #9ea9b9; }
html[data-theme="dark"] .im-private-buy-product-card strong { color: #c6d3e7; }
html[data-theme="dark"] .im-private-buy-stat { background: #191f2e; border: 1px solid #2a3e58; border-radius: 18px; }
html[data-theme="dark"] .im-private-buy-stat span { color: #9ea9b9; }
html[data-theme="dark"] .im-private-buy-stat strong { color: #c6d3e7; }
html[data-theme="dark"] .im-private-buy-form label { color: #c6d3e7; }
html[data-theme="dark"] .im-private-buy-form input,
html[data-theme="dark"] .im-private-buy-form textarea { border: 1px solid #2a3e58; border-radius: 16px; background: #1a2130; color: #c6d3e7; outline: none; }
html[data-theme="dark"] .im-private-buy-form input:focus,
html[data-theme="dark"] .im-private-buy-form textarea:focus { border-color: #334a6b; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
html[data-theme="dark"] .im-private-buy-total-box { border-radius: 18px; background: #151b28; border: 1px solid #2a3e58; color: #9ea9b9; }
html[data-theme="dark"] .im-private-buy-total-box strong { color: #c6d3e7; }
/* --- inline-11 --- */
html[data-theme="dark"] .sale-payment-block { border: 1px solid #303a50; border-radius: 22px; background: #181e2c; }
html[data-theme="dark"] .sale-payment-block h3 { color: #ced7ed; }
html[data-theme="dark"] .sale-payment-hint { color: #9ea9b9; }
html[data-theme="dark"] .sale-payment-modes button { border: 1px solid #344559; background: #1a2130; border-radius: 999px; color: #ced7ed; }
html[data-theme="dark"] .sale-payment-modes button.is-active { background: #374666; border-color: #7584a3; color: #fff; }
html[data-theme="dark"] .sale-payment-grid label { color: #bac5d6; }
html[data-theme="dark"] .sale-payment-grid input,
html[data-theme="dark"] .sale-payment-grid select { border: 1px solid #344559; border-radius: 12px; background: #1a2130; }
html[data-theme="dark"] .sale-payment-summary { color: #bac5d6; }
html[data-theme="dark"] .sale-payment-summary strong { color: #ced7ed; }
html[data-theme="dark"] .sale-payment-summary .is-debt { color: #f1b281; }
html[data-theme="dark"] .sale-payment-summary .is-error { color: #eb7a7a; }
html[data-theme="dark"] .sale-payment-already { border-radius: 12px; background: #1a4430; color: #aaedc3; }
/* --- jd-final-polish.css --- */
:root[data-theme="dark"] { --jd-polish-soft-border: rgba(48, 58, 80, 0.9); --jd-polish-text: #ced7ed; --jd-polish-muted: #9ea9b9; --jd-polish-bg: #171e2b; --jd-polish-card-bg: rgba(26, 33, 48, 0.96); --jd-polish-shadow: 0 16px 40px rgba(0, 0, 0, 0.108); --jd-polish-shadow-hover: 0 20px 52px rgba(0, 0, 0, 0.162); }
html[data-theme="dark"] body.jd-final-polish-ready { background: var(--jd-polish-bg); color: var(--jd-polish-text); }
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-header p,
html[data-theme="dark"] body.jd-final-polish-ready .internal-market-header p,
html[data-theme="dark"] body.jd-final-polish-ready .physical-header p,
html[data-theme="dark"] body.jd-final-polish-ready .finance-accounting-header p,
html[data-theme="dark"] body.jd-final-polish-ready .integrity-control-header p,
html[data-theme="dark"] body.jd-final-polish-ready .period-close-header p,
html[data-theme="dark"] body.jd-final-polish-ready .action-log-header p,
html[data-theme="dark"] body.jd-final-polish-ready .inventory-audit-header p,
html[data-theme="dark"] body.jd-final-polish-ready .return-warranty-header p,
html[data-theme="dark"] body.jd-final-polish-ready .risk-debts-header p,
html[data-theme="dark"] body.jd-final-polish-ready .smart-restock-header p,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-accounting-header p,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-client-center-header p,
html[data-theme="dark"] body.jd-final-polish-ready .retail-customer-header p,
html[data-theme="dark"] body.jd-final-polish-ready .platform-check-header p,
html[data-theme="dark"] body.jd-final-polish-ready .subscription-header p { color: var(--jd-polish-muted); }
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-card,
html[data-theme="dark"] body.jd-final-polish-ready .internal-market-card,
html[data-theme="dark"] body.jd-final-polish-ready .internal-market-section-card,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-accounting-card,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-summary-card,
html[data-theme="dark"] body.jd-final-polish-ready .physical-publication-card,
html[data-theme="dark"] body.jd-final-polish-ready .platform-check-card,
html[data-theme="dark"] body.jd-final-polish-ready .integrity-control-card,
html[data-theme="dark"] body.jd-final-polish-ready .finance-accounting-card,
html[data-theme="dark"] body.jd-final-polish-ready .risk-debts-card,
html[data-theme="dark"] body.jd-final-polish-ready .smart-restock-card,
html[data-theme="dark"] body.jd-final-polish-ready .action-log-card,
html[data-theme="dark"] body.jd-final-polish-ready .inventory-audit-card,
html[data-theme="dark"] body.jd-final-polish-ready .return-warranty-card,
html[data-theme="dark"] body.jd-final-polish-ready .subscription-card,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-client-center-card,
html[data-theme="dark"] body.jd-final-polish-ready .retail-customer-card,
html[data-theme="dark"] body.jd-final-polish-ready .chat-control-card,
html[data-theme="dark"] body.jd-final-polish-ready .admin-platform-card,
html[data-theme="dark"] body.jd-final-polish-ready .admin-users-card { border: 1px solid var(--jd-polish-soft-border); border-radius: var(--jd-polish-radius); box-shadow: var(--jd-polish-shadow); }
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-card:hover,
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-action-card:hover,
html[data-theme="dark"] body.jd-final-polish-ready .internal-market-card:hover,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-accounting-card:hover,
html[data-theme="dark"] body.jd-final-polish-ready .physical-publication-card:hover { box-shadow: var(--jd-polish-shadow-hover); }
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-action-card { border: 1px solid var(--jd-polish-soft-border); border-radius: var(--jd-polish-radius); box-shadow: var(--jd-polish-shadow); }
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-action-card small,
html[data-theme="dark"] body.jd-final-polish-ready .dashboard-card small,
html[data-theme="dark"] body.jd-final-polish-ready .supplier-summary-card small,
html[data-theme="dark"] body.jd-final-polish-ready .retail-summary-card small,
html[data-theme="dark"] body.jd-final-polish-ready .physical-summary-card small { color: var(--jd-polish-muted); }
html[data-theme="dark"] body.jd-final-polish-ready .card-label { border-radius: 999px; }
html[data-theme="dark"] body.jd-final-polish-ready table { border-collapse: separate; border-spacing: 0; }
html[data-theme="dark"] body.jd-final-polish-ready .jd-responsive-table,
html[data-theme="dark"] body.jd-final-polish-ready .inventory-table-wrapper,
html[data-theme="dark"] body.jd-final-polish-ready .internal-market-table-wrap,
html[data-theme="dark"] body.jd-final-polish-ready .table-wrapper,
html[data-theme="dark"] body.jd-final-polish-ready .table-wrap,
html[data-theme="dark"] body.jd-final-polish-ready .orders-table-wrapper,
html[data-theme="dark"] body.jd-final-polish-ready .admin-table-wrapper,
html[data-theme="dark"] body.jd-final-polish-ready .platform-check-table-wrap { border-radius: 18px; border: 1px solid var(--jd-polish-soft-border); background: #1a2130; }
html[data-theme="dark"] body.jd-final-polish-ready .muted,
html[data-theme="dark"] body.jd-final-polish-ready .hint,
html[data-theme="dark"] body.jd-final-polish-ready .empty-state,
html[data-theme="dark"] body.jd-final-polish-ready .help-text { color: var(--jd-polish-muted); }
html[data-theme="dark"] body.jd-final-polish-ready .notice,
html[data-theme="dark"] body.jd-final-polish-ready .warning,
html[data-theme="dark"] body.jd-final-polish-ready .error,
html[data-theme="dark"] body.jd-final-polish-ready .success,
html[data-theme="dark"] body.jd-final-polish-ready .alert,
html[data-theme="dark"] body.jd-final-polish-ready .physical-integrity-panel,
html[data-theme="dark"] body.jd-final-polish-ready .finance-alert,
html[data-theme="dark"] body.jd-final-polish-ready .integrity-result,
html[data-theme="dark"] body.jd-final-polish-ready .platform-check-result { border-radius: 18px; }
html[data-theme="dark"] body.jd-final-polish-ready .sidebar-nav a.active,
html[data-theme="dark"] body.jd-final-polish-ready .sidebar-nav a.active-link { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
@media (max-width: 980px) {
    html[data-theme="dark"] body.jd-final-polish-ready .dashboard-card,
    html[data-theme="dark"] body.jd-final-polish-ready .internal-market-card,
    html[data-theme="dark"] body.jd-final-polish-ready .internal-market-section-card,
    html[data-theme="dark"] body.jd-final-polish-ready .supplier-accounting-card,
    html[data-theme="dark"] body.jd-final-polish-ready .physical-publication-card,
    html[data-theme="dark"] body.jd-final-polish-ready .platform-check-card,
    html[data-theme="dark"] body.jd-final-polish-ready .integrity-control-card,
    html[data-theme="dark"] body.jd-final-polish-ready .finance-accounting-card,
    html[data-theme="dark"] body.jd-final-polish-ready .risk-debts-card,
    html[data-theme="dark"] body.jd-final-polish-ready .smart-restock-card,
    html[data-theme="dark"] body.jd-final-polish-ready .action-log-card,
    html[data-theme="dark"] body.jd-final-polish-ready .inventory-audit-card,
    html[data-theme="dark"] body.jd-final-polish-ready .return-warranty-card,
    html[data-theme="dark"] body.jd-final-polish-ready .subscription-card,
    html[data-theme="dark"] body.jd-final-polish-ready .supplier-client-center-card,
    html[data-theme="dark"] body.jd-final-polish-ready .retail-customer-card { border-radius: 18px; }
}
/* --- jd-responsive.css --- */
:root[data-theme="dark"] { --jd-mobile-shadow: 0 18px 48px rgba(0, 0, 0, 0.288); }
html[data-theme="dark"] .jd-responsive-table::-webkit-scrollbar-thumb,
html[data-theme="dark"] .inventory-table-wrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] .internal-market-table-wrap::-webkit-scrollbar-thumb,
html[data-theme="dark"] .table-wrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] .table-wrap::-webkit-scrollbar-thumb { background: rgba(55, 70, 102, 0.18); border-radius: 999px; }
@media (max-width: 980px) {
    html[data-theme="dark"] .jd-mobile-menu-toggle { border: 1px solid rgba(53, 64, 88, 0.9); border-radius: 999px; background: rgba(26, 33, 48, 0.94); color: #d1d9eb; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.288); }
    html[data-theme="dark"] .jd-mobile-menu-toggle span { border-radius: 999px; background: #374666; }
    html[data-theme="dark"] .jd-mobile-menu-backdrop { background: rgba(55, 70, 102, 0.36); }
    html[data-theme="dark"] .sidebar { box-shadow: var(--jd-mobile-shadow) !important; border-right: 1px solid rgba(53, 64, 88, 0.85) !important; }
    html[data-theme="dark"] .sidebar-nav a { border-radius: 14px !important; }
    html[data-theme="dark"] .dashboard-card,
    html[data-theme="dark"] .dashboard-action-card,
    html[data-theme="dark"] .internal-market-section-card,
    html[data-theme="dark"] .chat-control-list-card,
    html[data-theme="dark"] .chat-control-dialog-card,
    html[data-theme="dark"] .subscription-card,
    html[data-theme="dark"] .platform-check-card,
    html[data-theme="dark"] .action-log-card,
    html[data-theme="dark"] .period-close-card,
    html[data-theme="dark"] .finance-accounting-card,
    html[data-theme="dark"] .risk-debts-card,
    html[data-theme="dark"] .smart-restock-card,
    html[data-theme="dark"] .supplier-client-center-card,
    html[data-theme="dark"] .retail-customer-card { border-radius: var(--jd-mobile-radius) !important; }
    html[data-theme="dark"] .internal-market-tab-btn { border-radius: 14px !important; }
    html[data-theme="dark"] .order-modal,
    html[data-theme="dark"] .internal-market-modal-card,
    html[data-theme="dark"] .modal,
    html[data-theme="dark"] .modal-card,
    html[data-theme="dark"] .modal-content { border-radius: 20px !important; }
}
@media (max-width: 560px) {
    html[data-theme="dark"] .dashboard-card,
    html[data-theme="dark"] .dashboard-action-card,
    html[data-theme="dark"] .internal-market-section-card,
    html[data-theme="dark"] .chat-control-list-card,
    html[data-theme="dark"] .chat-control-dialog-card,
    html[data-theme="dark"] .subscription-card,
    html[data-theme="dark"] .platform-check-card,
    html[data-theme="dark"] .action-log-card,
    html[data-theme="dark"] .period-close-card,
    html[data-theme="dark"] .finance-accounting-card,
    html[data-theme="dark"] .risk-debts-card,
    html[data-theme="dark"] .smart-restock-card,
    html[data-theme="dark"] .supplier-client-center-card,
    html[data-theme="dark"] .retail-customer-card { border-radius: 16px !important; }
    html[data-theme="dark"] .brand-logo { border-radius: 16px !important; }
}
html[data-theme="dark"].jd-responsive-enabled .platform-panel,
html[data-theme="dark"].jd-responsive-enabled .platform-mini-card,
html[data-theme="dark"].jd-responsive-enabled .subscription-panel,
html[data-theme="dark"].jd-responsive-enabled .subscription-mini-card,
html[data-theme="dark"].jd-responsive-enabled .regional-subscription-card,
html[data-theme="dark"].jd-responsive-enabled .action-log-card,
html[data-theme="dark"].jd-responsive-enabled .period-close-card,
html[data-theme="dark"].jd-responsive-enabled .finance-accounting-card,
html[data-theme="dark"].jd-responsive-enabled .integrity-control-card,
html[data-theme="dark"].jd-responsive-enabled .return-warranty-card,
html[data-theme="dark"].jd-responsive-enabled .inventory-audit-card,
html[data-theme="dark"].jd-responsive-enabled .transfer-card,
html[data-theme="dark"].jd-responsive-enabled .transfer-summary-card,
html[data-theme="dark"].jd-responsive-enabled .risk-debts-card,
html[data-theme="dark"].jd-responsive-enabled .risk-debts-summary-card,
html[data-theme="dark"].jd-responsive-enabled .smart-restock-card,
html[data-theme="dark"].jd-responsive-enabled .smart-restock-summary-card,
html[data-theme="dark"].jd-responsive-enabled .client-center-filter-card,
html[data-theme="dark"].jd-responsive-enabled .client-center-list-card,
html[data-theme="dark"].jd-responsive-enabled .client-center-detail-card,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-admin-owners,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-filter-card,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-list-card,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-detail-card,
html[data-theme="dark"].jd-responsive-enabled .chat-control-list-card,
html[data-theme="dark"].jd-responsive-enabled .chat-control-dialog-card,
html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-card,
html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-metric { border-radius: 22px !important; }
html[data-theme="dark"].jd-responsive-enabled .platform-check-alert,
html[data-theme="dark"].jd-responsive-enabled .subscription-alert,
html[data-theme="dark"].jd-responsive-enabled .action-log-notice,
html[data-theme="dark"].jd-responsive-enabled .action-log-admin-note,
html[data-theme="dark"].jd-responsive-enabled .period-close-notice,
html[data-theme="dark"].jd-responsive-enabled .finance-accounting-notice,
html[data-theme="dark"].jd-responsive-enabled .finance-accounting-admin-note,
html[data-theme="dark"].jd-responsive-enabled .integrity-control-notice,
html[data-theme="dark"].jd-responsive-enabled .integrity-control-admin-note,
html[data-theme="dark"].jd-responsive-enabled .return-warranty-notice,
html[data-theme="dark"].jd-responsive-enabled .return-warranty-admin-note,
html[data-theme="dark"].jd-responsive-enabled .inventory-audit-notice,
html[data-theme="dark"].jd-responsive-enabled .inventory-audit-admin-note,
html[data-theme="dark"].jd-responsive-enabled .transfer-notice,
html[data-theme="dark"].jd-responsive-enabled .transfer-admin-note,
html[data-theme="dark"].jd-responsive-enabled .risk-debts-notice,
html[data-theme="dark"].jd-responsive-enabled .risk-debts-admin-note,
html[data-theme="dark"].jd-responsive-enabled .smart-restock-notice,
html[data-theme="dark"].jd-responsive-enabled .smart-restock-admin-note,
html[data-theme="dark"].jd-responsive-enabled .client-center-notice,
html[data-theme="dark"].jd-responsive-enabled .client-center-admin-note,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-notice,
html[data-theme="dark"].jd-responsive-enabled .retail-customer-admin-note,
html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-alert { border-radius: 18px !important; }
@media (max-width: 980px) {
    html[data-theme="dark"].jd-responsive-enabled .platform-panel,
    html[data-theme="dark"].jd-responsive-enabled .platform-mini-card,
    html[data-theme="dark"].jd-responsive-enabled .subscription-panel,
    html[data-theme="dark"].jd-responsive-enabled .subscription-mini-card,
    html[data-theme="dark"].jd-responsive-enabled .regional-subscription-card,
    html[data-theme="dark"].jd-responsive-enabled .action-log-card,
    html[data-theme="dark"].jd-responsive-enabled .period-close-card,
    html[data-theme="dark"].jd-responsive-enabled .finance-accounting-card,
    html[data-theme="dark"].jd-responsive-enabled .integrity-control-card,
    html[data-theme="dark"].jd-responsive-enabled .return-warranty-card,
    html[data-theme="dark"].jd-responsive-enabled .inventory-audit-card,
    html[data-theme="dark"].jd-responsive-enabled .transfer-card,
    html[data-theme="dark"].jd-responsive-enabled .transfer-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .risk-debts-card,
    html[data-theme="dark"].jd-responsive-enabled .risk-debts-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .smart-restock-card,
    html[data-theme="dark"].jd-responsive-enabled .smart-restock-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-filter-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-list-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-detail-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-admin-owners,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-filter-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-list-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-detail-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-list-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-dialog-card,
    html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-card,
    html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-metric { border-radius: 18px !important; }
}
@media (max-width: 560px) {
    html[data-theme="dark"].jd-responsive-enabled .platform-panel,
    html[data-theme="dark"].jd-responsive-enabled .platform-mini-card,
    html[data-theme="dark"].jd-responsive-enabled .subscription-panel,
    html[data-theme="dark"].jd-responsive-enabled .subscription-mini-card,
    html[data-theme="dark"].jd-responsive-enabled .regional-subscription-card,
    html[data-theme="dark"].jd-responsive-enabled .action-log-card,
    html[data-theme="dark"].jd-responsive-enabled .period-close-card,
    html[data-theme="dark"].jd-responsive-enabled .finance-accounting-card,
    html[data-theme="dark"].jd-responsive-enabled .integrity-control-card,
    html[data-theme="dark"].jd-responsive-enabled .return-warranty-card,
    html[data-theme="dark"].jd-responsive-enabled .inventory-audit-card,
    html[data-theme="dark"].jd-responsive-enabled .transfer-card,
    html[data-theme="dark"].jd-responsive-enabled .transfer-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .risk-debts-card,
    html[data-theme="dark"].jd-responsive-enabled .risk-debts-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .smart-restock-card,
    html[data-theme="dark"].jd-responsive-enabled .smart-restock-summary-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-filter-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-list-card,
    html[data-theme="dark"].jd-responsive-enabled .client-center-detail-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-admin-owners,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-filter-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-list-card,
    html[data-theme="dark"].jd-responsive-enabled .retail-customer-detail-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-list-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-dialog-card,
    html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-card,
    html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-metric { border-radius: 16px !important; }
}
html[data-theme="dark"].jd-responsive-enabled .dashboard-card,
html[data-theme="dark"].jd-responsive-enabled .supplier-price-settings-card,
html[data-theme="dark"].jd-responsive-enabled .supplier-price-rules-card,
html[data-theme="dark"].jd-responsive-enabled .supplier-price-items-card,
html[data-theme="dark"].jd-responsive-enabled .supplier-inventory-form-card,
html[data-theme="dark"].jd-responsive-enabled .supplier-inventory-list-card,
html[data-theme="dark"].jd-responsive-enabled .chat-control-filters,
html[data-theme="dark"].jd-responsive-enabled .chat-control-list-card,
html[data-theme="dark"].jd-responsive-enabled .chat-control-dialog-card,
html[data-theme="dark"].jd-responsive-enabled .platform-panel,
html[data-theme="dark"].jd-responsive-enabled .subscription-panel,
html[data-theme="dark"].jd-responsive-enabled .action-log-card,
html[data-theme="dark"].jd-responsive-enabled .period-close-card,
html[data-theme="dark"].jd-responsive-enabled .finance-accounting-card,
html[data-theme="dark"].jd-responsive-enabled .risk-debts-card,
html[data-theme="dark"].jd-responsive-enabled .smart-restock-card,
html[data-theme="dark"].jd-responsive-enabled .inventory-audit-card,
html[data-theme="dark"].jd-responsive-enabled .integrity-control-card,
html[data-theme="dark"].jd-responsive-enabled .return-warranty-card,
html[data-theme="dark"].jd-responsive-enabled .transfer-card,
html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-card { border-radius: var(--jd-812-radius) !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page { background: #151b27 !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page section.accounting-page { background: #151b27 !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-card { border-radius: 32px !important; background: #1a2130 !important; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.144) !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-header .accounting-dark-btn { border-radius: 18px !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-admin-panel,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-payment-methods { border-radius: 26px !important; border: 1px solid #303a50 !important; background: #181e2c !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-admin-panel label,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-form label,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .payment-method-form label { color: #bac5d6 !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-admin-panel input,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-admin-panel select,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-payment-methods input,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-edit-modal input,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-edit-modal select { border: 1px solid #323c53 !important; border-radius: 16px !important; background-color: #1a2130 !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .finance-summary-card { border-radius: 22px !important; background: #181e2c !important; border: 1px solid #303a50 !important; }
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-table-wrapper,
html[data-theme="dark"].jd-responsive-enabled body.accounting-page .jd-responsive-table { border-radius: 24px !important; }
@media (max-width: 980px) {
    html[data-theme="dark"].jd-responsive-enabled .dashboard-card,
    html[data-theme="dark"].jd-responsive-enabled .supplier-price-settings-card,
    html[data-theme="dark"].jd-responsive-enabled .supplier-price-rules-card,
    html[data-theme="dark"].jd-responsive-enabled .supplier-price-items-card,
    html[data-theme="dark"].jd-responsive-enabled .supplier-inventory-form-card,
    html[data-theme="dark"].jd-responsive-enabled .supplier-inventory-list-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-filters,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-list-card,
    html[data-theme="dark"].jd-responsive-enabled .chat-control-dialog-card,
    html[data-theme="dark"].jd-responsive-enabled .platform-panel,
    html[data-theme="dark"].jd-responsive-enabled .subscription-panel,
    html[data-theme="dark"].jd-responsive-enabled .action-log-card,
    html[data-theme="dark"].jd-responsive-enabled .period-close-card,
    html[data-theme="dark"].jd-responsive-enabled .finance-accounting-card,
    html[data-theme="dark"].jd-responsive-enabled .risk-debts-card,
    html[data-theme="dark"].jd-responsive-enabled .smart-restock-card,
    html[data-theme="dark"].jd-responsive-enabled .inventory-audit-card,
    html[data-theme="dark"].jd-responsive-enabled .integrity-control-card,
    html[data-theme="dark"].jd-responsive-enabled .return-warranty-card,
    html[data-theme="dark"].jd-responsive-enabled .transfer-card,
    html[data-theme="dark"].jd-responsive-enabled .jd-im-abs-card { border-radius: 20px !important; }
    html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-card { border-radius: 24px !important; }
}
@media (max-width: 560px) {
    html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-admin-panel,
    html[data-theme="dark"].jd-responsive-enabled body.accounting-page .accounting-payment-methods { border-radius: 20px !important; }
}
html[data-theme="dark"].jd-responsive-enabled body.accounting-page { background: #151b27 !important; }
@media (max-width: 980px) {
    html[data-theme="dark"].jd-mobile-stable,
    html[data-theme="dark"].jd-mobile-stable body { background: #151b27 !important; }
    html[data-theme="dark"].jd-mobile-stable .dashboard-page,
    html[data-theme="dark"].jd-mobile-stable body > .dashboard-page,
    html[data-theme="dark"].jd-mobile-stable .accounting-page,
    html[data-theme="dark"].jd-mobile-stable .internal-market-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-physical-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-clients-page,
    html[data-theme="dark"].jd-mobile-stable .supplier-accounting-page,
    html[data-theme="dark"].jd-mobile-stable .regional-retail-page,
    html[data-theme="dark"].jd-mobile-stable .retail-customer-page { background: #151b27 !important; }
    html[data-theme="dark"].jd-mobile-stable .dashboard-action-card,
    html[data-theme="dark"].jd-mobile-stable .card,
    html[data-theme="dark"].jd-mobile-stable [class*="card"],
    html[data-theme="dark"].jd-mobile-stable [class*="panel"] { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.144) !important; }
}

/* ===== Ручные правки поверх автоматических ===== */

/* Модуль поиска и категорий */
html[data-theme="dark"] .jdcf {
    --jdcf-bg: #111827;
    --jdcf-border: #273449;
    --jdcf-text: #e5e7eb;
    --jdcf-muted: #94a3b8;
    --jdcf-chip: #1e293b;
    --jdcf-chip-hover: #273449;
    --jdcf-active: #e5e7eb;
    --jdcf-active-text: #0f172a;
    --jdcf-focus: #60a5fa;
}
html[data-theme="dark"] .jdcf-sticky { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }


/* Цвета в атрибуте style */
html[data-theme="dark"] [style*="color:#B45309"],
html[data-theme="dark"] [style*="color: #B45309"],
html[data-theme="dark"] [style*="color:#b45309"],
html[data-theme="dark"] [style*="color: #b45309"],
html[data-theme="dark"] [style*="color:rgb(180, 83, 9)"],
html[data-theme="dark"] [style*="color: rgb(180, 83, 9)"] { color: #f1b281 !important; }
html[data-theme="dark"] [style*="color:#15803D"],
html[data-theme="dark"] [style*="color: #15803D"],
html[data-theme="dark"] [style*="color:#15803d"],
html[data-theme="dark"] [style*="color: #15803d"],
html[data-theme="dark"] [style*="color:rgb(21, 128, 61)"],
html[data-theme="dark"] [style*="color: rgb(21, 128, 61)"] { color: #9aeeba !important; }
html[data-theme="dark"] [style*="color:#B91C1C"],
html[data-theme="dark"] [style*="color: #B91C1C"],
html[data-theme="dark"] [style*="color:#b91c1c"],
html[data-theme="dark"] [style*="color: #b91c1c"],
html[data-theme="dark"] [style*="color:rgb(185, 28, 28)"],
html[data-theme="dark"] [style*="color: rgb(185, 28, 28)"] { color: #eb7a7a !important; }
html[data-theme="dark"] [style*="color:#374151"],
html[data-theme="dark"] [style*="color: #374151"],
html[data-theme="dark"] [style*="color:rgb(55, 65, 81)"],
html[data-theme="dark"] [style*="color: rgb(55, 65, 81)"] { color: #bdc5d2 !important; }
html[data-theme="dark"] [style*="color:#1457D9"],
html[data-theme="dark"] [style*="color: #1457D9"],
html[data-theme="dark"] [style*="color:#1457d9"],
html[data-theme="dark"] [style*="color: #1457d9"],
html[data-theme="dark"] [style*="color:rgb(20, 87, 217)"],
html[data-theme="dark"] [style*="color: rgb(20, 87, 217)"] { color: #6a97ee !important; }
html[data-theme="dark"] [style*="color:#64748B"],
html[data-theme="dark"] [style*="color: #64748B"],
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color: #64748b"],
html[data-theme="dark"] [style*="color:rgb(100, 116, 139)"],
html[data-theme="dark"] [style*="color: rgb(100, 116, 139)"] { color: #9ea9b9 !important; }
html[data-theme="dark"] [style*="color:#334155"],
html[data-theme="dark"] [style*="color: #334155"],
html[data-theme="dark"] [style*="color:rgb(51, 65, 85)"],
html[data-theme="dark"] [style*="color: rgb(51, 65, 85)"] { color: #bac5d6 !important; }
html[data-theme="dark"] [style*="color:#B91C1C"],
html[data-theme="dark"] [style*="color: #B91C1C"],
html[data-theme="dark"] [style*="color:#b91c1c"],
html[data-theme="dark"] [style*="color: #b91c1c"],
html[data-theme="dark"] [style*="color:rgb(185, 28, 28)"],
html[data-theme="dark"] [style*="color: rgb(185, 28, 28)"] { color: #eb7a7a !important; }
html[data-theme="dark"] [style*="color:#15803D"],
html[data-theme="dark"] [style*="color: #15803D"],
html[data-theme="dark"] [style*="color:#15803d"],
html[data-theme="dark"] [style*="color: #15803d"],
html[data-theme="dark"] [style*="color:rgb(21, 128, 61)"],
html[data-theme="dark"] [style*="color: rgb(21, 128, 61)"] { color: #9aeeba !important; }
html[data-theme="dark"] [style*="color:#0F172A"],
html[data-theme="dark"] [style*="color: #0F172A"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color: #0f172a"],
html[data-theme="dark"] [style*="color:rgb(15, 23, 42)"],
html[data-theme="dark"] [style*="color: rgb(15, 23, 42)"] { color: #ced7ed !important; }
html[data-theme="dark"] [style*="color:#111827"],
html[data-theme="dark"] [style*="color: #111827"],
html[data-theme="dark"] [style*="color:rgb(17, 24, 39)"],
html[data-theme="dark"] [style*="color: rgb(17, 24, 39)"] { color: #d1d9eb !important; }
html[data-theme="dark"] [style*="color:#475569"],
html[data-theme="dark"] [style*="color: #475569"],
html[data-theme="dark"] [style*="color:rgb(71, 85, 105)"],
html[data-theme="dark"] [style*="color: rgb(71, 85, 105)"] { color: #b0baca !important; }
html[data-theme="dark"] [style*="background:#FFF"],
html[data-theme="dark"] [style*="background: #FFF"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"] { background: #1a2130 !important; }
html[data-theme="dark"] [style*="background:#FFFFFF"],
html[data-theme="dark"] [style*="background: #FFFFFF"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"] { background: #1a2130 !important; }
html[data-theme="dark"] [style*="background:WHITE"],
html[data-theme="dark"] [style*="background: WHITE"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"] { background: #1a2130 !important; }
html[data-theme="dark"] [style*="background:#FFF8E6"],
html[data-theme="dark"] [style*="background: #FFF8E6"],
html[data-theme="dark"] [style*="background:#fff8e6"],
html[data-theme="dark"] [style*="background: #fff8e6"],
html[data-theme="dark"] [style*="background:rgb(255, 248, 230)"],
html[data-theme="dark"] [style*="background: rgb(255, 248, 230)"] { background: #45391a !important; }
html[data-theme="dark"] [style*="background:#F8FAFC"],
html[data-theme="dark"] [style*="background: #F8FAFC"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background:rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background: rgb(248, 250, 252)"] { background: #181e2c !important; }
html[data-theme="dark"] [style*="background:#F8FAFC"],
html[data-theme="dark"] [style*="background: #F8FAFC"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background:rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background: rgb(248, 250, 252)"] { background: #181e2c !important; }
html[data-theme="dark"] [style*="border-color:#FFE2A8"],
html[data-theme="dark"] [style*="border-color: #FFE2A8"],
html[data-theme="dark"] [style*="border-color:#ffe2a8"],
html[data-theme="dark"] [style*="border-color: #ffe2a8"],
html[data-theme="dark"] [style*="border-color:rgb(255, 226, 168)"],
html[data-theme="dark"] [style*="border-color: rgb(255, 226, 168)"] { border-color: #60502e !important; }
html[data-theme="dark"] [style*="background:#FEE2E2"],
html[data-theme="dark"] [style*="background: #FEE2E2"],
html[data-theme="dark"] [style*="background:#fee2e2"],
html[data-theme="dark"] [style*="background: #fee2e2"],
html[data-theme="dark"] [style*="background:rgb(254, 226, 226)"],
html[data-theme="dark"] [style*="background: rgb(254, 226, 226)"] { background: #461b1b !important; }
html[data-theme="dark"] [style*="background:#FFF7ED"],
html[data-theme="dark"] [style*="background: #FFF7ED"],
html[data-theme="dark"] [style*="background:#fff7ed"],
html[data-theme="dark"] [style*="background: #fff7ed"],
html[data-theme="dark"] [style*="background:rgb(255, 247, 237)"],
html[data-theme="dark"] [style*="background: rgb(255, 247, 237)"] { background: #43311a !important; }
html[data-theme="dark"] [style*="color:#991B1B"],
html[data-theme="dark"] [style*="color: #991B1B"],
html[data-theme="dark"] [style*="color:#991b1b"],
html[data-theme="dark"] [style*="color: #991b1b"],
html[data-theme="dark"] [style*="color:rgb(153, 27, 27)"],
html[data-theme="dark"] [style*="color: rgb(153, 27, 27)"] { color: #eb8d8d !important; }
html[data-theme="dark"] [style*="color:#9A3412"],
html[data-theme="dark"] [style*="color: #9A3412"],
html[data-theme="dark"] [style*="color:#9a3412"],
html[data-theme="dark"] [style*="color: #9a3412"],
html[data-theme="dark"] [style*="color:rgb(154, 52, 18)"],
html[data-theme="dark"] [style*="color: rgb(154, 52, 18)"] { color: #f1a48a !important; }
html[data-theme="dark"] [style*="border-color:#FECACA"],
html[data-theme="dark"] [style*="border-color: #FECACA"],
html[data-theme="dark"] [style*="border-color:#fecaca"],
html[data-theme="dark"] [style*="border-color: #fecaca"],
html[data-theme="dark"] [style*="border-color:rgb(254, 202, 202)"],
html[data-theme="dark"] [style*="border-color: rgb(254, 202, 202)"] { border-color: #582b2b !important; }
html[data-theme="dark"] [style*="border-color:#BFDBFE"],
html[data-theme="dark"] [style*="border-color: #BFDBFE"],
html[data-theme="dark"] [style*="border-color:#bfdbfe"],
html[data-theme="dark"] [style*="border-color: #bfdbfe"],
html[data-theme="dark"] [style*="border-color:rgb(191, 219, 254)"],
html[data-theme="dark"] [style*="border-color: rgb(191, 219, 254)"] { border-color: #2c415b !important; }
html[data-theme="dark"] [style*="background:#FFF1F2"],
html[data-theme="dark"] [style*="background: #FFF1F2"],
html[data-theme="dark"] [style*="background:#fff1f2"],
html[data-theme="dark"] [style*="background: #fff1f2"],
html[data-theme="dark"] [style*="background:rgb(255, 241, 242)"],
html[data-theme="dark"] [style*="background: rgb(255, 241, 242)"] { background: #171d2b !important; }
html[data-theme="dark"] [style*="background:#EFF6FF"],
html[data-theme="dark"] [style*="background: #EFF6FF"],
html[data-theme="dark"] [style*="background:#eff6ff"],
html[data-theme="dark"] [style*="background: #eff6ff"],
html[data-theme="dark"] [style*="background:rgb(239, 246, 255)"],
html[data-theme="dark"] [style*="background: rgb(239, 246, 255)"] { background: #192c43 !important; }
html[data-theme="dark"] [style*="color:#1E3A8A"],
html[data-theme="dark"] [style*="color: #1E3A8A"],
html[data-theme="dark"] [style*="color:#1e3a8a"],
html[data-theme="dark"] [style*="color: #1e3a8a"],
html[data-theme="dark"] [style*="color:rgb(30, 58, 138)"],
html[data-theme="dark"] [style*="color: rgb(30, 58, 138)"] { color: #96abe8 !important; }
html[data-theme="dark"] [style*="background:#111827"],
html[data-theme="dark"] [style*="background: #111827"],
html[data-theme="dark"] [style*="background:rgb(17, 24, 39)"],
html[data-theme="dark"] [style*="background: rgb(17, 24, 39)"] { background: #374666 !important; }
