/* Trust Connect - Red Team Theme */
/* Offensive security stijl: warm antraciet met crimson-rode accenten */
:root[data-glpi-theme=TrustConnectRedTeam],
:root[data-glpi-theme=trustconnectredteam] {
  /* Donkere antraciet achtergronden met warme ondertoon */
  --tblr-light: #1e1418;
  --tblr-dark: #fbeef0;
  --tblr-primary-rgb: 255, 93, 108;
  --tblr-primary: #ff5d6c;
  --tblr-primary-fg: #1a0d10;
  --tblr-primary-darken: color-mix(in srgb, var(--tblr-primary), black 10%);
  --tblr-secondary: #b08a92;
  --tblr-secondary-fg: #1a0d10;
  --tblr-tertiary: #e0c4ca;
  --tblr-muted: #b08a92;
  --tblr-muted-darken: color-mix(in srgb, var(--tblr-muted), black 10%);
  --tblr-info: #7fb8f0;
  --tblr-success: #58d68d;
  --tblr-warning: #f5c56b;
  --tblr-danger: #ff5d6c;
  --tblr-link-color-rgb: 255, 93, 108;
  --tblr-link-color: #ff5d6c;
  --tblr-badge-bg: rgba(176, 138, 146, 0.25);
  --tblr-badge-color: #e0c4ca;
  --tblr-navbar-color: #fbe4e7;
  --tblr-body-bg: #150d0f;
  --tblr-body-color: #fbeef0;
  --tblr-bg-surface: #1e1418;
  --tblr-bg-surface-secondary: #261a1e;
  --tblr-bg-surface-tertiary: #2e2026;
  --tblr-bg-surface-dark: #0d0709;
  --tblr-border-color: rgba(176, 138, 146, 0.25);
  --tblr-border-color-translucent: rgba(176, 138, 146, 0.15);
  /* Red Team accenten */
  --tc-accent: #ff3b4e;
  --tc-accent-light: #ff8a94;
  --tc-primary-light: #ffb3ba;
  /* Logo */
  --glpi-logo-light: url("/pics/ColouredDark-Logo.png");
  --glpi-logo-light-reduced: url("/pics/ColouredDark-Logo.png");
  --glpi-logo-dark: url("/pics/ColouredDark-Logo.png");
  --glpi-logo-dark-reduced: url("/pics/ColouredDark-Logo.png");
  --glpi-logo-dark-login: url("/pics/ColouredDark-Logo.png");
  --glpi-logo-light-login: url("/pics/ColouredDark-Logo.png");
  --glpi-logo: var(--glpi-logo-light);
  --glpi-logo-reduced: var(--glpi-logo-light-reduced);
  /* Hoofdmenu - bijna zwart met rode gloed */
  --glpi-mainmenu-bg: #0d0709;
  --glpi-mainmenu-fg: #fbe4e7;
  --glpi-mainmenu-fg-muted: rgba(251, 228, 231, 0.55);
  --glpi-mainmenu-active-bg: rgba(255, 59, 78, 0.2);
  --glpi-mainmenu-border-color: rgba(120, 70, 80, 0.5);
  /* Tabs */
  --glpi-tabs-bg: #261a1e;
  --glpi-tabs-fg: #b08a92;
  --glpi-tabs-border-color: rgba(176, 138, 146, 0.25);
  --glpi-tabs-active-bg: #1e1418;
  --glpi-tabs-active-fg: #fbeef0;
  --glpi-tabs-active-border-color: var(--tc-accent);
  /* Zoeken */
  --glpi-search-bg: #261a1e;
  --glpi-search-fg: #fbeef0;
  --glpi-search-border-color: rgba(176, 138, 146, 0.25);
  --glpi-fg-secondary: #fbe4e7;
  /* Badges */
  --glpi-badge-bg: rgba(255, 93, 108, 0.15);
  --glpi-badge-fg: #ff8a94;
  /* Formulier headers */
  --glpi-form-header-fg: #ffb3ba;
  --glpi-form-header-bg: rgba(255, 179, 186, 0.1);
  --glpi-form-header-border-color: rgba(255, 179, 186, 0.25);
  --glpi-form-header-danger-fg: #ff5d6c;
  --glpi-form-header-danger-bg: rgba(255, 93, 108, 0.1);
  --glpi-form-header-danger-border-color: rgba(255, 93, 108, 0.25);
  /* Scrollbar */
  --glpi-scrollbar-thumb-color: rgba(176, 138, 146, 0.4);
  --glpi-scrollbar-track-color: transparent;
  /* ITIL / Timeline - donkere versies */
  --glpi-itil-secondary-bg: #261a1e;
  --glpi-timeline-itil-content-bg: rgba(88, 214, 141, 0.12);
  --glpi-timeline-itil-content-fg: #85e0ab;
  --glpi-timeline-itil-content-border-color: rgba(88, 214, 141, 0.3);
  --glpi-timeline-fup-bg: rgba(176, 138, 146, 0.12);
  --glpi-timeline-fup-fg: #e0c4ca;
  --glpi-timeline-fup-border-color: rgba(176, 138, 146, 0.3);
  --glpi-timeline-task-bg: rgba(245, 197, 107, 0.12);
  --glpi-timeline-task-fg: #f8d68f;
  --glpi-timeline-task-border-color: rgba(245, 197, 107, 0.3);
  --glpi-timeline-solution-bg: rgba(127, 184, 240, 0.12);
  --glpi-timeline-solution-fg: #a5cdf5;
  --glpi-timeline-solution-border-color: rgba(127, 184, 240, 0.3);
  --glpi-timeline-document-bg: rgba(88, 214, 141, 0.1);
  --glpi-timeline-document-fg: #85e0ab;
  --glpi-timeline-document-border-color: rgba(88, 214, 141, 0.25);
  --glpi-timeline-log-bg: rgba(255, 255, 255, 0.04);
  --glpi-timeline-badge-bg: rgba(255, 255, 255, 0.08);
  --glpi-timeline-badge-fg: rgba(251, 228, 231, 0.75);
  --glpi-hover-bg: rgba(255, 93, 108, 0.08);
  /* Helpdesk */
  --glpi-helpdesk-header: #1e1418;
  --glpi-helpdesk-tiles-section-bg: #150d0f;
  --glpi-helpdesk-tabs-section-bg: #1e1418;
  /* Illustraties */
  --glpi-illustrations-background: #1e1418;
  --glpi-illustrations-header-dark: #0d0709;
  --glpi-illustrations-header-light: #261a1e;
  --glpi-illustrations-primary: var(--tc-accent);
  --glpi-illustrations-gradient-1: hsl(351deg, 35%, 18%);
  --glpi-illustrations-gradient-2: hsl(351deg, 35%, 28%);
  --glpi-illustrations-gradient-3: hsl(351deg, 35%, 38%);
  /* Altcha */
  --altcha-color-base: var(--tblr-bg-surface);
  --altcha-border-radius: var(--tblr-border-radius-lg);
  --altcha-color-border: var(--tblr-border-color-translucent);
  --altcha-color-text: var(--tblr-dark);
}

/* Sidebar logo */
:root[data-glpi-theme=TrustConnectRedTeam] .page .glpi-logo,
:root[data-glpi-theme=trustconnectredteam] .page .glpi-logo {
  background-size: contain !important;
  background-position: center !important;
}

/* Login pagina logo */
:root[data-glpi-theme=TrustConnectRedTeam] .page-anonymous .glpi-logo,
:root[data-glpi-theme=trustconnectredteam] .page-anonymous .glpi-logo {
  object-fit: contain !important;
  width: 150px !important;
  height: 150px !important;
}

/* Cards en surfaces donkerder */
:root[data-glpi-theme=TrustConnectRedTeam] .card,
:root[data-glpi-theme=trustconnectredteam] .card {
  --tblr-card-cap-bg: #261a1e !important;
  --tblr-card-bg: #1e1418;
  background: #1e1418;
  border-color: rgba(176, 138, 146, 0.2);
  color: #fbeef0;
}

/* Tabel aanpassingen */
:root[data-glpi-theme=TrustConnectRedTeam] table,
:root[data-glpi-theme=trustconnectredteam] table {
  color: #fbeef0;
}
:root[data-glpi-theme=TrustConnectRedTeam] table thead th,
:root[data-glpi-theme=trustconnectredteam] table thead th {
  color: #e0c4ca;
  border-color: rgba(176, 138, 146, 0.2);
}
:root[data-glpi-theme=TrustConnectRedTeam] table td, :root[data-glpi-theme=TrustConnectRedTeam] table th,
:root[data-glpi-theme=trustconnectredteam] table td,
:root[data-glpi-theme=trustconnectredteam] table th {
  border-color: rgba(176, 138, 146, 0.12);
}
:root[data-glpi-theme=TrustConnectRedTeam] table td.active,
:root[data-glpi-theme=TrustConnectRedTeam] table td.tab_bg_4,
:root[data-glpi-theme=trustconnectredteam] table td.active,
:root[data-glpi-theme=trustconnectredteam] table td.tab_bg_4 {
  background-color: rgba(255, 59, 78, 0.08);
}

/* Zebra-rijen in overzichten subtieler (header/statusbalk ongemoeid) */
:root[data-glpi-theme=TrustConnectRedTeam] .table.table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-glpi-theme=trustconnectredteam] .table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 179, 186, 0.06) !important;
}

:root[data-glpi-theme=TrustConnectRedTeam] .table.table-striped > tbody > tr:nth-of-type(even) > *,
:root[data-glpi-theme=trustconnectredteam] .table.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: rgba(30, 20, 24, 0.94) !important;
}

/* Dropdown en popover */
:root[data-glpi-theme=TrustConnectRedTeam] .dropdown-menu,
:root[data-glpi-theme=trustconnectredteam] .dropdown-menu {
  background: #261a1e;
  border-color: rgba(176, 138, 146, 0.25);
  color: #fbeef0;
}
:root[data-glpi-theme=TrustConnectRedTeam] .dropdown-menu .dropdown-item,
:root[data-glpi-theme=trustconnectredteam] .dropdown-menu .dropdown-item {
  color: #fbe4e7;
}
:root[data-glpi-theme=TrustConnectRedTeam] .dropdown-menu .dropdown-item:hover, :root[data-glpi-theme=TrustConnectRedTeam] .dropdown-menu .dropdown-item:focus,
:root[data-glpi-theme=trustconnectredteam] .dropdown-menu .dropdown-item:hover,
:root[data-glpi-theme=trustconnectredteam] .dropdown-menu .dropdown-item:focus {
  background: rgba(255, 93, 108, 0.1);
  color: #ff8a94;
}

/* Modals */
:root[data-glpi-theme=TrustConnectRedTeam] .modal-content,
:root[data-glpi-theme=trustconnectredteam] .modal-content {
  background: #1e1418;
  border-color: rgba(120, 70, 80, 0.5);
  color: #fbeef0;
}

:root[data-glpi-theme=TrustConnectRedTeam] .modal-header,
:root[data-glpi-theme=trustconnectredteam] .modal-header {
  border-color: rgba(176, 138, 146, 0.2);
}

:root[data-glpi-theme=TrustConnectRedTeam] .modal-footer,
:root[data-glpi-theme=trustconnectredteam] .modal-footer {
  border-color: rgba(176, 138, 146, 0.2);
}

/* Inputs */
:root[data-glpi-theme=TrustConnectRedTeam] .form-control,
:root[data-glpi-theme=TrustConnectRedTeam] .form-select,
:root[data-glpi-theme=trustconnectredteam] .form-control,
:root[data-glpi-theme=trustconnectredteam] .form-select {
  background: #261a1e;
  border-color: rgba(176, 138, 146, 0.3);
  color: #fbeef0;
}
:root[data-glpi-theme=TrustConnectRedTeam] .form-control::placeholder,
:root[data-glpi-theme=TrustConnectRedTeam] .form-select::placeholder,
:root[data-glpi-theme=trustconnectredteam] .form-control::placeholder,
:root[data-glpi-theme=trustconnectredteam] .form-select::placeholder {
  color: rgba(251, 228, 231, 0.45);
}
:root[data-glpi-theme=TrustConnectRedTeam] .form-control:focus,
:root[data-glpi-theme=TrustConnectRedTeam] .form-select:focus,
:root[data-glpi-theme=trustconnectredteam] .form-control:focus,
:root[data-glpi-theme=trustconnectredteam] .form-select:focus {
  background: #2e2026;
  border-color: var(--tc-accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.15);
  color: #fbeef0;
}

/* Accordion */
:root[data-glpi-theme=TrustConnectRedTeam] .accordion,
:root[data-glpi-theme=trustconnectredteam] .accordion {
  --tblr-accordion-color: #e0c4ca;
  --tblr-accordion-bg: #1e1418;
  --tblr-accordion-border-color: rgba(176, 138, 146, 0.2);
}

:root[data-glpi-theme=TrustConnectRedTeam] .accordion-button,
:root[data-glpi-theme=trustconnectredteam] .accordion-button {
  background: #261a1e;
  color: #fbe4e7;
}
:root[data-glpi-theme=TrustConnectRedTeam] .accordion-button:not(.collapsed),
:root[data-glpi-theme=trustconnectredteam] .accordion-button:not(.collapsed) {
  background: rgba(255, 59, 78, 0.1);
  color: #ff8a94;
}

/* Toast */
:root[data-glpi-theme=TrustConnectRedTeam] .toast,
:root[data-glpi-theme=trustconnectredteam] .toast {
  background: #261a1e !important;
  color: #fbeef0 !important;
  border-color: rgba(176, 138, 146, 0.25);
}

/* Tooltip */
:root[data-glpi-theme=TrustConnectRedTeam] .tooltip,
:root[data-glpi-theme=trustconnectredteam] .tooltip {
  --tblr-tooltip-bg: #2e2026;
  --tblr-tooltip-color: #fbeef0;
}

/* Pre/code */
:root[data-glpi-theme=TrustConnectRedTeam] pre,
:root[data-glpi-theme=TrustConnectRedTeam] code,
:root[data-glpi-theme=trustconnectredteam] pre,
:root[data-glpi-theme=trustconnectredteam] code {
  background-color: #0d0709;
  color: #e0c4ca;
}

/* Select2 (veelgebruikt in GLPI) */
:root[data-glpi-theme=TrustConnectRedTeam] .select2-container--default .select2-selection--single,
:root[data-glpi-theme=TrustConnectRedTeam] .select2-container--default .select2-selection--multiple,
:root[data-glpi-theme=trustconnectredteam] .select2-container--default .select2-selection--single,
:root[data-glpi-theme=trustconnectredteam] .select2-container--default .select2-selection--multiple {
  background: #261a1e;
  border-color: rgba(176, 138, 146, 0.3);
  color: #fbeef0;
}
:root[data-glpi-theme=TrustConnectRedTeam] .select2-container--default .select2-dropdown,
:root[data-glpi-theme=trustconnectredteam] .select2-container--default .select2-dropdown {
  background: #261a1e;
  border-color: rgba(176, 138, 146, 0.25);
}
:root[data-glpi-theme=TrustConnectRedTeam] .select2-container--default .select2-results__option--highlighted,
:root[data-glpi-theme=trustconnectredteam] .select2-container--default .select2-results__option--highlighted {
  background: rgba(255, 93, 108, 0.15);
  color: #ff8a94;
}

/* Login pagina */
:root[data-glpi-theme=TrustConnectRedTeam] .page-anonymous,
:root[data-glpi-theme=trustconnectredteam] .page-anonymous {
  background: #150d0f !important;
}
:root[data-glpi-theme=TrustConnectRedTeam] .page-anonymous .main-content-card,
:root[data-glpi-theme=trustconnectredteam] .page-anonymous .main-content-card {
  background: #1e1418;
  border-color: rgba(120, 70, 80, 0.5);
  color: #fbeef0;
}

/* Breadcrumbs */
:root[data-glpi-theme=TrustConnectRedTeam] .breadcrumb,
:root[data-glpi-theme=trustconnectredteam] .breadcrumb {
  --tblr-breadcrumb-link-color: #b08a92;
  color: #e0c4ca;
}

/* Popover */
:root[data-glpi-theme=TrustConnectRedTeam] .popover,
:root[data-glpi-theme=trustconnectredteam] .popover {
  background: #261a1e;
  border-color: rgba(176, 138, 146, 0.25);
}
:root[data-glpi-theme=TrustConnectRedTeam] .popover .popover-body,
:root[data-glpi-theme=trustconnectredteam] .popover .popover-body {
  color: #fbeef0;
}
:root[data-glpi-theme=TrustConnectRedTeam] .popover .popover-arrow::after,
:root[data-glpi-theme=trustconnectredteam] .popover .popover-arrow::after {
  border-top-color: #261a1e;
}

/* Mail-import / rich text readability in ticket & change views */
:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .rich_text_container,
:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .ql-editor,
:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .description,
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .rich_text_container,
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content body#tinymce.mce-content-body.rich_text_container,
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .ql-editor,
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .rich_text_container,
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .ql-editor,
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .description,
:root[data-glpi-theme=trustconnectredteam] .timeline .rich_text_container,
:root[data-glpi-theme=trustconnectredteam] .read-only-content body#tinymce.mce-content-body.rich_text_container,
:root[data-glpi-theme=trustconnectredteam] .timeline .ql-editor {
  background: #1e1418 !important;
  color: #fbeef0 !important;
  border-color: rgba(176, 138, 146, 0.3) !important;
}

:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content body#tinymce.mce-content-body.rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=trustconnectredteam] .timeline .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font),
:root[data-glpi-theme=trustconnectredteam] .read-only-content body#tinymce.mce-content-body.rich_text_container :is(p, div, span, li, ul, ol, td, th, h1, h2, h3, h4, h5, h6, font) {
  color: inherit !important;
}

:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .rich_text_container a,
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .rich_text_container a,
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container a,
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .rich_text_container a,
:root[data-glpi-theme=trustconnectredteam] .timeline .rich_text_container a,
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container a {
  color: #ff8a94 !important;
}

:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .rich_text_container :is(table, tr, td, th),
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .rich_text_container :is(table, tr, td, th),
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container :is(table, tr, td, th),
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .rich_text_container :is(table, tr, td, th),
:root[data-glpi-theme=trustconnectredteam] .timeline .rich_text_container :is(table, tr, td, th),
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container :is(table, tr, td, th) {
  background-color: transparent !important;
  color: inherit !important;
  border-color: rgba(176, 138, 146, 0.3) !important;
}

:root[data-glpi-theme=TrustConnectRedTeam] .itil-object-fields .field-container .rich_text_container :is(img, svg),
:root[data-glpi-theme=TrustConnectRedTeam] .timeline .rich_text_container :is(img, svg),
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container :is(img, svg),
:root[data-glpi-theme=trustconnectredteam] .itil-object-fields .field-container .rich_text_container :is(img, svg),
:root[data-glpi-theme=trustconnectredteam] .timeline .rich_text_container :is(img, svg),
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container :is(img, svg) {
  max-width: 100% !important;
  height: auto !important;
}

/* Force override of inline black text from imported emails/signatures */
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container [style*="color: rgb(0, 0, 0)"],
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container [style*="color:rgb(0,0,0)"],
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container [style*="color:#000"],
:root[data-glpi-theme=TrustConnectRedTeam] .read-only-content .rich_text_container [style*="color: #000"],
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container [style*="color: rgb(0, 0, 0)"],
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container [style*="color:rgb(0,0,0)"],
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container [style*="color:#000"],
:root[data-glpi-theme=trustconnectredteam] .read-only-content .rich_text_container [style*="color: #000"] {
  color: #fbeef0 !important;
}

/* Footer */
:root[data-glpi-theme=TrustConnectRedTeam] .footer,
:root[data-glpi-theme=trustconnectredteam] .footer {
  color: rgba(251, 228, 231, 0.6);
}