/* ==========================================================================
   Edge IT Desk — design system shell (light, modern SaaS).
   Brand: Edge purple #7C3AED. Restyles GLPI through Tabler/GLPI variables and
   scoped component rules; never changes GLPI's DOM or behaviour.
   ========================================================================== */

/* ---------- font: Open Sans variable, as on onedge.co (self-hosted, OFL) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2"); }

/* ---------- tokens: Edge brand (onedge.co) ----------
   amethyst #7c3aed · plum #4a0f70 · aubergine #300331 · lilac #e5d9f9 · mauve #c6aafc
   ink #111827 · slate #4b5563 · steel #9ca3af · silver #e9e9ed · bg #fafafa · soft #f4f0ff · warm #f9f6ff */
:root {
  --e-brand-25: #f8f5ff; --e-brand-50: #efe8ff; --e-brand-100: #e0d2fb; --e-brand-200: #cdb8f8; --e-brand-300: #c6aafc;
  --e-brand-400: #a78bfa; --e-brand-500: #8b5cf6; --e-brand-600: #7c3aed; --e-brand-700: #6d28d9; --e-brand-800: #5a1ba8; --e-brand-900: #4a0f70;
  --e-plum: #4a0f70; --e-aubergine: #300331;
  --e-action: #7c3aed; --e-action-hover: #6d28d9; --e-action-active: #5a1ba8;
  --e-hero: radial-gradient(ellipse 130% 110% at 50% -15%, #9b6df0 0%, #7c3aed 18%, #5a1ba8 42%, #4a0f70 68%, #2a0743 100%);
  --e-glow: radial-gradient(ellipse 1000px 560px at 100% 0%, rgba(124, 58, 237, .09), transparent 65%), radial-gradient(ellipse 700px 420px at 0% 100%, rgba(124, 58, 237, .05), transparent 65%);

  --e-ink: #0f1222; --e-ink-2: #1c2033; --e-muted: #414657; --e-subtle: #5d6375;
  --e-line: #dedaea; --e-line-soft: #ebe8f2; --e-line-strong: #c9c3d9; --e-line-hover: #ada6c2;
  --e-canvas: #eeecf5; --e-surface: #ffffff; --e-surface-2: #f6f3fd; --e-surface-3: #e9e5f4; --e-field: #ffffff;
  --e-sidebar: #ffffff; --e-topbar: rgba(255, 255, 255, .94);

  --e-success: #059669; --e-success-50: #05966914; --e-success-200: #05966940; --e-success-700: #047857;
  --e-warning: #d97706; --e-warning-50: #d9770614; --e-warning-200: #d9770640; --e-warning-700: #b45309;
  --e-danger: #dc2626;  --e-danger-50: #dc262612;  --e-danger-200: #dc262638;  --e-danger-700: #b91c1c;
  --e-info: #0284c7;    --e-info-50: #0284c714;    --e-info-200: #0284c738;    --e-info-700: #0369a1;

  --e-radius-sm: 8px; --e-radius: 12px; --e-radius-lg: 16px; --e-radius-xl: 20px; --e-radius-pill: 100px;
  --e-shadow-1: 0 1px 2px #1a133314, 0 2px 6px #1a13330d;
  --e-shadow-2: 0 8px 24px #1a13331a, 0 2px 6px #1a13330f;
  --e-shadow-lilac: 0 8px 30px #7c3aed1f;
  --e-shadow-pop: 0 12px 40px #00000014, 0 2px 6px #0000000a;
  --e-focus: 0 0 0 3px #7c3aed38;
  --e-font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --e-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --e-page-width: clamp(min(100%, 760px), 72vw, 1680px);

  --e-skel-shine: rgba(255, 255, 255, .65);
  --e-chart-axis: #5d6375; --e-chart-grid: #e3dfec; --e-chart-tip: #111827; --e-chart-tip-ink: #ffffff;
}

/* Dark mode = onedge.co dark sections: navy-black canvas, #111827 cards, hairline white borders, amethyst glow.
   Active when the user's GLPI palette is dark (top-bar toggle: Auror <-> Dark Auror). */
:root[data-glpi-theme-dark="1"] {
  color-scheme: dark;
  --e-brand-25: #7c3aed0d; --e-brand-50: #7c3aed1a; --e-brand-100: #7c3aed29; --e-brand-200: #7c3aed4d; --e-brand-300: #8b5cf6;
  --e-brand-400: #a78bfa; --e-brand-500: #8b5cf6; --e-brand-600: #7c3aed; --e-brand-700: #c6aafc; --e-brand-800: #e5d9f9; --e-brand-900: #f4f0ff;
  --e-glow: radial-gradient(ellipse 900px 560px at 100% 0%, #7c3aed1f, transparent 65%), radial-gradient(ellipse 700px 420px at 0% 100%, #7c3aed0f, transparent 65%);

  --e-ink: #ffffffeb; --e-ink-2: #ffffffd1; --e-muted: #ffffffa3; --e-subtle: #ffffff80;
  --e-line: #ffffff14; --e-line-soft: #ffffff0b; --e-line-strong: #ffffff24; --e-line-hover: #ffffff3d;
  --e-canvas: #0b0f1a; --e-surface: #111827; --e-surface-2: #151621; --e-surface-3: #1d2030; --e-field: #0b0f1a;
  --e-sidebar: #09090f; --e-topbar: rgba(9, 9, 15, .88);

  --e-success: #34d399; --e-success-50: #10b9811f; --e-success-200: #10b98159; --e-success-700: #6ee7b7;
  --e-warning: #fbbf24; --e-warning-50: #f59e0b1f; --e-warning-200: #f59e0b59; --e-warning-700: #fcd34d;
  --e-danger: #f87171;  --e-danger-50: #ef444424;  --e-danger-200: #ef444466;  --e-danger-700: #fca5a5;
  --e-info: #38bdf8;    --e-info-50: #0ea5e924;    --e-info-200: #0ea5e966;    --e-info-700: #7dd3fc;

  --e-shadow-1: 0 1px 2px #00000066;
  --e-shadow-2: 0 6px 20px #00000073;
  --e-shadow-lilac: 0 8px 30px #7c3aed33;
  --e-shadow-pop: 0 14px 40px #00000099, 0 2px 6px #00000066;
  --e-focus: 0 0 0 3px #a78bfa59;
  --e-skel-shine: rgba(255, 255, 255, .06);
  --e-chart-axis: #ffffff80; --e-chart-grid: #ffffff12; --e-chart-tip: #1d2030; --e-chart-tip-ink: #ffffffeb;
}

/* ---------- Tabler / GLPI variable mapping (beats every palette, light or dark) ---------- */
:root, :root[data-glpi-theme], :root[data-glpi-theme][data-glpi-theme-dark] {
  --tblr-font-sans-serif: var(--e-font);
  --tblr-body-font-family: var(--e-font);
  --tblr-body-font-size: .875rem;
  --tblr-body-color: var(--e-ink-2);
  --tblr-body-color-rgb: 31, 41, 55;
  --tblr-body-bg: var(--e-canvas);
  --tblr-body-bg-rgb: 250, 250, 250;
  --tblr-bg-surface: var(--e-surface);
  --tblr-bg-surface-secondary: var(--e-surface-2);
  --tblr-secondary: var(--e-subtle);
  --tblr-secondary-color: var(--e-subtle);
  --tblr-muted: var(--e-subtle);
  --tblr-border-color: var(--e-line);
  --tblr-border-color-translucent: rgba(16, 24, 40, .08);
  --tblr-border-radius: var(--e-radius-sm);
  --tblr-border-radius-lg: var(--e-radius);
  --tblr-card-border-radius: var(--e-radius-lg);
  --tblr-primary: var(--e-brand-600);
  --tblr-primary-rgb: 124, 58, 237;
  --tblr-primary-fg: #fff;
  --tblr-primary-darken: var(--e-action-hover);
  --tblr-primary-lt: var(--e-brand-50);
  --tblr-link-color: var(--e-brand-700);
  --tblr-link-color-rgb: 109, 40, 217;
  --tblr-link-hover-color: var(--e-brand-800);
  --tblr-emphasis-color: var(--e-ink);
  --tblr-heading-color: var(--e-ink);

  --glpi-mainmenu-bg: var(--e-sidebar);
  --glpi-mainmenu-fg: var(--e-muted);
  --glpi-mainmenu-fg-muted: var(--e-subtle);
  --glpi-mainmenu-active-bg: var(--e-brand-50);
  --glpi-helpdesk-header: var(--e-brand-50);
  --glpi-palette-color-1: var(--e-brand-800);
  --glpi-palette-color-2: var(--e-brand-600);
  --glpi-palette-color-3: var(--e-brand-300);
  --glpi-palette-color-4: #fff;
  --glpi-illustrations-gradient-1: var(--e-brand-100);
  --glpi-illustrations-gradient-2: var(--e-brand-300);
  --glpi-illustrations-gradient-3: var(--e-brand-600);
  --glpi-form-header-fg: var(--e-ink);
  --glpi-form-header-bg: var(--e-surface);
  --glpi-tabs-active-bg: transparent;
  --glpi-tabs-border-color: var(--e-line);
  --glpi-tabs-active-border-color: var(--e-brand-600);
  --glpi-badge-bg: var(--e-surface-3);
  --glpi-badge-fg: var(--e-muted);
  --glpi-search-bg: var(--e-surface);
  --glpi-timeline-fup-bg: var(--e-surface);
  --glpi-timeline-fup-border-color: var(--e-line);
  --glpi-timeline-itil-content-bg: var(--e-brand-25);
  --glpi-timeline-itil-content-border-color: var(--e-brand-200);
  --glpi-timeline-task-bg: var(--e-warning-50);
  --glpi-timeline-solution-bg: var(--e-success-50);
  --glpi-scrollbar-thumb-color: var(--e-line-strong);
  --glpi-timeline-fup-fg: var(--e-ink-2);
  --glpi-timeline-itil-content-fg: var(--e-ink-2);
  --glpi-timeline-task-fg: var(--e-ink-2);
  --glpi-timeline-task-border-color: var(--e-warning-200);
  --glpi-timeline-solution-fg: var(--e-ink-2);
  --glpi-timeline-solution-border-color: var(--e-success-200);
  --glpi-tabs-bg: transparent;
  --glpi-tabs-fg: var(--e-muted);
  --glpi-tabs-active-fg: var(--e-ink);
  --glpi-itil-secondary-bg: var(--e-surface);
  --glpi-mainmenu-fg-muted: var(--e-subtle);
  --glpi-logo-light: url("/branding/edge-purple.svg");
  --glpi-logo-dark: url("/branding/edge-purple.svg");
  --glpi-logo-light-reduced: url("/branding/edge-mark.svg");
  --glpi-logo-dark-reduced: url("/branding/edge-mark.svg");
  --glpi-logo-light-login: url("/branding/edge-purple.svg");
  --glpi-logo-dark-login: url("/branding/edge-purple.svg");
}
:root[data-glpi-theme][data-glpi-theme-dark="1"] {
  --tblr-body-color-rgb: 235, 235, 240;
  --tblr-body-bg-rgb: 11, 15, 26;
  --tblr-border-color-translucent: rgba(255, 255, 255, .07);
  --tblr-primary-lt: #7c3aed29;
  --tblr-link-color-rgb: 196, 181, 253;
  --tblr-dark: #0b0f1a;
  --tblr-light: #dcdfe7;
  --glpi-badge-bg: var(--e-surface-3);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--e-font); background: var(--e-glow), var(--e-canvas); background-attachment: fixed; color: var(--e-ink-2); font-feature-settings: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 { color: var(--e-ink); letter-spacing: -.012em; font-weight: 650; }
a { text-underline-offset: 2px; }
::selection { background: var(--e-brand-100); }
:focus-visible { outline: 2px solid var(--e-brand-400); outline-offset: 2px; }
.text-muted, .text-secondary { color: var(--e-subtle) !important; }

/* ---------- sidebar ---------- */
body.vertical-layout aside.navbar-vertical.sidebar {
  background: var(--e-sidebar) !important; border-right: 1px solid var(--e-line); box-shadow: none !important;
}
aside.sidebar .navbar-brand { padding: 18px 16px 14px !important; display: flex; align-items: center; gap: 10px; }
aside.sidebar .navbar-brand .glpi-logo {
  background-image: url("/branding/edge-purple.svg") !important; background-size: contain !important;
  background-repeat: no-repeat !important; background-position: left center !important; width: 104px; height: 26px;
}
aside.sidebar .navbar-brand::after {
  content: "IT Desk"; font: 600 11px/1 var(--e-font); color: var(--e-brand-700); background: var(--e-brand-50);
  border: 1px solid var(--e-brand-100); padding: 4px 7px; border-radius: 999px; letter-spacing: .02em;
}
:root[data-glpi-theme-dark="1"] body:not(.navbar-collapsed) aside.sidebar .navbar-brand .glpi-logo { background-image: url("/branding/edge-white.svg") !important; }
body.navbar-collapsed aside.sidebar .navbar-brand::after { display: none; }
body.navbar-collapsed aside.sidebar .navbar-brand .glpi-logo { background-image: url("/branding/edge-mark.svg") !important; width: 28px; background-position: center !important; }

aside.sidebar #navbar-menu .navbar-nav { padding: 4px 10px; gap: 2px; }
aside.sidebar #navbar-menu .nav-item > .nav-link {
  color: var(--e-muted) !important; font-weight: 550; font-size: 13.5px; border-radius: 8px; padding: 8px 10px !important;
  min-height: 36px; transition: background .12s, color .12s;
}
aside.sidebar #navbar-menu .nav-item > .nav-link i { color: var(--e-subtle); font-size: 18px; width: 22px; }
aside.sidebar #navbar-menu .nav-item > .nav-link:hover { background: var(--e-surface-2) !important; color: var(--e-ink) !important; }
aside.sidebar #navbar-menu .nav-item.active > .nav-link,
aside.sidebar #navbar-menu .nav-item > .nav-link.active,
aside.sidebar #navbar-menu .nav-item > .nav-link.show { background: var(--e-brand-50) !important; color: var(--e-brand-800) !important; }
aside.sidebar #navbar-menu .nav-item.active > .nav-link i,
aside.sidebar #navbar-menu .nav-item > .nav-link.show i { color: var(--e-brand-600); }
aside.sidebar #navbar-menu .dropdown-toggle::after { border-color: var(--e-subtle) !important; opacity: .7; }

aside.sidebar #navbar-menu .dropdown-menu {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 2px 0 6px 0 !important; margin: 0 !important;
}
aside.sidebar #navbar-menu .dropdown-menu .dropdown-header { display: none; }
aside.sidebar #navbar-menu .dropdown-item {
  color: var(--e-muted) !important; font-size: 13px; font-weight: 500; border-radius: 7px; padding: 6px 10px 6px 34px !important;
  margin: 1px 0; min-height: 32px; position: relative; background: transparent;
}
aside.sidebar #navbar-menu .dropdown-item i { color: var(--e-subtle); font-size: 16px; }
aside.sidebar #navbar-menu .dropdown-item:hover { background: var(--e-surface-2) !important; color: var(--e-ink) !important; }
aside.sidebar #navbar-menu .dropdown-item.active {
  background: var(--e-surface-3) !important; color: var(--e-ink) !important; font-weight: 600;
}
aside.sidebar #navbar-menu .dropdown-item.active::before {
  content: ""; position: absolute; left: 18px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--e-brand-600);
}
aside.sidebar #navbar-menu .dropdown-item.active i { color: var(--e-brand-600); }
aside.sidebar .reduce-menu { color: var(--e-subtle) !important; border-radius: 8px; }
aside.sidebar .reduce-menu:hover { background: var(--e-surface-2); color: var(--e-ink) !important; }
aside.sidebar .edge-asset-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--e-subtle);
  font-size: 12px; font-weight: 600; padding: 10px 10px 4px 34px; text-transform: uppercase; letter-spacing: .04em;
}
aside.sidebar .edge-asset-group > summary::-webkit-details-marker { display: none; }
aside.sidebar .edge-asset-group > summary i { display: none; }
aside.sidebar .edge-asset-group > summary::after { content: "›"; margin-left: auto; transition: transform .15s; font-size: 14px; }
aside.sidebar .edge-asset-group[open] > summary::after { transform: rotate(90deg); }

/* ---------- topbar ---------- */
header.navbar[data-testid="main-header"] {
  background: var(--e-topbar) !important; backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--e-line); box-shadow: none !important; min-height: 56px;
}
header.navbar .breadcrumb { font-size: 13px; }
header.navbar .breadcrumb a, header.navbar .breadcrumb-item { color: var(--e-subtle) !important; font-weight: 500; }
header.navbar .breadcrumb-item:last-child a { color: var(--e-ink) !important; font-weight: 600; }
header.navbar .context-links .btn, header.navbar .context-links a { border-radius: 8px; font-weight: 600; }
header.navbar form[role="search"] .form-control, header.navbar .search-input input, header.navbar input[name="globalsearch"] {
  background: var(--e-surface-2); border-color: var(--e-line); border-radius: 10px; min-height: 38px;
}
header.navbar .user-menu .avatar, header.navbar .avatar { border-radius: 50%; box-shadow: 0 0 0 2px var(--e-surface), 0 0 0 3px var(--e-line); }
.secondary-bar { background: var(--e-surface) !important; border-bottom: 1px solid var(--e-line); box-shadow: none !important; }

/* ---------- page ---------- */
.page-body { margin-top: 18px !important; }
main#page { min-width: 0; }
.edge-screen-heading { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.edge-screen-heading > i {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  background: var(--e-brand-50); color: var(--e-brand-700); border: 1px solid var(--e-brand-100);
}
.edge-screen-heading h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 680; letter-spacing: -.02em; }
.edge-screen-heading p { margin: 2px 0 0; color: var(--e-subtle); font-size: 12.5px; }

/* ---------- cards & surfaces ---------- */
.card {
  --tblr-card-bg: var(--e-surface); --tblr-card-border-color: var(--e-line);
  border-radius: var(--e-radius-lg); border-color: var(--e-line); box-shadow: var(--e-shadow-1);
}
.card-header { border-bottom-color: var(--e-line); background: transparent; }
.card-title { font-weight: 650; color: var(--e-ink); }
.card-footer { background: var(--e-surface-2); border-top-color: var(--e-line); }
.alert { border-radius: var(--e-radius); border-width: 1px; box-shadow: none; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--e-radius-pill); font-weight: 600; font-size: 13px; min-height: 34px; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; vertical-align: middle; }
.btn > i, .btn > .ti, .btn > svg { margin: 0 !important; line-height: 1; font-size: 1.15em; }
.btn > i:first-child:last-child { margin: 0; }
.btn-primary {
  --tblr-btn-bg: var(--e-action); --tblr-btn-border-color: var(--e-action); --tblr-btn-color: #fff;
  --tblr-btn-hover-bg: var(--e-action-hover); --tblr-btn-hover-border-color: var(--e-action-hover); --tblr-btn-hover-color: #fff;
  --tblr-btn-active-bg: var(--e-action-active); --tblr-btn-active-border-color: var(--e-action-active);
  box-shadow: 0 1px 2px #5a1ba833;
}
.btn-outline-secondary, .btn-secondary:not(.btn-ghost-secondary) {
  --tblr-btn-color: var(--e-ink-2); --tblr-btn-bg: var(--e-surface); --tblr-btn-border-color: var(--e-line-strong);
  --tblr-btn-hover-bg: var(--e-surface-2); --tblr-btn-hover-color: var(--e-ink); --tblr-btn-hover-border-color: var(--e-line-strong);
}
.btn-ghost-secondary { --tblr-btn-color: var(--e-muted); --tblr-btn-hover-bg: var(--e-surface-3); --tblr-btn-hover-color: var(--e-ink); }
.btn:focus-visible { box-shadow: var(--e-focus) !important; }

/* ---------- forms ---------- */
.form-control, .form-select, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .flatpickr-input {
  border-radius: 8px !important; border-color: var(--e-line-strong) !important; background-color: var(--e-field); color: var(--e-ink-2);
  min-height: 36px; box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
}
.form-control:hover, .form-select:hover { border-color: var(--e-line-hover) !important; }
.form-control:focus, .form-select:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection {
  border-color: var(--e-brand-400) !important; box-shadow: var(--e-focus) !important; outline: 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; }
.select2-dropdown { border-color: var(--e-line) !important; border-radius: 10px !important; box-shadow: var(--e-shadow-pop); overflow: hidden; }
.select2-results__option--highlighted { background: var(--e-brand-50) !important; color: var(--e-brand-800) !important; }
.col-form-label, .form-label { color: var(--e-muted); font-weight: 600; font-size: 13px; }
.form-check-input:checked { background-color: var(--e-brand-600); border-color: var(--e-brand-600); }
@media (min-width: 1100px) {
  body:not(.edge-login) .form-field.col-sm-6 > .col-form-label { width: 34% !important; flex: 0 0 34% !important; text-align: left !important; padding: 7px 12px 7px 0; }
  body:not(.edge-login) .form-field.col-sm-6 > .field-container { width: 66% !important; flex: 0 0 66% !important; min-width: 0; }
}
.itil-right-side .col-form-label { text-align: left !important; }

/* ticket list columns: the entity is the imported Jira project (shown on the ticket itself) */
.edge-ticket-list .search-results [data-searchopt-id="80"], .edge-ticket-list .search-results [data-searchopt-content-id="80"] { display: none !important; }
.edge-ticket-list .search-results [data-searchopt-id="1"] { width: 32%; }
.edge-ticket-list .search-results td[data-searchopt-content-id="1"] > a { display: inline-block; min-width: 260px; max-width: 520px; }
.edge-ticket-list .search-results [data-searchopt-id="2"] { width: 72px; }
.edge-ticket-list .search-results [data-searchopt-id="12"] { width: 150px; }
.edge-ticket-list .search-results :is([data-searchopt-id="19"], [data-searchopt-id="15"]) { width: 136px; white-space: nowrap; }
.edge-ticket-list .search-results [data-searchopt-id="3"] { width: 104px; }
.edge-ticket-list .search-results tbody td[data-searchopt-content-id="1"] a { font-weight: 600; }
.form-switch .form-check-input:focus { box-shadow: var(--e-focus); }

/* ---------- tabs ---------- */
.nav-tabs { border-bottom: 1px solid var(--e-line) !important; gap: 4px; }
.nav-tabs .nav-link {
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: transparent !important;
  color: var(--e-subtle) !important; font-weight: 600; font-size: 13px; padding: 10px 12px !important; margin-bottom: -1px;
}
.nav-tabs .nav-link:hover { color: var(--e-ink) !important; border-bottom-color: var(--e-line-strong) !important; }
.nav-tabs .nav-link.active { color: var(--e-brand-700) !important; border-bottom-color: var(--e-brand-600) !important; }
.nav-tabs .nav-link .badge { background: var(--e-surface-3) !important; color: var(--e-muted) !important; font-weight: 600; }
.nav-tabs .nav-link.active .badge { background: var(--e-brand-100) !important; color: var(--e-brand-800) !important; }
.vertical-tabs .nav-tabs .nav-link { border-bottom: 0 !important; border-left: 2px solid transparent !important; border-radius: 0 8px 8px 0 !important; }
.vertical-tabs .nav-tabs .nav-link.active { border-left-color: var(--e-brand-600) !important; background: var(--e-brand-50) !important; }

/* ---------- search lists ---------- */
.search_page .search-container, .search-container .search-card { border-radius: var(--e-radius-lg); }
.search-results, table.table { --tblr-table-border-color: var(--e-line-soft); --tblr-table-hover-bg: var(--e-brand-25); color: var(--e-ink-2); }
.search-results thead th, table.table thead th {
  background: var(--e-surface-2) !important; color: var(--e-subtle) !important; font-size: 11.5px !important; font-weight: 600 !important;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--e-line) !important; padding-top: 10px !important; padding-bottom: 10px !important;
}
.search-results thead th a { color: inherit !important; }
.search-results tbody td { padding-top: 11px !important; padding-bottom: 11px !important; vertical-align: middle; border-color: var(--e-line-soft) !important; }
.search-results tbody tr:hover td { background: var(--e-brand-25) !important; }
.search-results tbody td a { font-weight: 550; color: var(--e-ink); }
.search-results tbody td a:hover { color: var(--e-brand-700); }
.search-results .badge, .search-results .itilstatus { font-weight: 600; }
.search-pager .page-link, .pagination .page-link { border-radius: 8px !important; border: 0; color: var(--e-muted); font-weight: 600; min-width: 32px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--e-brand-600) !important; color: #fff !important; }
.search-header .btn, .search-controls .btn { border-radius: 8px; }
.saved-searches-panel, .search-form-container { border-radius: var(--e-radius-lg); }

/* ---------- badges ---------- */
.badge { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.badge.bg-blue-lt, .badge.bg-primary-lt, .badge.bg-purple-lt { background: var(--e-brand-50) !important; color: var(--e-brand-800) !important; }

/* ---------- dropdowns / modals / toasts ---------- */
.dropdown-menu:not(#navbar-menu .dropdown-menu) {
  border: 1px solid var(--e-line); border-radius: 12px; box-shadow: var(--e-shadow-pop); padding: 6px;
}
.dropdown-menu:not(#navbar-menu .dropdown-menu) .dropdown-item { border-radius: 7px; font-size: 13px; padding: 7px 10px; }
.dropdown-menu:not(#navbar-menu .dropdown-menu) .dropdown-item:hover { background: var(--e-surface-2); }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--e-shadow-pop); overflow: hidden; }
.modal-header { border-bottom-color: var(--e-line); }
.modal-footer { border-top-color: var(--e-line); background: var(--e-surface-2); }
.toast { border-radius: 12px; box-shadow: var(--e-shadow-pop); border-color: var(--e-line); }

/* ---------- ticket list status strip (rendered by edge-shell.js) ---------- */
.edge-queue { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.edge-queue a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; text-decoration: none;
  background: var(--e-surface); border: 1px solid var(--e-line); color: var(--e-muted); font-size: 13px; font-weight: 600; transition: border-color .12s, background .12s;
}
.edge-queue a strong { color: var(--e-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.edge-queue a:hover { border-color: var(--e-brand-200); background: var(--e-brand-25); color: var(--e-ink); }
.edge-queue a.is-active { background: var(--e-brand-600); border-color: var(--e-brand-600); color: #fff; }
.edge-queue a.is-active strong { color: #fff; }
.edge-queue .dot { width: 8px; height: 8px; border-radius: 50%; }
.edge-queue .edge-skel { width: 92px; height: 34px; border-radius: 999px; background: var(--e-surface-3); }

/* ---------- ticket workspace (structure from ticket-navigation.js / ticket-workspace.js) ---------- */
.edge-ticket-workspace #navigationheader { margin: 0 0 12px !important; min-height: 40px; }
.edge-ticket-workspace #navigationheader h3 { font-size: 20px; font-weight: 680; color: var(--e-ink); letter-spacing: -.015em; }

.edge-ticket-summary {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden;
  background: var(--e-surface); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); box-shadow: var(--e-shadow-1);
}
.edge-ticket-stat { padding: 12px 16px; min-width: 0; border-right: 1px solid var(--e-line-soft); }
.edge-ticket-stat:last-child { border-right: 0; }
.edge-ticket-stat > span { display: flex; align-items: center; gap: 6px; color: var(--e-subtle); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.edge-ticket-stat > span i { font-size: 15px; color: var(--e-subtle); }
.edge-ticket-stat strong { display: block; font-size: 14.5px; font-weight: 650; color: var(--e-ink); overflow-wrap: anywhere; line-height: 1.35; }
.edge-ticket-stat[data-stat="status"] strong::before, .edge-ticket-stat[data-stat="priority"] strong::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 2px; background: var(--e-subtle);
}
.edge-ticket-stat[data-status="1"] strong::before { background: #0ea5e9; }
.edge-ticket-stat[data-status="2"] strong::before { background: var(--e-brand-600); }
.edge-ticket-stat[data-status="3"] strong::before { background: #6366f1; }
.edge-ticket-stat[data-status="4"] strong::before { background: #f59e0b; }
.edge-ticket-stat[data-status="5"] strong::before, .edge-ticket-stat[data-status="6"] strong::before { background: var(--e-success); }
.edge-ticket-stat:is(.edge-priority-1, .edge-priority-2) strong::before { background: #94a3b8; }
.edge-ticket-stat.edge-priority-3 strong::before { background: #f59e0b; }
.edge-ticket-stat.edge-priority-4 strong::before { background: #f97316; }
.edge-ticket-stat:is(.edge-priority-5, .edge-priority-6) strong::before { background: var(--e-danger); }
@media (max-width: 1199px) { .edge-ticket-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .edge-ticket-stat { border-bottom: 1px solid var(--e-line-soft); } }
@media (max-width: 575px) { .edge-ticket-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.edge-ticket-tabs {
  display: flex !important; flex-direction: column !important; min-width: 0;
  background: var(--e-surface); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); box-shadow: var(--e-shadow-1); overflow: hidden;
}
.edge-ticket-tabs > #tabspanel, .edge-ticket-tabs > #tabspanel-select, .edge-ticket-tabs > .nav-tabs { display: none !important; }
.edge-ticket-tabs > .tab-content { width: 100%; min-width: 0; border: 0 !important; }
.edge-ticket-page .edge-screen-heading { display: none; }
.edge-ticket-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--e-line); background: var(--e-surface);
}
.edge-ticket-section {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; color: var(--e-muted);
  font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.edge-ticket-section i { font-size: 16px; }
.edge-ticket-section:hover { background: var(--e-surface-2); color: var(--e-ink); }
.edge-ticket-section.active { background: var(--e-brand-50); color: var(--e-brand-800); }
.edge-ticket-section .badge { background: var(--e-surface-3) !important; color: var(--e-muted) !important; font-size: 11px; }
.edge-ticket-section.active .badge { background: var(--e-brand-100) !important; color: var(--e-brand-800) !important; }
.edge-ticket-select select {
  appearance: none; border: 1px solid var(--e-line); border-radius: 8px; background: var(--e-field) var(--e-chevron) no-repeat right 8px center / 14px;
  color: var(--e-muted); font: 600 13px var(--e-font); padding: 7px 28px 7px 10px; cursor: pointer; margin-left: 4px;
}
.edge-ticket-select select.active { border-color: var(--e-brand-300); color: var(--e-brand-800); background-color: var(--e-brand-50); }

.edge-ticket-workspace .edge-ticket-tabs > .tab-content { padding: 0 !important; overflow: visible; }
.edge-ticket-workspace .itil-object { margin: 0 !important; }
.edge-ticket-workspace .itil-left-side { padding: 16px 20px !important; background: var(--e-surface-2); border-top: 0 !important; }
.edge-ticket-workspace .timeline-item { width: 100%; min-width: 0; max-width: none; margin-bottom: 12px !important; }
.edge-ticket-workspace .timeline-item > .row { --tblr-gutter-x: 12px; flex-wrap: nowrap; }
.edge-ticket-workspace .timeline-item > .row > .col-sm { min-width: 0; }
.edge-ticket-workspace .timeline-content {
  width: 100%; max-width: none; min-width: 0; margin-top: 0 !important; color: var(--e-ink-2);
  border: 1px solid var(--e-line) !important; border-radius: 12px !important; background: var(--e-surface) !important; box-shadow: var(--e-shadow-1);
}
.edge-ticket-workspace .timeline-content::before, .edge-ticket-workspace .timeline-content::after { display: none !important; }
.edge-ticket-workspace .ITILContent .timeline-content { background: var(--e-brand-25) !important; border-color: var(--e-brand-100) !important; }
.edge-ticket-workspace .timeline-item.private-item .timeline-content { background: var(--e-warning-50) !important; border-color: var(--e-warning-200) !important; }
.edge-ticket-workspace .ITILSolution .timeline-content { background: var(--e-success-50) !important; border-color: var(--e-success-200) !important; }
.edge-ticket-workspace .ITILTask .timeline-content { background: var(--e-surface-2) !important; }
.edge-ticket-workspace .timeline-content > .card-body { padding: 12px 16px !important; }
.edge-ticket-workspace .timeline-header { margin: 0 0 6px !important; min-height: 22px; align-items: center; }
.edge-ticket-workspace .timeline-header .creator > .badge { background: transparent !important; color: var(--e-subtle) !important; font-size: 12.5px; font-weight: 500; padding: 0; gap: 5px; display: flex !important; }
.edge-ticket-workspace .timeline-header .creator a { color: var(--e-ink) !important; font-weight: 650; }
.edge-ticket-workspace .timeline-item .avatar {
  width: 36px; height: 36px; min-width: 36px; font-size: 13px; font-weight: 700; border-radius: 50% !important;
  color: var(--e-brand-800) !important; background-color: var(--e-brand-100) !important; box-shadow: none;
}
.edge-ticket-workspace .timeline-item .read-only-content { font-size: 14.5px; line-height: 1.65; color: var(--e-ink-2); }
.edge-ticket-workspace .timeline-item .read-only-content p:last-child { margin-bottom: 0; }
.edge-ticket-workspace .ITILContent .card-title { margin: 0 0 8px !important; padding: 0 !important; background: none !important; border: 0; font-size: 16px; font-weight: 680; }
.edge-ticket-workspace .ITILContent .rich_text_container { background: none !important; padding: 0 !important; }
.edge-empty-description { color: var(--e-subtle); font-style: italic; font-size: 13px; }
.edge-ticket-workspace [data-edge-empty="1"] > :not(.edge-empty-description) { display: none !important; }

.edge-ticket-workspace .itil-right-side { background: var(--e-surface) !important; border-left: 1px solid var(--e-line) !important; margin: 0 !important; }
.edge-details-nav { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--e-line); background: var(--e-surface); position: sticky; top: 0; z-index: 5; }
.edge-details-nav button, .edge-details-nav select {
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--e-muted); font: 600 13px var(--e-font); padding: 6px 10px;
}
.edge-details-nav button:hover { background: var(--e-surface-2); color: var(--e-ink); }
.edge-details-nav button.active { background: var(--e-brand-50); color: var(--e-brand-800); }
.edge-details-nav select { margin-left: auto; border-color: var(--e-line); appearance: none; background: var(--e-field) var(--e-chevron) no-repeat right 8px center / 14px; padding-right: 28px; max-width: 45%; }
.edge-ticket-workspace #itil-data > .accordion-item[hidden] { display: none !important; }
.edge-ticket-workspace #itil-data > .accordion-item > .accordion-header { display: none; }
.edge-ticket-workspace #itil-data > .accordion-item > .accordion-collapse { display: block !important; height: auto !important; }
.edge-ticket-workspace #itil-data .accordion-body { padding: 14px !important; margin: 0 !important; }
.edge-ticket-workspace .itil-right-side .form-field { margin-bottom: 12px !important; }
.edge-ticket-workspace .itil-right-side .form-field > .col-form-label { font-size: 12.5px !important; color: var(--e-subtle) !important; font-weight: 600; padding: 0 0 5px !important; width: 100% !important; flex: 0 0 100% !important; }
.edge-ticket-workspace .itil-right-side .form-field > .field-container { width: 100% !important; flex: 0 0 100% !important; min-width: 0; }
.edge-ticket-workspace .itil-right-side .form-field .select2-container { max-width: 100%; }
.edge-ticket-workspace .edge-extra-properties { border-top: 1px solid var(--e-line); padding: 10px 0 0; margin-top: 2px; width: 100%; }
.edge-extra-properties > summary { cursor: pointer; font-size: 13px; color: var(--e-brand-700); font-weight: 600; margin-bottom: 10px; }
.edge-ticket-workspace .itil-footer { margin: 0 !important; background: var(--e-surface) !important; min-height: 54px; border-top: 1px solid var(--e-line); }
.edge-ticket-workspace .itil-footer .switch-panel-width, .edge-ticket-workspace .itil-footer .collapse-panel { display: none !important; }
.edge-ticket-workspace [data-testid="timeline-Document_Item"] img.pswp-trigger { max-height: 100px; max-width: 150px; width: auto; object-fit: contain; border-radius: 8px; }
.edge-attachment-caption { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--e-ink-2); font-size: 13px; }
.edge-attachment-caption span { font-size: 12px; color: var(--e-subtle); }

@media (min-width: 992px) {
  .edge-ticket-workspace .itil-object { display: grid !important; grid-template-columns: minmax(0, 64fr) minmax(340px, 36fr) !important; height: var(--edge-pane-height, calc(100dvh - 300px)); }
  .edge-ticket-workspace #itil-object-container .itil-left-side,
  .edge-ticket-workspace #itil-object-container .itil-right-side { width: 100% !important; max-width: 100%; height: 100%; min-height: 0; overflow: auto; transition: none; scrollbar-gutter: stable; }
  .edge-ticket-workspace .itil-footer .timeline-buttons { width: 64% !important; }
  .edge-ticket-workspace .itil-footer .form-buttons { max-width: 36% !important; }
  body.edge-ticket-create .itil-object { height: auto; max-height: none; align-items: start; }
  body.edge-ticket-create #itil-object-container .itil-left-side, body.edge-ticket-create #itil-object-container .itil-right-side { height: auto !important; }
}
@media (max-width: 991px) {
  .edge-ticket-workspace .itil-object { display: flex !important; flex-direction: column; height: auto !important; }
  .edge-ticket-workspace .itil-footer { position: sticky; bottom: 0; z-index: 10; }
}
.edge-ticket-create .picture-block, .edge-ticket-create .content-block > .d-flex { display: none !important; }
.edge-ticket-create .content-block { width: 100%; }
.edge-ticket-create .timeline-content input[name="name"] { font-size: 16px !important; min-height: 42px; font-weight: 600; }

/* ---------- login ---------- */
body.edge-login { background: var(--e-canvas) !important; color: var(--e-ink-2); }
.edge-login #page > .flex-fill { margin-top: 0 !important; padding: 32px 20px !important; min-height: 100vh; display: flex; align-items: center; }
.edge-login .container-tight { max-width: 1040px !important; width: 100%; padding: 0 !important; }
.edge-login .container-tight > .text-center:first-child { display: none; }
.edge-login .main-content-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--e-surface);
  border: 1px solid var(--e-line); border-radius: 20px; box-shadow: var(--e-shadow-2);
}
.edge-login .main-content-card > .card-header { display: none; }
.edge-story {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 44px; min-height: 580px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #8b5cf6 0%, transparent 55%), linear-gradient(160deg, #6d28d9 0%, #4c1d95 100%);
}
.edge-story::after {
  content: ""; position: absolute; z-index: -1; inset: auto -160px -200px auto; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02);
}
.edge-story-copy { margin: auto 0 28px; }
.edge-eyebrow { display: block; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.edge-story .edge-eyebrow { color: #ddd6fe; }
.edge-story h1 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 680; margin: 14px 0 16px; }
.edge-story p { color: #ede9fe; font-size: 15px; line-height: 1.65; max-width: 360px; margin-bottom: 26px; }
.edge-feature { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.edge-feature > i { padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 20px; }
.edge-feature strong { display: block; font-size: 14px; font-weight: 600; }
.edge-feature span { font-size: 12.5px; color: #ddd6fe; }
.edge-story-footer { color: #c4b5fd; font-size: 11px; letter-spacing: .14em; }
.edge-login .main-content-card > .card-body { padding: 56px 48px; display: flex; align-items: center; }
.edge-login .card-body > form { width: 100%; }
.edge-login .card-body > form > .row { flex-direction: column; flex-wrap: nowrap; }
.edge-login .card-body > form > .row > * { width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; padding: 0 !important; text-align: left !important; }
.edge-login-fields .card-header { padding: 0; border: 0; margin-bottom: 26px !important; }
.edge-login-fields .edge-eyebrow { color: var(--e-brand-700); }
.edge-login-fields h2 { margin: 10px 0 8px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; color: var(--e-ink); }
.edge-login-intro { color: var(--e-subtle); font-size: 14px; line-height: 1.6; margin: 0; }
.edge-login .form-control { min-height: 44px; }
.edge-login .btn-primary { min-height: 44px; border-radius: 10px; }

/* Google sign-in block (DISPLAY_LOGIN hook) */
.edge-sso { display: flex; flex-direction: column; gap: 10px; margin: 0 0 6px; }
.edge-sso__google {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--e-line-strong); background: var(--e-surface); color: var(--e-ink) !important;
  font: 600 15px var(--e-font); text-decoration: none !important; box-shadow: var(--e-shadow-1); transition: border-color .15s, box-shadow .15s, background .15s;
}
.edge-sso__google:hover { border-color: var(--e-brand-300); box-shadow: var(--e-shadow-2); background: var(--e-brand-25); }
.edge-sso__hint { margin: 0; font-size: 12.5px; color: var(--e-subtle); text-align: center; }
.edge-sso__error { padding: 10px 12px; border-radius: 10px; background: var(--e-danger-50); color: var(--e-danger-700); border: 1px solid var(--e-danger-200); font-size: 13px; }
.edge-login-divider { display: flex; align-items: center; gap: 12px; color: var(--e-subtle); font-size: 12px; margin: 18px 0 14px; }
.edge-login-divider::before, .edge-login-divider::after { content: ""; flex: 1; height: 1px; background: var(--e-line); }
.edge-password-toggle { border: 0; background: none; padding: 0; color: var(--e-subtle); font: 500 12.5px var(--e-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: block; margin: 16px auto 0; }
.edge-password-toggle:hover { color: var(--e-ink); }
html.edge-sso-first .edge-login-fields .mb-3:has(#login_name),
html.edge-sso-first .edge-login-fields .mb-4:has(#login_password),
html.edge-sso-first .edge-login-fields .mb-2:has(#login_remember),
html.edge-sso-first .edge-login-fields .mb-3:has(select[name="auth"]),
html.edge-sso-first .edge-login-fields .form-footer { display: none; }

@media (max-width: 860px) {
  .edge-login .main-content-card { grid-template-columns: 1fr; }
  .edge-story { min-height: auto; padding: 28px; }
  .edge-story-copy { margin: 22px 0 0; }
  .edge-story .edge-feature, .edge-story-footer { display: none; }
  .edge-story h1 { font-size: 28px; }
  .edge-login .main-content-card > .card-body { padding: 32px 24px; }
}

/* ---------- misc GLPI surfaces ---------- */
.glpi-logo { background-image: url("/branding/edge-purple.svg"); }
.debug-active .debug-panel, #debug-toolbar { font-family: var(--e-font); }
.timeline-badges .badge, .itil-footer .badge { border-radius: 999px; }
.accordion-button:not(.collapsed) { background: var(--e-brand-25); color: var(--e-brand-800); box-shadow: inset 0 -1px 0 var(--e-line); }
.list-group-item.active { background: var(--e-brand-50); color: var(--e-brand-800); border-color: var(--e-brand-100); }
.progress-bar { background-color: var(--e-brand-600); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- light / dark toggle ---------- */
.edge-theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 6px; border-radius: 10px;
  border: 1px solid var(--e-line); background: var(--e-surface); color: var(--e-muted); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.edge-theme-toggle:hover { background: var(--e-surface-2); color: var(--e-ink); border-color: var(--e-line-strong); }
.edge-theme-toggle:focus-visible { outline: 0; box-shadow: var(--e-focus); }
.edge-theme-toggle i { font-size: 18px; }
.edge-theme-toggle:disabled { opacity: .6; cursor: progress; }

/* Service Catalog shortcut in the agent top bar (pill, brand action colour) */
.edge-catalog-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; margin-right: 8px;
  border-radius: var(--e-radius-pill); background: var(--e-action); color: #fff; font-weight: 600; font-size: 13.5px;
  line-height: 1; white-space: nowrap; text-decoration: none; box-shadow: var(--e-shadow-1);
  transition: background .12s, box-shadow .12s;
}
.edge-catalog-btn:hover { background: var(--e-action-hover); color: #fff; box-shadow: var(--e-shadow-lilac); }
.edge-catalog-btn:active { background: var(--e-action-active); }
.edge-catalog-btn:focus-visible { outline: 0; box-shadow: var(--e-focus); color: #fff; }
.edge-catalog-btn i { font-size: 17px; }
@media (max-width: 767.98px) { .edge-catalog-btn { display: none; } }

/* ---------- dark mode: pieces GLPI paints with fixed colours ---------- */
:root[data-glpi-theme-dark="1"] .dropdown-menu { --tblr-dropdown-bg: var(--e-surface); --tblr-dropdown-border-color: var(--e-line); --tblr-dropdown-link-color: var(--e-ink-2); --tblr-dropdown-link-hover-bg: var(--e-surface-2); }
:root[data-glpi-theme-dark="1"] .table { --tblr-table-bg: transparent; --tblr-table-color: var(--e-ink-2); --tblr-table-border-color: var(--e-line); --tblr-table-hover-bg: var(--e-surface-2); --tblr-table-striped-bg: var(--e-surface-2); }
:root[data-glpi-theme-dark="1"] .modal-content { background: var(--e-surface); border-color: var(--e-line); }
:root[data-glpi-theme-dark="1"] .select2-dropdown, :root[data-glpi-theme-dark="1"] .select2-search__field { background: var(--e-surface) !important; color: var(--e-ink-2) !important; }
:root[data-glpi-theme-dark="1"] .select2-selection__rendered { color: var(--e-ink-2) !important; }
:root[data-glpi-theme-dark="1"] .avatar { color: #fff; }
:root[data-glpi-theme-dark="1"] .select2-container--default .select2-selection--single,
:root[data-glpi-theme-dark="1"] .select2-container--default .select2-selection--multiple { background-color: var(--e-field) !important; }
:root[data-glpi-theme-dark="1"] .select2-container--default.select2-container--disabled .select2-selection--single,
:root[data-glpi-theme-dark="1"] .select2-container--default.select2-container--disabled .select2-selection--multiple,
:root[data-glpi-theme-dark="1"] .form-control:disabled, :root[data-glpi-theme-dark="1"] .form-select:disabled,
:root[data-glpi-theme-dark="1"] .form-control[readonly] { background-color: var(--e-surface-2) !important; color: var(--e-muted) !important; opacity: 1; }
:root[data-glpi-theme-dark="1"] .select2-container--disabled .select2-selection__rendered { color: var(--e-muted) !important; }

/* editor iframes: let the document inside choose its scheme (set by edge-shell.js), never an opaque white canvas */
:root[data-glpi-theme-dark="1"] iframe.tox-edit-area__iframe { background: var(--e-field) !important; }
:root[data-glpi-theme-dark="1"] .tox .tox-edit-area { background: var(--e-field); }
:root[data-glpi-theme-dark="1"] .tox.tox-tinymce { border-color: var(--e-line-strong) !important; border-radius: var(--e-radius) !important; }
:root[data-glpi-theme-dark="1"] .tox :is(.tox-toolbar-overlord, .tox-toolbar__primary, .tox-editor-header, .tox-statusbar) { background: var(--e-surface-2) !important; }

/* ==========================================================================
   Overview screens: same language as the boards (cards, chips, pills), light + dark, full width.
   ========================================================================== */

/* shared chip (also defined in edge-board.css for boards) */
.eb-chip {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--e-brand-50); color: var(--e-brand-600); border: 1px solid var(--e-brand-100); font-size: 19px;
}
:root[data-glpi-theme-dark="1"] .eb-chip { color: var(--e-brand-700); }

/* ---------- list cells: GLPI colour blocks (priority, urgency, late SLA) become Edge pills ---------- */
.search-results .badge_block {
  display: inline-flex !important; align-items: center; gap: 7px; width: auto; max-width: 100%;
  border: 1px solid var(--e-line) !important; border-radius: var(--e-radius-pill); padding: 2px 10px 2px 8px;
  background: var(--e-surface-2); color: var(--e-ink-2); font-size: 12px; font-weight: 600; line-height: 1.6;
}
.search-results .badge_block > span:first-child { width: 8px !important; height: 8px; min-width: 8px; border-radius: 50%; display: inline-block; }
.search-results td[data-searchopt-content-id="82"] .badge_block, .search-results td[data-searchopt-content-id="18"] .badge_block {
  background: var(--e-danger-50); border-color: var(--e-danger-200) !important; color: var(--e-danger-700);
}

/* ---------- Statistics / Reports picker ---------- */
.edge-picker-native { display: none !important; }
.edge-picker { padding: 4px 4px 32px; }
.edge-picker__head { display: flex; align-items: center; gap: 14px; margin: 6px 0 22px; }
.edge-picker__head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: var(--e-ink); }
.edge-picker__head p { margin: 3px 0 0; color: var(--e-muted); font-size: 14px; }
.edge-picker__group + .edge-picker__group { margin-top: 26px; }
.edge-picker__group h2 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--e-subtle);
}
.edge-picker__group h2 i { font-size: 16px; color: var(--e-brand-500); }
.edge-picker__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.edge-picker__card {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 40px 16px 16px;
  background: var(--e-surface); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); box-shadow: var(--e-shadow-1);
  color: var(--e-ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.edge-picker__card:hover { color: var(--e-ink); border-color: var(--e-brand-200); box-shadow: var(--e-shadow-lilac); transform: translateY(-1px); }
.edge-picker__icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 21px;
  background: var(--e-brand-50); color: var(--e-brand-600); border: 1px solid var(--e-brand-100);
}
:root[data-glpi-theme-dark="1"] .edge-picker__icon { color: var(--e-brand-700); }
.edge-picker__go { position: absolute; right: 14px; top: 14px; color: var(--e-subtle); font-size: 17px; transition: transform .15s, color .15s; }
.edge-picker__card:hover .edge-picker__go { color: var(--e-brand-600); transform: translate(2px, -2px); }

/* ---------- Statistics detail pages: filter card, tables, chart cards, full width ---------- */
.container.mx-auto.mb-3.p-0[style*="80%"] { width: 100% !important; max-width: none !important; }
.page-body table.tab_cadre_fixehov, .page-body table.tab_cadrehov, .page-body table.tab_cadre_fixe {
  width: 100%; background: var(--e-surface); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); overflow: hidden;
  border-collapse: separate; border-spacing: 0; box-shadow: var(--e-shadow-1); color: var(--e-ink-2);
}
.page-body :is(table.tab_cadre_fixehov, table.tab_cadrehov, table.tab_cadre_fixe) th {
  background: var(--e-surface-2) !important; color: var(--e-subtle) !important; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--e-line) !important;
}
.page-body :is(table.tab_cadre_fixehov, table.tab_cadrehov, table.tab_cadre_fixe) td { padding: 9px 12px; border-bottom: 1px solid var(--e-line-soft) !important; background: transparent !important; }
.page-body :is(table.tab_cadre_fixehov, table.tab_cadrehov) tbody tr:hover td { background: var(--e-surface-2) !important; }

/* ---------- Planning (FullCalendar) ---------- */
.fc {
  --fc-border-color: var(--e-line); --fc-page-bg-color: var(--e-surface); --fc-neutral-bg-color: var(--e-surface-2);
  --fc-today-bg-color: var(--e-brand-25); --fc-now-indicator-color: var(--e-action); --fc-event-border-color: transparent;
  --fc-list-event-hover-bg-color: var(--e-surface-2); color: var(--e-ink-2);
}
.fc .fc-button, .fc .fc-button-primary {
  background: var(--e-surface) !important; border: 1px solid var(--e-line-strong) !important; color: var(--e-ink-2) !important;
  border-radius: var(--e-radius-pill) !important; font-weight: 600; font-size: 13px; text-transform: none; box-shadow: none !important; padding: 6px 14px;
}
.fc .fc-button:hover { background: var(--e-surface-2) !important; color: var(--e-ink) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
  background: var(--e-action) !important; border-color: var(--e-action) !important; color: #fff !important;
}
.fc .fc-button-group > .fc-button { border-radius: 0 !important; }
.fc .fc-button-group > .fc-button:first-child { border-radius: var(--e-radius-pill) 0 0 var(--e-radius-pill) !important; }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 var(--e-radius-pill) var(--e-radius-pill) 0 !important; }
.fc .fc-toolbar-title { font-size: 18px !important; font-weight: 700; color: var(--e-ink); letter-spacing: -.015em; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number, .fc .fc-timegrid-axis-cushion, .fc .fc-timegrid-slot-label-cushion { color: var(--e-muted); font-weight: 600; text-decoration: none; }
.fc .fc-day-today .fc-col-header-cell-cushion, .fc .fc-day-today .fc-daygrid-day-number { color: var(--e-brand-600); }
.fc .fc-event { border-radius: 6px; font-weight: 600; box-shadow: var(--e-shadow-1); }
#planning_container .form-check-input:checked, #planning_filter .form-check-input:checked { background-color: var(--e-action); border-color: var(--e-action); }

/* ---------- Kanban ---------- */
.kanban .kanban-column, .kanban-container .kanban-column {
  background: var(--e-surface-2) !important; border: 1px solid var(--e-line) !important; border-radius: var(--e-radius-lg) !important;
}
.kanban .kanban-column-header { background: transparent !important; border-bottom: 1px solid var(--e-line) !important; color: var(--e-ink); font-weight: 650; }
.kanban .kanban-item, .kanban-item.card {
  background: var(--e-surface) !important; border: 1px solid var(--e-line) !important; border-radius: var(--e-radius) !important; box-shadow: var(--e-shadow-1);
  color: var(--e-ink-2);
}
.kanban .kanban-item:hover { border-color: var(--e-brand-200) !important; box-shadow: var(--e-shadow-lilac); }
.kanban-container > .alert, .kanban > .alert, .kanban .alert-info, .kanban-container .alert {
  background: var(--e-surface) !important; color: var(--e-muted) !important; border: 1px dashed var(--e-line-strong) !important;
  border-radius: var(--e-radius-lg) !important; padding: 22px !important; text-align: center; font-weight: 500;
}
.kanban-toolbar select, .kanban-toolbar .form-select, .kanban-toolbar input { border-radius: var(--e-radius-pill) !important; }

/* ---------- native dashboard grid (embeds / Setup > Dashboards preview) ---------- */
.dashboard .card, .grid-stack-item-content.card {
  background: var(--e-surface) !important; color: var(--e-ink-2) !important; border: 1px solid var(--e-line) !important;
  border-radius: var(--e-radius-lg) !important; box-shadow: var(--e-shadow-1) !important;
}
.dashboard .big-number, .dashboard .card.big-number, .dashboard .multiple-numbers .line {
  background: var(--e-surface) !important; color: var(--e-ink) !important; background-image: none !important;
}
.dashboard .big-number :is(.formatted-number, .number) { color: var(--e-ink) !important; font-weight: 700; }
.dashboard .big-number :is(.label, .main-label) { color: var(--e-muted) !important; }
.dashboard .big-number .main-icon {
  color: var(--e-brand-600) !important; background: var(--e-brand-50); border: 1px solid var(--e-brand-100); border-radius: 10px; padding: 6px; opacity: 1 !important;
}

/* ---------- central tabs (if reached directly) ---------- */
.masonry_grid .card, .central .card { border-radius: var(--e-radius-lg) !important; }

/* ---------- ticket form: title aligned left, no centred dead space ---------- */
.edge-ticket-workspace :is(.navigationheader, .itil-header-title) { justify-content: flex-start !important; }
.edge-ticket-workspace :is(.navigationheader-title, h3.navigationheader-title) { text-align: left !important; margin-left: 0 !important; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* ---------- full width for every core page ---------- */
.page-body > :is(.container-xl, .container-narrow, .container):not(.edge-keep-width) { max-width: none !important; }

/* search toolbar: active sort / active search chips in brand tints (GLPI paints them peach and green) */
.search-controls .btn-active-sort, .search-controls .btn-active-search { background: var(--e-brand-50) !important; color: var(--e-brand-700) !important; border: 1px solid var(--e-brand-200) !important; }

/* planning: GLPI paints toolbar buttons from --tblr-secondary with !important under an id; re-point the variables inside the toolbar */
.fc .fc-toolbar { --tblr-secondary: var(--e-surface); --tblr-secondary-fg: var(--e-ink-2); --tblr-primary-fg: #fff; }
.fc .fc-toolbar .fc-button-primary { box-shadow: inset 0 0 0 1px var(--e-line-strong) !important; }
.fc .fc-toolbar .fc-button-primary.fc-button-active { box-shadow: none !important; }
.fc .fc-day-today, .fc .fc-timegrid-col.fc-day-today, .fc .fc-daygrid-day.fc-day-today { background: var(--e-brand-25) !important; }
.fc .event_today { background: var(--e-brand-50) !important; }

/* closed status dot is black in core: invisible in dark */
:root[data-glpi-theme-dark="1"] :is(.itilstatus, .itilstatus-like).closed { --status-color: #94a3b8; }

/* matching schemes between the iframe element and its (light) document keeps the editor canvas transparent */
:root[data-glpi-theme-dark="1"] iframe.tox-edit-area__iframe { color-scheme: light; }

/* native file picker button in Edge style */
input[type=file]::file-selector-button { border: 0; border-right: 1px solid var(--e-line); background: var(--e-brand-50); color: var(--e-brand-700); font-weight: 600; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--e-brand-100); }
.fileupload, .fileupload_info { border-radius: var(--e-radius) !important; }

/* GLPI marks some buttons (form Submit, wizard steps) align-items-end: icon and label sink; always centre */
.btn.align-items-end, .btn.align-items-start, .btn.align-items-baseline { align-items: center !important; }
