/* ====================================================
   COMMON STYLES — shared across all pages
   ==================================================== */
@import url('animations.css');
@import url('darktheme.css');

/* Base */
html { font-size: clamp(14px, 1rem + 0.2vw, 18px); overflow-y: scroll; }

/* Apply custom font to all form/UI elements.
   --custom-font is set per-page via an inline :root block. */
body { font-family: var(--custom-font); }
form, input, select, textarea, button, label { font-family: var(--custom-font) !important; }
.form-control, .form-select, .btn, .dropdown-menu,
.ts-control, .ts-dropdown, .tooltip, .popover, .badge,
.tg-btn-primary, .tg-btn-ghost, .modal-title {
    font-family: var(--custom-font) !important;
}

/* ── Navbar ── */
.navbar { background-color: var(--nav-bg, #1e293b); border-bottom: 1px solid var(--nav-border, rgba(255,255,255,0.1)); padding: 0.6rem 0; position: sticky; top: 0; z-index: 1030; }
.navbar-brand { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.5px; color: var(--nav-brand-color, #ffffff) !important; }
.btn-nav-ghost { background-color: var(--nav-ghost-bg, rgba(255,255,255,0.07)) !important; border: 1px solid var(--nav-ghost-border, rgba(255,255,255,0.18)) !important; color: var(--nav-ghost-text, rgba(255,255,255,0.85)) !important; }
.btn-nav-ghost:hover { background-color: var(--nav-ghost-hover-bg, rgba(255,255,255,0.15)) !important; border-color: var(--nav-ghost-hover-border, rgba(255,255,255,0.35)) !important; color: var(--nav-ghost-hover-text, #ffffff) !important; }
.btn-nav-ghost::after { background-color: var(--nav-ghost-ripple, rgba(255,255,255,0.25)) !important; }
.navbar .btn-primary { background-color: var(--nav-primary-bg, #4f46e5) !important; color: var(--nav-primary-text, #ffffff) !important; border-color: var(--nav-primary-bg, #4f46e5) !important; }
.navbar .btn-primary:hover { background-color: var(--nav-primary-hover-bg, #4338ca) !important; }
.navbar .btn-primary::after { background-color: var(--nav-primary-ripple, #4f46e5) !important; }
.dropdown-toggle::after { display: none !important; }

/* ── Cards ── */
.card { border: none; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* ── Buttons ── */
.btn { border-radius: 0.5rem; font-weight: 600; padding: 0.4rem 0.8rem; transition: all 0.2s; font-size: 0.85rem; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.btn-primary { background-color: #4f46e5; border: none; }
.btn-primary:hover { background-color: #4338ca; transform: translateY(-1px); }

/* Global Button Ripple */
@keyframes btn-ripple-outline {
    0%   { transform: scaleX(1)   scaleY(1);   opacity: 0.4; }
    100% { transform: scaleX(1.4) scaleY(1.6); opacity: 0; }
}
.btn:not(.btn-link) { position: relative; overflow: visible; transition: all 0.2s; border-radius: 8px !important; }
.btn:not(.btn-link)::after {
    content: ""; display: inline-block; height: 100%; width: 100%;
    border: 0; border-radius: 8px; position: absolute; top: 0; left: 0;
    z-index: -1; transition: all 0.4s;
}
.btn-primary::after   { background-color: var(--ripple-primary,   #4f46e5); }
.btn-secondary::after { background-color: var(--ripple-secondary, #6c757d); }
.btn-success::after   { background-color: var(--ripple-success,   #198754); }
.btn-danger::after    { background-color: var(--ripple-danger,    #dc3545); }
.btn-warning::after   { background-color: #ffc107; }
.btn-info::after      { background-color: #0dcaf0; }
.btn-light::after     { background-color: #f8f9fa; }
.btn-dark::after      { background-color: #212529; }
.btn-nav-ghost::after { background-color: var(--ripple-ghost, #ffffff); }
.btn[class*="btn-outline-"]::after { background-color: var(--ripple-outline, #4f46e5); }
.btn[class*="btn-outline-"]::after { opacity: 0; transition: none; }
.btn:not([class*="btn-outline-"])::after { opacity: 0.4; }
.btn:not(.btn-link):hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.btn[class*="btn-outline-"]:hover::after { animation: btn-ripple-outline 0.45s ease-out forwards; }
.btn:not(.btn-link):hover::after { transform: scaleX(1.4) scaleY(1.6); opacity: 0; }
.btn:not(.btn-link):active { transform: translateY(-1px); box-shadow: 0 5px 10px rgba(0,0,0,0.15); }

/* ── Form Controls ── */
.form-control, .form-select { border-radius: 0.5rem; border: 1px solid #cbd5e1; padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.form-control:focus, .form-select:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,0.1); outline: none; }

/* ── Modals ── */
.modal-content { border: none; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 1.5rem; position: relative; }
.modal-header .btn-close { position: absolute; right: 1.5rem; top: 1.5rem; margin: 0; }
.modal-footer { border-top: 1px solid #f1f5f9; padding: 1.25rem; }

/* ── Assignee / next-action badge ── */
.b-assignee, .b-next { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 6px; font-size: 11px; font-weight: 600; border: none; white-space: nowrap; }
.b-assignee .av, .b-next .av { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }

/* ── Status badge ── */
.b-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.b-status .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; animation: dot-pulse 1.8s ease-in-out infinite; }
.b-status.status-is-closed .dot { display: none; }

/* ── Follow-up badge ── */
.b-fu {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; white-space: nowrap !important;
    flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.countdown-text { white-space: nowrap !important; display: inline-block; }
.b-fu .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.b-fu.fu-now  { background: var(--fu-now-bg, #dc2626); color: var(--fu-now-text, #fff); }
.b-fu.fu-now  .dot { background: var(--fu-now-dot, #fca5a5); animation: dot-pulse 1.4s ease-in-out infinite; }
.b-fu.fu-now::after  { content: ''; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: shimmer 2s ease-in-out infinite; }
.b-fu.fu-soon { background: var(--fu-soon-bg, #d97706); color: var(--fu-soon-text, #fff); }
.b-fu.fu-soon .dot { background: var(--fu-soon-dot, #fde68a); animation: dot-pulse 2s ease-in-out infinite; }
.b-fu.fu-soon::after { content: ''; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 2.5s ease-in-out infinite; }
.b-fu.fu-closed { background: transparent; color: var(--fu-closed-bg, #16a34a); padding: 0; }
.b-fu.fu-closed .dot { display: none; }
.b-fu.fu-closed::after { display: none; }

/* ── Time-remaining badge ── */
.b-time {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--fu-waiting-bg, #eff6ff); color: var(--fu-waiting-text, #1d4ed8);
    border-radius: 6px; padding: 3px 9px;
    font-size: 11px; font-weight: 600; border: 1px solid var(--fu-waiting-ring, #bfdbfe);
    font-variant-numeric: tabular-nums;
}
.b-time .ring { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--fu-waiting-ring, #bfdbfe); border-top-color: var(--fu-waiting-ring-top, #3b82f6); flex-shrink: 0; animation: spin 1.1s linear infinite; }

/* ── Follow-up label ── */
.fu-label { font-size: 9.5px; color: #9ca3af; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; min-width: 24px; display: inline-block; }

/* ── Animations — see animations.css ── */

/* ── Pagination ── */
.pg-btn { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.pg-btn-link { border:1px solid #e5e7eb; background:#fff; color:#374151; transition:background .15s; text-decoration:none; }
.pg-btn-link:hover { background:#f3f4f6; color:#374151; }
.pg-btn-disabled { border:1px solid #e5e7eb; background:#f9fafb; color:#9ca3af; cursor:default; pointer-events:none; }
.pg-btn-active { background:#4f46e5; color:#fff; font-weight:600; border:none; }
.pg-dots { width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:12px; color:#9ca3af; letter-spacing:1px; }

/* ── Custom Tooltip ── */
.tt-tip {
    position: fixed;
    z-index: 10020;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity .12s ease;
    filter: none !important;
}
.tt-tip.tt-tip--show { visibility: visible; opacity: 1; }

/* ── Notifications ── */
.tt-toast-wrap { position: fixed; top: 64px; right: 20px; z-index: 10010; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.tt-toast {
    pointer-events: all;
    background: #fff; border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 14px 14px 16px; min-width: 280px; max-width: 360px;
    border-top: 3px solid #22c55e;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tt-toast.tt-show { opacity: 1; transform: translateY(0); }
.tt-toast.tt-hiding { opacity: 0; transform: translateY(8px); }
.tt-toast[data-type="success"] { border-top-color: #22c55e; }
.tt-toast[data-type="danger"]  { border-top-color: #ef4444; }
.tt-toast[data-type="warning"] { border-top-color: #f59e0b; }
.tt-toast[data-type="primary"] { border-top-color: #3b82f6; }
.tt-toast-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.tt-toast[data-type="success"] .tt-toast-icon { background: #dcfce7; color: #16a34a; }
.tt-toast[data-type="danger"]  .tt-toast-icon { background: #fee2e2; color: #dc2626; }
.tt-toast[data-type="warning"] .tt-toast-icon { background: #fef3c7; color: #d97706; }
.tt-toast[data-type="primary"] .tt-toast-icon { background: #dbeafe; color: #1d4ed8; }
.tt-toast-body { flex: 1; min-width: 0; }
.tt-toast-title { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.tt-toast-sub { font-size: 12px; color: #64748b; margin-top: 2px; line-height: 1.4; }
.tt-toast-close { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 15px; padding: 0; line-height: 1; flex-shrink: 0; margin-top: 1px; transition: color 0.12s; }
.tt-toast-close:hover { color: #374151; }

/* ── Sidebar ── */
.sidebar { width: 200px; flex-shrink: 0; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; padding: 16px 0; background: #fff; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; transition: width 0.22s cubic-bezier(0.4,0,0.2,1); }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar.no-transition { transition: none !important; }
.sidebar.collapsed { width: 52px; }
.sidebar.collapsed .sb-text { display: none !important; }
.sidebar.collapsed .sb-item { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.sidebar.collapsed .sb-item i { width: auto; }
.sidebar.collapsed .sb-section { padding: 0 4px; }
.sidebar.collapsed .sb-bottom { padding: 0 4px; padding-top: 12px; }
.sb-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 20px 12px; flex-shrink: 0; }
.sb-brand-icon { width: 32px; height: 32px; border-radius: 8px; background: #1654D1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.sb-brand-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.sb-toggle-btn { flex-shrink: 0; margin-left: auto; width: 24px; height: 24px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 11px; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.sb-toggle-btn:hover { background: #f1f5f9; border-color: #d1d5db; color: #374151; }
.sb-section { padding: 0 8px; margin-bottom: 4px; }
.sb-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 8px; margin-bottom: 4px; margin-top: 12px; display: block; }
.sb-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; font-size: 13px; color: #4b5563; cursor: pointer; transition: background 0.12s; text-decoration: none; }
.sb-item:hover { background: #f9fafb; color: #1f2937; }
.sb-item.active { background: #EFF6FF; color: #1654D1; font-weight: 600; }
.sb-item i { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }
.sb-item-danger { color: #dc2626 !important; }
.sb-item-danger:hover { background: #fff5f5 !important; }
.sb-count { margin-left: auto; background: #1654D1; color: #fff; font-size: 10px; font-weight: 700; border-radius: 20px; padding: 1px 7px; }
.sb-bottom { margin-top: auto; padding: 0 8px; border-top: 1px solid #e5e7eb; padding-top: 12px; flex-shrink: 0; }
/* Collapsed: center the icon, hide the toggle btn, click brand icon to expand */
.sidebar.collapsed .sb-brand { justify-content: center; padding-left: 4px; padding-right: 4px; cursor: pointer; }
.sidebar.collapsed .sb-toggle-btn { display: none; }
.sidebar.collapsed .sb-brand-icon { position: relative; }
.sidebar.collapsed .sb-brand:hover .sb-brand-icon::after { content: '›'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.32); border-radius: 8px; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; }

/* ── Topbar ── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.topbar-title { font-size: 18px; font-weight: 700; color: #1f2937; white-space: nowrap; }
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search form { position: relative; display: flex; align-items: center; }
.topbar-search input { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 7px 30px 7px 32px; font-size: 13px; color: #374151; outline: none; background: #f9fafb; font-family: inherit; }
.topbar-search input:focus { border-color: #1654D1; background: #fff; box-shadow: 0 0 0 3px rgba(22,84,209,0.1); }
.topbar-search-icon { position: absolute; left: 10px; color: #9ca3af; font-size: 14px; pointer-events: none; z-index: 1; }
.topbar-clear { position: absolute; right: 8px; color: #9ca3af; font-size: 14px; text-decoration: none; line-height: 1; }
.topbar-clear:hover { color: #6b7280; }
.topbar-spacer { flex: 1; }
.topbar-bell { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; font-size: 16px; text-decoration: none; position: relative; flex-shrink: 0; background: #fff; }
.topbar-bell:hover { background: #f9fafb; color: #374151; }
.topbar-bell.rml-active { background: #fff7ed; border-color: #fed7aa; color: #f59e0b; }
.topbar-darkmode-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; font-size: 16px; flex-shrink: 0; background: #fff; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.topbar-darkmode-btn:hover { background: #f9fafb; color: #374151; }
body.dark-mode .topbar-darkmode-btn { background: #1e293b; border-color: #334155; color: #f1c40f; }
.topbar-badge-bell { position: absolute; top: -5px; right: -5px; background: #1654D1; color: #fff; font-size: 9px; font-weight: 700; border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center; line-height: 14px; }
.topbar-user-btn { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; background: #fff; }
.topbar-user-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.topbar-avatar { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar-username { font-size: 13px; font-weight: 500; color: #374151; }
.hdr-dd-item { display: block; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #0f172a; text-decoration: none; transition: background 0.12s; }
.hdr-dd-item:hover { background: #f8fafc; color: #0f172a; }
.hdr-dd-danger { color: #ef4444 !important; }
.hdr-dd-danger:hover { background: #fff5f5 !important; }

/* ── Shared action buttons (used in modals across the app) ── */
.tg-btn-primary { display:inline-flex; align-items:center; gap:6px; background:#1654D1; color:#fff; border:1px solid #1654D1; border-radius:6px; padding:6px 16px; font-size:13px; font-weight:600; cursor:pointer; transition:opacity 0.12s; white-space:nowrap; }
.tg-btn-primary:hover { opacity:0.88; }
.tg-btn-ghost { display:inline-flex; align-items:center; gap:6px; background:#fff; color:#374151; border:1px solid #e5e7eb; border-radius:6px; padding:6px 14px; font-size:13px; font-weight:500; cursor:pointer; transition:background 0.12s; white-space:nowrap; }
.tg-btn-ghost:hover { background:#f9fafb; border-color:#d1d5db; }

/* ── Notification bell panel ── */
.notif-panel { width:360px;padding:0;border-radius:14px;border:1px solid #e2e8f0;box-shadow:0 8px 30px rgba(0,0,0,0.12);overflow:hidden; }
.notif-panel-hdr { display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid #f1f5f9; }
.notif-panel-title { font-size:14px;font-weight:700;color:#0f172a; }
.notif-mark-all { font-size:12px;font-weight:500;color:#1654D1;background:none;border:none;cursor:pointer;padding:0; }
.notif-mark-all:hover { text-decoration:underline; }
.notif-list { max-height:380px;overflow-y:auto; }
.notif-item { display:flex;align-items:flex-start;gap:10px;padding:11px 16px 11px 20px;border-bottom:1px solid #f8fafc;cursor:pointer;position:relative;transition:background 0.1s; }
.notif-item:last-child { border-bottom:0; }
.notif-item:hover { background:#f8fafc; }
.notif-item.unread { background:#fafbff; }
.notif-item.unread::before { content:'';position:absolute;left:7px;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;background:#1654D1; }
.notif-icon { width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0; }
.notif-icon.type-ticket_update  { background:#eff6ff;color:#1654D1; }
.notif-icon.type-ticket_changed { background:#fefce8;color:#d97706; }
.notif-icon.type-rml_due        { background:#fff1f2;color:#e11d48; }
.notif-icon.type-ticket_deleted { background:#fef2f2;color:#dc2626; }
.notif-body { flex:1;min-width:0; }
.notif-title { font-size:13px;font-weight:600;color:#1e293b;line-height:1.3; }
.notif-desc  { font-size:12px;color:#64748b;margin-top:2px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.notif-time  { font-size:11px;color:#94a3b8;margin-top:3px; }
.notif-empty { padding:32px 16px;text-align:center;color:#94a3b8;font-size:13px; }

/* ── RML Set Reminder Modal ── */
.rml-preset-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.45rem; }
.rml-preset-chip { display:flex; align-items:center; gap:0.4rem; padding:0.45rem 0.7rem; border-radius:0.5rem; font-size:0.78rem; font-weight:600; border:1px solid; cursor:pointer; transition:filter 0.12s; text-align:left; line-height:1.3; background:none; }
.rml-preset-chip:hover { filter:brightness(0.93); }
.rml-preset-chip .rml-chip-icon { font-size:0.8rem; flex-shrink:0; }
.rml-preset-chip:last-child:nth-child(odd) { grid-column:1/-1; }
.rml-chip--fast { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.rml-chip--fast .rml-chip-icon { color:#16a34a; }
.rml-chip--day  { background:#fefce8; border-color:#fde68a; color:#92400e; }
.rml-chip--day  .rml-chip-icon { color:#d97706; }
.rml-chip--week { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.rml-chip--week .rml-chip-icon { color:#2563eb; }
.rml-chip--weekday { background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
.rml-chip--weekday .rml-chip-icon { color:#7c3aed; }

/* ── Tom Select — global shape and behaviour ── */
.ts-wrapper { border-radius: 0.5rem !important; background-color: #fff !important; }
.ts-dropdown { border-radius: 0.5rem !important; font-size: 13px !important; }
.ts-dropdown .option { padding: 7px 12px !important; }
.ts-control input { font-size: inherit !important; min-width: 0 !important; }
.ts-wrapper.single .ts-control { flex-wrap: nowrap !important; overflow: hidden; }
.ts-wrapper.single .ts-control .ts-item { background: transparent !important; color: inherit !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; border: none !important; font-weight: inherit !important; font-size: inherit !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ts-wrapper.single.has-items:not(.input-active) .ts-control input { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }

/* ── Dark/light mode transition ── */
body.theme-transition,
body.theme-transition .card,
body.theme-transition .card-header,
body.theme-transition .card-footer,
body.theme-transition .card-body,
body.theme-transition .modal-content,
body.theme-transition .modal-header,
body.theme-transition .modal-footer,
body.theme-transition .modal-body,
body.theme-transition .sidebar,
body.theme-transition .topbar,
body.theme-transition .form-control,
body.theme-transition .form-select,
body.theme-transition .input-group-text,
body.theme-transition .dropdown-menu,
body.theme-transition .dropdown-item,
body.theme-transition .table,
body.theme-transition .table td,
body.theme-transition .table th,
body.theme-transition .list-group-item,
body.theme-transition .accordion-item,
body.theme-transition .accordion-button,
body.theme-transition .accordion-body,
body.theme-transition .topbar-darkmode-btn,
body.theme-transition .sb-item,
body.theme-transition .sb-toggle-btn,
body.theme-transition p,
body.theme-transition span,
body.theme-transition h1, body.theme-transition h2, body.theme-transition h3,
body.theme-transition h4, body.theme-transition h5, body.theme-transition h6 {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important;
}

/* Modal background blur — only when a ticket detail modal is open */
body.td-modal-blur > *:not(.modal):not(.modal-backdrop):not(#tt-toast-wrap):not(.ts-dropdown):not(.tooltip):not(.bs-tooltip-auto):not(#sessionIdleBanner):not(#tt-title-tip):not(.tt-tip) {
    filter: blur(3px);
    transition: filter 0.2s ease;
}
body:not(.td-modal-blur) > *:not(.modal):not(.modal-backdrop):not(#tt-toast-wrap):not(.ts-dropdown):not(.tooltip):not(.bs-tooltip-auto):not(#sessionIdleBanner):not(#tt-title-tip):not(.tt-tip) {
    filter: none;
    transition: filter 0.2s ease;
}


