/* css/ticket-share.css — full-screen single-ticket view (shareable deep link).
   App is dark by default; light via html[data-theme="light"]. */

.tsv-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    flex-direction: column;
    background: #0b1120;
    color: #f1f5f9;
}
.tsv-overlay.open { display: flex; }
body.tsv-open { overflow: hidden; }

/* The full-screen view hosts the REAL ticket card. Its own Open/Copy buttons in
   the tab row are redundant here (the top bar provides Back + Copy), so hide them. */
.tsv-body .ticket-detail-tab-actions { display: none !important; }

/* While the full-screen view is open, app modals + toasts must appear ABOVE it
   (e.g. "not on shift", the link-ticket modal, copy confirmation) — they live in
   the normal app layer which is below the overlay's z-index otherwise. */
body.tsv-open #notification-panel,
body.tsv-open .modal,
body.tsv-open [class*="-modal-backdrop"],
body.tsv-open .reaction-tooltip { z-index: 2147483600 !important; }

.tsv-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 14px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}
.tsv-back, .tsv-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #1f2937;
    background: #0b1120;
    color: #e5e7eb;
    border-radius: 9px;
    padding: 7px 12px;
    font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}
.tsv-back:hover, .tsv-share:hover { border-color: #6366f1; color: #fff; }
.tsv-share { margin-left: auto; background: #6366f1; border-color: #6366f1; color: #fff; }
.tsv-share:hover { background: #4f46e5; }
.tsv-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: #f1f5f9;
}

.tsv-scroll { flex: 1 1 auto; overflow-y: auto; padding: 22px 16px 48px; }
.tsv-body { max-width: 960px; margin: 0 auto; }
.tsv-state {
    max-width: 560px;
    margin: 64px auto;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* The hosted (real) ticket card fills the overlay column. */
.tsv-body .ticket-card { width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }

/* Light theme */
html[data-theme="light"] .tsv-overlay { background: #f5f7fa; color: #0f172a; }
html[data-theme="light"] .tsv-topbar { background: #ffffff; border-bottom-color: #e2e8f0; }
html[data-theme="light"] .tsv-back, html[data-theme="light"] .tsv-share { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
html[data-theme="light"] .tsv-share { background: #4f46e5; border-color: #4f46e5; color: #fff; }
html[data-theme="light"] .tsv-title { color: #0f172a; }
html[data-theme="light"] .tsv-state { color: #64748b; }
html[data-theme="light"] .tsv-body .ticket-card { box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12); }

/* Tiny copy confirmation (brief, ~1s) */
.tsv-minitoast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 2147483647;
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.tsv-minitoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
    .tsv-back span, .tsv-share span { display: none; }
    .tsv-share { padding: 8px; }
    .tsv-back { padding: 8px; }
    .tsv-scroll { padding: 14px 8px 40px; }
}
