/* Ticket Description Suggester - Styles v2.0 */

/* ── Autocomplete Dropdown ──────────────────────────────────────────────────── */

.ticket-title-dropdown {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #c3d4e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ticket-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f0f4f8;
    outline: none;
}

.ticket-dropdown-item:last-child {
    border-bottom: none;
}

.ticket-dropdown-item:hover,
.ticket-dropdown-item.is-active {
    background: #f0f6fc;
}

.ticket-dropdown-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.ticket-dropdown-title {
    font-size: 13px;
    color: #1d2327;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.ticket-dropdown-customer {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    background: #eef2f7;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Description Autofill Button ────────────────────────────────────────────── */

.ticket-desc-autofill {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 8px 12px;
    background: #f0f6fc;
    border: 1px solid #c3d4e8;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    flex-wrap: wrap;
}

.ticket-desc-autofill em {
    font-style: normal;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ticket-desc-autofill-label {
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticket-desc-autofill-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ticket-desc-autofill-btn:hover {
    background: #135e96;
}

.ticket-desc-autofill-dismiss {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.ticket-desc-autofill-dismiss:hover {
    color: #333;
}



.ticket-filled-notice {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #edfaf1;
    border: 1px solid #7dcea0;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
    font-size: 13px;
    color: #1a5c34;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ticket-filled-notice em {
    font-style: normal;
    font-weight: 600;
}

.ticket-filled-clear {
    margin-left: auto;
    background: none;
    border: 1px solid #7dcea0;
    color: #1a5c34;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}

.ticket-filled-clear:hover {
    background: #d5f5e3;
}
