/* FixQR.pl - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: bezpieczne obszary i wygodne dotykanie */
@media (max-width: 767px) {
    body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .btn, .sidebar-nav a, .sidebar-nav button.sidebar-nav-group-toggle { min-height: 44px; min-width: 44px; }
}

/* Mobile: panele podglądu/dodawania mają przewijać się jako całość */
@media (max-width: 767px) {
    .entity-mobile-modal {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
    }

    .entity-mobile-modal-content,
    .entity-mobile-modal-stack {
        flex: 0 0 auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .entity-mobile-modal-stack {
        display: block !important;
    }

    .entity-mobile-modal-stack > aside,
    .entity-mobile-modal-stack > main,
    .entity-mobile-modal-stack > div {
        width: 100% !important;
        min-height: auto !important;
        overflow: visible !important;
    }
}

/* Leaflet MarkerCluster: klastry nad kafelkami, spójne z mapą urządzeń */
.leaflet-marker-pane .marker-cluster-small,
.leaflet-marker-pane .marker-cluster-medium,
.leaflet-marker-pane .marker-cluster-large {
    z-index: 600;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Bez transform — inaczej potomkne position:fixed „przyklejają się” do tego boxa zamiast do viewportu (popory filtrów nagłówka). */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-slide-in {
    animation: slideIn 0.2s ease-out forwards;
}

/* Status & Priority Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active { background-color: #dcfce7; color: #166534; }
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-new { background-color: #dbeafe; color: #1e40af; }
.status-w-trakcie { background-color: #fce7f3; color: #831843; }
.status-zamknięte { background-color: #e0e7ff; color: #3730a3; }
.status-na-przegląd { background-color: #fef3c7; color: #92400e; }

/* Urządzenia zutylizowane na liście (gdy włączone „Pokaż zutylizowane”) */
.card.device-disposed-ghost {
    opacity: 0.9;
    filter: grayscale(0.42);
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92)) !important;
    box-shadow: 0 1px 2px rgba(148, 163, 184, 0.15) !important;
}
.card.device-disposed-ghost:hover {
    border-color: #94a3b8 !important;
    filter: grayscale(0.35);
}
tbody tr.device-disposed-ghost td {
    background-color: rgba(248, 250, 252, 0.75);
    color: #64748b;
}
tbody tr.device-disposed-ghost td:first-child {
    box-shadow: inset 3px 0 0 0 #cbd5e1;
}
tbody tr.device-disposed-ghost:hover td {
    background-color: rgba(241, 245, 249, 0.95);
}
tbody tr.device-disposed-ghost .text-teal-600 {
    color: #94a3b8 !important;
}
tbody tr.device-disposed-ghost .font-medium,
tbody tr.device-disposed-ghost .text-gray-900 {
    color: #57534e !important;
}

.priority-badge { 
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-pilne { background-color: #fee2e2; color: #991b1b; }
.priority-zwykłe { background-color: #e0e7ff; color: #3730a3; }
.priority-niskie { background-color: #f1f5f9; color: #475569; }

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-flush {
    padding: 0;
}

/**
 * Combobox / autocomplete „nad” layoutem — panel absolutny, bez rozpychania strony.
 * Użycie: wrapper .fixqr-combobox (position relative), wewnątrz input + .fixqr-combobox__panel.
 */
.fixqr-combobox {
    position: relative;
    z-index: 40;
    isolation: isolate;
}

.fixqr-combobox__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    max-height: min(15rem, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: #fff;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.08),
        0 4px 6px -4px rgb(0 0 0 / 0.08);
    z-index: 50;
}

/** Brak miejsca pod inputem — lista nad polem (planer / uniwersalny combobox). */
.fixqr-combobox__panel.fixqr-combobox__panel--up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* Stats */
.stat-box {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border: none;
    outline: none;
}
@media (min-width: 640px) {
    .stat-box { padding: 1.25rem 1.5rem; }
}

.stat-box-secondary {
    background: linear-gradient(135deg, #64748b 0%, #78716c 100%);
}

.stat-box-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-box-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* Sidebar Navigation */
.sidebar-nav a,
.sidebar-nav button.sidebar-nav-group-toggle {
    transition: all 0.2s;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    cursor: pointer;
}

.sidebar-nav button.sidebar-nav-group-toggle {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
}

.sidebar-nav a:hover,
.sidebar-nav button.sidebar-nav-group-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav a.active,
.sidebar-nav button.sidebar-nav-group-toggle.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

/* Tables */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

.table-striped tbody tr:hover {
    background-color: #f1f5f9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0f766e;
    color: white;
}

.btn-primary:hover {
    background-color: #0d5f5c;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Nad mapą fullscreen z-[52] i panelami z-[60]; poniżej globalnych dropdownów z-[9999] */
    z-index: 100;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/**
 * Checkbox / radio obok tekstu: Tailwindowe `label.flex` / `label.inline-flex` trafiają
 * do `.form-group`, ale powyższe `label { display: block }` oraz `input { width: 100% }`
 * ładują się PO CDN Tailwind i nadpisują układ — checkbox na całą szerokość, tekst pod spodem.
 * Przywracamy display z intencji Tailwinda i nie rozciągamy inputów wyboru na 100%.
 */
.form-group label.flex {
    display: flex;
}
.form-group label.inline-flex {
    display: inline-flex;
}
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    min-width: 1.25rem;
    height: auto;
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f766e;
    ring: 2px;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Role checkboxes: nie rozciągaj na 100%, nie ustawiaj label na block */
.form-group .role-checkbox-list input[type="checkbox"] {
    width: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}
.form-group .role-checkbox-list .role-row-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: inherit;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

[x-cloak] {
    display: none !important;
}

/* Status dropdown – fixed, zawsze na wierzchu, bez przycinania */
.status-dropdown-fixed {
    position: fixed;
    z-index: 9999;
}

/* Reużywalny avatar użytkownika (kółko + inicjały lub zdjęcie) – 24px jak ikonki w pełnej historii */
.user-avatar {
    min-width: 1.5rem;
    min-height: 1.5rem;
}

/* Modale: pole tożsamości (nazwa / tytuł) — wyraźnie jak formularz, nie jak nagłówek strony */
.modal-identity-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}
.modal-identity-field {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-identity-field:focus-within {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}
.modal-identity-input {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
}
.modal-identity-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}
.modal-identity-input--ticket {
    font-size: 1rem;
}
.modal-identity-input--secondary {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.modal-identity-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tippy.js – nowoczesny wygląd tooltipów */
.tippy-box[data-theme~="light-border"] {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
}
.tippy-content {
    padding: 0.25rem 0.5rem;
}

/* Choices.js – tylko wewnątrz .search-select-host (select z wyszukiwarką) */
.search-select-host + .choices[data-type*="select-one"] .choices__inner,
.choices[data-type*="select-one"] .choices__inner {
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: #fff;
    color: #1e293b;
}
.choices[data-type*="select-one"].is-open .choices__inner {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.choices__list--dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #1e293b;
}
.choices__list--dropdown .choices__item--selectable {
    color: #1e293b;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #ccfbf1;
    color: #0f766e;
}
.choices__input {
    font-size: 0.875rem;
    color: #1e293b;
}
.choices .choices__inner .choices__item--selectable {
    padding-right: 0.5rem;
    color: #1e293b;
}

/* Line clamp (fallback jeśli Tailwind nie załaduje) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Utilities */
.version-badge {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Druk naklejki QR – pojedyncza i zbiorcza */
@media print {
    /* margin: 0 = brak miejsca na nagłówki/stopki (w FF się znów pokazują przy margin > 0) */
    @page {
        size: A4;
        margin: 0;
    }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    body * {
        visibility: hidden;
    }
    /* Pojedyncza naklejka (modal): ta sama zaokrąglona ramka co w zbiorczym */
    .qr-print-area,
    .qr-print-area * {
        visibility: visible;
    }
    .qr-print-area {
        position: absolute;
        left: 8mm;
        top: 8mm;
        margin: 0;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem;
        box-shadow: none;
        background: white;
    }
    /* Zbiorczy: gdy body.qr-bulk-printing (obszar przeniesiony do body w JS) – tylko on jest widoczny, flow = wiele stron */
    body.qr-bulk-printing > * {
        display: none !important;
    }
    body.qr-bulk-printing > .qr-bulk-print-area {
        display: block !important;
        visibility: visible !important;
    }
    body.qr-bulk-printing .qr-bulk-print-area * {
        visibility: visible;
    }
    .qr-bulk-print-area {
        position: static !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .qr-bulk-print-area,
    .qr-bulk-print-area * {
        visibility: visible;
    }
    .qr-bulk-sheet {
        margin: 0 !important;
        padding: 0 !important;
    }
    .qr-bulk-page {
        margin: 0;
        padding: 8mm;
        page-break-after: always;
        page-break-inside: avoid;
        height: auto;
        overflow: visible;
        box-sizing: border-box;
    }
    .qr-bulk-page:last-child {
        page-break-after: auto;
    }
    .qr-bulk-sticker {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Siatka wydruku zbiorczego QR – rozmiar zależy od wyboru (small/medium/large) */
.qr-bulk-sheet .qr-bulk-print-area {
    display: grid;
    gap: 0.5rem;
}
.qr-bulk-page {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
}
.qr-bulk-sticker {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.qr-bulk-size-small .qr-bulk-page {
    grid-template-columns: repeat(4, 1fr);
}
.qr-bulk-size-small .qr-bulk-sticker {
    min-height: 100px;
    min-width: 0;
}
.qr-bulk-size-medium .qr-bulk-page {
    grid-template-columns: repeat(4, 1fr);
}
.qr-bulk-size-medium .qr-bulk-sticker {
    min-height: 160px;
    min-width: 0;
}
.qr-bulk-size-large .qr-bulk-page {
    grid-template-columns: repeat(2, 1fr);
}
.qr-bulk-size-large .qr-bulk-sticker {
    min-height: 280px;
    min-width: 200px;
}
.qr-sticker-cell {
    width: 100%;
    padding: 0.25rem;
}
.qr-bulk-size-large .qr-sticker-cell {
    max-width: 100%;
}

/* Mapa urządzeń: markery Leaflet divIcon (ikona profilu) */
.leaflet-div-icon.devices-map-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.leaflet-div-icon.devices-map-cluster-wrap {
    background: transparent !important;
    border: none !important;
}
.devices-map-cluster {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    line-height: 1;
}
.devices-map-cluster--solid {
    background: var(--dm-cluster-accent, #10b981);
    border: 2px solid rgba(255, 255, 255, 0.92);
}
.devices-map-cluster--solid .devices-map-cluster__count {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.devices-map-cluster--mixed {
    background: #fff;
    border: 3px solid var(--dm-cluster-accent, #64748b);
}
.devices-map-cluster--mixed .devices-map-cluster__count {
    color: #1f2937;
}
.leaflet-tooltip.devices-map-cluster-tooltip {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    max-width: 280px;
    white-space: normal;
    line-height: 1.35;
}
.leaflet-tooltip.devices-map-collocated-tooltip {
    font-size: 11px;
    max-width: 220px;
    white-space: normal;
    line-height: 1.35;
    padding: 5px 8px;
    border-radius: 8px;
}

/* Popup mapy urządzeń (Leaflet) — spójny z kartami aplikacji */
.leaflet-popup.devices-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.leaflet-popup.devices-map-popup-wrap .leaflet-popup-content {
    margin: 10px 12px;
}
.leaflet-popup.devices-map-popup-wrap .leaflet-popup-tip-container {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}
.devices-map-popup--card {
    min-width: 220px;
    max-width: min(300px, 88vw);
    line-height: 1.45;
    margin: 0;
}
.devices-map-popup-device-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.devices-map-popup-device-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.08);
}
.devices-map-popup-device-text {
    min-width: 0;
    flex: 1;
}
a.devices-map-popup-device-link {
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    color: #115e59;
    text-decoration: none;
    border-radius: 6px;
    margin: -2px -4px;
    padding: 2px 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    word-break: break-word;
}
a.devices-map-popup-device-link:hover {
    background-color: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}
.devices-map-popup-client {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    word-break: break-word;
}
.devices-map-popup-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #374151;
}
.devices-map-popup-meta-ico {
    flex-shrink: 0;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 13px;
}
.devices-map-popup-next-k {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 1px;
}
.devices-map-popup-ticket-wrap {
    margin-top: 12px;
}
.devices-map-popup-ticket-heading {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 6px 0;
    letter-spacing: 0.01em;
}
.devices-map-popup-ticket-card {
    padding: 10px 12px 10px 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.devices-map-popup-ticket-card--clickable {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.devices-map-popup-ticket-card--clickable:hover {
    background: #eef7ff;
    border-color: #bae6fd;
}
.devices-map-popup-ticket-grid {
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    align-items: start;
}
.devices-map-popup-ticket-grid--has-assignee {
    grid-template-columns: 18px 1fr 40px;
}
.devices-map-popup-type-ico {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1;
    padding-top: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.devices-map-popup-type-ico .fas {
    opacity: 0.95;
}
.devices-map-popup-ticket-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
.devices-map-popup-ticket-avatar-cell {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    line-height: 0;
    padding-top: 2px;
}
.devices-map-popup-ticket-status-cell {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    min-width: 0;
    line-height: 1;
}
.devices-map-popup-ticket-title-line {
    font-size: 13px;
    line-height: 1.35;
}
.devices-map-popup-ticket-link {
    font-weight: 600;
    color: #0c4a6e;
    text-decoration: none;
    border-radius: 4px;
    margin: -2px -3px;
    padding: 2px 3px;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    word-break: break-word;
}
.devices-map-popup-ticket-card--clickable:hover {
    background-color: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}
.devices-map-popup-dash {
    color: #9ca3af;
}
.devices-map-popup-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.devices-map-popup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb, 0 2px 6px rgba(0, 0, 0, 0.08);
    display: block;
}
.devices-map-popup-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb, 0 2px 6px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    display: none;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
