
html[data-theme="light"] {
  color-scheme: light;
  --bg:#edf3fa;
  --surface:#ffffff;
  --surface-2:#f6f9fd;
  --panel:#ffffff;
  --line:rgba(47,78,118,.13);
  --border:rgba(47,78,118,.14);
  --text:#142238;
  --muted:#60748f;
  --primary:#236fdc;
  --primary-2:#488def;
  --accent:#119d71;
  --danger:#dc3f5b;
  --shadow:0 20px 55px rgba(36,61,94,.12);
}

html[data-theme="light"] body,
html[data-theme="light"] .background,
html[data-theme="light"] .ambient {
  background:#edf3fa !important;
  color:#142238 !important;
}

html[data-theme="light"] .grid-overlay {
  opacity:.08 !important;
  filter:invert(1);
}

html[data-theme="light"] .sidebar {
  background:#fff !important;
  border-color:rgba(43,73,111,.12) !important;
  box-shadow:12px 0 35px rgba(38,62,93,.06) !important;
}

html[data-theme="light"] .sidebar .logo h2,
html[data-theme="light"] .sidebar strong,
html[data-theme="light"] .sidebar b,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] strong,
html[data-theme="light"] b {
  color:#142238 !important;
}

html[data-theme="light"] .sidebar .menu {
  color:#627691 !important;
}

html[data-theme="light"] .sidebar .menu:hover {
  color:#1e5fab !important;
  background:#edf4ff !important;
}

html[data-theme="light"] .sidebar .menu.active {
  color:#1558ad !important;
  background:linear-gradient(135deg,#e4efff,#eef5ff) !important;
  border-color:rgba(44,119,224,.19) !important;
}

html[data-theme="light"] p,
html[data-theme="light"] small {
  color:#60748f;
}

html[data-theme="light"] .eyebrow {
  color:#3973b7 !important;
}

html[data-theme="light"] .clock-card,
html[data-theme="light"] .user-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .warehouse-stats article,
html[data-theme="light"] .category-card,
html[data-theme="light"] .inventory-card,
html[data-theme="light"] .event-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .qualification-card,
html[data-theme="light"] .dispatch-card,
html[data-theme="light"] .document-card,
html[data-theme="light"] .calendar-panel {
  background:rgba(255,255,255,.97) !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 13px 35px rgba(36,61,94,.07) !important;
}

html[data-theme="light"] .hero,
html[data-theme="light"] .warehouse-hero,
html[data-theme="light"] .settings-hero,
html[data-theme="light"] .users-hero-panel,
html[data-theme="light"] .calendar-hero,
html[data-theme="light"] .teams-hero,
html[data-theme="light"] .dispatch-hero,
html[data-theme="light"] .documents-hero {
  background:
    radial-gradient(circle at 86% 15%,rgba(61,132,229,.15),transparent 35%),
    linear-gradient(135deg,#fff,#eaf3ff) !important;
  border-color:rgba(47,105,184,.17) !important;
  box-shadow:0 20px 55px rgba(36,61,94,.10) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .field-control input,
html[data-theme="light"] .password-field,
html[data-theme="light"] .search-box,
html[data-theme="light"] .reset-field {
  background:#f7faff !important;
  color:#142238 !important;
  border-color:rgba(47,78,118,.16) !important;
}

html[data-theme="light"] option {
  background:#fff;
  color:#142238;
}

html[data-theme="light"] .modal-card,
html[data-theme="light"] .drawer-panel,
html[data-theme="light"] .reset-password-card,
html[data-theme="light"] .activation-card {
  background:
    radial-gradient(circle at 88% 4%,rgba(65,136,244,.11),transparent 34%),
    #fff !important;
  color:#142238 !important;
  border-color:rgba(47,78,118,.15) !important;
  box-shadow:0 35px 100px rgba(36,61,94,.22) !important;
}

html[data-theme="light"] .detail-box,
html[data-theme="light"] .mini-row,
html[data-theme="light"] .security-list>div,
html[data-theme="light"] .info-grid>div,
html[data-theme="light"] .profile-summary,
html[data-theme="light"] .alert-row,
html[data-theme="light"] .meta-pill,
html[data-theme="light"] .breadcrumb {
  background:#f3f7fc !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .close-button,
html[data-theme="light"] .drawer-actions button {
  background:#f4f8fd !important;
  color:#385675 !important;
  border-color:rgba(47,78,118,.14) !important;
}

html[data-theme="light"] .toast {
  background:#fff !important;
  color:#142238 !important;
  border-color:rgba(47,78,118,.14) !important;
  box-shadow:0 20px 55px rgba(36,61,94,.18) !important;
}

html[data-theme="light"] .login-card {
  background:linear-gradient(165deg,rgba(255,255,255,.98),rgba(244,248,253,.98)) !important;
  border-color:rgba(47,78,118,.14) !important;
  box-shadow:0 30px 80px rgba(36,61,94,.18) !important;
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .security-note {
  background:rgba(255,255,255,.62) !important;
  border-color:rgba(47,78,118,.11) !important;
}

body,.sidebar,.panel,.settings-card,.stat-card,.clock-card,.user-card,
.category-card,.inventory-card,.modal-card,.drawer-panel,.login-card,
input,select,textarea {
  transition:background-color .22s ease,border-color .22s ease,
    color .16s ease,box-shadow .22s ease !important;
}


/* =========================================================
   TRYB JASNY — PEŁNE POKRYCIE V3
   ========================================================= */

html[data-theme="light"] {
    background: #edf3fa !important;
}

html[data-theme="light"] body::before,
html[data-theme="light"] body::after {
    background: transparent !important;
}

html[data-theme="light"] .quick-grid button,
html[data-theme="light"] .overview-list > div,
html[data-theme="light"] .event-row,
html[data-theme="light"] .person-row,
html[data-theme="light"] .activity-row,
html[data-theme="light"] .coverage-row,
html[data-theme="light"] .qualification-reminder,
html[data-theme="light"] .document-tile,
html[data-theme="light"] .team-row,
html[data-theme="light"] .dispatch-row,
html[data-theme="light"] .status-option,
html[data-theme="light"] .member-row,
html[data-theme="light"] .form-section,
html[data-theme="light"] .content-card {
    background: #f5f8fc !important;
    color: #142238 !important;
    border-color: rgba(47,78,118,.11) !important;
}

html[data-theme="light"] .quick-grid button:hover,
html[data-theme="light"] .event-row:hover,
html[data-theme="light"] .person-row:hover,
html[data-theme="light"] .activity-row:hover {
    background: #eaf2fd !important;
}

html[data-theme="light"] .quick-grid button b,
html[data-theme="light"] .quick-grid button strong,
html[data-theme="light"] .overview-list p,
html[data-theme="light"] .overview-list b,
html[data-theme="light"] .row-main b,
html[data-theme="light"] .row-main strong {
    color: #17263b !important;
}

html[data-theme="light"] .quick-grid button small,
html[data-theme="light"] .overview-list p small,
html[data-theme="light"] .row-main small,
html[data-theme="light"] .person-time {
    color: #657a95 !important;
}

html[data-theme="light"] .icon-link {
    background: #edf4fd !important;
    color: #276fcf !important;
    border-color: rgba(47,78,118,.13) !important;
}

html[data-theme="light"] .skeleton-row,
html[data-theme="light"] .inventory-skeleton {
    background:
      linear-gradient(
        90deg,
        #edf2f8 25%,
        #f8fbff 40%,
        #edf2f8 60%
      ) !important;
    background-size: 300% 100% !important;
}

html[data-theme="light"] .person-avatar,
html[data-theme="light"] .avatar,
html[data-theme="light"] .profile-avatar {
    color: #ffffff !important;
}

html[data-theme="light"] .overview-icon,
html[data-theme="light"] .activity-icon,
html[data-theme="light"] .date-box {
    background: #e5effd !important;
    color: #2d76d7 !important;
}

html[data-theme="light"] .live-pill,
html[data-theme="light"] .online-count,
html[data-theme="light"] .secure-pill {
    color: #167b5c !important;
}

html[data-theme="light"] .documents-shell,
html[data-theme="light"] .dashboard-shell,
html[data-theme="light"] .warehouse-shell,
html[data-theme="light"] .settings-shell,
html[data-theme="light"] .app-main,
html[data-theme="light"] .history-main,
html[data-theme="light"] main {
    background: transparent !important;
}

html[data-theme="light"] .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Brak błysku ciemnego tła przy zmianie i przeładowaniu */
html[data-theme="light"] *,
html[data-theme="light"] *::before,
html[data-theme="light"] *::after {
    transition-property:
      background-color,
      border-color,
      color,
      box-shadow,
      fill,
      stroke !important;
}

/* Menu w trybie jasnym nie zmienia rozmiaru podczas aktywacji */
html[data-theme="light"] .menu,
html[data-theme="light"] .logout {
    min-height: 46px !important;
    max-height: 46px !important;
    flex-basis: 46px !important;
}


/* =========================================================
   LIGHT MODE V4 FINAL — KALENDARZ, UŻYTKOWNICY, ZESPOŁY, KPP
   ========================================================= */

/* KALENDARZ */
html[data-theme="light"] .calendar-hero,
html[data-theme="light"] .calendar-hero-panel,
html[data-theme="light"] .calendar-shell header,
html[data-theme="light"] .calendar-shell .top-hero {
  background:linear-gradient(135deg,#ffffff,#edf5ff) !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 18px 48px rgba(36,61,94,.09) !important;
}

html[data-theme="light"] .calendar-hero h1,
html[data-theme="light"] .calendar-hero h2,
html[data-theme="light"] .calendar-shell header h1,
html[data-theme="light"] .calendar-shell header h2 {
  color:#142238 !important;
}

html[data-theme="light"] .calendar-hero p,
html[data-theme="light"] .calendar-shell header p {
  color:#627690 !important;
}

html[data-theme="light"] .stats article,
html[data-theme="light"] .calendar-stat-card,
html[data-theme="light"] .calendar-stats article {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.12) !important;
  box-shadow:0 12px 30px rgba(36,61,94,.07) !important;
}

html[data-theme="light"] .stats article strong,
html[data-theme="light"] .calendar-stat-copy>strong {
  color:#17263b !important;
}

html[data-theme="light"] .stats article small,
html[data-theme="light"] .calendar-stat-copy>span,
html[data-theme="light"] .calendar-stat-copy>small {
  color:#667b96 !important;
}

html[data-theme="light"] .toolbar,
html[data-theme="light"] .calendar-toolbar,
html[data-theme="light"] .calendar-filter-bar {
  background:#ffffff !important;
  border:1px solid rgba(47,78,118,.12) !important;
  box-shadow:0 10px 28px rgba(36,61,94,.06) !important;
}

html[data-theme="light"] .search,
html[data-theme="light"] .calendar-search {
  background:#f6f9fd !important;
  border-color:rgba(47,78,118,.14) !important;
}

html[data-theme="light"] .search input,
html[data-theme="light"] .calendar-search input {
  color:#142238 !important;
}

html[data-theme="light"] .filter,
html[data-theme="light"] .view-switch button,
html[data-theme="light"] .calendar-view-toggle button {
  background:#f4f8fd !important;
  color:#58708e !important;
  border-color:rgba(47,78,118,.12) !important;
}

html[data-theme="light"] .filter.active,
html[data-theme="light"] .view-switch button.active,
html[data-theme="light"] .calendar-view-toggle button.active {
  background:#e7f0ff !important;
  color:#2167c7 !important;
  border-color:rgba(41,111,211,.28) !important;
}

html[data-theme="light"] .calendar-panel,
html[data-theme="light"] .event-details {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 16px 42px rgba(36,61,94,.08) !important;
}

html[data-theme="light"] .calendar-header {
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .calendar-header h2,
html[data-theme="light"] .details-head h2,
html[data-theme="light"] .details-placeholder h3 {
  color:#17263b !important;
}

html[data-theme="light"] .calendar-weekdays {
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .calendar-weekdays span {
  color:#7a8ea9 !important;
  border-color:rgba(47,78,118,.08) !important;
}

html[data-theme="light"] .calendar-grid {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.11) !important;
}

html[data-theme="light"] .calendar-day {
  background:#fbfdff !important;
  border-color:rgba(47,78,118,.09) !important;
  color:#17263b !important;
}

html[data-theme="light"] .calendar-day:hover {
  background:#f2f7fd !important;
}

html[data-theme="light"] .calendar-day.other-month {
  background:#f6f8fb !important;
  opacity:.68 !important;
}

html[data-theme="light"] .calendar-day.today {
  background:#fff3f4 !important;
}

html[data-theme="light"] .day-number {
  color:#17263b !important;
}

html[data-theme="light"] .details-placeholder,
html[data-theme="light"] .details-info,
html[data-theme="light"] .event-detail-row {
  color:#60748f !important;
}

html[data-theme="light"] .details-info,
html[data-theme="light"] .event-detail-row {
  background:#f5f8fc !important;
  border-color:rgba(47,78,118,.09) !important;
}

/* UŻYTKOWNICY — KWALIFIKACJE */
html[data-theme="light"] .qualifications-center {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 18px 48px rgba(36,61,94,.09) !important;
}

html[data-theme="light"] .qualifications-center-head h2,
html[data-theme="light"] .qualification-panel-title,
html[data-theme="light"] .competency-matrix-panel h3 {
  color:#17263b !important;
}

html[data-theme="light"] .qualifications-center-head p {
  color:#657a95 !important;
}

html[data-theme="light"] .qualification-summary-grid article,
html[data-theme="light"] .qualification-dashboard-grid>article,
html[data-theme="light"] .qualification-dashboard-grid>section,
html[data-theme="light"] .qualification-reminders-panel,
html[data-theme="light"] .competency-coverage-panel,
html[data-theme="light"] .competency-matrix-panel,
html[data-theme="light"] .qualification-panel {
  background:#f7faff !important;
  border-color:rgba(47,78,118,.11) !important;
  box-shadow:none !important;
}

html[data-theme="light"] .qualification-summary-grid strong,
html[data-theme="light"] .qualification-dashboard-grid strong,
html[data-theme="light"] .coverage-label strong {
  color:#17263b !important;
}

html[data-theme="light"] .qualification-summary-grid small,
html[data-theme="light"] .qualification-dashboard-grid small,
html[data-theme="light"] .qualification-reminder p,
html[data-theme="light"] .qualification-reminder span {
  color:#677c97 !important;
}

html[data-theme="light"] .qualification-reminder,
html[data-theme="light"] .coverage-row {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .coverage-bar {
  background:#dfe8f4 !important;
}

html[data-theme="light"] .competency-matrix-wrap {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .competency-matrix th {
  background:#edf3fa !important;
  color:#60748f !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .competency-matrix td {
  background:#ffffff !important;
  color:#263b56 !important;
  border-color:rgba(47,78,118,.09) !important;
}

html[data-theme="light"] .competency-matrix tr:nth-child(even) td {
  background:#f8fbfe !important;
}

/* ZESPOŁY */
html[data-theme="light"] .teams-panel,
html[data-theme="light"] .teams-list-panel,
html[data-theme="light"] .active-teams-panel {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 16px 42px rgba(36,61,94,.08) !important;
}

html[data-theme="light"] .teams-panel h2,
html[data-theme="light"] .teams-panel h3,
html[data-theme="light"] .panel-head h2,
html[data-theme="light"] .panel-head h3 {
  color:#17263b !important;
}

html[data-theme="light"] .teams-grid,
html[data-theme="light"] .teams-list,
html[data-theme="light"] .empty-team-state,
html[data-theme="light"] .teams-empty-state,
html[data-theme="light"] .empty-state {
  background:#f7faff !important;
  border-color:rgba(47,78,118,.10) !important;
  color:#667b96 !important;
}

html[data-theme="light"] .team-item {
  background:linear-gradient(160deg,#ffffff,#f5f9fe) !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 12px 32px rgba(36,61,94,.07) !important;
}

html[data-theme="light"] .team-title h3,
html[data-theme="light"] .team-data-item strong,
html[data-theme="light"] .active-team-copy strong {
  color:#17263b !important;
}

html[data-theme="light"] .team-title p,
html[data-theme="light"] .team-data-item span,
html[data-theme="light"] .team-code-panel span,
html[data-theme="light"] .active-team-copy span,
html[data-theme="light"] .active-team-copy small {
  color:#667b96 !important;
}

html[data-theme="light"] .team-data-item,
html[data-theme="light"] .team-code-panel,
html[data-theme="light"] .active-team-summary {
  background:#f3f7fc !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .team-action-button,
html[data-theme="light"] .copy-code-button {
  background:#edf4fd !important;
  color:#3974bf !important;
  border-color:rgba(47,78,118,.12) !important;
}

/* KARTA KPP */
html[data-theme="light"] .kpp-form {
  color:#17263b !important;
}

html[data-theme="light"] .progress-panel,
html[data-theme="light"] .form-section {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.13) !important;
  box-shadow:0 14px 38px rgba(36,61,94,.10) !important;
  backdrop-filter:none !important;
}

html[data-theme="light"] .progress-info strong,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .section-heading h3,
html[data-theme="light"] .form-section label,
html[data-theme="light"] .form-section strong {
  color:#17263b !important;
}

html[data-theme="light"] .progress-info span,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .field-hint,
html[data-theme="light"] .form-section small {
  color:#667b96 !important;
}

html[data-theme="light"] .progress-track {
  background:#e3ebf5 !important;
}

html[data-theme="light"] .section-heading {
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .section-icon {
  background:linear-gradient(135deg,#ffe8ec,#e8f2ff) !important;
}

html[data-theme="light"] .form-section input,
html[data-theme="light"] .form-section select,
html[data-theme="light"] .form-section textarea,
html[data-theme="light"] .modal-card input,
html[data-theme="light"] .modal-card select,
html[data-theme="light"] .modal-card textarea {
  background:#f8fbff !important;
  color:#17263b !important;
  border-color:rgba(47,78,118,.15) !important;
  box-shadow:none !important;
}

html[data-theme="light"] .form-section input:focus,
html[data-theme="light"] .form-section select:focus,
html[data-theme="light"] .form-section textarea:focus {
  background:#ffffff !important;
  border-color:#4a8eea !important;
  box-shadow:0 0 0 4px rgba(49,119,220,.10) !important;
}

html[data-theme="light"] .avpu-option,
html[data-theme="light"] .selection-card,
html[data-theme="light"] .vital-card,
html[data-theme="light"] .conditional-panel,
html[data-theme="light"] .consent-box,
html[data-theme="light"] .confirmation-box,
html[data-theme="light"] .material-add-panel,
html[data-theme="light"] .preview-section,
html[data-theme="light"] .preview-item {
  background:#f6f9fd !important;
  border-color:rgba(47,78,118,.11) !important;
  color:#17263b !important;
}

html[data-theme="light"] .avpu-option:hover,
html[data-theme="light"] .selection-card:hover,
html[data-theme="light"] .vital-card:hover {
  background:#edf4fc !important;
}

html[data-theme="light"] .avpu-letter,
html[data-theme="light"] .selection-check,
html[data-theme="light"] .vital-icon {
  background:#e8f1fd !important;
  border-color:rgba(47,78,118,.12) !important;
  color:#2d72cf !important;
}

html[data-theme="light"] .selection-label,
html[data-theme="light"] .avpu-option strong,
html[data-theme="light"] .vital-card label {
  color:#17263b !important;
}

html[data-theme="light"] .materials-table-wrapper {
  background:#ffffff !important;
  border-color:rgba(47,78,118,.12) !important;
}

html[data-theme="light"] .materials-table th {
  background:#edf3fa !important;
  color:#3f6d9f !important;
  border-color:rgba(47,78,118,.10) !important;
}

html[data-theme="light"] .materials-table td {
  background:#ffffff !important;
  color:#263b56 !important;
  border-color:rgba(47,78,118,.09) !important;
}

html[data-theme="light"] .materials-table tbody tr:nth-child(even) td {
  background:#f8fbfe !important;
}

html[data-theme="light"] .empty-row td {
  color:#667b96 !important;
}

html[data-theme="light"] .modal-overlay {
  background:rgba(44,61,83,.42) !important;
}

/* Usunięcie resztek ciemnych gradientów i prześwitów w jasnym motywie */
html[data-theme="light"] .calendar-panel::before,
html[data-theme="light"] .event-details::before,
html[data-theme="light"] .qualifications-center::before,
html[data-theme="light"] .teams-panel::before,
html[data-theme="light"] .form-section::before {
  opacity:0 !important;
}

html[data-theme="light"] .reveal,
html[data-theme="light"] .form-section,
html[data-theme="light"] .progress-panel {
  animation:none !important;
  opacity:1 !important;
  transform:none !important;
}


/* ===== LIGHT MODE FIX V4.1 - KARTA KPP BUTTONS ===== */

html[data-theme="light"] #previewButton,
html[data-theme="light"] #generatePdfButton,
html[data-theme="light"] .header-actions button,
html[data-theme="light"] .top-actions button{
    color:#ffffff !important;
    border:0 !important;
}

html[data-theme="light"] #previewButton{
    background:#475569 !important;
}

html[data-theme="light"] #generatePdfButton{
    background:linear-gradient(135deg,#ec4899,#ef4444) !important;
}

html[data-theme="light"] #previewButton .material-icons-round,
html[data-theme="light"] #generatePdfButton .material-icons-round{
    color:#ffffff !important;
}

html[data-theme="light"] .card-header,
html[data-theme="light"] .page-header{
    color:#1f2937 !important;
}


/* ===== REAL FIX KPP LIGHT MODE ===== */

html[data-theme="light"] .secondary-button{
    background:#475569 !important;
    border:1px solid #475569 !important;
    color:#ffffff !important;
}

html[data-theme="light"] .secondary-button:hover{
    background:#334155 !important;
    color:#ffffff !important;
}

html[data-theme="light"] .secondary-button *,
html[data-theme="light"] .secondary-button .material-icons-round,
html[data-theme="light"] #previewButton,
html[data-theme="light"] #generatePdfButton{
    color:#ffffff !important;
}

html[data-theme="light"] #generatePdfButton{
    background:linear-gradient(135deg,#ec4899,#ef4444) !important;
    border:none !important;
}

html[data-theme="light"] .primary-button{
    color:#ffffff !important;
}



/* =========================================================
   SYSTEM e-PSR — LIGHT MODE V5 CLEANUP
   Poprawki elementów widocznych na zrzutach ekranu
   ========================================================= */

/* ---------- KALENDARZ ---------- */

html[data-theme="light"] .calendar-title {
    background:
        radial-gradient(circle at 88% 10%, rgba(79, 139, 236, .13), transparent 34%),
        linear-gradient(135deg, #ffffff, #eef5ff) !important;
    border: 1px solid rgba(50, 92, 148, .14) !important;
    box-shadow: 0 18px 45px rgba(41, 66, 98, .09) !important;
}

html[data-theme="light"] .calendar-title h1,
html[data-theme="light"] .calendar-title h2,
html[data-theme="light"] .calendar-title p {
    color: #15243a !important;
}

html[data-theme="light"] .calendar-title .page-kicker {
    color: #2e75d5 !important;
}

html[data-theme="light"] .calendar-title .header-actions .secondary,
html[data-theme="light"] .calendar-title .header-actions .primary {
    color: #ffffff !important;
}

html[data-theme="light"] .calendar-title .header-actions .secondary {
    background: #43546b !important;
    border-color: #43546b !important;
}

html[data-theme="light"] .calendar-title .profile {
    background: #ffffff !important;
    color: #17263b !important;
    border: 1px solid rgba(49, 78, 117, .14) !important;
    box-shadow: 0 10px 25px rgba(40, 65, 97, .08) !important;
}

html[data-theme="light"] .calendar-title .profile strong,
html[data-theme="light"] .calendar-title .profile small {
    color: #17263b !important;
}

html[data-theme="light"] .toolbar {
    background: #ffffff !important;
    border: 1px solid rgba(49, 78, 117, .13) !important;
    box-shadow: 0 11px 28px rgba(40, 65, 97, .07) !important;
}

html[data-theme="light"] .toolbar .filter,
html[data-theme="light"] .toolbar .view-button {
    background: #f2f6fb !important;
    color: #536b89 !important;
    border-color: rgba(49, 78, 117, .12) !important;
}

html[data-theme="light"] .toolbar .filter.active,
html[data-theme="light"] .toolbar .view-button.active {
    background: #e6f0ff !important;
    color: #246dce !important;
    border-color: rgba(52, 118, 216, .24) !important;
}

html[data-theme="light"] .event-details,
html[data-theme="light"] .details-placeholder {
    background: #ffffff !important;
    color: #17263b !important;
    border-color: rgba(49, 78, 117, .13) !important;
}

html[data-theme="light"] .details-placeholder h3,
html[data-theme="light"] .details-placeholder p {
    color: #536b89 !important;
}

/* ---------- UŻYTKOWNICY ---------- */

html[data-theme="light"] .users-cards .user-card,
html[data-theme="light"] #usersCards > article,
html[data-theme="light"] #usersCards > .user-card {
    background: linear-gradient(145deg, #ffffff, #f4f8fd) !important;
    color: #17263b !important;
    border-color: rgba(49, 78, 117, .13) !important;
    box-shadow: 0 13px 30px rgba(40, 65, 97, .09) !important;
}

html[data-theme="light"] .user-card-identity h3,
html[data-theme="light"] .user-card-identity p,
html[data-theme="light"] .user-card-footer,
html[data-theme="light"] .user-card-footer strong,
html[data-theme="light"] .user-card-footer small {
    color: #17263b !important;
}

html[data-theme="light"] .user-info-box,
html[data-theme="light"] .user-groups-box,
html[data-theme="light"] .user-card .info-box,
html[data-theme="light"] .user-card .group-box {
    background: #eef4fb !important;
    color: #38516f !important;
    border-color: rgba(49, 78, 117, .10) !important;
}

html[data-theme="light"] .user-card-actions .groups-btn {
    background: #edf3fa !important;
    color: #3e5877 !important;
    border-color: rgba(49, 78, 117, .14) !important;
}

html[data-theme="light"] .users-toolbar select,
html[data-theme="light"] .users-filters select,
html[data-theme="light"] #roleFilter,
html[data-theme="light"] #statusFilter {
    background: #ffffff !important;
    color: #233852 !important;
    border-color: rgba(49, 78, 117, .15) !important;
}

/* ---------- ZESPOŁY ---------- */

html[data-theme="light"] .hero-visual {
    background: linear-gradient(145deg, #eef5ff, #dceaff) !important;
    border-color: rgba(52, 118, 216, .18) !important;
    box-shadow: 0 16px 35px rgba(40, 65, 97, .11) !important;
}

html[data-theme="light"] .pulse-orbit {
    background: rgba(58, 126, 225, .10) !important;
    border-color: rgba(58, 126, 225, .18) !important;
}

html[data-theme="light"] .active-team-summary,
html[data-theme="light"] .active-team-copy {
    background: #ffffff !important;
    color: #17263b !important;
    border-color: rgba(49, 78, 117, .13) !important;
}

html[data-theme="light"] .active-team-summary strong,
html[data-theme="light"] .active-team-summary span,
html[data-theme="light"] .active-team-copy strong,
html[data-theme="light"] .active-team-copy small {
    color: #17263b !important;
}

html[data-theme="light"] .teams-loading,
html[data-theme="light"] .teams-empty {
    background: #f4f8fd !important;
    color: #526b89 !important;
    border: 1px dashed rgba(49, 78, 117, .16) !important;
}

html[data-theme="light"] .teams-empty strong,
html[data-theme="light"] .teams-empty p,
html[data-theme="light"] .teams-empty small,
html[data-theme="light"] .teams-loading strong,
html[data-theme="light"] .teams-loading p {
    color: #526b89 !important;
}

/* ---------- DYSPOZYTORNIA ---------- */

html[data-theme="light"] .profile-card {
    background: #ffffff !important;
    color: #17263b !important;
    border: 1px solid rgba(49, 78, 117, .14) !important;
    box-shadow: 0 12px 28px rgba(40, 65, 97, .09) !important;
}

html[data-theme="light"] .profile-card strong,
html[data-theme="light"] .profile-card small,
html[data-theme="light"] .profile-copy strong,
html[data-theme="light"] .profile-copy small {
    color: #17263b !important;
}

html[data-theme="light"] .topbar-actions .secondary-button {
    background: #ffffff !important;
    color: #35516f !important;
    border-color: rgba(49, 78, 117, .14) !important;
}

html[data-theme="light"] .topbar-actions .primary-button {
    color: #ffffff !important;
}

html[data-theme="light"] .teams-filters {
    background: #f3f7fc !important;
    border-color: rgba(49, 78, 117, .11) !important;
}

html[data-theme="light"] .teams-filters .search-field,
html[data-theme="light"] .teams-filters select {
    background: #ffffff !important;
    color: #233852 !important;
    border-color: rgba(49, 78, 117, .14) !important;
}

html[data-theme="light"] .dispatcher-layout .panel,
html[data-theme="light"] .dispatches-panel,
html[data-theme="light"] .teams-panel {
    background: #ffffff !important;
    border-color: rgba(49, 78, 117, .13) !important;
}

html[data-theme="light"] .dispatcher-layout .empty-state {
    background: #f5f8fc !important;
    color: #536b89 !important;
}

/* ---------- KARTA KPP ---------- */

html[data-theme="light"] .topbar-actions .secondary-button,
html[data-theme="light"] .topbar-actions button.secondary-button,
html[data-theme="light"] button.secondary-button {
    background: #45586f !important;
    color: #ffffff !important;
    border: 1px solid #45586f !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] .topbar-actions .primary-button,
html[data-theme="light"] .topbar-actions button.primary-button,
html[data-theme="light"] button.primary-button {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] .topbar-actions .secondary-button *,
html[data-theme="light"] .topbar-actions .primary-button *,
html[data-theme="light"] button.secondary-button *,
html[data-theme="light"] button.primary-button * {
    color: #ffffff !important;
    fill: currentColor !important;
}

html[data-theme="light"] #previewButton,
html[data-theme="light"] #generatePdfButton,
html[data-theme="light"] #previewBtn,
html[data-theme="light"] #pdfButton {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] #previewButton,
html[data-theme="light"] #previewBtn {
    background: #45586f !important;
    border-color: #45586f !important;
}

html[data-theme="light"] #generatePdfButton,
html[data-theme="light"] #pdfButton {
    background: linear-gradient(135deg, #d93b87, #ed405c) !important;
    border-color: transparent !important;
}

html[data-theme="light"] .save-status {
    background: #e8f6ef !important;
    color: #167b5c !important;
    border-color: rgba(22, 123, 92, .14) !important;
}

html[data-theme="light"] .progress-panel {
    background: #ffffff !important;
    color: #17263b !important;
    border-color: rgba(49, 78, 117, .13) !important;
}

html[data-theme="light"] .progress-track {
    background: #e5edf7 !important;
}

html[data-theme="light"] .kpp-form .form-section {
    background: #ffffff !important;
    color: #17263b !important;
    border-color: rgba(49, 78, 117, .13) !important;
    box-shadow: 0 13px 30px rgba(40, 65, 97, .08) !important;
}

html[data-theme="light"] .kpp-form .section-heading,
html[data-theme="light"] .kpp-form .section-heading h2,
html[data-theme="light"] .kpp-form .section-heading h3,
html[data-theme="light"] .kpp-form .section-heading p {
    color: #17263b !important;
}

html[data-theme="light"] .consent-box,
html[data-theme="light"] .avpu-option,
html[data-theme="light"] .symptom-option,
html[data-theme="light"] .procedure-option,
html[data-theme="light"] .transport-option,
html[data-theme="light"] .parameter-card,
html[data-theme="light"] .vital-card {
    background: #f4f8fd !important;
    color: #253b55 !important;
    border-color: rgba(49, 78, 117, .11) !important;
}

html[data-theme="light"] .consent-box *,
html[data-theme="light"] .avpu-option *,
html[data-theme="light"] .symptom-option *,
html[data-theme="light"] .procedure-option *,
html[data-theme="light"] .transport-option *,
html[data-theme="light"] .parameter-card *,
html[data-theme="light"] .vital-card * {
    color: #253b55 !important;
}

/* Hover przycisków */
html[data-theme="light"] .secondary-button:hover,
html[data-theme="light"] button.secondary-button:hover {
    background: #34465c !important;
    color: #ffffff !important;
}

html[data-theme="light"] .primary-button:hover,
html[data-theme="light"] button.primary-button:hover {
    filter: brightness(1.05) !important;
    color: #ffffff !important;
}
