body.app-shell {
    background: #f5f7fb;
    color: #1f2937;
}

.app-navbar {
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
}

.app-navbar .nav-link,
.app-navbar .navbar-brand {
    color: rgba(255, 255, 255, 0.92) !important;
}

.app-navbar .nav-link-insights {
    margin-left: 0.5rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.card {
    border: 0;
    border-radius: 1rem;
}

.plain-text-box {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    margin-bottom: 0;
}

.chip-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.375rem;
    border: 1px solid #dee2e6;
    border-radius: 1.25rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chip-editor:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-input {
    min-width: 16rem;
    flex: 1 1 16rem;
    border: 0;
    box-shadow: none !important;
    background: transparent;
}

.chip {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.32rem 0.45rem 0.32rem 0.7rem;
    border: 1px solid #d7dde7;
    border-radius: 999px;
    background: #eef3fb;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.2;
}

.chip-remove,
.chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.08);
    color: #6b7280;
    line-height: 1;
    padding: 0;
}

.chip-remove:hover,
.chip button:hover {
    background: rgba(31, 41, 55, 0.16);
    color: #111827;
}

.chip-button {
    cursor: pointer;
}

.executor-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--executor-color) 14%, white);
    border: 1px solid color-mix(in srgb, var(--executor-color) 38%, white);
    color: var(--executor-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.ticket-date-with-stripes {
    display: inline-grid;
    grid-template-columns: 0.22rem 0.22rem auto;
    align-items: stretch;
    gap: 0.22rem;
    min-height: 1.7rem;
}

.ticket-row-stripe {
    width: 0.22rem;
    border-radius: 999px;
}

.executor-stripe {
    background: var(--executor-color);
}

.status-stripe-primary {
    background: #0d6efd;
}

.status-stripe-secondary {
    background: #6c757d;
}

.status-stripe-success {
    background: #198754;
}

.status-stripe-warning {
    background: #ffc107;
}

.status-stripe-info {
    background: #0dcaf0;
}

.status-stripe-danger {
    background: #dc3545;
}

.ticket-filters-toggle {
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.ticket-filters-toggle:hover {
    color: #0d6efd;
    text-decoration: none;
}

.timeline {
    display: grid;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .ticket-filters .ticket-filters-body {
        display: none;
        padding-top: 0;
    }

    .ticket-filters.is-open .ticket-filters-body {
        display: block;
    }

    .ticket-filters {
        border-radius: 0.75rem;
    }
}

.timeline-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
}

.lead-comment {
    min-width: 14rem;
    max-width: 24rem;
    white-space: pre-wrap;
    word-break: break-word;
}
