/* Shared ticket UI styles.
   Extracted from Tickets.razor's inline <style> so the ticket list, the ticket
   detail dialog and the Meine Arbeit page all render consistently on any page. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ticket-overview-shell {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
}

.saas-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border-radius: 12px;
}

.command-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.command-input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 8px;
}

.command-input::placeholder {
    color: #6b7280;
}

.chip-control {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1f2937;
    border-radius: 999px;
}

.saas-table thead {
    background: #f8fafc;
}

.saas-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.saas-table tbody tr:hover {
    background: #f9fafb;
}

.ticket-mono {
    font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
    letter-spacing: 0.02em;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.compact-table-wrap {
    width: 100%;
    overflow: hidden;
}

.compact-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
    font-size: 0.75rem;
}

.compact-table th,
.compact-table td {
    white-space: nowrap;
    padding: 6px 8px;
}

.compact-comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.compact-comment-badge.has-comments {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.compact-comment-badge.no-comments {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

@media (max-width: 1280px) {
    .compact-table {
        font-size: 0.7rem;
    }

    .compact-table th,
    .compact-table td {
        padding: 5px 6px;
    }

    .compact-hide-xl {
        display: none;
    }
}

@media (max-width: 1024px) {
    .compact-table {
        font-size: 0.68rem;
    }

    .compact-hide-lg {
        display: none;
    }
}

@media (max-width: 768px) {
    .compact-table {
        font-size: 0.65rem;
    }

    .compact-table th,
    .compact-table td {
        padding: 4px 5px;
    }

    .compact-hide-md {
        display: none;
    }
}

/* Contenteditable Placeholder-Stil */
div[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

div[contenteditable="true"]:focus {
    outline: none;
}

/* Verhindere, dass beim Pasten von Text unnötiger Stil mitkommt */
div[contenteditable="true"] * {
    font-family: inherit;
    font-size: inherit;
}

.resizable-contenteditable {
    resize: vertical;
    overflow: auto;
    max-height: 70vh;
}
