/* Floating unassigned tickets sidebar */
.app-shell .floating-ticket-sidebar {
    position: fixed;
    top: 80px;
    margin-bottom:10px;
    right: 16px;
    width: 320px;
    z-index: 1030;
    pointer-events: none;
}

.app-shell .floating-ticket-card {
    pointer-events: auto;
    border: 1px solid #cfe0f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(10, 35, 60, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(50vh - 86px);
}

.app-shell .floating-ticket-card-assigned {
    max-height: calc(50vh - 6px);    
}

.app-shell .floating-ticket-card + .floating-ticket-card {
    margin-top: 12px;
}

.app-shell .floating-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e1ecf7;
    background: linear-gradient(120deg, #0f375f 0%, #2b74b4 100%);
}

.app-shell .floating-ticket-header h5 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.app-shell .floating-ticket-header a {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

.app-shell .floating-ticket-header-assigned {
    background: linear-gradient(120deg, #105742 0%, #1f8b68 100%);
}

.app-shell .floating-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: unset;
    overflow-y: auto;
}

.app-shell .floating-ticket-item {
    border-top: 1px solid #edf3fb;
}

.app-shell .floating-ticket-item:first-child {
    border-top: 0;
}

.app-shell .floating-ticket-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    transition: background 0.18s ease;
}

.app-shell .floating-ticket-link:hover,
.app-shell .floating-ticket-link:focus {
    background: #f4f9ff;
    text-decoration: none;
}

.app-shell .floating-ticket-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.app-shell .floating-ticket-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.app-shell .floating-ticket-badge-new {
    background: #e8fff1;
    color: #1f7a45;
    border: 1px solid #bde7cf;
}

.app-shell .floating-ticket-badge-message {
    background: #fff4df;
    color: #9a6114;
    border: 1px solid #f0d5a6;
}

.app-shell .floating-ticket-badge-assigned {
    background: #e8fff5;
    color: #1f7a58;
    border: 1px solid #b9e8d4;
}

.app-shell .floating-ticket-item.is-new-ticket .floating-ticket-link {
    background: linear-gradient(90deg, #eaf4ff 0%, #ffffff 72%);
    box-shadow: inset 4px 0 0 #2b74b4;
}

.app-shell .floating-ticket-item.has-new-message .floating-ticket-link {
    box-shadow: inset 3px 0 0 #e3a43e;
}

.app-shell .floating-ticket-item.is-new-ticket.has-new-message .floating-ticket-link {
    box-shadow: inset 4px 0 0 #2b74b4, inset 8px 0 0 #e3a43e;
}

.app-shell .floating-ticket-id {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e7f1fc;
    color: #1d5f97;
    font-size: 11px;
    font-weight: 800;
}

.app-shell .floating-ticket-title {
    display: block;
    color: #143f65;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.app-shell .floating-ticket-meta {
    display: block;
    margin-top: 3px;
    color: #4d6780;
    font-size: 11px;
    line-height: 1.35;
}

.app-shell .floating-ticket-empty {
    margin: 0;
    padding: 12px;
    color: #4d6780;
    font-size: 13px;
}

@media (max-width: 1250px) {
    .app-shell .floating-ticket-sidebar {
        display: none;
    }
}
