/* Стили страницы чекина - согласованы с основной формой */

/* «Мероприятия сегодня» — переключатель организации (МК/ЦЗН/ПБ).
   Все кнопки имеют идентичную геометрию: при переключении меняется только
   заливка, без скачков ширины/положения и скругления (скругление — на контейнере). */
.today-report-switch {
    display: inline-flex;
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
    overflow: hidden;
}
.today-report-btn {
    padding: .45rem 1rem;
    border: 0;
    border-right: 1px solid #d0d5dd;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.today-report-btn:last-child { border-right: 0; }
.today-report-btn.active {
    background: var(--theme-button, var(--theme-header, #FF5101));
    color: #fff;
}
.today-report-btn:not(.active):hover { background: #f1f5f9; }

/* ========================================
   SPA КОНТЕЙНЕР
   ======================================== */
.checkin-container {
    max-width: 1240px;
}

/* Сканер: карточка */
#view-scanner .card {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Стабильная высота: контейнер экранов не прыгает при переключении */
.scanner-screens-container {
    min-height: 520px;
    position: relative;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */
.checkin-nav {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.checkin-nav a {
    color: var(--theme-header, #2062a5);
    text-decoration: none;
    font-weight: 500;
}

.checkin-nav a:hover {
    text-decoration: underline;
}

.checkin-nav a.active {
    font-weight: 700;
}

.checkin-nav .sep {
    color: #ccc;
    margin: 0 0.5rem;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */
.checkin-screen {
    animation: fadeIn 0.3s ease-in-out;
}

.spa-view {
    padding-top: 1.5rem;
    animation: fadeIn 0.2s ease-in-out;
}

#authContainer {
    padding-top: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   СКАНЕР QR
   ======================================== */
.scanner-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.scanner-viewport {
    width: 100%;
    aspect-ratio: 1;
    min-height: 280px;
    max-height: 400px;
    background: #1a1a1a;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.scanner-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scanPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3), 0 0 0 0px var(--theme-focus-shadow);
    }

    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3), 0 0 15px 2px var(--theme-focus-shadow);
    }

    100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 0 0px var(--theme-focus-shadow);
    }
}

/* Рамка сканирования */
.scanner-viewport::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 3px solid var(--theme-header, #2062a5);
    border-radius: 1rem;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    animation: scanPulse 3s infinite;
}


/* ========================================
   ОВЕРЛЕЙ УЧАСТНИКА (поверх камеры)
   ======================================== */
.scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease-out;
}

.scanner-overlay__content {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
    height: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: overlaySlideUp 0.3s ease-out;
}

@media (min-width: 768px) {
    .scanner-overlay {
        align-items: center;
    }
    .scanner-overlay__content {
        max-width: 480px;
        height: auto;
        max-height: 90vh;
        border-radius: 1rem;
    }
}

.scanner-overlay__header {
    flex-shrink: 0;
    padding: 1.5rem 1.5rem 0;
}

.scanner-overlay__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.scanner-overlay__footer {
    flex-shrink: 0;
    padding: 0 1.5rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

@keyframes overlaySlideUp {
    from { transform: translateY(30%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ========================================
   УЧАСТНИК (QR-сканер)
   ======================================== */
.participant-info {
    border-radius: 1.25rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    gap: 0.25rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.info-value {
    font-weight: 500;
    color: #3A3C42;
    font-size: 0.95rem;
    flex: 0 1 auto;
    text-align: right;
}

/* Статусы */
.status-registered {
    color: var(--theme-header, #2062a5);
    font-weight: 600;
}

.status-attended {
    color: #198754;
    font-weight: 600;
}

/* Экран успеха */
.success-content {
    padding: 1rem 0;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    color: #198754;
    display: inline-block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-icon svg {
    width: 80px;
    height: 80px;
}

/* Кнопки управления сканером */
.btn-manual-input,
#manualInputBtn,
#switchCameraBtn {
    border-radius: 1rem;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
}

#switchCameraBtn {
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#switchCameraBtn svg {
    flex-shrink: 0;
}

/* ========================================
   ЛОГ СКАНИРОВАНИЙ (быстрый чекин)
   ======================================== */
.scan-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    margin-bottom: 0.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    animation: scanEntryIn 0.25s ease-out;
}

@keyframes scanEntryIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.scan-entry__name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: #3A3C42;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-entry__badge {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.scan-entry__time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
}

/* Статусы */
.scan-entry--pending .scan-entry__badge {
    background: #f1f5f9;
    color: #64748b;
}

.scan-entry--success .scan-entry__badge {
    background: #d1fae5;
    color: #065f46;
}

.scan-entry--already .scan-entry__badge {
    background: #e0f2fe;
    color: #0369a1;
}

.scan-entry--error .scan-entry__badge {
    background: #fee2e2;
    color: #991b1b;
}

.scan-entry--success {
    border-left: 3px solid #198754;
}

.scan-entry--already {
    border-left: 3px solid #0d6efd;
}

.scan-entry--error {
    border-left: 3px solid #dc3545;
    cursor: pointer;
}
.scan-entry--error:active {
    background: #fef2f2;
}
.scan-entry--error.scan-entry--retried {
    animation: error-pulse 2s ease-in-out infinite;
}
@keyframes error-pulse {
    0%, 100% { border-left-color: #dc3545; }
    50% { border-left-color: #fca5a5; }
}

/* Двухстрочная вёрстка — ФИО на первой строке, badge + время на второй */
.scan-entry--venue,
.scan-entry--error {
    flex-wrap: wrap;
}
.scan-entry--venue .scan-entry__name,
.scan-entry--error .scan-entry__name {
    flex: 0 0 100%;
}
.scan-entry--venue .scan-entry__time,
.scan-entry--error .scan-entry__time {
    margin-left: auto;
}

/* Уже отмечен */
.already-attended {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.already-attended-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Индикатор загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--theme-header, #2062a5);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Алерты */
.alert {
    border-radius: 1rem;
}

/* Make inputs match the height of custom buttons */
.checkin-container .form-control,
.checkin-container .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

/* Rounded, padded table wrapper */
.table-rounded-wrap {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0;
}

.table-rounded-wrap table {
    margin-bottom: 0;
}

.table-rounded-wrap th:first-child,
.table-rounded-wrap td:first-child {
    padding-left: 2rem !important;
}

.table-rounded-wrap th:last-child,
.table-rounded-wrap td:last-child {
    padding-right: 2rem !important;
}

.table-rounded-wrap td,
.table-rounded-wrap th {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.participant-sort-btn {
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.participant-sort-btn:hover,
.participant-sort-btn:focus {
    color: var(--theme-header, #2062a5);
    text-decoration: none;
}

/* ========================================
   MEASURE TABS (вкладки мероприятий)
   ======================================== */
/* ========================================
   MEASURE TABS (вкладки мероприятий)
   ======================================== */
.measure-tabs-vertical .nav-item {
    margin-bottom: 0;
}

.measure-tabs-vertical .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    transition: all 0.2s ease;
}

.measure-tabs-vertical .nav-link:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.measure-tabs-vertical .nav-link.active {
    color: var(--theme-header, #2062a5);
    font-weight: 600;
    background: #fff;
    border-color: var(--theme-header, #2062a5);
    box-shadow: 0 0 0 1px var(--theme-header, #2062a5);
}

.measure-tabs-vertical .nav-link .btn-close {
    font-size: 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    filter: none;
    opacity: 0.4;
}

.measure-tabs-vertical .nav-link:hover .btn-close {
    opacity: 0.7;
}

.measure-tabs-vertical .nav-link.active .btn-close {
    opacity: 0.7;
}

.measure-tabs-vertical .nav-link.active .btn-close:hover {
    opacity: 1;
}


/* Measure pane: first card flush with tabs */
.measure-pane>.card:first-child {
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.measure-pane>.card:first-child .card-body {
    padding: 1rem 1.25rem;
}

.measure-pane>.card:first-child+.nav-tabs,
.measure-pane>.card:first-child+* {
    margin-top: 1.5rem;
}


/* Measure info card */
.measure-info-card .list-group-item {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border: none;
    background: transparent;
}

.measure-info-card .info-label {
    color: #64748b;
    width: 140px;
    flex-shrink: 0;
}

.measure-info-card .info-value {
    font-weight: 500;
    text-align: left;
}


/* Work tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 0.5rem;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    color: #64748b;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #334155;
}

.nav-tabs .nav-link.active {
    color: var(--theme-header, #2062a5);
    background: transparent;
    border-color: transparent;
    border-bottom: 2px solid var(--theme-header, #2062a5);
}

.tab-content.border {
    border: none !important;
    background-color: transparent !important;
    padding: 1.5rem 0 !important;
}

/* XLSX match sections */
.match-matched {
    border-left: 4px solid #198754;
}

.match-unmatched {
    border-left: 4px solid #fd7e14;
}

.match-absent {
    border-left: 4px solid #adb5bd;
}

.section-toggle {
    cursor: pointer;
    user-select: none;
}

.section-toggle::after {
    content: ' \25BE';
    font-size: 0.8em;
}

.section-toggle.collapsed::after {
    content: ' \25B8';
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: var(--theme-header, #2062a5);
    background: #f0f7ff;
}

.drop-zone p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.status-badge {
    transition: all 0.3s ease;
}

/* Кнопка обновления в списке участников */
.refresh-btn {
    white-space: nowrap;
}

/* ========================================
   ADMIN PANEL (из admin) & TABLES
   ======================================== */
.user-table th,
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
    border-bottom-color: #f1f5f9;
    font-size: 0.85rem;
}

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

.badge {
    padding: 0.45rem 0.65rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.badge.bg-success {
    background-color: #d1fae5 !important;
    color: #065f46;
}

.badge.bg-primary {
    background-color: #e0f2fe !important;
    color: #0369a1;
}

.badge.bg-info {
    background-color: #f3e8ff !important;
    color: #6b21a8;
}

.badge-admin {
    background: #fee2e2;
    color: #991b1b;
}

.badge-employee {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-inactive {
    background: #f1f5f9;
    color: #475569;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

#view-admin .card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.add-user-form .form-control {
    border-radius: 0.75rem;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */
@media (max-width: 575px) {
    .info-row {
        flex-direction: column;
        gap: 0.1rem;
    }

    .info-value {
        text-align: left;
    }

    .scanner-viewport {
        min-height: 250px;
        border-radius: 0.75rem;
    }

    .scanner-viewport::after {
        border-radius: 0.75rem;
    }

    .success-icon svg {
        width: 60px;
        height: 60px;
    }

}

/* ========================================
   ОТМЕНА ВНУТРЕННЕЙ ПРОКРУТКИ ТАБЛИЦ (ДЛЯ АВТОМАСШТАБА)
   ======================================== */
.table-responsive {
    overflow-x: visible !important;
}

/* Schedule view: override — use horizontal scroll, not zoom */
#view-schedule .table-responsive {
    overflow-x: auto !important;
}

/* When a column filter dropdown is open, allow it to overflow */
#view-schedule .table-responsive.sched-dropdown-open {
    overflow: visible !important;
}

/* ========================================
   SCHEDULE FULL-WIDTH MODE
   ======================================== */
.checkin-container.schedule-fullwidth {
    max-width: none !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

#view-schedule .card {
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    padding: 0.85rem !important;
}

/* Analytics widgets row above the table */
.sched-widgets-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sched-widget {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 0.85rem;
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 400px;
    overflow: hidden;
}

.sched-widget.collapsed {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: none;
    padding: 0.4rem 0.75rem;
}

.sched-widget.collapsed .sched-widget-title {
    font-size: 0.6rem;
}

.sched-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.sched-widget-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
}

.sched-widget-toggle {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.sched-widget.collapsed .sched-widget-toggle {
    transform: rotate(-90deg);
}

.sched-widget-body {
    margin-top: 0.5rem;
}

.sched-widget.collapsed .sched-widget-body {
    display: none;
}

.sched-legend-item {
    border-radius: 0.3rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}

.sched-legend-item:hover {
    background: #f1f5f9;
}

.sched-legend-item.active {
    background: #e0f2fe;
    outline: 1.5px solid #7dd3fc;
    outline-offset: -1px;
}

/* Column drag-and-drop visual feedback */
#view-schedule .sched-th-drag {
    transition: opacity 0.15s ease;
}

#view-schedule .sched-th-drag[draggable="true"]:hover {
    cursor: grab;
}

#view-schedule .sched-th-drag[draggable="true"]:active {
    cursor: grabbing;
}

/* ========================================
   ДЕСКТОП - оптимизация для веб-камеры
   ======================================== */
@media (min-width: 992px) {
    .scanner-wrapper {
        max-width: 450px;
    }

    .scanner-viewport {
        min-height: 350px;
        max-height: 450px;
        border-radius: 1.25rem;
    }

    .scanner-viewport::after {
        border-radius: 1.25rem;
    }

    .participant-info {
        padding: 1.5rem;
    }

    .info-row {
        padding: 0.65rem 0;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    /* Кнопки компактнее на десктопе */
    .btn-manual-input {
        padding: 0.55rem 1.25rem;
        font-size: 0.95rem;
    }

    /* На десктопе карточка занимает всю ширину колонки */
    #view-scanner .card {
        max-width: none;
    }

    .scanner-screens-container {
        min-height: 600px;
    }

}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (ТАБЛИЦЫ И ОТСТУПЫ)
   ======================================== */
@media (max-width: 768px) {

    /* Превращаем таблицы в карточки */
    .table-rounded-wrap table,
    .table-rounded-wrap thead,
    .table-rounded-wrap tbody,
    .table-rounded-wrap th,
    .table-rounded-wrap td,
    .table-rounded-wrap tr {
        display: block;
    }

    .table-rounded-wrap thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-rounded-wrap tr {
        margin-bottom: 0.6rem;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 0.3rem;
    }

    .table-rounded-wrap tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .table-rounded-wrap td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        padding-right: 1rem !important;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        text-align: right;
        min-height: 1.8rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .table-rounded-wrap td:before {
        position: absolute;
        top: 0.25rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #64748b;
        font-size: 0.8rem;
    }

    /* Фейковые заголовки для карточного вида — берём из data-label атрибута */
    .table-rounded-wrap td:before {
        content: attr(data-label);
    }

    .table-rounded-wrap td[data-label=""]{
        padding-left: 1rem !important;
        text-align: center;
    }

    .table-rounded-wrap td[data-label=""]:before {
        display: none;
    }

    .table-rounded-wrap .btn {
        display: block;
        width: 100%;
        margin-top: 0.4rem;
        padding: 0.5rem;
    }

    .measure-info-card .info-label {
        width: 100px;
    }
}

/* ========================================
   OFFLINE MODE
   ======================================== */
.offline-banner {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: offline-pulse 2s ease-in-out infinite;
}

.offline-banner i {
    margin-right: 0.3rem;
}

.offline-queue-badge {
    display: inline-block;
    background-color: #664d03;
    color: #fff;
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

@keyframes offline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sync-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sync-notification.sync-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.sync-notification.sync-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.scan-entry--queued {
    border-left: 3px solid #ffc107;
    cursor: pointer;
}
.scan-entry--queued:active {
    background: #fffbeb;
}
.scan-entry--queued .scan-entry__badge {
    color: #664d03;
    background-color: #fff3cd;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}
