/*
 * M ITALIA NEXT — override tema chiaro.
 * Caricare per ultimo nel <head>, dopo i CSS di modulo.
 */

html[data-theme="light"] h1.module-page-title .module-page-title-icon {
  filter: brightness(0);
}

html[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

html[data-theme="light"] .app-platform-footer {
  border-top: 1px solid rgba(29, 29, 27, 0.08);
  background: linear-gradient(180deg, #f8f9f7 0%, #eef3ea 100%);
  color: #4b5560;
  box-shadow: none;
}

html[data-theme="light"] .app-platform-footer-brand,
html[data-theme="light"] .app-platform-footer-version strong {
  color: #1d1d1b;
}

html[data-theme="light"] .app-platform-footer-version,
html[data-theme="light"] .app-platform-footer-legal,
html[data-theme="light"] .app-platform-footer-disclaimer {
  color: #5c656e;
}

html[data-theme="light"] :is(
  button.secondary,
  .btn.secondary,
  .btn-secondary,
  a.btn.secondary,
  .sec-btn.secondary,
  a.sec-btn.secondary
) {
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-ink) !important;
  border-color: var(--line) !important;
}

html[data-theme="light"] :is(
  .ship-module-nav-item.is-active,
  .security-module-nav-item.is-active:not(.sec-nav-exit),
  .wh-module-nav-item.is-active,
  .guide-filter-btn.is-active,
  .assistenza-view-toggle .view-tab.is-active,
  .assistenza-phase-chip.is-active,
  .assistenza-map-legend .map-legend-filter.is-active,
  a.btn:not(.secondary),
  .btn:not(.secondary):not(.btn-secondary),
  button.confirm,
  .sec-btn:not(.sec-btn-danger),
  a.sec-btn:not(.secondary),
  .archive-serial-copy-toast,
  .report-serial-copy-toast
) {
  color: var(--chip-ink) !important;
}

html[data-theme="light"] :is(
  .assistenza-project-row-name,
  .menu-close-icon-btn
) {
  color: var(--text) !important;
}

html[data-theme="light"] :is(
  .security-module-nav-item.sec-nav-exit,
  .sec-btn-danger
) {
  color: var(--danger-ink) !important;
}

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