/* Base font and colors */ QWidget { font-size: 12px; color: #111827; /* force dark text regardless of system theme */ } QMainWindow { background: #f7f8fa; } /* Toolbar */ QToolBar { background: #ffffff; border-bottom: 1px solid #e5e7eb; padding: 4px; spacing: 6px; color: #111827; } /* Group boxes */ QGroupBox { margin-top: 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #ffffff; color: #111827; } QGroupBox::title { subcontrol-origin: margin; left: 8px; padding: 0 4px; color: #374151; } /* Inputs */ QLineEdit, QComboBox, QSpinBox { background: #ffffff; border: 1px solid #d1d5db; border-radius: 4px; padding: 6px 8px; color: #111827; } QLineEdit:read-only { background: #f3f4f6; color: #6b7280; } QComboBox::drop-down { border: none; } /* Buttons */ QPushButton { background: #2563eb; color: white; border: none; border-radius: 6px; padding: 6px 12px; } QPushButton:hover { background: #1d4ed8; } QPushButton:disabled { background: #9ca3af; } /* Tabs */ QTabWidget::pane { border: 1px solid #e5e7eb; top: -1px; background: #ffffff; } QTabBar::tab { padding: 6px 12px; border: 1px solid #e5e7eb; border-bottom: none; background: #f9fafb; color: #111827; } QTabBar::tab:selected { background: #ffffff; } /* Tables */ QHeaderView::section { background: #f3f4f6; padding: 6px; border: 1px solid #e5e7eb; color: #111827; } QTableWidget { gridline-color: #e5e7eb; background: #ffffff; color: #111827; } /* Scroll areas should blend in */ QScrollArea { background: transparent; border: none; color: #111827; } /* Menu bar & menus */ QMenuBar { background: #ffffff; color: #111827; } QMenuBar::item:selected { background: #e5e7eb; } QMenu { background: #ffffff; color: #111827; border: 1px solid #e5e7eb; } QMenu::item:selected { background: #e5e7eb; } /* Status bar */ QStatusBar { background: #ffffff; border-top: 1px solid #e5e7eb; color: #111827; }