QSS = """
QWidget {
  font-family: "Cambria Math", "Segoe UI Symbol", "Segoe UI Emoji", "DejaVu Sans", "Segoe UI";
  font-size: 9pt;
  color: #2F2F2F;
}

QMainWindow {
  background: #F6F8F7;
}

QFrame#Header {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EA;
}

QFrame#Sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E5E7EA;
}

QPushButton {
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  padding: 1px 7px;
  min-height: 20px;
  background: #FFFFFF;
}

QPushButton:hover { background: #E0E0E0; }

QPushButton#Primary {
  background: #4FAF7A;
  color: #FFFFFF;
  border: 1px solid #449C6E;
}
QPushButton#Primary:hover { background: #459E6E; }

QPushButton#Danger {
  background: #FFA8A8;
  color: #FFFFFF;
  border: 1px solid #E59494;
}
QPushButton#Danger:hover { background: #E59494; }

QPushButton#Warn {
  background: #FFD8A8;
  color: #8E6129;
  border: 1px solid #E5BF90;
}
QPushButton#Warn:hover { background: #E5BF90; }

QLineEdit, QTextEdit, QComboBox, QDateEdit, QDoubleSpinBox {
  background: #FFFFFF;
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  padding: 2px 6px;
}

QTabBar::tab {
  font-size: 12pt;
  padding: 3px 8px;
  background: #EBEBEB;
  border: 1px solid #D5D8DC;
  border-bottom: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  margin-right: 2px;
}
QTabBar::tab:hover { background: #DCDCDC; }
QTabBar::tab:selected { background: #C9C9C9; color: #111827; font-weight: 700; }

QTableWidget, QTableView {
  background: #FFFFFF;
  border: 1px solid #E5E7EA;
  border-radius: 6px;
  gridline-color: #E0E0E0;
}
QHeaderView::section {
  background: #E0E0E0;
  border: none;
  padding: 3px 4px;
  font-size: 9pt;
  font-weight: 600;
}
QTableWidget::item, QTableView::item { padding: 1px; }
QTableWidget::item:selected, QTableView::item:selected { background: #D2F2DC; }

QPushButton#NavButton {
  border: none;
  border-radius: 4px;
  text-align: left;
  padding: 6px 10px;
  background: transparent;
}
QPushButton#NavButton:hover { background: #E0E0E0; }

QPushButton#NavButton[active="true"] {
  background: #D2F2DC;
  border-left: 4px solid #4FAF7A;
  padding-left: 8px;
}
"""
