/*
 * ITAM Modern Light
 *
 * GLPI 11 custom palette. Keep every rule scoped to this palette so that
 * selecting another palette is a complete visual rollback.
 */
:root[data-glpi-theme=itam-modern-light] {
  --tblr-font-sans-serif: Inter, "Noto Sans", Roboto, "Segoe UI", system-ui,
      -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --tblr-body-font-family: var(--tblr-font-sans-serif);
  --tblr-primary: #147d92;
  --tblr-primary-rgb: 20, 125, 146;
  --tblr-primary-fg: #ffffff;
  --tblr-secondary: #64748b;
  --tblr-secondary-rgb: 100, 116, 139;
  --tblr-secondary-fg: #ffffff;
  --tblr-link-color: #0f7186;
  --tblr-link-color-rgb: 15, 113, 134;
  --tblr-link-hover-color: #0b596a;
  --tblr-body-bg: #f4f7f9;
  --tblr-body-bg-rgb: 244, 247, 249;
  --tblr-body-color: #1e293b;
  --tblr-body-color-rgb: 30, 41, 59;
  --tblr-bg-surface: #ffffff;
  --tblr-bg-surface-secondary: #f8fafc;
  --tblr-border-color: #dbe3e9;
  --tblr-border-color-translucent: rgba(100, 116, 139, 0.18);
  --tblr-muted: #64748b;
  --tblr-muted-rgb: 100, 116, 139;
  --tblr-border-radius: 0.625rem;
  --tblr-border-radius-sm: 0.45rem;
  --tblr-border-radius-lg: 0.8rem;
  --tblr-box-shadow: 0 0.125rem 0.375rem rgba(15, 23, 42, 0.06);
  --tblr-box-shadow-card: 0 0.25rem 1rem rgba(15, 23, 42, 0.07);
  --glpi-mainmenu-bg: #123a46;
  --glpi-mainmenu-fg: #f8fafc;
  --glpi-mainmenu-fg-hover: #ffffff;
  --glpi-mainmenu-bg-hover: #174b59;
  --glpi-palette-color-1: #123a46;
  --glpi-palette-color-2: #147d92;
  --glpi-palette-color-3: #f4f7f9;
  --glpi-palette-color-4: #ffffff;
}

:root[data-glpi-theme=itam-modern-light] body,
:root[data-glpi-theme=itam-modern-light] input,
:root[data-glpi-theme=itam-modern-light] button,
:root[data-glpi-theme=itam-modern-light] select,
:root[data-glpi-theme=itam-modern-light] textarea {
  font-family: var(--tblr-font-sans-serif);
}

:root[data-glpi-theme=itam-modern-light] .card {
  border-color: var(--tblr-border-color);
  box-shadow: var(--tblr-box-shadow-card);
}

:root[data-glpi-theme=itam-modern-light] .form-control,
:root[data-glpi-theme=itam-modern-light] .form-select,
:root[data-glpi-theme=itam-modern-light] .select2-selection {
  border-color: #cbd5df;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

:root[data-glpi-theme=itam-modern-light] .form-control:focus,
:root[data-glpi-theme=itam-modern-light] .form-select:focus,
:root[data-glpi-theme=itam-modern-light] .select2-container--focus .select2-selection {
  border-color: #2b91a5;
  box-shadow: 0 0 0 0.2rem rgba(20, 125, 146, 0.14);
}

:root[data-glpi-theme=itam-modern-light] .btn-primary {
  border-color: #147d92;
  background-color: #147d92;
  box-shadow: 0 2px 5px rgba(20, 125, 146, 0.18);
}

:root[data-glpi-theme=itam-modern-light] .btn-primary:hover,
:root[data-glpi-theme=itam-modern-light] .btn-primary:focus {
  border-color: #0f687a;
  background-color: #0f687a;
}

/* Anonymous login page: retain only authentication controls. */
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous {
  background: #f4f7f9;
}

:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .container-tight {
  max-width: 28rem;
}

:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .main-content-card {
  border: 1px solid #dbe3e9;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.1);
}

:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .glpi-logo,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .main-content-card > .card-header,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous form .card-header,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous form .mb-3:has(select[name=auth]),
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .forgot_password,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous form > .text-center.mt-4.border-top,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .copyright,
:root[data-glpi-theme=itam-modern-light] .welcome-anonymous .text-center.text-muted.mt-3 {
  display: none;
}