:root {
    --bg: #eef2f7;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbe3ef;
    --primary: #2457d6;
    --primary-dark: #173a94;
    --danger: #b91c1c;
    --ok: #15803d;
}
body.theme-dark {
    --bg: #0f172a;
    --panel: #111827;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    --line: #334155;
    --primary: #60a5fa;
    --primary-dark: #93c5fd;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: calc(16px * var(--ui-font-scale, 1)); background: var(--bg); color: var(--ink); }
a { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); transition: grid-template-columns .18s ease; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #111827; color: white; padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #60a5fa, #2563eb); font-weight: 800; flex: 0 0 auto; }
.brand span, .userbox span { display: block; color: #aab4c3; font-size: 13px; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-toggle { margin-left: auto; width: 34px; height: 34px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); color: #dbeafe; }
.sidebar-toggle:hover { background: rgba(255,255,255,.14); }
nav { display: grid; gap: 8px; }
.nav-separator { display: block; height: 1px; margin: 6px 8px; background: rgba(255,255,255,.18); }
nav a, .userbox a { color: #dbeafe; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
nav a:hover, .userbox a:hover { background: rgba(255,255,255,.08); }
.nav-icon { width: 22px; min-width: 22px; text-align: center; font-size: 18px; line-height: 1; }
.nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: grid; gap: 8px; }
.userbox-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.userbox-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.totp-invite-button { background: #f97316; color: #fff; font-weight: 800; }
.totp-invite-button span { color: #fff; }
.totp-invite-button:hover { background: #c2410c; color: #fff; }
.totp-invite-button:hover span { color: #fff; }
.user-settings-button { width: 28px; height: 28px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #dbeafe; text-decoration: none; background: rgba(255,255,255,.08); font-size: 14px; line-height: 1; }
.user-settings-button .nav-icon { width: auto; min-width: 0; line-height: 1; transform: translateY(1px); }
.user-settings-button:hover { background: rgba(255,255,255,.16); }
.sidebar-compact .shell { grid-template-columns: 78px minmax(0, 1fr); }
.sidebar-compact .sidebar { padding: 22px 12px; align-items: center; }
.sidebar-compact .brand { display: grid; justify-items: center; gap: 10px; }
.sidebar-compact .brand-text, .sidebar-compact .nav-text, .sidebar-compact .userbox strong, .sidebar-compact .userbox span, .sidebar-compact .user-settings-button { display: none; }
.sidebar-compact .sidebar-toggle { margin-left: 0; transform: rotate(180deg); }
.sidebar-compact nav a, .sidebar-compact .userbox a { justify-content: center; width: 46px; height: 46px; padding: 0; }
.sidebar-compact .nav-separator { width: 34px; margin: 4px auto; }
.sidebar-compact .nav-icon { width: auto; min-width: 0; }
.sidebar-compact .userbox { width: 100%; align-items: center; }
.content { min-width: 0; padding: 32px; }
.topbar { margin-bottom: 22px; }
.ticket-topbar { display: flex; align-items: center; gap: 16px; }
.ticket-topbar h1 { margin: 0; }
.backend-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.backend-kpis { display: grid; grid-template-columns: repeat(3, 112px) 18px repeat(2, 112px); gap: 6px; flex: 0 0 auto; align-items: stretch; }
.backend-kpi-separator { width: 1px; height: 100%; min-height: 58px; justify-self: center; background: #cbd5e1; opacity: .9; }
.backend-kpi { min-height: 58px; padding: 7px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.backend-kpi { text-decoration: none; transition: transform .12s ease, filter .12s ease; }
.backend-kpi:hover { transform: translateY(-1px); filter: saturate(1.08); }
.backend-kpi strong { display: block; font-size: 24px; line-height: 1; font-weight: 500; }
.backend-kpi span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.15; }
.kpi-waiting-reminder span { font-size: 10px; }
.kpi-open { background: #ef4444; color: #fff1f2; }
.kpi-active { background: #ffd95a; color: #7a5200; }
.kpi-mine { background: #dff1f6; color: #2286a6; }
.kpi-stale { background: #fff7ed; color: #9a3412; box-shadow: inset 0 0 0 1px #ffedd5; }
.kpi-waiting-reminder { background: #fed7aa; color: #9a3412; }
.certificate-config-field { align-self: end; min-height: 46px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 1px; }
.certificate-config-field button { height: 46px; white-space: nowrap; }
.certificate-config-field .muted { white-space: nowrap; }
.certificate-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.55); }
.certificate-modal[hidden] { display: none; }
.certificate-modal-panel { position: relative; width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border-radius: 18px; padding: 24px; box-shadow: 0 24px 70px rgba(15,23,42,.32); }
.certificate-modal-panel textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
h1, h2 { margin: 0 0 14px; }
.backend-topbar h1 { margin-bottom: 0; flex: 0 0 auto; }
.ticket-title-heading { display: flex; align-items: center; gap: 8px; }
.title-edit-button { width: 28px; height: 28px; padding: 0; border-radius: 9px; display: inline-grid; place-items: center; flex: 0 0 auto; background: #e0e7ff; color: var(--primary-dark); font-size: 17px; line-height: 1; }
.title-edit-button:hover { background: #c7d2fe; color: var(--primary-dark); }
.ticket-title-edit-form { flex: 1 1 auto; margin: 0; }
.ticket-title-edit-form input { font-size: 1em; font-weight: 800; padding: 5px 8px; border-radius: 10px; }
.meta-edit-trigger { display: inline; width: auto; padding: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; }
.meta-edit-trigger:hover { background: transparent; color: var(--primary-dark); text-decoration: underline; }
.meta-edit-form { margin: 0; }
.meta-edit-form input, .meta-edit-form select { width: 100%; min-width: 160px; padding: 6px 8px; border-radius: 9px; font-size: 13px; }
.card, .stats article { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 45px rgba(15, 23, 42, .06); padding: 22px; }
body.theme-dark .card, body.theme-dark .stats article, body.theme-dark input, body.theme-dark textarea, body.theme-dark select { background: #1e293b; color: var(--ink); border-color: var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats span, .meta span, .eyebrow { color: var(--muted); font-size: 13px; }
.stats strong { display: block; font-size: 32px; margin-top: 6px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-header-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.template-header-grid button { height: 45px; white-space: nowrap; }
.admin-group { margin-bottom: 18px; }
.admin-group > h2 { margin-bottom: 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-card { text-decoration: none; display: grid; gap: 3px; padding: 14px 16px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.admin-card h2 { margin-bottom: 2px; font-size: 18px; }
.admin-card p { margin: 0; line-height: 1.25; }
.admin-card:hover { transform: translateY(-2px); border-color: #93b4ff; box-shadow: 0 24px 55px rgba(36, 87, 214, .14); }
.admin-card span { color: var(--primary); font-weight: 800; margin-top: 4px; }
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.user-settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.user-settings-wide { grid-column: 1 / -1; }
.user-settings-tabs { display: grid; gap: 16px; }
.user-settings-tab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.user-settings-tab-list button { width: auto; border-radius: 999px; padding: 9px 14px; background: #e0e7ff; color: var(--primary-dark); }
.user-settings-tab-list button:hover { background: var(--primary); color: #fff; }
.user-settings-tab-list button.active { background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(36,87,214,.18); }
.user-settings-panel { display: none; }
.user-settings-panel.active { display: block; }
.user-settings-panel[data-user-panel="templates"] table th:first-child,
.user-settings-panel[data-user-panel="templates"] table td:first-child { width: 180px; max-width: 180px; }
.user-settings-panel[data-user-panel="templates"] table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-separator { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.personal-templates-head { align-items: center; justify-content: flex-start; gap: 10px; }
.personal-templates-head h3 { margin: 0; }
.add-template-button { width: 34px; height: 34px; padding: 0; border-radius: 999px; font-size: 20px; line-height: 1; }
.personal-template-modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.55); }
.personal-template-modal[hidden] { display: none; }
.personal-template-modal-panel { position: relative; width: min(780px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border-radius: 18px; padding: 24px; box-shadow: 0 24px 70px rgba(15,23,42,.32); }
.profile-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 0 0 18px; }
.profile-summary dt { color: var(--muted); font-weight: 700; }
.profile-summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.entity-access-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.user-settings-layout input[type="range"] { width: 100%; }
.profile-list { display: grid; align-content: start; gap: 10px; }
.profile-layout .profile-list { padding-left: 14px; padding-top: 14px; }
.profile-tab { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #f8fafc; }
.profile-tab.active { border-color: #93b4ff; background: #eff6ff; color: var(--primary-dark); }
.profile-tab span, .permission-key { color: var(--muted); font-size: 12px; }
.permission-table th:nth-child(2), .permission-table th:nth-child(3), .permission-table td:nth-child(2), .permission-table td:nth-child(3) { width: 130px; text-align: center; }
.permission-table .check { justify-content: center; }
.permission-group td { background: #f1f5f9; color: var(--primary-dark); font-weight: 800; }
.permission-key { display: block; margin-top: 3px; }
.mfa-methods-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f8fafc; }
body.theme-dark .mfa-methods-card { background: #1e293b; }
.stack { display: grid; gap: 16px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { min-width: 150px; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.comment-compose { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.comment-options { display: grid; gap: 12px; align-content: start; padding-top: 26px; }
.response-template-picker { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; min-width: 230px; }
.response-template-icon { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; background: #e0e7ff; color: var(--primary-dark); flex: 0 0 auto; }
.hidden-comment-icon { position: relative; font-size: 14px; }
.hidden-comment-icon::after { content: ''; position: absolute; width: 18px; height: 2px; border-radius: 999px; background: var(--primary-dark); transform: rotate(-38deg); }
.response-template-picker select { min-width: 190px; padding: 7px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.attachment-dropzone { position: relative; margin-top: 10px; display: grid; gap: 8px; padding: 12px 14px 16px; border: 1px dashed #bfdbfe; border-radius: 14px; background: #f8fbff; color: var(--primary-dark); cursor: pointer; overflow: visible; }
.attachment-dropzone:hover, .attachment-dropzone.is-dragover { background: #eff6ff; border-color: #3b82f6; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .24); }
.attachment-dropzone span { font-weight: 750; }
.attachment-dropzone small { color: var(--muted); font-weight: 500; }
.attachment-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attachment-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.attachment-picker-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 8px 18px rgba(36, 87, 214, .18); }
.attachment-dropzone:hover .attachment-picker-button, .attachment-dropzone.is-dragover .attachment-picker-button { background: var(--primary-dark); }
.attachment-picker-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.attachment-selected-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.attachment-selected-list[hidden] { display: none; }
.attachment-selected-item { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 8px; border-radius: 999px; background: #e0edff; color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.attachment-selected-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-selected-size { color: var(--muted); font-weight: 650; }
.attachment-selected-remove { width: 22px; height: 22px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center; background: #fee2e2; color: #991b1b; font-size: 16px; line-height: 1; }
.attachment-selected-remove:hover { background: #fecaca; color: #7f1d1d; }
.attachment-error { margin: 7px 0 0; color: var(--danger); font-size: 12px; font-weight: 700; }
.attachment-reminder-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.waiting-summary-card, .wait-reminder-card { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #fed7aa; border-left: 5px solid #f97316; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 12px; line-height: 1.35; }
.waiting-summary-card[hidden] { display: none; }
.comment-options .waiting-summary-card { width: 100%; }
.waiting-summary-card strong, .wait-reminder-card strong { font-size: 13px; color: #9a3412; }
.comment-action-button { min-height: 34px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.secret-action-row { display: inline-flex; width: max-content; gap: 18px; align-items: center; }
.secret-action-row .comment-option-toggle { width: auto; flex: 0 0 auto; }
.secret-action-button { width: 72px; min-height: 34px; padding: 8px 10px; font-size: 12px; }
.waiting-solution-row { display: flex; align-items: center; gap: 18px; }
.waiting-solution-row .switch-field { width: auto; }
.waiting-toggle .response-template-icon { background: #f97316; color: #fff; }
.waiting-toggle input:checked ~ .switch-control { background: #f97316; border-color: #f97316; }
.waiting-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .42); }
.waiting-modal[hidden] { display: none; }
.waiting-modal-panel { width: min(460px, 100%); display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); }
.waiting-modal-panel h3 { margin: 0; }
.waiting-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.secret-create-action { display: flex; justify-content: center; }
.secret-close-action { justify-content: center; }
.solution-warning { margin: 0; min-height: 102px; padding: 12px 14px; border-left: 5px solid #dc2626; border-radius: 12px; background: #fef2f2; color: var(--ink); font-size: 12px; font-weight: 400; line-height: 1.45; }
.switch-field { display: inline-flex; grid-template-columns: none; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.comment-option-toggle { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; width: 100%; }
.icon-only-toggle { grid-template-columns: 28px auto; justify-content: start; }
.comment-option-label { min-width: 0; }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { width: 36px; height: 20px; border-radius: 999px; background: #d1d5db; border: 1px solid #cbd5e1; position: relative; transition: background .16s ease, border-color .16s ease; flex: 0 0 auto; }
.switch-control::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .16s ease; }
.switch-field input:checked ~ .switch-control { background: var(--primary); border-color: var(--primary); }
.switch-field input:checked ~ .switch-control::after { transform: translateX(16px); }
.switch-field input:focus-visible ~ .switch-control { outline: 3px solid rgba(36, 87, 214, .22); outline-offset: 2px; }
.access-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.access-actions .inline-form { margin: 0; }
.form-help { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; color: #1e3a8a; }
.form-help p { margin: 6px 0 0; color: #31538f; }
.advanced-search { position: relative; margin-bottom: 12px; z-index: 8; }
.advanced-search-bar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .72); box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.advanced-search-panel { position: relative; }
.advanced-search-panel summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 12px; border: 1px solid #bbf7d0; border-radius: 9px; background: #dcfce7; color: #166534; cursor: pointer; font-size: 13px; font-weight: 800; }
.advanced-search-panel summary::-webkit-details-marker { display: none; }
.advanced-search-panel summary::after { content: '⌄'; font-size: 12px; }
.advanced-search-panel[open] summary::after { transform: rotate(180deg); }
.advanced-search-panel summary small { color: #15803d; font-weight: 650; }
.advanced-search-form { position: absolute; top: 42px; left: 0; width: min(760px, calc(100vw - 96px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 22px 55px rgba(15, 23, 42, .18); }
.advanced-search-form label { font-size: 12px; color: var(--muted); }
.advanced-search-form input, .advanced-search-form select { margin-top: 5px; padding: 8px 9px; border-radius: 9px; font-size: 13px; }
.advanced-search-form .check { display: flex; align-items: center; gap: 7px; padding-top: 20px; color: var(--ink); font-size: 13px; }
.advanced-search-form .check input { margin-top: 0; }
.advanced-search-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.advanced-sort label { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 8px 0 12px; border-radius: 9px; background: #ffedd5; color: #7c2d12; font-size: 13px; font-weight: 700; }
.advanced-sort select { width: auto; min-width: 185px; margin: 0; padding: 5px 24px 5px 6px; border: 0; background: transparent; color: #7c2d12; font-size: 13px; }
.advanced-result-count { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.glpi-search { position: relative; z-index: 8; margin-bottom: 12px; }
.glpi-search-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.glpi-search-toggle { min-height: 32px; padding: 7px 12px; border-radius: 7px; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; font-size: 13px; }
.glpi-sort { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 8px 0 12px; border-radius: 7px; background: #ffedd5; color: #7c2d12; font-size: 13px; font-weight: 700; }
.glpi-sort select { width: auto; min-width: 180px; margin: 0; padding: 5px 24px 5px 6px; border: 0; background: transparent; color: #7c2d12; font-size: 13px; }
.glpi-search-panel { position: absolute; top: 43px; left: 25px; width: min(860px, calc(100vw - 96px)); padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 20px 46px rgba(15, 23, 42, .18); }
.glpi-rule-row { display: grid; grid-template-columns: 72px minmax(220px, 1.2fr) 150px minmax(190px, 1fr) 34px; gap: 8px; align-items: center; margin-bottom: 9px; }
.glpi-rule-row:first-child .rule-link { visibility: hidden; }
.glpi-rule-row select, .glpi-rule-row input { margin: 0; min-height: 32px; padding: 6px 8px; border-radius: 7px; font-size: 13px; }
.glpi-rule-row [data-rule-value-wrap] select, .glpi-rule-row [data-rule-value-wrap] input { width: 100%; }
.glpi-search-actions { display: flex; align-items: center; gap: 8px; padding-top: 3px; }
.glpi-search-actions button[type="submit"] { min-height: 32px; padding: 7px 14px; background: #84cc16; color: #1f2937; }
.saved-search-edit-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.saved-search-edit-banner p { margin: 6px 0 0; }
.saved-search-rename-popover { position: absolute; top: 74px; left: 18px; z-index: 10; display: grid; grid-template-columns: minmax(260px, 380px) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 20px 46px rgba(15, 23, 42, .18); }
.saved-search-rename-popover[hidden] { display: none; }
.saved-search-rename-popover label { font-size: 12px; color: var(--muted); }
.saved-search-rename-popover input { margin-top: 5px; min-height: 34px; border-radius: 8px; }
.saved-search-rename-popover button { min-height: 34px; padding: 8px 13px; }
.saved-search-popover { position: absolute; top: 43px; left: 25px; z-index: 9; display: grid; grid-template-columns: minmax(260px, 360px) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 20px 46px rgba(15, 23, 42, .18); }
.saved-search-popover[hidden] { display: none; }
.saved-search-popover label { font-size: 12px; color: var(--muted); }
.saved-search-popover input { margin-top: 5px; min-height: 34px; border-radius: 8px; }
.saved-search-popover button { min-height: 34px; padding: 8px 13px; }
.saved-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.saved-searches span { color: var(--muted); font-size: 13px; font-weight: 800; margin-right: 4px; }
.saved-searches .button.small { min-height: 26px; padding: 5px 8px; border-radius: 7px; font-size: 11px; line-height: 1.15; }
.saved-searches .saved-search-link.is-active { background: #dcfce7; color: #166534; border-color: #86efac; }
.saved-searches .saved-search-default-star { color: #f59e0b; }
.saved-searches .inline-form { gap: 0; margin-left: -4px; }
.saved-searches .icon-button { width: 28px; height: 28px; border-radius: 8px; }
.saved-searches .saved-search-delete { width: 20px; height: 20px; padding: 0; border-radius: 6px; background: #fee2e2; color: #991b1b; font-size: 13px; line-height: 1; }
.saved-searches .saved-search-delete:hover { background: #dc2626; color: #fff; }
.saved-searches .saved-search-settings { width: 26px; height: 26px; padding: 0; border-radius: 7px; background: #eef2ff; color: var(--primary-dark); font-size: 13px; }
.saved-searches-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .42); }
.saved-searches-modal[hidden] { display: none; }
.saved-searches-modal-panel { position: relative; width: min(760px, 100%); max-height: min(720px, 90vh); overflow: auto; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); }
.saved-searches-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0; border-radius: 9px; }
.saved-searches-manager { display: grid; gap: 10px; margin-top: 12px; }
.saved-search-manager-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.saved-search-manager-row.is-active { border-color: #86efac; background: #f0fdf4; }
.saved-search-manager-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-search-default-star { color: #f59e0b; margin-left: 6px; }
.saved-search-manager-actions { display: flex; align-items: center; gap: 8px; }
.saved-search-manager-actions form { margin: 0; }
.saved-search-edit-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 0; }
.saved-search-edit-form input { min-height: 38px; }
.saved-search-manager-row button { min-height: 38px; padding: 8px 12px; }
.saved-search-manager-row button.danger { background: #fee2e2; color: #991b1b; }
.saved-search-manager-row button.danger:hover { background: #dc2626; color: #fff; }
.help-tooltip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: #e0e7ff; color: var(--primary-dark); font-size: 12px; font-weight: 800; cursor: help; vertical-align: middle; }
.help-tooltip > span { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); width: min(340px, 80vw); padding: 9px 11px; border-radius: 10px; background: #0f172a; color: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .22); font-size: 12px; font-weight: 500; line-height: 1.35; text-align: left; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.help-tooltip:hover > span, .help-tooltip:focus > span { opacity: 1; }
.th-with-help, .label-with-help { display: inline-flex; align-items: center; gap: 6px; }
th .help-tooltip > span { top: calc(100% + 8px); bottom: auto; }
.sortable-heading { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sort-button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1; }
.sort-button:hover, .sort-button.active { border-color: #93c5fd; background: #dbeafe; color: var(--primary-dark); }
.ticket-updated-col { width: 1%; white-space: nowrap; }
.compact-date-cell { line-height: 1.15; text-align: center; }
.compact-date-cell .date-part, .compact-date-cell .time-part { display: block; }
.compact-date-cell .time-part { color: var(--muted); font-size: 12px; margin-top: 2px; }
.requester-two-lines span { display: block; line-height: 1.2; }
.requester-two-lines .requester-entity-line { font-weight: 800; }
.requester-two-lines .requester-name-line { color: var(--muted); font-size: 12px; margin-top: 2px; }
.category-two-lines span { display: block; line-height: 1.2; }
.category-two-lines .category-parent-line { font-weight: 800; }
.category-two-lines .category-child-line { color: var(--muted); font-size: 12px; margin-top: 2px; }
.media-types-help { display: grid; gap: 6px; align-content: start; padding-top: 8px; }
.media-types-help strong { color: var(--ink); }
.grid > button:last-child { justify-self: center; }
.form-help ~ button:last-child { grid-column: 2; }
.test-smtp-form button { width: fit-content; height: 45px; align-self: end; justify-self: start; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.template-editor-main { min-width: 0; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.editor-toolbar button { padding: 8px 11px; border-radius: 10px; }
.html-editor-source { min-height: 520px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; white-space: pre; overflow: auto; }
.email-preview { width: 100%; min-height: 680px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.html-editor { min-height: 520px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; line-height: 1.5; overflow: auto; }
.simple-richtext-editor { min-height: 260px; }
.variables-panel { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f8fafc; align-self: start; }
.email-template-form .editor-actions, .email-template-form .email-preview, .email-template-form .visual-editor-panel, .simple-richtext-form .editor-toolbar, .simple-richtext-form .simple-richtext-editor { display: none !important; }
.tox-tinymce { border-radius: 12px !important; border-color: var(--line) !important; }
.variables-panel h3 { margin: 0 0 12px; }
.variable-chip { width: 100%; display: grid; gap: 3px; text-align: left; margin-bottom: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.variable-chip:hover { background: #eff6ff; color: var(--primary-dark); }
.variable-chip span { color: var(--muted); font-size: 12px; font-weight: 500; }
label { display: grid; gap: 6px; font-weight: 650; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions button:first-child { flex: 1 1 auto; }
.form-actions button[name="close_own_ticket"] { flex: 0 0 auto; margin-left: auto; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; background: white; }
option.subcategory-option { font-size: 12px; color: var(--primary-dark); }
.comment-editor { width: 100%; min-height: 118px; max-height: 520px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: white; font: inherit; font-weight: 400; line-height: 1.45; overflow: auto; }
.comment-editor:focus { outline: 2px solid rgba(36, 87, 214, .22); outline-offset: 2px; }
textarea.is-internal-draft { border-color: #fed7aa; border-left: 5px solid #f97316; background: #fff7ed; }
textarea.is-solution-draft { border-color: #bbf7d0; border-left: 5px solid #16a34a; background: #f0fdf4; }
.comment-editor.is-internal-draft { border-color: #fed7aa; border-left: 5px solid #f97316; background: #fff7ed; }
.comment-editor.is-solution-draft { border-color: #bbf7d0; border-left: 5px solid #16a34a; background: #f0fdf4; }
button, .button { border: 0; border-radius: 12px; background: var(--primary); color: white; padding: 12px 16px; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--primary-dark); }
button.small { padding: 8px 11px; font-size: 13px; }
.button.small { padding: 8px 11px; font-size: 13px; }
button.warning, .button.warning { background: #f97316; color: white; }
button.warning:hover, .button.warning:hover { background: #c2410c; color: white; }
button.success, .button.success { background: #16a34a; color: white; }
button.success:hover, .button.success:hover { background: #15803d; color: white; }
button.danger, .button.danger { background: var(--danger); color: white; }
button.danger:hover, .button.danger:hover { background: #7f1d1d; color: white; }
.icon-button { width: 32px; height: 32px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center; font-size: 20px; line-height: 1; }
.icon-button.danger { background: #fee2e2; color: var(--danger); }
.icon-button.danger:hover { background: #fecaca; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; max-width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; }
.ticket-list-table .ticket-id-col { width: 112px; min-width: 112px; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ticket-list-table td { vertical-align: top; overflow-wrap: anywhere; word-break: normal; }
.ticket-list-table { min-width: 1580px; }
.ticket-list-table .ticket-title-col { width: 380px; min-width: 380px; white-space: normal; }
.ticket-list-table .ticket-category-col { width: 150px; min-width: 150px; white-space: normal; }
.ticket-list-table .ticket-technician-col { width: 160px; min-width: 160px; white-space: normal; }
.ticket-list-table .ticket-last-actor-col { width: 160px; min-width: 160px; white-space: normal; }
.ticket-list-table .ticket-requester-col { width: 190px; min-width: 190px; white-space: normal; }
.ticket-list-table .ticket-priority-col { width: 96px; min-width: 96px; white-space: nowrap; }
.priority-label { display: inline-flex; align-items: center; gap: 6px; color: var(--priority-color); font-weight: 750; }
.priority-color-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--priority-color); flex: 0 0 auto; }
.ticket-list-table .ticket-status-col { width: 74px; min-width: 74px; white-space: nowrap; text-align: center; }
.status-emoji { font-size: 20px; line-height: 1; }
.ticket-list-table .ticket-date-col { width: 110px; min-width: 110px; white-space: nowrap; padding-right: 16px; }
.ticket-list-table .ticket-updated-col { width: 110px; min-width: 110px; white-space: nowrap; }
.ticket-list-table .ticket-action-col { width: 42px; text-align: right; }
.ticket-list-table .ticket-action-col .inline-form { justify-content: flex-end; }
.ticket-scope-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ticket-scope-filters .switch-field { width: auto; color: var(--ink); }
.ticket-list-table tr.ticket-stale-reminder td { background: #fff7ed; }
.ticket-list-table tr.ticket-stale-reminder:hover td { background: #ffedd5; }
.ticket-list-table tr.ticket-open-alert td { animation: ticket-open-alert-pulse 1.8s ease-in-out infinite; }
@keyframes ticket-open-alert-pulse {
    0%, 100% { background: #fff1f2; }
    50% { background: #fecdd3; }
}
.ticket-settings-form { grid-template-columns: minmax(240px, 1fr) minmax(320px, 1fr) auto; align-items: end; }
.collapsible-body .ticket-settings-form { margin: 14px; }
.ticket-backend-return { white-space: nowrap; }
.ticket-settings-form button[type="submit"] { min-height: 46px; height: 46px; padding: 10px 18px; align-self: end; }
.mail-maintenance-card { max-width: 720px; }
.mail-maintenance-form { display: grid; grid-template-columns: minmax(260px, 430px) auto; gap: 14px; align-items: end; }
.mail-maintenance-form textarea { min-height: 58px; resize: vertical; }
.mail-maintenance-form button[type="submit"] { min-height: 38px; padding: 8px 14px; align-self: end; font-size: 13px; }
.translation-settings-form button[type="submit"] { min-height: 34px; padding: 7px 12px; border-radius: 10px; font-size: 13px; line-height: 1.2; align-self: end; }
.api-scopes { display: grid; gap: 7px; grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.api-scopes strong { margin-bottom: 2px; }
#api-doc { display: none; }
.api-doc-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.55); }
.api-doc-modal[hidden] { display: none; }
.api-doc-modal-panel { position: relative; width: min(980px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border-radius: 18px; padding: 24px; box-shadow: 0 24px 70px rgba(15,23,42,.32); }
.api-key-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.api-key-choice button { width: auto; border-radius: 999px; padding: 8px 12px; background: #e0e7ff; color: var(--primary-dark); }
.api-key-choice button.active { background: var(--primary); color: #fff; }
.ticket-status-group td { padding: 14px 10px 8px; border-bottom: 0; background: #f8fafc; color: var(--ink); }
.ticket-status-group strong { margin-left: 8px; font-size: 14px; }
.ticket-status-group-toggle { width: 24px; height: 24px; padding: 0; margin-right: 8px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 16px; line-height: 1; vertical-align: middle; }
.ticket-group-hidden { display: none; }
.resizable-table { table-layout: fixed; min-width: 100%; }
.resizable-table th { position: relative; user-select: none; }
.resize-handle { position: absolute; top: 0; right: -3px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
.resize-handle:hover, .is-resizing-column .resize-handle { background: rgba(36, 87, 214, .18); }
.is-resizing-column { cursor: col-resize; user-select: none; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 6px; }
.collapsible-head { display: flex; align-items: center; gap: 10px; }
.collapsible-head h2 { margin: 0; }
.collapse-toggle { width: 32px; height: 32px; padding: 0; border-radius: 9px; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
.collapsible-body { margin-top: 16px; }
.collapsible-section.is-collapsed .collapsible-body { display: none; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-toolbar p { margin: 0; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.toolbar-actions form { margin: 0; }
.sync-progress-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); }
.sync-progress-box { width: min(460px, 100%); padding: 22px; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); }
.sync-progress-box strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.sync-progress-box p { margin: 0 0 16px; color: var(--muted); line-height: 1.45; }
.sync-progress-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #bfdbfe; }
.sync-progress-bar span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--primary); animation: sync-progress-slide 1.1s ease-in-out infinite; }
.sync-progress-bar.warning { background: #fed7aa; }
.sync-progress-bar.warning span { background: #f97316; }
@keyframes sync-progress-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
.search-field { min-width: 260px; max-width: 360px; font-size: 13px; color: var(--muted); }
.search-field input { margin-top: 6px; }
.table-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.table-pagination > div { display: flex; align-items: center; gap: 10px; }
.table-pagination label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; font-weight: 650; }
.table-pagination select { width: auto; padding: 7px 28px 7px 9px; border-radius: 9px; }
.table-pagination button { width: 38px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.table-pagination button:disabled { opacity: .45; cursor: not-allowed; background: #94a3b8; }
.sync-log-details { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sync-log-details li { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.info { background: #dbeafe; color: #1d4ed8; }
.badge.neutral { background: #e2e8f0; color: #475569; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.password-criteria { list-style: none; padding: 0; margin: -8px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.password-criteria li { display: flex; align-items: center; gap: 8px; }
.password-criteria li::before { content: "×"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: #fee2e2; color: var(--danger); font-weight: 900; font-size: 12px; }
.password-criteria li.is-valid { color: var(--ok); }
.password-criteria li.is-valid::before { content: "✓"; background: var(--ok); color: white; }
.password-criteria li.is-invalid { color: var(--danger); }
.mfa-card details { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; }
.mfa-card summary { cursor: pointer; font-weight: 800; }
.mfa-qr { display: flex; justify-content: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.mfa-qr img { width: 220px; height: 220px; }
.mfa-secret { display: grid; gap: 8px; padding: 16px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; }
.mfa-secret span { color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.mfa-secret strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; line-height: 1.45; color: #0f172a; }
.color-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(15, 23, 42, .18); vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.editable-options-table input { min-width: 120px; }
.new-option-row td { background: #f8fafc; border-top: 2px solid var(--line); }
.category-name-cell { display: grid; gap: 8px; }
.category-name-cell.is-child { padding-left: 34px; position: relative; }
.category-name-cell.is-child::before { content: "↳"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.category-create-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 260px) minmax(220px, 1.5fr); gap: 12px; }
.subfield { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.subfield select { padding: 8px 10px; font-size: 13px; }
.color-edit { display: flex; align-items: center; gap: 10px; }
.color-edit input[type="color"] { width: 26px; min-width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid rgba(15, 23, 42, .18); cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.emoji-input { width: 42px; min-width: 42px; height: 34px; padding: 4px 6px; text-align: center; font-size: 20px; border-radius: 10px; cursor: pointer; }
.emoji-input:focus { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(36, 87, 214, .12); outline: none; }
.emoji-picker { position: absolute; z-index: 50; width: 318px; max-width: calc(100vw - 24px); padding: 12px; border: 1px solid #334155; border-radius: 14px; background: #111827; color: #e5e7eb; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.emoji-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #bfdbfe; }
.emoji-picker-head button { width: 28px; height: 28px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #dbeafe; }
.emoji-picker input { border-color: #2563eb; background: #0f172a; color: #e5e7eb; margin-bottom: 10px; }
.emoji-picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; max-height: 210px; overflow-y: auto; padding-right: 4px; }
.emoji-picker-grid button { height: 32px; padding: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; }
.emoji-picker-grid button:hover { background: rgba(59, 130, 246, .24); }
.color-edit input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-edit input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.color-edit input[type="color"]::-moz-color-swatch { border: 0; border-radius: 6px; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; background: #dcfce7; color: var(--ok); }
.alert.error { background: #fee2e2; color: var(--danger); }
.login-card { max-width: 460px; margin: 10vh auto; }
.login-card form button[type="submit"] { margin-top: 14px; }
.ticket-page .content { font-size: 14px; }
.ticket-page .topbar h1 { font-size: 22px; }
.ticket-page h2 { font-size: 20px; }
.ticket-page .ticket-title-heading { font-size: 22px; }
.ticket-page .card { padding: 18px; }
.ticket-page input, .ticket-page textarea, .ticket-page select, .ticket-page button, .ticket-page .button { font-size: 14px; }
.ticket-page .meta span, .ticket-page .meta button, .ticket-page .comment-options, .ticket-page .comment-options select, .ticket-page .switch-field, .ticket-page .comment span { font-size: 12px; }
.ticket-page .comment p, .ticket-page .comment-body, .ticket-page .ticket-head p { font-size: 14px; }
.ticket-head { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.ticket-locked-warning { margin-top: 18px; }
.ticket-resolution-warning { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; border-left: 5px solid #16a34a; background: #f0fdf4; }
.ticket-resolution-warning p { margin: 0; }
.resolution-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.resolution-actions form { margin: 0; }
.treatment-card { margin-top: 18px; }
.comments-card { margin-top: 18px; }
.treatment-card h2 { margin-bottom: 14px; }
.meta { display: grid; gap: 10px; align-content: start; }
.requester-meta-line { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.requester-meta-line .meta-edit-trigger { min-width: 0; overflow-wrap: anywhere; }
.requester-info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 999px; background: #e0e7ff; color: var(--primary-dark); font-size: 11px; font-weight: 900; cursor: help; vertical-align: middle; }
.requester-info-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 245px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 16px 36px rgba(15, 23, 42, .16); display: none; font-size: 12px; font-weight: 500; text-align: left; }
.requester-info:hover .requester-info-popover, .requester-info:focus .requester-info-popover { display: grid; gap: 7px; }
.requester-info-popover span { display: grid; gap: 2px; color: var(--ink); font-size: 12px; }
.requester-info-popover a { color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.requester-info-popover a:hover { text-decoration: underline; }
.requester-info-popover strong { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.comment { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.comments-card .comment { width: 80%; }
.comment-client { margin-right: auto; }
.comment-technician { margin-left: auto; }
.comment-technician > strong, .comment-technician > span { display: block; text-align: right; }
.comment-author-line { display: inline-flex; align-items: center; gap: 4px; }
.comment-technician > strong.comment-author-line { display: flex; justify-content: flex-end; }
.comment span { color: var(--muted); display: block; font-size: 13px; }
.comment .requester-info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 999px; background: #e0e7ff; color: var(--primary-dark); font-size: 11px; font-weight: 900; cursor: help; vertical-align: middle; }
.comment .requester-info-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 245px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 16px 36px rgba(15, 23, 42, .16); display: none; font-size: 12px; font-weight: 500; text-align: left; }
.comment .requester-info:hover .requester-info-popover, .comment .requester-info:focus .requester-info-popover { display: grid; gap: 7px; }
.comment .requester-info-popover span { display: grid; gap: 2px; color: var(--ink); font-size: 12px; }
.comment-body { font-weight: 400; }
.comment-signature { display: block; margin-top: 1em; padding-top: 0; border-top: 0; color: inherit; font-size: inherit; }
.system-history-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #eef2ff; color: #1e3a8a; border: 1px solid #c7d2fe; }
.system-history-card span { color: #334155; }
.comment-edit { margin: 4px 0 12px; text-align: right; }
.comment-edit summary { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 8px; cursor: pointer; background: #e0e7ff; color: var(--primary-dark); font-size: 15px; font-weight: 900; list-style: none; }
.comment-edit summary::-webkit-details-marker { display: none; }
.comment-edit summary:hover { background: #c7d2fe; }
.comment-edit form { margin-top: 8px; }
.comment-edit textarea { min-height: 120px; font-size: 13px; }
.inline-comment-image { margin: 12px 0; }
.inline-comment-image a { display: block; }
.inline-comment-image img { display: block; max-width: 100%; max-height: 520px; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #f8fafc; }
.inline-comment-image figcaption { margin-top: 5px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.inline-comment-image figcaption span { display: inline; font-size: 12px; }
.inline-comment-image-download { display: inline-block; text-decoration: none; font-size: 18px; line-height: 1; transition: transform .14s ease, filter .14s ease; }
.inline-comment-image-download:hover { transform: translateY(-1px); filter: saturate(1.2); }
.comment-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ticket-initial-attachments { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ticket-initial-attachments > strong { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.category-authorization-modal { width: min(980px, calc(100vw - 32px)); }
.category-authorization-grid .table-wrap { max-height: 420px; overflow: auto; }
.archive-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.archive-result h2 { margin-bottom: 4px; }
.archive-result h2 a { color: var(--ink); text-decoration: none; }
.archive-result h2 a:hover { color: var(--primary); }
.archive-results { display: grid; gap: 14px; }
.archive-summary-note { border-left: 4px solid #f59e0b; background: #fffbeb; }
.archive-summary-note textarea { min-height: 180px; }
.attachment-item { display: inline-flex; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 999px; overflow: visible; background: #f8fafc; }
.comment-attachments a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: var(--primary-dark); text-decoration: none; font-size: 12px; font-weight: 700; }
.comment-attachments a:hover { background: #eff6ff; border-radius: 999px; }
.attachment-download { border-left: 1px solid var(--line); min-width: 34px; justify-content: center; font-size: 17px; line-height: 1; transition: transform .14s ease, filter .14s ease; }
.attachment-download:hover { transform: translateY(-1px); filter: saturate(1.2); }
.attachment-item .inline-form { display: inline-flex; flex: 0 0 auto; margin: 0; }
.attachment-delete { width: 28px; min-width: 28px; height: 28px; margin: 2px 3px 2px 0; padding: 0; border-radius: 999px; background: #fee2e2; color: var(--danger); font-size: 18px; line-height: 1; }
.attachment-delete:hover { background: #fecaca; color: var(--danger); }
.comment-attachments .attachment-name span { display: inline; color: var(--muted); font-size: 11px; }
.attachment-preview-popover { position: fixed; z-index: 1000; max-width: calc(100vw - 28px); height: 320px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 45px rgba(15, 23, 42, .22); pointer-events: none; }
.attachment-preview-popover img, .attachment-preview-popover iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; object-fit: contain; background: #f8fafc; }
.attachment-fullscreen { position: fixed; inset: 0; z-index: 2000; padding: 52px 24px 24px; background: rgba(15, 23, 42, .86); }
.attachment-fullscreen-close { position: absolute; top: 14px; right: 18px; width: 36px; height: 36px; padding: 0; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--ink); font-size: 24px; line-height: 1; }
.attachment-fullscreen-body { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.attachment-fullscreen-body img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border: 0; border-radius: 14px; object-fit: contain; background: white; }
.attachment-fullscreen-body iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: white; }
.internal-comment { border: 1px solid #fed7aa; border-left: 5px solid #f97316; background: #fff7ed; }
.internal-comment-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.comment .translation-comment-badge { display: inline-flex; width: auto; margin: 2px 0 0; padding: 2px 7px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.comment .translation-comment-info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 2px 0 0 5px; border-radius: 999px; background: #e0e7ff; color: var(--primary-dark); font-size: 10px; font-weight: 900; cursor: help; vertical-align: middle; }
.comment .translation-comment-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 35; width: min(340px, 70vw); max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 16px 36px rgba(15, 23, 42, .16); display: none; font-size: 12px; font-weight: 500; line-height: 1.35; text-align: left; text-transform: none; letter-spacing: normal; white-space: pre-wrap; }
.comment .translation-comment-info:hover .translation-comment-popover, .comment .translation-comment-info:focus .translation-comment-popover { display: block; }
.solution-comment { border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; background: #f0fdf4; }
.solution-comment-badge { display: block; width: 100%; margin: 2px 0 0; padding: 0; border-radius: 0; background: transparent; color: #166534; font-size: 11px; font-weight: 800; text-align: right; text-transform: uppercase; letter-spacing: .03em; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.install { max-width: 720px; margin: 12vh auto; background: white; border-radius: 20px; padding: 28px; }

/* ERP-inspired blue skin */
:root {
    --bg: #f3f7fc;
    --panel: #ffffff;
    --ink: #122033;
    --muted: #64748b;
    --line: #d9e3f1;
    --primary: #0b72b9;
    --primary-dark: #07558d;
    --blue-soft: #edf6fd;
    --blue-soft-2: #f7fbff;
    --blue-head: #eaf4fb;
}
body { background: linear-gradient(180deg, #e8f2fb 0, #f7f9fc 260px); }
body.color-theme-purple { --primary: #7b4f91; --primary-dark: #5d3b6f; --blue-soft: #f4eef7; --blue-soft-2: #fbf8fc; --blue-head: #f1e9f4; }
body.color-theme-green { --primary: #168064; --primary-dark: #0f5d49; --blue-soft: #ecf8f4; --blue-soft-2: #f8fcfb; --blue-head: #e8f5f0; }
body.color-theme-orange { --primary: #c56a1d; --primary-dark: #914b12; --blue-soft: #fff4e8; --blue-soft-2: #fffaf5; --blue-head: #fff0df; }
.sidebar { background: linear-gradient(180deg, #0b5f9a, #074b7e); color: #f8fbff; box-shadow: 8px 0 24px rgba(7, 75, 126, .14); }
body.color-theme-purple .sidebar, body.color-theme-purple .topbar, body.color-theme-purple .backend-topbar { background: linear-gradient(180deg, #7b4f91, #5d3b6f); }
body.color-theme-green .sidebar, body.color-theme-green .topbar, body.color-theme-green .backend-topbar { background: linear-gradient(180deg, #168064, #0f5d49); }
body.color-theme-orange .sidebar, body.color-theme-orange .topbar, body.color-theme-orange .backend-topbar { background: linear-gradient(180deg, #c56a1d, #914b12); }
.brand-mark { border-radius: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.brand span, .userbox span { color: #cfe7f8; }
nav { gap: 5px; }
nav a, .userbox a { color: #f1f8ff; border-radius: 9px; padding: 9px 11px; }
nav a:hover, .userbox a:hover { background: rgba(255,255,255,.14); }
.nav-separator { background: rgba(255,255,255,.24); }
.content { padding: 24px; }
.topbar { min-height: 52px; margin: -24px -24px 18px; padding: 12px 22px; background: #0b5f9a; color: #fff; box-shadow: 0 8px 22px rgba(7, 75, 126, .18); }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.backend-topbar { background: #0b5f9a; }
.card, .stats article { padding: 0; border-color: var(--line); border-radius: 7px; background: var(--panel); box-shadow: 0 7px 18px rgba(42, 73, 104, .08); overflow: hidden; }
.card > h2, .card > .section-head, .collapsible-head { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--blue-head); color: #16456f; }
.card > h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.card > p, .card > form, .card > .stack, .card > .grid, .card > .table-wrap, .card > .profile-summary, .card > .entity-access-list, .card > .admin-grid, .card > .archive-search-form, .card > .page-toolbar, .card > .user-settings-tabs, .card > .section-head + * { margin: 14px; }
.stats article { padding: 14px; }
.stats article span { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.stats strong { color: var(--primary-dark); font-size: 28px; }
.admin-group > h2 { display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 8px; padding: 7px 12px; border-radius: 999px; background: #dff0fb; color: #16456f; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.admin-card { padding: 12px 14px; border-radius: 7px; }
.admin-card h2 { color: #16456f; font-size: 16px; }
.admin-card:hover { transform: none; border-color: #9acdea; box-shadow: 0 10px 28px rgba(11, 114, 185, .12); }
.user-settings-tab-list, .saved-searches, .glpi-search-toolbar, .advanced-search-bar, .ticket-scope-filters { padding: 8px 10px; border-radius: 7px; background: var(--panel); box-shadow: 0 5px 16px rgba(42, 73, 104, .06); }
.user-settings-tab-list button, .api-key-choice button, .saved-searches .button.small, .button.small, button.small { min-height: 28px; border-radius: 999px; padding: 6px 11px; }
.user-settings-panel[data-user-panel="security"] .section-separator,
.user-settings-panel[data-user-panel="security"] h3,
.user-settings-panel[data-user-panel="security"] h3 + p,
.user-settings-panel[data-user-panel="security"] h3 + p + p,
.user-settings-panel[data-user-panel="security"] .mfa-card,
.user-settings-panel[data-user-panel="security"] > .card > a.button { margin-left: 14px; margin-right: 14px; }
.user-settings-panel[data-user-panel="security"] > .card > a.button { margin-bottom: 14px; }
button, .button { border-radius: 6px; background: var(--primary); box-shadow: inset 0 -1px 0 rgba(0,0,0,.1); }
button:hover, .button:hover { background: var(--primary-dark); }
input, textarea, select, .comment-editor { border-radius: 6px; border-color: #cfd9e6; background: #fff; }
input:focus, textarea:focus, select:focus, .comment-editor:focus { outline: 2px solid rgba(11, 114, 185, .18); border-color: #7bb9df; }
.table-wrap { border-radius: 0; }
table { background: #fff; }
th, td { padding: 8px 10px; border-bottom-color: #e1e8f2; }
th { background: #f1f7fc; color: #40576f; font-size: 12px; font-weight: 800; text-transform: uppercase; }
tbody tr:hover td { background: #f5faff; }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.badge.info, .attachment-selected-item, .response-template-icon, .help-tooltip, .requester-info, .comment .requester-info, .comment .translation-comment-info { background: #dff0fb; color: #07558d; }
.badge.neutral { background: #eef3f8; color: #52667a; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.backend-kpi { border-radius: 999px; min-height: 30px; padding: 5px 11px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.backend-kpi strong { font-size: 15px; font-weight: 850; }
.backend-kpi span { margin: 0; font-size: 11px; line-height: 1.1; }
.kpi-open, .kpi-active, .kpi-mine, .kpi-stale, .kpi-waiting-reminder { background: rgba(255,255,255,.16); color: #fff; }
.comment, .system-history-card, .mfa-methods-card, .variables-panel, .api-scopes { border-radius: 7px; background: var(--blue-soft-2); }
.internal-comment { background: #fff8ed; }
.solution-comment { background: #f0fdf4; }
.alert { border-radius: 7px; }
body.theme-dark .topbar { background: #0f172a; }

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .content { padding: 18px; }
    .stats, .grid.two, .grid.three, .admin-grid, .ticket-head, .comment-compose, .user-settings-layout { grid-template-columns: 1fr; }
    .comments-card .comment { width: 100%; }
    .comment-options { padding-top: 0; }
    .template-header-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: 1fr; }
    .section-head { display: grid; }
    .page-toolbar { display: grid; }
    .search-field { max-width: none; min-width: 0; }
    .form-help ~ button:last-child { grid-column: auto; }
}
